From ee405f5ef1f34c65ab59fade5edcee28f2fed284 Mon Sep 17 00:00:00 2001 From: tse-developer Date: Sun, 31 May 2026 22:59:30 -0700 Subject: [PATCH] jenkins-publish-sdks-from-26.6.0.cl --- api-spec/openapiSpecv3-2_0.json | 732 +++- sdks/java/.openapi-generator/FILES | 36 + sdks/java/README.md | 4 +- sdks/java/api/openapi.yaml | 694 ++++ sdks/java/build.gradle | 2 +- sdks/java/build.sbt | 2 +- sdks/java/docs/AiApi.md | 37 + sdks/java/docs/AnswerPngOptionsInput.md | 19 + sdks/java/docs/AuthClusterPreferences.md | 28 + sdks/java/docs/AuthClusterPreferencesInput.md | 27 + sdks/java/docs/AuthOrgInfo.md | 19 + sdks/java/docs/AuthOrgPreference.md | 29 + sdks/java/docs/AuthOrgPreferenceInput.md | 28 + sdks/java/docs/AuthSettingsAccessToken.md | 18 + sdks/java/docs/AuthenticationApi.md | 74 + .../java/docs/ConfigureAuthSettingsRequest.md | 27 + .../docs/ConnectionConfigurationResponse.md | 1 + sdks/java/docs/ConnectionsApi.md | 39 + sdks/java/docs/CreateConnectionRequest.md | 1 + sdks/java/docs/CreateConnectionResponse.md | 1 + sdks/java/docs/CreateRoleRequest.md | 2 + sdks/java/docs/CreateUserGroupRequest.md | 2 + sdks/java/docs/ExportAnswerReportRequest.md | 12 + .../FetchPermissionsOfPrincipalsRequest.md | 1 + sdks/java/docs/GroupsImportListInput.md | 2 + sdks/java/docs/PdfOptions.md | 1 + .../java/docs/PermissionsMetadataTypeInput.md | 1 + sdks/java/docs/RoleResponse.md | 2 + sdks/java/docs/SchedulesPdfOptionsInput.md | 1 + sdks/java/docs/SearchAuthSettingsRequest.md | 35 + sdks/java/docs/SearchAuthSettingsResponse.md | 28 + sdks/java/docs/SearchConnectionRequest.md | 1 + sdks/java/docs/SearchConnectionResponse.md | 1 + sdks/java/docs/SearchRoleResponse.md | 2 + sdks/java/docs/SearchRolesRequest.md | 2 + sdks/java/docs/SearchUserGroupsRequest.md | 2 + sdks/java/docs/SearchUsersRequest.md | 2 + .../SecuritySettingsClusterPreferences.md | 10 + .../docs/SecuritySettingsOrgPreferences.md | 10 + sdks/java/docs/ShareMetadataRequest.md | 3 +- sdks/java/docs/ShareMetadataTypeInput.md | 1 + sdks/java/docs/SharePermissionsInput.md | 10 + sdks/java/docs/TagMetadataTypeInput.md | 1 + sdks/java/docs/ThoughtSpotRestApi.md | 150 + .../docs/UpdateConnectionStatusRequest.md | 26 + sdks/java/docs/UpdateRoleRequest.md | 2 + sdks/java/docs/UpdateUserGroupRequest.md | 2 + sdks/java/docs/Variable.md | 1 + sdks/java/docs/VariableOrgInfo.md | 18 + sdks/java/pom.xml | 2 +- .../com/thoughtspot/client/ApiClient.java | 2 +- .../com/thoughtspot/client/Configuration.java | 2 +- .../java/com/thoughtspot/client/JSON.java | 30 + .../com/thoughtspot/client/api/AiApi.java | 249 ++ .../client/api/AuthenticationApi.java | 439 ++ .../client/api/ConnectionsApi.java | 231 ++ .../client/api/ThoughtSpotRestApi.java | 1117 ++++- .../client/model/AnswerPngOptionsInput.java | 360 ++ .../client/model/AuthClusterPreferences.java | 425 ++ .../model/AuthClusterPreferencesInput.java | 375 ++ .../thoughtspot/client/model/AuthOrgInfo.java | 347 ++ .../client/model/AuthOrgPreference.java | 457 +++ .../client/model/AuthOrgPreferenceInput.java | 416 ++ .../client/model/AuthSettingsAccessToken.java | 303 ++ .../model/ConfigureAuthSettingsRequest.java | 462 +++ .../ConnectionConfigurationResponse.java | 4 +- .../client/model/CreateConnectionRequest.java | 4 +- .../model/CreateConnectionResponse.java | 4 +- .../client/model/CreateRoleRequest.java | 4 + .../client/model/CreateUserGroupRequest.java | 4 + .../model/ExportAnswerReportRequest.java | 171 + .../FetchPermissionsOfPrincipalsRequest.java | 4 +- .../client/model/GroupsImportListInput.java | 4 + .../thoughtspot/client/model/PdfOptions.java | 4 +- .../model/PermissionsMetadataTypeInput.java | 4 +- .../client/model/RoleResponse.java | 4 + .../model/SchedulesPdfOptionsInput.java | 4 +- .../model/SearchAuthSettingsRequest.java | 454 ++ .../model/SearchAuthSettingsResponse.java | 464 +++ .../client/model/SearchConnectionRequest.java | 4 +- .../model/SearchConnectionResponse.java | 4 +- .../client/model/SearchRoleResponse.java | 4 + .../client/model/SearchRolesRequest.java | 4 + .../client/model/SearchUserGroupsRequest.java | 4 + .../client/model/SearchUsersRequest.java | 4 + .../SecuritySettingsClusterPreferences.java | 101 + .../model/SecuritySettingsOrgPreferences.java | 102 +- .../client/model/ShareMetadataRequest.java | 8 +- .../client/model/ShareMetadataTypeInput.java | 4 +- .../client/model/SharePermissionsInput.java | 119 +- .../client/model/TagMetadataTypeInput.java | 4 +- .../model/UpdateConnectionStatusRequest.java | 360 ++ .../client/model/UpdateRoleRequest.java | 4 + .../client/model/UpdateUserGroupRequest.java | 4 + .../thoughtspot/client/model/Variable.java | 34 +- .../client/model/VariableOrgInfo.java | 330 ++ .../com/thoughtspot/client/api/AiApiTest.java | 41 + .../client/api/AuthenticationApiTest.java | 62 + .../client/api/ConnectionsApiTest.java | 26 + .../client/api/ThoughtSpotRestApiTest.java | 129 + .../model/AnswerPngOptionsInputTest.java | 36 + .../AuthClusterPreferencesInputTest.java | 24 + .../model/AuthClusterPreferencesTest.java | 30 + .../client/model/AuthOrgInfoTest.java | 30 + .../model/AuthOrgPreferenceInputTest.java | 30 + .../client/model/AuthOrgPreferenceTest.java | 36 + .../model/AuthSettingsAccessTokenTest.java | 24 + .../ConfigureAuthSettingsRequestTest.java | 36 + .../model/ExportAnswerReportRequestTest.java | 18 + .../model/SearchAuthSettingsRequestTest.java | 30 + .../model/SearchAuthSettingsResponseTest.java | 36 + ...ecuritySettingsClusterPreferencesTest.java | 6 + .../SecuritySettingsOrgPreferencesTest.java | 6 + .../model/SharePermissionsInputTest.java | 6 + .../UpdateConnectionStatusRequestTest.java | 24 + .../client/model/VariableOrgInfoTest.java | 30 + .../client/model/VariableTest.java | 6 + sdks/typescript/.openapi-generator/FILES | 14 + sdks/typescript/AIApi.md | 61 + sdks/typescript/AuthenticationApi.md | 134 + sdks/typescript/ConnectionsApi.md | 67 + sdks/typescript/README.md | 2 +- sdks/typescript/ReportsApi.md | 3 + sdks/typescript/SecurityApi.md | 1 + sdks/typescript/ThoughtSpotRestApi.md | 266 ++ sdks/typescript/apis/AIApi.ts | 146 +- sdks/typescript/apis/AuthenticationApi.ts | 251 +- sdks/typescript/apis/CollectionsApi.ts | 16 +- .../apis/ConnectionConfigurationsApi.ts | 16 +- sdks/typescript/apis/ConnectionsApi.ts | 160 +- sdks/typescript/apis/CustomActionApi.ts | 16 +- sdks/typescript/apis/CustomCalendarsApi.ts | 20 +- sdks/typescript/apis/DBTApi.ts | 24 +- sdks/typescript/apis/DataApi.ts | 12 +- sdks/typescript/apis/EmailCustomizationApi.ts | 24 +- sdks/typescript/apis/GroupsApi.ts | 20 +- sdks/typescript/apis/JobsApi.ts | 4 +- sdks/typescript/apis/LogApi.ts | 4 +- sdks/typescript/apis/MetadataApi.ts | 64 +- sdks/typescript/apis/OrgsApi.ts | 16 +- sdks/typescript/apis/ReportsApi.ts | 8 +- sdks/typescript/apis/RolesApi.ts | 16 +- sdks/typescript/apis/SchedulesApi.ts | 16 +- sdks/typescript/apis/SecurityApi.ts | 40 +- sdks/typescript/apis/SystemApi.ts | 36 +- sdks/typescript/apis/TagsApi.ts | 24 +- sdks/typescript/apis/ThoughtSpotRestApi.ts | 1053 +++-- sdks/typescript/apis/UsersApi.ts | 40 +- sdks/typescript/apis/VariableApi.ts | 28 +- sdks/typescript/apis/VersionControlApi.ts | 36 +- sdks/typescript/apis/WebhooksApi.ts | 16 +- sdks/typescript/dist/index.cjs | 3654 ++++++++++++----- sdks/typescript/dist/index.d.cts | 796 +++- sdks/typescript/dist/index.d.ts | 796 +++- sdks/typescript/dist/index.js | 3640 +++++++++++----- .../models/AnswerPngOptionsInput.ts | 58 + .../models/AuthClusterPreferences.ts | 55 + .../models/AuthClusterPreferencesInput.ts | 44 + sdks/typescript/models/AuthOrgInfo.ts | 51 + sdks/typescript/models/AuthOrgPreference.ts | 63 + .../models/AuthOrgPreferenceInput.ts | 54 + .../models/AuthSettingsAccessToken.ts | 41 + .../models/ConfigureAuthSettingsRequest.ts | 60 + ...reAuthSettingsRequestClusterPreferences.ts | 44 + .../models/ConnectionConfigurationResponse.ts | 2 +- .../models/CreateConnectionRequest.ts | 2 +- .../models/CreateConnectionResponse.ts | 2 +- sdks/typescript/models/CreateRoleRequest.ts | 2 +- .../models/CreateScheduleRequestPdfOptions.ts | 2 +- .../models/CreateUserGroupRequest.ts | 2 +- .../models/ExportAnswerReportRequest.ts | 29 + .../ExportAnswerReportRequestPngOptions.ts | 61 + .../FetchPermissionsOfPrincipalsRequest.ts | 2 +- .../models/GroupsImportListInput.ts | 2 +- sdks/typescript/models/ObjectSerializer.ts | 66 +- sdks/typescript/models/PdfOptions.ts | 2 +- .../models/PermissionsMetadataTypeInput.ts | 2 +- sdks/typescript/models/RoleResponse.ts | 2 +- .../models/SchedulesPdfOptionsInput.ts | 2 +- .../models/SearchAuthSettingsRequest.ts | 52 + .../models/SearchAuthSettingsResponse.ts | 63 + .../models/SearchConnectionRequest.ts | 2 +- .../models/SearchConnectionResponse.ts | 2 +- sdks/typescript/models/SearchRoleResponse.ts | 2 +- sdks/typescript/models/SearchRolesRequest.ts | 2 +- .../models/SearchUserGroupsRequest.ts | 2 +- sdks/typescript/models/SearchUsersRequest.ts | 2 +- .../SecuritySettingsClusterPreferences.ts | 13 + .../models/SecuritySettingsOrgPreferences.ts | 13 + .../typescript/models/ShareMetadataRequest.ts | 4 +- .../models/ShareMetadataTypeInput.ts | 2 +- .../models/SharePermissionsInput.ts | 11 + .../typescript/models/TagMetadataTypeInput.ts | 2 +- .../models/UpdateConnectionStatusRequest.ts | 41 + sdks/typescript/models/UpdateRoleRequest.ts | 2 +- .../models/UpdateScheduleRequestPdfOptions.ts | 2 +- .../models/UpdateUserGroupRequest.ts | 2 +- sdks/typescript/models/Variable.ts | 8 + sdks/typescript/models/VariableOrgInfo.ts | 48 + sdks/typescript/models/all.ts | 14 + sdks/typescript/package-lock.json | 297 +- sdks/typescript/package.json | 2 +- sdks/typescript/tests/AIApiTest.ts | 32 + .../typescript/tests/AuthenticationApiTest.ts | 64 + sdks/typescript/tests/ConnectionsApiTest.ts | 36 + .../tests/ThoughtSpotRestApiTest.ts | 132 + sdks/typescript/types/ObjectParamAPI.ts | 162 + sdks/typescript/types/ObservableAPI.ts | 200 + sdks/typescript/types/PromiseAPI.ts | 88 + 209 files changed, 20509 insertions(+), 3242 deletions(-) create mode 100644 sdks/java/docs/AnswerPngOptionsInput.md create mode 100644 sdks/java/docs/AuthClusterPreferences.md create mode 100644 sdks/java/docs/AuthClusterPreferencesInput.md create mode 100644 sdks/java/docs/AuthOrgInfo.md create mode 100644 sdks/java/docs/AuthOrgPreference.md create mode 100644 sdks/java/docs/AuthOrgPreferenceInput.md create mode 100644 sdks/java/docs/AuthSettingsAccessToken.md create mode 100644 sdks/java/docs/ConfigureAuthSettingsRequest.md create mode 100644 sdks/java/docs/SearchAuthSettingsRequest.md create mode 100644 sdks/java/docs/SearchAuthSettingsResponse.md create mode 100644 sdks/java/docs/UpdateConnectionStatusRequest.md create mode 100644 sdks/java/docs/VariableOrgInfo.md create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/AnswerPngOptionsInput.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferences.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferencesInput.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgInfo.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreference.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreferenceInput.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/AuthSettingsAccessToken.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequest.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsRequest.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsResponse.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/UpdateConnectionStatusRequest.java create mode 100644 sdks/java/src/main/java/com/thoughtspot/client/model/VariableOrgInfo.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/AnswerPngOptionsInputTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesInputTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgInfoTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceInputTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/AuthSettingsAccessTokenTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequestTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsRequestTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsResponseTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/UpdateConnectionStatusRequestTest.java create mode 100644 sdks/java/src/test/java/com/thoughtspot/client/model/VariableOrgInfoTest.java create mode 100644 sdks/typescript/models/AnswerPngOptionsInput.ts create mode 100644 sdks/typescript/models/AuthClusterPreferences.ts create mode 100644 sdks/typescript/models/AuthClusterPreferencesInput.ts create mode 100644 sdks/typescript/models/AuthOrgInfo.ts create mode 100644 sdks/typescript/models/AuthOrgPreference.ts create mode 100644 sdks/typescript/models/AuthOrgPreferenceInput.ts create mode 100644 sdks/typescript/models/AuthSettingsAccessToken.ts create mode 100644 sdks/typescript/models/ConfigureAuthSettingsRequest.ts create mode 100644 sdks/typescript/models/ConfigureAuthSettingsRequestClusterPreferences.ts create mode 100644 sdks/typescript/models/ExportAnswerReportRequestPngOptions.ts create mode 100644 sdks/typescript/models/SearchAuthSettingsRequest.ts create mode 100644 sdks/typescript/models/SearchAuthSettingsResponse.ts create mode 100644 sdks/typescript/models/UpdateConnectionStatusRequest.ts create mode 100644 sdks/typescript/models/VariableOrgInfo.ts diff --git a/api-spec/openapiSpecv3-2_0.json b/api-spec/openapiSpecv3-2_0.json index 2da1f1fca..b5749df90 100644 --- a/api-spec/openapiSpecv3-2_0.json +++ b/api-spec/openapiSpecv3-2_0.json @@ -53,6 +53,14 @@ ], "description": "Roles for version 26.5.0.cl" }, + { + "name": "26.6.0.cl", + "id": "26.6.0.cl", + "tags": [ + "26.6.0.cl" + ], + "description": "Roles for version 26.6.0.cl" + }, { "name": "9.0.0.cl", "id": "9.0.0.cl", @@ -1453,6 +1461,138 @@ } } }, + "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response": { + "post": { + "operationId": "stopConversation", + "description": "\nStops an in-progress agent conversation response.
Version: 26.6.0.cl or later\n\nVersion: 26.6.0.cl or later\n\nStops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result.\n\nRequires `CAN_USE_SPOTTER` privilege and access to the specified conversation.\n\n#### Usage guidelines\n\nThe request must include:\n\n- `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation`\n\nA successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful.\n\nAfter stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`.\n\n#### Example request\n\n```bash\nPOST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response\n```\n\n#### Typical usage scenario\n\nThis endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example:\n\n1. User sends a message via `sendAgentConversationMessageStreaming`.\n2. User clicks a \"Stop generating\" button while the response is streaming.\n3. Your client calls `stopConversation` with the active `conversation_identifier`.\n4. The stream is terminated and the user can ask a new question.\n\n#### Error responses\n\n| Code | Description |\n|------|-------------|\n| 401 | Unauthorized — authentication token is missing, expired, or invalid. |\n| 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. |\n\n> ###### Note:\n>\n> - Calling this endpoint when no response is in progress does not return an error.\n> - The conversation context is preserved after stopping — previous messages and answers remain accessible.\n> - Available from version 26.6.0.cl and later.\n> - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster.\n> - This feature is available only for **Spotter 3** (`SPOTTER3`) version.\n\n\n\n\n#### Endpoint URL\n", + "tags": [ + "AI", + "26.6.0.cl" + ], + "parameters": [ + { + "in": "path", + "name": "conversation_identifier", + "required": true, + "schema": { + "type": "string" + }, + "description": "Unique identifier of the conversation to stop." + } + ], + "responses": { + "204": { + "description": "Successfully stopped the in-progress agent conversation response for the given." + }, + "400": { + "description": "Operation failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Operation failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/api/rest/2.0/auth/configure": { + "post": { + "operationId": "configureAuthSettings", + "description": "\n Version: 26.6.0.cl or later\n\nVersion: 26.6.0.cl or later\n\nEnables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`.\n\n#### Required privileges\n\nRequires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required.\n\n#### Usage guidelines\n\nUse `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org.\n- `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved.\n- `DISABLED` — Revokes the existing cluster-level access token.\n\nUse `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance.\n- `ENABLED` — Generates a new org-level access token if one does not exist.\n- `DISABLED` — Revokes the existing org-level access token for that Org.\n\nBoth `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes.\n\n**Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other.\n\n\n\n\n#### Endpoint URL\n", + "tags": [ + "Authentication", + "26.6.0.cl" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConfigureAuthSettingsRequest" + } + } + }, + "required": true + }, + "parameters": [], + "responses": { + "204": { + "description": "Trusted authentication settings configured successfully." + }, + "400": { + "description": "Invalid request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, "/api/rest/2.0/auth/session/user": { "get": { "operationId": "getCurrentUserInfo", @@ -1989,6 +2129,108 @@ } } }, + "/api/rest/2.0/auth/search": { + "post": { + "operationId": "searchAuthSettings", + "description": "\n Version: 26.6.0.cl or later\n\nVersion: 26.6.0.cl or later\n\nReturns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`.\n\n#### Required privileges\n\nRequires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required.\n\n#### Usage guidelines\n\nUse `scope` to control which level of settings are returned:\n- `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org.\n- `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance.\n- If `scope` is omitted, both cluster and org-level settings are returned based on the caller's org context and feature availability.\n\nThe `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level.\n\n**Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords.\n\n\n\n\n#### Endpoint URL\n", + "tags": [ + "Authentication", + "26.6.0.cl" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchAuthSettingsRequest" + } + } + }, + "required": true + }, + "parameters": [], + "responses": { + "200": { + "description": "Authentication settings retrieved successfully.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchAuthSettingsResponse" + }, + "examples": { + "example_1": { + "value": { + "auth_type": "TRUSTED_AUTH", + "cluster_preferences": { + "auth_status": "ENABLED", + "access_tokens": [ + { + "key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" + } + ] + }, + "org_preferences": [ + { + "org": { + "id": 583464508, + "name": "sales_org" + }, + "auth_status": "ENABLED", + "access_tokens": [ + { + "key": "f9e8d7c6-b5a4-3210-fedc-ba9876543210" + } + ] + } + ] + } + } + } + } + } + }, + "400": { + "description": "Invalid request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, "/api/rest/2.0/auth/token/validate": { "post": { "operationId": "validateToken", @@ -3310,7 +3552,83 @@ "parameters": [], "responses": { "204": { - "description": "Connection successfully updated." + "description": "Connection successfully updated." + }, + "400": { + "description": "Invalid request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden access.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/api/rest/2.0/connections/{connection_identifier}/status": { + "post": { + "operationId": "updateConnectionStatus", + "description": "\n Version: 26.6.0.cl or later\n\nActivates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again.\n\nRequires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation.\n\n#### Usage guidelines\n\nTo update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body.\n\n- **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection.\n- **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\".\n\n\n\n\n\n#### Endpoint URL\n", + "tags": [ + "Connections", + "26.6.0.cl" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateConnectionStatusRequest" + } + } + }, + "required": true + }, + "parameters": [ + { + "in": "path", + "name": "connection_identifier", + "required": true, + "schema": { + "type": "string" + }, + "description": "Unique ID or name of the connection." + } + ], + "responses": { + "204": { + "description": "Connection status updated successfully." }, "400": { "description": "Invalid request.", @@ -3342,6 +3660,16 @@ } } }, + "404": { + "description": "Object not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "500": { "description": "Unexpected error", "content": { @@ -12054,6 +12382,42 @@ "name": "mike_rodriguez" } } + }, + "example_3": { + "description": "Webhook with GCP GCS storage destination", + "value": { + "id": "c9d8e7f6-a5b4-4321-9876-fedcba012345", + "name": "GCS Storage Webhook", + "description": "Webhook that uploads payloads to a GCS bucket", + "org": { + "id": "0", + "name": "Primary" + }, + "url": "https://api.example.com/webhooks", + "events": [ + "LIVEBOARD_SCHEDULE" + ], + "storage_destination": { + "storage_type": "GCP_GCS", + "storage_config": { + "gcp_gcs_config": { + "bucket_name": "my-webhook-files", + "service_account_email": "my-sa@my-project.iam.gserviceaccount.com", + "path_prefix": "webhooks/" + } + } + }, + "creation_time_in_millis": 1724279630456, + "modification_time_in_millis": 1724279630456, + "created_by": { + "id": "3a2b1c4d-5e6f-7890-abcd-ef0123456789", + "name": "priya_sharma" + }, + "last_modified_by": { + "id": "3a2b1c4d-5e6f-7890-abcd-ef0123456789", + "name": "priya_sharma" + } + } } } } @@ -12564,6 +12928,116 @@ } } }, + "SearchAuthSettingsResponse": { + "type": "object", + "properties": { + "auth_type": { + "type": "string", + "enum": [ + "TRUSTED_AUTH" + ], + "description": "Type of authentication mechanism returned.", + "nullable": true + }, + "cluster_preferences": { + "$ref": "#/components/schemas/AuthClusterPreferences", + "description": "Cluster-level authentication configuration. Present when cluster scope was requested and the caller has ADMINISTRATION or CONTROL_TRUSTED_AUTH privilege.", + "nullable": true + }, + "org_preferences": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthOrgPreference" + }, + "description": "Org-level authentication configurations. Present when org scope was requested and per-org auth feature is enabled.", + "nullable": true + } + }, + "description": "Response for searchAuthSettings. Contains auth type and cluster/org-level preferences." + }, + "AuthClusterPreferences": { + "type": "object", + "properties": { + "auth_status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ], + "description": "Whether authentication is enabled or disabled at the cluster level.", + "nullable": true + }, + "access_tokens": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthSettingsAccessToken" + }, + "description": "Cluster-level access tokens. Absent when no token is configured.", + "nullable": true + } + }, + "description": "Cluster-level authentication preferences." + }, + "AuthSettingsAccessToken": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string", + "description": "The plaintext token key value." + } + }, + "description": "An auth settings access token." + }, + "AuthOrgPreference": { + "type": "object", + "properties": { + "org": { + "$ref": "#/components/schemas/AuthOrgInfo", + "description": "Org identifier details.", + "nullable": true + }, + "auth_status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ], + "description": "Whether authentication is enabled or disabled for this org.", + "nullable": true + }, + "access_tokens": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthSettingsAccessToken" + }, + "description": "Org-level access tokens. Absent when no token is configured or the feature flag is off.", + "nullable": true + } + }, + "description": "Org-level authentication preferences for a single org." + }, + "AuthOrgInfo": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier of the org." + }, + "name": { + "type": "string", + "description": "Name of the org.", + "nullable": true + } + }, + "description": "Org identifier returned in auth settings search results." + }, "RiseSetter": { "type": "object", "required": [ @@ -13289,6 +13763,15 @@ "$ref": "#/components/schemas/ClusterNonEmbedAccess", "description": "Non-embed access configuration at cluster level.", "nullable": true + }, + "trusted_auth_status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ], + "description": "Trusted authentication status at the cluster level.
Version: 26.6.0.cl or later", + "nullable": true } }, "description": "Cluster-level security preferences." @@ -13426,6 +13909,15 @@ "$ref": "#/components/schemas/OrgNonEmbedAccess", "description": "Non-embed access configuration for this org.", "nullable": true + }, + "trusted_auth_status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ], + "description": "Trusted authentication status for this org.
Version: 26.6.0.cl or later", + "nullable": true } }, "description": "Org-level security preferences." @@ -14640,6 +15132,29 @@ } } }, + "AnswerPngOptionsInput": { + "type": "object", + "properties": { + "x_resolution": { + "type": "integer", + "format": "int32", + "description": "Desired width of the answer image in pixels. Ex. 1920 for Full HD image
Beta Version: 26.6.0.cl or later", + "nullable": true + }, + "y_resolution": { + "type": "integer", + "format": "int32", + "description": "Desired height of the answer image in pixels. Ex. 1080 for Full HD image
Beta Version: 26.6.0.cl or later", + "nullable": true + }, + "scaling": { + "type": "integer", + "format": "int32", + "description": "The scale of the image in percentage. Ex. 100 for 100% scale.
Beta Version: 26.6.0.cl or later", + "nullable": true + } + } + }, "PermissionOfPrincipalsResponse": { "type": "object", "properties": { @@ -14721,7 +15236,8 @@ "ANSWER", "LOGICAL_TABLE", "LOGICAL_COLUMN", - "CONNECTION" + "CONNECTION", + "COLLECTION" ], "description": " Type of metadata object.\n \n\nRequired if the name of the object is set as the identifier. This attribute is optional when the object GUID is specified as the identifier.", "nullable": true @@ -15292,7 +15808,8 @@ "GOOGLE_SHEETS", "FALCON", "FALCON_ONPREM", - "CLICKHOUSE" + "CLICKHOUSE", + "IOMETE" ], "description": "Type of data warehouse." }, @@ -15547,6 +16064,8 @@ "CAN_VIEW_FOLDERS", "CAN_MODIDY_FOLDERS", "CAN_MANAGE_VARIABLES", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "PREVIEW_DOCUMENT_SEARCH", "CAN_SETUP_VERSION_CONTROL", "CAN_MANAGE_WEBHOOKS", @@ -16237,6 +16756,11 @@ }, "description": "Values of the variable", "nullable": true + }, + "org": { + "$ref": "#/components/schemas/VariableOrgInfo", + "description": "Owner org of the variable.", + "nullable": true } }, "description": "Variable object" @@ -16291,6 +16815,24 @@ } } }, + "VariableOrgInfo": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "ID of the Org." + }, + "name": { + "type": "string", + "description": "Name of the Org." + } + } + }, "SortOption": { "type": "object", "properties": { @@ -16436,7 +16978,8 @@ "GOOGLE_SHEETS", "FALCON", "FALCON_ONPREM", - "CLICKHOUSE" + "CLICKHOUSE", + "IOMETE" ], "nullable": true }, @@ -17776,6 +18319,43 @@ } } }, + "AuthClusterPreferencesInput": { + "type": "object", + "properties": { + "auth_status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ], + "description": "Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked.", + "nullable": true + } + }, + "description": "Input for cluster-level auth configuration." + }, + "AuthOrgPreferenceInput": { + "type": "object", + "required": [ + "org_identifier" + ], + "properties": { + "org_identifier": { + "type": "string", + "description": "Unique ID or name of the org to configure." + }, + "auth_status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ], + "description": "Enable or disable authentication for this org. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked.", + "nullable": true + } + }, + "description": "Input for org-level auth configuration." + }, "ResponseActivationURL": { "type": "object", "properties": { @@ -18355,7 +18935,8 @@ "ANSWER", "LOGICAL_TABLE", "LOGICAL_COLUMN", - "CONNECTION" + "CONNECTION", + "COLLECTION" ], "description": " Type of metadata.\n \n\nRequired if the name of the object is set as the identifier. This attribute is optional when the object GUID is specified as the identifier.\n 1. LIVEBOARD\n 2. ANSWERS\n 3. LOGICAL_TABLE for any data object such as table, worksheet or view.\n 4. LOGICAL_COLUMN for a column of any data object such as tables, worksheets or views.", "nullable": true @@ -18427,6 +19008,8 @@ "CAN_MODIFY_FOLDERS", "CAN_MANAGE_VARIABLES", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "PREVIEW_DOCUMENT_SEARCH", "CAN_SETUP_VERSION_CONTROL", "CAN_DOWNLOAD_VISUALS", @@ -18982,7 +19565,8 @@ "ANSWER", "LOGICAL_TABLE", "LOGICAL_COLUMN", - "CONNECTION" + "CONNECTION", + "COLLECTION" ], "description": " Type of metadata.\n \n\nType of metadata. Required if the name of the object is set as the identifier. This attribute is optional when the object GUID is specified as the identifier.", "nullable": true @@ -19012,6 +19596,15 @@ "NO_ACCESS" ], "description": "Type of access to the shared object" + }, + "content_share_mode": { + "type": "string", + "enum": [ + "READ_ONLY", + "MODIFY" + ], + "description": "Content share mode for collections. Controls access to objects within the collection. Only applicable when sharing COLLECTION metadata type.", + "nullable": true } } }, @@ -19317,7 +19910,8 @@ "GOOGLE_SHEETS", "FALCON", "FALCON_ONPREM", - "CLICKHOUSE" + "CLICKHOUSE", + "IOMETE" ], "description": "Type of data warehouse." }, @@ -19477,6 +20071,8 @@ "CAN_MANAGE_VARIABLES", "CAN_MODIFY_FOLDERS", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "CAN_SETUP_VERSION_CONTROL", "PREVIEW_THOUGHTSPOT_SAGE", "CAN_MANAGE_WEBHOOKS", @@ -19601,7 +20197,8 @@ "page_size": { "type": "string", "enum": [ - "A4" + "A4", + "TAB_BASED" ], "description": "Page size.", "nullable": true @@ -19937,7 +20534,8 @@ "page_size": { "type": "string", "enum": [ - "A4" + "A4", + "TAB_BASED" ], "description": "Page size.", "nullable": true @@ -21610,6 +22208,36 @@ "metadata_identifier" ] }, + "ConfigureAuthSettingsRequest": { + "type": "object", + "properties": { + "auth_type": { + "description": "Type of authentication mechanism to configure. Currently supports TRUSTED_AUTH.", + "type": "string", + "enum": [ + "TRUSTED_AUTH" + ] + }, + "cluster_preferences": { + "description": "Cluster-level authentication preferences. Omit to leave the existing cluster setting unchanged.", + "allOf": [ + { + "$ref": "#/components/schemas/AuthClusterPreferencesInput" + } + ] + }, + "org_preferences": { + "description": "Org-level authentication preferences. Each entry identifies an org and the desired status. Omit to leave existing org settings unchanged.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthOrgPreferenceInput" + } + } + }, + "required": [ + "auth_type" + ] + }, "GetCustomAccessTokenRequest": { "type": "object", "properties": { @@ -21864,6 +22492,29 @@ } } }, + "SearchAuthSettingsRequest": { + "type": "object", + "properties": { + "auth_type": { + "description": "Type of authentication mechanism to retrieve settings for. Currently supports TRUSTED_AUTH.", + "type": "string", + "enum": [ + "TRUSTED_AUTH" + ] + }, + "scope": { + "description": "Scope of auth settings to retrieve. When absent, both cluster and org settings are returned (subject to caller privileges). Set to CLUSTER to retrieve only cluster-level settings, or ORG to retrieve only org-level settings.", + "type": "string", + "enum": [ + "CLUSTER", + "ORG" + ] + } + }, + "required": [ + "auth_type" + ] + }, "ValidateTokenRequest": { "type": "object", "properties": { @@ -22259,7 +22910,8 @@ "GOOGLE_SHEETS", "FALCON", "FALCON_ONPREM", - "CLICKHOUSE" + "CLICKHOUSE", + "IOMETE" ] }, "data_warehouse_config": { @@ -22365,7 +23017,8 @@ "GOOGLE_SHEETS", "FALCON", "FALCON_ONPREM", - "CLICKHOUSE" + "CLICKHOUSE", + "IOMETE" ] } }, @@ -22493,6 +23146,20 @@ "connection_identifier" ] }, + "UpdateConnectionStatusRequest": { + "type": "object", + "properties": { + "status": { + "description": "Status to set for the connection. Use ACTIVATED to enable the connection or DEACTIVATED to disable it.", + "default": "ACTIVATED", + "type": "string", + "enum": [ + "ACTIVATED", + "DEACTIVATED" + ] + } + } + }, "UpdateConnectionV2Request": { "type": "object", "properties": { @@ -23207,6 +23874,8 @@ "CAN_MODIFY_FOLDERS", "CAN_MANAGE_VARIABLES", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "PREVIEW_DOCUMENT_SEARCH", "CAN_SETUP_VERSION_CONTROL", "CAN_DOWNLOAD_VISUALS", @@ -23363,6 +24032,8 @@ "CAN_MODIFY_FOLDERS", "CAN_MANAGE_VARIABLES", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "CAN_SETUP_VERSION_CONTROL", "CAN_MANAGE_WEBHOOKS", "CAN_DOWNLOAD_VISUALS", @@ -23500,6 +24171,8 @@ "CAN_MODIFY_FOLDERS", "CAN_MANAGE_VARIABLES", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "PREVIEW_DOCUMENT_SEARCH", "CAN_SETUP_VERSION_CONTROL", "CAN_DOWNLOAD_VISUALS", @@ -24489,6 +25162,27 @@ "$ref": "#/components/schemas/RegionalSettingsInput" } ] + }, + "png_options": { + "description": "Options for PNG export.
Beta Version: 26.6.0.cl or later", + "allOf": [ + { + "$ref": "#/components/schemas/AnswerPngOptionsInput" + } + ] + }, + "personalised_view_identifier": { + "description": "GUID or name of the personalised view of the Answer object.
Beta Version: 26.6.0.cl or later", + "type": "string" + }, + "type": { + "description": "Type of the answer being exported.
Beta Version: 26.6.0.cl or later", + "default": "SAVED", + "type": "string", + "enum": [ + "SAVED", + "PINNED" + ] } } }, @@ -24628,6 +25322,8 @@ "CAN_MANAGE_VARIABLES", "CAN_MODIFY_FOLDERS", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "CAN_SETUP_VERSION_CONTROL", "PREVIEW_THOUGHTSPOT_SAGE", "CAN_MANAGE_WEBHOOKS", @@ -24724,6 +25420,8 @@ "CAN_VIEW_FOLDERS", "CAN_MODIDY_FOLDERS", "CAN_MANAGE_VARIABLES", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "PREVIEW_DOCUMENT_SEARCH", "CAN_SETUP_VERSION_CONTROL", "CAN_MANAGE_WEBHOOKS", @@ -24815,6 +25513,8 @@ "CAN_MODIFY_FOLDERS", "CAN_MANAGE_VARIABLES", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "PREVIEW_DOCUMENT_SEARCH", "PREVIEW_THOUGHTSPOT_SAGE", "CAN_MANAGE_WEBHOOKS", @@ -26413,7 +27113,8 @@ "ANSWER", "LOGICAL_TABLE", "LOGICAL_COLUMN", - "CONNECTION" + "CONNECTION", + "COLLECTION" ] } }, @@ -26548,14 +27249,15 @@ "type": "object", "properties": { "metadata_type": { - "description": "Type of metadata. Required if identifier in metadata_identifies is a name.\n1. Liveboard\n2. Answers\n3. LOGICAL_TABLE for any data object such as table, worksheet or view.\n4. LOGICAL_COLUMN\n5. Connection", + "description": "Type of metadata. Required if identifier in metadata_identifies is a name.\n1. Liveboard\n2. Answers\n3. LOGICAL_TABLE for any data object such as table, worksheet or view.\n4. LOGICAL_COLUMN\n5. Connection\n6. Collection", "type": "string", "enum": [ "LIVEBOARD", "ANSWER", "LOGICAL_TABLE", "LOGICAL_COLUMN", - "CONNECTION" + "CONNECTION", + "COLLECTION" ] }, "metadata_identifiers": { @@ -27251,6 +27953,8 @@ "CAN_MODIFY_FOLDERS", "CAN_MANAGE_VARIABLES", "CAN_VIEW_FOLDERS", + "CAN_MANAGE_AGENTSPOT", + "CAN_ACCESS_AGENTSPOT", "CAN_SETUP_VERSION_CONTROL", "CAN_MANAGE_WEBHOOKS", "CAN_DOWNLOAD_VISUALS", diff --git a/sdks/java/.openapi-generator/FILES b/sdks/java/.openapi-generator/FILES index ac1ecb578..5dc6e5943 100644 --- a/sdks/java/.openapi-generator/FILES +++ b/sdks/java/.openapi-generator/FILES @@ -20,10 +20,17 @@ docs/AgentConversation.md docs/AiApi.md docs/AnswerContent.md docs/AnswerDataResponse.md +docs/AnswerPngOptionsInput.md docs/AssignChangeAuthorRequest.md docs/AssignTagRequest.md docs/AssociateMetadataInput.md docs/AssociateMetadataInputCreate.md +docs/AuthClusterPreferences.md +docs/AuthClusterPreferencesInput.md +docs/AuthOrgInfo.md +docs/AuthOrgPreference.md +docs/AuthOrgPreferenceInput.md +docs/AuthSettingsAccessToken.md docs/Authentication.md docs/AuthenticationApi.md docs/AuthenticationInput.md @@ -70,6 +77,7 @@ docs/CommitResponse.md docs/CommiterType.md docs/CommunicationChannelPreferencesResponse.md docs/CommunicationChannelValidateResponse.md +docs/ConfigureAuthSettingsRequest.md docs/ConfigureCommunicationChannelPreferencesRequest.md docs/ConfigureSecuritySettingsRequest.md docs/ConnectionConfigurationResponse.md @@ -303,6 +311,8 @@ docs/SchemaObject.md docs/Scope.md docs/ScriptSrcUrls.md docs/ScriptSrcUrlsInput.md +docs/SearchAuthSettingsRequest.md +docs/SearchAuthSettingsResponse.md docs/SearchCalendarsRequest.md docs/SearchChannelHistoryRequest.md docs/SearchChannelHistoryResponse.md @@ -382,6 +392,7 @@ docs/UpdateColumnSecurityRulesRequest.md docs/UpdateConfigRequest.md docs/UpdateConnectionConfigurationRequest.md docs/UpdateConnectionRequest.md +docs/UpdateConnectionStatusRequest.md docs/UpdateConnectionV2Request.md docs/UpdateCustomActionRequest.md docs/UpdateEmailCustomizationRequest.md @@ -413,6 +424,7 @@ docs/ValueScopeInput.md docs/Variable.md docs/VariableApi.md docs/VariableDetailInput.md +docs/VariableOrgInfo.md docs/VariablePutAssignmentInput.md docs/VariableUpdateAssignmentInput.md docs/VariableUpdateScopeInput.md @@ -513,10 +525,17 @@ src/main/java/com/thoughtspot/client/model/ActivateUserRequest.java src/main/java/com/thoughtspot/client/model/AgentConversation.java src/main/java/com/thoughtspot/client/model/AnswerContent.java src/main/java/com/thoughtspot/client/model/AnswerDataResponse.java +src/main/java/com/thoughtspot/client/model/AnswerPngOptionsInput.java src/main/java/com/thoughtspot/client/model/AssignChangeAuthorRequest.java src/main/java/com/thoughtspot/client/model/AssignTagRequest.java src/main/java/com/thoughtspot/client/model/AssociateMetadataInput.java src/main/java/com/thoughtspot/client/model/AssociateMetadataInputCreate.java +src/main/java/com/thoughtspot/client/model/AuthClusterPreferences.java +src/main/java/com/thoughtspot/client/model/AuthClusterPreferencesInput.java +src/main/java/com/thoughtspot/client/model/AuthOrgInfo.java +src/main/java/com/thoughtspot/client/model/AuthOrgPreference.java +src/main/java/com/thoughtspot/client/model/AuthOrgPreferenceInput.java +src/main/java/com/thoughtspot/client/model/AuthSettingsAccessToken.java src/main/java/com/thoughtspot/client/model/Authentication.java src/main/java/com/thoughtspot/client/model/AuthenticationInput.java src/main/java/com/thoughtspot/client/model/Author.java @@ -561,6 +580,7 @@ src/main/java/com/thoughtspot/client/model/CommitResponse.java src/main/java/com/thoughtspot/client/model/CommiterType.java src/main/java/com/thoughtspot/client/model/CommunicationChannelPreferencesResponse.java src/main/java/com/thoughtspot/client/model/CommunicationChannelValidateResponse.java +src/main/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequest.java src/main/java/com/thoughtspot/client/model/ConfigureCommunicationChannelPreferencesRequest.java src/main/java/com/thoughtspot/client/model/ConfigureSecuritySettingsRequest.java src/main/java/com/thoughtspot/client/model/ConnectionConfigurationResponse.java @@ -779,6 +799,8 @@ src/main/java/com/thoughtspot/client/model/SchemaObject.java src/main/java/com/thoughtspot/client/model/Scope.java src/main/java/com/thoughtspot/client/model/ScriptSrcUrls.java src/main/java/com/thoughtspot/client/model/ScriptSrcUrlsInput.java +src/main/java/com/thoughtspot/client/model/SearchAuthSettingsRequest.java +src/main/java/com/thoughtspot/client/model/SearchAuthSettingsResponse.java src/main/java/com/thoughtspot/client/model/SearchCalendarsRequest.java src/main/java/com/thoughtspot/client/model/SearchChannelHistoryRequest.java src/main/java/com/thoughtspot/client/model/SearchChannelHistoryResponse.java @@ -854,6 +876,7 @@ src/main/java/com/thoughtspot/client/model/UpdateColumnSecurityRulesRequest.java src/main/java/com/thoughtspot/client/model/UpdateConfigRequest.java src/main/java/com/thoughtspot/client/model/UpdateConnectionConfigurationRequest.java src/main/java/com/thoughtspot/client/model/UpdateConnectionRequest.java +src/main/java/com/thoughtspot/client/model/UpdateConnectionStatusRequest.java src/main/java/com/thoughtspot/client/model/UpdateConnectionV2Request.java src/main/java/com/thoughtspot/client/model/UpdateCustomActionRequest.java src/main/java/com/thoughtspot/client/model/UpdateEmailCustomizationRequest.java @@ -883,6 +906,7 @@ src/main/java/com/thoughtspot/client/model/ValidateTokenRequest.java src/main/java/com/thoughtspot/client/model/ValueScopeInput.java src/main/java/com/thoughtspot/client/model/Variable.java src/main/java/com/thoughtspot/client/model/VariableDetailInput.java +src/main/java/com/thoughtspot/client/model/VariableOrgInfo.java src/main/java/com/thoughtspot/client/model/VariablePutAssignmentInput.java src/main/java/com/thoughtspot/client/model/VariableUpdateAssignmentInput.java src/main/java/com/thoughtspot/client/model/VariableUpdateScopeInput.java @@ -948,10 +972,17 @@ src/test/java/com/thoughtspot/client/model/ActivateUserRequestTest.java src/test/java/com/thoughtspot/client/model/AgentConversationTest.java src/test/java/com/thoughtspot/client/model/AnswerContentTest.java src/test/java/com/thoughtspot/client/model/AnswerDataResponseTest.java +src/test/java/com/thoughtspot/client/model/AnswerPngOptionsInputTest.java src/test/java/com/thoughtspot/client/model/AssignChangeAuthorRequestTest.java src/test/java/com/thoughtspot/client/model/AssignTagRequestTest.java src/test/java/com/thoughtspot/client/model/AssociateMetadataInputCreateTest.java src/test/java/com/thoughtspot/client/model/AssociateMetadataInputTest.java +src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesInputTest.java +src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesTest.java +src/test/java/com/thoughtspot/client/model/AuthOrgInfoTest.java +src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceInputTest.java +src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceTest.java +src/test/java/com/thoughtspot/client/model/AuthSettingsAccessTokenTest.java src/test/java/com/thoughtspot/client/model/AuthenticationInputTest.java src/test/java/com/thoughtspot/client/model/AuthenticationTest.java src/test/java/com/thoughtspot/client/model/AuthorMetadataTypeInputTest.java @@ -996,6 +1027,7 @@ src/test/java/com/thoughtspot/client/model/CommitResponseTest.java src/test/java/com/thoughtspot/client/model/CommiterTypeTest.java src/test/java/com/thoughtspot/client/model/CommunicationChannelPreferencesResponseTest.java src/test/java/com/thoughtspot/client/model/CommunicationChannelValidateResponseTest.java +src/test/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequestTest.java src/test/java/com/thoughtspot/client/model/ConfigureCommunicationChannelPreferencesRequestTest.java src/test/java/com/thoughtspot/client/model/ConfigureSecuritySettingsRequestTest.java src/test/java/com/thoughtspot/client/model/ConnectionConfigurationResponseTest.java @@ -1214,6 +1246,8 @@ src/test/java/com/thoughtspot/client/model/SchemaObjectTest.java src/test/java/com/thoughtspot/client/model/ScopeTest.java src/test/java/com/thoughtspot/client/model/ScriptSrcUrlsInputTest.java src/test/java/com/thoughtspot/client/model/ScriptSrcUrlsTest.java +src/test/java/com/thoughtspot/client/model/SearchAuthSettingsRequestTest.java +src/test/java/com/thoughtspot/client/model/SearchAuthSettingsResponseTest.java src/test/java/com/thoughtspot/client/model/SearchCalendarsRequestTest.java src/test/java/com/thoughtspot/client/model/SearchChannelHistoryRequestTest.java src/test/java/com/thoughtspot/client/model/SearchChannelHistoryResponseTest.java @@ -1289,6 +1323,7 @@ src/test/java/com/thoughtspot/client/model/UpdateColumnSecurityRulesRequestTest. src/test/java/com/thoughtspot/client/model/UpdateConfigRequestTest.java src/test/java/com/thoughtspot/client/model/UpdateConnectionConfigurationRequestTest.java src/test/java/com/thoughtspot/client/model/UpdateConnectionRequestTest.java +src/test/java/com/thoughtspot/client/model/UpdateConnectionStatusRequestTest.java src/test/java/com/thoughtspot/client/model/UpdateConnectionV2RequestTest.java src/test/java/com/thoughtspot/client/model/UpdateCustomActionRequestTest.java src/test/java/com/thoughtspot/client/model/UpdateEmailCustomizationRequestTest.java @@ -1317,6 +1352,7 @@ src/test/java/com/thoughtspot/client/model/ValidateMergeRequestTest.java src/test/java/com/thoughtspot/client/model/ValidateTokenRequestTest.java src/test/java/com/thoughtspot/client/model/ValueScopeInputTest.java src/test/java/com/thoughtspot/client/model/VariableDetailInputTest.java +src/test/java/com/thoughtspot/client/model/VariableOrgInfoTest.java src/test/java/com/thoughtspot/client/model/VariablePutAssignmentInputTest.java src/test/java/com/thoughtspot/client/model/VariableTest.java src/test/java/com/thoughtspot/client/model/VariableUpdateAssignmentInputTest.java diff --git a/sdks/java/README.md b/sdks/java/README.md index b592e350a..7157e0d42 100644 --- a/sdks/java/README.md +++ b/sdks/java/README.md @@ -14,7 +14,7 @@ Add this dependency to your project's POM: com.thoughtspot rest-api-sdk - 2.24.0 + 2.25.0 compile ``` @@ -29,7 +29,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.thoughtspot:rest-api-sdk:2.24.0" + implementation "com.thoughtspot:rest-api-sdk:2.25.0" } ``` diff --git a/sdks/java/api/openapi.yaml b/sdks/java/api/openapi.yaml index 6e8268ba2..22135101c 100644 --- a/sdks/java/api/openapi.yaml +++ b/sdks/java/api/openapi.yaml @@ -1397,6 +1397,154 @@ paths: x-content-type: application/json x-accepts: - application/json + /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response: + post: + description: "\nStops an in-progress agent conversation response. \n Version:\ + \ 26.6.0.cl or later\n\n\nVersion: 26.6.0.cl or later\n\n\nStops an\ + \ in-progress agent response for the specified conversation. Use this endpoint\ + \ to cancel a response that is actively being generated — for example, when\ + \ the user navigates away, reformulates their question, or no longer needs\ + \ the current result.\n\nRequires `CAN_USE_SPOTTER` privilege and access to\ + \ the specified conversation.\n\n#### Usage guidelines\n\nThe request must\ + \ include:\n\n- `conversation_identifier` *(path parameter)*: the unique ID\ + \ of the conversation whose active response should be stopped, as returned\ + \ by `createAgentConversation`\n\nA successful request returns an empty `204\ + \ No Content` response. If there is no active response in progress at the\ + \ time of the call, the request is still treated as successful.\n\nAfter stopping\ + \ a response, the conversation session remains active. You can continue sending\ + \ messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`.\n\ + \n#### Example request\n\n```bash\nPOST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response\n\ + ```\n\n#### Typical usage scenario\n\nThis endpoint is useful when integrating\ + \ Spotter into a chat UI where users can cancel a long-running query. For\ + \ example:\n\n1. User sends a message via `sendAgentConversationMessageStreaming`.\n\ + 2. User clicks a \"Stop generating\" button while the response is streaming.\n\ + 3. Your client calls `stopConversation` with the active `conversation_identifier`.\n\ + 4. The stream is terminated and the user can ask a new question.\n\n#### Error\ + \ responses\n\n| Code | Description |\n|------|-------------|\n| 401 | Unauthorized\ + \ — authentication token is missing, expired, or invalid. |\n| 403 | Forbidden\ + \ — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks\ + \ access to the specified conversation. |\n\n> ###### Note:\n>\n> - Calling\ + \ this endpoint when no response is in progress does not return an error.\n\ + > - The conversation context is preserved after stopping — previous messages\ + \ and answers remain accessible.\n> - Available from version 26.6.0.cl and\ + \ later.\n> - This endpoint requires Spotter — please contact ThoughtSpot\ + \ Support to enable Spotter on your cluster.\n> - This feature is available\ + \ only for **Spotter 3** (`SPOTTER3`) version.\n\n\n\n\n\n" + operationId: stopConversation + parameters: + - description: Unique identifier of the conversation to stop. + explode: false + in: path + name: conversation_identifier + required: true + schema: + type: string + style: simple + responses: + "204": + description: Successfully stopped the in-progress agent conversation response + for the given. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Operation failed + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized access. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Forbidden access. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Operation failed + tags: + - AI + - ThoughtSpotRest + x-accepts: + - application/json + /api/rest/2.0/auth/configure: + post: + description: |2+ + + Version: 26.6.0.cl or later + + + Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. + + #### Required privileges + + Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. + + #### Usage guidelines + + Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. + - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. + - `DISABLED` — Revokes the existing cluster-level access token. + + Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. + - `ENABLED` — Generates a new org-level access token if one does not exist. + - `DISABLED` — Revokes the existing org-level access token for that Org. + + Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. + + **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + + + + + + operationId: configureAuthSettings + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigureAuthSettingsRequest' + required: true + responses: + "204": + description: Trusted authentication settings configured successfully. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Invalid request. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized access. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Forbidden access. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unexpected error + tags: + - Authentication + - ThoughtSpotRest + x-content-type: application/json + x-accepts: + - application/json /api/rest/2.0/auth/session/user: get: description: |2+ @@ -1959,6 +2107,94 @@ paths: x-content-type: application/json x-accepts: - application/json + /api/rest/2.0/auth/search: + post: + description: |2+ + + Version: 26.6.0.cl or later + + + Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. + + #### Required privileges + + Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. + + #### Usage guidelines + + Use `scope` to control which level of settings are returned: + - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. + - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. + - If `scope` is omitted, both cluster and org-level settings are returned based on the caller's org context and feature availability. + + The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. + + **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + + + + + + operationId: searchAuthSettings + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SearchAuthSettingsRequest' + required: true + responses: + "200": + content: + application/json: + examples: + example_1: + value: + auth_type: TRUSTED_AUTH + cluster_preferences: + auth_status: ENABLED + access_tokens: + - key: a1b2c3d4-e5f6-7890-abcd-ef1234567890 + org_preferences: + - org: + id: 583464508 + name: sales_org + auth_status: ENABLED + access_tokens: + - key: f9e8d7c6-b5a4-3210-fedc-ba9876543210 + schema: + $ref: '#/components/schemas/SearchAuthSettingsResponse' + description: Authentication settings retrieved successfully. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Invalid request. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized access. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Forbidden access. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unexpected error + tags: + - Authentication + - ThoughtSpotRest + x-content-type: application/json + x-accepts: + - application/json /api/rest/2.0/auth/token/validate: post: description: |2+ @@ -3309,6 +3545,84 @@ paths: x-content-type: application/json x-accepts: - application/json + /api/rest/2.0/connections/{connection_identifier}/status: + post: + description: |2+ + + Version: 26.6.0.cl or later + + + Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. + + Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. + + #### Usage guidelines + + To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. + + - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. + - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting "status": "ACTIVATED". + + + + + + + operationId: updateConnectionStatus + parameters: + - description: Unique ID or name of the connection. + explode: false + in: path + name: connection_identifier + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateConnectionStatusRequest' + required: true + responses: + "204": + description: Connection status updated successfully. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Invalid request. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized access. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Forbidden access. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Object not found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unexpected error + tags: + - Connections + - ThoughtSpotRest + x-content-type: application/json + x-accepts: + - application/json /api/rest/2.0/connections/{connection_identifier}/update: post: description: "\n Version: 10.4.0.cl or later\n\n\nUpdates a connection object.\n\ @@ -11246,6 +11560,33 @@ paths: created_by: id: 7d5e9f2a-4b8c-4d6e-9a3b-5c7e1f4a8b2d name: mike_rodriguez + example_3: + description: Webhook with GCP GCS storage destination + value: + id: c9d8e7f6-a5b4-4321-9876-fedcba012345 + name: GCS Storage Webhook + description: Webhook that uploads payloads to a GCS bucket + org: + id: "0" + name: Primary + url: https://api.example.com/webhooks + events: + - LIVEBOARD_SCHEDULE + storage_destination: + storage_type: GCP_GCS + storage_config: + gcp_gcs_config: + bucket_name: my-webhook-files + service_account_email: my-sa@my-project.iam.gserviceaccount.com + path_prefix: webhooks/ + creation_time_in_millis: 1724279630456 + modification_time_in_millis: 1724279630456 + created_by: + id: 3a2b1c4d-5e6f-7890-abcd-ef0123456789 + name: priya_sharma + last_modified_by: + id: 3a2b1c4d-5e6f-7890-abcd-ef0123456789 + name: priya_sharma schema: $ref: '#/components/schemas/WebhookResponse' description: Webhook configuration created successfully @@ -11641,6 +11982,127 @@ components: - valid_for_user_id - valid_for_username type: object + SearchAuthSettingsResponse: + description: Response for searchAuthSettings. Contains auth type and cluster/org-level + preferences. + example: + auth_type: TRUSTED_AUTH + cluster_preferences: + auth_status: ENABLED + access_tokens: + - key: key + - key: key + org_preferences: + - org: + name: name + id: 0 + auth_status: ENABLED + access_tokens: + - key: key + - key: key + - org: + name: name + id: 0 + auth_status: ENABLED + access_tokens: + - key: key + - key: key + properties: + auth_type: + description: Type of authentication mechanism returned. + enum: + - TRUSTED_AUTH + nullable: true + type: string + cluster_preferences: + $ref: '#/components/schemas/AuthClusterPreferences' + org_preferences: + description: Org-level authentication configurations. Present when org scope + was requested and per-org auth feature is enabled. + items: + $ref: '#/components/schemas/AuthOrgPreference' + nullable: true + type: array + type: object + AuthClusterPreferences: + description: Cluster-level authentication preferences. + example: + auth_status: ENABLED + access_tokens: + - key: key + - key: key + properties: + auth_status: + description: Whether authentication is enabled or disabled at the cluster + level. + enum: + - ENABLED + - DISABLED + nullable: true + type: string + access_tokens: + description: Cluster-level access tokens. Absent when no token is configured. + items: + $ref: '#/components/schemas/AuthSettingsAccessToken' + nullable: true + type: array + type: object + AuthSettingsAccessToken: + description: An auth settings access token. + example: + key: key + properties: + key: + description: The plaintext token key value. + type: string + required: + - key + type: object + AuthOrgPreference: + description: Org-level authentication preferences for a single org. + example: + org: + name: name + id: 0 + auth_status: ENABLED + access_tokens: + - key: key + - key: key + properties: + org: + $ref: '#/components/schemas/AuthOrgInfo' + auth_status: + description: Whether authentication is enabled or disabled for this org. + enum: + - ENABLED + - DISABLED + nullable: true + type: string + access_tokens: + description: Org-level access tokens. Absent when no token is configured + or the feature flag is off. + items: + $ref: '#/components/schemas/AuthSettingsAccessToken' + nullable: true + type: array + type: object + AuthOrgInfo: + description: Org identifier returned in auth settings search results. + example: + name: name + id: 0 + properties: + id: + description: Unique identifier of the org. + format: int32 + type: integer + name: + description: Name of the org. + nullable: true + type: string + required: + - id + type: object RiseSetter: properties: field: @@ -12387,6 +12849,7 @@ components: - style_src_urls - style_src_urls enable_partitioned_cookies: true + trusted_auth_status: ENABLED org_preferences: - cors_whitelisted_urls: - cors_whitelisted_urls @@ -12401,6 +12864,7 @@ components: org: name: name id: 0 + trusted_auth_status: ENABLED - cors_whitelisted_urls: - cors_whitelisted_urls - cors_whitelisted_urls @@ -12414,6 +12878,7 @@ components: org: name: name id: 0 + trusted_auth_status: ENABLED properties: cluster_preferences: $ref: '#/components/schemas/SecuritySettingsClusterPreferences' @@ -12465,6 +12930,7 @@ components: - style_src_urls - style_src_urls enable_partitioned_cookies: true + trusted_auth_status: ENABLED properties: enable_partitioned_cookies: description: Support embedded access when third-party cookies are blocked. @@ -12486,6 +12952,14 @@ components: type: array non_embed_access: $ref: '#/components/schemas/ClusterNonEmbedAccess' + trusted_auth_status: + description: "Trusted authentication status at the cluster level. \n Version:\ + \ 26.6.0.cl or later\n" + enum: + - ENABLED + - DISABLED + nullable: true + type: string type: object CspSettings: description: CSP (Content Security Policy) settings. @@ -12627,6 +13101,7 @@ components: org: name: name id: 0 + trusted_auth_status: ENABLED properties: org: $ref: '#/components/schemas/SecuritySettingsOrgDetails' @@ -12638,6 +13113,14 @@ components: type: array non_embed_access: $ref: '#/components/schemas/OrgNonEmbedAccess' + trusted_auth_status: + description: "Trusted authentication status for this org. \n Version: 26.6.0.cl\ + \ or later\n" + enum: + - ENABLED + - DISABLED + nullable: true + type: string type: object SecuritySettingsOrgDetails: description: Org details for security settings. @@ -13878,6 +14361,27 @@ components: nullable: true type: string type: object + AnswerPngOptionsInput: + properties: + x_resolution: + description: "Desired width of the answer image in pixels. Ex. 1920 for\ + \ Full HD image \n Version: 26.6.0.cl or later\n" + format: int32 + nullable: true + type: integer + y_resolution: + description: "Desired height of the answer image in pixels. Ex. 1080 for\ + \ Full HD image \n Version: 26.6.0.cl or later\n" + format: int32 + nullable: true + type: integer + scaling: + description: "The scale of the image in percentage. Ex. 100 for 100% scale.\ + \ \n Version: 26.6.0.cl or later\n" + format: int32 + nullable: true + type: integer + type: object PermissionOfPrincipalsResponse: example: principal_permission_details: "{}" @@ -13956,6 +14460,7 @@ components: - LOGICAL_TABLE - LOGICAL_COLUMN - CONNECTION + - COLLECTION nullable: true type: string identifier: @@ -14789,6 +15294,7 @@ components: - FALCON - FALCON_ONPREM - CLICKHOUSE + - IOMETE type: string data_warehouse_objects: $ref: '#/components/schemas/DataWarehouseObjects' @@ -15365,6 +15871,8 @@ components: - CAN_VIEW_FOLDERS - CAN_MODIDY_FOLDERS - CAN_MANAGE_VARIABLES + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - PREVIEW_DOCUMENT_SEARCH - CAN_SETUP_VERSION_CONTROL - CAN_MANAGE_WEBHOOKS @@ -16074,6 +16582,9 @@ components: description: Variable object example: variable_type: CONNECTION_PROPERTY + org: + name: name + id: 6 values: - principal_identifier: principal_identifier model_identifier: model_identifier @@ -16123,6 +16634,8 @@ components: $ref: '#/components/schemas/VariableValue' nullable: true type: array + org: + $ref: '#/components/schemas/VariableOrgInfo' required: - id - name @@ -16178,6 +16691,22 @@ components: required: - org_identifier type: object + VariableOrgInfo: + example: + name: name + id: 6 + properties: + id: + description: ID of the Org. + format: int32 + type: integer + name: + description: Name of the Org. + type: string + required: + - id + - name + type: object SortOption: properties: field_name: @@ -16326,6 +16855,7 @@ components: - FALCON - FALCON_ONPREM - CLICKHOUSE + - IOMETE nullable: true type: string policy_type: @@ -17760,6 +18290,40 @@ components: required: - id type: object + AuthClusterPreferencesInput: + description: Input for cluster-level auth configuration. + properties: + auth_status: + description: "Enable or disable authentication at the cluster level. When\ + \ enabled, a new token is generated if one does not exist. When disabled,\ + \ the existing token is revoked." + enum: + - ENABLED + - DISABLED + nullable: true + type: string + type: object + AuthOrgPreferenceInput: + description: Input for org-level auth configuration. + example: + org_identifier: org_identifier + auth_status: ENABLED + properties: + org_identifier: + description: Unique ID or name of the org to configure. + type: string + auth_status: + description: "Enable or disable authentication for this org. When enabled,\ + \ a new token is generated if one does not exist. When disabled, the existing\ + \ token is revoked." + enum: + - ENABLED + - DISABLED + nullable: true + type: string + required: + - org_identifier + type: object ResponseActivationURL: description: The object representation with activation link. example: @@ -18335,6 +18899,7 @@ components: - LOGICAL_TABLE - LOGICAL_COLUMN - CONNECTION + - COLLECTION nullable: true type: string identifier: @@ -18412,6 +18977,8 @@ components: - CAN_MODIFY_FOLDERS - CAN_MANAGE_VARIABLES - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - PREVIEW_DOCUMENT_SEARCH - CAN_SETUP_VERSION_CONTROL - CAN_DOWNLOAD_VISUALS @@ -18998,6 +19565,7 @@ components: - LOGICAL_TABLE - LOGICAL_COLUMN - CONNECTION + - COLLECTION nullable: true type: string identifier: @@ -19012,6 +19580,7 @@ components: identifier: identifier type: USER share_mode: READ_ONLY + content_share_mode: READ_ONLY properties: principal: $ref: '#/components/schemas/PrincipalsInput' @@ -19022,6 +19591,15 @@ components: - MODIFY - NO_ACCESS type: string + content_share_mode: + description: Content share mode for collections. Controls access to objects + within the collection. Only applicable when sharing COLLECTION metadata + type. + enum: + - READ_ONLY + - MODIFY + nullable: true + type: string required: - principal - share_mode @@ -19343,6 +19921,7 @@ components: - FALCON - FALCON_ONPREM - CLICKHOUSE + - IOMETE type: string details: description: Details of the connection. @@ -19510,6 +20089,8 @@ components: - CAN_MANAGE_VARIABLES - CAN_MODIFY_FOLDERS - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - CAN_SETUP_VERSION_CONTROL - PREVIEW_THOUGHTSPOT_SAGE - CAN_MANAGE_WEBHOOKS @@ -19617,6 +20198,7 @@ components: description: Page size. enum: - A4 + - TAB_BASED nullable: true type: string truncate_table: @@ -19955,6 +20537,7 @@ components: description: Page size. enum: - A4 + - TAB_BASED nullable: true type: string truncate_table: @@ -21563,6 +22146,36 @@ components: - metadata_identifier - query type: object + ConfigureAuthSettingsRequest: + example: + auth_type: TRUSTED_AUTH + cluster_preferences: "" + org_preferences: + - org_identifier: org_identifier + auth_status: ENABLED + - org_identifier: org_identifier + auth_status: ENABLED + properties: + auth_type: + description: Type of authentication mechanism to configure. Currently supports + TRUSTED_AUTH. + enum: + - TRUSTED_AUTH + type: string + cluster_preferences: + allOf: + - $ref: '#/components/schemas/AuthClusterPreferencesInput' + description: Cluster-level authentication preferences. Omit to leave the + existing cluster setting unchanged. + org_preferences: + description: Org-level authentication preferences. Each entry identifies + an org and the desired status. Omit to leave existing org settings unchanged. + items: + $ref: '#/components/schemas/AuthOrgPreferenceInput' + type: array + required: + - auth_type + type: object GetCustomAccessTokenRequest: example: parameter_values: @@ -21893,6 +22506,29 @@ components: token: type: string type: object + SearchAuthSettingsRequest: + example: + auth_type: TRUSTED_AUTH + scope: CLUSTER + properties: + auth_type: + description: Type of authentication mechanism to retrieve settings for. + Currently supports TRUSTED_AUTH. + enum: + - TRUSTED_AUTH + type: string + scope: + description: "Scope of auth settings to retrieve. When absent, both cluster\ + \ and org settings are returned (subject to caller privileges). Set to\ + \ CLUSTER to retrieve only cluster-level settings, or ORG to retrieve\ + \ only org-level settings." + enum: + - CLUSTER + - ORG + type: string + required: + - auth_type + type: object ValidateTokenRequest: example: token: token @@ -22311,6 +22947,7 @@ components: - FALCON - FALCON_ONPREM - CLICKHOUSE + - IOMETE type: string data_warehouse_config: description: "Connection configuration attributes in JSON format. To create\ @@ -22456,6 +23093,7 @@ components: - FALCON - FALCON_ONPREM - CLICKHOUSE + - IOMETE type: string type: array record_offset: @@ -22582,6 +23220,19 @@ components: required: - connection_identifier type: object + UpdateConnectionStatusRequest: + example: + status: ACTIVATED + properties: + status: + default: ACTIVATED + description: Status to set for the connection. Use ACTIVATED to enable the + connection or DEACTIVATED to disable it. + enum: + - ACTIVATED + - DEACTIVATED + type: string + type: object UpdateConnectionV2Request: example: data_warehouse_config: "{}" @@ -23339,6 +23990,8 @@ components: - CAN_MODIFY_FOLDERS - CAN_MANAGE_VARIABLES - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - PREVIEW_DOCUMENT_SEARCH - CAN_SETUP_VERSION_CONTROL - CAN_DOWNLOAD_VISUALS @@ -23541,6 +24194,8 @@ components: - CAN_MODIFY_FOLDERS - CAN_MANAGE_VARIABLES - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - CAN_SETUP_VERSION_CONTROL - CAN_MANAGE_WEBHOOKS - CAN_DOWNLOAD_VISUALS @@ -23685,6 +24340,8 @@ components: - CAN_MODIFY_FOLDERS - CAN_MANAGE_VARIABLES - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - PREVIEW_DOCUMENT_SEARCH - CAN_SETUP_VERSION_CONTROL - CAN_DOWNLOAD_VISUALS @@ -24702,10 +25359,13 @@ components: example: runtime_filter: "{}" regional_settings: "" + png_options: "" metadata_identifier: metadata_identifier + personalised_view_identifier: personalised_view_identifier session_identifier: session_identifier runtime_sort: "{}" generation_number: 0 + type: SAVED runtime_param_override: "{}" file_format: CSV properties: @@ -24746,6 +25406,22 @@ components: - $ref: '#/components/schemas/RegionalSettingsInput' description: Options for specific region specific overrides to support date/number/string/currency formatting. + png_options: + allOf: + - $ref: '#/components/schemas/AnswerPngOptionsInput' + description: "Options for PNG export. \n Version: 26.6.0.cl or later\n" + personalised_view_identifier: + description: "GUID or name of the personalised view of the Answer object.\ + \ \n Version: 26.6.0.cl or later\n" + type: string + type: + default: SAVED + description: "Type of the answer being exported. \n Version: 26.6.0.cl or\ + \ later\n" + enum: + - SAVED + - PINNED + type: string type: object ExportLiveboardReportRequest: example: @@ -24926,6 +25602,8 @@ components: - CAN_MANAGE_VARIABLES - CAN_MODIFY_FOLDERS - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - CAN_SETUP_VERSION_CONTROL - PREVIEW_THOUGHTSPOT_SAGE - CAN_MANAGE_WEBHOOKS @@ -25033,6 +25711,8 @@ components: - CAN_VIEW_FOLDERS - CAN_MODIDY_FOLDERS - CAN_MANAGE_VARIABLES + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - PREVIEW_DOCUMENT_SEARCH - CAN_SETUP_VERSION_CONTROL - CAN_MANAGE_WEBHOOKS @@ -25118,6 +25798,8 @@ components: - CAN_MODIFY_FOLDERS - CAN_MANAGE_VARIABLES - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - PREVIEW_DOCUMENT_SEARCH - PREVIEW_THOUGHTSPOT_SAGE - CAN_MANAGE_WEBHOOKS @@ -26712,6 +27394,7 @@ components: - LOGICAL_TABLE - LOGICAL_COLUMN - CONNECTION + - COLLECTION type: string required: - principals @@ -26881,10 +27564,12 @@ components: identifier: identifier type: USER share_mode: READ_ONLY + content_share_mode: READ_ONLY - principal: identifier: identifier type: USER share_mode: READ_ONLY + content_share_mode: READ_ONLY visualization_identifiers: - visualization_identifiers - visualization_identifiers @@ -26903,12 +27588,14 @@ components: 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection + 6. Collection enum: - LIVEBOARD - ANSWER - LOGICAL_TABLE - LOGICAL_COLUMN - CONNECTION + - COLLECTION type: string metadata_identifiers: description: "Unique ID or name of metadata objects. Note: All the names\ @@ -27746,6 +28433,8 @@ components: - CAN_MODIFY_FOLDERS - CAN_MANAGE_VARIABLES - CAN_VIEW_FOLDERS + - CAN_MANAGE_AGENTSPOT + - CAN_ACCESS_AGENTSPOT - CAN_SETUP_VERSION_CONTROL - CAN_MANAGE_WEBHOOKS - CAN_DOWNLOAD_VISUALS @@ -28819,6 +29508,11 @@ x-roles: tags: - 26.5.0.cl description: Roles for version 26.5.0.cl +- name: 26.6.0.cl + id: 26.6.0.cl + tags: + - 26.6.0.cl + description: Roles for version 26.6.0.cl - name: 9.0.0.cl id: 9.0.0.cl tags: diff --git a/sdks/java/build.gradle b/sdks/java/build.gradle index 4ac11698c..d5ad6bdd0 100644 --- a/sdks/java/build.gradle +++ b/sdks/java/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'com.thoughtspot' -version = '2.24.0' +version = '2.25.0' buildscript { repositories { diff --git a/sdks/java/build.sbt b/sdks/java/build.sbt index 52265b6e2..5e03ac079 100644 --- a/sdks/java/build.sbt +++ b/sdks/java/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.thoughtspot", name := "rest-api-sdk", - version := "2.24.0", + version := "2.25.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/sdks/java/docs/AiApi.md b/sdks/java/docs/AiApi.md index b42fae870..d005dce59 100644 --- a/sdks/java/docs/AiApi.md +++ b/sdks/java/docs/AiApi.md @@ -17,6 +17,7 @@ All URIs are relative to *CLUSTER_URL* | [**sendMessage**](AiApi.md#sendMessage) | **POST** /api/rest/2.0/ai/conversation/{conversation_identifier}/converse | | [**setNLInstructions**](AiApi.md#setNLInstructions) | **POST** /api/rest/2.0/ai/instructions/set | | [**singleAnswer**](AiApi.md#singleAnswer) | **POST** /api/rest/2.0/ai/answer/create | +| [**stopConversation**](AiApi.md#stopConversation) | **POST** /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response | @@ -504,3 +505,39 @@ All URIs are relative to *CLUSTER_URL* | **403** | Forbidden access. | - | | **500** | Operation failed | - | + +# **stopConversation** +> stopConversation(conversationIdentifier) + + + + Stops an in-progress agent conversation response. Version: 26.6.0.cl or later <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **conversationIdentifier** | **String** + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Successfully stopped the in-progress agent conversation response for the given. | - | +| **400** | Operation failed | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **500** | Operation failed | - | + diff --git a/sdks/java/docs/AnswerPngOptionsInput.md b/sdks/java/docs/AnswerPngOptionsInput.md new file mode 100644 index 000000000..59a9754a2 --- /dev/null +++ b/sdks/java/docs/AnswerPngOptionsInput.md @@ -0,0 +1,19 @@ + + +# AnswerPngOptionsInput + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**xResolution** | **Integer** | Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or later | [optional] | +|**yResolution** | **Integer** | Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl or later | [optional] | +|**scaling** | **Integer** | The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later | [optional] | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/AuthClusterPreferences.md b/sdks/java/docs/AuthClusterPreferences.md new file mode 100644 index 000000000..e547e6b28 --- /dev/null +++ b/sdks/java/docs/AuthClusterPreferences.md @@ -0,0 +1,28 @@ + + +# AuthClusterPreferences + +Cluster-level authentication preferences. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**authStatus** | [**AuthStatusEnum**](#AuthStatusEnum) | Whether authentication is enabled or disabled at the cluster level. | [optional] | +|**accessTokens** | [**List<AuthSettingsAccessToken>**](AuthSettingsAccessToken.md) | Cluster-level access tokens. Absent when no token is configured. | [optional] | + + + +## Enum: AuthStatusEnum + +| Name | Value | +|---- | -----| +| ENABLED | "ENABLED" | +| DISABLED | "DISABLED" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/AuthClusterPreferencesInput.md b/sdks/java/docs/AuthClusterPreferencesInput.md new file mode 100644 index 000000000..9ff971fce --- /dev/null +++ b/sdks/java/docs/AuthClusterPreferencesInput.md @@ -0,0 +1,27 @@ + + +# AuthClusterPreferencesInput + +Input for cluster-level auth configuration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**authStatus** | [**AuthStatusEnum**](#AuthStatusEnum) | Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. | [optional] | + + + +## Enum: AuthStatusEnum + +| Name | Value | +|---- | -----| +| ENABLED | "ENABLED" | +| DISABLED | "DISABLED" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/AuthOrgInfo.md b/sdks/java/docs/AuthOrgInfo.md new file mode 100644 index 000000000..1c06d190e --- /dev/null +++ b/sdks/java/docs/AuthOrgInfo.md @@ -0,0 +1,19 @@ + + +# AuthOrgInfo + +Org identifier returned in auth settings search results. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Integer** | Unique identifier of the org. | | +|**name** | **String** | Name of the org. | [optional] | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/AuthOrgPreference.md b/sdks/java/docs/AuthOrgPreference.md new file mode 100644 index 000000000..8c29b5c84 --- /dev/null +++ b/sdks/java/docs/AuthOrgPreference.md @@ -0,0 +1,29 @@ + + +# AuthOrgPreference + +Org-level authentication preferences for a single org. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**org** | [**AuthOrgInfo**](AuthOrgInfo.md) | | [optional] | +|**authStatus** | [**AuthStatusEnum**](#AuthStatusEnum) | Whether authentication is enabled or disabled for this org. | [optional] | +|**accessTokens** | [**List<AuthSettingsAccessToken>**](AuthSettingsAccessToken.md) | Org-level access tokens. Absent when no token is configured or the feature flag is off. | [optional] | + + + +## Enum: AuthStatusEnum + +| Name | Value | +|---- | -----| +| ENABLED | "ENABLED" | +| DISABLED | "DISABLED" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/AuthOrgPreferenceInput.md b/sdks/java/docs/AuthOrgPreferenceInput.md new file mode 100644 index 000000000..f31532b8d --- /dev/null +++ b/sdks/java/docs/AuthOrgPreferenceInput.md @@ -0,0 +1,28 @@ + + +# AuthOrgPreferenceInput + +Input for org-level auth configuration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**orgIdentifier** | **String** | Unique ID or name of the org to configure. | | +|**authStatus** | [**AuthStatusEnum**](#AuthStatusEnum) | Enable or disable authentication for this org. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. | [optional] | + + + +## Enum: AuthStatusEnum + +| Name | Value | +|---- | -----| +| ENABLED | "ENABLED" | +| DISABLED | "DISABLED" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/AuthSettingsAccessToken.md b/sdks/java/docs/AuthSettingsAccessToken.md new file mode 100644 index 000000000..5388bcd9d --- /dev/null +++ b/sdks/java/docs/AuthSettingsAccessToken.md @@ -0,0 +1,18 @@ + + +# AuthSettingsAccessToken + +An auth settings access token. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The plaintext token key value. | | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/AuthenticationApi.md b/sdks/java/docs/AuthenticationApi.md index 31b40029e..b4428254e 100644 --- a/sdks/java/docs/AuthenticationApi.md +++ b/sdks/java/docs/AuthenticationApi.md @@ -4,6 +4,7 @@ All URIs are relative to *CLUSTER_URL* | Method | HTTP request | |------------- | ------------- | +| [**configureAuthSettings**](AuthenticationApi.md#configureAuthSettings) | **POST** /api/rest/2.0/auth/configure | | [**getCurrentUserInfo**](AuthenticationApi.md#getCurrentUserInfo) | **GET** /api/rest/2.0/auth/session/user | | [**getCurrentUserToken**](AuthenticationApi.md#getCurrentUserToken) | **GET** /api/rest/2.0/auth/session/token | | [**getCustomAccessToken**](AuthenticationApi.md#getCustomAccessToken) | **POST** /api/rest/2.0/auth/token/custom | @@ -12,9 +13,46 @@ All URIs are relative to *CLUSTER_URL* | [**login**](AuthenticationApi.md#login) | **POST** /api/rest/2.0/auth/session/login | | [**logout**](AuthenticationApi.md#logout) | **POST** /api/rest/2.0/auth/session/logout | | [**revokeToken**](AuthenticationApi.md#revokeToken) | **POST** /api/rest/2.0/auth/token/revoke | +| [**searchAuthSettings**](AuthenticationApi.md#searchAuthSettings) | **POST** /api/rest/2.0/auth/search | | [**validateToken**](AuthenticationApi.md#validateToken) | **POST** /api/rest/2.0/auth/token/validate | + +# **configureAuthSettings** +> configureAuthSettings(configureAuthSettingsRequest) + + + + Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **configureAuthSettingsRequest** | [**ConfigureAuthSettingsRequest**](ConfigureAuthSettingsRequest.md) + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Trusted authentication settings configured successfully. | - | +| **400** | Invalid request. | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **500** | Unexpected error | - | + # **getCurrentUserInfo** > User getCurrentUserInfo() @@ -294,6 +332,42 @@ null (empty response body) | **403** | Forbidden access. | - | | **500** | Unexpected error | - | + +# **searchAuthSettings** +> SearchAuthSettingsResponse searchAuthSettings(searchAuthSettingsRequest) + + + + Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller's org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **searchAuthSettingsRequest** | [**SearchAuthSettingsRequest**](SearchAuthSettingsRequest.md) + +### Return type + +[**SearchAuthSettingsResponse**](SearchAuthSettingsResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Authentication settings retrieved successfully. | - | +| **400** | Invalid request. | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **500** | Unexpected error | - | + # **validateToken** > TokenValidationResponse validateToken(validateTokenRequest) diff --git a/sdks/java/docs/ConfigureAuthSettingsRequest.md b/sdks/java/docs/ConfigureAuthSettingsRequest.md new file mode 100644 index 000000000..055e5174b --- /dev/null +++ b/sdks/java/docs/ConfigureAuthSettingsRequest.md @@ -0,0 +1,27 @@ + + +# ConfigureAuthSettingsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**authType** | [**AuthTypeEnum**](#AuthTypeEnum) | Type of authentication mechanism to configure. Currently supports TRUSTED_AUTH. | | +|**clusterPreferences** | [**AuthClusterPreferencesInput**](AuthClusterPreferencesInput.md) | Cluster-level authentication preferences. Omit to leave the existing cluster setting unchanged. | [optional] | +|**orgPreferences** | [**List<AuthOrgPreferenceInput>**](AuthOrgPreferenceInput.md) | Org-level authentication preferences. Each entry identifies an org and the desired status. Omit to leave existing org settings unchanged. | [optional] | + + + +## Enum: AuthTypeEnum + +| Name | Value | +|---- | -----| +| TRUSTED_AUTH | "TRUSTED_AUTH" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/ConnectionConfigurationResponse.md b/sdks/java/docs/ConnectionConfigurationResponse.md index 811f25dff..f23a54b14 100644 --- a/sdks/java/docs/ConnectionConfigurationResponse.md +++ b/sdks/java/docs/ConnectionConfigurationResponse.md @@ -67,6 +67,7 @@ | FALCON | "FALCON" | | FALCON_ONPREM | "FALCON_ONPREM" | | CLICKHOUSE | "CLICKHOUSE" | +| IOMETE | "IOMETE" | diff --git a/sdks/java/docs/ConnectionsApi.md b/sdks/java/docs/ConnectionsApi.md index 6fd593968..9c4beb222 100644 --- a/sdks/java/docs/ConnectionsApi.md +++ b/sdks/java/docs/ConnectionsApi.md @@ -13,6 +13,7 @@ All URIs are relative to *CLUSTER_URL* | [**searchConnection**](ConnectionsApi.md#searchConnection) | **POST** /api/rest/2.0/connection/search | | [**syncMetadata**](ConnectionsApi.md#syncMetadata) | **POST** /api/rest/2.0/connections/{connection_identifier}/resync-metadata | | [**updateConnection**](ConnectionsApi.md#updateConnection) | **POST** /api/rest/2.0/connection/update | +| [**updateConnectionStatus**](ConnectionsApi.md#updateConnectionStatus) | **POST** /api/rest/2.0/connections/{connection_identifier}/status | | [**updateConnectionV2**](ConnectionsApi.md#updateConnectionV2) | **POST** /api/rest/2.0/connections/{connection_identifier}/update | @@ -345,6 +346,44 @@ null (empty response body) | **403** | Forbidden access. | - | | **500** | Unexpected error | - | + +# **updateConnectionStatus** +> updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest) + + + + Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **connectionIdentifier** | **String** +| **updateConnectionStatusRequest** | [**UpdateConnectionStatusRequest**](UpdateConnectionStatusRequest.md) + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Connection status updated successfully. | - | +| **400** | Invalid request. | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **404** | Object not found | - | +| **500** | Unexpected error | - | + # **updateConnectionV2** > updateConnectionV2(connectionIdentifier, updateConnectionV2Request) diff --git a/sdks/java/docs/CreateConnectionRequest.md b/sdks/java/docs/CreateConnectionRequest.md index 742bafc8d..0a23b98a0 100644 --- a/sdks/java/docs/CreateConnectionRequest.md +++ b/sdks/java/docs/CreateConnectionRequest.md @@ -52,6 +52,7 @@ | FALCON | "FALCON" | | FALCON_ONPREM | "FALCON_ONPREM" | | CLICKHOUSE | "CLICKHOUSE" | +| IOMETE | "IOMETE" | ## Implemented Interfaces diff --git a/sdks/java/docs/CreateConnectionResponse.md b/sdks/java/docs/CreateConnectionResponse.md index 1042908ec..e2bd33d53 100644 --- a/sdks/java/docs/CreateConnectionResponse.md +++ b/sdks/java/docs/CreateConnectionResponse.md @@ -51,6 +51,7 @@ | FALCON | "FALCON" | | FALCON_ONPREM | "FALCON_ONPREM" | | CLICKHOUSE | "CLICKHOUSE" | +| IOMETE | "IOMETE" | ## Implemented Interfaces diff --git a/sdks/java/docs/CreateRoleRequest.md b/sdks/java/docs/CreateRoleRequest.md index d7a4fd5da..a43602c8f 100644 --- a/sdks/java/docs/CreateRoleRequest.md +++ b/sdks/java/docs/CreateRoleRequest.md @@ -52,6 +52,8 @@ | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | PREVIEW_THOUGHTSPOT_SAGE | "PREVIEW_THOUGHTSPOT_SAGE" | | CAN_MANAGE_WEBHOOKS | "CAN_MANAGE_WEBHOOKS" | diff --git a/sdks/java/docs/CreateUserGroupRequest.md b/sdks/java/docs/CreateUserGroupRequest.md index 64d1bfe29..29a80fdec 100644 --- a/sdks/java/docs/CreateUserGroupRequest.md +++ b/sdks/java/docs/CreateUserGroupRequest.md @@ -52,6 +52,8 @@ | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | PREVIEW_DOCUMENT_SEARCH | "PREVIEW_DOCUMENT_SEARCH" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | CAN_DOWNLOAD_VISUALS | "CAN_DOWNLOAD_VISUALS" | diff --git a/sdks/java/docs/ExportAnswerReportRequest.md b/sdks/java/docs/ExportAnswerReportRequest.md index 66399f67b..cfcdf99b1 100644 --- a/sdks/java/docs/ExportAnswerReportRequest.md +++ b/sdks/java/docs/ExportAnswerReportRequest.md @@ -15,6 +15,9 @@ |**runtimeSort** | **Object** | JSON string representing runtime sort. { sortCol1: region, asc1 :true, sortCol2 : date } | [optional] | |**runtimeParamOverride** | **Object** | JSON object for setting values of parameters in runtime. | [optional] | |**regionalSettings** | [**RegionalSettingsInput**](RegionalSettingsInput.md) | Options for specific region specific overrides to support date/number/string/currency formatting. | [optional] | +|**pngOptions** | [**AnswerPngOptionsInput**](AnswerPngOptionsInput.md) | Options for PNG export. Version: 26.6.0.cl or later | [optional] | +|**personalisedViewIdentifier** | **String** | GUID or name of the personalised view of the Answer object. Version: 26.6.0.cl or later | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Type of the answer being exported. Version: 26.6.0.cl or later | [optional] | @@ -28,6 +31,15 @@ | PNG | "PNG" | + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| SAVED | "SAVED" | +| PINNED | "PINNED" | + + ## Implemented Interfaces * Serializable diff --git a/sdks/java/docs/FetchPermissionsOfPrincipalsRequest.md b/sdks/java/docs/FetchPermissionsOfPrincipalsRequest.md index 6fd69b99e..c4c7fadb6 100644 --- a/sdks/java/docs/FetchPermissionsOfPrincipalsRequest.md +++ b/sdks/java/docs/FetchPermissionsOfPrincipalsRequest.md @@ -25,6 +25,7 @@ | LOGICAL_TABLE | "LOGICAL_TABLE" | | LOGICAL_COLUMN | "LOGICAL_COLUMN" | | CONNECTION | "CONNECTION" | +| COLLECTION | "COLLECTION" | ## Implemented Interfaces diff --git a/sdks/java/docs/GroupsImportListInput.md b/sdks/java/docs/GroupsImportListInput.md index eb231bed9..c34b16adb 100644 --- a/sdks/java/docs/GroupsImportListInput.md +++ b/sdks/java/docs/GroupsImportListInput.md @@ -51,6 +51,8 @@ | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | PREVIEW_DOCUMENT_SEARCH | "PREVIEW_DOCUMENT_SEARCH" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | CAN_DOWNLOAD_VISUALS | "CAN_DOWNLOAD_VISUALS" | diff --git a/sdks/java/docs/PdfOptions.md b/sdks/java/docs/PdfOptions.md index a26ee5b86..0fc8b45cf 100644 --- a/sdks/java/docs/PdfOptions.md +++ b/sdks/java/docs/PdfOptions.md @@ -25,6 +25,7 @@ Options for PDF export. | Name | Value | |---- | -----| | A4 | "A4" | +| TAB_BASED | "TAB_BASED" | ## Implemented Interfaces diff --git a/sdks/java/docs/PermissionsMetadataTypeInput.md b/sdks/java/docs/PermissionsMetadataTypeInput.md index dfc290d8d..e5ffe4e98 100644 --- a/sdks/java/docs/PermissionsMetadataTypeInput.md +++ b/sdks/java/docs/PermissionsMetadataTypeInput.md @@ -22,6 +22,7 @@ MetadataType InputType used in Permission API's | LOGICAL_TABLE | "LOGICAL_TABLE" | | LOGICAL_COLUMN | "LOGICAL_COLUMN" | | CONNECTION | "CONNECTION" | +| COLLECTION | "COLLECTION" | ## Implemented Interfaces diff --git a/sdks/java/docs/RoleResponse.md b/sdks/java/docs/RoleResponse.md index 4a4a69656..b4386d257 100644 --- a/sdks/java/docs/RoleResponse.md +++ b/sdks/java/docs/RoleResponse.md @@ -65,6 +65,8 @@ | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | PREVIEW_THOUGHTSPOT_SAGE | "PREVIEW_THOUGHTSPOT_SAGE" | | CAN_MANAGE_WEBHOOKS | "CAN_MANAGE_WEBHOOKS" | diff --git a/sdks/java/docs/SchedulesPdfOptionsInput.md b/sdks/java/docs/SchedulesPdfOptionsInput.md index fabc65639..b6d5cbc56 100644 --- a/sdks/java/docs/SchedulesPdfOptionsInput.md +++ b/sdks/java/docs/SchedulesPdfOptionsInput.md @@ -25,6 +25,7 @@ Options for PDF export. | Name | Value | |---- | -----| | A4 | "A4" | +| TAB_BASED | "TAB_BASED" | ## Implemented Interfaces diff --git a/sdks/java/docs/SearchAuthSettingsRequest.md b/sdks/java/docs/SearchAuthSettingsRequest.md new file mode 100644 index 000000000..068aa79ad --- /dev/null +++ b/sdks/java/docs/SearchAuthSettingsRequest.md @@ -0,0 +1,35 @@ + + +# SearchAuthSettingsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**authType** | [**AuthTypeEnum**](#AuthTypeEnum) | Type of authentication mechanism to retrieve settings for. Currently supports TRUSTED_AUTH. | | +|**scope** | [**ScopeEnum**](#ScopeEnum) | Scope of auth settings to retrieve. When absent, both cluster and org settings are returned (subject to caller privileges). Set to CLUSTER to retrieve only cluster-level settings, or ORG to retrieve only org-level settings. | [optional] | + + + +## Enum: AuthTypeEnum + +| Name | Value | +|---- | -----| +| TRUSTED_AUTH | "TRUSTED_AUTH" | + + + +## Enum: ScopeEnum + +| Name | Value | +|---- | -----| +| CLUSTER | "CLUSTER" | +| ORG | "ORG" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/SearchAuthSettingsResponse.md b/sdks/java/docs/SearchAuthSettingsResponse.md new file mode 100644 index 000000000..edc6d370c --- /dev/null +++ b/sdks/java/docs/SearchAuthSettingsResponse.md @@ -0,0 +1,28 @@ + + +# SearchAuthSettingsResponse + +Response for searchAuthSettings. Contains auth type and cluster/org-level preferences. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**authType** | [**AuthTypeEnum**](#AuthTypeEnum) | Type of authentication mechanism returned. | [optional] | +|**clusterPreferences** | [**AuthClusterPreferences**](AuthClusterPreferences.md) | | [optional] | +|**orgPreferences** | [**List<AuthOrgPreference>**](AuthOrgPreference.md) | Org-level authentication configurations. Present when org scope was requested and per-org auth feature is enabled. | [optional] | + + + +## Enum: AuthTypeEnum + +| Name | Value | +|---- | -----| +| TRUSTED_AUTH | "TRUSTED_AUTH" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/SearchConnectionRequest.md b/sdks/java/docs/SearchConnectionRequest.md index 39534cb96..3d1f95cb6 100644 --- a/sdks/java/docs/SearchConnectionRequest.md +++ b/sdks/java/docs/SearchConnectionRequest.md @@ -58,6 +58,7 @@ | FALCON | "FALCON" | | FALCON_ONPREM | "FALCON_ONPREM" | | CLICKHOUSE | "CLICKHOUSE" | +| IOMETE | "IOMETE" | diff --git a/sdks/java/docs/SearchConnectionResponse.md b/sdks/java/docs/SearchConnectionResponse.md index 9337ff3d4..e60900412 100644 --- a/sdks/java/docs/SearchConnectionResponse.md +++ b/sdks/java/docs/SearchConnectionResponse.md @@ -53,6 +53,7 @@ | FALCON | "FALCON" | | FALCON_ONPREM | "FALCON_ONPREM" | | CLICKHOUSE | "CLICKHOUSE" | +| IOMETE | "IOMETE" | ## Implemented Interfaces diff --git a/sdks/java/docs/SearchRoleResponse.md b/sdks/java/docs/SearchRoleResponse.md index 124e60b21..3d636cc41 100644 --- a/sdks/java/docs/SearchRoleResponse.md +++ b/sdks/java/docs/SearchRoleResponse.md @@ -78,6 +78,8 @@ Response for search role api should handle hidden privileges as well. | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | | CAN_MODIDY_FOLDERS | "CAN_MODIDY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | PREVIEW_DOCUMENT_SEARCH | "PREVIEW_DOCUMENT_SEARCH" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | CAN_MANAGE_WEBHOOKS | "CAN_MANAGE_WEBHOOKS" | diff --git a/sdks/java/docs/SearchRolesRequest.md b/sdks/java/docs/SearchRolesRequest.md index 8c1fe93f1..ce8076d7c 100644 --- a/sdks/java/docs/SearchRolesRequest.md +++ b/sdks/java/docs/SearchRolesRequest.md @@ -68,6 +68,8 @@ | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | | CAN_MODIDY_FOLDERS | "CAN_MODIDY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | PREVIEW_DOCUMENT_SEARCH | "PREVIEW_DOCUMENT_SEARCH" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | CAN_MANAGE_WEBHOOKS | "CAN_MANAGE_WEBHOOKS" | diff --git a/sdks/java/docs/SearchUserGroupsRequest.md b/sdks/java/docs/SearchUserGroupsRequest.md index 6d89593b9..d0d78d706 100644 --- a/sdks/java/docs/SearchUserGroupsRequest.md +++ b/sdks/java/docs/SearchUserGroupsRequest.md @@ -69,6 +69,8 @@ | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | CAN_MANAGE_WEBHOOKS | "CAN_MANAGE_WEBHOOKS" | | CAN_DOWNLOAD_VISUALS | "CAN_DOWNLOAD_VISUALS" | diff --git a/sdks/java/docs/SearchUsersRequest.md b/sdks/java/docs/SearchUsersRequest.md index 016759d79..740ce056a 100644 --- a/sdks/java/docs/SearchUsersRequest.md +++ b/sdks/java/docs/SearchUsersRequest.md @@ -82,6 +82,8 @@ | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | CAN_MANAGE_WEBHOOKS | "CAN_MANAGE_WEBHOOKS" | | CAN_DOWNLOAD_VISUALS | "CAN_DOWNLOAD_VISUALS" | diff --git a/sdks/java/docs/SecuritySettingsClusterPreferences.md b/sdks/java/docs/SecuritySettingsClusterPreferences.md index d1f938dac..07fe4568b 100644 --- a/sdks/java/docs/SecuritySettingsClusterPreferences.md +++ b/sdks/java/docs/SecuritySettingsClusterPreferences.md @@ -13,6 +13,16 @@ Cluster-level security preferences. |**cspSettings** | [**CspSettings**](CspSettings.md) | | [optional] | |**samlRedirectUrls** | **List<String>** | Allowed redirect hosts for SAML login. | [optional] | |**nonEmbedAccess** | [**ClusterNonEmbedAccess**](ClusterNonEmbedAccess.md) | | [optional] | +|**trustedAuthStatus** | [**TrustedAuthStatusEnum**](#TrustedAuthStatusEnum) | Trusted authentication status at the cluster level. Version: 26.6.0.cl or later | [optional] | + + + +## Enum: TrustedAuthStatusEnum + +| Name | Value | +|---- | -----| +| ENABLED | "ENABLED" | +| DISABLED | "DISABLED" | ## Implemented Interfaces diff --git a/sdks/java/docs/SecuritySettingsOrgPreferences.md b/sdks/java/docs/SecuritySettingsOrgPreferences.md index d07514eea..3b2ac1301 100644 --- a/sdks/java/docs/SecuritySettingsOrgPreferences.md +++ b/sdks/java/docs/SecuritySettingsOrgPreferences.md @@ -11,6 +11,16 @@ Org-level security preferences. |**org** | [**SecuritySettingsOrgDetails**](SecuritySettingsOrgDetails.md) | | [optional] | |**corsWhitelistedUrls** | **List<String>** | Allowed origins for CORS for this org. | [optional] | |**nonEmbedAccess** | [**OrgNonEmbedAccess**](OrgNonEmbedAccess.md) | | [optional] | +|**trustedAuthStatus** | [**TrustedAuthStatusEnum**](#TrustedAuthStatusEnum) | Trusted authentication status for this org. Version: 26.6.0.cl or later | [optional] | + + + +## Enum: TrustedAuthStatusEnum + +| Name | Value | +|---- | -----| +| ENABLED | "ENABLED" | +| DISABLED | "DISABLED" | ## Implemented Interfaces diff --git a/sdks/java/docs/ShareMetadataRequest.md b/sdks/java/docs/ShareMetadataRequest.md index b9483235a..6be36db41 100644 --- a/sdks/java/docs/ShareMetadataRequest.md +++ b/sdks/java/docs/ShareMetadataRequest.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**metadataType** | [**MetadataTypeEnum**](#MetadataTypeEnum) | Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection | [optional] | +|**metadataType** | [**MetadataTypeEnum**](#MetadataTypeEnum) | Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection 6. Collection | [optional] | |**metadataIdentifiers** | **List<String>** | Unique ID or name of metadata objects. Note: All the names should belong to same metadata_type | [optional] | |**metadata** | [**List<ShareMetadataTypeInput>**](ShareMetadataTypeInput.md) | Metadata details for sharing objects. | [optional] | |**permissions** | [**List<SharePermissionsInput>**](SharePermissionsInput.md) | Permission details for sharing the objects. | | @@ -29,6 +29,7 @@ | LOGICAL_TABLE | "LOGICAL_TABLE" | | LOGICAL_COLUMN | "LOGICAL_COLUMN" | | CONNECTION | "CONNECTION" | +| COLLECTION | "COLLECTION" | ## Implemented Interfaces diff --git a/sdks/java/docs/ShareMetadataTypeInput.md b/sdks/java/docs/ShareMetadataTypeInput.md index 7d1348bfb..2bceb4602 100644 --- a/sdks/java/docs/ShareMetadataTypeInput.md +++ b/sdks/java/docs/ShareMetadataTypeInput.md @@ -21,6 +21,7 @@ | LOGICAL_TABLE | "LOGICAL_TABLE" | | LOGICAL_COLUMN | "LOGICAL_COLUMN" | | CONNECTION | "CONNECTION" | +| COLLECTION | "COLLECTION" | ## Implemented Interfaces diff --git a/sdks/java/docs/SharePermissionsInput.md b/sdks/java/docs/SharePermissionsInput.md index 0d2b30ff4..d99e7008a 100644 --- a/sdks/java/docs/SharePermissionsInput.md +++ b/sdks/java/docs/SharePermissionsInput.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**principal** | [**PrincipalsInput**](PrincipalsInput.md) | | | |**shareMode** | [**ShareModeEnum**](#ShareModeEnum) | Type of access to the shared object | | +|**contentShareMode** | [**ContentShareModeEnum**](#ContentShareModeEnum) | Content share mode for collections. Controls access to objects within the collection. Only applicable when sharing COLLECTION metadata type. | [optional] | @@ -21,6 +22,15 @@ | NO_ACCESS | "NO_ACCESS" | + +## Enum: ContentShareModeEnum + +| Name | Value | +|---- | -----| +| READ_ONLY | "READ_ONLY" | +| MODIFY | "MODIFY" | + + ## Implemented Interfaces * Serializable diff --git a/sdks/java/docs/TagMetadataTypeInput.md b/sdks/java/docs/TagMetadataTypeInput.md index d1c96394f..42f5972ca 100644 --- a/sdks/java/docs/TagMetadataTypeInput.md +++ b/sdks/java/docs/TagMetadataTypeInput.md @@ -21,6 +21,7 @@ | LOGICAL_TABLE | "LOGICAL_TABLE" | | LOGICAL_COLUMN | "LOGICAL_COLUMN" | | CONNECTION | "CONNECTION" | +| COLLECTION | "COLLECTION" | ## Implemented Interfaces diff --git a/sdks/java/docs/ThoughtSpotRestApi.md b/sdks/java/docs/ThoughtSpotRestApi.md index cded552d0..5ac65023e 100644 --- a/sdks/java/docs/ThoughtSpotRestApi.md +++ b/sdks/java/docs/ThoughtSpotRestApi.md @@ -9,6 +9,7 @@ All URIs are relative to *CLUSTER_URL* | [**assignTag**](ThoughtSpotRestApi.md#assignTag) | **POST** /api/rest/2.0/tags/assign | | [**changeUserPassword**](ThoughtSpotRestApi.md#changeUserPassword) | **POST** /api/rest/2.0/users/change-password | | [**commitBranch**](ThoughtSpotRestApi.md#commitBranch) | **POST** /api/rest/2.0/vcs/git/branches/commit | +| [**configureAuthSettings**](ThoughtSpotRestApi.md#configureAuthSettings) | **POST** /api/rest/2.0/auth/configure | | [**configureCommunicationChannelPreferences**](ThoughtSpotRestApi.md#configureCommunicationChannelPreferences) | **POST** /api/rest/2.0/system/preferences/communication-channels/configure | | [**configureSecuritySettings**](ThoughtSpotRestApi.md#configureSecuritySettings) | **POST** /api/rest/2.0/system/security-settings/configure | | [**connectionConfigurationSearch**](ThoughtSpotRestApi.md#connectionConfigurationSearch) | **POST** /api/rest/2.0/connection-configurations/search | @@ -102,6 +103,7 @@ All URIs are relative to *CLUSTER_URL* | [**revertCommit**](ThoughtSpotRestApi.md#revertCommit) | **POST** /api/rest/2.0/vcs/git/commits/{commit_id}/revert | | [**revokeRefreshTokens**](ThoughtSpotRestApi.md#revokeRefreshTokens) | **POST** /api/rest/2.0/connections/{connection_identifier}/revoke-refresh-tokens | | [**revokeToken**](ThoughtSpotRestApi.md#revokeToken) | **POST** /api/rest/2.0/auth/token/revoke | +| [**searchAuthSettings**](ThoughtSpotRestApi.md#searchAuthSettings) | **POST** /api/rest/2.0/auth/search | | [**searchCalendars**](ThoughtSpotRestApi.md#searchCalendars) | **POST** /api/rest/2.0/calendars/search | | [**searchChannelHistory**](ThoughtSpotRestApi.md#searchChannelHistory) | **POST** /api/rest/2.0/jobs/history/communication-channels/search | | [**searchCollections**](ThoughtSpotRestApi.md#searchCollections) | **POST** /api/rest/2.0/collections/search | @@ -130,6 +132,7 @@ All URIs are relative to *CLUSTER_URL* | [**setNLInstructions**](ThoughtSpotRestApi.md#setNLInstructions) | **POST** /api/rest/2.0/ai/instructions/set | | [**shareMetadata**](ThoughtSpotRestApi.md#shareMetadata) | **POST** /api/rest/2.0/security/metadata/share | | [**singleAnswer**](ThoughtSpotRestApi.md#singleAnswer) | **POST** /api/rest/2.0/ai/answer/create | +| [**stopConversation**](ThoughtSpotRestApi.md#stopConversation) | **POST** /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response | | [**syncMetadata**](ThoughtSpotRestApi.md#syncMetadata) | **POST** /api/rest/2.0/connections/{connection_identifier}/resync-metadata | | [**unassignTag**](ThoughtSpotRestApi.md#unassignTag) | **POST** /api/rest/2.0/tags/unassign | | [**unparameterizeMetadata**](ThoughtSpotRestApi.md#unparameterizeMetadata) | **POST** /api/rest/2.0/metadata/unparameterize | @@ -140,6 +143,7 @@ All URIs are relative to *CLUSTER_URL* | [**updateConfig**](ThoughtSpotRestApi.md#updateConfig) | **POST** /api/rest/2.0/vcs/git/config/update | | [**updateConnection**](ThoughtSpotRestApi.md#updateConnection) | **POST** /api/rest/2.0/connection/update | | [**updateConnectionConfiguration**](ThoughtSpotRestApi.md#updateConnectionConfiguration) | **POST** /api/rest/2.0/connection-configurations/{configuration_identifier}/update | +| [**updateConnectionStatus**](ThoughtSpotRestApi.md#updateConnectionStatus) | **POST** /api/rest/2.0/connections/{connection_identifier}/status | | [**updateConnectionV2**](ThoughtSpotRestApi.md#updateConnectionV2) | **POST** /api/rest/2.0/connections/{connection_identifier}/update | | [**updateCustomAction**](ThoughtSpotRestApi.md#updateCustomAction) | **POST** /api/rest/2.0/customization/custom-actions/{custom_action_identifier}/update | | [**updateDbtConnection**](ThoughtSpotRestApi.md#updateDbtConnection) | **POST** /api/rest/2.0/dbt/update-dbt-connection | @@ -342,6 +346,42 @@ null (empty response body) | **403** | Forbidden access. | - | | **500** | Unexpected error | - | + +# **configureAuthSettings** +> configureAuthSettings(configureAuthSettingsRequest) + + + + Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **configureAuthSettingsRequest** | [**ConfigureAuthSettingsRequest**](ConfigureAuthSettingsRequest.md) + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Trusted authentication settings configured successfully. | - | +| **400** | Invalid request. | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **500** | Unexpected error | - | + # **configureCommunicationChannelPreferences** > configureCommunicationChannelPreferences(configureCommunicationChannelPreferencesRequest) @@ -3694,6 +3734,42 @@ null (empty response body) | **403** | Forbidden access. | - | | **500** | Unexpected error | - | + +# **searchAuthSettings** +> SearchAuthSettingsResponse searchAuthSettings(searchAuthSettingsRequest) + + + + Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller's org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **searchAuthSettingsRequest** | [**SearchAuthSettingsRequest**](SearchAuthSettingsRequest.md) + +### Return type + +[**SearchAuthSettingsResponse**](SearchAuthSettingsResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Authentication settings retrieved successfully. | - | +| **400** | Invalid request. | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **500** | Unexpected error | - | + # **searchCalendars** > List<CalendarResponse> searchCalendars(searchCalendarsRequest) @@ -4712,6 +4788,42 @@ null (empty response body) | **403** | Forbidden access. | - | | **500** | Operation failed | - | + +# **stopConversation** +> stopConversation(conversationIdentifier) + + + + Stops an in-progress agent conversation response. Version: 26.6.0.cl or later <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **conversationIdentifier** | **String** + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Successfully stopped the in-progress agent conversation response for the given. | - | +| **400** | Operation failed | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **500** | Operation failed | - | + # **syncMetadata** > SyncMetadataResponse syncMetadata(connectionIdentifier, syncMetadataRequest) @@ -5078,6 +5190,44 @@ null (empty response body) | **403** | Forbidden access. | - | | **500** | Unexpected error | - | + +# **updateConnectionStatus** +> updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest) + + + + Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + +### Parameters + +| Name | Type | +|------------- | ------------- | +| **connectionIdentifier** | **String** +| **updateConnectionStatusRequest** | [**UpdateConnectionStatusRequest**](UpdateConnectionStatusRequest.md) + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Connection status updated successfully. | - | +| **400** | Invalid request. | - | +| **401** | Unauthorized access. | - | +| **403** | Forbidden access. | - | +| **404** | Object not found | - | +| **500** | Unexpected error | - | + # **updateConnectionV2** > updateConnectionV2(connectionIdentifier, updateConnectionV2Request) diff --git a/sdks/java/docs/UpdateConnectionStatusRequest.md b/sdks/java/docs/UpdateConnectionStatusRequest.md new file mode 100644 index 000000000..378abcfb0 --- /dev/null +++ b/sdks/java/docs/UpdateConnectionStatusRequest.md @@ -0,0 +1,26 @@ + + +# UpdateConnectionStatusRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | [**StatusEnum**](#StatusEnum) | Status to set for the connection. Use ACTIVATED to enable the connection or DEACTIVATED to disable it. | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| ACTIVATED | "ACTIVATED" | +| DEACTIVATED | "DEACTIVATED" | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/docs/UpdateRoleRequest.md b/sdks/java/docs/UpdateRoleRequest.md index 25446daf3..41ba3dd7c 100644 --- a/sdks/java/docs/UpdateRoleRequest.md +++ b/sdks/java/docs/UpdateRoleRequest.md @@ -49,6 +49,8 @@ | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | PREVIEW_DOCUMENT_SEARCH | "PREVIEW_DOCUMENT_SEARCH" | | PREVIEW_THOUGHTSPOT_SAGE | "PREVIEW_THOUGHTSPOT_SAGE" | | CAN_MANAGE_WEBHOOKS | "CAN_MANAGE_WEBHOOKS" | diff --git a/sdks/java/docs/UpdateUserGroupRequest.md b/sdks/java/docs/UpdateUserGroupRequest.md index c19a8d728..e0991fd33 100644 --- a/sdks/java/docs/UpdateUserGroupRequest.md +++ b/sdks/java/docs/UpdateUserGroupRequest.md @@ -53,6 +53,8 @@ | CAN_MODIFY_FOLDERS | "CAN_MODIFY_FOLDERS" | | CAN_MANAGE_VARIABLES | "CAN_MANAGE_VARIABLES" | | CAN_VIEW_FOLDERS | "CAN_VIEW_FOLDERS" | +| CAN_MANAGE_AGENTSPOT | "CAN_MANAGE_AGENTSPOT" | +| CAN_ACCESS_AGENTSPOT | "CAN_ACCESS_AGENTSPOT" | | PREVIEW_DOCUMENT_SEARCH | "PREVIEW_DOCUMENT_SEARCH" | | CAN_SETUP_VERSION_CONTROL | "CAN_SETUP_VERSION_CONTROL" | | CAN_DOWNLOAD_VISUALS | "CAN_DOWNLOAD_VISUALS" | diff --git a/sdks/java/docs/Variable.md b/sdks/java/docs/Variable.md index 7c53f0865..fa90d3ba4 100644 --- a/sdks/java/docs/Variable.md +++ b/sdks/java/docs/Variable.md @@ -13,6 +13,7 @@ Variable object |**variableType** | [**VariableTypeEnum**](#VariableTypeEnum) | Type of the variable | [optional] | |**sensitive** | **Boolean** | If the variable is sensitive | [optional] | |**values** | [**List<VariableValue>**](VariableValue.md) | Values of the variable | [optional] | +|**org** | [**VariableOrgInfo**](VariableOrgInfo.md) | | [optional] | diff --git a/sdks/java/docs/VariableOrgInfo.md b/sdks/java/docs/VariableOrgInfo.md new file mode 100644 index 000000000..875701854 --- /dev/null +++ b/sdks/java/docs/VariableOrgInfo.md @@ -0,0 +1,18 @@ + + +# VariableOrgInfo + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Integer** | ID of the Org. | | +|**name** | **String** | Name of the Org. | | + + +## Implemented Interfaces + +* Serializable + + diff --git a/sdks/java/pom.xml b/sdks/java/pom.xml index 42785582f..773695dfe 100644 --- a/sdks/java/pom.xml +++ b/sdks/java/pom.xml @@ -4,7 +4,7 @@ com.thoughtspot rest-api-sdk - 2.24.0 + 2.25.0 jar rest-api-sdk diff --git a/sdks/java/src/main/java/com/thoughtspot/client/ApiClient.java b/sdks/java/src/main/java/com/thoughtspot/client/ApiClient.java index b19a10ff1..bb25f7da4 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/ApiClient.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/ApiClient.java @@ -182,7 +182,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("ThoughtSpot-Client/java/2.24.0"); + setUserAgent("ThoughtSpot-Client/java/2.25.0"); authentications = new HashMap(); } diff --git a/sdks/java/src/main/java/com/thoughtspot/client/Configuration.java b/sdks/java/src/main/java/com/thoughtspot/client/Configuration.java index 07f285835..ffeb6e025 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/Configuration.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/Configuration.java @@ -8,7 +8,7 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class Configuration { - public static final String VERSION = "2.24.0"; + public static final String VERSION = "2.25.0"; private static volatile ApiClient defaultApiClient = new ApiClient(); diff --git a/sdks/java/src/main/java/com/thoughtspot/client/JSON.java b/sdks/java/src/main/java/com/thoughtspot/client/JSON.java index 44fba8820..7c3e5af1b 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/JSON.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/JSON.java @@ -114,6 +114,8 @@ private static Class getClassByDiscriminator( new com.thoughtspot.client.model.AnswerContent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.AnswerDataResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.AnswerPngOptionsInput.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.AssignChangeAuthorRequest .CustomTypeAdapterFactory()); @@ -124,6 +126,20 @@ private static Class getClassByDiscriminator( gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.AssociateMetadataInputCreate .CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.AuthClusterPreferences.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.AuthClusterPreferencesInput + .CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.AuthOrgInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.AuthOrgPreference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.AuthOrgPreferenceInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.AuthSettingsAccessToken + .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.Authentication.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( @@ -233,6 +249,9 @@ private static Class getClassByDiscriminator( gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.CommunicationChannelValidateResponse .CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.ConfigureAuthSettingsRequest + .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.ConfigureCommunicationChannelPreferencesRequest .CustomTypeAdapterFactory()); @@ -764,6 +783,12 @@ private static Class getClassByDiscriminator( new com.thoughtspot.client.model.ScriptSrcUrls.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.ScriptSrcUrlsInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.SearchAuthSettingsRequest + .CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.SearchAuthSettingsResponse + .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.SearchCalendarsRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( @@ -946,6 +971,9 @@ private static Class getClassByDiscriminator( gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.UpdateConnectionRequest .CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.UpdateConnectionStatusRequest + .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.UpdateConnectionV2Request .CustomTypeAdapterFactory()); @@ -1013,6 +1041,8 @@ private static Class getClassByDiscriminator( new com.thoughtspot.client.model.Variable.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.VariableDetailInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.thoughtspot.client.model.VariableOrgInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new com.thoughtspot.client.model.VariablePutAssignmentInput .CustomTypeAdapterFactory()); diff --git a/sdks/java/src/main/java/com/thoughtspot/client/api/AiApi.java b/sdks/java/src/main/java/com/thoughtspot/client/api/AiApi.java index a2a773859..6e7c7635a 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/api/AiApi.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/api/AiApi.java @@ -3465,4 +3465,253 @@ public okhttp3.Call singleAnswerAsync( localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for stopConversation + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public okhttp3.Call stopConversationCall( + String conversationIdentifier, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response" + .replace( + "{" + "conversation_identifier" + "}", + localVarApiClient.escapeString(conversationIdentifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call stopConversationValidateBeforeCall( + String conversationIdentifier, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'conversationIdentifier' is set + if (conversationIdentifier == null) { + throw new ApiException( + "Missing the required parameter 'conversationIdentifier' when calling" + + " stopConversation(Async)"); + } + + return stopConversationCall(conversationIdentifier, _callback); + } + + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later + * <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified + * conversation. Use this endpoint to cancel a response that is actively being generated — for + * example, when the user navigates away, reformulates their question, or no longer needs the + * current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified + * conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public void stopConversation(String conversationIdentifier) throws ApiException { + stopConversationWithHttpInfo(conversationIdentifier); + } + + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later + * <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified + * conversation. Use this endpoint to cancel a response that is actively being generated — for + * example, when the user navigates away, reformulates their question, or no longer needs the + * current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified + * conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public ApiResponse stopConversationWithHttpInfo(String conversationIdentifier) + throws ApiException { + okhttp3.Call localVarCall = + stopConversationValidateBeforeCall(conversationIdentifier, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Stops an in-progress agent conversation response. Version: 26.6.0.cl or + * later <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the + * specified conversation. Use this endpoint to cancel a response that is actively being + * generated — for example, when the user navigates away, reformulates their question, or no + * longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to + * the specified conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public okhttp3.Call stopConversationAsync( + String conversationIdentifier, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + stopConversationValidateBeforeCall(conversationIdentifier, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } } diff --git a/sdks/java/src/main/java/com/thoughtspot/client/api/AuthenticationApi.java b/sdks/java/src/main/java/com/thoughtspot/client/api/AuthenticationApi.java index d41263e29..7dc0c92a0 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/api/AuthenticationApi.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/api/AuthenticationApi.java @@ -13,12 +13,15 @@ import com.thoughtspot.client.Configuration; import com.thoughtspot.client.Pair; import com.thoughtspot.client.model.AccessToken; +import com.thoughtspot.client.model.ConfigureAuthSettingsRequest; import com.thoughtspot.client.model.GetCustomAccessTokenRequest; import com.thoughtspot.client.model.GetFullAccessTokenRequest; import com.thoughtspot.client.model.GetObjectAccessTokenRequest; import com.thoughtspot.client.model.GetTokenResponse; import com.thoughtspot.client.model.LoginRequest; import com.thoughtspot.client.model.RevokeTokenRequest; +import com.thoughtspot.client.model.SearchAuthSettingsRequest; +import com.thoughtspot.client.model.SearchAuthSettingsResponse; import com.thoughtspot.client.model.Token; import com.thoughtspot.client.model.TokenValidationResponse; import com.thoughtspot.client.model.User; @@ -88,6 +91,229 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } + /** + * Build call for configureAuthSettings + * + * @param configureAuthSettingsRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call configureAuthSettingsCall( + ConfigureAuthSettingsRequest configureAuthSettingsRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = configureAuthSettingsRequest; + + // create path and map variables + String localVarPath = "/api/rest/2.0/auth/configure"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call configureAuthSettingsValidateBeforeCall( + ConfigureAuthSettingsRequest configureAuthSettingsRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'configureAuthSettingsRequest' is set + if (configureAuthSettingsRequest == null) { + throw new ApiException( + "Missing the required parameter 'configureAuthSettingsRequest' when calling" + + " configureAuthSettings(Async)"); + } + + return configureAuthSettingsCall(configureAuthSettingsRequest, _callback); + } + + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for + * the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @param configureAuthSettingsRequest (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public void configureAuthSettings(ConfigureAuthSettingsRequest configureAuthSettingsRequest) + throws ApiException { + configureAuthSettingsWithHttpInfo(configureAuthSettingsRequest); + } + + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for + * the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @param configureAuthSettingsRequest (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public ApiResponse configureAuthSettingsWithHttpInfo( + ConfigureAuthSettingsRequest configureAuthSettingsRequest) throws ApiException { + okhttp3.Call localVarCall = + configureAuthSettingsValidateBeforeCall(configureAuthSettingsRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Version: 26.6.0.cl or later Enables or disables authentication at cluster or + * org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### + * Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @param configureAuthSettingsRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call configureAuthSettingsAsync( + ConfigureAuthSettingsRequest configureAuthSettingsRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + configureAuthSettingsValidateBeforeCall(configureAuthSettingsRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for getCurrentUserInfo * @@ -1763,6 +1989,219 @@ public okhttp3.Call revokeTokenAsync( localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for searchAuthSettings + * + * @param searchAuthSettingsRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call searchAuthSettingsCall( + SearchAuthSettingsRequest searchAuthSettingsRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = searchAuthSettingsRequest; + + // create path and map variables + String localVarPath = "/api/rest/2.0/auth/search"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchAuthSettingsValidateBeforeCall( + SearchAuthSettingsRequest searchAuthSettingsRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'searchAuthSettingsRequest' is set + if (searchAuthSettingsRequest == null) { + throw new ApiException( + "Missing the required parameter 'searchAuthSettingsRequest' when calling" + + " searchAuthSettings(Async)"); + } + + return searchAuthSettingsCall(searchAuthSettingsRequest, _callback); + } + + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth + * type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. + * + * @param searchAuthSettingsRequest (required) + * @return SearchAuthSettingsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public SearchAuthSettingsResponse searchAuthSettings( + SearchAuthSettingsRequest searchAuthSettingsRequest) throws ApiException { + ApiResponse localVarResp = + searchAuthSettingsWithHttpInfo(searchAuthSettingsRequest); + return localVarResp.getData(); + } + + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth + * type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. + * + * @param searchAuthSettingsRequest (required) + * @return ApiResponse<SearchAuthSettingsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public ApiResponse searchAuthSettingsWithHttpInfo( + SearchAuthSettingsRequest searchAuthSettingsRequest) throws ApiException { + okhttp3.Call localVarCall = + searchAuthSettingsValidateBeforeCall(searchAuthSettingsRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Version: 26.6.0.cl or later Returns the authentication configuration for the + * specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. + * #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) + * or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. + * + * @param searchAuthSettingsRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call searchAuthSettingsAsync( + SearchAuthSettingsRequest searchAuthSettingsRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + searchAuthSettingsValidateBeforeCall(searchAuthSettingsRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for validateToken * diff --git a/sdks/java/src/main/java/com/thoughtspot/client/api/ConnectionsApi.java b/sdks/java/src/main/java/com/thoughtspot/client/api/ConnectionsApi.java index 4efc0ea0c..546451f22 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/api/ConnectionsApi.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/api/ConnectionsApi.java @@ -23,6 +23,7 @@ import com.thoughtspot.client.model.SyncMetadataRequest; import com.thoughtspot.client.model.SyncMetadataResponse; import com.thoughtspot.client.model.UpdateConnectionRequest; +import com.thoughtspot.client.model.UpdateConnectionStatusRequest; import com.thoughtspot.client.model.UpdateConnectionV2Request; import java.io.File; import java.lang.reflect.Type; @@ -2306,6 +2307,236 @@ public okhttp3.Call updateConnectionAsync( localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for updateConnectionStatus + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public okhttp3.Call updateConnectionStatusCall( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest, + final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateConnectionStatusRequest; + + // create path and map variables + String localVarPath = + "/api/rest/2.0/connections/{connection_identifier}/status" + .replace( + "{" + "connection_identifier" + "}", + localVarApiClient.escapeString(connectionIdentifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateConnectionStatusValidateBeforeCall( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest, + final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'connectionIdentifier' is set + if (connectionIdentifier == null) { + throw new ApiException( + "Missing the required parameter 'connectionIdentifier' when calling" + + " updateConnectionStatus(Async)"); + } + + // verify the required parameter 'updateConnectionStatusRequest' is set + if (updateConnectionStatusRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateConnectionStatusRequest' when calling" + + " updateConnectionStatus(Async)"); + } + + return updateConnectionStatusCall( + connectionIdentifier, updateConnectionStatusRequest, _callback); + } + + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection + * cannot be used for queries or operations until it is activated again. Requires + * `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the + * `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public void updateConnectionStatus( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest) + throws ApiException { + updateConnectionStatusWithHttpInfo(connectionIdentifier, updateConnectionStatusRequest); + } + + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection + * cannot be used for queries or operations until it is activated again. Requires + * `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the + * `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public ApiResponse updateConnectionStatusWithHttpInfo( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest) + throws ApiException { + okhttp3.Call localVarCall = + updateConnectionStatusValidateBeforeCall( + connectionIdentifier, updateConnectionStatusRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Version: 26.6.0.cl or later Activates or deactivates a connection. A + * deactivated connection cannot be used for queries or operations until it is activated again. + * Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access + * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, + * the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public okhttp3.Call updateConnectionStatusAsync( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateConnectionStatusValidateBeforeCall( + connectionIdentifier, updateConnectionStatusRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for updateConnectionV2 * diff --git a/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java b/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java index 3c4dcec88..8c9756657 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java @@ -29,6 +29,7 @@ import com.thoughtspot.client.model.CommitResponse; import com.thoughtspot.client.model.CommunicationChannelPreferencesResponse; import com.thoughtspot.client.model.CommunicationChannelValidateResponse; +import com.thoughtspot.client.model.ConfigureAuthSettingsRequest; import com.thoughtspot.client.model.ConfigureCommunicationChannelPreferencesRequest; import com.thoughtspot.client.model.ConfigureSecuritySettingsRequest; import com.thoughtspot.client.model.ConnectionConfigurationResponse; @@ -132,6 +133,8 @@ import com.thoughtspot.client.model.RevokeRefreshTokensResponse; import com.thoughtspot.client.model.RevokeTokenRequest; import com.thoughtspot.client.model.RoleResponse; +import com.thoughtspot.client.model.SearchAuthSettingsRequest; +import com.thoughtspot.client.model.SearchAuthSettingsResponse; import com.thoughtspot.client.model.SearchCalendarsRequest; import com.thoughtspot.client.model.SearchChannelHistoryRequest; import com.thoughtspot.client.model.SearchChannelHistoryResponse; @@ -184,6 +187,7 @@ import com.thoughtspot.client.model.UpdateConfigRequest; import com.thoughtspot.client.model.UpdateConnectionConfigurationRequest; import com.thoughtspot.client.model.UpdateConnectionRequest; +import com.thoughtspot.client.model.UpdateConnectionStatusRequest; import com.thoughtspot.client.model.UpdateConnectionV2Request; import com.thoughtspot.client.model.UpdateCustomActionRequest; import com.thoughtspot.client.model.UpdateEmailCustomizationRequest; @@ -1144,6 +1148,229 @@ public okhttp3.Call commitBranchAsync( localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for configureAuthSettings + * + * @param configureAuthSettingsRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call configureAuthSettingsCall( + ConfigureAuthSettingsRequest configureAuthSettingsRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = configureAuthSettingsRequest; + + // create path and map variables + String localVarPath = "/api/rest/2.0/auth/configure"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call configureAuthSettingsValidateBeforeCall( + ConfigureAuthSettingsRequest configureAuthSettingsRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'configureAuthSettingsRequest' is set + if (configureAuthSettingsRequest == null) { + throw new ApiException( + "Missing the required parameter 'configureAuthSettingsRequest' when calling" + + " configureAuthSettings(Async)"); + } + + return configureAuthSettingsCall(configureAuthSettingsRequest, _callback); + } + + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for + * the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @param configureAuthSettingsRequest (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public void configureAuthSettings(ConfigureAuthSettingsRequest configureAuthSettingsRequest) + throws ApiException { + configureAuthSettingsWithHttpInfo(configureAuthSettingsRequest); + } + + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for + * the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @param configureAuthSettingsRequest (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public ApiResponse configureAuthSettingsWithHttpInfo( + ConfigureAuthSettingsRequest configureAuthSettingsRequest) throws ApiException { + okhttp3.Call localVarCall = + configureAuthSettingsValidateBeforeCall(configureAuthSettingsRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Version: 26.6.0.cl or later Enables or disables authentication at cluster or + * org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### + * Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @param configureAuthSettingsRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Trusted authentication settings configured successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call configureAuthSettingsAsync( + ConfigureAuthSettingsRequest configureAuthSettingsRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + configureAuthSettingsValidateBeforeCall(configureAuthSettingsRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for configureCommunicationChannelPreferences * @@ -20589,9 +20816,9 @@ public okhttp3.Call revokeTokenAsync( return localVarCall; } /** - * Build call for searchCalendars + * Build call for searchAuthSettings * - * @param searchCalendarsRequest (required) + * @param searchAuthSettingsRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -20599,15 +20826,15 @@ public okhttp3.Call revokeTokenAsync( * * * - * + * * * * * *
Response Details
Status Code Description Response Headers
200 Custom calendar fetched successfully. -
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
*/ - public okhttp3.Call searchCalendarsCall( - SearchCalendarsRequest searchCalendarsRequest, final ApiCallback _callback) + public okhttp3.Call searchAuthSettingsCall( + SearchAuthSettingsRequest searchAuthSettingsRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -20622,10 +20849,10 @@ public okhttp3.Call searchCalendarsCall( basePath = null; } - Object localVarPostBody = searchCalendarsRequest; + Object localVarPostBody = searchAuthSettingsRequest; // create path and map variables - String localVarPath = "/api/rest/2.0/calendars/search"; + String localVarPath = "/api/rest/2.0/auth/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20662,106 +20889,119 @@ public okhttp3.Call searchCalendarsCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCalendarsValidateBeforeCall( - SearchCalendarsRequest searchCalendarsRequest, final ApiCallback _callback) + private okhttp3.Call searchAuthSettingsValidateBeforeCall( + SearchAuthSettingsRequest searchAuthSettingsRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'searchCalendarsRequest' is set - if (searchCalendarsRequest == null) { + // verify the required parameter 'searchAuthSettingsRequest' is set + if (searchAuthSettingsRequest == null) { throw new ApiException( - "Missing the required parameter 'searchCalendarsRequest' when calling" - + " searchCalendars(Async)"); + "Missing the required parameter 'searchAuthSettingsRequest' when calling" + + " searchAuthSettings(Async)"); } - return searchCalendarsCall(searchCalendarsRequest, _callback); + return searchAuthSettingsCall(searchAuthSettingsRequest, _callback); } /** - * Version: 10.12.0.cl or later Gets a list of [custom - * calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires - * `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can - * administer ThoughtSpot**) privilege. If [Role-Based Access Control - * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot - * instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) - * privilege is required. #### Usage guidelines By default, the API returns a list of custom - * calendars for all connection objects. To retrieve custom calendar details for a particular - * connection, specify the connection ID. You can also use other search parameters such as - * `name_pattern` and `sort_options` as search filters. The - * `name_pattern` parameter filters and returns only those objects that match the - * specified pattern. Use `%` as a wildcard for pattern matching. + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth + * type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. * - * @param searchCalendarsRequest (required) - * @return List<CalendarResponse> + * @param searchAuthSettingsRequest (required) + * @return SearchAuthSettingsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * - * + * * * * * *
Response Details
Status Code Description Response Headers
200 Custom calendar fetched successfully. -
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
*/ - public List searchCalendars(SearchCalendarsRequest searchCalendarsRequest) - throws ApiException { - ApiResponse> localVarResp = - searchCalendarsWithHttpInfo(searchCalendarsRequest); + public SearchAuthSettingsResponse searchAuthSettings( + SearchAuthSettingsRequest searchAuthSettingsRequest) throws ApiException { + ApiResponse localVarResp = + searchAuthSettingsWithHttpInfo(searchAuthSettingsRequest); return localVarResp.getData(); } /** - * Version: 10.12.0.cl or later Gets a list of [custom - * calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires - * `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can - * administer ThoughtSpot**) privilege. If [Role-Based Access Control - * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot - * instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) - * privilege is required. #### Usage guidelines By default, the API returns a list of custom - * calendars for all connection objects. To retrieve custom calendar details for a particular - * connection, specify the connection ID. You can also use other search parameters such as - * `name_pattern` and `sort_options` as search filters. The - * `name_pattern` parameter filters and returns only those objects that match the - * specified pattern. Use `%` as a wildcard for pattern matching. + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth + * type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. * - * @param searchCalendarsRequest (required) - * @return ApiResponse<List<CalendarResponse>> + * @param searchAuthSettingsRequest (required) + * @return ApiResponse<SearchAuthSettingsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * * - * + * * * * * *
Response Details
Status Code Description Response Headers
200 Custom calendar fetched successfully. -
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
*/ - public ApiResponse> searchCalendarsWithHttpInfo( - SearchCalendarsRequest searchCalendarsRequest) throws ApiException { - okhttp3.Call localVarCall = searchCalendarsValidateBeforeCall(searchCalendarsRequest, null); - Type localVarReturnType = new TypeToken>() {}.getType(); + public ApiResponse searchAuthSettingsWithHttpInfo( + SearchAuthSettingsRequest searchAuthSettingsRequest) throws ApiException { + okhttp3.Call localVarCall = + searchAuthSettingsValidateBeforeCall(searchAuthSettingsRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) Version: 10.12.0.cl or later Gets a list of [custom - * calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires - * `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can - * administer ThoughtSpot**) privilege. If [Role-Based Access Control - * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot - * instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) - * privilege is required. #### Usage guidelines By default, the API returns a list of custom - * calendars for all connection objects. To retrieve custom calendar details for a particular - * connection, specify the connection ID. You can also use other search parameters such as - * `name_pattern` and `sort_options` as search filters. The - * `name_pattern` parameter filters and returns only those objects that match the - * specified pattern. Use `%` as a wildcard for pattern matching. - * - * @param searchCalendarsRequest (required) + * (asynchronously) Version: 26.6.0.cl or later Returns the authentication configuration for the + * specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. + * #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) + * or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. + * + * @param searchAuthSettingsRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -20770,28 +21010,28 @@ public ApiResponse> searchCalendarsWithHttpInfo( * * * - * + * * * * * *
Response Details
Status Code Description Response Headers
200 Custom calendar fetched successfully. -
200 Authentication settings retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
*/ - public okhttp3.Call searchCalendarsAsync( - SearchCalendarsRequest searchCalendarsRequest, - final ApiCallback> _callback) + public okhttp3.Call searchAuthSettingsAsync( + SearchAuthSettingsRequest searchAuthSettingsRequest, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - searchCalendarsValidateBeforeCall(searchCalendarsRequest, _callback); - Type localVarReturnType = new TypeToken>() {}.getType(); + searchAuthSettingsValidateBeforeCall(searchAuthSettingsRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for searchChannelHistory + * Build call for searchCalendars * - * @param searchChannelHistoryRequest (required) + * @param searchCalendarsRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -20799,15 +21039,15 @@ public okhttp3.Call searchCalendarsAsync( * * * - * + * * * * * *
Response Details
Status Code Description Response Headers
200 Channel status logs retrieved successfully. -
200 Custom calendar fetched successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
*/ - public okhttp3.Call searchChannelHistoryCall( - SearchChannelHistoryRequest searchChannelHistoryRequest, final ApiCallback _callback) + public okhttp3.Call searchCalendarsCall( + SearchCalendarsRequest searchCalendarsRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -20822,10 +21062,10 @@ public okhttp3.Call searchChannelHistoryCall( basePath = null; } - Object localVarPostBody = searchChannelHistoryRequest; + Object localVarPostBody = searchCalendarsRequest; // create path and map variables - String localVarPath = "/api/rest/2.0/jobs/history/communication-channels/search"; + String localVarPath = "/api/rest/2.0/calendars/search"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -20862,33 +21102,233 @@ public okhttp3.Call searchChannelHistoryCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call searchChannelHistoryValidateBeforeCall( - SearchChannelHistoryRequest searchChannelHistoryRequest, final ApiCallback _callback) + private okhttp3.Call searchCalendarsValidateBeforeCall( + SearchCalendarsRequest searchCalendarsRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'searchChannelHistoryRequest' is set - if (searchChannelHistoryRequest == null) { + // verify the required parameter 'searchCalendarsRequest' is set + if (searchCalendarsRequest == null) { throw new ApiException( - "Missing the required parameter 'searchChannelHistoryRequest' when calling" - + " searchChannelHistory(Async)"); + "Missing the required parameter 'searchCalendarsRequest' when calling" + + " searchCalendars(Async)"); } - return searchChannelHistoryCall(searchChannelHistoryRequest, _callback); + return searchCalendarsCall(searchCalendarsRequest, _callback); } /** - * Version: 26.4.0.cl or later Searches delivery history for communication channels such as - * webhooks. Returns channel-level delivery status for each job execution record. Use this to - * monitor channel health and delivery success rates across events. Requires - * `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has - * developer privilege**) privilege. If [Role-Based Access Control - * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with - * `CAN_MANAGE_WEBHOOKS` (**Can manage webhooks**) privilege are also authorized to - * perform this action. **NOTE**: When `channel_type` is `WEBHOOK`, the - * following constraints apply: - `job_ids`, `channel_identifiers`, and - * `events` each accept at most one element. - When `job_ids` is provided, - * it is used as the sole lookup key and other filter fields are ignored. - When - * `job_ids` is not provided, `channel_identifiers` and `events` - * are both required, each containing exactly one element. - Records older than the configured + * Version: 10.12.0.cl or later Gets a list of [custom + * calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires + * `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can + * administer ThoughtSpot**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot + * instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) + * privilege is required. #### Usage guidelines By default, the API returns a list of custom + * calendars for all connection objects. To retrieve custom calendar details for a particular + * connection, specify the connection ID. You can also use other search parameters such as + * `name_pattern` and `sort_options` as search filters. The + * `name_pattern` parameter filters and returns only those objects that match the + * specified pattern. Use `%` as a wildcard for pattern matching. + * + * @param searchCalendarsRequest (required) + * @return List<CalendarResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Custom calendar fetched successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public List searchCalendars(SearchCalendarsRequest searchCalendarsRequest) + throws ApiException { + ApiResponse> localVarResp = + searchCalendarsWithHttpInfo(searchCalendarsRequest); + return localVarResp.getData(); + } + + /** + * Version: 10.12.0.cl or later Gets a list of [custom + * calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires + * `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can + * administer ThoughtSpot**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot + * instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) + * privilege is required. #### Usage guidelines By default, the API returns a list of custom + * calendars for all connection objects. To retrieve custom calendar details for a particular + * connection, specify the connection ID. You can also use other search parameters such as + * `name_pattern` and `sort_options` as search filters. The + * `name_pattern` parameter filters and returns only those objects that match the + * specified pattern. Use `%` as a wildcard for pattern matching. + * + * @param searchCalendarsRequest (required) + * @return ApiResponse<List<CalendarResponse>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Custom calendar fetched successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public ApiResponse> searchCalendarsWithHttpInfo( + SearchCalendarsRequest searchCalendarsRequest) throws ApiException { + okhttp3.Call localVarCall = searchCalendarsValidateBeforeCall(searchCalendarsRequest, null); + Type localVarReturnType = new TypeToken>() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Version: 10.12.0.cl or later Gets a list of [custom + * calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires + * `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can + * administer ThoughtSpot**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot + * instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) + * privilege is required. #### Usage guidelines By default, the API returns a list of custom + * calendars for all connection objects. To retrieve custom calendar details for a particular + * connection, specify the connection ID. You can also use other search parameters such as + * `name_pattern` and `sort_options` as search filters. The + * `name_pattern` parameter filters and returns only those objects that match the + * specified pattern. Use `%` as a wildcard for pattern matching. + * + * @param searchCalendarsRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Custom calendar fetched successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call searchCalendarsAsync( + SearchCalendarsRequest searchCalendarsRequest, + final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = + searchCalendarsValidateBeforeCall(searchCalendarsRequest, _callback); + Type localVarReturnType = new TypeToken>() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchChannelHistory + * + * @param searchChannelHistoryRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Channel status logs retrieved successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
500 Unexpected error -
+ */ + public okhttp3.Call searchChannelHistoryCall( + SearchChannelHistoryRequest searchChannelHistoryRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = searchChannelHistoryRequest; + + // create path and map variables + String localVarPath = "/api/rest/2.0/jobs/history/communication-channels/search"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchChannelHistoryValidateBeforeCall( + SearchChannelHistoryRequest searchChannelHistoryRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'searchChannelHistoryRequest' is set + if (searchChannelHistoryRequest == null) { + throw new ApiException( + "Missing the required parameter 'searchChannelHistoryRequest' when calling" + + " searchChannelHistory(Async)"); + } + + return searchChannelHistoryCall(searchChannelHistoryRequest, _callback); + } + + /** + * Version: 26.4.0.cl or later Searches delivery history for communication channels such as + * webhooks. Returns channel-level delivery status for each job execution record. Use this to + * monitor channel health and delivery success rates across events. Requires + * `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has + * developer privilege**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with + * `CAN_MANAGE_WEBHOOKS` (**Can manage webhooks**) privilege are also authorized to + * perform this action. **NOTE**: When `channel_type` is `WEBHOOK`, the + * following constraints apply: - `job_ids`, `channel_identifiers`, and + * `events` each accept at most one element. - When `job_ids` is provided, + * it is used as the sole lookup key and other filter fields are ignored. - When + * `job_ids` is not provided, `channel_identifiers` and `events` + * are both required, each containing exactly one element. - Records older than the configured * retention period are not returned. - Use `start_epoch_time_in_millis` and/or * `end_epoch_time_in_millis` to narrow results to a specific time window. * @@ -26857,6 +27297,255 @@ public okhttp3.Call singleAnswerAsync( localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for stopConversation + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public okhttp3.Call stopConversationCall( + String conversationIdentifier, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response" + .replace( + "{" + "conversation_identifier" + "}", + localVarApiClient.escapeString(conversationIdentifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call stopConversationValidateBeforeCall( + String conversationIdentifier, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'conversationIdentifier' is set + if (conversationIdentifier == null) { + throw new ApiException( + "Missing the required parameter 'conversationIdentifier' when calling" + + " stopConversation(Async)"); + } + + return stopConversationCall(conversationIdentifier, _callback); + } + + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later + * <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified + * conversation. Use this endpoint to cancel a response that is actively being generated — for + * example, when the user navigates away, reformulates their question, or no longer needs the + * current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified + * conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public void stopConversation(String conversationIdentifier) throws ApiException { + stopConversationWithHttpInfo(conversationIdentifier); + } + + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later + * <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified + * conversation. Use this endpoint to cancel a response that is actively being generated — for + * example, when the user navigates away, reformulates their question, or no longer needs the + * current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified + * conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public ApiResponse stopConversationWithHttpInfo(String conversationIdentifier) + throws ApiException { + okhttp3.Call localVarCall = + stopConversationValidateBeforeCall(conversationIdentifier, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Stops an in-progress agent conversation response. Version: 26.6.0.cl or + * later <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the + * specified conversation. Use this endpoint to cancel a response that is actively being + * generated — for example, when the user navigates away, reformulates their question, or no + * longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to + * the specified conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @param conversationIdentifier Unique identifier of the conversation to stop. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Successfully stopped the in-progress agent conversation response for the given. -
400 Operation failed -
401 Unauthorized access. -
403 Forbidden access. -
500 Operation failed -
+ */ + public okhttp3.Call stopConversationAsync( + String conversationIdentifier, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + stopConversationValidateBeforeCall(conversationIdentifier, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for syncMetadata * @@ -29084,6 +29773,236 @@ public okhttp3.Call updateConnectionConfigurationAsync( localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for updateConnectionStatus + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public okhttp3.Call updateConnectionStatusCall( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest, + final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateConnectionStatusRequest; + + // create path and map variables + String localVarPath = + "/api/rest/2.0/connections/{connection_identifier}/status" + .replace( + "{" + "connection_identifier" + "}", + localVarApiClient.escapeString(connectionIdentifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"bearerAuth"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateConnectionStatusValidateBeforeCall( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest, + final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'connectionIdentifier' is set + if (connectionIdentifier == null) { + throw new ApiException( + "Missing the required parameter 'connectionIdentifier' when calling" + + " updateConnectionStatus(Async)"); + } + + // verify the required parameter 'updateConnectionStatusRequest' is set + if (updateConnectionStatusRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateConnectionStatusRequest' when calling" + + " updateConnectionStatus(Async)"); + } + + return updateConnectionStatusCall( + connectionIdentifier, updateConnectionStatusRequest, _callback); + } + + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection + * cannot be used for queries or operations until it is activated again. Requires + * `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the + * `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public void updateConnectionStatus( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest) + throws ApiException { + updateConnectionStatusWithHttpInfo(connectionIdentifier, updateConnectionStatusRequest); + } + + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection + * cannot be used for queries or operations until it is activated again. Requires + * `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the + * `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public ApiResponse updateConnectionStatusWithHttpInfo( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest) + throws ApiException { + okhttp3.Call localVarCall = + updateConnectionStatusValidateBeforeCall( + connectionIdentifier, updateConnectionStatusRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Version: 26.6.0.cl or later Activates or deactivates a connection. A + * deactivated connection cannot be used for queries or operations until it is activated again. + * Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access + * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, + * the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @param connectionIdentifier Unique ID or name of the connection. (required) + * @param updateConnectionStatusRequest (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
204 Connection status updated successfully. -
400 Invalid request. -
401 Unauthorized access. -
403 Forbidden access. -
404 Object not found -
500 Unexpected error -
+ */ + public okhttp3.Call updateConnectionStatusAsync( + String connectionIdentifier, + UpdateConnectionStatusRequest updateConnectionStatusRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateConnectionStatusValidateBeforeCall( + connectionIdentifier, updateConnectionStatusRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for updateConnectionV2 * diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/AnswerPngOptionsInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/AnswerPngOptionsInput.java new file mode 100644 index 000000000..fbcf01b73 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/AnswerPngOptionsInput.java @@ -0,0 +1,360 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** AnswerPngOptionsInput */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AnswerPngOptionsInput implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_X_RESOLUTION = "x_resolution"; + + @SerializedName(SERIALIZED_NAME_X_RESOLUTION) + @javax.annotation.Nullable + private Integer xResolution; + + public static final String SERIALIZED_NAME_Y_RESOLUTION = "y_resolution"; + + @SerializedName(SERIALIZED_NAME_Y_RESOLUTION) + @javax.annotation.Nullable + private Integer yResolution; + + public static final String SERIALIZED_NAME_SCALING = "scaling"; + + @SerializedName(SERIALIZED_NAME_SCALING) + @javax.annotation.Nullable + private Integer scaling; + + public AnswerPngOptionsInput() {} + + public AnswerPngOptionsInput xResolution(@javax.annotation.Nullable Integer xResolution) { + this.xResolution = xResolution; + return this; + } + + /** + * Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or + * later + * + * @return xResolution + */ + @javax.annotation.Nullable + public Integer getxResolution() { + return xResolution; + } + + public void setxResolution(@javax.annotation.Nullable Integer xResolution) { + this.xResolution = xResolution; + } + + public AnswerPngOptionsInput yResolution(@javax.annotation.Nullable Integer yResolution) { + this.yResolution = yResolution; + return this; + } + + /** + * Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl + * or later + * + * @return yResolution + */ + @javax.annotation.Nullable + public Integer getyResolution() { + return yResolution; + } + + public void setyResolution(@javax.annotation.Nullable Integer yResolution) { + this.yResolution = yResolution; + } + + public AnswerPngOptionsInput scaling(@javax.annotation.Nullable Integer scaling) { + this.scaling = scaling; + return this; + } + + /** + * The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later + * + * @return scaling + */ + @javax.annotation.Nullable + public Integer getScaling() { + return scaling; + } + + public void setScaling(@javax.annotation.Nullable Integer scaling) { + this.scaling = scaling; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AnswerPngOptionsInput instance itself + */ + public AnswerPngOptionsInput putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnswerPngOptionsInput answerPngOptionsInput = (AnswerPngOptionsInput) o; + return Objects.equals(this.xResolution, answerPngOptionsInput.xResolution) + && Objects.equals(this.yResolution, answerPngOptionsInput.yResolution) + && Objects.equals(this.scaling, answerPngOptionsInput.scaling) + && Objects.equals( + this.additionalProperties, answerPngOptionsInput.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(xResolution, yResolution, scaling, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnswerPngOptionsInput {\n"); + sb.append(" xResolution: ").append(toIndentedString(xResolution)).append("\n"); + sb.append(" yResolution: ").append(toIndentedString(yResolution)).append("\n"); + sb.append(" scaling: ").append(toIndentedString(scaling)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("x_resolution"); + openapiFields.add("y_resolution"); + openapiFields.add("scaling"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AnswerPngOptionsInput + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AnswerPngOptionsInput.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in AnswerPngOptionsInput is not found in" + + " the empty JSON string", + AnswerPngOptionsInput.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AnswerPngOptionsInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AnswerPngOptionsInput' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AnswerPngOptionsInput.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, AnswerPngOptionsInput value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AnswerPngOptionsInput read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AnswerPngOptionsInput instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of AnswerPngOptionsInput given an JSON string + * + * @param jsonString JSON string + * @return An instance of AnswerPngOptionsInput + * @throws IOException if the JSON string is invalid with respect to AnswerPngOptionsInput + */ + public static AnswerPngOptionsInput fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AnswerPngOptionsInput.class); + } + + /** + * Convert an instance of AnswerPngOptionsInput to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferences.java b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferences.java new file mode 100644 index 000000000..13c64ae26 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferences.java @@ -0,0 +1,425 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** Cluster-level authentication preferences. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AuthClusterPreferences implements Serializable { + private static final long serialVersionUID = 1L; + + /** Whether authentication is enabled or disabled at the cluster level. */ + @JsonAdapter(AuthStatusEnum.Adapter.class) + public enum AuthStatusEnum { + ENABLED("ENABLED"), + + DISABLED("DISABLED"); + + private String value; + + AuthStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthStatusEnum fromValue(String value) { + for (AuthStatusEnum b : AuthStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthStatusEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthStatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AuthStatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_AUTH_STATUS = "auth_status"; + + @SerializedName(SERIALIZED_NAME_AUTH_STATUS) + @javax.annotation.Nullable + private AuthStatusEnum authStatus; + + public static final String SERIALIZED_NAME_ACCESS_TOKENS = "access_tokens"; + + @SerializedName(SERIALIZED_NAME_ACCESS_TOKENS) + @javax.annotation.Nullable + private List accessTokens; + + public AuthClusterPreferences() {} + + public AuthClusterPreferences authStatus(@javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + return this; + } + + /** + * Whether authentication is enabled or disabled at the cluster level. + * + * @return authStatus + */ + @javax.annotation.Nullable + public AuthStatusEnum getAuthStatus() { + return authStatus; + } + + public void setAuthStatus(@javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + } + + public AuthClusterPreferences accessTokens( + @javax.annotation.Nullable List accessTokens) { + this.accessTokens = accessTokens; + return this; + } + + public AuthClusterPreferences addAccessTokensItem(AuthSettingsAccessToken accessTokensItem) { + if (this.accessTokens == null) { + this.accessTokens = new ArrayList<>(); + } + this.accessTokens.add(accessTokensItem); + return this; + } + + /** + * Cluster-level access tokens. Absent when no token is configured. + * + * @return accessTokens + */ + @javax.annotation.Nullable + public List getAccessTokens() { + return accessTokens; + } + + public void setAccessTokens( + @javax.annotation.Nullable List accessTokens) { + this.accessTokens = accessTokens; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AuthClusterPreferences instance itself + */ + public AuthClusterPreferences putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthClusterPreferences authClusterPreferences = (AuthClusterPreferences) o; + return Objects.equals(this.authStatus, authClusterPreferences.authStatus) + && Objects.equals(this.accessTokens, authClusterPreferences.accessTokens) + && Objects.equals( + this.additionalProperties, authClusterPreferences.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(authStatus, accessTokens, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthClusterPreferences {\n"); + sb.append(" authStatus: ").append(toIndentedString(authStatus)).append("\n"); + sb.append(" accessTokens: ").append(toIndentedString(accessTokens)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("auth_status"); + openapiFields.add("access_tokens"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AuthClusterPreferences + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AuthClusterPreferences.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in AuthClusterPreferences is not found" + + " in the empty JSON string", + AuthClusterPreferences.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) + && !jsonObj.get("auth_status").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `auth_status` to be a primitive type in the JSON" + + " string but got `%s`", + jsonObj.get("auth_status").toString())); + } + // validate the optional field `auth_status` + if (jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) { + AuthStatusEnum.validateJsonElement(jsonObj.get("auth_status")); + } + if (jsonObj.get("access_tokens") != null && !jsonObj.get("access_tokens").isJsonNull()) { + JsonArray jsonArrayaccessTokens = jsonObj.getAsJsonArray("access_tokens"); + if (jsonArrayaccessTokens != null) { + // ensure the json data is an array + if (!jsonObj.get("access_tokens").isJsonArray()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `access_tokens` to be an array in the JSON" + + " string but got `%s`", + jsonObj.get("access_tokens").toString())); + } + + // validate the optional field `access_tokens` (array) + for (int i = 0; i < jsonArrayaccessTokens.size(); i++) { + AuthSettingsAccessToken.validateJsonElement(jsonArrayaccessTokens.get(i)); + } + ; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AuthClusterPreferences.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AuthClusterPreferences' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AuthClusterPreferences.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, AuthClusterPreferences value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AuthClusterPreferences read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AuthClusterPreferences instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of AuthClusterPreferences given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthClusterPreferences + * @throws IOException if the JSON string is invalid with respect to AuthClusterPreferences + */ + public static AuthClusterPreferences fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AuthClusterPreferences.class); + } + + /** + * Convert an instance of AuthClusterPreferences to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferencesInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferencesInput.java new file mode 100644 index 000000000..e7bf19c96 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthClusterPreferencesInput.java @@ -0,0 +1,375 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** Input for cluster-level auth configuration. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AuthClusterPreferencesInput implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated + * if one does not exist. When disabled, the existing token is revoked. + */ + @JsonAdapter(AuthStatusEnum.Adapter.class) + public enum AuthStatusEnum { + ENABLED("ENABLED"), + + DISABLED("DISABLED"); + + private String value; + + AuthStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthStatusEnum fromValue(String value) { + for (AuthStatusEnum b : AuthStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthStatusEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthStatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AuthStatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_AUTH_STATUS = "auth_status"; + + @SerializedName(SERIALIZED_NAME_AUTH_STATUS) + @javax.annotation.Nullable + private AuthStatusEnum authStatus; + + public AuthClusterPreferencesInput() {} + + public AuthClusterPreferencesInput authStatus( + @javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + return this; + } + + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated + * if one does not exist. When disabled, the existing token is revoked. + * + * @return authStatus + */ + @javax.annotation.Nullable + public AuthStatusEnum getAuthStatus() { + return authStatus; + } + + public void setAuthStatus(@javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AuthClusterPreferencesInput instance itself + */ + public AuthClusterPreferencesInput putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthClusterPreferencesInput authClusterPreferencesInput = (AuthClusterPreferencesInput) o; + return Objects.equals(this.authStatus, authClusterPreferencesInput.authStatus) + && Objects.equals( + this.additionalProperties, + authClusterPreferencesInput.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(authStatus, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthClusterPreferencesInput {\n"); + sb.append(" authStatus: ").append(toIndentedString(authStatus)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("auth_status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to + * AuthClusterPreferencesInput + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AuthClusterPreferencesInput.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in AuthClusterPreferencesInput is not" + + " found in the empty JSON string", + AuthClusterPreferencesInput.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) + && !jsonObj.get("auth_status").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `auth_status` to be a primitive type in the JSON" + + " string but got `%s`", + jsonObj.get("auth_status").toString())); + } + // validate the optional field `auth_status` + if (jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) { + AuthStatusEnum.validateJsonElement(jsonObj.get("auth_status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AuthClusterPreferencesInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AuthClusterPreferencesInput' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AuthClusterPreferencesInput.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, AuthClusterPreferencesInput value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AuthClusterPreferencesInput read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AuthClusterPreferencesInput instance = + thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of AuthClusterPreferencesInput given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthClusterPreferencesInput + * @throws IOException if the JSON string is invalid with respect to AuthClusterPreferencesInput + */ + public static AuthClusterPreferencesInput fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AuthClusterPreferencesInput.class); + } + + /** + * Convert an instance of AuthClusterPreferencesInput to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgInfo.java b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgInfo.java new file mode 100644 index 000000000..f90104674 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgInfo.java @@ -0,0 +1,347 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** Org identifier returned in auth settings search results. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AuthOrgInfo implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private Integer id; + + public static final String SERIALIZED_NAME_NAME = "name"; + + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable + private String name; + + public AuthOrgInfo() {} + + public AuthOrgInfo id(@javax.annotation.Nonnull Integer id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the org. + * + * @return id + */ + @javax.annotation.Nonnull + public Integer getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull Integer id) { + this.id = id; + } + + public AuthOrgInfo name(@javax.annotation.Nullable String name) { + this.name = name; + return this; + } + + /** + * Name of the org. + * + * @return name + */ + @javax.annotation.Nullable + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nullable String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AuthOrgInfo instance itself + */ + public AuthOrgInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthOrgInfo authOrgInfo = (AuthOrgInfo) o; + return Objects.equals(this.id, authOrgInfo.id) + && Objects.equals(this.name, authOrgInfo.name) + && Objects.equals(this.additionalProperties, authOrgInfo.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthOrgInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("id"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("id"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AuthOrgInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AuthOrgInfo.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in AuthOrgInfo is not found in the empty" + + " JSON string", + AuthOrgInfo.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AuthOrgInfo.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException( + String.format( + "The required field `%s` is not found in the JSON string: %s", + requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `name` to be a primitive type in the JSON string" + + " but got `%s`", + jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AuthOrgInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AuthOrgInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AuthOrgInfo.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, AuthOrgInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AuthOrgInfo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AuthOrgInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of AuthOrgInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthOrgInfo + * @throws IOException if the JSON string is invalid with respect to AuthOrgInfo + */ + public static AuthOrgInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AuthOrgInfo.class); + } + + /** + * Convert an instance of AuthOrgInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreference.java b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreference.java new file mode 100644 index 000000000..bd10fe577 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreference.java @@ -0,0 +1,457 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** Org-level authentication preferences for a single org. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AuthOrgPreference implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ORG = "org"; + + @SerializedName(SERIALIZED_NAME_ORG) + @javax.annotation.Nullable + private AuthOrgInfo org; + + /** Whether authentication is enabled or disabled for this org. */ + @JsonAdapter(AuthStatusEnum.Adapter.class) + public enum AuthStatusEnum { + ENABLED("ENABLED"), + + DISABLED("DISABLED"); + + private String value; + + AuthStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthStatusEnum fromValue(String value) { + for (AuthStatusEnum b : AuthStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthStatusEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthStatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AuthStatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_AUTH_STATUS = "auth_status"; + + @SerializedName(SERIALIZED_NAME_AUTH_STATUS) + @javax.annotation.Nullable + private AuthStatusEnum authStatus; + + public static final String SERIALIZED_NAME_ACCESS_TOKENS = "access_tokens"; + + @SerializedName(SERIALIZED_NAME_ACCESS_TOKENS) + @javax.annotation.Nullable + private List accessTokens; + + public AuthOrgPreference() {} + + public AuthOrgPreference org(@javax.annotation.Nullable AuthOrgInfo org) { + this.org = org; + return this; + } + + /** + * Get org + * + * @return org + */ + @javax.annotation.Nullable + public AuthOrgInfo getOrg() { + return org; + } + + public void setOrg(@javax.annotation.Nullable AuthOrgInfo org) { + this.org = org; + } + + public AuthOrgPreference authStatus(@javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + return this; + } + + /** + * Whether authentication is enabled or disabled for this org. + * + * @return authStatus + */ + @javax.annotation.Nullable + public AuthStatusEnum getAuthStatus() { + return authStatus; + } + + public void setAuthStatus(@javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + } + + public AuthOrgPreference accessTokens( + @javax.annotation.Nullable List accessTokens) { + this.accessTokens = accessTokens; + return this; + } + + public AuthOrgPreference addAccessTokensItem(AuthSettingsAccessToken accessTokensItem) { + if (this.accessTokens == null) { + this.accessTokens = new ArrayList<>(); + } + this.accessTokens.add(accessTokensItem); + return this; + } + + /** + * Org-level access tokens. Absent when no token is configured or the feature flag is off. + * + * @return accessTokens + */ + @javax.annotation.Nullable + public List getAccessTokens() { + return accessTokens; + } + + public void setAccessTokens( + @javax.annotation.Nullable List accessTokens) { + this.accessTokens = accessTokens; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AuthOrgPreference instance itself + */ + public AuthOrgPreference putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthOrgPreference authOrgPreference = (AuthOrgPreference) o; + return Objects.equals(this.org, authOrgPreference.org) + && Objects.equals(this.authStatus, authOrgPreference.authStatus) + && Objects.equals(this.accessTokens, authOrgPreference.accessTokens) + && Objects.equals( + this.additionalProperties, authOrgPreference.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(org, authStatus, accessTokens, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthOrgPreference {\n"); + sb.append(" org: ").append(toIndentedString(org)).append("\n"); + sb.append(" authStatus: ").append(toIndentedString(authStatus)).append("\n"); + sb.append(" accessTokens: ").append(toIndentedString(accessTokens)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("org"); + openapiFields.add("auth_status"); + openapiFields.add("access_tokens"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AuthOrgPreference + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AuthOrgPreference.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in AuthOrgPreference is not found in the" + + " empty JSON string", + AuthOrgPreference.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `org` + if (jsonObj.get("org") != null && !jsonObj.get("org").isJsonNull()) { + AuthOrgInfo.validateJsonElement(jsonObj.get("org")); + } + if ((jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) + && !jsonObj.get("auth_status").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `auth_status` to be a primitive type in the JSON" + + " string but got `%s`", + jsonObj.get("auth_status").toString())); + } + // validate the optional field `auth_status` + if (jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) { + AuthStatusEnum.validateJsonElement(jsonObj.get("auth_status")); + } + if (jsonObj.get("access_tokens") != null && !jsonObj.get("access_tokens").isJsonNull()) { + JsonArray jsonArrayaccessTokens = jsonObj.getAsJsonArray("access_tokens"); + if (jsonArrayaccessTokens != null) { + // ensure the json data is an array + if (!jsonObj.get("access_tokens").isJsonArray()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `access_tokens` to be an array in the JSON" + + " string but got `%s`", + jsonObj.get("access_tokens").toString())); + } + + // validate the optional field `access_tokens` (array) + for (int i = 0; i < jsonArrayaccessTokens.size(); i++) { + AuthSettingsAccessToken.validateJsonElement(jsonArrayaccessTokens.get(i)); + } + ; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AuthOrgPreference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AuthOrgPreference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AuthOrgPreference.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, AuthOrgPreference value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AuthOrgPreference read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AuthOrgPreference instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of AuthOrgPreference given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthOrgPreference + * @throws IOException if the JSON string is invalid with respect to AuthOrgPreference + */ + public static AuthOrgPreference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AuthOrgPreference.class); + } + + /** + * Convert an instance of AuthOrgPreference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreferenceInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreferenceInput.java new file mode 100644 index 000000000..6407986ba --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthOrgPreferenceInput.java @@ -0,0 +1,416 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** Input for org-level auth configuration. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AuthOrgPreferenceInput implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ORG_IDENTIFIER = "org_identifier"; + + @SerializedName(SERIALIZED_NAME_ORG_IDENTIFIER) + @javax.annotation.Nonnull + private String orgIdentifier; + + /** + * Enable or disable authentication for this org. When enabled, a new token is generated if one + * does not exist. When disabled, the existing token is revoked. + */ + @JsonAdapter(AuthStatusEnum.Adapter.class) + public enum AuthStatusEnum { + ENABLED("ENABLED"), + + DISABLED("DISABLED"); + + private String value; + + AuthStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthStatusEnum fromValue(String value) { + for (AuthStatusEnum b : AuthStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthStatusEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthStatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AuthStatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_AUTH_STATUS = "auth_status"; + + @SerializedName(SERIALIZED_NAME_AUTH_STATUS) + @javax.annotation.Nullable + private AuthStatusEnum authStatus; + + public AuthOrgPreferenceInput() {} + + public AuthOrgPreferenceInput orgIdentifier(@javax.annotation.Nonnull String orgIdentifier) { + this.orgIdentifier = orgIdentifier; + return this; + } + + /** + * Unique ID or name of the org to configure. + * + * @return orgIdentifier + */ + @javax.annotation.Nonnull + public String getOrgIdentifier() { + return orgIdentifier; + } + + public void setOrgIdentifier(@javax.annotation.Nonnull String orgIdentifier) { + this.orgIdentifier = orgIdentifier; + } + + public AuthOrgPreferenceInput authStatus(@javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + return this; + } + + /** + * Enable or disable authentication for this org. When enabled, a new token is generated if one + * does not exist. When disabled, the existing token is revoked. + * + * @return authStatus + */ + @javax.annotation.Nullable + public AuthStatusEnum getAuthStatus() { + return authStatus; + } + + public void setAuthStatus(@javax.annotation.Nullable AuthStatusEnum authStatus) { + this.authStatus = authStatus; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AuthOrgPreferenceInput instance itself + */ + public AuthOrgPreferenceInput putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthOrgPreferenceInput authOrgPreferenceInput = (AuthOrgPreferenceInput) o; + return Objects.equals(this.orgIdentifier, authOrgPreferenceInput.orgIdentifier) + && Objects.equals(this.authStatus, authOrgPreferenceInput.authStatus) + && Objects.equals( + this.additionalProperties, authOrgPreferenceInput.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(orgIdentifier, authStatus, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthOrgPreferenceInput {\n"); + sb.append(" orgIdentifier: ").append(toIndentedString(orgIdentifier)).append("\n"); + sb.append(" authStatus: ").append(toIndentedString(authStatus)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("org_identifier"); + openapiFields.add("auth_status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("org_identifier"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AuthOrgPreferenceInput + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AuthOrgPreferenceInput.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in AuthOrgPreferenceInput is not found" + + " in the empty JSON string", + AuthOrgPreferenceInput.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AuthOrgPreferenceInput.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException( + String.format( + "The required field `%s` is not found in the JSON string: %s", + requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("org_identifier").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `org_identifier` to be a primitive type in the" + + " JSON string but got `%s`", + jsonObj.get("org_identifier").toString())); + } + if ((jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) + && !jsonObj.get("auth_status").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `auth_status` to be a primitive type in the JSON" + + " string but got `%s`", + jsonObj.get("auth_status").toString())); + } + // validate the optional field `auth_status` + if (jsonObj.get("auth_status") != null && !jsonObj.get("auth_status").isJsonNull()) { + AuthStatusEnum.validateJsonElement(jsonObj.get("auth_status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AuthOrgPreferenceInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AuthOrgPreferenceInput' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AuthOrgPreferenceInput.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, AuthOrgPreferenceInput value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AuthOrgPreferenceInput read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AuthOrgPreferenceInput instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of AuthOrgPreferenceInput given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthOrgPreferenceInput + * @throws IOException if the JSON string is invalid with respect to AuthOrgPreferenceInput + */ + public static AuthOrgPreferenceInput fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AuthOrgPreferenceInput.class); + } + + /** + * Convert an instance of AuthOrgPreferenceInput to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/AuthSettingsAccessToken.java b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthSettingsAccessToken.java new file mode 100644 index 000000000..0370e624a --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/AuthSettingsAccessToken.java @@ -0,0 +1,303 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** An auth settings access token. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class AuthSettingsAccessToken implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_KEY = "key"; + + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public AuthSettingsAccessToken() {} + + public AuthSettingsAccessToken key(@javax.annotation.Nonnull String key) { + this.key = key; + return this; + } + + /** + * The plaintext token key value. + * + * @return key + */ + @javax.annotation.Nonnull + public String getKey() { + return key; + } + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AuthSettingsAccessToken instance itself + */ + public AuthSettingsAccessToken putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthSettingsAccessToken authSettingsAccessToken = (AuthSettingsAccessToken) o; + return Objects.equals(this.key, authSettingsAccessToken.key) + && Objects.equals( + this.additionalProperties, authSettingsAccessToken.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(key, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthSettingsAccessToken {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AuthSettingsAccessToken + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AuthSettingsAccessToken.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in AuthSettingsAccessToken is not found" + + " in the empty JSON string", + AuthSettingsAccessToken.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AuthSettingsAccessToken.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException( + String.format( + "The required field `%s` is not found in the JSON string: %s", + requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `key` to be a primitive type in the JSON string" + + " but got `%s`", + jsonObj.get("key").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AuthSettingsAccessToken.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AuthSettingsAccessToken' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AuthSettingsAccessToken.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, AuthSettingsAccessToken value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AuthSettingsAccessToken read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + AuthSettingsAccessToken instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of AuthSettingsAccessToken given an JSON string + * + * @param jsonString JSON string + * @return An instance of AuthSettingsAccessToken + * @throws IOException if the JSON string is invalid with respect to AuthSettingsAccessToken + */ + public static AuthSettingsAccessToken fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AuthSettingsAccessToken.class); + } + + /** + * Convert an instance of AuthSettingsAccessToken to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequest.java new file mode 100644 index 000000000..591fbaf55 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequest.java @@ -0,0 +1,462 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** ConfigureAuthSettingsRequest */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class ConfigureAuthSettingsRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** Type of authentication mechanism to configure. Currently supports TRUSTED_AUTH. */ + @JsonAdapter(AuthTypeEnum.Adapter.class) + public enum AuthTypeEnum { + TRUSTED_AUTH("TRUSTED_AUTH"); + + private String value; + + AuthTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthTypeEnum fromValue(String value) { + for (AuthTypeEnum b : AuthTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthTypeEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthTypeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AuthTypeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_AUTH_TYPE = "auth_type"; + + @SerializedName(SERIALIZED_NAME_AUTH_TYPE) + @javax.annotation.Nonnull + private AuthTypeEnum authType; + + public static final String SERIALIZED_NAME_CLUSTER_PREFERENCES = "cluster_preferences"; + + @SerializedName(SERIALIZED_NAME_CLUSTER_PREFERENCES) + @javax.annotation.Nullable + private AuthClusterPreferencesInput clusterPreferences; + + public static final String SERIALIZED_NAME_ORG_PREFERENCES = "org_preferences"; + + @SerializedName(SERIALIZED_NAME_ORG_PREFERENCES) + @javax.annotation.Nullable + private List orgPreferences; + + public ConfigureAuthSettingsRequest() {} + + public ConfigureAuthSettingsRequest authType(@javax.annotation.Nonnull AuthTypeEnum authType) { + this.authType = authType; + return this; + } + + /** + * Type of authentication mechanism to configure. Currently supports TRUSTED_AUTH. + * + * @return authType + */ + @javax.annotation.Nonnull + public AuthTypeEnum getAuthType() { + return authType; + } + + public void setAuthType(@javax.annotation.Nonnull AuthTypeEnum authType) { + this.authType = authType; + } + + public ConfigureAuthSettingsRequest clusterPreferences( + @javax.annotation.Nullable AuthClusterPreferencesInput clusterPreferences) { + this.clusterPreferences = clusterPreferences; + return this; + } + + /** + * Cluster-level authentication preferences. Omit to leave the existing cluster setting + * unchanged. + * + * @return clusterPreferences + */ + @javax.annotation.Nullable + public AuthClusterPreferencesInput getClusterPreferences() { + return clusterPreferences; + } + + public void setClusterPreferences( + @javax.annotation.Nullable AuthClusterPreferencesInput clusterPreferences) { + this.clusterPreferences = clusterPreferences; + } + + public ConfigureAuthSettingsRequest orgPreferences( + @javax.annotation.Nullable List orgPreferences) { + this.orgPreferences = orgPreferences; + return this; + } + + public ConfigureAuthSettingsRequest addOrgPreferencesItem( + AuthOrgPreferenceInput orgPreferencesItem) { + if (this.orgPreferences == null) { + this.orgPreferences = new ArrayList<>(); + } + this.orgPreferences.add(orgPreferencesItem); + return this; + } + + /** + * Org-level authentication preferences. Each entry identifies an org and the desired status. + * Omit to leave existing org settings unchanged. + * + * @return orgPreferences + */ + @javax.annotation.Nullable + public List getOrgPreferences() { + return orgPreferences; + } + + public void setOrgPreferences( + @javax.annotation.Nullable List orgPreferences) { + this.orgPreferences = orgPreferences; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ConfigureAuthSettingsRequest instance itself + */ + public ConfigureAuthSettingsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfigureAuthSettingsRequest configureAuthSettingsRequest = + (ConfigureAuthSettingsRequest) o; + return Objects.equals(this.authType, configureAuthSettingsRequest.authType) + && Objects.equals( + this.clusterPreferences, configureAuthSettingsRequest.clusterPreferences) + && Objects.equals(this.orgPreferences, configureAuthSettingsRequest.orgPreferences) + && Objects.equals( + this.additionalProperties, + configureAuthSettingsRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(authType, clusterPreferences, orgPreferences, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigureAuthSettingsRequest {\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" clusterPreferences: ") + .append(toIndentedString(clusterPreferences)) + .append("\n"); + sb.append(" orgPreferences: ").append(toIndentedString(orgPreferences)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("auth_type"); + openapiFields.add("cluster_preferences"); + openapiFields.add("org_preferences"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("auth_type"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to + * ConfigureAuthSettingsRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ConfigureAuthSettingsRequest.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in ConfigureAuthSettingsRequest is not" + + " found in the empty JSON string", + ConfigureAuthSettingsRequest.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ConfigureAuthSettingsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException( + String.format( + "The required field `%s` is not found in the JSON string: %s", + requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("auth_type").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `auth_type` to be a primitive type in the JSON" + + " string but got `%s`", + jsonObj.get("auth_type").toString())); + } + // validate the required field `auth_type` + AuthTypeEnum.validateJsonElement(jsonObj.get("auth_type")); + // validate the optional field `cluster_preferences` + if (jsonObj.get("cluster_preferences") != null + && !jsonObj.get("cluster_preferences").isJsonNull()) { + AuthClusterPreferencesInput.validateJsonElement(jsonObj.get("cluster_preferences")); + } + if (jsonObj.get("org_preferences") != null + && !jsonObj.get("org_preferences").isJsonNull()) { + JsonArray jsonArrayorgPreferences = jsonObj.getAsJsonArray("org_preferences"); + if (jsonArrayorgPreferences != null) { + // ensure the json data is an array + if (!jsonObj.get("org_preferences").isJsonArray()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `org_preferences` to be an array in the" + + " JSON string but got `%s`", + jsonObj.get("org_preferences").toString())); + } + + // validate the optional field `org_preferences` (array) + for (int i = 0; i < jsonArrayorgPreferences.size(); i++) { + AuthOrgPreferenceInput.validateJsonElement(jsonArrayorgPreferences.get(i)); + } + ; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ConfigureAuthSettingsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ConfigureAuthSettingsRequest' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter( + this, TypeToken.get(ConfigureAuthSettingsRequest.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, ConfigureAuthSettingsRequest value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ConfigureAuthSettingsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ConfigureAuthSettingsRequest instance = + thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of ConfigureAuthSettingsRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConfigureAuthSettingsRequest + * @throws IOException if the JSON string is invalid with respect to + * ConfigureAuthSettingsRequest + */ + public static ConfigureAuthSettingsRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ConfigureAuthSettingsRequest.class); + } + + /** + * Convert an instance of ConfigureAuthSettingsRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/ConnectionConfigurationResponse.java b/sdks/java/src/main/java/com/thoughtspot/client/model/ConnectionConfigurationResponse.java index 43c888e9b..9856162e5 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/ConnectionConfigurationResponse.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/ConnectionConfigurationResponse.java @@ -195,7 +195,9 @@ public enum DataWarehouseTypeEnum { FALCON_ONPREM("FALCON_ONPREM"), - CLICKHOUSE("CLICKHOUSE"); + CLICKHOUSE("CLICKHOUSE"), + + IOMETE("IOMETE"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionRequest.java index cfbb371b5..97901e212 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionRequest.java @@ -111,7 +111,9 @@ public enum DataWarehouseTypeEnum { FALCON_ONPREM("FALCON_ONPREM"), - CLICKHOUSE("CLICKHOUSE"); + CLICKHOUSE("CLICKHOUSE"), + + IOMETE("IOMETE"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionResponse.java b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionResponse.java index 45c084864..85a17861b 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionResponse.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateConnectionResponse.java @@ -111,7 +111,9 @@ public enum DataWarehouseTypeEnum { FALCON_ONPREM("FALCON_ONPREM"), - CLICKHOUSE("CLICKHOUSE"); + CLICKHOUSE("CLICKHOUSE"), + + IOMETE("IOMETE"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateRoleRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateRoleRequest.java index d4b2166f6..e1358a122 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateRoleRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateRoleRequest.java @@ -116,6 +116,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), PREVIEW_THOUGHTSPOT_SAGE("PREVIEW_THOUGHTSPOT_SAGE"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateUserGroupRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateUserGroupRequest.java index cc84793d0..ae7de95a1 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateUserGroupRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateUserGroupRequest.java @@ -115,6 +115,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + PREVIEW_DOCUMENT_SEARCH("PREVIEW_DOCUMENT_SEARCH"), CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/ExportAnswerReportRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/ExportAnswerReportRequest.java index 4ac239499..dc83fc9e9 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/ExportAnswerReportRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/ExportAnswerReportRequest.java @@ -133,6 +133,76 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private RegionalSettingsInput regionalSettings; + public static final String SERIALIZED_NAME_PNG_OPTIONS = "png_options"; + + @SerializedName(SERIALIZED_NAME_PNG_OPTIONS) + @javax.annotation.Nullable + private AnswerPngOptionsInput pngOptions; + + public static final String SERIALIZED_NAME_PERSONALISED_VIEW_IDENTIFIER = + "personalised_view_identifier"; + + @SerializedName(SERIALIZED_NAME_PERSONALISED_VIEW_IDENTIFIER) + @javax.annotation.Nullable + private String personalisedViewIdentifier; + + /** Type of the answer being exported. Version: 26.6.0.cl or later */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + SAVED("SAVED"), + + PINNED("PINNED"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TypeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable + private TypeEnum type = TypeEnum.SAVED; + public ExportAnswerReportRequest() {} public ExportAnswerReportRequest metadataIdentifier( @@ -296,6 +366,66 @@ public void setRegionalSettings( this.regionalSettings = regionalSettings; } + public ExportAnswerReportRequest pngOptions( + @javax.annotation.Nullable AnswerPngOptionsInput pngOptions) { + this.pngOptions = pngOptions; + return this; + } + + /** + * Options for PNG export. Version: 26.6.0.cl or later + * + * @return pngOptions + */ + @javax.annotation.Nullable + public AnswerPngOptionsInput getPngOptions() { + return pngOptions; + } + + public void setPngOptions(@javax.annotation.Nullable AnswerPngOptionsInput pngOptions) { + this.pngOptions = pngOptions; + } + + public ExportAnswerReportRequest personalisedViewIdentifier( + @javax.annotation.Nullable String personalisedViewIdentifier) { + this.personalisedViewIdentifier = personalisedViewIdentifier; + return this; + } + + /** + * GUID or name of the personalised view of the Answer object. Version: 26.6.0.cl or later + * + * @return personalisedViewIdentifier + */ + @javax.annotation.Nullable + public String getPersonalisedViewIdentifier() { + return personalisedViewIdentifier; + } + + public void setPersonalisedViewIdentifier( + @javax.annotation.Nullable String personalisedViewIdentifier) { + this.personalisedViewIdentifier = personalisedViewIdentifier; + } + + public ExportAnswerReportRequest type(@javax.annotation.Nullable TypeEnum type) { + this.type = type; + return this; + } + + /** + * Type of the answer being exported. Version: 26.6.0.cl or later + * + * @return type + */ + @javax.annotation.Nullable + public TypeEnum getType() { + return type; + } + + public void setType(@javax.annotation.Nullable TypeEnum type) { + this.type = type; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -359,6 +489,11 @@ public boolean equals(Object o) { && Objects.equals( this.runtimeParamOverride, exportAnswerReportRequest.runtimeParamOverride) && Objects.equals(this.regionalSettings, exportAnswerReportRequest.regionalSettings) + && Objects.equals(this.pngOptions, exportAnswerReportRequest.pngOptions) + && Objects.equals( + this.personalisedViewIdentifier, + exportAnswerReportRequest.personalisedViewIdentifier) + && Objects.equals(this.type, exportAnswerReportRequest.type) && Objects.equals( this.additionalProperties, exportAnswerReportRequest.additionalProperties); } @@ -374,6 +509,9 @@ public int hashCode() { runtimeSort, runtimeParamOverride, regionalSettings, + pngOptions, + personalisedViewIdentifier, + type, additionalProperties); } @@ -395,6 +533,11 @@ public String toString() { .append(toIndentedString(runtimeParamOverride)) .append("\n"); sb.append(" regionalSettings: ").append(toIndentedString(regionalSettings)).append("\n"); + sb.append(" pngOptions: ").append(toIndentedString(pngOptions)).append("\n"); + sb.append(" personalisedViewIdentifier: ") + .append(toIndentedString(personalisedViewIdentifier)) + .append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); @@ -427,6 +570,9 @@ private String toIndentedString(Object o) { openapiFields.add("runtime_sort"); openapiFields.add("runtime_param_override"); openapiFields.add("regional_settings"); + openapiFields.add("png_options"); + openapiFields.add("personalised_view_identifier"); + openapiFields.add("type"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -485,6 +631,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("regional_settings").isJsonNull()) { RegionalSettingsInput.validateJsonElement(jsonObj.get("regional_settings")); } + // validate the optional field `png_options` + if (jsonObj.get("png_options") != null && !jsonObj.get("png_options").isJsonNull()) { + AnswerPngOptionsInput.validateJsonElement(jsonObj.get("png_options")); + } + if ((jsonObj.get("personalised_view_identifier") != null + && !jsonObj.get("personalised_view_identifier").isJsonNull()) + && !jsonObj.get("personalised_view_identifier").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `personalised_view_identifier` to be a primitive" + + " type in the JSON string but got `%s`", + jsonObj.get("personalised_view_identifier").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `type` to be a primitive type in the JSON string" + + " but got `%s`", + jsonObj.get("type").toString())); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + TypeEnum.validateJsonElement(jsonObj.get("type")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/FetchPermissionsOfPrincipalsRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/FetchPermissionsOfPrincipalsRequest.java index debccc071..2913f61ae 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/FetchPermissionsOfPrincipalsRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/FetchPermissionsOfPrincipalsRequest.java @@ -69,7 +69,9 @@ public enum DefaultMetadataTypeEnum { LOGICAL_COLUMN("LOGICAL_COLUMN"), - CONNECTION("CONNECTION"); + CONNECTION("CONNECTION"), + + COLLECTION("COLLECTION"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/GroupsImportListInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/GroupsImportListInput.java index 66175a0c9..ff0451b3d 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/GroupsImportListInput.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/GroupsImportListInput.java @@ -117,6 +117,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + PREVIEW_DOCUMENT_SEARCH("PREVIEW_DOCUMENT_SEARCH"), CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/PdfOptions.java b/sdks/java/src/main/java/com/thoughtspot/client/model/PdfOptions.java index 6a32e71d6..8129ac04a 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/PdfOptions.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/PdfOptions.java @@ -77,7 +77,9 @@ public class PdfOptions implements Serializable { /** Page size. */ @JsonAdapter(PageSizeEnum.Adapter.class) public enum PageSizeEnum { - A4("A4"); + A4("A4"), + + TAB_BASED("TAB_BASED"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/PermissionsMetadataTypeInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/PermissionsMetadataTypeInput.java index 552b534ae..aae9c6d72 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/PermissionsMetadataTypeInput.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/PermissionsMetadataTypeInput.java @@ -46,7 +46,9 @@ public enum TypeEnum { LOGICAL_COLUMN("LOGICAL_COLUMN"), - CONNECTION("CONNECTION"); + CONNECTION("CONNECTION"), + + COLLECTION("COLLECTION"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/RoleResponse.java b/sdks/java/src/main/java/com/thoughtspot/client/model/RoleResponse.java index 3d4b6114c..5f4027712 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/RoleResponse.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/RoleResponse.java @@ -141,6 +141,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), PREVIEW_THOUGHTSPOT_SAGE("PREVIEW_THOUGHTSPOT_SAGE"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SchedulesPdfOptionsInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SchedulesPdfOptionsInput.java index 66b8e766d..9e6c8ee54 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SchedulesPdfOptionsInput.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SchedulesPdfOptionsInput.java @@ -77,7 +77,9 @@ public class SchedulesPdfOptionsInput implements Serializable { /** Page size. */ @JsonAdapter(PageSizeEnum.Adapter.class) public enum PageSizeEnum { - A4("A4"); + A4("A4"), + + TAB_BASED("TAB_BASED"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsRequest.java new file mode 100644 index 000000000..3e5b627c6 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsRequest.java @@ -0,0 +1,454 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** SearchAuthSettingsRequest */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class SearchAuthSettingsRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * Type of authentication mechanism to retrieve settings for. Currently supports TRUSTED_AUTH. + */ + @JsonAdapter(AuthTypeEnum.Adapter.class) + public enum AuthTypeEnum { + TRUSTED_AUTH("TRUSTED_AUTH"); + + private String value; + + AuthTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthTypeEnum fromValue(String value) { + for (AuthTypeEnum b : AuthTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthTypeEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthTypeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AuthTypeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_AUTH_TYPE = "auth_type"; + + @SerializedName(SERIALIZED_NAME_AUTH_TYPE) + @javax.annotation.Nonnull + private AuthTypeEnum authType; + + /** + * Scope of auth settings to retrieve. When absent, both cluster and org settings are returned + * (subject to caller privileges). Set to CLUSTER to retrieve only cluster-level settings, or + * ORG to retrieve only org-level settings. + */ + @JsonAdapter(ScopeEnum.Adapter.class) + public enum ScopeEnum { + CLUSTER("CLUSTER"), + + ORG("ORG"); + + private String value; + + ScopeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ScopeEnum fromValue(String value) { + for (ScopeEnum b : ScopeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ScopeEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ScopeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ScopeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ScopeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_SCOPE = "scope"; + + @SerializedName(SERIALIZED_NAME_SCOPE) + @javax.annotation.Nullable + private ScopeEnum scope; + + public SearchAuthSettingsRequest() {} + + public SearchAuthSettingsRequest authType(@javax.annotation.Nonnull AuthTypeEnum authType) { + this.authType = authType; + return this; + } + + /** + * Type of authentication mechanism to retrieve settings for. Currently supports TRUSTED_AUTH. + * + * @return authType + */ + @javax.annotation.Nonnull + public AuthTypeEnum getAuthType() { + return authType; + } + + public void setAuthType(@javax.annotation.Nonnull AuthTypeEnum authType) { + this.authType = authType; + } + + public SearchAuthSettingsRequest scope(@javax.annotation.Nullable ScopeEnum scope) { + this.scope = scope; + return this; + } + + /** + * Scope of auth settings to retrieve. When absent, both cluster and org settings are returned + * (subject to caller privileges). Set to CLUSTER to retrieve only cluster-level settings, or + * ORG to retrieve only org-level settings. + * + * @return scope + */ + @javax.annotation.Nullable + public ScopeEnum getScope() { + return scope; + } + + public void setScope(@javax.annotation.Nullable ScopeEnum scope) { + this.scope = scope; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SearchAuthSettingsRequest instance itself + */ + public SearchAuthSettingsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchAuthSettingsRequest searchAuthSettingsRequest = (SearchAuthSettingsRequest) o; + return Objects.equals(this.authType, searchAuthSettingsRequest.authType) + && Objects.equals(this.scope, searchAuthSettingsRequest.scope) + && Objects.equals( + this.additionalProperties, searchAuthSettingsRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(authType, scope, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchAuthSettingsRequest {\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("auth_type"); + openapiFields.add("scope"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("auth_type"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SearchAuthSettingsRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SearchAuthSettingsRequest.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in SearchAuthSettingsRequest is not" + + " found in the empty JSON string", + SearchAuthSettingsRequest.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SearchAuthSettingsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException( + String.format( + "The required field `%s` is not found in the JSON string: %s", + requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("auth_type").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `auth_type` to be a primitive type in the JSON" + + " string but got `%s`", + jsonObj.get("auth_type").toString())); + } + // validate the required field `auth_type` + AuthTypeEnum.validateJsonElement(jsonObj.get("auth_type")); + if ((jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) + && !jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `scope` to be a primitive type in the JSON string" + + " but got `%s`", + jsonObj.get("scope").toString())); + } + // validate the optional field `scope` + if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) { + ScopeEnum.validateJsonElement(jsonObj.get("scope")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SearchAuthSettingsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchAuthSettingsRequest' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SearchAuthSettingsRequest.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchAuthSettingsRequest value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SearchAuthSettingsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + SearchAuthSettingsRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of SearchAuthSettingsRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of SearchAuthSettingsRequest + * @throws IOException if the JSON string is invalid with respect to SearchAuthSettingsRequest + */ + public static SearchAuthSettingsRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SearchAuthSettingsRequest.class); + } + + /** + * Convert an instance of SearchAuthSettingsRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsResponse.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsResponse.java new file mode 100644 index 000000000..bc510bb79 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchAuthSettingsResponse.java @@ -0,0 +1,464 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** Response for searchAuthSettings. Contains auth type and cluster/org-level preferences. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class SearchAuthSettingsResponse implements Serializable { + private static final long serialVersionUID = 1L; + + /** Type of authentication mechanism returned. */ + @JsonAdapter(AuthTypeEnum.Adapter.class) + public enum AuthTypeEnum { + TRUSTED_AUTH("TRUSTED_AUTH"); + + private String value; + + AuthTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthTypeEnum fromValue(String value) { + for (AuthTypeEnum b : AuthTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthTypeEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthTypeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AuthTypeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_AUTH_TYPE = "auth_type"; + + @SerializedName(SERIALIZED_NAME_AUTH_TYPE) + @javax.annotation.Nullable + private AuthTypeEnum authType; + + public static final String SERIALIZED_NAME_CLUSTER_PREFERENCES = "cluster_preferences"; + + @SerializedName(SERIALIZED_NAME_CLUSTER_PREFERENCES) + @javax.annotation.Nullable + private AuthClusterPreferences clusterPreferences; + + public static final String SERIALIZED_NAME_ORG_PREFERENCES = "org_preferences"; + + @SerializedName(SERIALIZED_NAME_ORG_PREFERENCES) + @javax.annotation.Nullable + private List orgPreferences; + + public SearchAuthSettingsResponse() {} + + public SearchAuthSettingsResponse authType(@javax.annotation.Nullable AuthTypeEnum authType) { + this.authType = authType; + return this; + } + + /** + * Type of authentication mechanism returned. + * + * @return authType + */ + @javax.annotation.Nullable + public AuthTypeEnum getAuthType() { + return authType; + } + + public void setAuthType(@javax.annotation.Nullable AuthTypeEnum authType) { + this.authType = authType; + } + + public SearchAuthSettingsResponse clusterPreferences( + @javax.annotation.Nullable AuthClusterPreferences clusterPreferences) { + this.clusterPreferences = clusterPreferences; + return this; + } + + /** + * Get clusterPreferences + * + * @return clusterPreferences + */ + @javax.annotation.Nullable + public AuthClusterPreferences getClusterPreferences() { + return clusterPreferences; + } + + public void setClusterPreferences( + @javax.annotation.Nullable AuthClusterPreferences clusterPreferences) { + this.clusterPreferences = clusterPreferences; + } + + public SearchAuthSettingsResponse orgPreferences( + @javax.annotation.Nullable List orgPreferences) { + this.orgPreferences = orgPreferences; + return this; + } + + public SearchAuthSettingsResponse addOrgPreferencesItem(AuthOrgPreference orgPreferencesItem) { + if (this.orgPreferences == null) { + this.orgPreferences = new ArrayList<>(); + } + this.orgPreferences.add(orgPreferencesItem); + return this; + } + + /** + * Org-level authentication configurations. Present when org scope was requested and per-org + * auth feature is enabled. + * + * @return orgPreferences + */ + @javax.annotation.Nullable + public List getOrgPreferences() { + return orgPreferences; + } + + public void setOrgPreferences( + @javax.annotation.Nullable List orgPreferences) { + this.orgPreferences = orgPreferences; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SearchAuthSettingsResponse instance itself + */ + public SearchAuthSettingsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchAuthSettingsResponse searchAuthSettingsResponse = (SearchAuthSettingsResponse) o; + return Objects.equals(this.authType, searchAuthSettingsResponse.authType) + && Objects.equals( + this.clusterPreferences, searchAuthSettingsResponse.clusterPreferences) + && Objects.equals(this.orgPreferences, searchAuthSettingsResponse.orgPreferences) + && Objects.equals( + this.additionalProperties, searchAuthSettingsResponse.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(authType, clusterPreferences, orgPreferences, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchAuthSettingsResponse {\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" clusterPreferences: ") + .append(toIndentedString(clusterPreferences)) + .append("\n"); + sb.append(" orgPreferences: ").append(toIndentedString(orgPreferences)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("auth_type"); + openapiFields.add("cluster_preferences"); + openapiFields.add("org_preferences"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SearchAuthSettingsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SearchAuthSettingsResponse.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in SearchAuthSettingsResponse is not" + + " found in the empty JSON string", + SearchAuthSettingsResponse.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("auth_type") != null && !jsonObj.get("auth_type").isJsonNull()) + && !jsonObj.get("auth_type").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `auth_type` to be a primitive type in the JSON" + + " string but got `%s`", + jsonObj.get("auth_type").toString())); + } + // validate the optional field `auth_type` + if (jsonObj.get("auth_type") != null && !jsonObj.get("auth_type").isJsonNull()) { + AuthTypeEnum.validateJsonElement(jsonObj.get("auth_type")); + } + // validate the optional field `cluster_preferences` + if (jsonObj.get("cluster_preferences") != null + && !jsonObj.get("cluster_preferences").isJsonNull()) { + AuthClusterPreferences.validateJsonElement(jsonObj.get("cluster_preferences")); + } + if (jsonObj.get("org_preferences") != null + && !jsonObj.get("org_preferences").isJsonNull()) { + JsonArray jsonArrayorgPreferences = jsonObj.getAsJsonArray("org_preferences"); + if (jsonArrayorgPreferences != null) { + // ensure the json data is an array + if (!jsonObj.get("org_preferences").isJsonArray()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `org_preferences` to be an array in the" + + " JSON string but got `%s`", + jsonObj.get("org_preferences").toString())); + } + + // validate the optional field `org_preferences` (array) + for (int i = 0; i < jsonArrayorgPreferences.size(); i++) { + AuthOrgPreference.validateJsonElement(jsonArrayorgPreferences.get(i)); + } + ; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SearchAuthSettingsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchAuthSettingsResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SearchAuthSettingsResponse.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchAuthSettingsResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SearchAuthSettingsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + SearchAuthSettingsResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of SearchAuthSettingsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SearchAuthSettingsResponse + * @throws IOException if the JSON string is invalid with respect to SearchAuthSettingsResponse + */ + public static SearchAuthSettingsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SearchAuthSettingsResponse.class); + } + + /** + * Convert an instance of SearchAuthSettingsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionRequest.java index 0413fc2f4..fbf9b97a8 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionRequest.java @@ -107,7 +107,9 @@ public enum DataWarehouseTypesEnum { FALCON_ONPREM("FALCON_ONPREM"), - CLICKHOUSE("CLICKHOUSE"); + CLICKHOUSE("CLICKHOUSE"), + + IOMETE("IOMETE"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionResponse.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionResponse.java index 2f7a2c3cf..b10f5fe3f 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionResponse.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchConnectionResponse.java @@ -117,7 +117,9 @@ public enum DataWarehouseTypeEnum { FALCON_ONPREM("FALCON_ONPREM"), - CLICKHOUSE("CLICKHOUSE"); + CLICKHOUSE("CLICKHOUSE"), + + IOMETE("IOMETE"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRoleResponse.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRoleResponse.java index ef8cd33cf..880540f04 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRoleResponse.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRoleResponse.java @@ -165,6 +165,10 @@ public enum PrivilegesEnum { CAN_MANAGE_VARIABLES("CAN_MANAGE_VARIABLES"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + PREVIEW_DOCUMENT_SEARCH("PREVIEW_DOCUMENT_SEARCH"), CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRolesRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRolesRequest.java index 64a71887f..5a6be5edb 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRolesRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchRolesRequest.java @@ -146,6 +146,10 @@ public enum PrivilegesEnum { CAN_MANAGE_VARIABLES("CAN_MANAGE_VARIABLES"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + PREVIEW_DOCUMENT_SEARCH("PREVIEW_DOCUMENT_SEARCH"), CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUserGroupsRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUserGroupsRequest.java index c25c1e703..afefea99d 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUserGroupsRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUserGroupsRequest.java @@ -149,6 +149,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), CAN_MANAGE_WEBHOOKS("CAN_MANAGE_WEBHOOKS"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUsersRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUsersRequest.java index 5ed7473f5..30a7f3bc9 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUsersRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SearchUsersRequest.java @@ -200,6 +200,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), CAN_MANAGE_WEBHOOKS("CAN_MANAGE_WEBHOOKS"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferences.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferences.java index 943ca5c0f..a225a5129 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferences.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferences.java @@ -9,6 +9,7 @@ import com.google.gson.JsonObject; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; @@ -63,6 +64,63 @@ public class SecuritySettingsClusterPreferences implements Serializable { @javax.annotation.Nullable private ClusterNonEmbedAccess nonEmbedAccess; + /** Trusted authentication status at the cluster level. Version: 26.6.0.cl or later */ + @JsonAdapter(TrustedAuthStatusEnum.Adapter.class) + public enum TrustedAuthStatusEnum { + ENABLED("ENABLED"), + + DISABLED("DISABLED"); + + private String value; + + TrustedAuthStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TrustedAuthStatusEnum fromValue(String value) { + for (TrustedAuthStatusEnum b : TrustedAuthStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TrustedAuthStatusEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TrustedAuthStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TrustedAuthStatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TrustedAuthStatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_TRUSTED_AUTH_STATUS = "trusted_auth_status"; + + @SerializedName(SERIALIZED_NAME_TRUSTED_AUTH_STATUS) + @javax.annotation.Nullable + private TrustedAuthStatusEnum trustedAuthStatus; + public SecuritySettingsClusterPreferences() {} public SecuritySettingsClusterPreferences enablePartitionedCookies( @@ -184,6 +242,27 @@ public void setNonEmbedAccess(@javax.annotation.Nullable ClusterNonEmbedAccess n this.nonEmbedAccess = nonEmbedAccess; } + public SecuritySettingsClusterPreferences trustedAuthStatus( + @javax.annotation.Nullable TrustedAuthStatusEnum trustedAuthStatus) { + this.trustedAuthStatus = trustedAuthStatus; + return this; + } + + /** + * Trusted authentication status at the cluster level. Version: 26.6.0.cl or later + * + * @return trustedAuthStatus + */ + @javax.annotation.Nullable + public TrustedAuthStatusEnum getTrustedAuthStatus() { + return trustedAuthStatus; + } + + public void setTrustedAuthStatus( + @javax.annotation.Nullable TrustedAuthStatusEnum trustedAuthStatus) { + this.trustedAuthStatus = trustedAuthStatus; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -249,6 +328,9 @@ public boolean equals(Object o) { this.samlRedirectUrls, securitySettingsClusterPreferences.samlRedirectUrls) && Objects.equals( this.nonEmbedAccess, securitySettingsClusterPreferences.nonEmbedAccess) + && Objects.equals( + this.trustedAuthStatus, + securitySettingsClusterPreferences.trustedAuthStatus) && Objects.equals( this.additionalProperties, securitySettingsClusterPreferences.additionalProperties); @@ -271,6 +353,7 @@ public int hashCode() { cspSettings, samlRedirectUrls, nonEmbedAccess, + trustedAuthStatus, additionalProperties); } @@ -294,6 +377,9 @@ public String toString() { sb.append(" cspSettings: ").append(toIndentedString(cspSettings)).append("\n"); sb.append(" samlRedirectUrls: ").append(toIndentedString(samlRedirectUrls)).append("\n"); sb.append(" nonEmbedAccess: ").append(toIndentedString(nonEmbedAccess)).append("\n"); + sb.append(" trustedAuthStatus: ") + .append(toIndentedString(trustedAuthStatus)) + .append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); @@ -323,6 +409,7 @@ private String toIndentedString(Object o) { openapiFields.add("csp_settings"); openapiFields.add("saml_redirect_urls"); openapiFields.add("non_embed_access"); + openapiFields.add("trusted_auth_status"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -377,6 +464,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("non_embed_access").isJsonNull()) { ClusterNonEmbedAccess.validateJsonElement(jsonObj.get("non_embed_access")); } + if ((jsonObj.get("trusted_auth_status") != null + && !jsonObj.get("trusted_auth_status").isJsonNull()) + && !jsonObj.get("trusted_auth_status").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `trusted_auth_status` to be a primitive type in" + + " the JSON string but got `%s`", + jsonObj.get("trusted_auth_status").toString())); + } + // validate the optional field `trusted_auth_status` + if (jsonObj.get("trusted_auth_status") != null + && !jsonObj.get("trusted_auth_status").isJsonNull()) { + TrustedAuthStatusEnum.validateJsonElement(jsonObj.get("trusted_auth_status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferences.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferences.java index a7d61dfd0..d2d4923a2 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferences.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferences.java @@ -9,6 +9,7 @@ import com.google.gson.JsonObject; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; @@ -50,6 +51,63 @@ public class SecuritySettingsOrgPreferences implements Serializable { @javax.annotation.Nullable private OrgNonEmbedAccess nonEmbedAccess; + /** Trusted authentication status for this org. Version: 26.6.0.cl or later */ + @JsonAdapter(TrustedAuthStatusEnum.Adapter.class) + public enum TrustedAuthStatusEnum { + ENABLED("ENABLED"), + + DISABLED("DISABLED"); + + private String value; + + TrustedAuthStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TrustedAuthStatusEnum fromValue(String value) { + for (TrustedAuthStatusEnum b : TrustedAuthStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TrustedAuthStatusEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TrustedAuthStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TrustedAuthStatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TrustedAuthStatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_TRUSTED_AUTH_STATUS = "trusted_auth_status"; + + @SerializedName(SERIALIZED_NAME_TRUSTED_AUTH_STATUS) + @javax.annotation.Nullable + private TrustedAuthStatusEnum trustedAuthStatus; + public SecuritySettingsOrgPreferences() {} public SecuritySettingsOrgPreferences org( @@ -122,6 +180,27 @@ public void setNonEmbedAccess(@javax.annotation.Nullable OrgNonEmbedAccess nonEm this.nonEmbedAccess = nonEmbedAccess; } + public SecuritySettingsOrgPreferences trustedAuthStatus( + @javax.annotation.Nullable TrustedAuthStatusEnum trustedAuthStatus) { + this.trustedAuthStatus = trustedAuthStatus; + return this; + } + + /** + * Trusted authentication status for this org. Version: 26.6.0.cl or later + * + * @return trustedAuthStatus + */ + @javax.annotation.Nullable + public TrustedAuthStatusEnum getTrustedAuthStatus() { + return trustedAuthStatus; + } + + public void setTrustedAuthStatus( + @javax.annotation.Nullable TrustedAuthStatusEnum trustedAuthStatus) { + this.trustedAuthStatus = trustedAuthStatus; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -182,6 +261,8 @@ public boolean equals(Object o) { securitySettingsOrgPreferences.corsWhitelistedUrls) && Objects.equals( this.nonEmbedAccess, securitySettingsOrgPreferences.nonEmbedAccess) + && Objects.equals( + this.trustedAuthStatus, securitySettingsOrgPreferences.trustedAuthStatus) && Objects.equals( this.additionalProperties, securitySettingsOrgPreferences.additionalProperties); @@ -198,7 +279,8 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(org, corsWhitelistedUrls, nonEmbedAccess, additionalProperties); + return Objects.hash( + org, corsWhitelistedUrls, nonEmbedAccess, trustedAuthStatus, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -217,6 +299,9 @@ public String toString() { .append(toIndentedString(corsWhitelistedUrls)) .append("\n"); sb.append(" nonEmbedAccess: ").append(toIndentedString(nonEmbedAccess)).append("\n"); + sb.append(" trustedAuthStatus: ") + .append(toIndentedString(trustedAuthStatus)) + .append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); @@ -244,6 +329,7 @@ private String toIndentedString(Object o) { openapiFields.add("org"); openapiFields.add("cors_whitelisted_urls"); openapiFields.add("non_embed_access"); + openapiFields.add("trusted_auth_status"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -287,6 +373,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("non_embed_access").isJsonNull()) { OrgNonEmbedAccess.validateJsonElement(jsonObj.get("non_embed_access")); } + if ((jsonObj.get("trusted_auth_status") != null + && !jsonObj.get("trusted_auth_status").isJsonNull()) + && !jsonObj.get("trusted_auth_status").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `trusted_auth_status` to be a primitive type in" + + " the JSON string but got `%s`", + jsonObj.get("trusted_auth_status").toString())); + } + // validate the optional field `trusted_auth_status` + if (jsonObj.get("trusted_auth_status") != null + && !jsonObj.get("trusted_auth_status").isJsonNull()) { + TrustedAuthStatusEnum.validateJsonElement(jsonObj.get("trusted_auth_status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataRequest.java index 2c444c71b..8bf7ca53a 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataRequest.java @@ -37,7 +37,7 @@ public class ShareMetadataRequest implements Serializable { /** * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. * Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. - * LOGICAL_COLUMN 5. Connection + * LOGICAL_COLUMN 5. Connection 6. Collection */ @JsonAdapter(MetadataTypeEnum.Adapter.class) public enum MetadataTypeEnum { @@ -49,7 +49,9 @@ public enum MetadataTypeEnum { LOGICAL_COLUMN("LOGICAL_COLUMN"), - CONNECTION("CONNECTION"); + CONNECTION("CONNECTION"), + + COLLECTION("COLLECTION"); private String value; @@ -168,7 +170,7 @@ public ShareMetadataRequest metadataType( /** * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. * Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. - * LOGICAL_COLUMN 5. Connection + * LOGICAL_COLUMN 5. Connection 6. Collection * * @return metadataType */ diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataTypeInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataTypeInput.java index 92c8370f0..a8f04645e 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataTypeInput.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/ShareMetadataTypeInput.java @@ -46,7 +46,9 @@ public enum TypeEnum { LOGICAL_COLUMN("LOGICAL_COLUMN"), - CONNECTION("CONNECTION"); + CONNECTION("CONNECTION"), + + COLLECTION("COLLECTION"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/SharePermissionsInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/SharePermissionsInput.java index 60e548ea8..32647e797 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/SharePermissionsInput.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/SharePermissionsInput.java @@ -17,11 +17,13 @@ import com.thoughtspot.client.JSON; import java.io.IOException; import java.io.Serializable; +import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; /** SharePermissionsInput */ @javax.annotation.Generated( @@ -95,6 +97,66 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private ShareModeEnum shareMode; + /** + * Content share mode for collections. Controls access to objects within the collection. Only + * applicable when sharing COLLECTION metadata type. + */ + @JsonAdapter(ContentShareModeEnum.Adapter.class) + public enum ContentShareModeEnum { + READ_ONLY("READ_ONLY"), + + MODIFY("MODIFY"); + + private String value; + + ContentShareModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ContentShareModeEnum fromValue(String value) { + for (ContentShareModeEnum b : ContentShareModeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ContentShareModeEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ContentShareModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ContentShareModeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ContentShareModeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_CONTENT_SHARE_MODE = "content_share_mode"; + + @SerializedName(SERIALIZED_NAME_CONTENT_SHARE_MODE) + @javax.annotation.Nullable + private ContentShareModeEnum contentShareMode; + public SharePermissionsInput() {} public SharePermissionsInput principal(@javax.annotation.Nonnull PrincipalsInput principal) { @@ -135,6 +197,28 @@ public void setShareMode(@javax.annotation.Nonnull ShareModeEnum shareMode) { this.shareMode = shareMode; } + public SharePermissionsInput contentShareMode( + @javax.annotation.Nullable ContentShareModeEnum contentShareMode) { + this.contentShareMode = contentShareMode; + return this; + } + + /** + * Content share mode for collections. Controls access to objects within the collection. Only + * applicable when sharing COLLECTION metadata type. + * + * @return contentShareMode + */ + @javax.annotation.Nullable + public ContentShareModeEnum getContentShareMode() { + return contentShareMode; + } + + public void setContentShareMode( + @javax.annotation.Nullable ContentShareModeEnum contentShareMode) { + this.contentShareMode = contentShareMode; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -190,13 +274,30 @@ public boolean equals(Object o) { SharePermissionsInput sharePermissionsInput = (SharePermissionsInput) o; return Objects.equals(this.principal, sharePermissionsInput.principal) && Objects.equals(this.shareMode, sharePermissionsInput.shareMode) + && Objects.equals(this.contentShareMode, sharePermissionsInput.contentShareMode) && Objects.equals( this.additionalProperties, sharePermissionsInput.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(principal, shareMode, additionalProperties); + return Objects.hash(principal, shareMode, contentShareMode, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; } @Override @@ -205,6 +306,7 @@ public String toString() { sb.append("class SharePermissionsInput {\n"); sb.append(" principal: ").append(toIndentedString(principal)).append("\n"); sb.append(" shareMode: ").append(toIndentedString(shareMode)).append("\n"); + sb.append(" contentShareMode: ").append(toIndentedString(contentShareMode)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); @@ -231,6 +333,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("principal"); openapiFields.add("share_mode"); + openapiFields.add("content_share_mode"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -277,6 +380,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the required field `share_mode` ShareModeEnum.validateJsonElement(jsonObj.get("share_mode")); + if ((jsonObj.get("content_share_mode") != null + && !jsonObj.get("content_share_mode").isJsonNull()) + && !jsonObj.get("content_share_mode").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `content_share_mode` to be a primitive type in the" + + " JSON string but got `%s`", + jsonObj.get("content_share_mode").toString())); + } + // validate the optional field `content_share_mode` + if (jsonObj.get("content_share_mode") != null + && !jsonObj.get("content_share_mode").isJsonNull()) { + ContentShareModeEnum.validateJsonElement(jsonObj.get("content_share_mode")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/TagMetadataTypeInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/TagMetadataTypeInput.java index 7dab8414c..8c746c0ff 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/TagMetadataTypeInput.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/TagMetadataTypeInput.java @@ -48,7 +48,9 @@ public enum TypeEnum { LOGICAL_COLUMN("LOGICAL_COLUMN"), - CONNECTION("CONNECTION"); + CONNECTION("CONNECTION"), + + COLLECTION("COLLECTION"); private String value; diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateConnectionStatusRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateConnectionStatusRequest.java new file mode 100644 index 000000000..caaffa61a --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateConnectionStatusRequest.java @@ -0,0 +1,360 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** UpdateConnectionStatusRequest */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class UpdateConnectionStatusRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * Status to set for the connection. Use ACTIVATED to enable the connection or DEACTIVATED to + * disable it. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + ACTIVATED("ACTIVATED"), + + DEACTIVATED("DEACTIVATED"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + StatusEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private StatusEnum status = StatusEnum.ACTIVATED; + + public UpdateConnectionStatusRequest() {} + + public UpdateConnectionStatusRequest status(@javax.annotation.Nullable StatusEnum status) { + this.status = status; + return this; + } + + /** + * Status to set for the connection. Use ACTIVATED to enable the connection or DEACTIVATED to + * disable it. + * + * @return status + */ + @javax.annotation.Nullable + public StatusEnum getStatus() { + return status; + } + + public void setStatus(@javax.annotation.Nullable StatusEnum status) { + this.status = status; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UpdateConnectionStatusRequest instance itself + */ + public UpdateConnectionStatusRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateConnectionStatusRequest updateConnectionStatusRequest = + (UpdateConnectionStatusRequest) o; + return Objects.equals(this.status, updateConnectionStatusRequest.status) + && Objects.equals( + this.additionalProperties, + updateConnectionStatusRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateConnectionStatusRequest {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to + * UpdateConnectionStatusRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UpdateConnectionStatusRequest.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in UpdateConnectionStatusRequest is not" + + " found in the empty JSON string", + UpdateConnectionStatusRequest.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) + && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `status` to be a primitive type in the JSON string" + + " but got `%s`", + jsonObj.get("status").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + StatusEnum.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateConnectionStatusRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateConnectionStatusRequest' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter( + this, TypeToken.get(UpdateConnectionStatusRequest.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateConnectionStatusRequest value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public UpdateConnectionStatusRequest read(JsonReader in) + throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + UpdateConnectionStatusRequest instance = + thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of UpdateConnectionStatusRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateConnectionStatusRequest + * @throws IOException if the JSON string is invalid with respect to + * UpdateConnectionStatusRequest + */ + public static UpdateConnectionStatusRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateConnectionStatusRequest.class); + } + + /** + * Convert an instance of UpdateConnectionStatusRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateRoleRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateRoleRequest.java index 82e057ffb..5d9e9f9c1 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateRoleRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateRoleRequest.java @@ -110,6 +110,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + PREVIEW_DOCUMENT_SEARCH("PREVIEW_DOCUMENT_SEARCH"), PREVIEW_THOUGHTSPOT_SAGE("PREVIEW_THOUGHTSPOT_SAGE"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateUserGroupRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateUserGroupRequest.java index 7aaa878fd..3f2dc76b2 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateUserGroupRequest.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateUserGroupRequest.java @@ -115,6 +115,10 @@ public enum PrivilegesEnum { CAN_VIEW_FOLDERS("CAN_VIEW_FOLDERS"), + CAN_MANAGE_AGENTSPOT("CAN_MANAGE_AGENTSPOT"), + + CAN_ACCESS_AGENTSPOT("CAN_ACCESS_AGENTSPOT"), + PREVIEW_DOCUMENT_SEARCH("PREVIEW_DOCUMENT_SEARCH"), CAN_SETUP_VERSION_CONTROL("CAN_SETUP_VERSION_CONTROL"), diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/Variable.java b/sdks/java/src/main/java/com/thoughtspot/client/model/Variable.java index 0b18b0404..2ac3524a3 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/Variable.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/Variable.java @@ -121,6 +121,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private List values; + public static final String SERIALIZED_NAME_ORG = "org"; + + @SerializedName(SERIALIZED_NAME_ORG) + @javax.annotation.Nullable + private VariableOrgInfo org; + public Variable() {} public Variable id(@javax.annotation.Nonnull String id) { @@ -226,6 +232,25 @@ public void setValues(@javax.annotation.Nullable List values) { this.values = values; } + public Variable org(@javax.annotation.Nullable VariableOrgInfo org) { + this.org = org; + return this; + } + + /** + * Get org + * + * @return org + */ + @javax.annotation.Nullable + public VariableOrgInfo getOrg() { + return org; + } + + public void setOrg(@javax.annotation.Nullable VariableOrgInfo org) { + this.org = org; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -284,6 +309,7 @@ public boolean equals(Object o) { && Objects.equals(this.variableType, variable.variableType) && Objects.equals(this.sensitive, variable.sensitive) && Objects.equals(this.values, variable.values) + && Objects.equals(this.org, variable.org) && Objects.equals(this.additionalProperties, variable.additionalProperties); } @@ -298,7 +324,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, name, variableType, sensitive, values, additionalProperties); + return Objects.hash(id, name, variableType, sensitive, values, org, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -317,6 +343,7 @@ public String toString() { sb.append(" variableType: ").append(toIndentedString(variableType)).append("\n"); sb.append(" sensitive: ").append(toIndentedString(sensitive)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" org: ").append(toIndentedString(org)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); @@ -346,6 +373,7 @@ private String toIndentedString(Object o) { openapiFields.add("variable_type"); openapiFields.add("sensitive"); openapiFields.add("values"); + openapiFields.add("org"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -426,6 +454,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ; } } + // validate the optional field `org` + if (jsonObj.get("org") != null && !jsonObj.get("org").isJsonNull()) { + VariableOrgInfo.validateJsonElement(jsonObj.get("org")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/VariableOrgInfo.java b/sdks/java/src/main/java/com/thoughtspot/client/model/VariableOrgInfo.java new file mode 100644 index 000000000..c1f827d94 --- /dev/null +++ b/sdks/java/src/main/java/com/thoughtspot/client/model/VariableOrgInfo.java @@ -0,0 +1,330 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.thoughtspot.client.JSON; +import java.io.IOException; +import java.io.Serializable; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** VariableOrgInfo */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class VariableOrgInfo implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + + @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull + private Integer id; + + public static final String SERIALIZED_NAME_NAME = "name"; + + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public VariableOrgInfo() {} + + public VariableOrgInfo id(@javax.annotation.Nonnull Integer id) { + this.id = id; + return this; + } + + /** + * ID of the Org. + * + * @return id + */ + @javax.annotation.Nonnull + public Integer getId() { + return id; + } + + public void setId(@javax.annotation.Nonnull Integer id) { + this.id = id; + } + + public VariableOrgInfo name(@javax.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name of the Org. + * + * @return name + */ + @javax.annotation.Nonnull + public String getName() { + return name; + } + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the VariableOrgInfo instance itself + */ + public VariableOrgInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VariableOrgInfo variableOrgInfo = (VariableOrgInfo) o; + return Objects.equals(this.id, variableOrgInfo.id) + && Objects.equals(this.name, variableOrgInfo.name) + && Objects.equals(this.additionalProperties, variableOrgInfo.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VariableOrgInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("id"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("id"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VariableOrgInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!VariableOrgInfo.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in VariableOrgInfo is not found in the" + + " empty JSON string", + VariableOrgInfo.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : VariableOrgInfo.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException( + String.format( + "The required field `%s` is not found in the JSON string: %s", + requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `name` to be a primitive type in the JSON string" + + " but got `%s`", + jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!VariableOrgInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'VariableOrgInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(VariableOrgInfo.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, VariableOrgInfo value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : + value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty( + entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public VariableOrgInfo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + VariableOrgInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty( + entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty( + entry.getKey(), + entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException( + String.format( + "The field `%s` has unknown primitive" + + " type. Value: %s", + entry.getKey(), + entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty( + entry.getKey(), + gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + }.nullSafe(); + } + } + + /** + * Create an instance of VariableOrgInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of VariableOrgInfo + * @throws IOException if the JSON string is invalid with respect to VariableOrgInfo + */ + public static VariableOrgInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, VariableOrgInfo.class); + } + + /** + * Convert an instance of VariableOrgInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/api/AiApiTest.java b/sdks/java/src/test/java/com/thoughtspot/client/api/AiApiTest.java index 868686389..a62f2a9fe 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/api/AiApiTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/api/AiApiTest.java @@ -525,4 +525,45 @@ public void singleAnswerTest() throws ApiException { ResponseMessage response = api.singleAnswer(singleAnswerRequest); // TODO: test validations } + + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later + * <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified + * conversation. Use this endpoint to cancel a response that is actively being generated — for + * example, when the user navigates away, reformulates their question, or no longer needs the + * current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified + * conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @throws ApiException if the Api call fails + */ + @Test + public void stopConversationTest() throws ApiException { + String conversationIdentifier = null; + api.stopConversation(conversationIdentifier); + // TODO: test validations + } } diff --git a/sdks/java/src/test/java/com/thoughtspot/client/api/AuthenticationApiTest.java b/sdks/java/src/test/java/com/thoughtspot/client/api/AuthenticationApiTest.java index 03c97e619..376e1a021 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/api/AuthenticationApiTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/api/AuthenticationApiTest.java @@ -6,12 +6,15 @@ import com.thoughtspot.client.ApiException; import com.thoughtspot.client.model.AccessToken; +import com.thoughtspot.client.model.ConfigureAuthSettingsRequest; import com.thoughtspot.client.model.GetCustomAccessTokenRequest; import com.thoughtspot.client.model.GetFullAccessTokenRequest; import com.thoughtspot.client.model.GetObjectAccessTokenRequest; import com.thoughtspot.client.model.GetTokenResponse; import com.thoughtspot.client.model.LoginRequest; import com.thoughtspot.client.model.RevokeTokenRequest; +import com.thoughtspot.client.model.SearchAuthSettingsRequest; +import com.thoughtspot.client.model.SearchAuthSettingsResponse; import com.thoughtspot.client.model.Token; import com.thoughtspot.client.model.TokenValidationResponse; import com.thoughtspot.client.model.User; @@ -25,6 +28,38 @@ public class AuthenticationApiTest { private final AuthenticationApi api = new AuthenticationApi(); + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for + * the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @throws ApiException if the Api call fails + */ + @Test + public void configureAuthSettingsTest() throws ApiException { + ConfigureAuthSettingsRequest configureAuthSettingsRequest = null; + api.configureAuthSettings(configureAuthSettingsRequest); + // TODO: test validations + } + /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token * provided in the request header. Any ThoughtSpot user can access this endpoint and send an API @@ -259,6 +294,33 @@ public void revokeTokenTest() throws ApiException { // TODO: test validations } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth + * type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. + * + * @throws ApiException if the Api call fails + */ + @Test + public void searchAuthSettingsTest() throws ApiException { + SearchAuthSettingsRequest searchAuthSettingsRequest = null; + SearchAuthSettingsResponse response = api.searchAuthSettings(searchAuthSettingsRequest); + // TODO: test validations + } + /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. * If your token is not valid, [Get a new diff --git a/sdks/java/src/test/java/com/thoughtspot/client/api/ConnectionsApiTest.java b/sdks/java/src/test/java/com/thoughtspot/client/api/ConnectionsApiTest.java index 6246f45a3..7a19567ce 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/api/ConnectionsApiTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/api/ConnectionsApiTest.java @@ -16,6 +16,7 @@ import com.thoughtspot.client.model.SyncMetadataRequest; import com.thoughtspot.client.model.SyncMetadataResponse; import com.thoughtspot.client.model.UpdateConnectionRequest; +import com.thoughtspot.client.model.UpdateConnectionStatusRequest; import com.thoughtspot.client.model.UpdateConnectionV2Request; import java.io.File; import java.util.List; @@ -348,6 +349,31 @@ public void updateConnectionTest() throws ApiException { // TODO: test validations } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection + * cannot be used for queries or operations until it is activated again. Requires + * `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the + * `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateConnectionStatusTest() throws ApiException { + String connectionIdentifier = null; + UpdateConnectionStatusRequest updateConnectionStatusRequest = null; + api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest); + // TODO: test validations + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` * (**Can manage data**) and edit permissions to the connection object, or diff --git a/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java b/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java index 15f9e8456..b376146a0 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java @@ -22,6 +22,7 @@ import com.thoughtspot.client.model.CommitResponse; import com.thoughtspot.client.model.CommunicationChannelPreferencesResponse; import com.thoughtspot.client.model.CommunicationChannelValidateResponse; +import com.thoughtspot.client.model.ConfigureAuthSettingsRequest; import com.thoughtspot.client.model.ConfigureCommunicationChannelPreferencesRequest; import com.thoughtspot.client.model.ConfigureSecuritySettingsRequest; import com.thoughtspot.client.model.ConnectionConfigurationResponse; @@ -125,6 +126,8 @@ import com.thoughtspot.client.model.RevokeRefreshTokensResponse; import com.thoughtspot.client.model.RevokeTokenRequest; import com.thoughtspot.client.model.RoleResponse; +import com.thoughtspot.client.model.SearchAuthSettingsRequest; +import com.thoughtspot.client.model.SearchAuthSettingsResponse; import com.thoughtspot.client.model.SearchCalendarsRequest; import com.thoughtspot.client.model.SearchChannelHistoryRequest; import com.thoughtspot.client.model.SearchChannelHistoryResponse; @@ -177,6 +180,7 @@ import com.thoughtspot.client.model.UpdateConfigRequest; import com.thoughtspot.client.model.UpdateConnectionConfigurationRequest; import com.thoughtspot.client.model.UpdateConnectionRequest; +import com.thoughtspot.client.model.UpdateConnectionStatusRequest; import com.thoughtspot.client.model.UpdateConnectionV2Request; import com.thoughtspot.client.model.UpdateCustomActionRequest; import com.thoughtspot.client.model.UpdateEmailCustomizationRequest; @@ -292,6 +296,38 @@ public void commitBranchTest() throws ApiException { // TODO: test validations } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for + * the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `cluster_preferences` to enable or disable authentication at the cluster level. + * Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — + * Generates a new access token if one does not exist. An existing token is preserved. - + * `DISABLED` — Revokes the existing cluster-level access token. Use + * `org_preferences` to enable or disable authentication for one or more Orgs. Each + * entry must include an `org_identifier` (unique ID or name) and an + * `auth_status`. Org-level configuration requires the per-Org authentication feature + * to be enabled on your instance. - `ENABLED` — Generates a new org-level access + * token if one does not exist. - `DISABLED` — Revokes the existing org-level access + * token for that Org. Both `cluster_preferences` and `org_preferences` are + * optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, + * the API returns `204 No Content` without making any changes. **Note**: + * Cluster-level and org-level settings are independent of each other. Enabling or disabling one + * does not affect the other. + * + * @throws ApiException if the Api call fails + */ + @Test + public void configureAuthSettingsTest() throws ApiException { + ConfigureAuthSettingsRequest configureAuthSettingsRequest = null; + api.configureAuthSettings(configureAuthSettingsRequest); + // TODO: test validations + } + /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use * `cluster_preferences` to update the default preferences for your ThoughtSpot @@ -2668,6 +2704,33 @@ public void revokeTokenTest() throws ApiException { // TODO: test validations } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth + * type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required + * privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or + * `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) + * privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the + * `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use + * `scope` to control which level of settings are returned: - `CLUSTER` — + * Returns cluster-level authentication status and access tokens. Accessible only from the + * Primary Org. - `ORG` — Returns org-level authentication status and access tokens + * for the current Org. Requires the per-Org authentication feature to be enabled on your + * instance. - If `scope` is omitted, both cluster and org-level settings are returned + * based on the caller's org context and feature availability. The `access_tokens` + * array in `cluster_preferences` or `org_preferences` is omitted when no + * token is configured at that level. **Note**: Access tokens returned in the response are + * sensitive credentials. Treat them with the same care as passwords. + * + * @throws ApiException if the Api call fails + */ + @Test + public void searchAuthSettingsTest() throws ApiException { + SearchAuthSettingsRequest searchAuthSettingsRequest = null; + SearchAuthSettingsResponse response = api.searchAuthSettings(searchAuthSettingsRequest); + // TODO: test validations + } + /** * Version: 10.12.0.cl or later Gets a list of [custom * calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires @@ -3489,6 +3552,47 @@ public void singleAnswerTest() throws ApiException { // TODO: test validations } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later + * <span>Version: 26.6.0.cl or later Stops an in-progress agent response for the specified + * conversation. Use this endpoint to cancel a response that is actively being generated — for + * example, when the user navigates away, reformulates their question, or no longer needs the + * current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified + * conversation. #### Usage guidelines The request must include: - + * `conversation_identifier` *(path parameter)*: the unique ID of the conversation + * whose active response should be stopped, as returned by `createAgentConversation` A + * successful request returns an empty `204 No Content` response. If there is no + * active response in progress at the time of the call, the request is still treated as + * successful. After stopping a response, the conversation session remains active. You can + * continue sending messages using `sendAgentConversationMessage` or + * `sendAgentConversationMessageStreaming`. #### Example request + * ```bash POST + * /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response + * ``` #### Typical usage scenario This endpoint is useful when integrating + * Spotter into a chat UI where users can cancel a long-running query. For example: 1. User + * sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a + * \"Stop generating\" button while the response is streaming. 3. Your client calls + * `stopConversation` with the active `conversation_identifier`. 4. The + * stream is terminated and the user can ask a new question. #### Error responses | Code | + * Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, + * expired, or invalid. | | 403 | Forbidden — the authenticated user does not have + * `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > + * ###### Note: > > - Calling this endpoint when no response is in progress does not + * return an error. > - The conversation context is preserved after stopping — previous + * messages and answers remain accessible. > - Available from version 26.6.0.cl and later. + * > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter + * on your cluster. > - This feature is available only for **Spotter 3** + * (`SPOTTER3`) version. + * + * @throws ApiException if the Api call fails + */ + @Test + public void stopConversationTest() throws ApiException { + String conversationIdentifier = null; + api.stopConversation(conversationIdentifier); + // TODO: test validations + } + /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data * Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage @@ -3770,6 +3874,31 @@ public void updateConnectionConfigurationTest() throws ApiException { // TODO: test validations } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection + * cannot be used for queries or operations until it is activated again. Requires + * `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control + * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the + * `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is + * required. Only the connection owner or an administrator can perform this operation. #### + * Usage guidelines To update the status of a connection, specify the connection GUID or name in + * the `connection_identifier` path parameter and the desired `status` in + * the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume + * on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove + * the connection metadata, but only makes the connection unavailable for queries and + * operations. You can reactivate a deactivated connection by setting \"status\": + * \"ACTIVATED\". + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateConnectionStatusTest() throws ApiException { + String connectionIdentifier = null; + UpdateConnectionStatusRequest updateConnectionStatusRequest = null; + api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest); + // TODO: test validations + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` * (**Can manage data**) and edit permissions to the connection object, or diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/AnswerPngOptionsInputTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/AnswerPngOptionsInputTest.java new file mode 100644 index 000000000..a8094b371 --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/AnswerPngOptionsInputTest.java @@ -0,0 +1,36 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for AnswerPngOptionsInput */ +public class AnswerPngOptionsInputTest { + private final AnswerPngOptionsInput model = new AnswerPngOptionsInput(); + + /** Model tests for AnswerPngOptionsInput */ + @Test + public void testAnswerPngOptionsInput() { + // TODO: test AnswerPngOptionsInput + } + + /** Test the property 'xResolution' */ + @Test + public void xResolutionTest() { + // TODO: test xResolution + } + + /** Test the property 'yResolution' */ + @Test + public void yResolutionTest() { + // TODO: test yResolution + } + + /** Test the property 'scaling' */ + @Test + public void scalingTest() { + // TODO: test scaling + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesInputTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesInputTest.java new file mode 100644 index 000000000..cb9e0625c --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesInputTest.java @@ -0,0 +1,24 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for AuthClusterPreferencesInput */ +public class AuthClusterPreferencesInputTest { + private final AuthClusterPreferencesInput model = new AuthClusterPreferencesInput(); + + /** Model tests for AuthClusterPreferencesInput */ + @Test + public void testAuthClusterPreferencesInput() { + // TODO: test AuthClusterPreferencesInput + } + + /** Test the property 'authStatus' */ + @Test + public void authStatusTest() { + // TODO: test authStatus + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesTest.java new file mode 100644 index 000000000..3e6189b35 --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthClusterPreferencesTest.java @@ -0,0 +1,30 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for AuthClusterPreferences */ +public class AuthClusterPreferencesTest { + private final AuthClusterPreferences model = new AuthClusterPreferences(); + + /** Model tests for AuthClusterPreferences */ + @Test + public void testAuthClusterPreferences() { + // TODO: test AuthClusterPreferences + } + + /** Test the property 'authStatus' */ + @Test + public void authStatusTest() { + // TODO: test authStatus + } + + /** Test the property 'accessTokens' */ + @Test + public void accessTokensTest() { + // TODO: test accessTokens + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgInfoTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgInfoTest.java new file mode 100644 index 000000000..45b295937 --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgInfoTest.java @@ -0,0 +1,30 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for AuthOrgInfo */ +public class AuthOrgInfoTest { + private final AuthOrgInfo model = new AuthOrgInfo(); + + /** Model tests for AuthOrgInfo */ + @Test + public void testAuthOrgInfo() { + // TODO: test AuthOrgInfo + } + + /** Test the property 'id' */ + @Test + public void idTest() { + // TODO: test id + } + + /** Test the property 'name' */ + @Test + public void nameTest() { + // TODO: test name + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceInputTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceInputTest.java new file mode 100644 index 000000000..3b5950a5d --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceInputTest.java @@ -0,0 +1,30 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for AuthOrgPreferenceInput */ +public class AuthOrgPreferenceInputTest { + private final AuthOrgPreferenceInput model = new AuthOrgPreferenceInput(); + + /** Model tests for AuthOrgPreferenceInput */ + @Test + public void testAuthOrgPreferenceInput() { + // TODO: test AuthOrgPreferenceInput + } + + /** Test the property 'orgIdentifier' */ + @Test + public void orgIdentifierTest() { + // TODO: test orgIdentifier + } + + /** Test the property 'authStatus' */ + @Test + public void authStatusTest() { + // TODO: test authStatus + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceTest.java new file mode 100644 index 000000000..7afa4f822 --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthOrgPreferenceTest.java @@ -0,0 +1,36 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for AuthOrgPreference */ +public class AuthOrgPreferenceTest { + private final AuthOrgPreference model = new AuthOrgPreference(); + + /** Model tests for AuthOrgPreference */ + @Test + public void testAuthOrgPreference() { + // TODO: test AuthOrgPreference + } + + /** Test the property 'org' */ + @Test + public void orgTest() { + // TODO: test org + } + + /** Test the property 'authStatus' */ + @Test + public void authStatusTest() { + // TODO: test authStatus + } + + /** Test the property 'accessTokens' */ + @Test + public void accessTokensTest() { + // TODO: test accessTokens + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/AuthSettingsAccessTokenTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthSettingsAccessTokenTest.java new file mode 100644 index 000000000..1d39c66bd --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/AuthSettingsAccessTokenTest.java @@ -0,0 +1,24 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for AuthSettingsAccessToken */ +public class AuthSettingsAccessTokenTest { + private final AuthSettingsAccessToken model = new AuthSettingsAccessToken(); + + /** Model tests for AuthSettingsAccessToken */ + @Test + public void testAuthSettingsAccessToken() { + // TODO: test AuthSettingsAccessToken + } + + /** Test the property 'key' */ + @Test + public void keyTest() { + // TODO: test key + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequestTest.java new file mode 100644 index 000000000..900e601ff --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/ConfigureAuthSettingsRequestTest.java @@ -0,0 +1,36 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for ConfigureAuthSettingsRequest */ +public class ConfigureAuthSettingsRequestTest { + private final ConfigureAuthSettingsRequest model = new ConfigureAuthSettingsRequest(); + + /** Model tests for ConfigureAuthSettingsRequest */ + @Test + public void testConfigureAuthSettingsRequest() { + // TODO: test ConfigureAuthSettingsRequest + } + + /** Test the property 'authType' */ + @Test + public void authTypeTest() { + // TODO: test authType + } + + /** Test the property 'clusterPreferences' */ + @Test + public void clusterPreferencesTest() { + // TODO: test clusterPreferences + } + + /** Test the property 'orgPreferences' */ + @Test + public void orgPreferencesTest() { + // TODO: test orgPreferences + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/ExportAnswerReportRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/ExportAnswerReportRequestTest.java index c6da75c99..2b44a3409 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/ExportAnswerReportRequestTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/ExportAnswerReportRequestTest.java @@ -63,4 +63,22 @@ public void runtimeParamOverrideTest() { public void regionalSettingsTest() { // TODO: test regionalSettings } + + /** Test the property 'pngOptions' */ + @Test + public void pngOptionsTest() { + // TODO: test pngOptions + } + + /** Test the property 'personalisedViewIdentifier' */ + @Test + public void personalisedViewIdentifierTest() { + // TODO: test personalisedViewIdentifier + } + + /** Test the property 'type' */ + @Test + public void typeTest() { + // TODO: test type + } } diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsRequestTest.java new file mode 100644 index 000000000..58511630b --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsRequestTest.java @@ -0,0 +1,30 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for SearchAuthSettingsRequest */ +public class SearchAuthSettingsRequestTest { + private final SearchAuthSettingsRequest model = new SearchAuthSettingsRequest(); + + /** Model tests for SearchAuthSettingsRequest */ + @Test + public void testSearchAuthSettingsRequest() { + // TODO: test SearchAuthSettingsRequest + } + + /** Test the property 'authType' */ + @Test + public void authTypeTest() { + // TODO: test authType + } + + /** Test the property 'scope' */ + @Test + public void scopeTest() { + // TODO: test scope + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsResponseTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsResponseTest.java new file mode 100644 index 000000000..23cc57d4b --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/SearchAuthSettingsResponseTest.java @@ -0,0 +1,36 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for SearchAuthSettingsResponse */ +public class SearchAuthSettingsResponseTest { + private final SearchAuthSettingsResponse model = new SearchAuthSettingsResponse(); + + /** Model tests for SearchAuthSettingsResponse */ + @Test + public void testSearchAuthSettingsResponse() { + // TODO: test SearchAuthSettingsResponse + } + + /** Test the property 'authType' */ + @Test + public void authTypeTest() { + // TODO: test authType + } + + /** Test the property 'clusterPreferences' */ + @Test + public void clusterPreferencesTest() { + // TODO: test clusterPreferences + } + + /** Test the property 'orgPreferences' */ + @Test + public void orgPreferencesTest() { + // TODO: test orgPreferences + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferencesTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferencesTest.java index 40ebb45b9..1238af0a1 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferencesTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsClusterPreferencesTest.java @@ -46,4 +46,10 @@ public void samlRedirectUrlsTest() { public void nonEmbedAccessTest() { // TODO: test nonEmbedAccess } + + /** Test the property 'trustedAuthStatus' */ + @Test + public void trustedAuthStatusTest() { + // TODO: test trustedAuthStatus + } } diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferencesTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferencesTest.java index a725b674e..9e532c16a 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferencesTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/SecuritySettingsOrgPreferencesTest.java @@ -33,4 +33,10 @@ public void corsWhitelistedUrlsTest() { public void nonEmbedAccessTest() { // TODO: test nonEmbedAccess } + + /** Test the property 'trustedAuthStatus' */ + @Test + public void trustedAuthStatusTest() { + // TODO: test trustedAuthStatus + } } diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/SharePermissionsInputTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/SharePermissionsInputTest.java index 52c792400..ac30515b5 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/SharePermissionsInputTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/SharePermissionsInputTest.java @@ -27,4 +27,10 @@ public void principalTest() { public void shareModeTest() { // TODO: test shareMode } + + /** Test the property 'contentShareMode' */ + @Test + public void contentShareModeTest() { + // TODO: test contentShareMode + } } diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/UpdateConnectionStatusRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/UpdateConnectionStatusRequestTest.java new file mode 100644 index 000000000..9c4c0776e --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/UpdateConnectionStatusRequestTest.java @@ -0,0 +1,24 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for UpdateConnectionStatusRequest */ +public class UpdateConnectionStatusRequestTest { + private final UpdateConnectionStatusRequest model = new UpdateConnectionStatusRequest(); + + /** Model tests for UpdateConnectionStatusRequest */ + @Test + public void testUpdateConnectionStatusRequest() { + // TODO: test UpdateConnectionStatusRequest + } + + /** Test the property 'status' */ + @Test + public void statusTest() { + // TODO: test status + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/VariableOrgInfoTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/VariableOrgInfoTest.java new file mode 100644 index 000000000..c5d0ba149 --- /dev/null +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/VariableOrgInfoTest.java @@ -0,0 +1,30 @@ +/* + * NOTE: This class is auto generated. Do not edit the class manually. + */ + +package com.thoughtspot.client.model; + +import org.junit.jupiter.api.Test; + +/** Model tests for VariableOrgInfo */ +public class VariableOrgInfoTest { + private final VariableOrgInfo model = new VariableOrgInfo(); + + /** Model tests for VariableOrgInfo */ + @Test + public void testVariableOrgInfo() { + // TODO: test VariableOrgInfo + } + + /** Test the property 'id' */ + @Test + public void idTest() { + // TODO: test id + } + + /** Test the property 'name' */ + @Test + public void nameTest() { + // TODO: test name + } +} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/VariableTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/VariableTest.java index 226c02ba4..4ffa5be7f 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/VariableTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/model/VariableTest.java @@ -45,4 +45,10 @@ public void sensitiveTest() { public void valuesTest() { // TODO: test values } + + /** Test the property 'org' */ + @Test + public void orgTest() { + // TODO: test org + } } diff --git a/sdks/typescript/.openapi-generator/FILES b/sdks/typescript/.openapi-generator/FILES index efb33f34c..d4de6014a 100644 --- a/sdks/typescript/.openapi-generator/FILES +++ b/sdks/typescript/.openapi-generator/FILES @@ -75,10 +75,17 @@ models/ActivateUserRequest.ts models/AgentConversation.ts models/AnswerContent.ts models/AnswerDataResponse.ts +models/AnswerPngOptionsInput.ts models/AssignChangeAuthorRequest.ts models/AssignTagRequest.ts models/AssociateMetadataInput.ts models/AssociateMetadataInputCreate.ts +models/AuthClusterPreferences.ts +models/AuthClusterPreferencesInput.ts +models/AuthOrgInfo.ts +models/AuthOrgPreference.ts +models/AuthOrgPreferenceInput.ts +models/AuthSettingsAccessToken.ts models/Authentication.ts models/AuthenticationInput.ts models/Author.ts @@ -123,6 +130,8 @@ models/CommitResponse.ts models/CommiterType.ts models/CommunicationChannelPreferencesResponse.ts models/CommunicationChannelValidateResponse.ts +models/ConfigureAuthSettingsRequest.ts +models/ConfigureAuthSettingsRequestClusterPreferences.ts models/ConfigureCommunicationChannelPreferencesRequest.ts models/ConfigureSecuritySettingsRequest.ts models/ConfigureSecuritySettingsRequestClusterPreferences.ts @@ -208,6 +217,7 @@ models/EventChannelConfig.ts models/EventChannelConfigInput.ts models/ExcludeMetadataListItemInput.ts models/ExportAnswerReportRequest.ts +models/ExportAnswerReportRequestPngOptions.ts models/ExportAnswerReportRequestRegionalSettings.ts models/ExportLiveboardReportRequest.ts models/ExportLiveboardReportRequestPdfOptions.ts @@ -365,6 +375,8 @@ models/SchemaObject.ts models/Scope.ts models/ScriptSrcUrls.ts models/ScriptSrcUrlsInput.ts +models/SearchAuthSettingsRequest.ts +models/SearchAuthSettingsResponse.ts models/SearchCalendarsRequest.ts models/SearchCalendarsRequestSortOptions.ts models/SearchChannelHistoryRequest.ts @@ -451,6 +463,7 @@ models/UpdateColumnSecurityRulesRequest.ts models/UpdateConfigRequest.ts models/UpdateConnectionConfigurationRequest.ts models/UpdateConnectionRequest.ts +models/UpdateConnectionStatusRequest.ts models/UpdateConnectionV2Request.ts models/UpdateCustomActionRequest.ts models/UpdateCustomActionRequestActionDetails.ts @@ -486,6 +499,7 @@ models/ValidateTokenRequest.ts models/ValueScopeInput.ts models/Variable.ts models/VariableDetailInput.ts +models/VariableOrgInfo.ts models/VariablePutAssignmentInput.ts models/VariableUpdateAssignmentInput.ts models/VariableUpdateScopeInput.ts diff --git a/sdks/typescript/AIApi.md b/sdks/typescript/AIApi.md index b6116874f..cf4ec0aad 100644 --- a/sdks/typescript/AIApi.md +++ b/sdks/typescript/AIApi.md @@ -17,6 +17,7 @@ Method | HTTP request | Description [**sendMessage**](AIApi.md#sendMessage) | **POST** /api/rest/2.0/ai/conversation/{conversation_identifier}/converse | [**setNLInstructions**](AIApi.md#setNLInstructions) | **POST** /api/rest/2.0/ai/instructions/set | [**singleAnswer**](AIApi.md#singleAnswer) | **POST** /api/rest/2.0/ai/answer/create | +[**stopConversation**](AIApi.md#stopConversation) | **POST** /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response | # **createAgentConversation** @@ -889,3 +890,63 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **stopConversation** +> void stopConversation() + + Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + +### Example + + +```typescript +import { createBearerAuthenticationConfig, AIApi, StopConversationRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new AIApi(configuration); + +apiInstance.stopConversation( + // string | Unique identifier of the conversation to stop. + "conversation_identifier_example" +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **conversationIdentifier** | [**string**] | Unique identifier of the conversation to stop. | defaults to undefined + + +### Return type + +**void** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successfully stopped the in-progress agent conversation response for the given. | - | +**400** | Operation failed | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**500** | Operation failed | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + diff --git a/sdks/typescript/AuthenticationApi.md b/sdks/typescript/AuthenticationApi.md index 3519009a6..cee046630 100644 --- a/sdks/typescript/AuthenticationApi.md +++ b/sdks/typescript/AuthenticationApi.md @@ -4,6 +4,7 @@ All URIs are relative to *CLUSTER_URL* Method | HTTP request | Description ------------- | ------------- | ------------- +[**configureAuthSettings**](AuthenticationApi.md#configureAuthSettings) | **POST** /api/rest/2.0/auth/configure | [**getCurrentUserInfo**](AuthenticationApi.md#getCurrentUserInfo) | **GET** /api/rest/2.0/auth/session/user | [**getCurrentUserToken**](AuthenticationApi.md#getCurrentUserToken) | **GET** /api/rest/2.0/auth/session/token | [**getCustomAccessToken**](AuthenticationApi.md#getCustomAccessToken) | **POST** /api/rest/2.0/auth/token/custom | @@ -12,9 +13,79 @@ Method | HTTP request | Description [**login**](AuthenticationApi.md#login) | **POST** /api/rest/2.0/auth/session/login | [**logout**](AuthenticationApi.md#logout) | **POST** /api/rest/2.0/auth/session/logout | [**revokeToken**](AuthenticationApi.md#revokeToken) | **POST** /api/rest/2.0/auth/token/revoke | +[**searchAuthSettings**](AuthenticationApi.md#searchAuthSettings) | **POST** /api/rest/2.0/auth/search | [**validateToken**](AuthenticationApi.md#validateToken) | **POST** /api/rest/2.0/auth/token/validate | +# **configureAuthSettings** +> void configureAuthSettings(configureAuthSettingsRequest) + + Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + +### Example + + +```typescript +import { createBearerAuthenticationConfig, AuthenticationApi, ConfigureAuthSettingsRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new AuthenticationApi(configuration); + +apiInstance.configureAuthSettings( + // ConfigureAuthSettingsRequest + { + auth_type: "TRUSTED_AUTH", + cluster_preferences: null, + org_preferences: [ + { + org_identifier: "org_identifier_example", + auth_status: "ENABLED", + }, + ], + } +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configureAuthSettingsRequest** | **ConfigureAuthSettingsRequest**| | + + +### Return type + +**void** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Trusted authentication settings configured successfully. | - | +**400** | Invalid request. | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **getCurrentUserInfo** > User getCurrentUserInfo() @@ -558,6 +629,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **searchAuthSettings** +> SearchAuthSettingsResponse searchAuthSettings(searchAuthSettingsRequest) + + Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + +### Example + + +```typescript +import { createBearerAuthenticationConfig, AuthenticationApi, SearchAuthSettingsRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new AuthenticationApi(configuration); + +apiInstance.searchAuthSettings( + // SearchAuthSettingsRequest + { + auth_type: "TRUSTED_AUTH", + scope: "CLUSTER", + } +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchAuthSettingsRequest** | **SearchAuthSettingsRequest**| | + + +### Return type + +**SearchAuthSettingsResponse** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Authentication settings retrieved successfully. | - | +**400** | Invalid request. | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **validateToken** > TokenValidationResponse validateToken(validateTokenRequest) diff --git a/sdks/typescript/ConnectionsApi.md b/sdks/typescript/ConnectionsApi.md index 14f266fc5..7ea58c1bf 100644 --- a/sdks/typescript/ConnectionsApi.md +++ b/sdks/typescript/ConnectionsApi.md @@ -13,6 +13,7 @@ Method | HTTP request | Description [**searchConnection**](ConnectionsApi.md#searchConnection) | **POST** /api/rest/2.0/connection/search | [**syncMetadata**](ConnectionsApi.md#syncMetadata) | **POST** /api/rest/2.0/connections/{connection_identifier}/resync-metadata | [**updateConnection**](ConnectionsApi.md#updateConnection) | **POST** /api/rest/2.0/connection/update | +[**updateConnectionStatus**](ConnectionsApi.md#updateConnectionStatus) | **POST** /api/rest/2.0/connections/{connection_identifier}/status | [**updateConnectionV2**](ConnectionsApi.md#updateConnectionV2) | **POST** /api/rest/2.0/connections/{connection_identifier}/update | @@ -621,6 +622,72 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **updateConnectionStatus** +> void updateConnectionStatus(updateConnectionStatusRequest) + + Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + +### Example + + +```typescript +import { createBearerAuthenticationConfig, ConnectionsApi, UpdateConnectionStatusRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new ConnectionsApi(configuration); + +apiInstance.updateConnectionStatus( + // string | Unique ID or name of the connection. + "connection_identifier_example" , + // UpdateConnectionStatusRequest + { + status: "ACTIVATED", + } +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateConnectionStatusRequest** | **UpdateConnectionStatusRequest**| | + **connectionIdentifier** | [**string**] | Unique ID or name of the connection. | defaults to undefined + + +### Return type + +**void** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Connection status updated successfully. | - | +**400** | Invalid request. | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**404** | Object not found | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **updateConnectionV2** > void updateConnectionV2(updateConnectionV2Request) diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 2b7a07dbe..927dddd39 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -1,4 +1,4 @@ -## @thoughtspot/rest-api-sdk@2.24.0 +## @thoughtspot/rest-api-sdk@2.25.0 TypeScript/JavaScript client for ThoughtSpot's v2 [Rest APIs](https://developers.thoughtspot.com/docs/rest-api-v2). diff --git a/sdks/typescript/ReportsApi.md b/sdks/typescript/ReportsApi.md index 19dac8e20..57ef7e60a 100644 --- a/sdks/typescript/ReportsApi.md +++ b/sdks/typescript/ReportsApi.md @@ -36,6 +36,9 @@ apiInstance.exportAnswerReport( runtime_sort: {}, runtime_param_override: {}, regional_settings: null, + png_options: null, + personalised_view_identifier: "personalised_view_identifier_example", + type: "SAVED", } ).then((data:any) => { console.log('API called successfully. Returned data: ' + data); diff --git a/sdks/typescript/SecurityApi.md b/sdks/typescript/SecurityApi.md index dd50ba96c..4fa555aea 100644 --- a/sdks/typescript/SecurityApi.md +++ b/sdks/typescript/SecurityApi.md @@ -563,6 +563,7 @@ apiInstance.shareMetadata( type: "USER", }, share_mode: "READ_ONLY", + content_share_mode: "READ_ONLY", }, ], visualization_identifiers: [ diff --git a/sdks/typescript/ThoughtSpotRestApi.md b/sdks/typescript/ThoughtSpotRestApi.md index 60b8b9bd9..45970a8c5 100644 --- a/sdks/typescript/ThoughtSpotRestApi.md +++ b/sdks/typescript/ThoughtSpotRestApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**assignTag**](ThoughtSpotRestApi.md#assignTag) | **POST** /api/rest/2.0/tags/assign | [**changeUserPassword**](ThoughtSpotRestApi.md#changeUserPassword) | **POST** /api/rest/2.0/users/change-password | [**commitBranch**](ThoughtSpotRestApi.md#commitBranch) | **POST** /api/rest/2.0/vcs/git/branches/commit | +[**configureAuthSettings**](ThoughtSpotRestApi.md#configureAuthSettings) | **POST** /api/rest/2.0/auth/configure | [**configureCommunicationChannelPreferences**](ThoughtSpotRestApi.md#configureCommunicationChannelPreferences) | **POST** /api/rest/2.0/system/preferences/communication-channels/configure | [**configureSecuritySettings**](ThoughtSpotRestApi.md#configureSecuritySettings) | **POST** /api/rest/2.0/system/security-settings/configure | [**connectionConfigurationSearch**](ThoughtSpotRestApi.md#connectionConfigurationSearch) | **POST** /api/rest/2.0/connection-configurations/search | @@ -102,6 +103,7 @@ Method | HTTP request | Description [**revertCommit**](ThoughtSpotRestApi.md#revertCommit) | **POST** /api/rest/2.0/vcs/git/commits/{commit_id}/revert | [**revokeRefreshTokens**](ThoughtSpotRestApi.md#revokeRefreshTokens) | **POST** /api/rest/2.0/connections/{connection_identifier}/revoke-refresh-tokens | [**revokeToken**](ThoughtSpotRestApi.md#revokeToken) | **POST** /api/rest/2.0/auth/token/revoke | +[**searchAuthSettings**](ThoughtSpotRestApi.md#searchAuthSettings) | **POST** /api/rest/2.0/auth/search | [**searchCalendars**](ThoughtSpotRestApi.md#searchCalendars) | **POST** /api/rest/2.0/calendars/search | [**searchChannelHistory**](ThoughtSpotRestApi.md#searchChannelHistory) | **POST** /api/rest/2.0/jobs/history/communication-channels/search | [**searchCollections**](ThoughtSpotRestApi.md#searchCollections) | **POST** /api/rest/2.0/collections/search | @@ -130,6 +132,7 @@ Method | HTTP request | Description [**setNLInstructions**](ThoughtSpotRestApi.md#setNLInstructions) | **POST** /api/rest/2.0/ai/instructions/set | [**shareMetadata**](ThoughtSpotRestApi.md#shareMetadata) | **POST** /api/rest/2.0/security/metadata/share | [**singleAnswer**](ThoughtSpotRestApi.md#singleAnswer) | **POST** /api/rest/2.0/ai/answer/create | +[**stopConversation**](ThoughtSpotRestApi.md#stopConversation) | **POST** /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response | [**syncMetadata**](ThoughtSpotRestApi.md#syncMetadata) | **POST** /api/rest/2.0/connections/{connection_identifier}/resync-metadata | [**unassignTag**](ThoughtSpotRestApi.md#unassignTag) | **POST** /api/rest/2.0/tags/unassign | [**unparameterizeMetadata**](ThoughtSpotRestApi.md#unparameterizeMetadata) | **POST** /api/rest/2.0/metadata/unparameterize | @@ -140,6 +143,7 @@ Method | HTTP request | Description [**updateConfig**](ThoughtSpotRestApi.md#updateConfig) | **POST** /api/rest/2.0/vcs/git/config/update | [**updateConnection**](ThoughtSpotRestApi.md#updateConnection) | **POST** /api/rest/2.0/connection/update | [**updateConnectionConfiguration**](ThoughtSpotRestApi.md#updateConnectionConfiguration) | **POST** /api/rest/2.0/connection-configurations/{configuration_identifier}/update | +[**updateConnectionStatus**](ThoughtSpotRestApi.md#updateConnectionStatus) | **POST** /api/rest/2.0/connections/{connection_identifier}/status | [**updateConnectionV2**](ThoughtSpotRestApi.md#updateConnectionV2) | **POST** /api/rest/2.0/connections/{connection_identifier}/update | [**updateCustomAction**](ThoughtSpotRestApi.md#updateCustomAction) | **POST** /api/rest/2.0/customization/custom-actions/{custom_action_identifier}/update | [**updateDbtConnection**](ThoughtSpotRestApi.md#updateDbtConnection) | **POST** /api/rest/2.0/dbt/update-dbt-connection | @@ -500,6 +504,75 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **configureAuthSettings** +> void configureAuthSettings(configureAuthSettingsRequest) + + Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + +### Example + + +```typescript +import { createBearerAuthenticationConfig, ThoughtSpotRestApi, ConfigureAuthSettingsRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new ThoughtSpotRestApi(configuration); + +apiInstance.configureAuthSettings( + // ConfigureAuthSettingsRequest + { + auth_type: "TRUSTED_AUTH", + cluster_preferences: null, + org_preferences: [ + { + org_identifier: "org_identifier_example", + auth_status: "ENABLED", + }, + ], + } +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configureAuthSettingsRequest** | **ConfigureAuthSettingsRequest**| | + + +### Return type + +**void** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Trusted authentication settings configured successfully. | - | +**400** | Invalid request. | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **configureCommunicationChannelPreferences** > void configureCommunicationChannelPreferences(configureCommunicationChannelPreferencesRequest) @@ -3785,6 +3858,9 @@ apiInstance.exportAnswerReport( runtime_sort: {}, runtime_param_override: {}, regional_settings: null, + png_options: null, + personalised_view_identifier: "personalised_view_identifier_example", + type: "SAVED", } ).then((data:any) => { console.log('API called successfully. Returned data: ' + data); @@ -6795,6 +6871,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **searchAuthSettings** +> SearchAuthSettingsResponse searchAuthSettings(searchAuthSettingsRequest) + + Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + +### Example + + +```typescript +import { createBearerAuthenticationConfig, ThoughtSpotRestApi, SearchAuthSettingsRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new ThoughtSpotRestApi(configuration); + +apiInstance.searchAuthSettings( + // SearchAuthSettingsRequest + { + auth_type: "TRUSTED_AUTH", + scope: "CLUSTER", + } +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **searchAuthSettingsRequest** | **SearchAuthSettingsRequest**| | + + +### Return type + +**SearchAuthSettingsResponse** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Authentication settings retrieved successfully. | - | +**400** | Invalid request. | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **searchCalendars** > Array searchCalendars(searchCalendarsRequest) @@ -8744,6 +8883,7 @@ apiInstance.shareMetadata( type: "USER", }, share_mode: "READ_ONLY", + content_share_mode: "READ_ONLY", }, ], visualization_identifiers: [ @@ -8859,6 +8999,66 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **stopConversation** +> void stopConversation() + + Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + +### Example + + +```typescript +import { createBearerAuthenticationConfig, ThoughtSpotRestApi, StopConversationRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new ThoughtSpotRestApi(configuration); + +apiInstance.stopConversation( + // string | Unique identifier of the conversation to stop. + "conversation_identifier_example" +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **conversationIdentifier** | [**string**] | Unique identifier of the conversation to stop. | defaults to undefined + + +### Return type + +**void** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successfully stopped the in-progress agent conversation response for the given. | - | +**400** | Operation failed | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**500** | Operation failed | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **syncMetadata** > SyncMetadataResponse syncMetadata(syncMetadataRequest) @@ -9576,6 +9776,72 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **updateConnectionStatus** +> void updateConnectionStatus(updateConnectionStatusRequest) + + Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + +### Example + + +```typescript +import { createBearerAuthenticationConfig, ThoughtSpotRestApi, UpdateConnectionStatusRequest } from '@thoughtspot/rest-api-sdk'; + +const configuration = createBearerAuthenticationConfig("CLUSTER_SERVER_URL", { + username: "YOUR_USERNAME", + password: "YOUR_PASSWORD", +}); +const apiInstance = new ThoughtSpotRestApi(configuration); + +apiInstance.updateConnectionStatus( + // string | Unique ID or name of the connection. + "connection_identifier_example" , + // UpdateConnectionStatusRequest + { + status: "ACTIVATED", + } +).then((data:any) => { + console.log('API called successfully. Returned data: ' + data); +}).catch((error:any) => console.error(error)); + + +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateConnectionStatusRequest** | **UpdateConnectionStatusRequest**| | + **connectionIdentifier** | [**string**] | Unique ID or name of the connection. | defaults to undefined + + +### Return type + +**void** + +### Authorization + +[bearerAuth](README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Connection status updated successfully. | - | +**400** | Invalid request. | - | +**401** | Unauthorized access. | - | +**403** | Forbidden access. | - | +**404** | Object not found | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **updateConnectionV2** > void updateConnectionV2(updateConnectionV2Request) diff --git a/sdks/typescript/apis/AIApi.ts b/sdks/typescript/apis/AIApi.ts index d97b4af2a..9e2433a87 100644 --- a/sdks/typescript/apis/AIApi.ts +++ b/sdks/typescript/apis/AIApi.ts @@ -56,8 +56,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -107,8 +107,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -158,8 +158,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -209,8 +209,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -260,8 +260,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -311,8 +311,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -370,8 +370,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -429,8 +429,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -488,8 +488,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -539,8 +539,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -598,8 +598,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -649,8 +649,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -700,8 +700,8 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -717,6 +717,47 @@ export class AIApiRequestFactory extends BaseAPIRequestFactory { ); requestContext.setBody(serializedBody); + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + public async stopConversation(conversationIdentifier: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'conversationIdentifier' is not null or undefined + if (conversationIdentifier === null || conversationIdentifier === undefined) { + throw new RequiredError("AIApi", "stopConversation", "conversationIdentifier"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response' + .replace('{' + 'conversation_identifier' + '}', encodeURIComponent(String(conversationIdentifier))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + let authMethod: SecurityAuthentication | undefined; // Apply auth methods authMethod = _config.authMethods["bearerAuth"] @@ -1568,4 +1609,57 @@ export class AIApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + public async stopConversation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: void = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "void", "" + ) as void; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/sdks/typescript/apis/AuthenticationApi.ts b/sdks/typescript/apis/AuthenticationApi.ts index 3836c3524..bcd6b6ff7 100644 --- a/sdks/typescript/apis/AuthenticationApi.ts +++ b/sdks/typescript/apis/AuthenticationApi.ts @@ -9,6 +9,7 @@ import {SecurityAuthentication} from '../auth/auth'; import { AccessToken } from '../models/AccessToken'; +import { ConfigureAuthSettingsRequest } from '../models/ConfigureAuthSettingsRequest'; import { ErrorResponse } from '../models/ErrorResponse'; import { GetCustomAccessTokenRequest } from '../models/GetCustomAccessTokenRequest'; import { GetFullAccessTokenRequest } from '../models/GetFullAccessTokenRequest'; @@ -16,6 +17,8 @@ import { GetObjectAccessTokenRequest } from '../models/GetObjectAccessTokenReque import { GetTokenResponse } from '../models/GetTokenResponse'; import { LoginRequest } from '../models/LoginRequest'; import { RevokeTokenRequest } from '../models/RevokeTokenRequest'; +import { SearchAuthSettingsRequest } from '../models/SearchAuthSettingsRequest'; +import { SearchAuthSettingsResponse } from '../models/SearchAuthSettingsResponse'; import { Token } from '../models/Token'; import { TokenValidationResponse } from '../models/TokenValidationResponse'; import { User } from '../models/User'; @@ -26,6 +29,57 @@ import { ValidateTokenRequest } from '../models/ValidateTokenRequest'; */ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + public async configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'configureAuthSettingsRequest' is not null or undefined + if (configureAuthSettingsRequest === null || configureAuthSettingsRequest === undefined) { + throw new RequiredError("AuthenticationApi", "configureAuthSettings", "configureAuthSettingsRequest"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/auth/configure'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(configureAuthSettingsRequest, "ConfigureAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -38,8 +92,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -71,8 +125,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -111,8 +165,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -156,8 +210,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -201,8 +255,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -246,8 +300,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -290,8 +344,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -330,8 +384,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -362,6 +416,57 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + public async searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'searchAuthSettingsRequest' is not null or undefined + if (searchAuthSettingsRequest === null || searchAuthSettingsRequest === undefined) { + throw new RequiredError("AuthenticationApi", "searchAuthSettings", "searchAuthSettingsRequest"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/auth/search'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(searchAuthSettingsRequest, "SearchAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -381,8 +486,8 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -417,6 +522,59 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { export class AuthenticationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + public async configureAuthSettings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: void = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "void", "" + ) as void; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -861,6 +1019,63 @@ export class AuthenticationApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + public async searchAuthSettings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: SearchAuthSettingsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SearchAuthSettingsResponse", "" + ) as SearchAuthSettingsResponse; + return body; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: SearchAuthSettingsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SearchAuthSettingsResponse", "" + ) as SearchAuthSettingsResponse; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects diff --git a/sdks/typescript/apis/CollectionsApi.ts b/sdks/typescript/apis/CollectionsApi.ts index 8b0f44faf..a1aeca33a 100644 --- a/sdks/typescript/apis/CollectionsApi.ts +++ b/sdks/typescript/apis/CollectionsApi.ts @@ -41,8 +41,8 @@ export class CollectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -92,8 +92,8 @@ export class CollectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -143,8 +143,8 @@ export class CollectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -202,8 +202,8 @@ export class CollectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/ConnectionConfigurationsApi.ts b/sdks/typescript/apis/ConnectionConfigurationsApi.ts index b2deab692..76434dd21 100644 --- a/sdks/typescript/apis/ConnectionConfigurationsApi.ts +++ b/sdks/typescript/apis/ConnectionConfigurationsApi.ts @@ -39,8 +39,8 @@ export class ConnectionConfigurationsApiRequestFactory extends BaseAPIRequestFac // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -90,8 +90,8 @@ export class ConnectionConfigurationsApiRequestFactory extends BaseAPIRequestFac // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -141,8 +141,8 @@ export class ConnectionConfigurationsApiRequestFactory extends BaseAPIRequestFac // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -200,8 +200,8 @@ export class ConnectionConfigurationsApiRequestFactory extends BaseAPIRequestFac // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/ConnectionsApi.ts b/sdks/typescript/apis/ConnectionsApi.ts index f8811c32c..e9bc55f70 100644 --- a/sdks/typescript/apis/ConnectionsApi.ts +++ b/sdks/typescript/apis/ConnectionsApi.ts @@ -20,6 +20,7 @@ import { SearchConnectionResponse } from '../models/SearchConnectionResponse'; import { SyncMetadataRequest } from '../models/SyncMetadataRequest'; import { SyncMetadataResponse } from '../models/SyncMetadataResponse'; import { UpdateConnectionRequest } from '../models/UpdateConnectionRequest'; +import { UpdateConnectionStatusRequest } from '../models/UpdateConnectionStatusRequest'; import { UpdateConnectionV2Request } from '../models/UpdateConnectionV2Request'; /** @@ -46,8 +47,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -97,8 +98,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -149,8 +150,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -190,8 +191,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -231,8 +232,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -279,8 +280,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -330,8 +331,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -389,8 +390,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -440,8 +441,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -472,6 +473,65 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + public async updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'connectionIdentifier' is not null or undefined + if (connectionIdentifier === null || connectionIdentifier === undefined) { + throw new RequiredError("ConnectionsApi", "updateConnectionStatus", "connectionIdentifier"); + } + + + // verify required parameter 'updateConnectionStatusRequest' is not null or undefined + if (updateConnectionStatusRequest === null || updateConnectionStatusRequest === undefined) { + throw new RequiredError("ConnectionsApi", "updateConnectionStatus", "updateConnectionStatusRequest"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/connections/{connection_identifier}/status' + .replace('{' + 'connection_identifier' + '}', encodeURIComponent(String(connectionIdentifier))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(updateConnectionStatusRequest, "UpdateConnectionStatusRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -499,8 +559,8 @@ export class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1054,6 +1114,66 @@ export class ConnectionsApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async updateConnectionStatus(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("404", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: void = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "void", "" + ) as void; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects diff --git a/sdks/typescript/apis/CustomActionApi.ts b/sdks/typescript/apis/CustomActionApi.ts index 4a915a186..1970ef318 100644 --- a/sdks/typescript/apis/CustomActionApi.ts +++ b/sdks/typescript/apis/CustomActionApi.ts @@ -38,8 +38,8 @@ export class CustomActionApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -90,8 +90,8 @@ export class CustomActionApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -130,8 +130,8 @@ export class CustomActionApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -189,8 +189,8 @@ export class CustomActionApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/CustomCalendarsApi.ts b/sdks/typescript/apis/CustomCalendarsApi.ts index 229922805..a96036fde 100644 --- a/sdks/typescript/apis/CustomCalendarsApi.ts +++ b/sdks/typescript/apis/CustomCalendarsApi.ts @@ -39,8 +39,8 @@ export class CustomCalendarsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -91,8 +91,8 @@ export class CustomCalendarsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -131,8 +131,8 @@ export class CustomCalendarsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -182,8 +182,8 @@ export class CustomCalendarsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -241,8 +241,8 @@ export class CustomCalendarsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/DBTApi.ts b/sdks/typescript/apis/DBTApi.ts index eb10e612d..19d79ae7b 100644 --- a/sdks/typescript/apis/DBTApi.ts +++ b/sdks/typescript/apis/DBTApi.ts @@ -58,8 +58,8 @@ export class DBTApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -163,8 +163,8 @@ export class DBTApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -252,8 +252,8 @@ export class DBTApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -328,8 +328,8 @@ export class DBTApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -369,8 +369,8 @@ export class DBTApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -429,8 +429,8 @@ export class DBTApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/DataApi.ts b/sdks/typescript/apis/DataApi.ts index eac4a9714..09586104f 100644 --- a/sdks/typescript/apis/DataApi.ts +++ b/sdks/typescript/apis/DataApi.ts @@ -40,8 +40,8 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -91,8 +91,8 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -142,8 +142,8 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/EmailCustomizationApi.ts b/sdks/typescript/apis/EmailCustomizationApi.ts index 13f07b4be..0a9cf70ad 100644 --- a/sdks/typescript/apis/EmailCustomizationApi.ts +++ b/sdks/typescript/apis/EmailCustomizationApi.ts @@ -39,8 +39,8 @@ export class EmailCustomizationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -91,8 +91,8 @@ export class EmailCustomizationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -131,8 +131,8 @@ export class EmailCustomizationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -182,8 +182,8 @@ export class EmailCustomizationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -233,8 +233,8 @@ export class EmailCustomizationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -277,8 +277,8 @@ export class EmailCustomizationApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/GroupsApi.ts b/sdks/typescript/apis/GroupsApi.ts index 1de4395c9..02a08c4dd 100644 --- a/sdks/typescript/apis/GroupsApi.ts +++ b/sdks/typescript/apis/GroupsApi.ts @@ -40,8 +40,8 @@ export class GroupsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -92,8 +92,8 @@ export class GroupsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -132,8 +132,8 @@ export class GroupsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -183,8 +183,8 @@ export class GroupsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -242,8 +242,8 @@ export class GroupsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/JobsApi.ts b/sdks/typescript/apis/JobsApi.ts index a3db68860..3d56ffb8c 100644 --- a/sdks/typescript/apis/JobsApi.ts +++ b/sdks/typescript/apis/JobsApi.ts @@ -36,8 +36,8 @@ export class JobsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/LogApi.ts b/sdks/typescript/apis/LogApi.ts index 7ec291f31..a87271e7d 100644 --- a/sdks/typescript/apis/LogApi.ts +++ b/sdks/typescript/apis/LogApi.ts @@ -36,8 +36,8 @@ export class LogApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/MetadataApi.ts b/sdks/typescript/apis/MetadataApi.ts index 0896aacaf..6054a368f 100644 --- a/sdks/typescript/apis/MetadataApi.ts +++ b/sdks/typescript/apis/MetadataApi.ts @@ -56,8 +56,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -107,8 +107,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -158,8 +158,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -209,8 +209,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -260,8 +260,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -311,8 +311,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -362,8 +362,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -413,8 +413,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -464,8 +464,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -515,8 +515,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -566,8 +566,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -617,8 +617,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -668,8 +668,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -719,8 +719,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -770,8 +770,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -821,8 +821,8 @@ export class MetadataApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/OrgsApi.ts b/sdks/typescript/apis/OrgsApi.ts index 390c96e3c..0ab106637 100644 --- a/sdks/typescript/apis/OrgsApi.ts +++ b/sdks/typescript/apis/OrgsApi.ts @@ -38,8 +38,8 @@ export class OrgsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -90,8 +90,8 @@ export class OrgsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -130,8 +130,8 @@ export class OrgsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -189,8 +189,8 @@ export class OrgsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/ReportsApi.ts b/sdks/typescript/apis/ReportsApi.ts index 341131a52..78e286d9d 100644 --- a/sdks/typescript/apis/ReportsApi.ts +++ b/sdks/typescript/apis/ReportsApi.ts @@ -36,8 +36,8 @@ export class ReportsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -87,8 +87,8 @@ export class ReportsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/RolesApi.ts b/sdks/typescript/apis/RolesApi.ts index b9ef7eace..1019419ba 100644 --- a/sdks/typescript/apis/RolesApi.ts +++ b/sdks/typescript/apis/RolesApi.ts @@ -39,8 +39,8 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -91,8 +91,8 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -131,8 +131,8 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -190,8 +190,8 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/SchedulesApi.ts b/sdks/typescript/apis/SchedulesApi.ts index 9d1df92c1..1cbdd4cde 100644 --- a/sdks/typescript/apis/SchedulesApi.ts +++ b/sdks/typescript/apis/SchedulesApi.ts @@ -38,8 +38,8 @@ export class SchedulesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -90,8 +90,8 @@ export class SchedulesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -130,8 +130,8 @@ export class SchedulesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -189,8 +189,8 @@ export class SchedulesApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/SecurityApi.ts b/sdks/typescript/apis/SecurityApi.ts index b6a5664c8..d6070c868 100644 --- a/sdks/typescript/apis/SecurityApi.ts +++ b/sdks/typescript/apis/SecurityApi.ts @@ -48,8 +48,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -99,8 +99,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -150,8 +150,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -201,8 +201,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -252,8 +252,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -303,8 +303,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -354,8 +354,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -405,8 +405,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -456,8 +456,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -507,8 +507,8 @@ export class SecurityApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/SystemApi.ts b/sdks/typescript/apis/SystemApi.ts index 4e3beb4dc..1a9f5af82 100644 --- a/sdks/typescript/apis/SystemApi.ts +++ b/sdks/typescript/apis/SystemApi.ts @@ -46,8 +46,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -97,8 +97,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -141,8 +141,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -174,8 +174,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -207,8 +207,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -247,8 +247,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -298,8 +298,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -349,8 +349,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -400,8 +400,8 @@ export class SystemApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/TagsApi.ts b/sdks/typescript/apis/TagsApi.ts index 5b542b0ff..5723db2dc 100644 --- a/sdks/typescript/apis/TagsApi.ts +++ b/sdks/typescript/apis/TagsApi.ts @@ -40,8 +40,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -91,8 +91,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -143,8 +143,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -183,8 +183,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -234,8 +234,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -293,8 +293,8 @@ export class TagsApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/ThoughtSpotRestApi.ts b/sdks/typescript/apis/ThoughtSpotRestApi.ts index f9c25a76d..e3b12f240 100644 --- a/sdks/typescript/apis/ThoughtSpotRestApi.ts +++ b/sdks/typescript/apis/ThoughtSpotRestApi.ts @@ -25,6 +25,7 @@ import { CommitHistoryResponse } from '../models/CommitHistoryResponse'; import { CommitResponse } from '../models/CommitResponse'; import { CommunicationChannelPreferencesResponse } from '../models/CommunicationChannelPreferencesResponse'; import { CommunicationChannelValidateResponse } from '../models/CommunicationChannelValidateResponse'; +import { ConfigureAuthSettingsRequest } from '../models/ConfigureAuthSettingsRequest'; import { ConfigureCommunicationChannelPreferencesRequest } from '../models/ConfigureCommunicationChannelPreferencesRequest'; import { ConfigureSecuritySettingsRequest } from '../models/ConfigureSecuritySettingsRequest'; import { ConnectionConfigurationResponse } from '../models/ConnectionConfigurationResponse'; @@ -129,6 +130,8 @@ import { RevokeRefreshTokensRequest } from '../models/RevokeRefreshTokensRequest import { RevokeRefreshTokensResponse } from '../models/RevokeRefreshTokensResponse'; import { RevokeTokenRequest } from '../models/RevokeTokenRequest'; import { RoleResponse } from '../models/RoleResponse'; +import { SearchAuthSettingsRequest } from '../models/SearchAuthSettingsRequest'; +import { SearchAuthSettingsResponse } from '../models/SearchAuthSettingsResponse'; import { SearchCalendarsRequest } from '../models/SearchCalendarsRequest'; import { SearchChannelHistoryRequest } from '../models/SearchChannelHistoryRequest'; import { SearchChannelHistoryResponse } from '../models/SearchChannelHistoryResponse'; @@ -181,6 +184,7 @@ import { UpdateColumnSecurityRulesRequest } from '../models/UpdateColumnSecurity import { UpdateConfigRequest } from '../models/UpdateConfigRequest'; import { UpdateConnectionConfigurationRequest } from '../models/UpdateConnectionConfigurationRequest'; import { UpdateConnectionRequest } from '../models/UpdateConnectionRequest'; +import { UpdateConnectionStatusRequest } from '../models/UpdateConnectionStatusRequest'; import { UpdateConnectionV2Request } from '../models/UpdateConnectionV2Request'; import { UpdateCustomActionRequest } from '../models/UpdateCustomActionRequest'; import { UpdateEmailCustomizationRequest } from '../models/UpdateEmailCustomizationRequest'; @@ -230,8 +234,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -281,8 +285,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -332,8 +336,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -383,8 +387,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -434,8 +438,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -466,6 +470,57 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + public async configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'configureAuthSettingsRequest' is not null or undefined + if (configureAuthSettingsRequest === null || configureAuthSettingsRequest === undefined) { + throw new RequiredError("ThoughtSpotRestApi", "configureAuthSettings", "configureAuthSettingsRequest"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/auth/configure'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(configureAuthSettingsRequest, "ConfigureAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -485,8 +540,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -536,8 +591,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -587,8 +642,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -638,8 +693,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -689,8 +744,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -740,8 +795,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -791,8 +846,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -842,8 +897,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -893,8 +948,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -944,8 +999,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -995,8 +1050,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1046,8 +1101,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1097,8 +1152,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1148,8 +1203,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1199,8 +1254,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1250,8 +1305,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1301,8 +1356,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1352,8 +1407,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1403,8 +1458,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1454,8 +1509,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1505,8 +1560,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1556,8 +1611,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1630,8 +1685,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1735,8 +1790,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1824,8 +1879,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1900,8 +1955,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1940,8 +1995,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -1992,8 +2047,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2032,8 +2087,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2083,8 +2138,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2134,8 +2189,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2185,8 +2240,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2237,8 +2292,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2278,8 +2333,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2319,8 +2374,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2360,8 +2415,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2400,8 +2455,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2452,8 +2507,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2492,8 +2547,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2544,8 +2599,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2585,8 +2640,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2626,8 +2681,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2667,8 +2722,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2708,8 +2763,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2749,8 +2804,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2789,8 +2844,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2840,8 +2895,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2891,8 +2946,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2943,8 +2998,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -2983,8 +3038,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3034,8 +3089,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3085,8 +3140,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3136,8 +3191,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3187,8 +3242,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3238,8 +3293,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3289,8 +3344,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3340,8 +3395,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3392,8 +3447,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3432,8 +3487,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3483,8 +3538,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3534,8 +3589,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3585,8 +3640,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3636,8 +3691,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3687,8 +3742,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3738,8 +3793,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3789,8 +3844,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3833,8 +3888,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3866,8 +3921,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3906,8 +3961,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -3951,8 +4006,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4002,8 +4057,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4047,8 +4102,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4098,8 +4153,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4143,8 +4198,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4187,8 +4242,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4220,8 +4275,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4253,8 +4308,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4293,8 +4348,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4344,8 +4399,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4395,8 +4450,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4446,8 +4501,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4497,8 +4552,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4541,8 +4596,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4581,8 +4636,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4632,8 +4687,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4683,8 +4738,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4734,8 +4789,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4793,8 +4848,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4844,8 +4899,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4895,8 +4950,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -4954,8 +5009,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5013,8 +5068,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5064,8 +5119,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5096,6 +5151,57 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + public async searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'searchAuthSettingsRequest' is not null or undefined + if (searchAuthSettingsRequest === null || searchAuthSettingsRequest === undefined) { + throw new RequiredError("ThoughtSpotRestApi", "searchAuthSettings", "searchAuthSettingsRequest"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/auth/search'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(searchAuthSettingsRequest, "SearchAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -5115,8 +5221,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5166,8 +5272,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5217,8 +5323,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5268,8 +5374,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5319,8 +5425,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5370,8 +5476,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5421,8 +5527,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5472,8 +5578,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5523,8 +5629,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5574,8 +5680,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5625,8 +5731,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5676,8 +5782,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5727,8 +5833,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5778,8 +5884,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5829,8 +5935,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5880,8 +5986,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5931,8 +6037,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -5982,8 +6088,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6033,8 +6139,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6084,8 +6190,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6143,8 +6249,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6202,8 +6308,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6261,8 +6367,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6312,8 +6418,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6371,8 +6477,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6422,8 +6528,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6473,8 +6579,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6524,8 +6630,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6541,6 +6647,47 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { ); requestContext.setBody(serializedBody); + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + public async stopConversation(conversationIdentifier: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'conversationIdentifier' is not null or undefined + if (conversationIdentifier === null || conversationIdentifier === undefined) { + throw new RequiredError("ThoughtSpotRestApi", "stopConversation", "conversationIdentifier"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response' + .replace('{' + 'conversation_identifier' + '}', encodeURIComponent(String(conversationIdentifier))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + let authMethod: SecurityAuthentication | undefined; // Apply auth methods authMethod = _config.authMethods["bearerAuth"] @@ -6583,8 +6730,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6634,8 +6781,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6685,8 +6832,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6736,8 +6883,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6795,8 +6942,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6854,8 +7001,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6905,8 +7052,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -6956,8 +7103,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7007,8 +7154,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7066,8 +7213,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7098,6 +7245,65 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + public async updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'connectionIdentifier' is not null or undefined + if (connectionIdentifier === null || connectionIdentifier === undefined) { + throw new RequiredError("ThoughtSpotRestApi", "updateConnectionStatus", "connectionIdentifier"); + } + + + // verify required parameter 'updateConnectionStatusRequest' is not null or undefined + if (updateConnectionStatusRequest === null || updateConnectionStatusRequest === undefined) { + throw new RequiredError("ThoughtSpotRestApi", "updateConnectionStatus", "updateConnectionStatusRequest"); + } + + + // Path Params + const localVarPath = '/api/rest/2.0/connections/{connection_identifier}/status' + .replace('{' + 'connection_identifier' + '}', encodeURIComponent(String(connectionIdentifier))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") + + + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(updateConnectionStatusRequest, "UpdateConnectionStatusRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["bearerAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -7125,8 +7331,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7184,8 +7390,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7255,8 +7461,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7362,8 +7568,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7413,8 +7619,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7464,8 +7670,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7523,8 +7729,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7582,8 +7788,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7641,8 +7847,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7692,8 +7898,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7751,8 +7957,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7810,8 +8016,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7869,8 +8075,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7928,8 +8134,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -7979,8 +8185,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -8038,8 +8244,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -8089,8 +8295,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -8133,8 +8339,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -8173,8 +8379,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -8224,8 +8430,8 @@ export class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -8533,6 +8739,59 @@ export class ThoughtSpotRestApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + public async configureAuthSettings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: void = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "void", "" + ) as void; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -13761,6 +14020,63 @@ export class ThoughtSpotRestApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + public async searchAuthSettings(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: SearchAuthSettingsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SearchAuthSettingsResponse", "" + ) as SearchAuthSettingsResponse; + return body; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: SearchAuthSettingsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "SearchAuthSettingsResponse", "" + ) as SearchAuthSettingsResponse; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -15395,6 +15711,59 @@ export class ThoughtSpotRestApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + public async stopConversation(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: void = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "void", "" + ) as void; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -15947,6 +16316,66 @@ export class ThoughtSpotRestApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async updateConnectionStatus(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("404", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body: ErrorResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ErrorResponse", "" + ) as ErrorResponse; + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: void = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "void", "" + ) as void; + return body; + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects diff --git a/sdks/typescript/apis/UsersApi.ts b/sdks/typescript/apis/UsersApi.ts index a306a5162..eb50d68fa 100644 --- a/sdks/typescript/apis/UsersApi.ts +++ b/sdks/typescript/apis/UsersApi.ts @@ -46,8 +46,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -97,8 +97,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -148,8 +148,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -199,8 +199,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -251,8 +251,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -291,8 +291,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -342,8 +342,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -393,8 +393,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -444,8 +444,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -503,8 +503,8 @@ export class UsersApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/VariableApi.ts b/sdks/typescript/apis/VariableApi.ts index 8ac7a8c9c..e390f33f3 100644 --- a/sdks/typescript/apis/VariableApi.ts +++ b/sdks/typescript/apis/VariableApi.ts @@ -41,8 +41,8 @@ export class VariableApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -93,8 +93,8 @@ export class VariableApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -133,8 +133,8 @@ export class VariableApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -192,8 +192,8 @@ export class VariableApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -243,8 +243,8 @@ export class VariableApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -302,8 +302,8 @@ export class VariableApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -353,8 +353,8 @@ export class VariableApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/VersionControlApi.ts b/sdks/typescript/apis/VersionControlApi.ts index ca838509f..0de77b949 100644 --- a/sdks/typescript/apis/VersionControlApi.ts +++ b/sdks/typescript/apis/VersionControlApi.ts @@ -48,8 +48,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -99,8 +99,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -150,8 +150,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -201,8 +201,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -260,8 +260,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -311,8 +311,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -362,8 +362,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -413,8 +413,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -464,8 +464,8 @@ export class VersionControlApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/apis/WebhooksApi.ts b/sdks/typescript/apis/WebhooksApi.ts index 70f8b9c9d..d833aed61 100644 --- a/sdks/typescript/apis/WebhooksApi.ts +++ b/sdks/typescript/apis/WebhooksApi.ts @@ -41,8 +41,8 @@ export class WebhooksApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -92,8 +92,8 @@ export class WebhooksApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -143,8 +143,8 @@ export class WebhooksApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") @@ -202,8 +202,8 @@ export class WebhooksApiRequestFactory extends BaseAPIRequestFactory { // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0") - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0") + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0") + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0") diff --git a/sdks/typescript/dist/index.cjs b/sdks/typescript/dist/index.cjs index 73881d724..a2816cc39 100644 --- a/sdks/typescript/dist/index.cjs +++ b/sdks/typescript/dist/index.cjs @@ -55,11 +55,18 @@ __export(typescript_exports, { AgentConversation: () => AgentConversation, AnswerContent: () => AnswerContent, AnswerDataResponse: () => AnswerDataResponse, + AnswerPngOptionsInput: () => AnswerPngOptionsInput, ApiException: () => ApiException, AssignChangeAuthorRequest: () => AssignChangeAuthorRequest, AssignTagRequest: () => AssignTagRequest, AssociateMetadataInput: () => AssociateMetadataInput, AssociateMetadataInputCreate: () => AssociateMetadataInputCreate, + AuthClusterPreferences: () => AuthClusterPreferences, + AuthClusterPreferencesInput: () => AuthClusterPreferencesInput, + AuthOrgInfo: () => AuthOrgInfo, + AuthOrgPreference: () => AuthOrgPreference, + AuthOrgPreferenceInput: () => AuthOrgPreferenceInput, + AuthSettingsAccessToken: () => AuthSettingsAccessToken, Authentication: () => Authentication, AuthenticationApi: () => PromiseAuthenticationApi, AuthenticationInput: () => AuthenticationInput, @@ -107,6 +114,8 @@ __export(typescript_exports, { CommiterType: () => CommiterType, CommunicationChannelPreferencesResponse: () => CommunicationChannelPreferencesResponse, CommunicationChannelValidateResponse: () => CommunicationChannelValidateResponse, + ConfigureAuthSettingsRequest: () => ConfigureAuthSettingsRequest, + ConfigureAuthSettingsRequestClusterPreferences: () => ConfigureAuthSettingsRequestClusterPreferences, ConfigureCommunicationChannelPreferencesRequest: () => ConfigureCommunicationChannelPreferencesRequest, ConfigureSecuritySettingsRequest: () => ConfigureSecuritySettingsRequest, ConfigureSecuritySettingsRequestClusterPreferences: () => ConfigureSecuritySettingsRequestClusterPreferences, @@ -199,6 +208,7 @@ __export(typescript_exports, { EventChannelConfigInput: () => EventChannelConfigInput, ExcludeMetadataListItemInput: () => ExcludeMetadataListItemInput, ExportAnswerReportRequest: () => ExportAnswerReportRequest, + ExportAnswerReportRequestPngOptions: () => ExportAnswerReportRequestPngOptions, ExportAnswerReportRequestRegionalSettings: () => ExportAnswerReportRequestRegionalSettings, ExportLiveboardReportRequest: () => ExportLiveboardReportRequest, ExportLiveboardReportRequestPdfOptions: () => ExportLiveboardReportRequestPdfOptions, @@ -369,6 +379,8 @@ __export(typescript_exports, { Scope: () => Scope, ScriptSrcUrls: () => ScriptSrcUrls, ScriptSrcUrlsInput: () => ScriptSrcUrlsInput, + SearchAuthSettingsRequest: () => SearchAuthSettingsRequest, + SearchAuthSettingsResponse: () => SearchAuthSettingsResponse, SearchCalendarsRequest: () => SearchCalendarsRequest, SearchCalendarsRequestSortOptions: () => SearchCalendarsRequestSortOptions, SearchChannelHistoryRequest: () => SearchChannelHistoryRequest, @@ -461,6 +473,7 @@ __export(typescript_exports, { UpdateConfigRequest: () => UpdateConfigRequest, UpdateConnectionConfigurationRequest: () => UpdateConnectionConfigurationRequest, UpdateConnectionRequest: () => UpdateConnectionRequest, + UpdateConnectionStatusRequest: () => UpdateConnectionStatusRequest, UpdateConnectionV2Request: () => UpdateConnectionV2Request, UpdateCustomActionRequest: () => UpdateCustomActionRequest, UpdateCustomActionRequestActionDetails: () => UpdateCustomActionRequestActionDetails, @@ -498,6 +511,7 @@ __export(typescript_exports, { Variable: () => Variable, VariableApi: () => PromiseVariableApi, VariableDetailInput: () => VariableDetailInput, + VariableOrgInfo: () => VariableOrgInfo, VariablePutAssignmentInput: () => VariablePutAssignmentInput, VariableUpdateAssignmentInput: () => VariableUpdateAssignmentInput, VariableUpdateScopeInput: () => VariableUpdateScopeInput, @@ -1219,6 +1233,37 @@ _AnswerDataResponse.attributeTypeMap = [ ]; var AnswerDataResponse = _AnswerDataResponse; +// models/AnswerPngOptionsInput.ts +var _AnswerPngOptionsInput = class _AnswerPngOptionsInput { + static getAttributeTypeMap() { + return _AnswerPngOptionsInput.attributeTypeMap; + } + constructor() { + } +}; +_AnswerPngOptionsInput.discriminator = void 0; +_AnswerPngOptionsInput.attributeTypeMap = [ + { + "name": "x_resolution", + "baseName": "x_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "y_resolution", + "baseName": "y_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "scaling", + "baseName": "scaling", + "type": "number", + "format": "int32" + } +]; +var AnswerPngOptionsInput = _AnswerPngOptionsInput; + // models/AssignChangeAuthorRequest.ts var _AssignChangeAuthorRequest = class _AssignChangeAuthorRequest { static getAttributeTypeMap() { @@ -1337,6 +1382,150 @@ _AssociateMetadataInputCreate.attributeTypeMap = [ ]; var AssociateMetadataInputCreate = _AssociateMetadataInputCreate; +// models/AuthClusterPreferences.ts +var _AuthClusterPreferences = class _AuthClusterPreferences { + static getAttributeTypeMap() { + return _AuthClusterPreferences.attributeTypeMap; + } + constructor() { + } +}; +_AuthClusterPreferences.discriminator = void 0; +_AuthClusterPreferences.attributeTypeMap = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthClusterPreferencesAuthStatusEnum", + "format": "" + }, + { + "name": "access_tokens", + "baseName": "access_tokens", + "type": "Array", + "format": "" + } +]; +var AuthClusterPreferences = _AuthClusterPreferences; + +// models/AuthClusterPreferencesInput.ts +var _AuthClusterPreferencesInput = class _AuthClusterPreferencesInput { + static getAttributeTypeMap() { + return _AuthClusterPreferencesInput.attributeTypeMap; + } + constructor() { + } +}; +_AuthClusterPreferencesInput.discriminator = void 0; +_AuthClusterPreferencesInput.attributeTypeMap = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthClusterPreferencesInputAuthStatusEnum", + "format": "" + } +]; +var AuthClusterPreferencesInput = _AuthClusterPreferencesInput; + +// models/AuthOrgInfo.ts +var _AuthOrgInfo = class _AuthOrgInfo { + static getAttributeTypeMap() { + return _AuthOrgInfo.attributeTypeMap; + } + constructor() { + } +}; +_AuthOrgInfo.discriminator = void 0; +_AuthOrgInfo.attributeTypeMap = [ + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "int32" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } +]; +var AuthOrgInfo = _AuthOrgInfo; + +// models/AuthOrgPreference.ts +var _AuthOrgPreference = class _AuthOrgPreference { + static getAttributeTypeMap() { + return _AuthOrgPreference.attributeTypeMap; + } + constructor() { + } +}; +_AuthOrgPreference.discriminator = void 0; +_AuthOrgPreference.attributeTypeMap = [ + { + "name": "org", + "baseName": "org", + "type": "AuthOrgInfo", + "format": "" + }, + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthOrgPreferenceAuthStatusEnum", + "format": "" + }, + { + "name": "access_tokens", + "baseName": "access_tokens", + "type": "Array", + "format": "" + } +]; +var AuthOrgPreference = _AuthOrgPreference; + +// models/AuthOrgPreferenceInput.ts +var _AuthOrgPreferenceInput = class _AuthOrgPreferenceInput { + static getAttributeTypeMap() { + return _AuthOrgPreferenceInput.attributeTypeMap; + } + constructor() { + } +}; +_AuthOrgPreferenceInput.discriminator = void 0; +_AuthOrgPreferenceInput.attributeTypeMap = [ + { + "name": "org_identifier", + "baseName": "org_identifier", + "type": "string", + "format": "" + }, + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthOrgPreferenceInputAuthStatusEnum", + "format": "" + } +]; +var AuthOrgPreferenceInput = _AuthOrgPreferenceInput; + +// models/AuthSettingsAccessToken.ts +var _AuthSettingsAccessToken = class _AuthSettingsAccessToken { + static getAttributeTypeMap() { + return _AuthSettingsAccessToken.attributeTypeMap; + } + constructor() { + } +}; +_AuthSettingsAccessToken.discriminator = void 0; +_AuthSettingsAccessToken.attributeTypeMap = [ + { + "name": "key", + "baseName": "key", + "type": "string", + "format": "" + } +]; +var AuthSettingsAccessToken = _AuthSettingsAccessToken; + // models/Authentication.ts var _Authentication = class _Authentication { static getAttributeTypeMap() { @@ -2785,6 +2974,56 @@ _CommunicationChannelValidateResponse.attributeTypeMap = [ ]; var CommunicationChannelValidateResponse = _CommunicationChannelValidateResponse; +// models/ConfigureAuthSettingsRequest.ts +var _ConfigureAuthSettingsRequest = class _ConfigureAuthSettingsRequest { + static getAttributeTypeMap() { + return _ConfigureAuthSettingsRequest.attributeTypeMap; + } + constructor() { + } +}; +_ConfigureAuthSettingsRequest.discriminator = void 0; +_ConfigureAuthSettingsRequest.attributeTypeMap = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "ConfigureAuthSettingsRequestAuthTypeEnum", + "format": "" + }, + { + "name": "cluster_preferences", + "baseName": "cluster_preferences", + "type": "ConfigureAuthSettingsRequestClusterPreferences", + "format": "" + }, + { + "name": "org_preferences", + "baseName": "org_preferences", + "type": "Array", + "format": "" + } +]; +var ConfigureAuthSettingsRequest = _ConfigureAuthSettingsRequest; + +// models/ConfigureAuthSettingsRequestClusterPreferences.ts +var _ConfigureAuthSettingsRequestClusterPreferences = class _ConfigureAuthSettingsRequestClusterPreferences { + static getAttributeTypeMap() { + return _ConfigureAuthSettingsRequestClusterPreferences.attributeTypeMap; + } + constructor() { + } +}; +_ConfigureAuthSettingsRequestClusterPreferences.discriminator = void 0; +_ConfigureAuthSettingsRequestClusterPreferences.attributeTypeMap = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum", + "format": "" + } +]; +var ConfigureAuthSettingsRequestClusterPreferences = _ConfigureAuthSettingsRequestClusterPreferences; + // models/ConfigureCommunicationChannelPreferencesRequest.ts var _ConfigureCommunicationChannelPreferencesRequest = class _ConfigureCommunicationChannelPreferencesRequest { static getAttributeTypeMap() { @@ -5872,10 +6111,59 @@ _ExportAnswerReportRequest.attributeTypeMap = [ "baseName": "regional_settings", "type": "ExportAnswerReportRequestRegionalSettings", "format": "" + }, + { + "name": "png_options", + "baseName": "png_options", + "type": "ExportAnswerReportRequestPngOptions", + "format": "" + }, + { + "name": "personalised_view_identifier", + "baseName": "personalised_view_identifier", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "ExportAnswerReportRequestTypeEnum", + "format": "" } ]; var ExportAnswerReportRequest = _ExportAnswerReportRequest; +// models/ExportAnswerReportRequestPngOptions.ts +var _ExportAnswerReportRequestPngOptions = class _ExportAnswerReportRequestPngOptions { + static getAttributeTypeMap() { + return _ExportAnswerReportRequestPngOptions.attributeTypeMap; + } + constructor() { + } +}; +_ExportAnswerReportRequestPngOptions.discriminator = void 0; +_ExportAnswerReportRequestPngOptions.attributeTypeMap = [ + { + "name": "x_resolution", + "baseName": "x_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "y_resolution", + "baseName": "y_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "scaling", + "baseName": "scaling", + "type": "number", + "format": "int32" + } +]; +var ExportAnswerReportRequestPngOptions = _ExportAnswerReportRequestPngOptions; + // models/ExportAnswerReportRequestRegionalSettings.ts var _ExportAnswerReportRequestRegionalSettings = class _ExportAnswerReportRequestRegionalSettings { static getAttributeTypeMap() { @@ -11558,6 +11846,62 @@ _ScriptSrcUrlsInput.attributeTypeMap = [ ]; var ScriptSrcUrlsInput = _ScriptSrcUrlsInput; +// models/SearchAuthSettingsRequest.ts +var _SearchAuthSettingsRequest = class _SearchAuthSettingsRequest { + static getAttributeTypeMap() { + return _SearchAuthSettingsRequest.attributeTypeMap; + } + constructor() { + } +}; +_SearchAuthSettingsRequest.discriminator = void 0; +_SearchAuthSettingsRequest.attributeTypeMap = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "SearchAuthSettingsRequestAuthTypeEnum", + "format": "" + }, + { + "name": "scope", + "baseName": "scope", + "type": "SearchAuthSettingsRequestScopeEnum", + "format": "" + } +]; +var SearchAuthSettingsRequest = _SearchAuthSettingsRequest; + +// models/SearchAuthSettingsResponse.ts +var _SearchAuthSettingsResponse = class _SearchAuthSettingsResponse { + static getAttributeTypeMap() { + return _SearchAuthSettingsResponse.attributeTypeMap; + } + constructor() { + } +}; +_SearchAuthSettingsResponse.discriminator = void 0; +_SearchAuthSettingsResponse.attributeTypeMap = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "SearchAuthSettingsResponseAuthTypeEnum", + "format": "" + }, + { + "name": "cluster_preferences", + "baseName": "cluster_preferences", + "type": "AuthClusterPreferences", + "format": "" + }, + { + "name": "org_preferences", + "baseName": "org_preferences", + "type": "Array", + "format": "" + } +]; +var SearchAuthSettingsResponse = _SearchAuthSettingsResponse; + // models/SearchCalendarsRequest.ts var _SearchCalendarsRequest = class _SearchCalendarsRequest { static getAttributeTypeMap() { @@ -13215,6 +13559,12 @@ _SecuritySettingsClusterPreferences.attributeTypeMap = [ "baseName": "non_embed_access", "type": "ClusterNonEmbedAccess", "format": "" + }, + { + "name": "trusted_auth_status", + "baseName": "trusted_auth_status", + "type": "SecuritySettingsClusterPreferencesTrustedAuthStatusEnum", + "format": "" } ]; var SecuritySettingsClusterPreferences = _SecuritySettingsClusterPreferences; @@ -13314,6 +13664,12 @@ _SecuritySettingsOrgPreferences.attributeTypeMap = [ "baseName": "non_embed_access", "type": "OrgNonEmbedAccess", "format": "" + }, + { + "name": "trusted_auth_status", + "baseName": "trusted_auth_status", + "type": "SecuritySettingsOrgPreferencesTrustedAuthStatusEnum", + "format": "" } ]; var SecuritySettingsOrgPreferences = _SecuritySettingsOrgPreferences; @@ -13650,6 +14006,12 @@ _SharePermissionsInput.attributeTypeMap = [ "baseName": "share_mode", "type": "SharePermissionsInputShareModeEnum", "format": "" + }, + { + "name": "content_share_mode", + "baseName": "content_share_mode", + "type": "SharePermissionsInputContentShareModeEnum", + "format": "" } ]; var SharePermissionsInput = _SharePermissionsInput; @@ -15244,6 +15606,25 @@ _UpdateConnectionRequest.attributeTypeMap = [ ]; var UpdateConnectionRequest = _UpdateConnectionRequest; +// models/UpdateConnectionStatusRequest.ts +var _UpdateConnectionStatusRequest = class _UpdateConnectionStatusRequest { + static getAttributeTypeMap() { + return _UpdateConnectionStatusRequest.attributeTypeMap; + } + constructor() { + } +}; +_UpdateConnectionStatusRequest.discriminator = void 0; +_UpdateConnectionStatusRequest.attributeTypeMap = [ + { + "name": "status", + "baseName": "status", + "type": "UpdateConnectionStatusRequestStatusEnum", + "format": "" + } +]; +var UpdateConnectionStatusRequest = _UpdateConnectionStatusRequest; + // models/UpdateConnectionV2Request.ts var _UpdateConnectionV2Request = class _UpdateConnectionV2Request { static getAttributeTypeMap() { @@ -16906,6 +17287,12 @@ _Variable.attributeTypeMap = [ "baseName": "values", "type": "Array", "format": "" + }, + { + "name": "org", + "baseName": "org", + "type": "VariableOrgInfo", + "format": "" } ]; var Variable = _Variable; @@ -16941,6 +17328,31 @@ _VariableDetailInput.attributeTypeMap = [ ]; var VariableDetailInput = _VariableDetailInput; +// models/VariableOrgInfo.ts +var _VariableOrgInfo = class _VariableOrgInfo { + static getAttributeTypeMap() { + return _VariableOrgInfo.attributeTypeMap; + } + constructor() { + } +}; +_VariableOrgInfo.discriminator = void 0; +_VariableOrgInfo.attributeTypeMap = [ + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "int32" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } +]; +var VariableOrgInfo = _VariableOrgInfo; + // models/VariablePutAssignmentInput.ts var _VariablePutAssignmentInput = class _VariablePutAssignmentInput { static getAttributeTypeMap() { @@ -17930,6 +18342,10 @@ var enumsMap = /* @__PURE__ */ new Set([ "ActionConfigInputCreatePositionEnum", "AssociateMetadataInputTypeEnum", "AssociateMetadataInputCreateTypeEnum", + "AuthClusterPreferencesAuthStatusEnum", + "AuthClusterPreferencesInputAuthStatusEnum", + "AuthOrgPreferenceAuthStatusEnum", + "AuthOrgPreferenceInputAuthStatusEnum", "AuthorMetadataTypeInputTypeEnum", "ChannelHistoryEventInfoTypeEnum", "ChannelHistoryEventInputTypeEnum", @@ -17941,6 +18357,8 @@ var enumsMap = /* @__PURE__ */ new Set([ "CommunicationChannelValidateResponseChannelTypeEnum", "CommunicationChannelValidateResponseEventTypeEnum", "CommunicationChannelValidateResponseResultCodeEnum", + "ConfigureAuthSettingsRequestAuthTypeEnum", + "ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum", "ConnectionConfigurationResponsePolicyProcessesEnum", "ConnectionConfigurationResponseDataWarehouseTypeEnum", "ConnectionConfigurationResponsePolicyTypeEnum", @@ -17985,6 +18403,7 @@ var enumsMap = /* @__PURE__ */ new Set([ "EventChannelConfigInputChannelsEnum", "ExcludeMetadataListItemInputTypeEnum", "ExportAnswerReportRequestFileFormatEnum", + "ExportAnswerReportRequestTypeEnum", "ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum", "ExportAnswerReportRequestRegionalSettingsUserLocaleEnum", "ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum", @@ -18066,6 +18485,9 @@ var enumsMap = /* @__PURE__ */ new Set([ "RuntimeFiltersOperatorEnum", "RuntimeSortsOrderEnum", "SchedulesPdfOptionsInputPageSizeEnum", + "SearchAuthSettingsRequestAuthTypeEnum", + "SearchAuthSettingsRequestScopeEnum", + "SearchAuthSettingsResponseAuthTypeEnum", "SearchCalendarsRequestSortOptionsFieldNameEnum", "SearchCalendarsRequestSortOptionsOrderEnum", "SearchChannelHistoryRequestChannelTypeEnum", @@ -18106,9 +18528,12 @@ var enumsMap = /* @__PURE__ */ new Set([ "SearchWebhookConfigurationsRequestEventTypeEnum", "SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum", "SearchWebhookConfigurationsRequestSortOptionsOrderEnum", + "SecuritySettingsClusterPreferencesTrustedAuthStatusEnum", + "SecuritySettingsOrgPreferencesTrustedAuthStatusEnum", "ShareMetadataRequestMetadataTypeEnum", "ShareMetadataTypeInputTypeEnum", "SharePermissionsInputShareModeEnum", + "SharePermissionsInputContentShareModeEnum", "SortOptionFieldNameEnum", "SortOptionOrderEnum", "SortOptionInputFieldNameEnum", @@ -18132,6 +18557,7 @@ var enumsMap = /* @__PURE__ */ new Set([ "UpdateConnectionConfigurationRequestAuthenticationTypeEnum", "UpdateConnectionConfigurationRequestPolicyTypeEnum", "UpdateConnectionConfigurationRequestPolicyProcessesEnum", + "UpdateConnectionStatusRequestStatusEnum", "UpdateCustomActionRequestOperationEnum", "UpdateObjIdInputTypeEnum", "UpdateOrgRequestOperationEnum", @@ -18191,10 +18617,17 @@ var typeMap = { "AgentConversation": AgentConversation, "AnswerContent": AnswerContent, "AnswerDataResponse": AnswerDataResponse, + "AnswerPngOptionsInput": AnswerPngOptionsInput, "AssignChangeAuthorRequest": AssignChangeAuthorRequest, "AssignTagRequest": AssignTagRequest, "AssociateMetadataInput": AssociateMetadataInput, "AssociateMetadataInputCreate": AssociateMetadataInputCreate, + "AuthClusterPreferences": AuthClusterPreferences, + "AuthClusterPreferencesInput": AuthClusterPreferencesInput, + "AuthOrgInfo": AuthOrgInfo, + "AuthOrgPreference": AuthOrgPreference, + "AuthOrgPreferenceInput": AuthOrgPreferenceInput, + "AuthSettingsAccessToken": AuthSettingsAccessToken, "Authentication": Authentication, "AuthenticationInput": AuthenticationInput, "Author": Author, @@ -18239,6 +18672,8 @@ var typeMap = { "CommiterType": CommiterType, "CommunicationChannelPreferencesResponse": CommunicationChannelPreferencesResponse, "CommunicationChannelValidateResponse": CommunicationChannelValidateResponse, + "ConfigureAuthSettingsRequest": ConfigureAuthSettingsRequest, + "ConfigureAuthSettingsRequestClusterPreferences": ConfigureAuthSettingsRequestClusterPreferences, "ConfigureCommunicationChannelPreferencesRequest": ConfigureCommunicationChannelPreferencesRequest, "ConfigureSecuritySettingsRequest": ConfigureSecuritySettingsRequest, "ConfigureSecuritySettingsRequestClusterPreferences": ConfigureSecuritySettingsRequestClusterPreferences, @@ -18324,6 +18759,7 @@ var typeMap = { "EventChannelConfigInput": EventChannelConfigInput, "ExcludeMetadataListItemInput": ExcludeMetadataListItemInput, "ExportAnswerReportRequest": ExportAnswerReportRequest, + "ExportAnswerReportRequestPngOptions": ExportAnswerReportRequestPngOptions, "ExportAnswerReportRequestRegionalSettings": ExportAnswerReportRequestRegionalSettings, "ExportLiveboardReportRequest": ExportLiveboardReportRequest, "ExportLiveboardReportRequestPdfOptions": ExportLiveboardReportRequestPdfOptions, @@ -18480,6 +18916,8 @@ var typeMap = { "Scope": Scope, "ScriptSrcUrls": ScriptSrcUrls, "ScriptSrcUrlsInput": ScriptSrcUrlsInput, + "SearchAuthSettingsRequest": SearchAuthSettingsRequest, + "SearchAuthSettingsResponse": SearchAuthSettingsResponse, "SearchCalendarsRequest": SearchCalendarsRequest, "SearchCalendarsRequestSortOptions": SearchCalendarsRequestSortOptions, "SearchChannelHistoryRequest": SearchChannelHistoryRequest, @@ -18566,6 +19004,7 @@ var typeMap = { "UpdateConfigRequest": UpdateConfigRequest, "UpdateConnectionConfigurationRequest": UpdateConnectionConfigurationRequest, "UpdateConnectionRequest": UpdateConnectionRequest, + "UpdateConnectionStatusRequest": UpdateConnectionStatusRequest, "UpdateConnectionV2Request": UpdateConnectionV2Request, "UpdateCustomActionRequest": UpdateCustomActionRequest, "UpdateCustomActionRequestActionDetails": UpdateCustomActionRequestActionDetails, @@ -18601,6 +19040,7 @@ var typeMap = { "ValueScopeInput": ValueScopeInput, "Variable": Variable, "VariableDetailInput": VariableDetailInput, + "VariableOrgInfo": VariableOrgInfo, "VariablePutAssignmentInput": VariablePutAssignmentInput, "VariableUpdateAssignmentInput": VariableUpdateAssignmentInput, "VariableUpdateScopeInput": VariableUpdateScopeInput, @@ -18840,8 +19280,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18877,8 +19317,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18914,8 +19354,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/data-source-suggestions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18951,8 +19391,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/get"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18988,8 +19428,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/relevant-questions/"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19025,8 +19465,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/analytical-questions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19066,8 +19506,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19107,8 +19547,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send/stream".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19148,8 +19588,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19185,8 +19625,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/converse/sse"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19226,8 +19666,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19263,8 +19703,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/set"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19300,8 +19740,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/answer/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19323,6 +19763,34 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (conversationIdentifier === null || conversationIdentifier === void 0) { + throw new RequiredError("AIApi", "stopConversation", "conversationIdentifier"); + } + const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } }; var AIApiResponseProcessor = class { /** @@ -20222,10 +20690,103 @@ var AIApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } }; // apis/AuthenticationApi.ts var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (configureAuthSettingsRequest === null || configureAuthSettingsRequest === void 0) { + throw new RequiredError("AuthenticationApi", "configureAuthSettings", "configureAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/configure"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(configureAuthSettingsRequest, "ConfigureAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -20236,8 +20797,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/user"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -20260,8 +20821,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/token"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -20288,8 +20849,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/custom"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20320,8 +20881,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/full"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20352,8 +20913,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/object"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20384,8 +20945,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/login"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20417,8 +20978,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -20445,8 +21006,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/revoke"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20468,6 +21029,43 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (searchAuthSettingsRequest === null || searchAuthSettingsRequest === void 0) { + throw new RequiredError("AuthenticationApi", "searchAuthSettings", "searchAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/search"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(searchAuthSettingsRequest, "SearchAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -20482,8 +21080,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20507,6 +21105,62 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { } }; var AuthenticationApiResponseProcessor = class { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + configureAuthSettings(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -20980,6 +21634,67 @@ var AuthenticationApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + searchAuthSettings(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "SearchAuthSettingsResponse", + "" + ); + return body; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "SearchAuthSettingsResponse", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -21059,8 +21774,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21096,8 +21811,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21133,8 +21848,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21174,8 +21889,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/{collection_identifier}/update".replace("{collection_identifier}", encodeURIComponent(String(collectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21472,8 +22187,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21509,8 +22224,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21546,8 +22261,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21587,8 +22302,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/{configuration_identifier}/update".replace("{configuration_identifier}", encodeURIComponent(String(configurationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21864,8 +22579,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21901,8 +22616,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21938,8 +22653,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/delete".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -21966,8 +22681,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/download-connection-metadata-changes/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -21994,8 +22709,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/fetch-connection-diff-status/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -22026,8 +22741,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/revoke-refresh-tokens".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22063,8 +22778,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22104,8 +22819,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/resync-metadata".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22141,8 +22856,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22164,6 +22879,47 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (connectionIdentifier === null || connectionIdentifier === void 0) { + throw new RequiredError("ConnectionsApi", "updateConnectionStatus", "connectionIdentifier"); + } + if (updateConnectionStatusRequest === null || updateConnectionStatusRequest === void 0) { + throw new RequiredError("ConnectionsApi", "updateConnectionStatus", "updateConnectionStatusRequest"); + } + const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/status".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(updateConnectionStatusRequest, "UpdateConnectionStatusRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -22182,8 +22938,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/update".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22761,6 +23517,70 @@ var ConnectionsApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("404", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -22835,8 +23655,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22872,8 +23692,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/delete".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -22900,8 +23720,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22941,8 +23761,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/update".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23218,8 +24038,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23255,8 +24075,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/delete".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -23283,8 +24103,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/generate-csv"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23320,8 +24140,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23361,8 +24181,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/update".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23711,8 +24531,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -23788,8 +24608,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-sync-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -23850,8 +24670,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -23907,8 +24727,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -23935,8 +24755,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/{dbt_connection_identifier}/delete".replace("{dbt_connection_identifier}", encodeURIComponent(String(dbtConnectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -23973,8 +24793,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/update-dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -24419,8 +25239,8 @@ var DataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24456,8 +25276,8 @@ var DataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24493,8 +25313,8 @@ var DataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/searchdata"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24719,8 +25539,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24756,8 +25576,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/{template_identifier}/delete".replace("{template_identifier}", encodeURIComponent(String(templateIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -24784,8 +25604,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24821,8 +25641,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24858,8 +25678,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24891,8 +25711,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -25239,8 +26059,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25276,8 +26096,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/delete".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -25304,8 +26124,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25341,8 +26161,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25382,8 +26202,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/update".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25720,8 +26540,8 @@ var JobsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/jobs/history/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25824,8 +26644,8 @@ var LogApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/logs/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25928,8 +26748,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/worksheets/convert"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25965,8 +26785,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/copyobject"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26002,8 +26822,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26039,8 +26859,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26076,8 +26896,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export/batch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26113,8 +26933,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26150,8 +26970,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/status"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26187,8 +27007,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26224,8 +27044,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26261,8 +27081,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26298,8 +27118,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26335,8 +27155,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize-fields"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26372,8 +27192,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26409,8 +27229,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/unparameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26446,8 +27266,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/headers/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26483,8 +27303,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/update-obj-id"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27480,8 +28300,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27517,8 +28337,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/delete".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -27545,8 +28365,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27586,8 +28406,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/update".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27863,8 +28683,8 @@ var ReportsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/answer"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27900,8 +28720,8 @@ var ReportsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/liveboard"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28057,8 +28877,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28094,8 +28914,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/delete".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -28122,8 +28942,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28163,8 +28983,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/update".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28445,8 +29265,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28482,8 +29302,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/delete".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -28510,8 +29330,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28551,8 +29371,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/update".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28828,8 +29648,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28865,8 +29685,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28902,8 +29722,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-object-privileges"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28939,8 +29759,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/principals/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28976,8 +29796,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29013,8 +29833,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/manage-object-privilege"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29050,8 +29870,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/publish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29087,8 +29907,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/share"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29124,8 +29944,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/unpublish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29161,8 +29981,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29784,8 +30604,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29821,8 +30641,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29854,8 +30674,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -29878,8 +30698,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -29902,8 +30722,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-overrides"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -29930,8 +30750,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29967,8 +30787,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30004,8 +30824,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30041,8 +30861,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/communication-channels/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30618,8 +31438,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30655,8 +31475,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30692,8 +31512,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/delete".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -30720,8 +31540,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30757,8 +31577,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/unassign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30798,8 +31618,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/update".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31187,8 +32007,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/activate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31224,8 +32044,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31261,8 +32081,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31298,8 +32118,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/change-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31335,8 +32155,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/commit"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31358,6 +32178,43 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (configureAuthSettingsRequest === null || configureAuthSettingsRequest === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "configureAuthSettings", "configureAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/configure"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(configureAuthSettingsRequest, "ConfigureAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -31372,8 +32229,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31409,8 +32266,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31446,8 +32303,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31483,8 +32340,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/worksheets/convert"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31520,8 +32377,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/copyobject"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31557,8 +32414,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31594,8 +32451,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31631,8 +32488,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31668,8 +32525,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31705,8 +32562,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31742,8 +32599,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31779,8 +32636,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31816,8 +32673,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31853,8 +32710,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31890,8 +32747,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31927,8 +32784,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31964,8 +32821,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32001,8 +32858,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32038,8 +32895,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32075,8 +32932,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32112,8 +32969,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32149,8 +33006,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32198,8 +33055,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -32275,8 +33132,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-sync-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -32337,8 +33194,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -32394,8 +33251,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32422,8 +33279,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/deactivate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32459,8 +33316,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/delete".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32487,8 +33344,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32524,8 +33381,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32561,8 +33418,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32598,8 +33455,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32635,8 +33492,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/delete".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32663,8 +33520,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/delete".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32691,8 +33548,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/{dbt_connection_identifier}/delete".replace("{dbt_connection_identifier}", encodeURIComponent(String(dbtConnectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32719,8 +33576,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/{template_identifier}/delete".replace("{template_identifier}", encodeURIComponent(String(templateIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32747,8 +33604,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32784,8 +33641,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/delete".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32812,8 +33669,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32849,8 +33706,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/delete".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32877,8 +33734,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/delete".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32905,8 +33762,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/delete".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32933,8 +33790,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/delete".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32961,8 +33818,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/delete".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32989,8 +33846,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/delete".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33017,8 +33874,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33054,8 +33911,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33091,8 +33948,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/deploy"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33128,8 +33985,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/download-connection-metadata-changes/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33156,8 +34013,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/answer"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33193,8 +34050,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/liveboard"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33230,8 +34087,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33267,8 +34124,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export/batch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33304,8 +34161,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33341,8 +34198,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33378,8 +34235,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/status"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33415,8 +34272,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33452,8 +34309,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/fetch-connection-diff-status/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33480,8 +34337,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33517,8 +34374,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33554,8 +34411,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/logs/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33591,8 +34448,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-object-privileges"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33628,8 +34485,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/principals/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33665,8 +34522,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33702,8 +34559,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/force-logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33739,8 +34596,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/generate-csv"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33772,8 +34629,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/user"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33796,8 +34653,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/token"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33824,8 +34681,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/custom"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33856,8 +34713,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/data-source-suggestions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33893,8 +34750,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/full"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33925,8 +34782,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/get"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33962,8 +34819,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/object"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33994,8 +34851,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/relevant-questions/"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34027,8 +34884,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -34051,8 +34908,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -34075,8 +34932,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-overrides"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -34103,8 +34960,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34140,8 +34997,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34177,8 +35034,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34214,8 +35071,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34251,8 +35108,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/login"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34284,8 +35141,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -34312,8 +35169,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/manage-object-privilege"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34349,8 +35206,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34386,8 +35243,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize-fields"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34423,8 +35280,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/publish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34464,8 +35321,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update-values".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34501,8 +35358,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/analytical-questions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34538,8 +35395,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/reset-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34579,8 +35436,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/{commit_id}/revert".replace("{commit_id}", encodeURIComponent(String(commitId))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34620,8 +35477,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/revoke-refresh-tokens".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34657,8 +35514,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/revoke"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34680,6 +35537,43 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (searchAuthSettingsRequest === null || searchAuthSettingsRequest === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "searchAuthSettings", "searchAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/search"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(searchAuthSettingsRequest, "SearchAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -34694,8 +35588,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34731,8 +35625,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/jobs/history/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34768,8 +35662,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34805,8 +35699,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34842,8 +35736,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34879,8 +35773,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34916,8 +35810,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34953,8 +35847,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34990,8 +35884,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/searchdata"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35027,8 +35921,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35064,8 +35958,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35101,8 +35995,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35138,8 +36032,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35175,8 +36069,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35212,8 +36106,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35249,8 +36143,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35286,8 +36180,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35323,8 +36217,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35360,8 +36254,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35397,8 +36291,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35438,8 +36332,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35479,8 +36373,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send/stream".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35520,8 +36414,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35557,8 +36451,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/converse/sse"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35598,8 +36492,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35635,8 +36529,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/set"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35672,8 +36566,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/share"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35709,8 +36603,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/answer/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35732,6 +36626,34 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (conversationIdentifier === null || conversationIdentifier === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "stopConversation", "conversationIdentifier"); + } + const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -35750,8 +36672,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/resync-metadata".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35787,8 +36709,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/unassign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35824,8 +36746,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/unparameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35861,8 +36783,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/unpublish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35902,8 +36824,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/update".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35943,8 +36865,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/{collection_identifier}/update".replace("{collection_identifier}", encodeURIComponent(String(collectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35980,8 +36902,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36017,8 +36939,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36054,8 +36976,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36095,8 +37017,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/{configuration_identifier}/update".replace("{configuration_identifier}", encodeURIComponent(String(configurationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36118,6 +37040,47 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (connectionIdentifier === null || connectionIdentifier === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "updateConnectionStatus", "connectionIdentifier"); + } + if (updateConnectionStatusRequest === null || updateConnectionStatusRequest === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "updateConnectionStatus", "updateConnectionStatusRequest"); + } + const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/status".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(updateConnectionStatusRequest, "UpdateConnectionStatusRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -36136,8 +37099,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/update".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36177,8 +37140,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/update".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36224,8 +37187,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/update-dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -36303,8 +37266,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36340,8 +37303,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/headers/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36377,8 +37340,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/update-obj-id"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36418,8 +37381,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/update".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36459,8 +37422,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/update".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36500,8 +37463,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/update".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36537,8 +37500,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36578,8 +37541,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/update".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36619,8 +37582,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/update".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36660,8 +37623,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/update".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36701,8 +37664,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36738,8 +37701,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/update-values"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36779,8 +37742,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/{webhook_identifier}/update".replace("{webhook_identifier}", encodeURIComponent(String(webhookIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36816,8 +37779,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/communication-channels/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36849,8 +37812,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -36877,8 +37840,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36914,8 +37877,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -37116,14 +38079,75 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to changeUserPassword + * @params response Response returned by the server for a request to changeUserPassword + * @throws ApiException if the response code was not in [200, 299] + */ + changeUserPassword(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to commitBranch * @throws ApiException if the response code was not in [200, 299] */ - changeUserPassword(response) { + commitBranch(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "CommitResponse", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -37160,7 +38184,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "CommitResponse", "" ); return body; @@ -37172,19 +38196,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to commitBranch + * @params response Response returned by the server for a request to configureAuthSettings * @throws ApiException if the response code was not in [200, 299] */ - commitBranch(response) { + configureAuthSettings(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "CommitResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -37221,7 +38240,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "CommitResponse", + "void", "" ); return body; @@ -39775,7 +40794,236 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteUserGroup + * @throws ApiException if the response code was not in [200, 299] + */ + deleteUserGroup(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteVariable + * @throws ApiException if the response code was not in [200, 299] + */ + deleteVariable(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteVariables + * @throws ApiException if the response code was not in [200, 299] + */ + deleteVariables(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteWebhookConfigurations + * @throws ApiException if the response code was not in [200, 299] + */ + deleteWebhookConfigurations(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "WebhookDeleteResponse", + "" + ); + return body; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "WebhookDeleteResponse", "" ); return body; @@ -39787,14 +41035,19 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteUserGroup + * @params response Response returned by the server for a request to deployCommit * @throws ApiException if the response code was not in [200, 299] */ - deleteUserGroup(response) { + deployCommit(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "Array", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -39831,7 +41084,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "Array", "" ); return body; @@ -39843,20 +41096,21 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteVariable + * @params response Response returned by the server for a request to downloadConnectionMetadataChanges * @throws ApiException if the response code was not in [200, 299] */ - deleteVariable(response) { + downloadConnectionMetadataChanges(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = yield response.getBodyAsFile(); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39864,7 +41118,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39872,7 +41126,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39880,15 +41134,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", - "" + "HttpFile", + "binary" ); return body; } @@ -39899,20 +41153,21 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteVariables + * @params response Response returned by the server for a request to exportAnswerReport * @throws ApiException if the response code was not in [200, 299] */ - deleteVariables(response) { + exportAnswerReport(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = yield response.getBodyAsFile(); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39920,7 +41175,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39928,7 +41183,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39936,15 +41191,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", - "" + "HttpFile", + "binary" ); return body; } @@ -39955,25 +41210,21 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteWebhookConfigurations + * @params response Response returned by the server for a request to exportLiveboardReport * @throws ApiException if the response code was not in [200, 299] */ - deleteWebhookConfigurations(response) { + exportLiveboardReport(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "WebhookDeleteResponse", - "" - ); + const body = yield response.getBodyAsFile(); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39981,7 +41232,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39989,7 +41240,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39997,15 +41248,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "WebhookDeleteResponse", - "" + "HttpFile", + "binary" ); return body; } @@ -40016,16 +41267,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deployCommit + * @params response Response returned by the server for a request to exportMetadataTML * @throws ApiException if the response code was not in [200, 299] */ - deployCommit(response) { + exportMetadataTML(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -40065,7 +41316,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -40077,21 +41328,25 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to downloadConnectionMetadataChanges + * @params response Response returned by the server for a request to exportMetadataTMLBatched * @throws ApiException if the response code was not in [200, 299] */ - downloadConnectionMetadataChanges(response) { + exportMetadataTMLBatched(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = yield response.getBodyAsFile(); + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "any", + "" + ); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -40099,7 +41354,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -40107,7 +41362,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -40115,15 +41370,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "HttpFile", - "binary" + "any", + "" ); return body; } @@ -40134,21 +41389,25 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportAnswerReport + * @params response Response returned by the server for a request to fetchAnswerData * @throws ApiException if the response code was not in [200, 299] */ - exportAnswerReport(response) { + fetchAnswerData(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = yield response.getBodyAsFile(); + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "AnswerDataResponse", + "" + ); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -40156,7 +41415,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -40164,7 +41423,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -40172,15 +41431,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "HttpFile", - "binary" + "AnswerDataResponse", + "" ); return body; } @@ -40191,21 +41450,25 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportLiveboardReport + * @params response Response returned by the server for a request to fetchAnswerSqlQuery * @throws ApiException if the response code was not in [200, 299] */ - exportLiveboardReport(response) { + fetchAnswerSqlQuery(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = yield response.getBodyAsFile(); + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "SqlQueryResponse", + "" + ); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -40213,7 +41476,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -40221,7 +41484,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -40229,15 +41492,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "HttpFile", - "binary" + "SqlQueryResponse", + "" ); return body; } @@ -40248,16 +41511,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportMetadataTML + * @params response Response returned by the server for a request to fetchAsyncImportTaskStatus * @throws ApiException if the response code was not in [200, 299] */ - exportMetadataTML(response) { + fetchAsyncImportTaskStatus(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "GetAsyncImportStatusResponse", "" ); return body; @@ -40297,7 +41560,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "GetAsyncImportStatusResponse", "" ); return body; @@ -40309,16 +41572,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportMetadataTMLBatched + * @params response Response returned by the server for a request to fetchColumnSecurityRules * @throws ApiException if the response code was not in [200, 299] */ - exportMetadataTMLBatched(response) { + fetchColumnSecurityRules(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "Array", "" ); return body; @@ -40329,7 +41592,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Bad request - Table not found or invalid parameters", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40345,7 +41608,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden - User doesn't have permission to access security rules for this table", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40353,12 +41616,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Internal server error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "Array", "" ); return body; @@ -40370,16 +41633,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchAnswerData + * @params response Response returned by the server for a request to fetchConnectionDiffStatus * @throws ApiException if the response code was not in [200, 299] */ - fetchAnswerData(response) { + fetchConnectionDiffStatus(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AnswerDataResponse", + "FetchConnectionDiffStatusResponse", "" ); return body; @@ -40419,7 +41682,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AnswerDataResponse", + "FetchConnectionDiffStatusResponse", "" ); return body; @@ -40431,16 +41694,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchAnswerSqlQuery + * @params response Response returned by the server for a request to fetchLiveboardData * @throws ApiException if the response code was not in [200, 299] */ - fetchAnswerSqlQuery(response) { + fetchLiveboardData(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "LiveboardDataResponse", "" ); return body; @@ -40480,7 +41743,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "LiveboardDataResponse", "" ); return body; @@ -40492,16 +41755,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchAsyncImportTaskStatus + * @params response Response returned by the server for a request to fetchLiveboardSqlQuery * @throws ApiException if the response code was not in [200, 299] */ - fetchAsyncImportTaskStatus(response) { + fetchLiveboardSqlQuery(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetAsyncImportStatusResponse", + "SqlQueryResponse", "" ); return body; @@ -40541,7 +41804,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetAsyncImportStatusResponse", + "SqlQueryResponse", "" ); return body; @@ -40553,16 +41816,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchColumnSecurityRules + * @params response Response returned by the server for a request to fetchLogs * @throws ApiException if the response code was not in [200, 299] */ - fetchColumnSecurityRules(response) { + fetchLogs(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -40573,7 +41836,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Bad request - Table not found or invalid parameters", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40589,7 +41852,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden - User doesn't have permission to access security rules for this table", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40597,12 +41860,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Internal server error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -40614,16 +41877,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchConnectionDiffStatus + * @params response Response returned by the server for a request to fetchObjectPrivileges * @throws ApiException if the response code was not in [200, 299] */ - fetchConnectionDiffStatus(response) { + fetchObjectPrivileges(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "FetchConnectionDiffStatusResponse", + "ObjectPrivilegesOfMetadataResponse", "" ); return body; @@ -40663,7 +41926,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "FetchConnectionDiffStatusResponse", + "ObjectPrivilegesOfMetadataResponse", "" ); return body; @@ -40675,16 +41938,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchLiveboardData + * @params response Response returned by the server for a request to fetchPermissionsOfPrincipals * @throws ApiException if the response code was not in [200, 299] */ - fetchLiveboardData(response) { + fetchPermissionsOfPrincipals(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "LiveboardDataResponse", + "PermissionOfPrincipalsResponse", "" ); return body; @@ -40724,7 +41987,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "LiveboardDataResponse", + "PermissionOfPrincipalsResponse", "" ); return body; @@ -40736,16 +41999,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchLiveboardSqlQuery + * @params response Response returned by the server for a request to fetchPermissionsOnMetadata * @throws ApiException if the response code was not in [200, 299] */ - fetchLiveboardSqlQuery(response) { + fetchPermissionsOnMetadata(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "PermissionOfMetadataResponse", "" ); return body; @@ -40785,7 +42048,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "PermissionOfMetadataResponse", "" ); return body; @@ -40797,19 +42060,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchLogs + * @params response Response returned by the server for a request to forceLogoutUsers * @throws ApiException if the response code was not in [200, 299] */ - fetchLogs(response) { + forceLogoutUsers(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40846,7 +42104,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "void", "" ); return body; @@ -40858,16 +42116,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchObjectPrivileges + * @params response Response returned by the server for a request to generateCSV * @throws ApiException if the response code was not in [200, 299] */ - fetchObjectPrivileges(response) { + generateCSV(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ObjectPrivilegesOfMetadataResponse", + "any", "" ); return body; @@ -40907,7 +42165,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ObjectPrivilegesOfMetadataResponse", + "any", "" ); return body; @@ -40919,16 +42177,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchPermissionsOfPrincipals + * @params response Response returned by the server for a request to getCurrentUserInfo * @throws ApiException if the response code was not in [200, 299] */ - fetchPermissionsOfPrincipals(response) { + getCurrentUserInfo(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfPrincipalsResponse", + "User", "" ); return body; @@ -40968,7 +42226,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfPrincipalsResponse", + "User", "" ); return body; @@ -40980,16 +42238,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchPermissionsOnMetadata + * @params response Response returned by the server for a request to getCurrentUserToken * @throws ApiException if the response code was not in [200, 299] */ - fetchPermissionsOnMetadata(response) { + getCurrentUserToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfMetadataResponse", + "GetTokenResponse", "" ); return body; @@ -41029,7 +42287,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfMetadataResponse", + "GetTokenResponse", "" ); return body; @@ -41041,14 +42299,19 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to forceLogoutUsers + * @params response Response returned by the server for a request to getCustomAccessToken * @throws ApiException if the response code was not in [200, 299] */ - forceLogoutUsers(response) { + getCustomAccessToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "AccessToken", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41056,7 +42319,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request. This could be due to missing or incorrect parameters.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41064,7 +42327,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access. The request could not be authenticated.", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41072,7 +42335,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access. The user does not have permission to access this resource.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41080,12 +42343,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "An unexpected error occurred on the server.", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "AccessToken", "" ); return body; @@ -41097,16 +42360,24 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to generateCSV + * @params response Response returned by the server for a request to getDataSourceSuggestions * @throws ApiException if the response code was not in [200, 299] */ - generateCSV(response) { + getDataSourceSuggestions(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "EurekaDataSourceSuggestionResponse", + "" + ); + return body; + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "EurekaDataSourceSuggestionResponse", "" ); return body; @@ -41117,7 +42388,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41141,12 +42412,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "EurekaDataSourceSuggestionResponse", "" ); return body; @@ -41158,16 +42429,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getCurrentUserInfo + * @params response Response returned by the server for a request to getFullAccessToken * @throws ApiException if the response code was not in [200, 299] */ - getCurrentUserInfo(response) { + getFullAccessToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "User", + "Token", "" ); return body; @@ -41207,7 +42478,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "User", + "Token", "" ); return body; @@ -41219,16 +42490,24 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getCurrentUserToken + * @params response Response returned by the server for a request to getNLInstructions * @throws ApiException if the response code was not in [200, 299] */ - getCurrentUserToken(response) { + getNLInstructions(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetTokenResponse", + "EurekaGetNLInstructionsResponse", + "" + ); + return body; + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "EurekaGetNLInstructionsResponse", "" ); return body; @@ -41239,7 +42518,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41263,12 +42542,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetTokenResponse", + "EurekaGetNLInstructionsResponse", "" ); return body; @@ -41280,16 +42559,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getCustomAccessToken + * @params response Response returned by the server for a request to getObjectAccessToken * @throws ApiException if the response code was not in [200, 299] */ - getCustomAccessToken(response) { + getObjectAccessToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AccessToken", + "Token", "" ); return body; @@ -41300,7 +42579,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request. This could be due to missing or incorrect parameters.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41308,7 +42587,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access. The request could not be authenticated.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41316,7 +42595,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access. The user does not have permission to access this resource.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41324,12 +42603,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "An unexpected error occurred on the server.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AccessToken", + "Token", "" ); return body; @@ -41341,16 +42620,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getDataSourceSuggestions + * @params response Response returned by the server for a request to getRelevantQuestions * @throws ApiException if the response code was not in [200, 299] */ - getDataSourceSuggestions(response) { + getRelevantQuestions(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDataSourceSuggestionResponse", + "EurekaGetRelevantQuestionsResponse", "" ); return body; @@ -41358,7 +42637,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (isCodeInRange("201", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDataSourceSuggestionResponse", + "EurekaGetRelevantQuestionsResponse", "" ); return body; @@ -41398,7 +42677,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDataSourceSuggestionResponse", + "EurekaGetRelevantQuestionsResponse", "" ); return body; @@ -41410,16 +42689,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getFullAccessToken + * @params response Response returned by the server for a request to getSystemConfig * @throws ApiException if the response code was not in [200, 299] */ - getFullAccessToken(response) { + getSystemConfig(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemConfig", "" ); return body; @@ -41459,7 +42738,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemConfig", "" ); return body; @@ -41471,24 +42750,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getNLInstructions + * @params response Response returned by the server for a request to getSystemInformation * @throws ApiException if the response code was not in [200, 299] */ - getNLInstructions(response) { + getSystemInformation(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetNLInstructionsResponse", - "" - ); - return body; - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetNLInstructionsResponse", + "SystemInfo", "" ); return body; @@ -41499,7 +42770,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41523,12 +42794,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetNLInstructionsResponse", + "SystemInfo", "" ); return body; @@ -41540,16 +42811,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getObjectAccessToken + * @params response Response returned by the server for a request to getSystemOverrideInfo * @throws ApiException if the response code was not in [200, 299] */ - getObjectAccessToken(response) { + getSystemOverrideInfo(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemOverrideInfo", "" ); return body; @@ -41589,7 +42860,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemOverrideInfo", "" ); return body; @@ -41601,24 +42872,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getRelevantQuestions + * @params response Response returned by the server for a request to importMetadataTML * @throws ApiException if the response code was not in [200, 299] */ - getRelevantQuestions(response) { + importMetadataTML(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetRelevantQuestionsResponse", - "" - ); - return body; - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetRelevantQuestionsResponse", + "Array", "" ); return body; @@ -41629,7 +42892,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41653,12 +42916,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetRelevantQuestionsResponse", + "Array", "" ); return body; @@ -41670,16 +42933,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getSystemConfig + * @params response Response returned by the server for a request to importMetadataTMLAsync * @throws ApiException if the response code was not in [200, 299] */ - getSystemConfig(response) { + importMetadataTMLAsync(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemConfig", + "ImportEPackAsyncTaskStatus", "" ); return body; @@ -41719,7 +42982,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemConfig", + "ImportEPackAsyncTaskStatus", "" ); return body; @@ -41731,16 +42994,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getSystemInformation + * @params response Response returned by the server for a request to importUserGroups * @throws ApiException if the response code was not in [200, 299] */ - getSystemInformation(response) { + importUserGroups(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemInfo", + "ImportUserGroupsResponse", "" ); return body; @@ -41780,7 +43043,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemInfo", + "ImportUserGroupsResponse", "" ); return body; @@ -41792,16 +43055,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getSystemOverrideInfo + * @params response Response returned by the server for a request to importUsers * @throws ApiException if the response code was not in [200, 299] */ - getSystemOverrideInfo(response) { + importUsers(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemOverrideInfo", + "ImportUsersResponse", "" ); return body; @@ -41841,7 +43104,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemOverrideInfo", + "ImportUsersResponse", "" ); return body; @@ -41853,19 +43116,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importMetadataTML + * @params response Response returned by the server for a request to login * @throws ApiException if the response code was not in [200, 299] */ - importMetadataTML(response) { + login(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41902,7 +43160,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "void", "" ); return body; @@ -41914,19 +43172,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importMetadataTMLAsync + * @params response Response returned by the server for a request to logout * @throws ApiException if the response code was not in [200, 299] */ - importMetadataTMLAsync(response) { + logout(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportEPackAsyncTaskStatus", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41963,7 +43216,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportEPackAsyncTaskStatus", + "void", "" ); return body; @@ -41975,19 +43228,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importUserGroups + * @params response Response returned by the server for a request to manageObjectPrivilege * @throws ApiException if the response code was not in [200, 299] */ - importUserGroups(response) { + manageObjectPrivilege(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUserGroupsResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41995,7 +43243,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42003,7 +43251,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42011,7 +43259,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42024,7 +43272,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUserGroupsResponse", + "void", "" ); return body; @@ -42036,19 +43284,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importUsers + * @params response Response returned by the server for a request to parameterizeMetadata * @throws ApiException if the response code was not in [200, 299] */ - importUsers(response) { + parameterizeMetadata(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUsersResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42085,7 +43328,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUsersResponse", + "void", "" ); return body; @@ -42097,10 +43340,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to login + * @params response Response returned by the server for a request to parameterizeMetadataFields * @throws ApiException if the response code was not in [200, 299] */ - login(response) { + parameterizeMetadataFields(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -42153,10 +43396,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to logout + * @params response Response returned by the server for a request to publishMetadata * @throws ApiException if the response code was not in [200, 299] */ - logout(response) { + publishMetadata(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -42209,10 +43452,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to manageObjectPrivilege + * @params response Response returned by the server for a request to putVariableValues * @throws ApiException if the response code was not in [200, 299] */ - manageObjectPrivilege(response) { + putVariableValues(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -42224,7 +43467,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42232,7 +43475,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42240,7 +43483,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42265,78 +43508,35 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to parameterizeMetadata + * @params response Response returned by the server for a request to queryGetDecomposedQuery * @throws ApiException if the response code was not in [200, 299] */ - parameterizeMetadata(response) { + queryGetDecomposedQuery(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } - if (isCodeInRange("400", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); - } - if (isCodeInRange("401", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); - } - if (isCodeInRange("403", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); - } - if (isCodeInRange("500", response.httpStatusCode)) { + if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", + "EurekaDecomposeQueryResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + return body; } - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + if (isCodeInRange("201", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "EurekaDecomposeQueryResponse", "" ); return body; } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); - }); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to parameterizeMetadataFields - * @throws ApiException if the response code was not in [200, 299] - */ - parameterizeMetadataFields(response) { - return __async(this, null, function* () { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42360,12 +43560,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "EurekaDecomposeQueryResponse", "" ); return body; @@ -42377,10 +43577,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to publishMetadata + * @params response Response returned by the server for a request to resetUserPassword * @throws ApiException if the response code was not in [200, 299] */ - publishMetadata(response) { + resetUserPassword(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -42433,14 +43633,19 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to putVariableValues + * @params response Response returned by the server for a request to revertCommit * @throws ApiException if the response code was not in [200, 299] */ - putVariableValues(response) { + revertCommit(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "RevertResponse", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42477,7 +43682,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "RevertResponse", "" ); return body; @@ -42489,24 +43694,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to queryGetDecomposedQuery + * @params response Response returned by the server for a request to revokeRefreshTokens * @throws ApiException if the response code was not in [200, 299] */ - queryGetDecomposedQuery(response) { + revokeRefreshTokens(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDecomposeQueryResponse", - "" - ); - return body; - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDecomposeQueryResponse", + "RevokeRefreshTokensResponse", "" ); return body; @@ -42517,7 +43714,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42535,61 +43732,21 @@ var ThoughtSpotRestApiResponseProcessor = class { ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } - if (isCodeInRange("500", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); - } - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDecomposeQueryResponse", - "" - ); - return body; - } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); - }); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to resetUserPassword - * @throws ApiException if the response code was not in [200, 299] - */ - resetUserPassword(response) { - return __async(this, null, function* () { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } - if (isCodeInRange("400", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); - } - if (isCodeInRange("401", response.httpStatusCode)) { + if (isCodeInRange("404", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); } - if (isCodeInRange("403", response.httpStatusCode)) { + if (isCodeInRange("409", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Conflict", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42602,7 +43759,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "RevokeRefreshTokensResponse", "" ); return body; @@ -42614,19 +43771,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to revertCommit + * @params response Response returned by the server for a request to revokeToken * @throws ApiException if the response code was not in [200, 299] */ - revertCommit(response) { + revokeToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "RevertResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42663,7 +43815,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "RevertResponse", + "void", "" ); return body; @@ -42675,16 +43827,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to revokeRefreshTokens + * @params response Response returned by the server for a request to searchAuthSettings * @throws ApiException if the response code was not in [200, 299] */ - revokeRefreshTokens(response) { + searchAuthSettings(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "RevokeRefreshTokensResponse", + "SearchAuthSettingsResponse", "" ); return body; @@ -42713,78 +43865,6 @@ var ThoughtSpotRestApiResponseProcessor = class { ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } - if (isCodeInRange("404", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); - } - if (isCodeInRange("409", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Conflict", body, response.headers); - } - if (isCodeInRange("500", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); - } - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "RevokeRefreshTokensResponse", - "" - ); - return body; - } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); - }); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to revokeToken - * @throws ApiException if the response code was not in [200, 299] - */ - revokeToken(response) { - return __async(this, null, function* () { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } - if (isCodeInRange("400", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); - } - if (isCodeInRange("401", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); - } - if (isCodeInRange("403", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); - } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), @@ -42796,7 +43876,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "SearchAuthSettingsResponse", "" ); return body; @@ -44555,6 +45635,62 @@ var ThoughtSpotRestApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -45141,6 +46277,70 @@ var ThoughtSpotRestApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("404", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -46296,8 +47496,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/activate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46333,8 +47533,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/change-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46370,8 +47570,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46407,8 +47607,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/deactivate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46444,8 +47644,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/delete".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -46472,8 +47672,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/force-logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46509,8 +47709,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46546,8 +47746,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/reset-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46583,8 +47783,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46624,8 +47824,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/update".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47252,8 +48452,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47289,8 +48489,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/delete".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -47317,8 +48517,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47358,8 +48558,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update-values".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47395,8 +48595,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47436,8 +48636,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47473,8 +48673,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/update-values"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47918,8 +49118,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/commit"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47955,8 +49155,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47992,8 +49192,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48029,8 +49229,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/deploy"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48070,8 +49270,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/{commit_id}/revert".replace("{commit_id}", encodeURIComponent(String(commitId))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48107,8 +49307,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48144,8 +49344,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48181,8 +49381,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48218,8 +49418,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48805,8 +50005,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48842,8 +50042,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48879,8 +50079,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48920,8 +50120,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/{webhook_identifier}/update".replace("{webhook_identifier}", encodeURIComponent(String(webhookIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -49431,6 +50631,24 @@ var ObservableAIApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.singleAnswer(rsp))); })); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const requestContextPromise = this.requestFactory.stopConversation(conversationIdentifier, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.stopConversation(rsp))); + })); + } }; var ObservableAuthenticationApi = class { constructor(configuration, requestFactory, responseProcessor) { @@ -49438,6 +50656,24 @@ var ObservableAuthenticationApi = class { this.requestFactory = requestFactory || new AuthenticationApiRequestFactory(configuration); this.responseProcessor = responseProcessor || new AuthenticationApiResponseProcessor(); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.configureAuthSettings(configureAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.configureAuthSettings(rsp))); + })); + } /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -49579,6 +50815,24 @@ var ObservableAuthenticationApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.revokeToken(rsp))); })); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.searchAuthSettings(searchAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.searchAuthSettings(rsp))); + })); + } /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -49928,6 +51182,25 @@ var ObservableConnectionsApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnection(rsp))); })); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const requestContextPromise = this.requestFactory.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnectionStatus(rsp))); + })); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -51730,6 +53003,24 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.commitBranch(rsp))); })); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.configureAuthSettings(configureAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.configureAuthSettings(rsp))); + })); + } /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -53414,6 +54705,24 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.revokeToken(rsp))); })); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.searchAuthSettings(searchAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.searchAuthSettings(rsp))); + })); + } /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -53922,6 +55231,24 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.singleAnswer(rsp))); })); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const requestContextPromise = this.requestFactory.stopConversation(conversationIdentifier, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.stopConversation(rsp))); + })); + } /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -54106,6 +55433,25 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnectionConfiguration(rsp))); })); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const requestContextPromise = this.requestFactory.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnectionStatus(rsp))); + })); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -55173,11 +56519,27 @@ var PromiseAIApi = class { const result = this.api.singleAnswer(singleAnswerRequest, _options); return result.toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const result = this.api.stopConversation(conversationIdentifier, _options); + return result.toPromise(); + } }; var PromiseAuthenticationApi = class { constructor(configuration, requestFactory, responseProcessor) { this.api = new ObservableAuthenticationApi(configuration, requestFactory, responseProcessor); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const result = this.api.configureAuthSettings(configureAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -55239,6 +56601,14 @@ var PromiseAuthenticationApi = class { const result = this.api.revokeToken(revokeTokenRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const result = this.api.searchAuthSettings(searchAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -55402,6 +56772,15 @@ var PromiseConnectionsApi = class { const result = this.api.updateConnection(updateConnectionRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const result = this.api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + return result.toPromise(); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -56250,6 +57629,14 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.commitBranch(commitBranchRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const result = this.api.configureAuthSettings(configureAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -57004,6 +58391,14 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.revokeToken(revokeTokenRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const result = this.api.searchAuthSettings(searchAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -57232,6 +58627,14 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.singleAnswer(singleAnswerRequest, _options); return result.toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const result = this.api.stopConversation(conversationIdentifier, _options); + return result.toPromise(); + } /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -57316,6 +58719,15 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.updateConnectionConfiguration(configurationIdentifier, updateConnectionConfigurationRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const result = this.api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + return result.toPromise(); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -57854,11 +59266,18 @@ var createBasicConfig = (thoughtSpotHost, options) => { AgentConversation, AnswerContent, AnswerDataResponse, + AnswerPngOptionsInput, ApiException, AssignChangeAuthorRequest, AssignTagRequest, AssociateMetadataInput, AssociateMetadataInputCreate, + AuthClusterPreferences, + AuthClusterPreferencesInput, + AuthOrgInfo, + AuthOrgPreference, + AuthOrgPreferenceInput, + AuthSettingsAccessToken, Authentication, AuthenticationApi, AuthenticationInput, @@ -57906,6 +59325,8 @@ var createBasicConfig = (thoughtSpotHost, options) => { CommiterType, CommunicationChannelPreferencesResponse, CommunicationChannelValidateResponse, + ConfigureAuthSettingsRequest, + ConfigureAuthSettingsRequestClusterPreferences, ConfigureCommunicationChannelPreferencesRequest, ConfigureSecuritySettingsRequest, ConfigureSecuritySettingsRequestClusterPreferences, @@ -57998,6 +59419,7 @@ var createBasicConfig = (thoughtSpotHost, options) => { EventChannelConfigInput, ExcludeMetadataListItemInput, ExportAnswerReportRequest, + ExportAnswerReportRequestPngOptions, ExportAnswerReportRequestRegionalSettings, ExportLiveboardReportRequest, ExportLiveboardReportRequestPdfOptions, @@ -58168,6 +59590,8 @@ var createBasicConfig = (thoughtSpotHost, options) => { Scope, ScriptSrcUrls, ScriptSrcUrlsInput, + SearchAuthSettingsRequest, + SearchAuthSettingsResponse, SearchCalendarsRequest, SearchCalendarsRequestSortOptions, SearchChannelHistoryRequest, @@ -58260,6 +59684,7 @@ var createBasicConfig = (thoughtSpotHost, options) => { UpdateConfigRequest, UpdateConnectionConfigurationRequest, UpdateConnectionRequest, + UpdateConnectionStatusRequest, UpdateConnectionV2Request, UpdateCustomActionRequest, UpdateCustomActionRequestActionDetails, @@ -58297,6 +59722,7 @@ var createBasicConfig = (thoughtSpotHost, options) => { Variable, VariableApi, VariableDetailInput, + VariableOrgInfo, VariablePutAssignmentInput, VariableUpdateAssignmentInput, VariableUpdateScopeInput, diff --git a/sdks/typescript/dist/index.d.cts b/sdks/typescript/dist/index.d.cts index 0dc944ed5..e8883f81f 100644 --- a/sdks/typescript/dist/index.d.cts +++ b/sdks/typescript/dist/index.d.cts @@ -1289,6 +1289,46 @@ declare class AnswerDataResponse { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class AnswerPngOptionsInput { + /** + * Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or later + */ + 'x_resolution'?: number | null; + /** + * Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl or later + */ + 'y_resolution'?: number | null; + /** + * The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later + */ + 'scaling'?: number | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -1405,7 +1445,7 @@ declare class TagMetadataTypeInput { }[]; constructor(); } -type TagMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type TagMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -1522,6 +1562,239 @@ declare class AssociateMetadataInputCreate { } type AssociateMetadataInputCreateTypeEnum = "VISUALIZATION" | "ANSWER" | "WORKSHEET"; +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* An auth settings access token. +*/ +declare class AuthSettingsAccessToken { + /** + * The plaintext token key value. + */ + 'key': string; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** +* Cluster-level authentication preferences. +*/ +declare class AuthClusterPreferences { + /** + * Whether authentication is enabled or disabled at the cluster level. + */ + 'auth_status'?: AuthClusterPreferencesAuthStatusEnum | null; + /** + * Cluster-level access tokens. Absent when no token is configured. + */ + 'access_tokens'?: Array | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthClusterPreferencesAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Input for cluster-level auth configuration. +*/ +declare class AuthClusterPreferencesInput { + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: AuthClusterPreferencesInputAuthStatusEnum | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthClusterPreferencesInputAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Org identifier returned in auth settings search results. +*/ +declare class AuthOrgInfo { + /** + * Unique identifier of the org. + */ + 'id': number; + /** + * Name of the org. + */ + 'name'?: string | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** +* Org-level authentication preferences for a single org. +*/ +declare class AuthOrgPreference { + 'org'?: AuthOrgInfo; + /** + * Whether authentication is enabled or disabled for this org. + */ + 'auth_status'?: AuthOrgPreferenceAuthStatusEnum | null; + /** + * Org-level access tokens. Absent when no token is configured or the feature flag is off. + */ + 'access_tokens'?: Array | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthOrgPreferenceAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Input for org-level auth configuration. +*/ +declare class AuthOrgPreferenceInput { + /** + * Unique ID or name of the org to configure. + */ + 'org_identifier': string; + /** + * Enable or disable authentication for this org. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: AuthOrgPreferenceInputAuthStatusEnum | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthOrgPreferenceInputAuthStatusEnum = "ENABLED" | "DISABLED"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -3361,6 +3634,81 @@ type CommunicationChannelValidateResponseChannelTypeEnum = "WEBHOOK"; type CommunicationChannelValidateResponseEventTypeEnum = "LIVEBOARD_SCHEDULE"; type CommunicationChannelValidateResponseResultCodeEnum = "SUCCESS" | "FAILED" | "PARTIAL_SUCCESS"; +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Cluster-level authentication preferences. Omit to leave the existing cluster setting unchanged. +*/ +declare class ConfigureAuthSettingsRequestClusterPreferences { + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +declare class ConfigureAuthSettingsRequest { + /** + * Type of authentication mechanism to configure. Currently supports TRUSTED_AUTH. + */ + 'auth_type': ConfigureAuthSettingsRequestAuthTypeEnum; + 'cluster_preferences'?: ConfigureAuthSettingsRequestClusterPreferences; + /** + * Org-level authentication preferences. Each entry identifies an org and the desired status. Omit to leave existing org settings unchanged. + */ + 'org_preferences'?: Array; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type ConfigureAuthSettingsRequestAuthTypeEnum = "TRUSTED_AUTH"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -3839,7 +4187,7 @@ declare class ConnectionConfigurationResponse { constructor(); } type ConnectionConfigurationResponsePolicyProcessesEnum = "SAGE_INDEXING" | "ROW_COUNT_STATS"; -type ConnectionConfigurationResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type ConnectionConfigurationResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; type ConnectionConfigurationResponsePolicyTypeEnum = "NO_POLICY" | "PRINCIPALS" | "PROCESSES"; /** @@ -4690,7 +5038,7 @@ declare class CreateConnectionRequest { }[]; constructor(); } -type CreateConnectionRequestDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type CreateConnectionRequestDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; /** * ThoughtSpot Public REST API @@ -4735,7 +5083,7 @@ declare class CreateConnectionResponse { }[]; constructor(); } -type CreateConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type CreateConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; /** * ThoughtSpot Public REST API @@ -5213,7 +5561,7 @@ declare class CreateRoleRequest { }[]; constructor(); } -type CreateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type CreateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; /** * ThoughtSpot Public REST API @@ -5404,7 +5752,7 @@ declare class CreateScheduleRequestPdfOptions { }[]; constructor(); } -type CreateScheduleRequestPdfOptionsPageSizeEnum = "A4"; +type CreateScheduleRequestPdfOptionsPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -5649,7 +5997,7 @@ declare class CreateUserGroupRequest { }[]; constructor(); } -type CreateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type CreateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type CreateUserGroupRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type CreateUserGroupRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; @@ -7527,9 +7875,42 @@ declare class EurekaRelevantQuestion { */ 'data_source_identifier'?: string | null; /** - * Display name of the data source on which this query can be run on. + * Display name of the data source on which this query can be run on. + */ + 'data_source_name'?: string | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +declare class EurekaGetRelevantQuestionsResponse { + /** + * List of relevant questions that can be run on their respective data sources. */ - 'data_source_name'?: string | null; + 'relevant_questions'?: Array | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7557,12 +7938,11 @@ declare class EurekaRelevantQuestion { * https://openapi-generator.tech * Do not edit the class manually. */ - -declare class EurekaGetRelevantQuestionsResponse { +declare class EurekaSetNLInstructionsResponse { /** - * List of relevant questions that can be run on their respective data sources. + * Success status of the operation. */ - 'relevant_questions'?: Array | null; + 'success': boolean; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7590,11 +7970,15 @@ declare class EurekaGetRelevantQuestionsResponse { * https://openapi-generator.tech * Do not edit the class manually. */ -declare class EurekaSetNLInstructionsResponse { +declare class ExcludeMetadataListItemInput { /** - * Success status of the operation. + * Unique ID or name of the metadata. */ - 'success': boolean; + 'identifier': string; + /** + * Type of metadata. Required if the name of the object is set as identifier. This attribute is optional when the object GUID is specified as identifier. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view 4. LOGICAL_COLUMN for a column of any data object such as table, worksheet or view 5. CONNECTION for connection objects 6. TAG for tag objects 7. USER for user objects 8. USER_GROUP for group objects 9. LOGICAL_RELATIONSHIP for table or worksheet joins. A join combines from one or several data object by using matching values. 10. INSIGHT_SPEC for SpotIQ objects + */ + 'type': ExcludeMetadataListItemInputTypeEnum; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7610,6 +7994,7 @@ declare class EurekaSetNLInstructionsResponse { }[]; constructor(); } +type ExcludeMetadataListItemInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "TAG" | "USER" | "USER_GROUP" | "LOGICAL_RELATIONSHIP" | "INSIGHT_SPEC"; /** * ThoughtSpot Public REST API @@ -7622,15 +8007,22 @@ declare class EurekaSetNLInstructionsResponse { * https://openapi-generator.tech * Do not edit the class manually. */ -declare class ExcludeMetadataListItemInput { +/** +* Options for PNG export. Version: 26.6.0.cl or later +*/ +declare class ExportAnswerReportRequestPngOptions { /** - * Unique ID or name of the metadata. + * Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or later */ - 'identifier': string; + 'x_resolution'?: number | null; /** - * Type of metadata. Required if the name of the object is set as identifier. This attribute is optional when the object GUID is specified as identifier. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view 4. LOGICAL_COLUMN for a column of any data object such as table, worksheet or view 5. CONNECTION for connection objects 6. TAG for tag objects 7. USER for user objects 8. USER_GROUP for group objects 9. LOGICAL_RELATIONSHIP for table or worksheet joins. A join combines from one or several data object by using matching values. 10. INSIGHT_SPEC for SpotIQ objects + * Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl or later */ - 'type': ExcludeMetadataListItemInputTypeEnum; + 'y_resolution'?: number | null; + /** + * The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later + */ + 'scaling'?: number | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7646,7 +8038,6 @@ declare class ExcludeMetadataListItemInput { }[]; constructor(); } -type ExcludeMetadataListItemInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "TAG" | "USER" | "USER_GROUP" | "LOGICAL_RELATIONSHIP" | "INSIGHT_SPEC"; /** * ThoughtSpot Public REST API @@ -7741,6 +8132,15 @@ declare class ExportAnswerReportRequest { */ 'runtime_param_override'?: any; 'regional_settings'?: ExportAnswerReportRequestRegionalSettings; + 'png_options'?: ExportAnswerReportRequestPngOptions; + /** + * GUID or name of the personalised view of the Answer object. Version: 26.6.0.cl or later + */ + 'personalised_view_identifier'?: string; + /** + * Type of the answer being exported. Version: 26.6.0.cl or later + */ + 'type'?: ExportAnswerReportRequestTypeEnum; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7757,6 +8157,7 @@ declare class ExportAnswerReportRequest { constructor(); } type ExportAnswerReportRequestFileFormatEnum = "CSV" | "PDF" | "XLSX" | "PNG"; +type ExportAnswerReportRequestTypeEnum = "SAVED" | "PINNED"; /** * ThoughtSpot Public REST API @@ -8865,7 +9266,7 @@ declare class PermissionsMetadataTypeInput { }[]; constructor(); } -type PermissionsMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type PermissionsMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -8915,7 +9316,7 @@ declare class FetchPermissionsOfPrincipalsRequest { }[]; constructor(); } -type FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum = "ALL" | "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum = "ALL" | "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -10209,7 +10610,7 @@ declare class GroupsImportListInput { }[]; constructor(); } -type GroupsImportListInputPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type GroupsImportListInputPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type GroupsImportListInputTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type GroupsImportListInputVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; @@ -12009,7 +12410,7 @@ declare class PdfOptions { }[]; constructor(); } -type PdfOptionsPageSizeEnum = "A4"; +type PdfOptionsPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -13858,7 +14259,7 @@ declare class RoleResponse { }[]; constructor(); } -type RoleResponsePrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type RoleResponsePrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type RoleResponsePermissionEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; /** @@ -14072,7 +14473,7 @@ declare class SchedulesPdfOptionsInput { }[]; constructor(); } -type SchedulesPdfOptionsInputPageSizeEnum = "A4"; +type SchedulesPdfOptionsInputPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -14114,6 +14515,86 @@ declare class Scope { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class SearchAuthSettingsRequest { + /** + * Type of authentication mechanism to retrieve settings for. Currently supports TRUSTED_AUTH. + */ + 'auth_type': SearchAuthSettingsRequestAuthTypeEnum; + /** + * Scope of auth settings to retrieve. When absent, both cluster and org settings are returned (subject to caller privileges). Set to CLUSTER to retrieve only cluster-level settings, or ORG to retrieve only org-level settings. + */ + 'scope'?: SearchAuthSettingsRequestScopeEnum; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type SearchAuthSettingsRequestAuthTypeEnum = "TRUSTED_AUTH"; +type SearchAuthSettingsRequestScopeEnum = "CLUSTER" | "ORG"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** +* Response for searchAuthSettings. Contains auth type and cluster/org-level preferences. +*/ +declare class SearchAuthSettingsResponse { + /** + * Type of authentication mechanism returned. + */ + 'auth_type'?: SearchAuthSettingsResponseAuthTypeEnum | null; + 'cluster_preferences'?: AuthClusterPreferences; + /** + * Org-level authentication configurations. Present when org scope was requested and per-org auth feature is enabled. + */ + 'org_preferences'?: Array | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type SearchAuthSettingsResponseAuthTypeEnum = "TRUSTED_AUTH"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -14616,7 +15097,7 @@ declare class SearchConnectionRequest { }[]; constructor(); } -type SearchConnectionRequestDataWarehouseTypesEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type SearchConnectionRequestDataWarehouseTypesEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; type SearchConnectionRequestDataWarehouseObjectTypeEnum = "DATABASE" | "SCHEMA" | "TABLE" | "COLUMN"; type SearchConnectionRequestAuthenticationTypeEnum = "SERVICE_ACCOUNT" | "OAUTH" | "IAM" | "EXTOAUTH" | "OAUTH_WITH_SERVICE_PRINCIPAL" | "PERSONAL_ACCESS_TOKEN" | "KEY_PAIR" | "OAUTH_WITH_PKCE" | "EXTOAUTH_WITH_PKCE" | "OAUTH_WITH_PEZ" | "OAUTH_CLIENT_CREDENTIALS"; @@ -14669,7 +15150,7 @@ declare class SearchConnectionResponse { }[]; constructor(); } -type SearchConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type SearchConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; /** * ThoughtSpot Public REST API @@ -15248,7 +15729,7 @@ declare class SearchRoleResponse { }[]; constructor(); } -type SearchRoleResponsePrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchRoleResponsePrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchRoleResponsePermissionEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; /** @@ -15310,7 +15791,7 @@ declare class SearchRolesRequest { }[]; constructor(); } -type SearchRolesRequestPrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchRolesRequestPrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchRolesRequestPermissionsEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; /** @@ -15649,7 +16130,7 @@ declare class SearchUserGroupsRequest { }[]; constructor(); } -type SearchUserGroupsRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchUserGroupsRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchUserGroupsRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type SearchUserGroupsRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; @@ -15763,7 +16244,7 @@ declare class SearchUsersRequest { constructor(); } type SearchUsersRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; -type SearchUsersRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchUsersRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchUsersRequestAccountTypeEnum = "LOCAL_USER" | "LDAP_USER" | "SAML_USER" | "OIDC_USER" | "REMOTE_USER"; type SearchUsersRequestAccountStatusEnum = "ACTIVE" | "INACTIVE" | "EXPIRED" | "LOCKED" | "PENDING" | "SUSPENDED"; @@ -16031,6 +16512,10 @@ declare class SecuritySettingsClusterPreferences { */ 'saml_redirect_urls'?: Array | null; 'non_embed_access'?: ClusterNonEmbedAccess; + /** + * Trusted authentication status at the cluster level. Version: 26.6.0.cl or later + */ + 'trusted_auth_status'?: SecuritySettingsClusterPreferencesTrustedAuthStatusEnum | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -16046,6 +16531,7 @@ declare class SecuritySettingsClusterPreferences { }[]; constructor(); } +type SecuritySettingsClusterPreferencesTrustedAuthStatusEnum = "ENABLED" | "DISABLED"; /** * ThoughtSpot Public REST API @@ -16154,6 +16640,10 @@ declare class SecuritySettingsOrgPreferences { */ 'cors_whitelisted_urls'?: Array | null; 'non_embed_access'?: OrgNonEmbedAccess; + /** + * Trusted authentication status for this org. Version: 26.6.0.cl or later + */ + 'trusted_auth_status'?: SecuritySettingsOrgPreferencesTrustedAuthStatusEnum | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -16169,6 +16659,7 @@ declare class SecuritySettingsOrgPreferences { }[]; constructor(); } +type SecuritySettingsOrgPreferencesTrustedAuthStatusEnum = "ENABLED" | "DISABLED"; /** * ThoughtSpot Public REST API @@ -16483,7 +16974,7 @@ declare class ShareMetadataTypeInput { }[]; constructor(); } -type ShareMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type ShareMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -16503,6 +16994,10 @@ declare class SharePermissionsInput { * Type of access to the shared object */ 'share_mode': SharePermissionsInputShareModeEnum; + /** + * Content share mode for collections. Controls access to objects within the collection. Only applicable when sharing COLLECTION metadata type. + */ + 'content_share_mode'?: SharePermissionsInputContentShareModeEnum | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -16519,6 +17014,7 @@ declare class SharePermissionsInput { constructor(); } type SharePermissionsInputShareModeEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; +type SharePermissionsInputContentShareModeEnum = "READ_ONLY" | "MODIFY"; /** * ThoughtSpot Public REST API @@ -16534,7 +17030,7 @@ type SharePermissionsInputShareModeEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; declare class ShareMetadataRequest { /** - * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection + * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection 6. Collection */ 'metadata_type'?: ShareMetadataRequestMetadataTypeEnum; /** @@ -16588,7 +17084,7 @@ declare class ShareMetadataRequest { }[]; constructor(); } -type ShareMetadataRequestMetadataTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type ShareMetadataRequestMetadataTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -18045,6 +18541,39 @@ declare class UpdateConnectionRequest { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class UpdateConnectionStatusRequest { + /** + * Status to set for the connection. Use ACTIVATED to enable the connection or DEACTIVATED to disable it. + */ + 'status'?: UpdateConnectionStatusRequestStatusEnum; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type UpdateConnectionStatusRequestStatusEnum = "ACTIVATED" | "DEACTIVATED"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -18446,7 +18975,7 @@ declare class UpdateRoleRequest { }[]; constructor(); } -type UpdateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type UpdateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; /** * ThoughtSpot Public REST API @@ -18582,7 +19111,7 @@ declare class UpdateScheduleRequestPdfOptions { }[]; constructor(); } -type UpdateScheduleRequestPdfOptionsPageSizeEnum = "A4"; +type UpdateScheduleRequestPdfOptionsPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -18832,7 +19361,7 @@ declare class UpdateUserGroupRequest { }[]; constructor(); } -type UpdateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type UpdateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type UpdateUserGroupRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type UpdateUserGroupRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; type UpdateUserGroupRequestOperationEnum = "ADD" | "REMOVE" | "REPLACE"; @@ -19684,6 +20213,42 @@ declare class ValidateTokenRequest { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class VariableOrgInfo { + /** + * ID of the Org. + */ + 'id': number; + /** + * Name of the Org. + */ + 'name': string; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -19777,6 +20342,7 @@ declare class Variable { * Values of the variable */ 'values'?: Array | null; + 'org'?: VariableOrgInfo; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -20719,6 +21285,11 @@ declare class AIApiRequestFactory extends BaseAPIRequestFactory { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; } declare class AIApiResponseProcessor { /** @@ -20825,12 +21396,25 @@ declare class AIApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ singleAnswer(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response: ResponseContext): Promise; } /** * no description */ declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -20868,6 +21452,11 @@ declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -20875,6 +21464,14 @@ declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { validateToken(validateTokenRequest: ValidateTokenRequest, _options?: Configuration): Promise; } declare class AuthenticationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + configureAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -20939,6 +21536,14 @@ declare class AuthenticationApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ revokeToken(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + searchAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -21122,6 +21727,12 @@ declare class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { * @param updateConnectionRequest */ updateConnection(updateConnectionRequest: UpdateConnectionRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -21202,6 +21813,14 @@ declare class ConnectionsApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ updateConnection(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -22513,6 +23132,11 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param commitBranchRequest */ commitBranch(commitBranchRequest: CommitBranchRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -22988,6 +23612,11 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -23132,6 +23761,11 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -23186,6 +23820,12 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param updateConnectionConfigurationRequest */ updateConnectionConfiguration(configurationIdentifier: string, updateConnectionConfigurationRequest: UpdateConnectionConfigurationRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -23347,6 +23987,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ commitBranch(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + configureAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -24091,6 +24739,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ revokeToken(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + searchAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -24315,6 +24971,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ singleAnswer(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -24395,6 +25059,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ updateConnectionConfiguration(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -25056,11 +25728,21 @@ declare class PromiseAIApi { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; } declare class PromiseAuthenticationApi { private api; constructor(configuration: Configuration, requestFactory?: AuthenticationApiRequestFactory, responseProcessor?: AuthenticationApiResponseProcessor); + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -25098,6 +25780,11 @@ declare class PromiseAuthenticationApi { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -25207,6 +25894,12 @@ declare class PromiseConnectionsApi { * @param updateConnectionRequest */ updateConnection(updateConnectionRequest: UpdateConnectionRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -25779,6 +26472,11 @@ declare class PromiseThoughtSpotRestApi { * @param commitBranchRequest */ commitBranch(commitBranchRequest: CommitBranchRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -26254,6 +26952,11 @@ declare class PromiseThoughtSpotRestApi { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -26398,6 +27101,11 @@ declare class PromiseThoughtSpotRestApi { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -26452,6 +27160,12 @@ declare class PromiseThoughtSpotRestApi { * @param updateConnectionConfigurationRequest */ updateConnectionConfiguration(configurationIdentifier: string, updateConnectionConfigurationRequest: UpdateConnectionConfigurationRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -26794,4 +27508,4 @@ declare const createBearerAuthenticationConfig: (thoughtSpotHost: string, paramO */ declare const createBasicConfig: (thoughtSpotHost: string, options?: ConfigurationOptions) => Configuration; -export { PromiseAIApi as AIApi, AIContext, APIKey, APIKeyInput, AccessToken, ActionConfig, ActionConfigInput, ActionConfigInputCreate, ActionConfigInputCreatePositionEnum, ActionConfigInputPositionEnum, ActionDetails, ActionDetailsInput, ActionDetailsInputCreate, ActivateUserRequest, AgentConversation, AnswerContent, AnswerDataResponse, ApiException, ApiKeyConfiguration, AssignChangeAuthorRequest, AssignTagRequest, AssociateMetadataInput, AssociateMetadataInputCreate, AssociateMetadataInputCreateTypeEnum, AssociateMetadataInputTypeEnum, AuthMethods, AuthMethodsConfiguration, Authentication, PromiseAuthenticationApi as AuthenticationApi, AuthenticationInput, Author, AuthorMetadataTypeInput, AuthorMetadataTypeInputTypeEnum, AuthorType, AwsS3Config, AwsS3ConfigInput, BaseServerConfiguration, BasicAuth, BasicAuthInput, BearerAuthAuthentication, CALLBACK, CALLBACKInput, CALLBACKInputMandatory, CalendarResponse, ChangeUserPasswordRequest, ChannelHistoryEventInfo, ChannelHistoryEventInfoTypeEnum, ChannelHistoryEventInput, ChannelHistoryEventInputTypeEnum, ChannelHistoryJob, ChannelHistoryJobStatusEnum, ChannelValidationAwsS3Info, ChannelValidationDetail, ChannelValidationDetailStatusEnum, ChannelValidationDetailValidationStepEnum, ClusterNonEmbedAccess, ClusterNonEmbedAccessInput, Collection, CollectionDeleteResponse, CollectionDeleteTypeIdentifiers, CollectionEntityIdentifier, CollectionMetadataInput, CollectionMetadataInputTypeEnum, CollectionMetadataItem, CollectionSearchResponse, PromiseCollectionsApi as CollectionsApi, Column, ColumnSecurityRule, ColumnSecurityRuleColumn, ColumnSecurityRuleGroup, ColumnSecurityRuleGroupOperation, ColumnSecurityRuleGroupOperationOperationEnum, ColumnSecurityRuleResponse, ColumnSecurityRuleSourceTable, ColumnSecurityRuleTableInput, ColumnSecurityRuleUpdate, CommitBranchRequest, CommitFileType, CommitHistoryResponse, CommitResponse, CommiterType, CommunicationChannelPreferencesResponse, CommunicationChannelValidateResponse, CommunicationChannelValidateResponseChannelTypeEnum, CommunicationChannelValidateResponseEventTypeEnum, CommunicationChannelValidateResponseResultCodeEnum, Configuration, ConfigureCommunicationChannelPreferencesRequest, ConfigureSecuritySettingsRequest, ConfigureSecuritySettingsRequestClusterPreferences, ConnectionConfigurationResponse, ConnectionConfigurationResponseDataWarehouseTypeEnum, ConnectionConfigurationResponsePolicyProcessesEnum, ConnectionConfigurationResponsePolicyTypeEnum, ConnectionConfigurationSearchRequest, ConnectionConfigurationSearchRequestPolicyTypeEnum, PromiseConnectionConfigurationsApi as ConnectionConfigurationsApi, ConnectionInput, PromiseConnectionsApi as ConnectionsApi, ContextPayloadV2Input, ContextPayloadV2InputTypeEnum, Conversation, ConversationSettingsInput, ConvertWorksheetToModelRequest, CopyObjectRequest, CopyObjectRequestTypeEnum, CreateAgentConversationRequest, CreateAgentConversationRequestConversationSettings, CreateAgentConversationRequestMetadataContext, CreateAgentConversationRequestMetadataContextTypeEnum, CreateCalendarRequest, CreateCalendarRequestCalendarTypeEnum, CreateCalendarRequestCreationMethodEnum, CreateCalendarRequestMonthOffsetEnum, CreateCalendarRequestStartDayOfWeekEnum, CreateCalendarRequestTableReference, CreateCollectionRequest, CreateConfigRequest, CreateConnectionConfigurationRequest, CreateConnectionConfigurationRequestAuthenticationTypeEnum, CreateConnectionConfigurationRequestPolicyProcessOptions, CreateConnectionConfigurationRequestPolicyProcessesEnum, CreateConnectionConfigurationRequestPolicyTypeEnum, CreateConnectionRequest, CreateConnectionRequestDataWarehouseTypeEnum, CreateConnectionResponse, CreateConnectionResponseDataWarehouseTypeEnum, CreateConversationRequest, CreateCustomActionRequest, CreateCustomActionRequestActionDetails, CreateCustomActionRequestDefaultActionConfig, CreateEmailCustomizationRequest, CreateEmailCustomizationRequestTemplateProperties, CreateEmailCustomizationResponse, CreateOrgRequest, CreateRoleRequest, CreateRoleRequestPrivilegesEnum, CreateScheduleRequest, CreateScheduleRequestFileFormatEnum, CreateScheduleRequestFrequency, CreateScheduleRequestLiveboardOptions, CreateScheduleRequestMetadataTypeEnum, CreateScheduleRequestPdfOptions, CreateScheduleRequestPdfOptionsPageSizeEnum, CreateScheduleRequestRecipientDetails, CreateScheduleRequestTimeZoneEnum, CreateTagRequest, CreateUserGroupRequest, CreateUserGroupRequestPrivilegesEnum, CreateUserGroupRequestTypeEnum, CreateUserGroupRequestVisibilityEnum, CreateUserRequest, CreateUserRequestAccountStatusEnum, CreateUserRequestAccountTypeEnum, CreateUserRequestPreferredLocaleEnum, CreateUserRequestVisibilityEnum, CreateVariableRequest, CreateVariableRequestDataTypeEnum, CreateVariableRequestTypeEnum, CreateWebhookConfigurationRequest, CreateWebhookConfigurationRequestAuthentication, CreateWebhookConfigurationRequestEventsEnum, CreateWebhookConfigurationRequestSignatureVerification, CreateWebhookConfigurationRequestSignatureVerificationAlgorithmEnum, CreateWebhookConfigurationRequestSignatureVerificationTypeEnum, CreateWebhookConfigurationRequestStorageDestination, CreateWebhookConfigurationRequestStorageDestinationStorageTypeEnum, CronExpression, CronExpressionInput, CspSettings, CspSettingsInput, PromiseCustomActionApi as CustomActionApi, CustomActionMetadataTypeInput, CustomActionMetadataTypeInputTypeEnum, PromiseCustomCalendarsApi as CustomCalendarsApi, PromiseDBTApi as DBTApi, PromiseDataApi as DataApi, DataSource, DataSourceContextInput, DataWarehouseObjectInput, DataWarehouseObjects, Database, DbtSearchResponse, DeactivateUserRequest, DefaultActionConfig, DefaultActionConfigInput, DefaultActionConfigInputCreate, DefaultActionConfigSearchInput, DeleteCollectionRequest, DeleteConfigRequest, DeleteConnectionConfigurationRequest, DeleteConnectionRequest, DeleteMetadataRequest, DeleteMetadataTypeInput, DeleteMetadataTypeInputTypeEnum, DeleteOrgEmailCustomizationRequest, DeleteVariablesRequest, DeleteWebhookConfigurationsRequest, DeployCommitRequest, DeployCommitRequestDeployPolicyEnum, DeployCommitRequestDeployTypeEnum, DeployResponse, PromiseEmailCustomizationApi as EmailCustomizationApi, EntityHeader, ErrorResponse, EurekaDataSourceSuggestionResponse, EurekaDecomposeQueryResponse, EurekaGetNLInstructionsResponse, EurekaGetRelevantQuestionsResponse, EurekaLLMDecomposeQueryResponse, EurekaLLMSuggestedQuery, EurekaRelevantQuestion, EurekaSetNLInstructionsResponse, EventChannelConfig, EventChannelConfigChannelsEnum, EventChannelConfigEventTypeEnum, EventChannelConfigInput, EventChannelConfigInputChannelsEnum, EventChannelConfigInputEventTypeEnum, ExcludeMetadataListItemInput, ExcludeMetadataListItemInputTypeEnum, ExportAnswerReportRequest, ExportAnswerReportRequestFileFormatEnum, ExportAnswerReportRequestRegionalSettings, ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum, ExportAnswerReportRequestRegionalSettingsDateFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsUserLocaleEnum, ExportLiveboardReportRequest, ExportLiveboardReportRequestFileFormatEnum, ExportLiveboardReportRequestPdfOptions, ExportLiveboardReportRequestPdfOptionsPageOrientationEnum, ExportLiveboardReportRequestPdfOptionsPageSizeEnum, ExportLiveboardReportRequestPngOptions, ExportMetadataTMLBatchedRequest, ExportMetadataTMLBatchedRequestEdocFormatEnum, ExportMetadataTMLBatchedRequestMetadataTypeEnum, ExportMetadataTMLRequest, ExportMetadataTMLRequestEdocFormatEnum, ExportMetadataTMLRequestExportOptions, ExportMetadataTMLRequestExportSchemaVersionEnum, ExportMetadataTypeInput, ExportMetadataTypeInputTypeEnum, ExportOptions, ExternalTableInput, FavoriteMetadataInput, FavoriteMetadataInputTypeEnum, FavoriteMetadataItem, FavoriteMetadataItemTypeEnum, FavoriteObjectOptionsInput, FetchAnswerDataRequest, FetchAnswerDataRequestDataFormatEnum, FetchAnswerSqlQueryRequest, FetchAsyncImportTaskStatusRequest, FetchAsyncImportTaskStatusRequestTaskStatusEnum, FetchColumnSecurityRulesRequest, FetchConnectionDiffStatusResponse, FetchLiveboardDataRequest, FetchLiveboardDataRequestDataFormatEnum, FetchLiveboardSqlQueryRequest, FetchLogsRequest, FetchLogsRequestLogTypeEnum, FetchObjectPrivilegesRequest, FetchPermissionsOfPrincipalsRequest, FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum, FetchPermissionsOnMetadataRequest, FilterRules, FilterRulesOperatorEnum, ForceLogoutUsersRequest, Frequency, FrequencyInput, GenerateCSVRequest, GenerateCSVRequestCalendarTypeEnum, GenerateCSVRequestMonthOffsetEnum, GenerateCSVRequestStartDayOfWeekEnum, GenericInfo, GetAsyncImportStatusResponse, GetCustomAccessTokenRequest, GetCustomAccessTokenRequestPersistOptionEnum, GetDataSourceSuggestionsRequest, GetFullAccessTokenRequest, GetFullAccessTokenRequestUserParameters, GetNLInstructionsRequest, GetObjectAccessTokenRequest, GetRelevantQuestionsRequest, GetRelevantQuestionsRequestAiContext, GetRelevantQuestionsRequestMetadataContext, GetTokenResponse, GroupInfo, GroupObject, PromiseGroupsApi as GroupsApi, GroupsImportListInput, GroupsImportListInputPrivilegesEnum, GroupsImportListInputTypeEnum, GroupsImportListInputVisibilityEnum, HeaderAttributeInput, HeaderUpdateInput, HeaderUpdateInputTypeEnum, HttpBasicConfiguration, HttpBearerConfiguration, HttpException, HttpFile, HttpLibrary, HttpMethod, ImportEPackAsyncTaskStatus, ImportEPackAsyncTaskStatusImportPolicyEnum, ImportEPackAsyncTaskStatusTaskStatusEnum, ImportMetadataTMLAsyncRequest, ImportMetadataTMLAsyncRequestImportPolicyEnum, ImportMetadataTMLRequest, ImportMetadataTMLRequestImportPolicyEnum, ImportUser, ImportUserAccountStatusEnum, ImportUserAccountTypeEnum, ImportUserGroupsRequest, ImportUserGroupsResponse, ImportUserPreferredLocaleEnum, ImportUserType, ImportUserVisibilityEnum, ImportUsersRequest, ImportUsersResponse, InputEurekaNLSRequest, IsomorphicFetchHttpLibrary, JWTMetadataObject, JWTMetadataObjectTypeEnum, JWTParameter, JWTUserOptions, JWTUserOptionsFull, JobRecipient, JobRecipientTypeEnum, PromiseJobsApi as JobsApi, LiveboardContent, LiveboardDataResponse, LiveboardOptions, LiveboardOptionsInput, PromiseLogApi as LogApi, LogResponse, LoginRequest, ManageObjectPrivilegeRequest, ManageObjectPrivilegeRequestMetadataTypeEnum, ManageObjectPrivilegeRequestObjectPrivilegeTypesEnum, ManageObjectPrivilegeRequestOperationEnum, PromiseMetadataApi as MetadataApi, MetadataAssociationItem, MetadataContext, MetadataInput, MetadataInputTypeEnum, MetadataListItemInput, MetadataListItemInputSubtypesEnum, MetadataListItemInputTypeEnum, MetadataObject, MetadataObjectTypeEnum, MetadataResponse, MetadataResponseTypeEnum, MetadataSearchResponse, MetadataSearchResponseMetadataTypeEnum, MetadataSearchSortOptions, MetadataSearchSortOptionsFieldNameEnum, MetadataSearchSortOptionsOrderEnum, PromiseMiddleware as Middleware, ModelTableList, NLInstructionsInfo, NLInstructionsInfoInput, NLInstructionsInfoInputScopeEnum, NLInstructionsInfoScopeEnum, OAuth2Configuration, ObjectIDAndName, ObjectPrivilegesMetadataInput, ObjectPrivilegesMetadataInputTypeEnum, ObjectPrivilegesOfMetadataResponse, Org, OrgChannelConfigInput, OrgChannelConfigInputOperationEnum, OrgChannelConfigInputResetEventsEnum, OrgChannelConfigResponse, OrgDetails, OrgInfo, OrgNonEmbedAccess, OrgNonEmbedAccessInput, OrgPreferenceSearchCriteriaInput, OrgPreferenceSearchCriteriaInputEventTypesEnum, OrgResponse, OrgResponseStatusEnum, OrgResponseVisibilityEnum, OrgType, PromiseOrgsApi as OrgsApi, ParameterValues, ParameterizeMetadataFieldsRequest, ParameterizeMetadataFieldsRequestFieldTypeEnum, ParameterizeMetadataFieldsRequestMetadataTypeEnum, ParameterizeMetadataRequest, ParameterizeMetadataRequestFieldTypeEnum, ParameterizeMetadataRequestMetadataTypeEnum, ParametersListItem, ParametersListItemInput, PdfOptions, PdfOptionsInput, PdfOptionsInputPageOrientationEnum, PdfOptionsInputPageSizeEnum, PdfOptionsPageSizeEnum, PermissionInput, PermissionInputShareModeEnum, PermissionOfMetadataResponse, PermissionOfPrincipalsResponse, PermissionsMetadataTypeInput, PermissionsMetadataTypeInputTypeEnum, PngOptionsInput, PolicyProcessOptions, PolicyProcessOptionsInput, PrincipalsInput, PrincipalsInputTypeEnum, PrincipalsListItem, PrincipalsListItemInput, PromiseHttpLibrary, PublishMetadataListItem, PublishMetadataListItemTypeEnum, PublishMetadataRequest, PutVariableValuesRequest, PutVariableValuesRequestOperationEnum, QueryGetDecomposedQueryRequest, QueryGetDecomposedQueryRequestNlsRequest, RecipientDetails, RecipientDetailsInput, RegionalSettingsInput, RegionalSettingsInputCurrencyFormatEnum, RegionalSettingsInputDateFormatLocaleEnum, RegionalSettingsInputNumberFormatLocaleEnum, RegionalSettingsInputUserLocaleEnum, RepoConfigObject, PromiseReportsApi as ReportsApi, RequestBody, RequestContext, RequiredError, ResetUserPasswordRequest, ResponseActivationURL, ResponseBody, ResponseContext, ResponseCopyObject, ResponseCustomAction, ResponseFailedEntities, ResponseFailedEntity, ResponseIncompleteEntities, ResponseIncompleteEntity, ResponseMessage, ResponseMessageMessageTypeEnum, ResponseMessageVisualizationTypeEnum, ResponsePostUpgradeFailedEntities, ResponsePostUpgradeFailedEntity, ResponseSchedule, ResponseScheduleRun, ResponseSuccessfulEntities, ResponseSuccessfulEntity, ResponseWorksheetToModelConversion, RevertCommitRequest, RevertCommitRequestRevertPolicyEnum, RevertResponse, RevertedMetadata, RevokeRefreshTokensRequest, RevokeRefreshTokensResponse, RevokeTokenRequest, RiseGQLArgWrapper, RiseSetter, Role, RoleResponse, RoleResponsePermissionEnum, RoleResponsePrivilegesEnum, PromiseRolesApi as RolesApi, RuntimeFilter, RuntimeFilters, RuntimeFiltersOperatorEnum, RuntimeParamOverride, RuntimeParameters, RuntimeSort, RuntimeSorts, RuntimeSortsOrderEnum, ScheduleHistoryRunsOptionsInput, PromiseSchedulesApi as SchedulesApi, SchedulesPdfOptionsInput, SchedulesPdfOptionsInputPageSizeEnum, SchemaObject, Scope, ScriptSrcUrls, ScriptSrcUrlsInput, SearchCalendarsRequest, SearchCalendarsRequestSortOptions, SearchCalendarsRequestSortOptionsFieldNameEnum, SearchCalendarsRequestSortOptionsOrderEnum, SearchChannelHistoryRequest, SearchChannelHistoryRequestChannelStatusEnum, SearchChannelHistoryRequestChannelTypeEnum, SearchChannelHistoryResponse, SearchCollectionsRequest, SearchCollectionsRequestSortOptions, SearchCollectionsRequestSortOptionsFieldNameEnum, SearchCollectionsRequestSortOptionsOrderEnum, SearchCommitsRequest, SearchCommitsRequestMetadataTypeEnum, SearchCommunicationChannelPreferencesRequest, SearchCommunicationChannelPreferencesRequestClusterPreferencesEnum, SearchConfigRequest, SearchConnectionRequest, SearchConnectionRequestAuthenticationTypeEnum, SearchConnectionRequestDataWarehouseObjectTypeEnum, SearchConnectionRequestDataWarehouseTypesEnum, SearchConnectionRequestSortOptions, SearchConnectionRequestSortOptionsFieldNameEnum, SearchConnectionRequestSortOptionsOrderEnum, SearchConnectionResponse, SearchConnectionResponseDataWarehouseTypeEnum, SearchCustomActionsRequest, SearchCustomActionsRequestDefaultActionConfig, SearchCustomActionsRequestTypeEnum, SearchDataRequest, SearchDataRequestDataFormatEnum, SearchDataResponse, SearchEmailCustomizationRequest, SearchMetadataRequest, SearchMetadataRequestDependentObjectVersionEnum, SearchMetadataRequestFavoriteObjectOptions, SearchMetadataRequestLiveboardResponseVersionEnum, SearchMetadataRequestSortOptions, SearchMetadataRequestSortOptionsFieldNameEnum, SearchMetadataRequestSortOptionsOrderEnum, SearchOrgsRequest, SearchOrgsRequestStatusEnum, SearchOrgsRequestVisibilityEnum, SearchRoleResponse, SearchRoleResponsePermissionEnum, SearchRoleResponsePrivilegesEnum, SearchRolesRequest, SearchRolesRequestPermissionsEnum, SearchRolesRequestPrivilegesEnum, SearchSchedulesRequest, SearchSchedulesRequestHistoryRunsOptions, SearchSchedulesRequestSortOptions, SearchSecuritySettingsRequest, SearchSecuritySettingsRequestScopeEnum, SearchTagsRequest, SearchUserGroupsRequest, SearchUserGroupsRequestPrivilegesEnum, SearchUserGroupsRequestSortOptions, SearchUserGroupsRequestSortOptionsFieldNameEnum, SearchUserGroupsRequestSortOptionsOrderEnum, SearchUserGroupsRequestTypeEnum, SearchUserGroupsRequestVisibilityEnum, SearchUsersRequest, SearchUsersRequestAccountStatusEnum, SearchUsersRequestAccountTypeEnum, SearchUsersRequestPrivilegesEnum, SearchUsersRequestVisibilityEnum, SearchVariablesRequest, SearchVariablesRequestResponseContentEnum, SearchWebhookConfigurationsRequest, SearchWebhookConfigurationsRequestEventTypeEnum, SearchWebhookConfigurationsRequestSortOptions, SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum, SearchWebhookConfigurationsRequestSortOptionsOrderEnum, PromiseSecurityApi as SecurityApi, SecurityAuthentication, SecuritySettingsClusterPreferences, SecuritySettingsClusterPreferencesInput, SecuritySettingsOrgDetails, SecuritySettingsOrgPreferences, SecuritySettingsOrgPreferencesInput, SecuritySettingsResponse, SelfDecodingBody, SendAgentConversationMessageRequest, SendAgentConversationMessageStreamingRequest, SendAgentMessageRequest, SendAgentMessageResponse, SendAgentMessageStreamingRequest, SendMessageRequest, ServerConfiguration, SetNLInstructionsRequest, ShareMetadataRequest, ShareMetadataRequestMetadataTypeEnum, ShareMetadataTypeInput, ShareMetadataTypeInputTypeEnum, SharePermissionsInput, SharePermissionsInputShareModeEnum, SingleAnswerRequest, SortOption, SortOptionFieldNameEnum, SortOptionInput, SortOptionInputFieldNameEnum, SortOptionInputOrderEnum, SortOptionOrderEnum, SortOptions, SortOptionsFieldNameEnum, SortOptionsOrderEnum, SortingOptions, SqlQuery, SqlQueryResponse, SqlQueryResponseMetadataTypeEnum, StorageConfig, StorageConfigInput, StorageDestination, StorageDestinationInput, StorageDestinationInputStorageTypeEnum, StorageDestinationStorageTypeEnum, SyncMetadataRequest, SyncMetadataRequestSyncAttributesEnum, SyncMetadataResponse, SyncMetadataResponseStatusEnum, PromiseSystemApi as SystemApi, SystemConfig, SystemInfo, SystemOverrideInfo, Table, Tag, TagMetadataTypeInput, TagMetadataTypeInputTypeEnum, PromiseTagsApi as TagsApi, TemplatePropertiesInputCreate, PromiseThoughtSpotRestApi as ThoughtSpotRestApi, Token, TokenAccessScopeObject, TokenAccessScopeObjectTypeEnum, TokenProvider, TokenValidationResponse, URL, URLInput, URLInputMandatory, UnassignTagRequest, UnparameterizeMetadataRequest, UnparameterizeMetadataRequestFieldTypeEnum, UnparameterizeMetadataRequestMetadataTypeEnum, UnpublishMetadataRequest, UpdateCalendarRequest, UpdateCalendarRequestCalendarTypeEnum, UpdateCalendarRequestMonthOffsetEnum, UpdateCalendarRequestStartDayOfWeekEnum, UpdateCalendarRequestTableReference, UpdateCalendarRequestUpdateMethodEnum, UpdateCollectionRequest, UpdateCollectionRequestOperationEnum, UpdateColumnSecurityRulesRequest, UpdateConfigRequest, UpdateConnectionConfigurationRequest, UpdateConnectionConfigurationRequestAuthenticationTypeEnum, UpdateConnectionConfigurationRequestPolicyProcessesEnum, UpdateConnectionConfigurationRequestPolicyTypeEnum, UpdateConnectionRequest, UpdateConnectionV2Request, UpdateCustomActionRequest, UpdateCustomActionRequestActionDetails, UpdateCustomActionRequestDefaultActionConfig, UpdateCustomActionRequestOperationEnum, UpdateEmailCustomizationRequest, UpdateMetadataHeaderRequest, UpdateMetadataObjIdRequest, UpdateObjIdInput, UpdateObjIdInputTypeEnum, UpdateOrgRequest, UpdateOrgRequestOperationEnum, UpdateRoleRequest, UpdateRoleRequestPrivilegesEnum, UpdateScheduleRequest, UpdateScheduleRequestFileFormatEnum, UpdateScheduleRequestFrequency, UpdateScheduleRequestLiveboardOptions, UpdateScheduleRequestMetadataTypeEnum, UpdateScheduleRequestPdfOptions, UpdateScheduleRequestPdfOptionsPageSizeEnum, UpdateScheduleRequestRecipientDetails, UpdateScheduleRequestStatusEnum, UpdateScheduleRequestTimeZoneEnum, UpdateSystemConfigRequest, UpdateTagRequest, UpdateUserGroupRequest, UpdateUserGroupRequestOperationEnum, UpdateUserGroupRequestPrivilegesEnum, UpdateUserGroupRequestTypeEnum, UpdateUserGroupRequestVisibilityEnum, UpdateUserRequest, UpdateUserRequestAccountStatusEnum, UpdateUserRequestAccountTypeEnum, UpdateUserRequestOperationEnum, UpdateUserRequestPreferredLocaleEnum, UpdateUserRequestVisibilityEnum, UpdateVariableRequest, UpdateVariableValuesRequest, UpdateWebhookConfigurationRequest, UpdateWebhookConfigurationRequestEventsEnum, User, UserAccountStatusEnum, UserAccountTypeEnum, UserGroup, UserGroupResponse, UserGroupResponseParentTypeEnum, UserGroupResponseTypeEnum, UserGroupResponseVisibilityEnum, UserInfo, UserObject, UserObjectTypeEnum, UserParameterOptions, UserParentTypeEnum, UserPrincipal, UserVisibilityEnum, PromiseUsersApi as UsersApi, ValidateCommunicationChannelRequest, ValidateCommunicationChannelRequestChannelTypeEnum, ValidateCommunicationChannelRequestEventTypeEnum, ValidateMergeRequest, ValidateTokenRequest, ValueScopeInput, ValueScopeInputPrincipalTypeEnum, Variable, PromiseVariableApi as VariableApi, VariableDetailInput, VariableDetailInputTypeEnum, VariablePutAssignmentInput, VariablePutAssignmentInputPrincipalTypeEnum, VariableUpdateAssignmentInput, VariableUpdateAssignmentInputOperationEnum, VariableUpdateScopeInput, VariableUpdateScopeInputPrincipalTypeEnum, VariableValue, VariableValuePrincipalTypeEnum, VariableValues, VariableVariableTypeEnum, PromiseVersionControlApi as VersionControlApi, WebhookAuthApiKey, WebhookAuthApiKeyInput, WebhookAuthBasicAuth, WebhookAuthBasicAuthInput, WebhookAuthOAuth2, WebhookAuthOAuth2Input, WebhookAuthentication, WebhookAuthenticationInput, WebhookDeleteFailure, WebhookDeleteResponse, WebhookKeyValuePair, WebhookKeyValuePairInput, WebhookOrg, WebhookPagination, WebhookResponse, WebhookResponseEventsEnum, WebhookSearchResponse, WebhookSignatureVerification, WebhookSignatureVerificationAlgorithmEnum, WebhookSignatureVerificationInput, WebhookSignatureVerificationInputAlgorithmEnum, WebhookSignatureVerificationInputTypeEnum, WebhookSignatureVerificationTypeEnum, WebhookSortOptionsInput, WebhookSortOptionsInputFieldNameEnum, WebhookSortOptionsInputOrderEnum, WebhookUser, PromiseWebhooksApi as WebhooksApi, configureAuthMethods, createBasicConfig, createBearerAuthenticationConfig, createConfiguration, server1, servers, wrapHttpLibrary }; +export { PromiseAIApi as AIApi, AIContext, APIKey, APIKeyInput, AccessToken, ActionConfig, ActionConfigInput, ActionConfigInputCreate, ActionConfigInputCreatePositionEnum, ActionConfigInputPositionEnum, ActionDetails, ActionDetailsInput, ActionDetailsInputCreate, ActivateUserRequest, AgentConversation, AnswerContent, AnswerDataResponse, AnswerPngOptionsInput, ApiException, ApiKeyConfiguration, AssignChangeAuthorRequest, AssignTagRequest, AssociateMetadataInput, AssociateMetadataInputCreate, AssociateMetadataInputCreateTypeEnum, AssociateMetadataInputTypeEnum, AuthClusterPreferences, AuthClusterPreferencesAuthStatusEnum, AuthClusterPreferencesInput, AuthClusterPreferencesInputAuthStatusEnum, AuthMethods, AuthMethodsConfiguration, AuthOrgInfo, AuthOrgPreference, AuthOrgPreferenceAuthStatusEnum, AuthOrgPreferenceInput, AuthOrgPreferenceInputAuthStatusEnum, AuthSettingsAccessToken, Authentication, PromiseAuthenticationApi as AuthenticationApi, AuthenticationInput, Author, AuthorMetadataTypeInput, AuthorMetadataTypeInputTypeEnum, AuthorType, AwsS3Config, AwsS3ConfigInput, BaseServerConfiguration, BasicAuth, BasicAuthInput, BearerAuthAuthentication, CALLBACK, CALLBACKInput, CALLBACKInputMandatory, CalendarResponse, ChangeUserPasswordRequest, ChannelHistoryEventInfo, ChannelHistoryEventInfoTypeEnum, ChannelHistoryEventInput, ChannelHistoryEventInputTypeEnum, ChannelHistoryJob, ChannelHistoryJobStatusEnum, ChannelValidationAwsS3Info, ChannelValidationDetail, ChannelValidationDetailStatusEnum, ChannelValidationDetailValidationStepEnum, ClusterNonEmbedAccess, ClusterNonEmbedAccessInput, Collection, CollectionDeleteResponse, CollectionDeleteTypeIdentifiers, CollectionEntityIdentifier, CollectionMetadataInput, CollectionMetadataInputTypeEnum, CollectionMetadataItem, CollectionSearchResponse, PromiseCollectionsApi as CollectionsApi, Column, ColumnSecurityRule, ColumnSecurityRuleColumn, ColumnSecurityRuleGroup, ColumnSecurityRuleGroupOperation, ColumnSecurityRuleGroupOperationOperationEnum, ColumnSecurityRuleResponse, ColumnSecurityRuleSourceTable, ColumnSecurityRuleTableInput, ColumnSecurityRuleUpdate, CommitBranchRequest, CommitFileType, CommitHistoryResponse, CommitResponse, CommiterType, CommunicationChannelPreferencesResponse, CommunicationChannelValidateResponse, CommunicationChannelValidateResponseChannelTypeEnum, CommunicationChannelValidateResponseEventTypeEnum, CommunicationChannelValidateResponseResultCodeEnum, Configuration, ConfigureAuthSettingsRequest, ConfigureAuthSettingsRequestAuthTypeEnum, ConfigureAuthSettingsRequestClusterPreferences, ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum, ConfigureCommunicationChannelPreferencesRequest, ConfigureSecuritySettingsRequest, ConfigureSecuritySettingsRequestClusterPreferences, ConnectionConfigurationResponse, ConnectionConfigurationResponseDataWarehouseTypeEnum, ConnectionConfigurationResponsePolicyProcessesEnum, ConnectionConfigurationResponsePolicyTypeEnum, ConnectionConfigurationSearchRequest, ConnectionConfigurationSearchRequestPolicyTypeEnum, PromiseConnectionConfigurationsApi as ConnectionConfigurationsApi, ConnectionInput, PromiseConnectionsApi as ConnectionsApi, ContextPayloadV2Input, ContextPayloadV2InputTypeEnum, Conversation, ConversationSettingsInput, ConvertWorksheetToModelRequest, CopyObjectRequest, CopyObjectRequestTypeEnum, CreateAgentConversationRequest, CreateAgentConversationRequestConversationSettings, CreateAgentConversationRequestMetadataContext, CreateAgentConversationRequestMetadataContextTypeEnum, CreateCalendarRequest, CreateCalendarRequestCalendarTypeEnum, CreateCalendarRequestCreationMethodEnum, CreateCalendarRequestMonthOffsetEnum, CreateCalendarRequestStartDayOfWeekEnum, CreateCalendarRequestTableReference, CreateCollectionRequest, CreateConfigRequest, CreateConnectionConfigurationRequest, CreateConnectionConfigurationRequestAuthenticationTypeEnum, CreateConnectionConfigurationRequestPolicyProcessOptions, CreateConnectionConfigurationRequestPolicyProcessesEnum, CreateConnectionConfigurationRequestPolicyTypeEnum, CreateConnectionRequest, CreateConnectionRequestDataWarehouseTypeEnum, CreateConnectionResponse, CreateConnectionResponseDataWarehouseTypeEnum, CreateConversationRequest, CreateCustomActionRequest, CreateCustomActionRequestActionDetails, CreateCustomActionRequestDefaultActionConfig, CreateEmailCustomizationRequest, CreateEmailCustomizationRequestTemplateProperties, CreateEmailCustomizationResponse, CreateOrgRequest, CreateRoleRequest, CreateRoleRequestPrivilegesEnum, CreateScheduleRequest, CreateScheduleRequestFileFormatEnum, CreateScheduleRequestFrequency, CreateScheduleRequestLiveboardOptions, CreateScheduleRequestMetadataTypeEnum, CreateScheduleRequestPdfOptions, CreateScheduleRequestPdfOptionsPageSizeEnum, CreateScheduleRequestRecipientDetails, CreateScheduleRequestTimeZoneEnum, CreateTagRequest, CreateUserGroupRequest, CreateUserGroupRequestPrivilegesEnum, CreateUserGroupRequestTypeEnum, CreateUserGroupRequestVisibilityEnum, CreateUserRequest, CreateUserRequestAccountStatusEnum, CreateUserRequestAccountTypeEnum, CreateUserRequestPreferredLocaleEnum, CreateUserRequestVisibilityEnum, CreateVariableRequest, CreateVariableRequestDataTypeEnum, CreateVariableRequestTypeEnum, CreateWebhookConfigurationRequest, CreateWebhookConfigurationRequestAuthentication, CreateWebhookConfigurationRequestEventsEnum, CreateWebhookConfigurationRequestSignatureVerification, CreateWebhookConfigurationRequestSignatureVerificationAlgorithmEnum, CreateWebhookConfigurationRequestSignatureVerificationTypeEnum, CreateWebhookConfigurationRequestStorageDestination, CreateWebhookConfigurationRequestStorageDestinationStorageTypeEnum, CronExpression, CronExpressionInput, CspSettings, CspSettingsInput, PromiseCustomActionApi as CustomActionApi, CustomActionMetadataTypeInput, CustomActionMetadataTypeInputTypeEnum, PromiseCustomCalendarsApi as CustomCalendarsApi, PromiseDBTApi as DBTApi, PromiseDataApi as DataApi, DataSource, DataSourceContextInput, DataWarehouseObjectInput, DataWarehouseObjects, Database, DbtSearchResponse, DeactivateUserRequest, DefaultActionConfig, DefaultActionConfigInput, DefaultActionConfigInputCreate, DefaultActionConfigSearchInput, DeleteCollectionRequest, DeleteConfigRequest, DeleteConnectionConfigurationRequest, DeleteConnectionRequest, DeleteMetadataRequest, DeleteMetadataTypeInput, DeleteMetadataTypeInputTypeEnum, DeleteOrgEmailCustomizationRequest, DeleteVariablesRequest, DeleteWebhookConfigurationsRequest, DeployCommitRequest, DeployCommitRequestDeployPolicyEnum, DeployCommitRequestDeployTypeEnum, DeployResponse, PromiseEmailCustomizationApi as EmailCustomizationApi, EntityHeader, ErrorResponse, EurekaDataSourceSuggestionResponse, EurekaDecomposeQueryResponse, EurekaGetNLInstructionsResponse, EurekaGetRelevantQuestionsResponse, EurekaLLMDecomposeQueryResponse, EurekaLLMSuggestedQuery, EurekaRelevantQuestion, EurekaSetNLInstructionsResponse, EventChannelConfig, EventChannelConfigChannelsEnum, EventChannelConfigEventTypeEnum, EventChannelConfigInput, EventChannelConfigInputChannelsEnum, EventChannelConfigInputEventTypeEnum, ExcludeMetadataListItemInput, ExcludeMetadataListItemInputTypeEnum, ExportAnswerReportRequest, ExportAnswerReportRequestFileFormatEnum, ExportAnswerReportRequestPngOptions, ExportAnswerReportRequestRegionalSettings, ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum, ExportAnswerReportRequestRegionalSettingsDateFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsUserLocaleEnum, ExportAnswerReportRequestTypeEnum, ExportLiveboardReportRequest, ExportLiveboardReportRequestFileFormatEnum, ExportLiveboardReportRequestPdfOptions, ExportLiveboardReportRequestPdfOptionsPageOrientationEnum, ExportLiveboardReportRequestPdfOptionsPageSizeEnum, ExportLiveboardReportRequestPngOptions, ExportMetadataTMLBatchedRequest, ExportMetadataTMLBatchedRequestEdocFormatEnum, ExportMetadataTMLBatchedRequestMetadataTypeEnum, ExportMetadataTMLRequest, ExportMetadataTMLRequestEdocFormatEnum, ExportMetadataTMLRequestExportOptions, ExportMetadataTMLRequestExportSchemaVersionEnum, ExportMetadataTypeInput, ExportMetadataTypeInputTypeEnum, ExportOptions, ExternalTableInput, FavoriteMetadataInput, FavoriteMetadataInputTypeEnum, FavoriteMetadataItem, FavoriteMetadataItemTypeEnum, FavoriteObjectOptionsInput, FetchAnswerDataRequest, FetchAnswerDataRequestDataFormatEnum, FetchAnswerSqlQueryRequest, FetchAsyncImportTaskStatusRequest, FetchAsyncImportTaskStatusRequestTaskStatusEnum, FetchColumnSecurityRulesRequest, FetchConnectionDiffStatusResponse, FetchLiveboardDataRequest, FetchLiveboardDataRequestDataFormatEnum, FetchLiveboardSqlQueryRequest, FetchLogsRequest, FetchLogsRequestLogTypeEnum, FetchObjectPrivilegesRequest, FetchPermissionsOfPrincipalsRequest, FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum, FetchPermissionsOnMetadataRequest, FilterRules, FilterRulesOperatorEnum, ForceLogoutUsersRequest, Frequency, FrequencyInput, GenerateCSVRequest, GenerateCSVRequestCalendarTypeEnum, GenerateCSVRequestMonthOffsetEnum, GenerateCSVRequestStartDayOfWeekEnum, GenericInfo, GetAsyncImportStatusResponse, GetCustomAccessTokenRequest, GetCustomAccessTokenRequestPersistOptionEnum, GetDataSourceSuggestionsRequest, GetFullAccessTokenRequest, GetFullAccessTokenRequestUserParameters, GetNLInstructionsRequest, GetObjectAccessTokenRequest, GetRelevantQuestionsRequest, GetRelevantQuestionsRequestAiContext, GetRelevantQuestionsRequestMetadataContext, GetTokenResponse, GroupInfo, GroupObject, PromiseGroupsApi as GroupsApi, GroupsImportListInput, GroupsImportListInputPrivilegesEnum, GroupsImportListInputTypeEnum, GroupsImportListInputVisibilityEnum, HeaderAttributeInput, HeaderUpdateInput, HeaderUpdateInputTypeEnum, HttpBasicConfiguration, HttpBearerConfiguration, HttpException, HttpFile, HttpLibrary, HttpMethod, ImportEPackAsyncTaskStatus, ImportEPackAsyncTaskStatusImportPolicyEnum, ImportEPackAsyncTaskStatusTaskStatusEnum, ImportMetadataTMLAsyncRequest, ImportMetadataTMLAsyncRequestImportPolicyEnum, ImportMetadataTMLRequest, ImportMetadataTMLRequestImportPolicyEnum, ImportUser, ImportUserAccountStatusEnum, ImportUserAccountTypeEnum, ImportUserGroupsRequest, ImportUserGroupsResponse, ImportUserPreferredLocaleEnum, ImportUserType, ImportUserVisibilityEnum, ImportUsersRequest, ImportUsersResponse, InputEurekaNLSRequest, IsomorphicFetchHttpLibrary, JWTMetadataObject, JWTMetadataObjectTypeEnum, JWTParameter, JWTUserOptions, JWTUserOptionsFull, JobRecipient, JobRecipientTypeEnum, PromiseJobsApi as JobsApi, LiveboardContent, LiveboardDataResponse, LiveboardOptions, LiveboardOptionsInput, PromiseLogApi as LogApi, LogResponse, LoginRequest, ManageObjectPrivilegeRequest, ManageObjectPrivilegeRequestMetadataTypeEnum, ManageObjectPrivilegeRequestObjectPrivilegeTypesEnum, ManageObjectPrivilegeRequestOperationEnum, PromiseMetadataApi as MetadataApi, MetadataAssociationItem, MetadataContext, MetadataInput, MetadataInputTypeEnum, MetadataListItemInput, MetadataListItemInputSubtypesEnum, MetadataListItemInputTypeEnum, MetadataObject, MetadataObjectTypeEnum, MetadataResponse, MetadataResponseTypeEnum, MetadataSearchResponse, MetadataSearchResponseMetadataTypeEnum, MetadataSearchSortOptions, MetadataSearchSortOptionsFieldNameEnum, MetadataSearchSortOptionsOrderEnum, PromiseMiddleware as Middleware, ModelTableList, NLInstructionsInfo, NLInstructionsInfoInput, NLInstructionsInfoInputScopeEnum, NLInstructionsInfoScopeEnum, OAuth2Configuration, ObjectIDAndName, ObjectPrivilegesMetadataInput, ObjectPrivilegesMetadataInputTypeEnum, ObjectPrivilegesOfMetadataResponse, Org, OrgChannelConfigInput, OrgChannelConfigInputOperationEnum, OrgChannelConfigInputResetEventsEnum, OrgChannelConfigResponse, OrgDetails, OrgInfo, OrgNonEmbedAccess, OrgNonEmbedAccessInput, OrgPreferenceSearchCriteriaInput, OrgPreferenceSearchCriteriaInputEventTypesEnum, OrgResponse, OrgResponseStatusEnum, OrgResponseVisibilityEnum, OrgType, PromiseOrgsApi as OrgsApi, ParameterValues, ParameterizeMetadataFieldsRequest, ParameterizeMetadataFieldsRequestFieldTypeEnum, ParameterizeMetadataFieldsRequestMetadataTypeEnum, ParameterizeMetadataRequest, ParameterizeMetadataRequestFieldTypeEnum, ParameterizeMetadataRequestMetadataTypeEnum, ParametersListItem, ParametersListItemInput, PdfOptions, PdfOptionsInput, PdfOptionsInputPageOrientationEnum, PdfOptionsInputPageSizeEnum, PdfOptionsPageSizeEnum, PermissionInput, PermissionInputShareModeEnum, PermissionOfMetadataResponse, PermissionOfPrincipalsResponse, PermissionsMetadataTypeInput, PermissionsMetadataTypeInputTypeEnum, PngOptionsInput, PolicyProcessOptions, PolicyProcessOptionsInput, PrincipalsInput, PrincipalsInputTypeEnum, PrincipalsListItem, PrincipalsListItemInput, PromiseHttpLibrary, PublishMetadataListItem, PublishMetadataListItemTypeEnum, PublishMetadataRequest, PutVariableValuesRequest, PutVariableValuesRequestOperationEnum, QueryGetDecomposedQueryRequest, QueryGetDecomposedQueryRequestNlsRequest, RecipientDetails, RecipientDetailsInput, RegionalSettingsInput, RegionalSettingsInputCurrencyFormatEnum, RegionalSettingsInputDateFormatLocaleEnum, RegionalSettingsInputNumberFormatLocaleEnum, RegionalSettingsInputUserLocaleEnum, RepoConfigObject, PromiseReportsApi as ReportsApi, RequestBody, RequestContext, RequiredError, ResetUserPasswordRequest, ResponseActivationURL, ResponseBody, ResponseContext, ResponseCopyObject, ResponseCustomAction, ResponseFailedEntities, ResponseFailedEntity, ResponseIncompleteEntities, ResponseIncompleteEntity, ResponseMessage, ResponseMessageMessageTypeEnum, ResponseMessageVisualizationTypeEnum, ResponsePostUpgradeFailedEntities, ResponsePostUpgradeFailedEntity, ResponseSchedule, ResponseScheduleRun, ResponseSuccessfulEntities, ResponseSuccessfulEntity, ResponseWorksheetToModelConversion, RevertCommitRequest, RevertCommitRequestRevertPolicyEnum, RevertResponse, RevertedMetadata, RevokeRefreshTokensRequest, RevokeRefreshTokensResponse, RevokeTokenRequest, RiseGQLArgWrapper, RiseSetter, Role, RoleResponse, RoleResponsePermissionEnum, RoleResponsePrivilegesEnum, PromiseRolesApi as RolesApi, RuntimeFilter, RuntimeFilters, RuntimeFiltersOperatorEnum, RuntimeParamOverride, RuntimeParameters, RuntimeSort, RuntimeSorts, RuntimeSortsOrderEnum, ScheduleHistoryRunsOptionsInput, PromiseSchedulesApi as SchedulesApi, SchedulesPdfOptionsInput, SchedulesPdfOptionsInputPageSizeEnum, SchemaObject, Scope, ScriptSrcUrls, ScriptSrcUrlsInput, SearchAuthSettingsRequest, SearchAuthSettingsRequestAuthTypeEnum, SearchAuthSettingsRequestScopeEnum, SearchAuthSettingsResponse, SearchAuthSettingsResponseAuthTypeEnum, SearchCalendarsRequest, SearchCalendarsRequestSortOptions, SearchCalendarsRequestSortOptionsFieldNameEnum, SearchCalendarsRequestSortOptionsOrderEnum, SearchChannelHistoryRequest, SearchChannelHistoryRequestChannelStatusEnum, SearchChannelHistoryRequestChannelTypeEnum, SearchChannelHistoryResponse, SearchCollectionsRequest, SearchCollectionsRequestSortOptions, SearchCollectionsRequestSortOptionsFieldNameEnum, SearchCollectionsRequestSortOptionsOrderEnum, SearchCommitsRequest, SearchCommitsRequestMetadataTypeEnum, SearchCommunicationChannelPreferencesRequest, SearchCommunicationChannelPreferencesRequestClusterPreferencesEnum, SearchConfigRequest, SearchConnectionRequest, SearchConnectionRequestAuthenticationTypeEnum, SearchConnectionRequestDataWarehouseObjectTypeEnum, SearchConnectionRequestDataWarehouseTypesEnum, SearchConnectionRequestSortOptions, SearchConnectionRequestSortOptionsFieldNameEnum, SearchConnectionRequestSortOptionsOrderEnum, SearchConnectionResponse, SearchConnectionResponseDataWarehouseTypeEnum, SearchCustomActionsRequest, SearchCustomActionsRequestDefaultActionConfig, SearchCustomActionsRequestTypeEnum, SearchDataRequest, SearchDataRequestDataFormatEnum, SearchDataResponse, SearchEmailCustomizationRequest, SearchMetadataRequest, SearchMetadataRequestDependentObjectVersionEnum, SearchMetadataRequestFavoriteObjectOptions, SearchMetadataRequestLiveboardResponseVersionEnum, SearchMetadataRequestSortOptions, SearchMetadataRequestSortOptionsFieldNameEnum, SearchMetadataRequestSortOptionsOrderEnum, SearchOrgsRequest, SearchOrgsRequestStatusEnum, SearchOrgsRequestVisibilityEnum, SearchRoleResponse, SearchRoleResponsePermissionEnum, SearchRoleResponsePrivilegesEnum, SearchRolesRequest, SearchRolesRequestPermissionsEnum, SearchRolesRequestPrivilegesEnum, SearchSchedulesRequest, SearchSchedulesRequestHistoryRunsOptions, SearchSchedulesRequestSortOptions, SearchSecuritySettingsRequest, SearchSecuritySettingsRequestScopeEnum, SearchTagsRequest, SearchUserGroupsRequest, SearchUserGroupsRequestPrivilegesEnum, SearchUserGroupsRequestSortOptions, SearchUserGroupsRequestSortOptionsFieldNameEnum, SearchUserGroupsRequestSortOptionsOrderEnum, SearchUserGroupsRequestTypeEnum, SearchUserGroupsRequestVisibilityEnum, SearchUsersRequest, SearchUsersRequestAccountStatusEnum, SearchUsersRequestAccountTypeEnum, SearchUsersRequestPrivilegesEnum, SearchUsersRequestVisibilityEnum, SearchVariablesRequest, SearchVariablesRequestResponseContentEnum, SearchWebhookConfigurationsRequest, SearchWebhookConfigurationsRequestEventTypeEnum, SearchWebhookConfigurationsRequestSortOptions, SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum, SearchWebhookConfigurationsRequestSortOptionsOrderEnum, PromiseSecurityApi as SecurityApi, SecurityAuthentication, SecuritySettingsClusterPreferences, SecuritySettingsClusterPreferencesInput, SecuritySettingsClusterPreferencesTrustedAuthStatusEnum, SecuritySettingsOrgDetails, SecuritySettingsOrgPreferences, SecuritySettingsOrgPreferencesInput, SecuritySettingsOrgPreferencesTrustedAuthStatusEnum, SecuritySettingsResponse, SelfDecodingBody, SendAgentConversationMessageRequest, SendAgentConversationMessageStreamingRequest, SendAgentMessageRequest, SendAgentMessageResponse, SendAgentMessageStreamingRequest, SendMessageRequest, ServerConfiguration, SetNLInstructionsRequest, ShareMetadataRequest, ShareMetadataRequestMetadataTypeEnum, ShareMetadataTypeInput, ShareMetadataTypeInputTypeEnum, SharePermissionsInput, SharePermissionsInputContentShareModeEnum, SharePermissionsInputShareModeEnum, SingleAnswerRequest, SortOption, SortOptionFieldNameEnum, SortOptionInput, SortOptionInputFieldNameEnum, SortOptionInputOrderEnum, SortOptionOrderEnum, SortOptions, SortOptionsFieldNameEnum, SortOptionsOrderEnum, SortingOptions, SqlQuery, SqlQueryResponse, SqlQueryResponseMetadataTypeEnum, StorageConfig, StorageConfigInput, StorageDestination, StorageDestinationInput, StorageDestinationInputStorageTypeEnum, StorageDestinationStorageTypeEnum, SyncMetadataRequest, SyncMetadataRequestSyncAttributesEnum, SyncMetadataResponse, SyncMetadataResponseStatusEnum, PromiseSystemApi as SystemApi, SystemConfig, SystemInfo, SystemOverrideInfo, Table, Tag, TagMetadataTypeInput, TagMetadataTypeInputTypeEnum, PromiseTagsApi as TagsApi, TemplatePropertiesInputCreate, PromiseThoughtSpotRestApi as ThoughtSpotRestApi, Token, TokenAccessScopeObject, TokenAccessScopeObjectTypeEnum, TokenProvider, TokenValidationResponse, URL, URLInput, URLInputMandatory, UnassignTagRequest, UnparameterizeMetadataRequest, UnparameterizeMetadataRequestFieldTypeEnum, UnparameterizeMetadataRequestMetadataTypeEnum, UnpublishMetadataRequest, UpdateCalendarRequest, UpdateCalendarRequestCalendarTypeEnum, UpdateCalendarRequestMonthOffsetEnum, UpdateCalendarRequestStartDayOfWeekEnum, UpdateCalendarRequestTableReference, UpdateCalendarRequestUpdateMethodEnum, UpdateCollectionRequest, UpdateCollectionRequestOperationEnum, UpdateColumnSecurityRulesRequest, UpdateConfigRequest, UpdateConnectionConfigurationRequest, UpdateConnectionConfigurationRequestAuthenticationTypeEnum, UpdateConnectionConfigurationRequestPolicyProcessesEnum, UpdateConnectionConfigurationRequestPolicyTypeEnum, UpdateConnectionRequest, UpdateConnectionStatusRequest, UpdateConnectionStatusRequestStatusEnum, UpdateConnectionV2Request, UpdateCustomActionRequest, UpdateCustomActionRequestActionDetails, UpdateCustomActionRequestDefaultActionConfig, UpdateCustomActionRequestOperationEnum, UpdateEmailCustomizationRequest, UpdateMetadataHeaderRequest, UpdateMetadataObjIdRequest, UpdateObjIdInput, UpdateObjIdInputTypeEnum, UpdateOrgRequest, UpdateOrgRequestOperationEnum, UpdateRoleRequest, UpdateRoleRequestPrivilegesEnum, UpdateScheduleRequest, UpdateScheduleRequestFileFormatEnum, UpdateScheduleRequestFrequency, UpdateScheduleRequestLiveboardOptions, UpdateScheduleRequestMetadataTypeEnum, UpdateScheduleRequestPdfOptions, UpdateScheduleRequestPdfOptionsPageSizeEnum, UpdateScheduleRequestRecipientDetails, UpdateScheduleRequestStatusEnum, UpdateScheduleRequestTimeZoneEnum, UpdateSystemConfigRequest, UpdateTagRequest, UpdateUserGroupRequest, UpdateUserGroupRequestOperationEnum, UpdateUserGroupRequestPrivilegesEnum, UpdateUserGroupRequestTypeEnum, UpdateUserGroupRequestVisibilityEnum, UpdateUserRequest, UpdateUserRequestAccountStatusEnum, UpdateUserRequestAccountTypeEnum, UpdateUserRequestOperationEnum, UpdateUserRequestPreferredLocaleEnum, UpdateUserRequestVisibilityEnum, UpdateVariableRequest, UpdateVariableValuesRequest, UpdateWebhookConfigurationRequest, UpdateWebhookConfigurationRequestEventsEnum, User, UserAccountStatusEnum, UserAccountTypeEnum, UserGroup, UserGroupResponse, UserGroupResponseParentTypeEnum, UserGroupResponseTypeEnum, UserGroupResponseVisibilityEnum, UserInfo, UserObject, UserObjectTypeEnum, UserParameterOptions, UserParentTypeEnum, UserPrincipal, UserVisibilityEnum, PromiseUsersApi as UsersApi, ValidateCommunicationChannelRequest, ValidateCommunicationChannelRequestChannelTypeEnum, ValidateCommunicationChannelRequestEventTypeEnum, ValidateMergeRequest, ValidateTokenRequest, ValueScopeInput, ValueScopeInputPrincipalTypeEnum, Variable, PromiseVariableApi as VariableApi, VariableDetailInput, VariableDetailInputTypeEnum, VariableOrgInfo, VariablePutAssignmentInput, VariablePutAssignmentInputPrincipalTypeEnum, VariableUpdateAssignmentInput, VariableUpdateAssignmentInputOperationEnum, VariableUpdateScopeInput, VariableUpdateScopeInputPrincipalTypeEnum, VariableValue, VariableValuePrincipalTypeEnum, VariableValues, VariableVariableTypeEnum, PromiseVersionControlApi as VersionControlApi, WebhookAuthApiKey, WebhookAuthApiKeyInput, WebhookAuthBasicAuth, WebhookAuthBasicAuthInput, WebhookAuthOAuth2, WebhookAuthOAuth2Input, WebhookAuthentication, WebhookAuthenticationInput, WebhookDeleteFailure, WebhookDeleteResponse, WebhookKeyValuePair, WebhookKeyValuePairInput, WebhookOrg, WebhookPagination, WebhookResponse, WebhookResponseEventsEnum, WebhookSearchResponse, WebhookSignatureVerification, WebhookSignatureVerificationAlgorithmEnum, WebhookSignatureVerificationInput, WebhookSignatureVerificationInputAlgorithmEnum, WebhookSignatureVerificationInputTypeEnum, WebhookSignatureVerificationTypeEnum, WebhookSortOptionsInput, WebhookSortOptionsInputFieldNameEnum, WebhookSortOptionsInputOrderEnum, WebhookUser, PromiseWebhooksApi as WebhooksApi, configureAuthMethods, createBasicConfig, createBearerAuthenticationConfig, createConfiguration, server1, servers, wrapHttpLibrary }; diff --git a/sdks/typescript/dist/index.d.ts b/sdks/typescript/dist/index.d.ts index 0dc944ed5..e8883f81f 100644 --- a/sdks/typescript/dist/index.d.ts +++ b/sdks/typescript/dist/index.d.ts @@ -1289,6 +1289,46 @@ declare class AnswerDataResponse { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class AnswerPngOptionsInput { + /** + * Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or later + */ + 'x_resolution'?: number | null; + /** + * Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl or later + */ + 'y_resolution'?: number | null; + /** + * The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later + */ + 'scaling'?: number | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -1405,7 +1445,7 @@ declare class TagMetadataTypeInput { }[]; constructor(); } -type TagMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type TagMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -1522,6 +1562,239 @@ declare class AssociateMetadataInputCreate { } type AssociateMetadataInputCreateTypeEnum = "VISUALIZATION" | "ANSWER" | "WORKSHEET"; +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* An auth settings access token. +*/ +declare class AuthSettingsAccessToken { + /** + * The plaintext token key value. + */ + 'key': string; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** +* Cluster-level authentication preferences. +*/ +declare class AuthClusterPreferences { + /** + * Whether authentication is enabled or disabled at the cluster level. + */ + 'auth_status'?: AuthClusterPreferencesAuthStatusEnum | null; + /** + * Cluster-level access tokens. Absent when no token is configured. + */ + 'access_tokens'?: Array | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthClusterPreferencesAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Input for cluster-level auth configuration. +*/ +declare class AuthClusterPreferencesInput { + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: AuthClusterPreferencesInputAuthStatusEnum | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthClusterPreferencesInputAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Org identifier returned in auth settings search results. +*/ +declare class AuthOrgInfo { + /** + * Unique identifier of the org. + */ + 'id': number; + /** + * Name of the org. + */ + 'name'?: string | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** +* Org-level authentication preferences for a single org. +*/ +declare class AuthOrgPreference { + 'org'?: AuthOrgInfo; + /** + * Whether authentication is enabled or disabled for this org. + */ + 'auth_status'?: AuthOrgPreferenceAuthStatusEnum | null; + /** + * Org-level access tokens. Absent when no token is configured or the feature flag is off. + */ + 'access_tokens'?: Array | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthOrgPreferenceAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Input for org-level auth configuration. +*/ +declare class AuthOrgPreferenceInput { + /** + * Unique ID or name of the org to configure. + */ + 'org_identifier': string; + /** + * Enable or disable authentication for this org. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: AuthOrgPreferenceInputAuthStatusEnum | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type AuthOrgPreferenceInputAuthStatusEnum = "ENABLED" | "DISABLED"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -3361,6 +3634,81 @@ type CommunicationChannelValidateResponseChannelTypeEnum = "WEBHOOK"; type CommunicationChannelValidateResponseEventTypeEnum = "LIVEBOARD_SCHEDULE"; type CommunicationChannelValidateResponseResultCodeEnum = "SUCCESS" | "FAILED" | "PARTIAL_SUCCESS"; +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** +* Cluster-level authentication preferences. Omit to leave the existing cluster setting unchanged. +*/ +declare class ConfigureAuthSettingsRequestClusterPreferences { + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum = "ENABLED" | "DISABLED"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +declare class ConfigureAuthSettingsRequest { + /** + * Type of authentication mechanism to configure. Currently supports TRUSTED_AUTH. + */ + 'auth_type': ConfigureAuthSettingsRequestAuthTypeEnum; + 'cluster_preferences'?: ConfigureAuthSettingsRequestClusterPreferences; + /** + * Org-level authentication preferences. Each entry identifies an org and the desired status. Omit to leave existing org settings unchanged. + */ + 'org_preferences'?: Array; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type ConfigureAuthSettingsRequestAuthTypeEnum = "TRUSTED_AUTH"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -3839,7 +4187,7 @@ declare class ConnectionConfigurationResponse { constructor(); } type ConnectionConfigurationResponsePolicyProcessesEnum = "SAGE_INDEXING" | "ROW_COUNT_STATS"; -type ConnectionConfigurationResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type ConnectionConfigurationResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; type ConnectionConfigurationResponsePolicyTypeEnum = "NO_POLICY" | "PRINCIPALS" | "PROCESSES"; /** @@ -4690,7 +5038,7 @@ declare class CreateConnectionRequest { }[]; constructor(); } -type CreateConnectionRequestDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type CreateConnectionRequestDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; /** * ThoughtSpot Public REST API @@ -4735,7 +5083,7 @@ declare class CreateConnectionResponse { }[]; constructor(); } -type CreateConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type CreateConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; /** * ThoughtSpot Public REST API @@ -5213,7 +5561,7 @@ declare class CreateRoleRequest { }[]; constructor(); } -type CreateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type CreateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; /** * ThoughtSpot Public REST API @@ -5404,7 +5752,7 @@ declare class CreateScheduleRequestPdfOptions { }[]; constructor(); } -type CreateScheduleRequestPdfOptionsPageSizeEnum = "A4"; +type CreateScheduleRequestPdfOptionsPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -5649,7 +5997,7 @@ declare class CreateUserGroupRequest { }[]; constructor(); } -type CreateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type CreateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type CreateUserGroupRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type CreateUserGroupRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; @@ -7527,9 +7875,42 @@ declare class EurekaRelevantQuestion { */ 'data_source_identifier'?: string | null; /** - * Display name of the data source on which this query can be run on. + * Display name of the data source on which this query can be run on. + */ + 'data_source_name'?: string | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +declare class EurekaGetRelevantQuestionsResponse { + /** + * List of relevant questions that can be run on their respective data sources. */ - 'data_source_name'?: string | null; + 'relevant_questions'?: Array | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7557,12 +7938,11 @@ declare class EurekaRelevantQuestion { * https://openapi-generator.tech * Do not edit the class manually. */ - -declare class EurekaGetRelevantQuestionsResponse { +declare class EurekaSetNLInstructionsResponse { /** - * List of relevant questions that can be run on their respective data sources. + * Success status of the operation. */ - 'relevant_questions'?: Array | null; + 'success': boolean; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7590,11 +7970,15 @@ declare class EurekaGetRelevantQuestionsResponse { * https://openapi-generator.tech * Do not edit the class manually. */ -declare class EurekaSetNLInstructionsResponse { +declare class ExcludeMetadataListItemInput { /** - * Success status of the operation. + * Unique ID or name of the metadata. */ - 'success': boolean; + 'identifier': string; + /** + * Type of metadata. Required if the name of the object is set as identifier. This attribute is optional when the object GUID is specified as identifier. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view 4. LOGICAL_COLUMN for a column of any data object such as table, worksheet or view 5. CONNECTION for connection objects 6. TAG for tag objects 7. USER for user objects 8. USER_GROUP for group objects 9. LOGICAL_RELATIONSHIP for table or worksheet joins. A join combines from one or several data object by using matching values. 10. INSIGHT_SPEC for SpotIQ objects + */ + 'type': ExcludeMetadataListItemInputTypeEnum; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7610,6 +7994,7 @@ declare class EurekaSetNLInstructionsResponse { }[]; constructor(); } +type ExcludeMetadataListItemInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "TAG" | "USER" | "USER_GROUP" | "LOGICAL_RELATIONSHIP" | "INSIGHT_SPEC"; /** * ThoughtSpot Public REST API @@ -7622,15 +8007,22 @@ declare class EurekaSetNLInstructionsResponse { * https://openapi-generator.tech * Do not edit the class manually. */ -declare class ExcludeMetadataListItemInput { +/** +* Options for PNG export. Version: 26.6.0.cl or later +*/ +declare class ExportAnswerReportRequestPngOptions { /** - * Unique ID or name of the metadata. + * Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or later */ - 'identifier': string; + 'x_resolution'?: number | null; /** - * Type of metadata. Required if the name of the object is set as identifier. This attribute is optional when the object GUID is specified as identifier. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view 4. LOGICAL_COLUMN for a column of any data object such as table, worksheet or view 5. CONNECTION for connection objects 6. TAG for tag objects 7. USER for user objects 8. USER_GROUP for group objects 9. LOGICAL_RELATIONSHIP for table or worksheet joins. A join combines from one or several data object by using matching values. 10. INSIGHT_SPEC for SpotIQ objects + * Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl or later */ - 'type': ExcludeMetadataListItemInputTypeEnum; + 'y_resolution'?: number | null; + /** + * The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later + */ + 'scaling'?: number | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7646,7 +8038,6 @@ declare class ExcludeMetadataListItemInput { }[]; constructor(); } -type ExcludeMetadataListItemInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "TAG" | "USER" | "USER_GROUP" | "LOGICAL_RELATIONSHIP" | "INSIGHT_SPEC"; /** * ThoughtSpot Public REST API @@ -7741,6 +8132,15 @@ declare class ExportAnswerReportRequest { */ 'runtime_param_override'?: any; 'regional_settings'?: ExportAnswerReportRequestRegionalSettings; + 'png_options'?: ExportAnswerReportRequestPngOptions; + /** + * GUID or name of the personalised view of the Answer object. Version: 26.6.0.cl or later + */ + 'personalised_view_identifier'?: string; + /** + * Type of the answer being exported. Version: 26.6.0.cl or later + */ + 'type'?: ExportAnswerReportRequestTypeEnum; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -7757,6 +8157,7 @@ declare class ExportAnswerReportRequest { constructor(); } type ExportAnswerReportRequestFileFormatEnum = "CSV" | "PDF" | "XLSX" | "PNG"; +type ExportAnswerReportRequestTypeEnum = "SAVED" | "PINNED"; /** * ThoughtSpot Public REST API @@ -8865,7 +9266,7 @@ declare class PermissionsMetadataTypeInput { }[]; constructor(); } -type PermissionsMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type PermissionsMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -8915,7 +9316,7 @@ declare class FetchPermissionsOfPrincipalsRequest { }[]; constructor(); } -type FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum = "ALL" | "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum = "ALL" | "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -10209,7 +10610,7 @@ declare class GroupsImportListInput { }[]; constructor(); } -type GroupsImportListInputPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type GroupsImportListInputPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type GroupsImportListInputTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type GroupsImportListInputVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; @@ -12009,7 +12410,7 @@ declare class PdfOptions { }[]; constructor(); } -type PdfOptionsPageSizeEnum = "A4"; +type PdfOptionsPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -13858,7 +14259,7 @@ declare class RoleResponse { }[]; constructor(); } -type RoleResponsePrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type RoleResponsePrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type RoleResponsePermissionEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; /** @@ -14072,7 +14473,7 @@ declare class SchedulesPdfOptionsInput { }[]; constructor(); } -type SchedulesPdfOptionsInputPageSizeEnum = "A4"; +type SchedulesPdfOptionsInputPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -14114,6 +14515,86 @@ declare class Scope { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class SearchAuthSettingsRequest { + /** + * Type of authentication mechanism to retrieve settings for. Currently supports TRUSTED_AUTH. + */ + 'auth_type': SearchAuthSettingsRequestAuthTypeEnum; + /** + * Scope of auth settings to retrieve. When absent, both cluster and org settings are returned (subject to caller privileges). Set to CLUSTER to retrieve only cluster-level settings, or ORG to retrieve only org-level settings. + */ + 'scope'?: SearchAuthSettingsRequestScopeEnum; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type SearchAuthSettingsRequestAuthTypeEnum = "TRUSTED_AUTH"; +type SearchAuthSettingsRequestScopeEnum = "CLUSTER" | "ORG"; + +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** +* Response for searchAuthSettings. Contains auth type and cluster/org-level preferences. +*/ +declare class SearchAuthSettingsResponse { + /** + * Type of authentication mechanism returned. + */ + 'auth_type'?: SearchAuthSettingsResponseAuthTypeEnum | null; + 'cluster_preferences'?: AuthClusterPreferences; + /** + * Org-level authentication configurations. Present when org scope was requested and per-org auth feature is enabled. + */ + 'org_preferences'?: Array | null; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type SearchAuthSettingsResponseAuthTypeEnum = "TRUSTED_AUTH"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -14616,7 +15097,7 @@ declare class SearchConnectionRequest { }[]; constructor(); } -type SearchConnectionRequestDataWarehouseTypesEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type SearchConnectionRequestDataWarehouseTypesEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; type SearchConnectionRequestDataWarehouseObjectTypeEnum = "DATABASE" | "SCHEMA" | "TABLE" | "COLUMN"; type SearchConnectionRequestAuthenticationTypeEnum = "SERVICE_ACCOUNT" | "OAUTH" | "IAM" | "EXTOAUTH" | "OAUTH_WITH_SERVICE_PRINCIPAL" | "PERSONAL_ACCESS_TOKEN" | "KEY_PAIR" | "OAUTH_WITH_PKCE" | "EXTOAUTH_WITH_PKCE" | "OAUTH_WITH_PEZ" | "OAUTH_CLIENT_CREDENTIALS"; @@ -14669,7 +15150,7 @@ declare class SearchConnectionResponse { }[]; constructor(); } -type SearchConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE"; +type SearchConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE"; /** * ThoughtSpot Public REST API @@ -15248,7 +15729,7 @@ declare class SearchRoleResponse { }[]; constructor(); } -type SearchRoleResponsePrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchRoleResponsePrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchRoleResponsePermissionEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; /** @@ -15310,7 +15791,7 @@ declare class SearchRolesRequest { }[]; constructor(); } -type SearchRolesRequestPrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchRolesRequestPrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchRolesRequestPermissionsEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; /** @@ -15649,7 +16130,7 @@ declare class SearchUserGroupsRequest { }[]; constructor(); } -type SearchUserGroupsRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchUserGroupsRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchUserGroupsRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type SearchUserGroupsRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; @@ -15763,7 +16244,7 @@ declare class SearchUsersRequest { constructor(); } type SearchUsersRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; -type SearchUsersRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type SearchUsersRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type SearchUsersRequestAccountTypeEnum = "LOCAL_USER" | "LDAP_USER" | "SAML_USER" | "OIDC_USER" | "REMOTE_USER"; type SearchUsersRequestAccountStatusEnum = "ACTIVE" | "INACTIVE" | "EXPIRED" | "LOCKED" | "PENDING" | "SUSPENDED"; @@ -16031,6 +16512,10 @@ declare class SecuritySettingsClusterPreferences { */ 'saml_redirect_urls'?: Array | null; 'non_embed_access'?: ClusterNonEmbedAccess; + /** + * Trusted authentication status at the cluster level. Version: 26.6.0.cl or later + */ + 'trusted_auth_status'?: SecuritySettingsClusterPreferencesTrustedAuthStatusEnum | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -16046,6 +16531,7 @@ declare class SecuritySettingsClusterPreferences { }[]; constructor(); } +type SecuritySettingsClusterPreferencesTrustedAuthStatusEnum = "ENABLED" | "DISABLED"; /** * ThoughtSpot Public REST API @@ -16154,6 +16640,10 @@ declare class SecuritySettingsOrgPreferences { */ 'cors_whitelisted_urls'?: Array | null; 'non_embed_access'?: OrgNonEmbedAccess; + /** + * Trusted authentication status for this org. Version: 26.6.0.cl or later + */ + 'trusted_auth_status'?: SecuritySettingsOrgPreferencesTrustedAuthStatusEnum | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -16169,6 +16659,7 @@ declare class SecuritySettingsOrgPreferences { }[]; constructor(); } +type SecuritySettingsOrgPreferencesTrustedAuthStatusEnum = "ENABLED" | "DISABLED"; /** * ThoughtSpot Public REST API @@ -16483,7 +16974,7 @@ declare class ShareMetadataTypeInput { }[]; constructor(); } -type ShareMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type ShareMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -16503,6 +16994,10 @@ declare class SharePermissionsInput { * Type of access to the shared object */ 'share_mode': SharePermissionsInputShareModeEnum; + /** + * Content share mode for collections. Controls access to objects within the collection. Only applicable when sharing COLLECTION metadata type. + */ + 'content_share_mode'?: SharePermissionsInputContentShareModeEnum | null; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -16519,6 +17014,7 @@ declare class SharePermissionsInput { constructor(); } type SharePermissionsInputShareModeEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; +type SharePermissionsInputContentShareModeEnum = "READ_ONLY" | "MODIFY"; /** * ThoughtSpot Public REST API @@ -16534,7 +17030,7 @@ type SharePermissionsInputShareModeEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS"; declare class ShareMetadataRequest { /** - * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection + * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection 6. Collection */ 'metadata_type'?: ShareMetadataRequestMetadataTypeEnum; /** @@ -16588,7 +17084,7 @@ declare class ShareMetadataRequest { }[]; constructor(); } -type ShareMetadataRequestMetadataTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION"; +type ShareMetadataRequestMetadataTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION"; /** * ThoughtSpot Public REST API @@ -18045,6 +18541,39 @@ declare class UpdateConnectionRequest { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class UpdateConnectionStatusRequest { + /** + * Status to set for the connection. Use ACTIVATED to enable the connection or DEACTIVATED to disable it. + */ + 'status'?: UpdateConnectionStatusRequestStatusEnum; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} +type UpdateConnectionStatusRequestStatusEnum = "ACTIVATED" | "DEACTIVATED"; + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -18446,7 +18975,7 @@ declare class UpdateRoleRequest { }[]; constructor(); } -type UpdateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type UpdateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; /** * ThoughtSpot Public REST API @@ -18582,7 +19111,7 @@ declare class UpdateScheduleRequestPdfOptions { }[]; constructor(); } -type UpdateScheduleRequestPdfOptionsPageSizeEnum = "A4"; +type UpdateScheduleRequestPdfOptionsPageSizeEnum = "A4" | "TAB_BASED"; /** * ThoughtSpot Public REST API @@ -18832,7 +19361,7 @@ declare class UpdateUserGroupRequest { }[]; constructor(); } -type UpdateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; +type UpdateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER"; type UpdateUserGroupRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP"; type UpdateUserGroupRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE"; type UpdateUserGroupRequestOperationEnum = "ADD" | "REMOVE" | "REPLACE"; @@ -19684,6 +20213,42 @@ declare class ValidateTokenRequest { constructor(); } +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +declare class VariableOrgInfo { + /** + * ID of the Org. + */ + 'id': number; + /** + * Name of the Org. + */ + 'name': string; + static readonly discriminator: string | undefined; + static readonly attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + format: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + format: string; + }[]; + constructor(); +} + /** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -19777,6 +20342,7 @@ declare class Variable { * Values of the variable */ 'values'?: Array | null; + 'org'?: VariableOrgInfo; static readonly discriminator: string | undefined; static readonly attributeTypeMap: Array<{ name: string; @@ -20719,6 +21285,11 @@ declare class AIApiRequestFactory extends BaseAPIRequestFactory { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; } declare class AIApiResponseProcessor { /** @@ -20825,12 +21396,25 @@ declare class AIApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ singleAnswer(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response: ResponseContext): Promise; } /** * no description */ declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -20868,6 +21452,11 @@ declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -20875,6 +21464,14 @@ declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { validateToken(validateTokenRequest: ValidateTokenRequest, _options?: Configuration): Promise; } declare class AuthenticationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + configureAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -20939,6 +21536,14 @@ declare class AuthenticationApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ revokeToken(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + searchAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -21122,6 +21727,12 @@ declare class ConnectionsApiRequestFactory extends BaseAPIRequestFactory { * @param updateConnectionRequest */ updateConnection(updateConnectionRequest: UpdateConnectionRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -21202,6 +21813,14 @@ declare class ConnectionsApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ updateConnection(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -22513,6 +23132,11 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param commitBranchRequest */ commitBranch(commitBranchRequest: CommitBranchRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -22988,6 +23612,11 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -23132,6 +23761,11 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -23186,6 +23820,12 @@ declare class ThoughtSpotRestApiRequestFactory extends BaseAPIRequestFactory { * @param updateConnectionConfigurationRequest */ updateConnectionConfiguration(configurationIdentifier: string, updateConnectionConfigurationRequest: UpdateConnectionConfigurationRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -23347,6 +23987,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ commitBranch(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + configureAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -24091,6 +24739,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ revokeToken(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + searchAuthSettings(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -24315,6 +24971,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ singleAnswer(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -24395,6 +25059,14 @@ declare class ThoughtSpotRestApiResponseProcessor { * @throws ApiException if the response code was not in [200, 299] */ updateConnectionConfiguration(response: ResponseContext): Promise; + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -25056,11 +25728,21 @@ declare class PromiseAIApi { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; } declare class PromiseAuthenticationApi { private api; constructor(configuration: Configuration, requestFactory?: AuthenticationApiRequestFactory, responseProcessor?: AuthenticationApiResponseProcessor); + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -25098,6 +25780,11 @@ declare class PromiseAuthenticationApi { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -25207,6 +25894,12 @@ declare class PromiseConnectionsApi { * @param updateConnectionRequest */ updateConnection(updateConnectionRequest: UpdateConnectionRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -25779,6 +26472,11 @@ declare class PromiseThoughtSpotRestApi { * @param commitBranchRequest */ commitBranch(commitBranchRequest: CommitBranchRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -26254,6 +26952,11 @@ declare class PromiseThoughtSpotRestApi { * @param revokeTokenRequest */ revokeToken(revokeTokenRequest: RevokeTokenRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise; /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -26398,6 +27101,11 @@ declare class PromiseThoughtSpotRestApi { * @param singleAnswerRequest */ singleAnswer(singleAnswerRequest: SingleAnswerRequest, _options?: Configuration): Promise; + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier: string, _options?: Configuration): Promise; /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -26452,6 +27160,12 @@ declare class PromiseThoughtSpotRestApi { * @param updateConnectionConfigurationRequest */ updateConnectionConfiguration(configurationIdentifier: string, updateConnectionConfigurationRequest: UpdateConnectionConfigurationRequest, _options?: Configuration): Promise; + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise; /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -26794,4 +27508,4 @@ declare const createBearerAuthenticationConfig: (thoughtSpotHost: string, paramO */ declare const createBasicConfig: (thoughtSpotHost: string, options?: ConfigurationOptions) => Configuration; -export { PromiseAIApi as AIApi, AIContext, APIKey, APIKeyInput, AccessToken, ActionConfig, ActionConfigInput, ActionConfigInputCreate, ActionConfigInputCreatePositionEnum, ActionConfigInputPositionEnum, ActionDetails, ActionDetailsInput, ActionDetailsInputCreate, ActivateUserRequest, AgentConversation, AnswerContent, AnswerDataResponse, ApiException, ApiKeyConfiguration, AssignChangeAuthorRequest, AssignTagRequest, AssociateMetadataInput, AssociateMetadataInputCreate, AssociateMetadataInputCreateTypeEnum, AssociateMetadataInputTypeEnum, AuthMethods, AuthMethodsConfiguration, Authentication, PromiseAuthenticationApi as AuthenticationApi, AuthenticationInput, Author, AuthorMetadataTypeInput, AuthorMetadataTypeInputTypeEnum, AuthorType, AwsS3Config, AwsS3ConfigInput, BaseServerConfiguration, BasicAuth, BasicAuthInput, BearerAuthAuthentication, CALLBACK, CALLBACKInput, CALLBACKInputMandatory, CalendarResponse, ChangeUserPasswordRequest, ChannelHistoryEventInfo, ChannelHistoryEventInfoTypeEnum, ChannelHistoryEventInput, ChannelHistoryEventInputTypeEnum, ChannelHistoryJob, ChannelHistoryJobStatusEnum, ChannelValidationAwsS3Info, ChannelValidationDetail, ChannelValidationDetailStatusEnum, ChannelValidationDetailValidationStepEnum, ClusterNonEmbedAccess, ClusterNonEmbedAccessInput, Collection, CollectionDeleteResponse, CollectionDeleteTypeIdentifiers, CollectionEntityIdentifier, CollectionMetadataInput, CollectionMetadataInputTypeEnum, CollectionMetadataItem, CollectionSearchResponse, PromiseCollectionsApi as CollectionsApi, Column, ColumnSecurityRule, ColumnSecurityRuleColumn, ColumnSecurityRuleGroup, ColumnSecurityRuleGroupOperation, ColumnSecurityRuleGroupOperationOperationEnum, ColumnSecurityRuleResponse, ColumnSecurityRuleSourceTable, ColumnSecurityRuleTableInput, ColumnSecurityRuleUpdate, CommitBranchRequest, CommitFileType, CommitHistoryResponse, CommitResponse, CommiterType, CommunicationChannelPreferencesResponse, CommunicationChannelValidateResponse, CommunicationChannelValidateResponseChannelTypeEnum, CommunicationChannelValidateResponseEventTypeEnum, CommunicationChannelValidateResponseResultCodeEnum, Configuration, ConfigureCommunicationChannelPreferencesRequest, ConfigureSecuritySettingsRequest, ConfigureSecuritySettingsRequestClusterPreferences, ConnectionConfigurationResponse, ConnectionConfigurationResponseDataWarehouseTypeEnum, ConnectionConfigurationResponsePolicyProcessesEnum, ConnectionConfigurationResponsePolicyTypeEnum, ConnectionConfigurationSearchRequest, ConnectionConfigurationSearchRequestPolicyTypeEnum, PromiseConnectionConfigurationsApi as ConnectionConfigurationsApi, ConnectionInput, PromiseConnectionsApi as ConnectionsApi, ContextPayloadV2Input, ContextPayloadV2InputTypeEnum, Conversation, ConversationSettingsInput, ConvertWorksheetToModelRequest, CopyObjectRequest, CopyObjectRequestTypeEnum, CreateAgentConversationRequest, CreateAgentConversationRequestConversationSettings, CreateAgentConversationRequestMetadataContext, CreateAgentConversationRequestMetadataContextTypeEnum, CreateCalendarRequest, CreateCalendarRequestCalendarTypeEnum, CreateCalendarRequestCreationMethodEnum, CreateCalendarRequestMonthOffsetEnum, CreateCalendarRequestStartDayOfWeekEnum, CreateCalendarRequestTableReference, CreateCollectionRequest, CreateConfigRequest, CreateConnectionConfigurationRequest, CreateConnectionConfigurationRequestAuthenticationTypeEnum, CreateConnectionConfigurationRequestPolicyProcessOptions, CreateConnectionConfigurationRequestPolicyProcessesEnum, CreateConnectionConfigurationRequestPolicyTypeEnum, CreateConnectionRequest, CreateConnectionRequestDataWarehouseTypeEnum, CreateConnectionResponse, CreateConnectionResponseDataWarehouseTypeEnum, CreateConversationRequest, CreateCustomActionRequest, CreateCustomActionRequestActionDetails, CreateCustomActionRequestDefaultActionConfig, CreateEmailCustomizationRequest, CreateEmailCustomizationRequestTemplateProperties, CreateEmailCustomizationResponse, CreateOrgRequest, CreateRoleRequest, CreateRoleRequestPrivilegesEnum, CreateScheduleRequest, CreateScheduleRequestFileFormatEnum, CreateScheduleRequestFrequency, CreateScheduleRequestLiveboardOptions, CreateScheduleRequestMetadataTypeEnum, CreateScheduleRequestPdfOptions, CreateScheduleRequestPdfOptionsPageSizeEnum, CreateScheduleRequestRecipientDetails, CreateScheduleRequestTimeZoneEnum, CreateTagRequest, CreateUserGroupRequest, CreateUserGroupRequestPrivilegesEnum, CreateUserGroupRequestTypeEnum, CreateUserGroupRequestVisibilityEnum, CreateUserRequest, CreateUserRequestAccountStatusEnum, CreateUserRequestAccountTypeEnum, CreateUserRequestPreferredLocaleEnum, CreateUserRequestVisibilityEnum, CreateVariableRequest, CreateVariableRequestDataTypeEnum, CreateVariableRequestTypeEnum, CreateWebhookConfigurationRequest, CreateWebhookConfigurationRequestAuthentication, CreateWebhookConfigurationRequestEventsEnum, CreateWebhookConfigurationRequestSignatureVerification, CreateWebhookConfigurationRequestSignatureVerificationAlgorithmEnum, CreateWebhookConfigurationRequestSignatureVerificationTypeEnum, CreateWebhookConfigurationRequestStorageDestination, CreateWebhookConfigurationRequestStorageDestinationStorageTypeEnum, CronExpression, CronExpressionInput, CspSettings, CspSettingsInput, PromiseCustomActionApi as CustomActionApi, CustomActionMetadataTypeInput, CustomActionMetadataTypeInputTypeEnum, PromiseCustomCalendarsApi as CustomCalendarsApi, PromiseDBTApi as DBTApi, PromiseDataApi as DataApi, DataSource, DataSourceContextInput, DataWarehouseObjectInput, DataWarehouseObjects, Database, DbtSearchResponse, DeactivateUserRequest, DefaultActionConfig, DefaultActionConfigInput, DefaultActionConfigInputCreate, DefaultActionConfigSearchInput, DeleteCollectionRequest, DeleteConfigRequest, DeleteConnectionConfigurationRequest, DeleteConnectionRequest, DeleteMetadataRequest, DeleteMetadataTypeInput, DeleteMetadataTypeInputTypeEnum, DeleteOrgEmailCustomizationRequest, DeleteVariablesRequest, DeleteWebhookConfigurationsRequest, DeployCommitRequest, DeployCommitRequestDeployPolicyEnum, DeployCommitRequestDeployTypeEnum, DeployResponse, PromiseEmailCustomizationApi as EmailCustomizationApi, EntityHeader, ErrorResponse, EurekaDataSourceSuggestionResponse, EurekaDecomposeQueryResponse, EurekaGetNLInstructionsResponse, EurekaGetRelevantQuestionsResponse, EurekaLLMDecomposeQueryResponse, EurekaLLMSuggestedQuery, EurekaRelevantQuestion, EurekaSetNLInstructionsResponse, EventChannelConfig, EventChannelConfigChannelsEnum, EventChannelConfigEventTypeEnum, EventChannelConfigInput, EventChannelConfigInputChannelsEnum, EventChannelConfigInputEventTypeEnum, ExcludeMetadataListItemInput, ExcludeMetadataListItemInputTypeEnum, ExportAnswerReportRequest, ExportAnswerReportRequestFileFormatEnum, ExportAnswerReportRequestRegionalSettings, ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum, ExportAnswerReportRequestRegionalSettingsDateFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsUserLocaleEnum, ExportLiveboardReportRequest, ExportLiveboardReportRequestFileFormatEnum, ExportLiveboardReportRequestPdfOptions, ExportLiveboardReportRequestPdfOptionsPageOrientationEnum, ExportLiveboardReportRequestPdfOptionsPageSizeEnum, ExportLiveboardReportRequestPngOptions, ExportMetadataTMLBatchedRequest, ExportMetadataTMLBatchedRequestEdocFormatEnum, ExportMetadataTMLBatchedRequestMetadataTypeEnum, ExportMetadataTMLRequest, ExportMetadataTMLRequestEdocFormatEnum, ExportMetadataTMLRequestExportOptions, ExportMetadataTMLRequestExportSchemaVersionEnum, ExportMetadataTypeInput, ExportMetadataTypeInputTypeEnum, ExportOptions, ExternalTableInput, FavoriteMetadataInput, FavoriteMetadataInputTypeEnum, FavoriteMetadataItem, FavoriteMetadataItemTypeEnum, FavoriteObjectOptionsInput, FetchAnswerDataRequest, FetchAnswerDataRequestDataFormatEnum, FetchAnswerSqlQueryRequest, FetchAsyncImportTaskStatusRequest, FetchAsyncImportTaskStatusRequestTaskStatusEnum, FetchColumnSecurityRulesRequest, FetchConnectionDiffStatusResponse, FetchLiveboardDataRequest, FetchLiveboardDataRequestDataFormatEnum, FetchLiveboardSqlQueryRequest, FetchLogsRequest, FetchLogsRequestLogTypeEnum, FetchObjectPrivilegesRequest, FetchPermissionsOfPrincipalsRequest, FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum, FetchPermissionsOnMetadataRequest, FilterRules, FilterRulesOperatorEnum, ForceLogoutUsersRequest, Frequency, FrequencyInput, GenerateCSVRequest, GenerateCSVRequestCalendarTypeEnum, GenerateCSVRequestMonthOffsetEnum, GenerateCSVRequestStartDayOfWeekEnum, GenericInfo, GetAsyncImportStatusResponse, GetCustomAccessTokenRequest, GetCustomAccessTokenRequestPersistOptionEnum, GetDataSourceSuggestionsRequest, GetFullAccessTokenRequest, GetFullAccessTokenRequestUserParameters, GetNLInstructionsRequest, GetObjectAccessTokenRequest, GetRelevantQuestionsRequest, GetRelevantQuestionsRequestAiContext, GetRelevantQuestionsRequestMetadataContext, GetTokenResponse, GroupInfo, GroupObject, PromiseGroupsApi as GroupsApi, GroupsImportListInput, GroupsImportListInputPrivilegesEnum, GroupsImportListInputTypeEnum, GroupsImportListInputVisibilityEnum, HeaderAttributeInput, HeaderUpdateInput, HeaderUpdateInputTypeEnum, HttpBasicConfiguration, HttpBearerConfiguration, HttpException, HttpFile, HttpLibrary, HttpMethod, ImportEPackAsyncTaskStatus, ImportEPackAsyncTaskStatusImportPolicyEnum, ImportEPackAsyncTaskStatusTaskStatusEnum, ImportMetadataTMLAsyncRequest, ImportMetadataTMLAsyncRequestImportPolicyEnum, ImportMetadataTMLRequest, ImportMetadataTMLRequestImportPolicyEnum, ImportUser, ImportUserAccountStatusEnum, ImportUserAccountTypeEnum, ImportUserGroupsRequest, ImportUserGroupsResponse, ImportUserPreferredLocaleEnum, ImportUserType, ImportUserVisibilityEnum, ImportUsersRequest, ImportUsersResponse, InputEurekaNLSRequest, IsomorphicFetchHttpLibrary, JWTMetadataObject, JWTMetadataObjectTypeEnum, JWTParameter, JWTUserOptions, JWTUserOptionsFull, JobRecipient, JobRecipientTypeEnum, PromiseJobsApi as JobsApi, LiveboardContent, LiveboardDataResponse, LiveboardOptions, LiveboardOptionsInput, PromiseLogApi as LogApi, LogResponse, LoginRequest, ManageObjectPrivilegeRequest, ManageObjectPrivilegeRequestMetadataTypeEnum, ManageObjectPrivilegeRequestObjectPrivilegeTypesEnum, ManageObjectPrivilegeRequestOperationEnum, PromiseMetadataApi as MetadataApi, MetadataAssociationItem, MetadataContext, MetadataInput, MetadataInputTypeEnum, MetadataListItemInput, MetadataListItemInputSubtypesEnum, MetadataListItemInputTypeEnum, MetadataObject, MetadataObjectTypeEnum, MetadataResponse, MetadataResponseTypeEnum, MetadataSearchResponse, MetadataSearchResponseMetadataTypeEnum, MetadataSearchSortOptions, MetadataSearchSortOptionsFieldNameEnum, MetadataSearchSortOptionsOrderEnum, PromiseMiddleware as Middleware, ModelTableList, NLInstructionsInfo, NLInstructionsInfoInput, NLInstructionsInfoInputScopeEnum, NLInstructionsInfoScopeEnum, OAuth2Configuration, ObjectIDAndName, ObjectPrivilegesMetadataInput, ObjectPrivilegesMetadataInputTypeEnum, ObjectPrivilegesOfMetadataResponse, Org, OrgChannelConfigInput, OrgChannelConfigInputOperationEnum, OrgChannelConfigInputResetEventsEnum, OrgChannelConfigResponse, OrgDetails, OrgInfo, OrgNonEmbedAccess, OrgNonEmbedAccessInput, OrgPreferenceSearchCriteriaInput, OrgPreferenceSearchCriteriaInputEventTypesEnum, OrgResponse, OrgResponseStatusEnum, OrgResponseVisibilityEnum, OrgType, PromiseOrgsApi as OrgsApi, ParameterValues, ParameterizeMetadataFieldsRequest, ParameterizeMetadataFieldsRequestFieldTypeEnum, ParameterizeMetadataFieldsRequestMetadataTypeEnum, ParameterizeMetadataRequest, ParameterizeMetadataRequestFieldTypeEnum, ParameterizeMetadataRequestMetadataTypeEnum, ParametersListItem, ParametersListItemInput, PdfOptions, PdfOptionsInput, PdfOptionsInputPageOrientationEnum, PdfOptionsInputPageSizeEnum, PdfOptionsPageSizeEnum, PermissionInput, PermissionInputShareModeEnum, PermissionOfMetadataResponse, PermissionOfPrincipalsResponse, PermissionsMetadataTypeInput, PermissionsMetadataTypeInputTypeEnum, PngOptionsInput, PolicyProcessOptions, PolicyProcessOptionsInput, PrincipalsInput, PrincipalsInputTypeEnum, PrincipalsListItem, PrincipalsListItemInput, PromiseHttpLibrary, PublishMetadataListItem, PublishMetadataListItemTypeEnum, PublishMetadataRequest, PutVariableValuesRequest, PutVariableValuesRequestOperationEnum, QueryGetDecomposedQueryRequest, QueryGetDecomposedQueryRequestNlsRequest, RecipientDetails, RecipientDetailsInput, RegionalSettingsInput, RegionalSettingsInputCurrencyFormatEnum, RegionalSettingsInputDateFormatLocaleEnum, RegionalSettingsInputNumberFormatLocaleEnum, RegionalSettingsInputUserLocaleEnum, RepoConfigObject, PromiseReportsApi as ReportsApi, RequestBody, RequestContext, RequiredError, ResetUserPasswordRequest, ResponseActivationURL, ResponseBody, ResponseContext, ResponseCopyObject, ResponseCustomAction, ResponseFailedEntities, ResponseFailedEntity, ResponseIncompleteEntities, ResponseIncompleteEntity, ResponseMessage, ResponseMessageMessageTypeEnum, ResponseMessageVisualizationTypeEnum, ResponsePostUpgradeFailedEntities, ResponsePostUpgradeFailedEntity, ResponseSchedule, ResponseScheduleRun, ResponseSuccessfulEntities, ResponseSuccessfulEntity, ResponseWorksheetToModelConversion, RevertCommitRequest, RevertCommitRequestRevertPolicyEnum, RevertResponse, RevertedMetadata, RevokeRefreshTokensRequest, RevokeRefreshTokensResponse, RevokeTokenRequest, RiseGQLArgWrapper, RiseSetter, Role, RoleResponse, RoleResponsePermissionEnum, RoleResponsePrivilegesEnum, PromiseRolesApi as RolesApi, RuntimeFilter, RuntimeFilters, RuntimeFiltersOperatorEnum, RuntimeParamOverride, RuntimeParameters, RuntimeSort, RuntimeSorts, RuntimeSortsOrderEnum, ScheduleHistoryRunsOptionsInput, PromiseSchedulesApi as SchedulesApi, SchedulesPdfOptionsInput, SchedulesPdfOptionsInputPageSizeEnum, SchemaObject, Scope, ScriptSrcUrls, ScriptSrcUrlsInput, SearchCalendarsRequest, SearchCalendarsRequestSortOptions, SearchCalendarsRequestSortOptionsFieldNameEnum, SearchCalendarsRequestSortOptionsOrderEnum, SearchChannelHistoryRequest, SearchChannelHistoryRequestChannelStatusEnum, SearchChannelHistoryRequestChannelTypeEnum, SearchChannelHistoryResponse, SearchCollectionsRequest, SearchCollectionsRequestSortOptions, SearchCollectionsRequestSortOptionsFieldNameEnum, SearchCollectionsRequestSortOptionsOrderEnum, SearchCommitsRequest, SearchCommitsRequestMetadataTypeEnum, SearchCommunicationChannelPreferencesRequest, SearchCommunicationChannelPreferencesRequestClusterPreferencesEnum, SearchConfigRequest, SearchConnectionRequest, SearchConnectionRequestAuthenticationTypeEnum, SearchConnectionRequestDataWarehouseObjectTypeEnum, SearchConnectionRequestDataWarehouseTypesEnum, SearchConnectionRequestSortOptions, SearchConnectionRequestSortOptionsFieldNameEnum, SearchConnectionRequestSortOptionsOrderEnum, SearchConnectionResponse, SearchConnectionResponseDataWarehouseTypeEnum, SearchCustomActionsRequest, SearchCustomActionsRequestDefaultActionConfig, SearchCustomActionsRequestTypeEnum, SearchDataRequest, SearchDataRequestDataFormatEnum, SearchDataResponse, SearchEmailCustomizationRequest, SearchMetadataRequest, SearchMetadataRequestDependentObjectVersionEnum, SearchMetadataRequestFavoriteObjectOptions, SearchMetadataRequestLiveboardResponseVersionEnum, SearchMetadataRequestSortOptions, SearchMetadataRequestSortOptionsFieldNameEnum, SearchMetadataRequestSortOptionsOrderEnum, SearchOrgsRequest, SearchOrgsRequestStatusEnum, SearchOrgsRequestVisibilityEnum, SearchRoleResponse, SearchRoleResponsePermissionEnum, SearchRoleResponsePrivilegesEnum, SearchRolesRequest, SearchRolesRequestPermissionsEnum, SearchRolesRequestPrivilegesEnum, SearchSchedulesRequest, SearchSchedulesRequestHistoryRunsOptions, SearchSchedulesRequestSortOptions, SearchSecuritySettingsRequest, SearchSecuritySettingsRequestScopeEnum, SearchTagsRequest, SearchUserGroupsRequest, SearchUserGroupsRequestPrivilegesEnum, SearchUserGroupsRequestSortOptions, SearchUserGroupsRequestSortOptionsFieldNameEnum, SearchUserGroupsRequestSortOptionsOrderEnum, SearchUserGroupsRequestTypeEnum, SearchUserGroupsRequestVisibilityEnum, SearchUsersRequest, SearchUsersRequestAccountStatusEnum, SearchUsersRequestAccountTypeEnum, SearchUsersRequestPrivilegesEnum, SearchUsersRequestVisibilityEnum, SearchVariablesRequest, SearchVariablesRequestResponseContentEnum, SearchWebhookConfigurationsRequest, SearchWebhookConfigurationsRequestEventTypeEnum, SearchWebhookConfigurationsRequestSortOptions, SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum, SearchWebhookConfigurationsRequestSortOptionsOrderEnum, PromiseSecurityApi as SecurityApi, SecurityAuthentication, SecuritySettingsClusterPreferences, SecuritySettingsClusterPreferencesInput, SecuritySettingsOrgDetails, SecuritySettingsOrgPreferences, SecuritySettingsOrgPreferencesInput, SecuritySettingsResponse, SelfDecodingBody, SendAgentConversationMessageRequest, SendAgentConversationMessageStreamingRequest, SendAgentMessageRequest, SendAgentMessageResponse, SendAgentMessageStreamingRequest, SendMessageRequest, ServerConfiguration, SetNLInstructionsRequest, ShareMetadataRequest, ShareMetadataRequestMetadataTypeEnum, ShareMetadataTypeInput, ShareMetadataTypeInputTypeEnum, SharePermissionsInput, SharePermissionsInputShareModeEnum, SingleAnswerRequest, SortOption, SortOptionFieldNameEnum, SortOptionInput, SortOptionInputFieldNameEnum, SortOptionInputOrderEnum, SortOptionOrderEnum, SortOptions, SortOptionsFieldNameEnum, SortOptionsOrderEnum, SortingOptions, SqlQuery, SqlQueryResponse, SqlQueryResponseMetadataTypeEnum, StorageConfig, StorageConfigInput, StorageDestination, StorageDestinationInput, StorageDestinationInputStorageTypeEnum, StorageDestinationStorageTypeEnum, SyncMetadataRequest, SyncMetadataRequestSyncAttributesEnum, SyncMetadataResponse, SyncMetadataResponseStatusEnum, PromiseSystemApi as SystemApi, SystemConfig, SystemInfo, SystemOverrideInfo, Table, Tag, TagMetadataTypeInput, TagMetadataTypeInputTypeEnum, PromiseTagsApi as TagsApi, TemplatePropertiesInputCreate, PromiseThoughtSpotRestApi as ThoughtSpotRestApi, Token, TokenAccessScopeObject, TokenAccessScopeObjectTypeEnum, TokenProvider, TokenValidationResponse, URL, URLInput, URLInputMandatory, UnassignTagRequest, UnparameterizeMetadataRequest, UnparameterizeMetadataRequestFieldTypeEnum, UnparameterizeMetadataRequestMetadataTypeEnum, UnpublishMetadataRequest, UpdateCalendarRequest, UpdateCalendarRequestCalendarTypeEnum, UpdateCalendarRequestMonthOffsetEnum, UpdateCalendarRequestStartDayOfWeekEnum, UpdateCalendarRequestTableReference, UpdateCalendarRequestUpdateMethodEnum, UpdateCollectionRequest, UpdateCollectionRequestOperationEnum, UpdateColumnSecurityRulesRequest, UpdateConfigRequest, UpdateConnectionConfigurationRequest, UpdateConnectionConfigurationRequestAuthenticationTypeEnum, UpdateConnectionConfigurationRequestPolicyProcessesEnum, UpdateConnectionConfigurationRequestPolicyTypeEnum, UpdateConnectionRequest, UpdateConnectionV2Request, UpdateCustomActionRequest, UpdateCustomActionRequestActionDetails, UpdateCustomActionRequestDefaultActionConfig, UpdateCustomActionRequestOperationEnum, UpdateEmailCustomizationRequest, UpdateMetadataHeaderRequest, UpdateMetadataObjIdRequest, UpdateObjIdInput, UpdateObjIdInputTypeEnum, UpdateOrgRequest, UpdateOrgRequestOperationEnum, UpdateRoleRequest, UpdateRoleRequestPrivilegesEnum, UpdateScheduleRequest, UpdateScheduleRequestFileFormatEnum, UpdateScheduleRequestFrequency, UpdateScheduleRequestLiveboardOptions, UpdateScheduleRequestMetadataTypeEnum, UpdateScheduleRequestPdfOptions, UpdateScheduleRequestPdfOptionsPageSizeEnum, UpdateScheduleRequestRecipientDetails, UpdateScheduleRequestStatusEnum, UpdateScheduleRequestTimeZoneEnum, UpdateSystemConfigRequest, UpdateTagRequest, UpdateUserGroupRequest, UpdateUserGroupRequestOperationEnum, UpdateUserGroupRequestPrivilegesEnum, UpdateUserGroupRequestTypeEnum, UpdateUserGroupRequestVisibilityEnum, UpdateUserRequest, UpdateUserRequestAccountStatusEnum, UpdateUserRequestAccountTypeEnum, UpdateUserRequestOperationEnum, UpdateUserRequestPreferredLocaleEnum, UpdateUserRequestVisibilityEnum, UpdateVariableRequest, UpdateVariableValuesRequest, UpdateWebhookConfigurationRequest, UpdateWebhookConfigurationRequestEventsEnum, User, UserAccountStatusEnum, UserAccountTypeEnum, UserGroup, UserGroupResponse, UserGroupResponseParentTypeEnum, UserGroupResponseTypeEnum, UserGroupResponseVisibilityEnum, UserInfo, UserObject, UserObjectTypeEnum, UserParameterOptions, UserParentTypeEnum, UserPrincipal, UserVisibilityEnum, PromiseUsersApi as UsersApi, ValidateCommunicationChannelRequest, ValidateCommunicationChannelRequestChannelTypeEnum, ValidateCommunicationChannelRequestEventTypeEnum, ValidateMergeRequest, ValidateTokenRequest, ValueScopeInput, ValueScopeInputPrincipalTypeEnum, Variable, PromiseVariableApi as VariableApi, VariableDetailInput, VariableDetailInputTypeEnum, VariablePutAssignmentInput, VariablePutAssignmentInputPrincipalTypeEnum, VariableUpdateAssignmentInput, VariableUpdateAssignmentInputOperationEnum, VariableUpdateScopeInput, VariableUpdateScopeInputPrincipalTypeEnum, VariableValue, VariableValuePrincipalTypeEnum, VariableValues, VariableVariableTypeEnum, PromiseVersionControlApi as VersionControlApi, WebhookAuthApiKey, WebhookAuthApiKeyInput, WebhookAuthBasicAuth, WebhookAuthBasicAuthInput, WebhookAuthOAuth2, WebhookAuthOAuth2Input, WebhookAuthentication, WebhookAuthenticationInput, WebhookDeleteFailure, WebhookDeleteResponse, WebhookKeyValuePair, WebhookKeyValuePairInput, WebhookOrg, WebhookPagination, WebhookResponse, WebhookResponseEventsEnum, WebhookSearchResponse, WebhookSignatureVerification, WebhookSignatureVerificationAlgorithmEnum, WebhookSignatureVerificationInput, WebhookSignatureVerificationInputAlgorithmEnum, WebhookSignatureVerificationInputTypeEnum, WebhookSignatureVerificationTypeEnum, WebhookSortOptionsInput, WebhookSortOptionsInputFieldNameEnum, WebhookSortOptionsInputOrderEnum, WebhookUser, PromiseWebhooksApi as WebhooksApi, configureAuthMethods, createBasicConfig, createBearerAuthenticationConfig, createConfiguration, server1, servers, wrapHttpLibrary }; +export { PromiseAIApi as AIApi, AIContext, APIKey, APIKeyInput, AccessToken, ActionConfig, ActionConfigInput, ActionConfigInputCreate, ActionConfigInputCreatePositionEnum, ActionConfigInputPositionEnum, ActionDetails, ActionDetailsInput, ActionDetailsInputCreate, ActivateUserRequest, AgentConversation, AnswerContent, AnswerDataResponse, AnswerPngOptionsInput, ApiException, ApiKeyConfiguration, AssignChangeAuthorRequest, AssignTagRequest, AssociateMetadataInput, AssociateMetadataInputCreate, AssociateMetadataInputCreateTypeEnum, AssociateMetadataInputTypeEnum, AuthClusterPreferences, AuthClusterPreferencesAuthStatusEnum, AuthClusterPreferencesInput, AuthClusterPreferencesInputAuthStatusEnum, AuthMethods, AuthMethodsConfiguration, AuthOrgInfo, AuthOrgPreference, AuthOrgPreferenceAuthStatusEnum, AuthOrgPreferenceInput, AuthOrgPreferenceInputAuthStatusEnum, AuthSettingsAccessToken, Authentication, PromiseAuthenticationApi as AuthenticationApi, AuthenticationInput, Author, AuthorMetadataTypeInput, AuthorMetadataTypeInputTypeEnum, AuthorType, AwsS3Config, AwsS3ConfigInput, BaseServerConfiguration, BasicAuth, BasicAuthInput, BearerAuthAuthentication, CALLBACK, CALLBACKInput, CALLBACKInputMandatory, CalendarResponse, ChangeUserPasswordRequest, ChannelHistoryEventInfo, ChannelHistoryEventInfoTypeEnum, ChannelHistoryEventInput, ChannelHistoryEventInputTypeEnum, ChannelHistoryJob, ChannelHistoryJobStatusEnum, ChannelValidationAwsS3Info, ChannelValidationDetail, ChannelValidationDetailStatusEnum, ChannelValidationDetailValidationStepEnum, ClusterNonEmbedAccess, ClusterNonEmbedAccessInput, Collection, CollectionDeleteResponse, CollectionDeleteTypeIdentifiers, CollectionEntityIdentifier, CollectionMetadataInput, CollectionMetadataInputTypeEnum, CollectionMetadataItem, CollectionSearchResponse, PromiseCollectionsApi as CollectionsApi, Column, ColumnSecurityRule, ColumnSecurityRuleColumn, ColumnSecurityRuleGroup, ColumnSecurityRuleGroupOperation, ColumnSecurityRuleGroupOperationOperationEnum, ColumnSecurityRuleResponse, ColumnSecurityRuleSourceTable, ColumnSecurityRuleTableInput, ColumnSecurityRuleUpdate, CommitBranchRequest, CommitFileType, CommitHistoryResponse, CommitResponse, CommiterType, CommunicationChannelPreferencesResponse, CommunicationChannelValidateResponse, CommunicationChannelValidateResponseChannelTypeEnum, CommunicationChannelValidateResponseEventTypeEnum, CommunicationChannelValidateResponseResultCodeEnum, Configuration, ConfigureAuthSettingsRequest, ConfigureAuthSettingsRequestAuthTypeEnum, ConfigureAuthSettingsRequestClusterPreferences, ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum, ConfigureCommunicationChannelPreferencesRequest, ConfigureSecuritySettingsRequest, ConfigureSecuritySettingsRequestClusterPreferences, ConnectionConfigurationResponse, ConnectionConfigurationResponseDataWarehouseTypeEnum, ConnectionConfigurationResponsePolicyProcessesEnum, ConnectionConfigurationResponsePolicyTypeEnum, ConnectionConfigurationSearchRequest, ConnectionConfigurationSearchRequestPolicyTypeEnum, PromiseConnectionConfigurationsApi as ConnectionConfigurationsApi, ConnectionInput, PromiseConnectionsApi as ConnectionsApi, ContextPayloadV2Input, ContextPayloadV2InputTypeEnum, Conversation, ConversationSettingsInput, ConvertWorksheetToModelRequest, CopyObjectRequest, CopyObjectRequestTypeEnum, CreateAgentConversationRequest, CreateAgentConversationRequestConversationSettings, CreateAgentConversationRequestMetadataContext, CreateAgentConversationRequestMetadataContextTypeEnum, CreateCalendarRequest, CreateCalendarRequestCalendarTypeEnum, CreateCalendarRequestCreationMethodEnum, CreateCalendarRequestMonthOffsetEnum, CreateCalendarRequestStartDayOfWeekEnum, CreateCalendarRequestTableReference, CreateCollectionRequest, CreateConfigRequest, CreateConnectionConfigurationRequest, CreateConnectionConfigurationRequestAuthenticationTypeEnum, CreateConnectionConfigurationRequestPolicyProcessOptions, CreateConnectionConfigurationRequestPolicyProcessesEnum, CreateConnectionConfigurationRequestPolicyTypeEnum, CreateConnectionRequest, CreateConnectionRequestDataWarehouseTypeEnum, CreateConnectionResponse, CreateConnectionResponseDataWarehouseTypeEnum, CreateConversationRequest, CreateCustomActionRequest, CreateCustomActionRequestActionDetails, CreateCustomActionRequestDefaultActionConfig, CreateEmailCustomizationRequest, CreateEmailCustomizationRequestTemplateProperties, CreateEmailCustomizationResponse, CreateOrgRequest, CreateRoleRequest, CreateRoleRequestPrivilegesEnum, CreateScheduleRequest, CreateScheduleRequestFileFormatEnum, CreateScheduleRequestFrequency, CreateScheduleRequestLiveboardOptions, CreateScheduleRequestMetadataTypeEnum, CreateScheduleRequestPdfOptions, CreateScheduleRequestPdfOptionsPageSizeEnum, CreateScheduleRequestRecipientDetails, CreateScheduleRequestTimeZoneEnum, CreateTagRequest, CreateUserGroupRequest, CreateUserGroupRequestPrivilegesEnum, CreateUserGroupRequestTypeEnum, CreateUserGroupRequestVisibilityEnum, CreateUserRequest, CreateUserRequestAccountStatusEnum, CreateUserRequestAccountTypeEnum, CreateUserRequestPreferredLocaleEnum, CreateUserRequestVisibilityEnum, CreateVariableRequest, CreateVariableRequestDataTypeEnum, CreateVariableRequestTypeEnum, CreateWebhookConfigurationRequest, CreateWebhookConfigurationRequestAuthentication, CreateWebhookConfigurationRequestEventsEnum, CreateWebhookConfigurationRequestSignatureVerification, CreateWebhookConfigurationRequestSignatureVerificationAlgorithmEnum, CreateWebhookConfigurationRequestSignatureVerificationTypeEnum, CreateWebhookConfigurationRequestStorageDestination, CreateWebhookConfigurationRequestStorageDestinationStorageTypeEnum, CronExpression, CronExpressionInput, CspSettings, CspSettingsInput, PromiseCustomActionApi as CustomActionApi, CustomActionMetadataTypeInput, CustomActionMetadataTypeInputTypeEnum, PromiseCustomCalendarsApi as CustomCalendarsApi, PromiseDBTApi as DBTApi, PromiseDataApi as DataApi, DataSource, DataSourceContextInput, DataWarehouseObjectInput, DataWarehouseObjects, Database, DbtSearchResponse, DeactivateUserRequest, DefaultActionConfig, DefaultActionConfigInput, DefaultActionConfigInputCreate, DefaultActionConfigSearchInput, DeleteCollectionRequest, DeleteConfigRequest, DeleteConnectionConfigurationRequest, DeleteConnectionRequest, DeleteMetadataRequest, DeleteMetadataTypeInput, DeleteMetadataTypeInputTypeEnum, DeleteOrgEmailCustomizationRequest, DeleteVariablesRequest, DeleteWebhookConfigurationsRequest, DeployCommitRequest, DeployCommitRequestDeployPolicyEnum, DeployCommitRequestDeployTypeEnum, DeployResponse, PromiseEmailCustomizationApi as EmailCustomizationApi, EntityHeader, ErrorResponse, EurekaDataSourceSuggestionResponse, EurekaDecomposeQueryResponse, EurekaGetNLInstructionsResponse, EurekaGetRelevantQuestionsResponse, EurekaLLMDecomposeQueryResponse, EurekaLLMSuggestedQuery, EurekaRelevantQuestion, EurekaSetNLInstructionsResponse, EventChannelConfig, EventChannelConfigChannelsEnum, EventChannelConfigEventTypeEnum, EventChannelConfigInput, EventChannelConfigInputChannelsEnum, EventChannelConfigInputEventTypeEnum, ExcludeMetadataListItemInput, ExcludeMetadataListItemInputTypeEnum, ExportAnswerReportRequest, ExportAnswerReportRequestFileFormatEnum, ExportAnswerReportRequestPngOptions, ExportAnswerReportRequestRegionalSettings, ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum, ExportAnswerReportRequestRegionalSettingsDateFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum, ExportAnswerReportRequestRegionalSettingsUserLocaleEnum, ExportAnswerReportRequestTypeEnum, ExportLiveboardReportRequest, ExportLiveboardReportRequestFileFormatEnum, ExportLiveboardReportRequestPdfOptions, ExportLiveboardReportRequestPdfOptionsPageOrientationEnum, ExportLiveboardReportRequestPdfOptionsPageSizeEnum, ExportLiveboardReportRequestPngOptions, ExportMetadataTMLBatchedRequest, ExportMetadataTMLBatchedRequestEdocFormatEnum, ExportMetadataTMLBatchedRequestMetadataTypeEnum, ExportMetadataTMLRequest, ExportMetadataTMLRequestEdocFormatEnum, ExportMetadataTMLRequestExportOptions, ExportMetadataTMLRequestExportSchemaVersionEnum, ExportMetadataTypeInput, ExportMetadataTypeInputTypeEnum, ExportOptions, ExternalTableInput, FavoriteMetadataInput, FavoriteMetadataInputTypeEnum, FavoriteMetadataItem, FavoriteMetadataItemTypeEnum, FavoriteObjectOptionsInput, FetchAnswerDataRequest, FetchAnswerDataRequestDataFormatEnum, FetchAnswerSqlQueryRequest, FetchAsyncImportTaskStatusRequest, FetchAsyncImportTaskStatusRequestTaskStatusEnum, FetchColumnSecurityRulesRequest, FetchConnectionDiffStatusResponse, FetchLiveboardDataRequest, FetchLiveboardDataRequestDataFormatEnum, FetchLiveboardSqlQueryRequest, FetchLogsRequest, FetchLogsRequestLogTypeEnum, FetchObjectPrivilegesRequest, FetchPermissionsOfPrincipalsRequest, FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum, FetchPermissionsOnMetadataRequest, FilterRules, FilterRulesOperatorEnum, ForceLogoutUsersRequest, Frequency, FrequencyInput, GenerateCSVRequest, GenerateCSVRequestCalendarTypeEnum, GenerateCSVRequestMonthOffsetEnum, GenerateCSVRequestStartDayOfWeekEnum, GenericInfo, GetAsyncImportStatusResponse, GetCustomAccessTokenRequest, GetCustomAccessTokenRequestPersistOptionEnum, GetDataSourceSuggestionsRequest, GetFullAccessTokenRequest, GetFullAccessTokenRequestUserParameters, GetNLInstructionsRequest, GetObjectAccessTokenRequest, GetRelevantQuestionsRequest, GetRelevantQuestionsRequestAiContext, GetRelevantQuestionsRequestMetadataContext, GetTokenResponse, GroupInfo, GroupObject, PromiseGroupsApi as GroupsApi, GroupsImportListInput, GroupsImportListInputPrivilegesEnum, GroupsImportListInputTypeEnum, GroupsImportListInputVisibilityEnum, HeaderAttributeInput, HeaderUpdateInput, HeaderUpdateInputTypeEnum, HttpBasicConfiguration, HttpBearerConfiguration, HttpException, HttpFile, HttpLibrary, HttpMethod, ImportEPackAsyncTaskStatus, ImportEPackAsyncTaskStatusImportPolicyEnum, ImportEPackAsyncTaskStatusTaskStatusEnum, ImportMetadataTMLAsyncRequest, ImportMetadataTMLAsyncRequestImportPolicyEnum, ImportMetadataTMLRequest, ImportMetadataTMLRequestImportPolicyEnum, ImportUser, ImportUserAccountStatusEnum, ImportUserAccountTypeEnum, ImportUserGroupsRequest, ImportUserGroupsResponse, ImportUserPreferredLocaleEnum, ImportUserType, ImportUserVisibilityEnum, ImportUsersRequest, ImportUsersResponse, InputEurekaNLSRequest, IsomorphicFetchHttpLibrary, JWTMetadataObject, JWTMetadataObjectTypeEnum, JWTParameter, JWTUserOptions, JWTUserOptionsFull, JobRecipient, JobRecipientTypeEnum, PromiseJobsApi as JobsApi, LiveboardContent, LiveboardDataResponse, LiveboardOptions, LiveboardOptionsInput, PromiseLogApi as LogApi, LogResponse, LoginRequest, ManageObjectPrivilegeRequest, ManageObjectPrivilegeRequestMetadataTypeEnum, ManageObjectPrivilegeRequestObjectPrivilegeTypesEnum, ManageObjectPrivilegeRequestOperationEnum, PromiseMetadataApi as MetadataApi, MetadataAssociationItem, MetadataContext, MetadataInput, MetadataInputTypeEnum, MetadataListItemInput, MetadataListItemInputSubtypesEnum, MetadataListItemInputTypeEnum, MetadataObject, MetadataObjectTypeEnum, MetadataResponse, MetadataResponseTypeEnum, MetadataSearchResponse, MetadataSearchResponseMetadataTypeEnum, MetadataSearchSortOptions, MetadataSearchSortOptionsFieldNameEnum, MetadataSearchSortOptionsOrderEnum, PromiseMiddleware as Middleware, ModelTableList, NLInstructionsInfo, NLInstructionsInfoInput, NLInstructionsInfoInputScopeEnum, NLInstructionsInfoScopeEnum, OAuth2Configuration, ObjectIDAndName, ObjectPrivilegesMetadataInput, ObjectPrivilegesMetadataInputTypeEnum, ObjectPrivilegesOfMetadataResponse, Org, OrgChannelConfigInput, OrgChannelConfigInputOperationEnum, OrgChannelConfigInputResetEventsEnum, OrgChannelConfigResponse, OrgDetails, OrgInfo, OrgNonEmbedAccess, OrgNonEmbedAccessInput, OrgPreferenceSearchCriteriaInput, OrgPreferenceSearchCriteriaInputEventTypesEnum, OrgResponse, OrgResponseStatusEnum, OrgResponseVisibilityEnum, OrgType, PromiseOrgsApi as OrgsApi, ParameterValues, ParameterizeMetadataFieldsRequest, ParameterizeMetadataFieldsRequestFieldTypeEnum, ParameterizeMetadataFieldsRequestMetadataTypeEnum, ParameterizeMetadataRequest, ParameterizeMetadataRequestFieldTypeEnum, ParameterizeMetadataRequestMetadataTypeEnum, ParametersListItem, ParametersListItemInput, PdfOptions, PdfOptionsInput, PdfOptionsInputPageOrientationEnum, PdfOptionsInputPageSizeEnum, PdfOptionsPageSizeEnum, PermissionInput, PermissionInputShareModeEnum, PermissionOfMetadataResponse, PermissionOfPrincipalsResponse, PermissionsMetadataTypeInput, PermissionsMetadataTypeInputTypeEnum, PngOptionsInput, PolicyProcessOptions, PolicyProcessOptionsInput, PrincipalsInput, PrincipalsInputTypeEnum, PrincipalsListItem, PrincipalsListItemInput, PromiseHttpLibrary, PublishMetadataListItem, PublishMetadataListItemTypeEnum, PublishMetadataRequest, PutVariableValuesRequest, PutVariableValuesRequestOperationEnum, QueryGetDecomposedQueryRequest, QueryGetDecomposedQueryRequestNlsRequest, RecipientDetails, RecipientDetailsInput, RegionalSettingsInput, RegionalSettingsInputCurrencyFormatEnum, RegionalSettingsInputDateFormatLocaleEnum, RegionalSettingsInputNumberFormatLocaleEnum, RegionalSettingsInputUserLocaleEnum, RepoConfigObject, PromiseReportsApi as ReportsApi, RequestBody, RequestContext, RequiredError, ResetUserPasswordRequest, ResponseActivationURL, ResponseBody, ResponseContext, ResponseCopyObject, ResponseCustomAction, ResponseFailedEntities, ResponseFailedEntity, ResponseIncompleteEntities, ResponseIncompleteEntity, ResponseMessage, ResponseMessageMessageTypeEnum, ResponseMessageVisualizationTypeEnum, ResponsePostUpgradeFailedEntities, ResponsePostUpgradeFailedEntity, ResponseSchedule, ResponseScheduleRun, ResponseSuccessfulEntities, ResponseSuccessfulEntity, ResponseWorksheetToModelConversion, RevertCommitRequest, RevertCommitRequestRevertPolicyEnum, RevertResponse, RevertedMetadata, RevokeRefreshTokensRequest, RevokeRefreshTokensResponse, RevokeTokenRequest, RiseGQLArgWrapper, RiseSetter, Role, RoleResponse, RoleResponsePermissionEnum, RoleResponsePrivilegesEnum, PromiseRolesApi as RolesApi, RuntimeFilter, RuntimeFilters, RuntimeFiltersOperatorEnum, RuntimeParamOverride, RuntimeParameters, RuntimeSort, RuntimeSorts, RuntimeSortsOrderEnum, ScheduleHistoryRunsOptionsInput, PromiseSchedulesApi as SchedulesApi, SchedulesPdfOptionsInput, SchedulesPdfOptionsInputPageSizeEnum, SchemaObject, Scope, ScriptSrcUrls, ScriptSrcUrlsInput, SearchAuthSettingsRequest, SearchAuthSettingsRequestAuthTypeEnum, SearchAuthSettingsRequestScopeEnum, SearchAuthSettingsResponse, SearchAuthSettingsResponseAuthTypeEnum, SearchCalendarsRequest, SearchCalendarsRequestSortOptions, SearchCalendarsRequestSortOptionsFieldNameEnum, SearchCalendarsRequestSortOptionsOrderEnum, SearchChannelHistoryRequest, SearchChannelHistoryRequestChannelStatusEnum, SearchChannelHistoryRequestChannelTypeEnum, SearchChannelHistoryResponse, SearchCollectionsRequest, SearchCollectionsRequestSortOptions, SearchCollectionsRequestSortOptionsFieldNameEnum, SearchCollectionsRequestSortOptionsOrderEnum, SearchCommitsRequest, SearchCommitsRequestMetadataTypeEnum, SearchCommunicationChannelPreferencesRequest, SearchCommunicationChannelPreferencesRequestClusterPreferencesEnum, SearchConfigRequest, SearchConnectionRequest, SearchConnectionRequestAuthenticationTypeEnum, SearchConnectionRequestDataWarehouseObjectTypeEnum, SearchConnectionRequestDataWarehouseTypesEnum, SearchConnectionRequestSortOptions, SearchConnectionRequestSortOptionsFieldNameEnum, SearchConnectionRequestSortOptionsOrderEnum, SearchConnectionResponse, SearchConnectionResponseDataWarehouseTypeEnum, SearchCustomActionsRequest, SearchCustomActionsRequestDefaultActionConfig, SearchCustomActionsRequestTypeEnum, SearchDataRequest, SearchDataRequestDataFormatEnum, SearchDataResponse, SearchEmailCustomizationRequest, SearchMetadataRequest, SearchMetadataRequestDependentObjectVersionEnum, SearchMetadataRequestFavoriteObjectOptions, SearchMetadataRequestLiveboardResponseVersionEnum, SearchMetadataRequestSortOptions, SearchMetadataRequestSortOptionsFieldNameEnum, SearchMetadataRequestSortOptionsOrderEnum, SearchOrgsRequest, SearchOrgsRequestStatusEnum, SearchOrgsRequestVisibilityEnum, SearchRoleResponse, SearchRoleResponsePermissionEnum, SearchRoleResponsePrivilegesEnum, SearchRolesRequest, SearchRolesRequestPermissionsEnum, SearchRolesRequestPrivilegesEnum, SearchSchedulesRequest, SearchSchedulesRequestHistoryRunsOptions, SearchSchedulesRequestSortOptions, SearchSecuritySettingsRequest, SearchSecuritySettingsRequestScopeEnum, SearchTagsRequest, SearchUserGroupsRequest, SearchUserGroupsRequestPrivilegesEnum, SearchUserGroupsRequestSortOptions, SearchUserGroupsRequestSortOptionsFieldNameEnum, SearchUserGroupsRequestSortOptionsOrderEnum, SearchUserGroupsRequestTypeEnum, SearchUserGroupsRequestVisibilityEnum, SearchUsersRequest, SearchUsersRequestAccountStatusEnum, SearchUsersRequestAccountTypeEnum, SearchUsersRequestPrivilegesEnum, SearchUsersRequestVisibilityEnum, SearchVariablesRequest, SearchVariablesRequestResponseContentEnum, SearchWebhookConfigurationsRequest, SearchWebhookConfigurationsRequestEventTypeEnum, SearchWebhookConfigurationsRequestSortOptions, SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum, SearchWebhookConfigurationsRequestSortOptionsOrderEnum, PromiseSecurityApi as SecurityApi, SecurityAuthentication, SecuritySettingsClusterPreferences, SecuritySettingsClusterPreferencesInput, SecuritySettingsClusterPreferencesTrustedAuthStatusEnum, SecuritySettingsOrgDetails, SecuritySettingsOrgPreferences, SecuritySettingsOrgPreferencesInput, SecuritySettingsOrgPreferencesTrustedAuthStatusEnum, SecuritySettingsResponse, SelfDecodingBody, SendAgentConversationMessageRequest, SendAgentConversationMessageStreamingRequest, SendAgentMessageRequest, SendAgentMessageResponse, SendAgentMessageStreamingRequest, SendMessageRequest, ServerConfiguration, SetNLInstructionsRequest, ShareMetadataRequest, ShareMetadataRequestMetadataTypeEnum, ShareMetadataTypeInput, ShareMetadataTypeInputTypeEnum, SharePermissionsInput, SharePermissionsInputContentShareModeEnum, SharePermissionsInputShareModeEnum, SingleAnswerRequest, SortOption, SortOptionFieldNameEnum, SortOptionInput, SortOptionInputFieldNameEnum, SortOptionInputOrderEnum, SortOptionOrderEnum, SortOptions, SortOptionsFieldNameEnum, SortOptionsOrderEnum, SortingOptions, SqlQuery, SqlQueryResponse, SqlQueryResponseMetadataTypeEnum, StorageConfig, StorageConfigInput, StorageDestination, StorageDestinationInput, StorageDestinationInputStorageTypeEnum, StorageDestinationStorageTypeEnum, SyncMetadataRequest, SyncMetadataRequestSyncAttributesEnum, SyncMetadataResponse, SyncMetadataResponseStatusEnum, PromiseSystemApi as SystemApi, SystemConfig, SystemInfo, SystemOverrideInfo, Table, Tag, TagMetadataTypeInput, TagMetadataTypeInputTypeEnum, PromiseTagsApi as TagsApi, TemplatePropertiesInputCreate, PromiseThoughtSpotRestApi as ThoughtSpotRestApi, Token, TokenAccessScopeObject, TokenAccessScopeObjectTypeEnum, TokenProvider, TokenValidationResponse, URL, URLInput, URLInputMandatory, UnassignTagRequest, UnparameterizeMetadataRequest, UnparameterizeMetadataRequestFieldTypeEnum, UnparameterizeMetadataRequestMetadataTypeEnum, UnpublishMetadataRequest, UpdateCalendarRequest, UpdateCalendarRequestCalendarTypeEnum, UpdateCalendarRequestMonthOffsetEnum, UpdateCalendarRequestStartDayOfWeekEnum, UpdateCalendarRequestTableReference, UpdateCalendarRequestUpdateMethodEnum, UpdateCollectionRequest, UpdateCollectionRequestOperationEnum, UpdateColumnSecurityRulesRequest, UpdateConfigRequest, UpdateConnectionConfigurationRequest, UpdateConnectionConfigurationRequestAuthenticationTypeEnum, UpdateConnectionConfigurationRequestPolicyProcessesEnum, UpdateConnectionConfigurationRequestPolicyTypeEnum, UpdateConnectionRequest, UpdateConnectionStatusRequest, UpdateConnectionStatusRequestStatusEnum, UpdateConnectionV2Request, UpdateCustomActionRequest, UpdateCustomActionRequestActionDetails, UpdateCustomActionRequestDefaultActionConfig, UpdateCustomActionRequestOperationEnum, UpdateEmailCustomizationRequest, UpdateMetadataHeaderRequest, UpdateMetadataObjIdRequest, UpdateObjIdInput, UpdateObjIdInputTypeEnum, UpdateOrgRequest, UpdateOrgRequestOperationEnum, UpdateRoleRequest, UpdateRoleRequestPrivilegesEnum, UpdateScheduleRequest, UpdateScheduleRequestFileFormatEnum, UpdateScheduleRequestFrequency, UpdateScheduleRequestLiveboardOptions, UpdateScheduleRequestMetadataTypeEnum, UpdateScheduleRequestPdfOptions, UpdateScheduleRequestPdfOptionsPageSizeEnum, UpdateScheduleRequestRecipientDetails, UpdateScheduleRequestStatusEnum, UpdateScheduleRequestTimeZoneEnum, UpdateSystemConfigRequest, UpdateTagRequest, UpdateUserGroupRequest, UpdateUserGroupRequestOperationEnum, UpdateUserGroupRequestPrivilegesEnum, UpdateUserGroupRequestTypeEnum, UpdateUserGroupRequestVisibilityEnum, UpdateUserRequest, UpdateUserRequestAccountStatusEnum, UpdateUserRequestAccountTypeEnum, UpdateUserRequestOperationEnum, UpdateUserRequestPreferredLocaleEnum, UpdateUserRequestVisibilityEnum, UpdateVariableRequest, UpdateVariableValuesRequest, UpdateWebhookConfigurationRequest, UpdateWebhookConfigurationRequestEventsEnum, User, UserAccountStatusEnum, UserAccountTypeEnum, UserGroup, UserGroupResponse, UserGroupResponseParentTypeEnum, UserGroupResponseTypeEnum, UserGroupResponseVisibilityEnum, UserInfo, UserObject, UserObjectTypeEnum, UserParameterOptions, UserParentTypeEnum, UserPrincipal, UserVisibilityEnum, PromiseUsersApi as UsersApi, ValidateCommunicationChannelRequest, ValidateCommunicationChannelRequestChannelTypeEnum, ValidateCommunicationChannelRequestEventTypeEnum, ValidateMergeRequest, ValidateTokenRequest, ValueScopeInput, ValueScopeInputPrincipalTypeEnum, Variable, PromiseVariableApi as VariableApi, VariableDetailInput, VariableDetailInputTypeEnum, VariableOrgInfo, VariablePutAssignmentInput, VariablePutAssignmentInputPrincipalTypeEnum, VariableUpdateAssignmentInput, VariableUpdateAssignmentInputOperationEnum, VariableUpdateScopeInput, VariableUpdateScopeInputPrincipalTypeEnum, VariableValue, VariableValuePrincipalTypeEnum, VariableValues, VariableVariableTypeEnum, PromiseVersionControlApi as VersionControlApi, WebhookAuthApiKey, WebhookAuthApiKeyInput, WebhookAuthBasicAuth, WebhookAuthBasicAuthInput, WebhookAuthOAuth2, WebhookAuthOAuth2Input, WebhookAuthentication, WebhookAuthenticationInput, WebhookDeleteFailure, WebhookDeleteResponse, WebhookKeyValuePair, WebhookKeyValuePairInput, WebhookOrg, WebhookPagination, WebhookResponse, WebhookResponseEventsEnum, WebhookSearchResponse, WebhookSignatureVerification, WebhookSignatureVerificationAlgorithmEnum, WebhookSignatureVerificationInput, WebhookSignatureVerificationInputAlgorithmEnum, WebhookSignatureVerificationInputTypeEnum, WebhookSignatureVerificationTypeEnum, WebhookSortOptionsInput, WebhookSortOptionsInputFieldNameEnum, WebhookSortOptionsInputOrderEnum, WebhookUser, PromiseWebhooksApi as WebhooksApi, configureAuthMethods, createBasicConfig, createBearerAuthenticationConfig, createConfiguration, server1, servers, wrapHttpLibrary }; diff --git a/sdks/typescript/dist/index.js b/sdks/typescript/dist/index.js index 8f602c3cd..748990aa6 100644 --- a/sdks/typescript/dist/index.js +++ b/sdks/typescript/dist/index.js @@ -703,6 +703,37 @@ _AnswerDataResponse.attributeTypeMap = [ ]; var AnswerDataResponse = _AnswerDataResponse; +// models/AnswerPngOptionsInput.ts +var _AnswerPngOptionsInput = class _AnswerPngOptionsInput { + static getAttributeTypeMap() { + return _AnswerPngOptionsInput.attributeTypeMap; + } + constructor() { + } +}; +_AnswerPngOptionsInput.discriminator = void 0; +_AnswerPngOptionsInput.attributeTypeMap = [ + { + "name": "x_resolution", + "baseName": "x_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "y_resolution", + "baseName": "y_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "scaling", + "baseName": "scaling", + "type": "number", + "format": "int32" + } +]; +var AnswerPngOptionsInput = _AnswerPngOptionsInput; + // models/AssignChangeAuthorRequest.ts var _AssignChangeAuthorRequest = class _AssignChangeAuthorRequest { static getAttributeTypeMap() { @@ -821,6 +852,150 @@ _AssociateMetadataInputCreate.attributeTypeMap = [ ]; var AssociateMetadataInputCreate = _AssociateMetadataInputCreate; +// models/AuthClusterPreferences.ts +var _AuthClusterPreferences = class _AuthClusterPreferences { + static getAttributeTypeMap() { + return _AuthClusterPreferences.attributeTypeMap; + } + constructor() { + } +}; +_AuthClusterPreferences.discriminator = void 0; +_AuthClusterPreferences.attributeTypeMap = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthClusterPreferencesAuthStatusEnum", + "format": "" + }, + { + "name": "access_tokens", + "baseName": "access_tokens", + "type": "Array", + "format": "" + } +]; +var AuthClusterPreferences = _AuthClusterPreferences; + +// models/AuthClusterPreferencesInput.ts +var _AuthClusterPreferencesInput = class _AuthClusterPreferencesInput { + static getAttributeTypeMap() { + return _AuthClusterPreferencesInput.attributeTypeMap; + } + constructor() { + } +}; +_AuthClusterPreferencesInput.discriminator = void 0; +_AuthClusterPreferencesInput.attributeTypeMap = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthClusterPreferencesInputAuthStatusEnum", + "format": "" + } +]; +var AuthClusterPreferencesInput = _AuthClusterPreferencesInput; + +// models/AuthOrgInfo.ts +var _AuthOrgInfo = class _AuthOrgInfo { + static getAttributeTypeMap() { + return _AuthOrgInfo.attributeTypeMap; + } + constructor() { + } +}; +_AuthOrgInfo.discriminator = void 0; +_AuthOrgInfo.attributeTypeMap = [ + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "int32" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } +]; +var AuthOrgInfo = _AuthOrgInfo; + +// models/AuthOrgPreference.ts +var _AuthOrgPreference = class _AuthOrgPreference { + static getAttributeTypeMap() { + return _AuthOrgPreference.attributeTypeMap; + } + constructor() { + } +}; +_AuthOrgPreference.discriminator = void 0; +_AuthOrgPreference.attributeTypeMap = [ + { + "name": "org", + "baseName": "org", + "type": "AuthOrgInfo", + "format": "" + }, + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthOrgPreferenceAuthStatusEnum", + "format": "" + }, + { + "name": "access_tokens", + "baseName": "access_tokens", + "type": "Array", + "format": "" + } +]; +var AuthOrgPreference = _AuthOrgPreference; + +// models/AuthOrgPreferenceInput.ts +var _AuthOrgPreferenceInput = class _AuthOrgPreferenceInput { + static getAttributeTypeMap() { + return _AuthOrgPreferenceInput.attributeTypeMap; + } + constructor() { + } +}; +_AuthOrgPreferenceInput.discriminator = void 0; +_AuthOrgPreferenceInput.attributeTypeMap = [ + { + "name": "org_identifier", + "baseName": "org_identifier", + "type": "string", + "format": "" + }, + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthOrgPreferenceInputAuthStatusEnum", + "format": "" + } +]; +var AuthOrgPreferenceInput = _AuthOrgPreferenceInput; + +// models/AuthSettingsAccessToken.ts +var _AuthSettingsAccessToken = class _AuthSettingsAccessToken { + static getAttributeTypeMap() { + return _AuthSettingsAccessToken.attributeTypeMap; + } + constructor() { + } +}; +_AuthSettingsAccessToken.discriminator = void 0; +_AuthSettingsAccessToken.attributeTypeMap = [ + { + "name": "key", + "baseName": "key", + "type": "string", + "format": "" + } +]; +var AuthSettingsAccessToken = _AuthSettingsAccessToken; + // models/Authentication.ts var _Authentication = class _Authentication { static getAttributeTypeMap() { @@ -2269,6 +2444,56 @@ _CommunicationChannelValidateResponse.attributeTypeMap = [ ]; var CommunicationChannelValidateResponse = _CommunicationChannelValidateResponse; +// models/ConfigureAuthSettingsRequest.ts +var _ConfigureAuthSettingsRequest = class _ConfigureAuthSettingsRequest { + static getAttributeTypeMap() { + return _ConfigureAuthSettingsRequest.attributeTypeMap; + } + constructor() { + } +}; +_ConfigureAuthSettingsRequest.discriminator = void 0; +_ConfigureAuthSettingsRequest.attributeTypeMap = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "ConfigureAuthSettingsRequestAuthTypeEnum", + "format": "" + }, + { + "name": "cluster_preferences", + "baseName": "cluster_preferences", + "type": "ConfigureAuthSettingsRequestClusterPreferences", + "format": "" + }, + { + "name": "org_preferences", + "baseName": "org_preferences", + "type": "Array", + "format": "" + } +]; +var ConfigureAuthSettingsRequest = _ConfigureAuthSettingsRequest; + +// models/ConfigureAuthSettingsRequestClusterPreferences.ts +var _ConfigureAuthSettingsRequestClusterPreferences = class _ConfigureAuthSettingsRequestClusterPreferences { + static getAttributeTypeMap() { + return _ConfigureAuthSettingsRequestClusterPreferences.attributeTypeMap; + } + constructor() { + } +}; +_ConfigureAuthSettingsRequestClusterPreferences.discriminator = void 0; +_ConfigureAuthSettingsRequestClusterPreferences.attributeTypeMap = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum", + "format": "" + } +]; +var ConfigureAuthSettingsRequestClusterPreferences = _ConfigureAuthSettingsRequestClusterPreferences; + // models/ConfigureCommunicationChannelPreferencesRequest.ts var _ConfigureCommunicationChannelPreferencesRequest = class _ConfigureCommunicationChannelPreferencesRequest { static getAttributeTypeMap() { @@ -5356,10 +5581,59 @@ _ExportAnswerReportRequest.attributeTypeMap = [ "baseName": "regional_settings", "type": "ExportAnswerReportRequestRegionalSettings", "format": "" + }, + { + "name": "png_options", + "baseName": "png_options", + "type": "ExportAnswerReportRequestPngOptions", + "format": "" + }, + { + "name": "personalised_view_identifier", + "baseName": "personalised_view_identifier", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "ExportAnswerReportRequestTypeEnum", + "format": "" } ]; var ExportAnswerReportRequest = _ExportAnswerReportRequest; +// models/ExportAnswerReportRequestPngOptions.ts +var _ExportAnswerReportRequestPngOptions = class _ExportAnswerReportRequestPngOptions { + static getAttributeTypeMap() { + return _ExportAnswerReportRequestPngOptions.attributeTypeMap; + } + constructor() { + } +}; +_ExportAnswerReportRequestPngOptions.discriminator = void 0; +_ExportAnswerReportRequestPngOptions.attributeTypeMap = [ + { + "name": "x_resolution", + "baseName": "x_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "y_resolution", + "baseName": "y_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "scaling", + "baseName": "scaling", + "type": "number", + "format": "int32" + } +]; +var ExportAnswerReportRequestPngOptions = _ExportAnswerReportRequestPngOptions; + // models/ExportAnswerReportRequestRegionalSettings.ts var _ExportAnswerReportRequestRegionalSettings = class _ExportAnswerReportRequestRegionalSettings { static getAttributeTypeMap() { @@ -11042,6 +11316,62 @@ _ScriptSrcUrlsInput.attributeTypeMap = [ ]; var ScriptSrcUrlsInput = _ScriptSrcUrlsInput; +// models/SearchAuthSettingsRequest.ts +var _SearchAuthSettingsRequest = class _SearchAuthSettingsRequest { + static getAttributeTypeMap() { + return _SearchAuthSettingsRequest.attributeTypeMap; + } + constructor() { + } +}; +_SearchAuthSettingsRequest.discriminator = void 0; +_SearchAuthSettingsRequest.attributeTypeMap = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "SearchAuthSettingsRequestAuthTypeEnum", + "format": "" + }, + { + "name": "scope", + "baseName": "scope", + "type": "SearchAuthSettingsRequestScopeEnum", + "format": "" + } +]; +var SearchAuthSettingsRequest = _SearchAuthSettingsRequest; + +// models/SearchAuthSettingsResponse.ts +var _SearchAuthSettingsResponse = class _SearchAuthSettingsResponse { + static getAttributeTypeMap() { + return _SearchAuthSettingsResponse.attributeTypeMap; + } + constructor() { + } +}; +_SearchAuthSettingsResponse.discriminator = void 0; +_SearchAuthSettingsResponse.attributeTypeMap = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "SearchAuthSettingsResponseAuthTypeEnum", + "format": "" + }, + { + "name": "cluster_preferences", + "baseName": "cluster_preferences", + "type": "AuthClusterPreferences", + "format": "" + }, + { + "name": "org_preferences", + "baseName": "org_preferences", + "type": "Array", + "format": "" + } +]; +var SearchAuthSettingsResponse = _SearchAuthSettingsResponse; + // models/SearchCalendarsRequest.ts var _SearchCalendarsRequest = class _SearchCalendarsRequest { static getAttributeTypeMap() { @@ -12699,6 +13029,12 @@ _SecuritySettingsClusterPreferences.attributeTypeMap = [ "baseName": "non_embed_access", "type": "ClusterNonEmbedAccess", "format": "" + }, + { + "name": "trusted_auth_status", + "baseName": "trusted_auth_status", + "type": "SecuritySettingsClusterPreferencesTrustedAuthStatusEnum", + "format": "" } ]; var SecuritySettingsClusterPreferences = _SecuritySettingsClusterPreferences; @@ -12798,6 +13134,12 @@ _SecuritySettingsOrgPreferences.attributeTypeMap = [ "baseName": "non_embed_access", "type": "OrgNonEmbedAccess", "format": "" + }, + { + "name": "trusted_auth_status", + "baseName": "trusted_auth_status", + "type": "SecuritySettingsOrgPreferencesTrustedAuthStatusEnum", + "format": "" } ]; var SecuritySettingsOrgPreferences = _SecuritySettingsOrgPreferences; @@ -13134,6 +13476,12 @@ _SharePermissionsInput.attributeTypeMap = [ "baseName": "share_mode", "type": "SharePermissionsInputShareModeEnum", "format": "" + }, + { + "name": "content_share_mode", + "baseName": "content_share_mode", + "type": "SharePermissionsInputContentShareModeEnum", + "format": "" } ]; var SharePermissionsInput = _SharePermissionsInput; @@ -14728,6 +15076,25 @@ _UpdateConnectionRequest.attributeTypeMap = [ ]; var UpdateConnectionRequest = _UpdateConnectionRequest; +// models/UpdateConnectionStatusRequest.ts +var _UpdateConnectionStatusRequest = class _UpdateConnectionStatusRequest { + static getAttributeTypeMap() { + return _UpdateConnectionStatusRequest.attributeTypeMap; + } + constructor() { + } +}; +_UpdateConnectionStatusRequest.discriminator = void 0; +_UpdateConnectionStatusRequest.attributeTypeMap = [ + { + "name": "status", + "baseName": "status", + "type": "UpdateConnectionStatusRequestStatusEnum", + "format": "" + } +]; +var UpdateConnectionStatusRequest = _UpdateConnectionStatusRequest; + // models/UpdateConnectionV2Request.ts var _UpdateConnectionV2Request = class _UpdateConnectionV2Request { static getAttributeTypeMap() { @@ -16390,6 +16757,12 @@ _Variable.attributeTypeMap = [ "baseName": "values", "type": "Array", "format": "" + }, + { + "name": "org", + "baseName": "org", + "type": "VariableOrgInfo", + "format": "" } ]; var Variable = _Variable; @@ -16425,6 +16798,31 @@ _VariableDetailInput.attributeTypeMap = [ ]; var VariableDetailInput = _VariableDetailInput; +// models/VariableOrgInfo.ts +var _VariableOrgInfo = class _VariableOrgInfo { + static getAttributeTypeMap() { + return _VariableOrgInfo.attributeTypeMap; + } + constructor() { + } +}; +_VariableOrgInfo.discriminator = void 0; +_VariableOrgInfo.attributeTypeMap = [ + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "int32" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } +]; +var VariableOrgInfo = _VariableOrgInfo; + // models/VariablePutAssignmentInput.ts var _VariablePutAssignmentInput = class _VariablePutAssignmentInput { static getAttributeTypeMap() { @@ -17414,6 +17812,10 @@ var enumsMap = /* @__PURE__ */ new Set([ "ActionConfigInputCreatePositionEnum", "AssociateMetadataInputTypeEnum", "AssociateMetadataInputCreateTypeEnum", + "AuthClusterPreferencesAuthStatusEnum", + "AuthClusterPreferencesInputAuthStatusEnum", + "AuthOrgPreferenceAuthStatusEnum", + "AuthOrgPreferenceInputAuthStatusEnum", "AuthorMetadataTypeInputTypeEnum", "ChannelHistoryEventInfoTypeEnum", "ChannelHistoryEventInputTypeEnum", @@ -17425,6 +17827,8 @@ var enumsMap = /* @__PURE__ */ new Set([ "CommunicationChannelValidateResponseChannelTypeEnum", "CommunicationChannelValidateResponseEventTypeEnum", "CommunicationChannelValidateResponseResultCodeEnum", + "ConfigureAuthSettingsRequestAuthTypeEnum", + "ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum", "ConnectionConfigurationResponsePolicyProcessesEnum", "ConnectionConfigurationResponseDataWarehouseTypeEnum", "ConnectionConfigurationResponsePolicyTypeEnum", @@ -17469,6 +17873,7 @@ var enumsMap = /* @__PURE__ */ new Set([ "EventChannelConfigInputChannelsEnum", "ExcludeMetadataListItemInputTypeEnum", "ExportAnswerReportRequestFileFormatEnum", + "ExportAnswerReportRequestTypeEnum", "ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum", "ExportAnswerReportRequestRegionalSettingsUserLocaleEnum", "ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum", @@ -17550,6 +17955,9 @@ var enumsMap = /* @__PURE__ */ new Set([ "RuntimeFiltersOperatorEnum", "RuntimeSortsOrderEnum", "SchedulesPdfOptionsInputPageSizeEnum", + "SearchAuthSettingsRequestAuthTypeEnum", + "SearchAuthSettingsRequestScopeEnum", + "SearchAuthSettingsResponseAuthTypeEnum", "SearchCalendarsRequestSortOptionsFieldNameEnum", "SearchCalendarsRequestSortOptionsOrderEnum", "SearchChannelHistoryRequestChannelTypeEnum", @@ -17590,9 +17998,12 @@ var enumsMap = /* @__PURE__ */ new Set([ "SearchWebhookConfigurationsRequestEventTypeEnum", "SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum", "SearchWebhookConfigurationsRequestSortOptionsOrderEnum", + "SecuritySettingsClusterPreferencesTrustedAuthStatusEnum", + "SecuritySettingsOrgPreferencesTrustedAuthStatusEnum", "ShareMetadataRequestMetadataTypeEnum", "ShareMetadataTypeInputTypeEnum", "SharePermissionsInputShareModeEnum", + "SharePermissionsInputContentShareModeEnum", "SortOptionFieldNameEnum", "SortOptionOrderEnum", "SortOptionInputFieldNameEnum", @@ -17616,6 +18027,7 @@ var enumsMap = /* @__PURE__ */ new Set([ "UpdateConnectionConfigurationRequestAuthenticationTypeEnum", "UpdateConnectionConfigurationRequestPolicyTypeEnum", "UpdateConnectionConfigurationRequestPolicyProcessesEnum", + "UpdateConnectionStatusRequestStatusEnum", "UpdateCustomActionRequestOperationEnum", "UpdateObjIdInputTypeEnum", "UpdateOrgRequestOperationEnum", @@ -17675,10 +18087,17 @@ var typeMap = { "AgentConversation": AgentConversation, "AnswerContent": AnswerContent, "AnswerDataResponse": AnswerDataResponse, + "AnswerPngOptionsInput": AnswerPngOptionsInput, "AssignChangeAuthorRequest": AssignChangeAuthorRequest, "AssignTagRequest": AssignTagRequest, "AssociateMetadataInput": AssociateMetadataInput, "AssociateMetadataInputCreate": AssociateMetadataInputCreate, + "AuthClusterPreferences": AuthClusterPreferences, + "AuthClusterPreferencesInput": AuthClusterPreferencesInput, + "AuthOrgInfo": AuthOrgInfo, + "AuthOrgPreference": AuthOrgPreference, + "AuthOrgPreferenceInput": AuthOrgPreferenceInput, + "AuthSettingsAccessToken": AuthSettingsAccessToken, "Authentication": Authentication, "AuthenticationInput": AuthenticationInput, "Author": Author, @@ -17723,6 +18142,8 @@ var typeMap = { "CommiterType": CommiterType, "CommunicationChannelPreferencesResponse": CommunicationChannelPreferencesResponse, "CommunicationChannelValidateResponse": CommunicationChannelValidateResponse, + "ConfigureAuthSettingsRequest": ConfigureAuthSettingsRequest, + "ConfigureAuthSettingsRequestClusterPreferences": ConfigureAuthSettingsRequestClusterPreferences, "ConfigureCommunicationChannelPreferencesRequest": ConfigureCommunicationChannelPreferencesRequest, "ConfigureSecuritySettingsRequest": ConfigureSecuritySettingsRequest, "ConfigureSecuritySettingsRequestClusterPreferences": ConfigureSecuritySettingsRequestClusterPreferences, @@ -17808,6 +18229,7 @@ var typeMap = { "EventChannelConfigInput": EventChannelConfigInput, "ExcludeMetadataListItemInput": ExcludeMetadataListItemInput, "ExportAnswerReportRequest": ExportAnswerReportRequest, + "ExportAnswerReportRequestPngOptions": ExportAnswerReportRequestPngOptions, "ExportAnswerReportRequestRegionalSettings": ExportAnswerReportRequestRegionalSettings, "ExportLiveboardReportRequest": ExportLiveboardReportRequest, "ExportLiveboardReportRequestPdfOptions": ExportLiveboardReportRequestPdfOptions, @@ -17964,6 +18386,8 @@ var typeMap = { "Scope": Scope, "ScriptSrcUrls": ScriptSrcUrls, "ScriptSrcUrlsInput": ScriptSrcUrlsInput, + "SearchAuthSettingsRequest": SearchAuthSettingsRequest, + "SearchAuthSettingsResponse": SearchAuthSettingsResponse, "SearchCalendarsRequest": SearchCalendarsRequest, "SearchCalendarsRequestSortOptions": SearchCalendarsRequestSortOptions, "SearchChannelHistoryRequest": SearchChannelHistoryRequest, @@ -18050,6 +18474,7 @@ var typeMap = { "UpdateConfigRequest": UpdateConfigRequest, "UpdateConnectionConfigurationRequest": UpdateConnectionConfigurationRequest, "UpdateConnectionRequest": UpdateConnectionRequest, + "UpdateConnectionStatusRequest": UpdateConnectionStatusRequest, "UpdateConnectionV2Request": UpdateConnectionV2Request, "UpdateCustomActionRequest": UpdateCustomActionRequest, "UpdateCustomActionRequestActionDetails": UpdateCustomActionRequestActionDetails, @@ -18085,6 +18510,7 @@ var typeMap = { "ValueScopeInput": ValueScopeInput, "Variable": Variable, "VariableDetailInput": VariableDetailInput, + "VariableOrgInfo": VariableOrgInfo, "VariablePutAssignmentInput": VariablePutAssignmentInput, "VariableUpdateAssignmentInput": VariableUpdateAssignmentInput, "VariableUpdateScopeInput": VariableUpdateScopeInput, @@ -18324,8 +18750,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18361,8 +18787,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18398,8 +18824,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/data-source-suggestions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18435,8 +18861,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/get"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18472,8 +18898,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/relevant-questions/"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18509,8 +18935,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/analytical-questions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18550,8 +18976,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18591,8 +19017,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send/stream".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18632,8 +19058,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18669,8 +19095,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/converse/sse"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18710,8 +19136,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18747,8 +19173,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/set"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18784,8 +19210,8 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/answer/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -18807,6 +19233,34 @@ var AIApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (conversationIdentifier === null || conversationIdentifier === void 0) { + throw new RequiredError("AIApi", "stopConversation", "conversationIdentifier"); + } + const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } }; var AIApiResponseProcessor = class { /** @@ -19706,10 +20160,103 @@ var AIApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } }; // apis/AuthenticationApi.ts var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (configureAuthSettingsRequest === null || configureAuthSettingsRequest === void 0) { + throw new RequiredError("AuthenticationApi", "configureAuthSettings", "configureAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/configure"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(configureAuthSettingsRequest, "ConfigureAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -19720,8 +20267,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/user"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -19744,8 +20291,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/token"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -19772,8 +20319,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/custom"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19804,8 +20351,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/full"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19836,8 +20383,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/object"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19868,8 +20415,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/login"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19901,8 +20448,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -19929,8 +20476,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/revoke"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19952,6 +20499,43 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (searchAuthSettingsRequest === null || searchAuthSettingsRequest === void 0) { + throw new RequiredError("AuthenticationApi", "searchAuthSettings", "searchAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/search"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(searchAuthSettingsRequest, "SearchAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -19966,8 +20550,8 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -19991,6 +20575,62 @@ var AuthenticationApiRequestFactory = class extends BaseAPIRequestFactory { } }; var AuthenticationApiResponseProcessor = class { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to configureAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + configureAuthSettings(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -20464,6 +21104,67 @@ var AuthenticationApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuthSettings + * @throws ApiException if the response code was not in [200, 299] + */ + searchAuthSettings(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "SearchAuthSettingsResponse", + "" + ); + return body; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "SearchAuthSettingsResponse", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -20543,8 +21244,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20580,8 +21281,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20617,8 +21318,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20658,8 +21359,8 @@ var CollectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/{collection_identifier}/update".replace("{collection_identifier}", encodeURIComponent(String(collectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20956,8 +21657,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -20993,8 +21694,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21030,8 +21731,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21071,8 +21772,8 @@ var ConnectionConfigurationsApiRequestFactory = class extends BaseAPIRequestFact const localVarPath = "/api/rest/2.0/connection-configurations/{configuration_identifier}/update".replace("{configuration_identifier}", encodeURIComponent(String(configurationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21348,8 +22049,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21385,8 +22086,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21422,8 +22123,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/delete".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -21450,8 +22151,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/download-connection-metadata-changes/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -21478,8 +22179,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/fetch-connection-diff-status/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -21510,8 +22211,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/revoke-refresh-tokens".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21547,8 +22248,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21588,8 +22289,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/resync-metadata".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21625,8 +22326,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -21648,6 +22349,47 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (connectionIdentifier === null || connectionIdentifier === void 0) { + throw new RequiredError("ConnectionsApi", "updateConnectionStatus", "connectionIdentifier"); + } + if (updateConnectionStatusRequest === null || updateConnectionStatusRequest === void 0) { + throw new RequiredError("ConnectionsApi", "updateConnectionStatus", "updateConnectionStatusRequest"); + } + const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/status".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(updateConnectionStatusRequest, "UpdateConnectionStatusRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -21666,8 +22408,8 @@ var ConnectionsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/update".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22245,6 +22987,70 @@ var ConnectionsApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("404", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -22319,8 +23125,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22356,8 +23162,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/delete".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -22384,8 +23190,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22425,8 +23231,8 @@ var CustomActionApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/update".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22702,8 +23508,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22739,8 +23545,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/delete".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -22767,8 +23573,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/generate-csv"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22804,8 +23610,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -22845,8 +23651,8 @@ var CustomCalendarsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/update".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23195,8 +24001,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -23272,8 +24078,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-sync-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -23334,8 +24140,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -23391,8 +24197,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -23419,8 +24225,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/{dbt_connection_identifier}/delete".replace("{dbt_connection_identifier}", encodeURIComponent(String(dbtConnectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -23457,8 +24263,8 @@ var DBTApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/update-dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -23903,8 +24709,8 @@ var DataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23940,8 +24746,8 @@ var DataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -23977,8 +24783,8 @@ var DataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/searchdata"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24203,8 +25009,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24240,8 +25046,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/{template_identifier}/delete".replace("{template_identifier}", encodeURIComponent(String(templateIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -24268,8 +25074,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24305,8 +25111,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24342,8 +25148,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24375,8 +25181,8 @@ var EmailCustomizationApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -24723,8 +25529,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24760,8 +25566,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/delete".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -24788,8 +25594,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24825,8 +25631,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -24866,8 +25672,8 @@ var GroupsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/update".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25204,8 +26010,8 @@ var JobsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/jobs/history/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25308,8 +26114,8 @@ var LogApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/logs/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25412,8 +26218,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/worksheets/convert"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25449,8 +26255,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/copyobject"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25486,8 +26292,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25523,8 +26329,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25560,8 +26366,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export/batch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25597,8 +26403,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25634,8 +26440,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/status"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25671,8 +26477,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25708,8 +26514,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25745,8 +26551,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25782,8 +26588,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25819,8 +26625,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize-fields"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25856,8 +26662,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25893,8 +26699,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/unparameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25930,8 +26736,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/headers/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -25967,8 +26773,8 @@ var MetadataApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/update-obj-id"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -26964,8 +27770,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27001,8 +27807,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/delete".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -27029,8 +27835,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27070,8 +27876,8 @@ var OrgsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/update".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27347,8 +28153,8 @@ var ReportsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/answer"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27384,8 +28190,8 @@ var ReportsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/liveboard"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27541,8 +28347,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27578,8 +28384,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/delete".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -27606,8 +28412,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27647,8 +28453,8 @@ var RolesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/update".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27929,8 +28735,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -27966,8 +28772,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/delete".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -27994,8 +28800,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28035,8 +28841,8 @@ var SchedulesApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/update".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28312,8 +29118,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28349,8 +29155,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28386,8 +29192,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-object-privileges"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28423,8 +29229,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/principals/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28460,8 +29266,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28497,8 +29303,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/manage-object-privilege"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28534,8 +29340,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/publish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28571,8 +29377,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/share"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28608,8 +29414,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/unpublish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -28645,8 +29451,8 @@ var SecurityApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29268,8 +30074,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29305,8 +30111,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29338,8 +30144,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -29362,8 +30168,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -29386,8 +30192,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-overrides"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -29414,8 +30220,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29451,8 +30257,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29488,8 +30294,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -29525,8 +30331,8 @@ var SystemApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/communication-channels/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30102,8 +30908,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30139,8 +30945,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30176,8 +30982,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/delete".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -30204,8 +31010,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30241,8 +31047,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/unassign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30282,8 +31088,8 @@ var TagsApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/update".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30671,8 +31477,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/activate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30708,8 +31514,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30745,8 +31551,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/assign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30782,8 +31588,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/change-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30819,8 +31625,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/commit"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30842,6 +31648,43 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (configureAuthSettingsRequest === null || configureAuthSettingsRequest === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "configureAuthSettings", "configureAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/configure"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(configureAuthSettingsRequest, "ConfigureAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -30856,8 +31699,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30893,8 +31736,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/configure"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30930,8 +31773,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -30967,8 +31810,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/worksheets/convert"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31004,8 +31847,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/copyobject"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31041,8 +31884,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31078,8 +31921,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31115,8 +31958,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31152,8 +31995,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31189,8 +32032,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31226,8 +32069,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31263,8 +32106,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31300,8 +32143,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31337,8 +32180,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31374,8 +32217,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31411,8 +32254,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31448,8 +32291,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31485,8 +32328,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31522,8 +32365,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31559,8 +32402,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31596,8 +32439,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31633,8 +32476,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31682,8 +32525,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -31759,8 +32602,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-sync-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -31821,8 +32664,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/generate-tml"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -31878,8 +32721,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -31906,8 +32749,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/deactivate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -31943,8 +32786,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/delete".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -31971,8 +32814,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32008,8 +32851,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32045,8 +32888,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32082,8 +32925,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32119,8 +32962,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/delete".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32147,8 +32990,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/delete".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32175,8 +33018,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/{dbt_connection_identifier}/delete".replace("{dbt_connection_identifier}", encodeURIComponent(String(dbtConnectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32203,8 +33046,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/{template_identifier}/delete".replace("{template_identifier}", encodeURIComponent(String(templateIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32231,8 +33074,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32268,8 +33111,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/delete".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32296,8 +33139,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32333,8 +33176,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/delete".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32361,8 +33204,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/delete".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32389,8 +33232,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/delete".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32417,8 +33260,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/delete".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32445,8 +33288,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/delete".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32473,8 +33316,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/delete".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32501,8 +33344,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32538,8 +33381,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32575,8 +33418,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/deploy"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32612,8 +33455,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/download-connection-metadata-changes/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32640,8 +33483,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/answer"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32677,8 +33520,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/report/liveboard"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32714,8 +33557,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32751,8 +33594,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/export/batch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32788,8 +33631,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32825,8 +33668,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/answer/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32862,8 +33705,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/status"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32899,8 +33742,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -32936,8 +33779,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/fetch-connection-diff-status/{connection_identifier}".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -32964,8 +33807,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/data"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33001,8 +33844,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/liveboard/sql"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33038,8 +33881,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/logs/fetch"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33075,8 +33918,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-object-privileges"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33112,8 +33955,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/principals/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33149,8 +33992,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/fetch-permissions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33186,8 +34029,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/force-logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33223,8 +34066,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/generate-csv"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33256,8 +34099,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/user"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33280,8 +34123,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/token"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33308,8 +34151,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/custom"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33340,8 +34183,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/data-source-suggestions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33377,8 +34220,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/full"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33409,8 +34252,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/get"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33446,8 +34289,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/object"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33478,8 +34321,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/relevant-questions/"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33511,8 +34354,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33535,8 +34378,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33559,8 +34402,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-overrides"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "GET" /* GET */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33587,8 +34430,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33624,8 +34467,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/tml/async/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33661,8 +34504,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33698,8 +34541,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33735,8 +34578,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/login"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33768,8 +34611,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/session/logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -33796,8 +34639,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/manage-object-privilege"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33833,8 +34676,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33870,8 +34713,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/parameterize-fields"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33907,8 +34750,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/publish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33948,8 +34791,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update-values".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -33985,8 +34828,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/analytical-questions"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34022,8 +34865,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/reset-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34063,8 +34906,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/{commit_id}/revert".replace("{commit_id}", encodeURIComponent(String(commitId))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34104,8 +34947,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/revoke-refresh-tokens".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34141,8 +34984,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/revoke"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34164,6 +35007,43 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (searchAuthSettingsRequest === null || searchAuthSettingsRequest === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "searchAuthSettings", "searchAuthSettingsRequest"); + } + const localVarPath = "/api/rest/2.0/auth/search"; + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(searchAuthSettingsRequest, "SearchAuthSettingsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -34178,8 +35058,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34215,8 +35095,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/jobs/history/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34252,8 +35132,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34289,8 +35169,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34326,8 +35206,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/preferences/communication-channels/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34363,8 +35243,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34400,8 +35280,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34437,8 +35317,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34474,8 +35354,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/searchdata"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34511,8 +35391,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34548,8 +35428,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34585,8 +35465,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34622,8 +35502,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34659,8 +35539,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34696,8 +35576,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/security-settings/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34733,8 +35613,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34770,8 +35650,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34807,8 +35687,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34844,8 +35724,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34881,8 +35761,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34922,8 +35802,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -34963,8 +35843,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/send/stream".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35004,8 +35884,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35041,8 +35921,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/agent/converse/sse"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35082,8 +35962,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/conversation/{conversation_identifier}/converse".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35119,8 +35999,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/instructions/set"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35156,8 +36036,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/share"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35193,8 +36073,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/ai/answer/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35216,6 +36096,34 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (conversationIdentifier === null || conversationIdentifier === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "stopConversation", "conversationIdentifier"); + } + const localVarPath = "/api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response".replace("{conversation_identifier}", encodeURIComponent(String(conversationIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -35234,8 +36142,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/resync-metadata".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35271,8 +36179,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/unassign"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35308,8 +36216,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/unparameterize"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35345,8 +36253,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/metadata/unpublish"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35386,8 +36294,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/calendars/{calendar_identifier}/update".replace("{calendar_identifier}", encodeURIComponent(String(calendarIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35427,8 +36335,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/collections/{collection_identifier}/update".replace("{collection_identifier}", encodeURIComponent(String(collectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35464,8 +36372,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/security/column/rules/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35501,8 +36409,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35538,8 +36446,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35579,8 +36487,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connection-configurations/{configuration_identifier}/update".replace("{configuration_identifier}", encodeURIComponent(String(configurationIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35602,6 +36510,47 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { return requestContext; }); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + return __async(this, null, function* () { + var _a, _b, _c; + let _config = _options || this.configuration; + if (connectionIdentifier === null || connectionIdentifier === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "updateConnectionStatus", "connectionIdentifier"); + } + if (updateConnectionStatusRequest === null || updateConnectionStatusRequest === void 0) { + throw new RequiredError("ThoughtSpotRestApi", "updateConnectionStatus", "updateConnectionStatusRequest"); + } + const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/status".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(updateConnectionStatusRequest, "UpdateConnectionStatusRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod; + authMethod = _config.authMethods["bearerAuth"]; + if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { + yield authMethod == null ? void 0 : authMethod.applySecurityAuthentication(requestContext); + } + const defaultAuth = ((_a = _options == null ? void 0 : _options.authMethods) == null ? void 0 : _a.default) || ((_c = (_b = this.configuration) == null ? void 0 : _b.authMethods) == null ? void 0 : _c.default); + if (defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication) { + yield defaultAuth == null ? void 0 : defaultAuth.applySecurityAuthentication(requestContext); + } + return requestContext; + }); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -35620,8 +36569,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/connections/{connection_identifier}/update".replace("{connection_identifier}", encodeURIComponent(String(connectionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35661,8 +36610,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/custom-actions/{custom_action_identifier}/update".replace("{custom_action_identifier}", encodeURIComponent(String(customActionIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35708,8 +36657,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/dbt/update-dbt-connection"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const useForm = canConsumeForm([ "multipart/form-data" ]); @@ -35787,8 +36736,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35824,8 +36773,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/headers/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35861,8 +36810,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/metadata/update-obj-id"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35902,8 +36851,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/orgs/{org_identifier}/update".replace("{org_identifier}", encodeURIComponent(String(orgIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35943,8 +36892,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/roles/{role_identifier}/update".replace("{role_identifier}", encodeURIComponent(String(roleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -35984,8 +36933,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/schedules/{schedule_identifier}/update".replace("{schedule_identifier}", encodeURIComponent(String(scheduleIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36021,8 +36970,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/config-update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36062,8 +37011,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/tags/{tag_identifier}/update".replace("{tag_identifier}", encodeURIComponent(String(tagIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36103,8 +37052,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/update".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36144,8 +37093,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/groups/{group_identifier}/update".replace("{group_identifier}", encodeURIComponent(String(groupIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36185,8 +37134,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36222,8 +37171,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/update-values"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36263,8 +37212,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/{webhook_identifier}/update".replace("{webhook_identifier}", encodeURIComponent(String(webhookIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36300,8 +37249,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/system/communication-channels/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36333,8 +37282,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/customization/email/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -36361,8 +37310,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36398,8 +37347,8 @@ var ThoughtSpotRestApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/auth/token/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -36600,14 +37549,75 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to changeUserPassword + * @params response Response returned by the server for a request to changeUserPassword + * @throws ApiException if the response code was not in [200, 299] + */ + changeUserPassword(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to commitBranch * @throws ApiException if the response code was not in [200, 299] */ - changeUserPassword(response) { + commitBranch(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "CommitResponse", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -36644,7 +37654,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "CommitResponse", "" ); return body; @@ -36656,19 +37666,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to commitBranch + * @params response Response returned by the server for a request to configureAuthSettings * @throws ApiException if the response code was not in [200, 299] */ - commitBranch(response) { + configureAuthSettings(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "CommitResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -36705,7 +37710,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "CommitResponse", + "void", "" ); return body; @@ -39259,7 +40264,236 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteUserGroup + * @throws ApiException if the response code was not in [200, 299] + */ + deleteUserGroup(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteVariable + * @throws ApiException if the response code was not in [200, 299] + */ + deleteVariable(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteVariables + * @throws ApiException if the response code was not in [200, 299] + */ + deleteVariables(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteWebhookConfigurations + * @throws ApiException if the response code was not in [200, 299] + */ + deleteWebhookConfigurations(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "WebhookDeleteResponse", + "" + ); + return body; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "WebhookDeleteResponse", "" ); return body; @@ -39271,14 +40505,19 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteUserGroup + * @params response Response returned by the server for a request to deployCommit * @throws ApiException if the response code was not in [200, 299] */ - deleteUserGroup(response) { + deployCommit(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "Array", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -39315,7 +40554,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "Array", "" ); return body; @@ -39327,20 +40566,21 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteVariable + * @params response Response returned by the server for a request to downloadConnectionMetadataChanges * @throws ApiException if the response code was not in [200, 299] */ - deleteVariable(response) { + downloadConnectionMetadataChanges(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = yield response.getBodyAsFile(); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39348,7 +40588,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39356,7 +40596,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39364,15 +40604,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", - "" + "HttpFile", + "binary" ); return body; } @@ -39383,20 +40623,21 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteVariables + * @params response Response returned by the server for a request to exportAnswerReport * @throws ApiException if the response code was not in [200, 299] */ - deleteVariables(response) { + exportAnswerReport(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = yield response.getBodyAsFile(); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39404,7 +40645,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39412,7 +40653,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39420,15 +40661,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", - "" + "HttpFile", + "binary" ); return body; } @@ -39439,25 +40680,21 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteWebhookConfigurations + * @params response Response returned by the server for a request to exportLiveboardReport * @throws ApiException if the response code was not in [200, 299] */ - deleteWebhookConfigurations(response) { + exportLiveboardReport(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "WebhookDeleteResponse", - "" - ); + const body = yield response.getBodyAsFile(); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39465,7 +40702,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39473,7 +40710,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39481,15 +40718,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "" + "binary" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "WebhookDeleteResponse", - "" + "HttpFile", + "binary" ); return body; } @@ -39500,16 +40737,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deployCommit + * @params response Response returned by the server for a request to exportMetadataTML * @throws ApiException if the response code was not in [200, 299] */ - deployCommit(response) { + exportMetadataTML(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -39549,7 +40786,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -39561,21 +40798,25 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to downloadConnectionMetadataChanges + * @params response Response returned by the server for a request to exportMetadataTMLBatched * @throws ApiException if the response code was not in [200, 299] */ - downloadConnectionMetadataChanges(response) { + exportMetadataTMLBatched(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = yield response.getBodyAsFile(); + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "any", + "" + ); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39583,7 +40824,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39591,7 +40832,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39599,15 +40840,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "HttpFile", - "binary" + "any", + "" ); return body; } @@ -39618,21 +40859,25 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportAnswerReport + * @params response Response returned by the server for a request to fetchAnswerData * @throws ApiException if the response code was not in [200, 299] */ - exportAnswerReport(response) { + fetchAnswerData(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = yield response.getBodyAsFile(); + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "AnswerDataResponse", + "" + ); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39640,7 +40885,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39648,7 +40893,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39656,15 +40901,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "HttpFile", - "binary" + "AnswerDataResponse", + "" ); return body; } @@ -39675,21 +40920,25 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportLiveboardReport + * @params response Response returned by the server for a request to fetchAnswerSqlQuery * @throws ApiException if the response code was not in [200, 299] */ - exportLiveboardReport(response) { + fetchAnswerSqlQuery(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body = yield response.getBodyAsFile(); + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "SqlQueryResponse", + "" + ); return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } @@ -39697,7 +40946,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } @@ -39705,7 +40954,7 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } @@ -39713,15 +40962,15 @@ var ThoughtSpotRestApiResponseProcessor = class { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", - "binary" + "" ); throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "HttpFile", - "binary" + "SqlQueryResponse", + "" ); return body; } @@ -39732,16 +40981,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportMetadataTML + * @params response Response returned by the server for a request to fetchAsyncImportTaskStatus * @throws ApiException if the response code was not in [200, 299] */ - exportMetadataTML(response) { + fetchAsyncImportTaskStatus(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "GetAsyncImportStatusResponse", "" ); return body; @@ -39781,7 +41030,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "GetAsyncImportStatusResponse", "" ); return body; @@ -39793,16 +41042,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to exportMetadataTMLBatched + * @params response Response returned by the server for a request to fetchColumnSecurityRules * @throws ApiException if the response code was not in [200, 299] */ - exportMetadataTMLBatched(response) { + fetchColumnSecurityRules(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "Array", "" ); return body; @@ -39813,7 +41062,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Bad request - Table not found or invalid parameters", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -39829,7 +41078,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden - User doesn't have permission to access security rules for this table", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -39837,12 +41086,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Internal server error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "Array", "" ); return body; @@ -39854,16 +41103,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchAnswerData + * @params response Response returned by the server for a request to fetchConnectionDiffStatus * @throws ApiException if the response code was not in [200, 299] */ - fetchAnswerData(response) { + fetchConnectionDiffStatus(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AnswerDataResponse", + "FetchConnectionDiffStatusResponse", "" ); return body; @@ -39903,7 +41152,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AnswerDataResponse", + "FetchConnectionDiffStatusResponse", "" ); return body; @@ -39915,16 +41164,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchAnswerSqlQuery + * @params response Response returned by the server for a request to fetchLiveboardData * @throws ApiException if the response code was not in [200, 299] */ - fetchAnswerSqlQuery(response) { + fetchLiveboardData(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "LiveboardDataResponse", "" ); return body; @@ -39964,7 +41213,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "LiveboardDataResponse", "" ); return body; @@ -39976,16 +41225,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchAsyncImportTaskStatus + * @params response Response returned by the server for a request to fetchLiveboardSqlQuery * @throws ApiException if the response code was not in [200, 299] */ - fetchAsyncImportTaskStatus(response) { + fetchLiveboardSqlQuery(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetAsyncImportStatusResponse", + "SqlQueryResponse", "" ); return body; @@ -40025,7 +41274,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetAsyncImportStatusResponse", + "SqlQueryResponse", "" ); return body; @@ -40037,16 +41286,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchColumnSecurityRules + * @params response Response returned by the server for a request to fetchLogs * @throws ApiException if the response code was not in [200, 299] */ - fetchColumnSecurityRules(response) { + fetchLogs(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -40057,7 +41306,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Bad request - Table not found or invalid parameters", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40073,7 +41322,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden - User doesn't have permission to access security rules for this table", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40081,12 +41330,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Internal server error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "Array", "" ); return body; @@ -40098,16 +41347,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchConnectionDiffStatus + * @params response Response returned by the server for a request to fetchObjectPrivileges * @throws ApiException if the response code was not in [200, 299] */ - fetchConnectionDiffStatus(response) { + fetchObjectPrivileges(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "FetchConnectionDiffStatusResponse", + "ObjectPrivilegesOfMetadataResponse", "" ); return body; @@ -40147,7 +41396,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "FetchConnectionDiffStatusResponse", + "ObjectPrivilegesOfMetadataResponse", "" ); return body; @@ -40159,16 +41408,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchLiveboardData + * @params response Response returned by the server for a request to fetchPermissionsOfPrincipals * @throws ApiException if the response code was not in [200, 299] */ - fetchLiveboardData(response) { + fetchPermissionsOfPrincipals(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "LiveboardDataResponse", + "PermissionOfPrincipalsResponse", "" ); return body; @@ -40208,7 +41457,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "LiveboardDataResponse", + "PermissionOfPrincipalsResponse", "" ); return body; @@ -40220,16 +41469,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchLiveboardSqlQuery + * @params response Response returned by the server for a request to fetchPermissionsOnMetadata * @throws ApiException if the response code was not in [200, 299] */ - fetchLiveboardSqlQuery(response) { + fetchPermissionsOnMetadata(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "PermissionOfMetadataResponse", "" ); return body; @@ -40269,7 +41518,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SqlQueryResponse", + "PermissionOfMetadataResponse", "" ); return body; @@ -40281,19 +41530,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchLogs + * @params response Response returned by the server for a request to forceLogoutUsers * @throws ApiException if the response code was not in [200, 299] */ - fetchLogs(response) { + forceLogoutUsers(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40330,7 +41574,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "void", "" ); return body; @@ -40342,16 +41586,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchObjectPrivileges + * @params response Response returned by the server for a request to generateCSV * @throws ApiException if the response code was not in [200, 299] */ - fetchObjectPrivileges(response) { + generateCSV(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ObjectPrivilegesOfMetadataResponse", + "any", "" ); return body; @@ -40391,7 +41635,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ObjectPrivilegesOfMetadataResponse", + "any", "" ); return body; @@ -40403,16 +41647,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchPermissionsOfPrincipals + * @params response Response returned by the server for a request to getCurrentUserInfo * @throws ApiException if the response code was not in [200, 299] */ - fetchPermissionsOfPrincipals(response) { + getCurrentUserInfo(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfPrincipalsResponse", + "User", "" ); return body; @@ -40452,7 +41696,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfPrincipalsResponse", + "User", "" ); return body; @@ -40464,16 +41708,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to fetchPermissionsOnMetadata + * @params response Response returned by the server for a request to getCurrentUserToken * @throws ApiException if the response code was not in [200, 299] */ - fetchPermissionsOnMetadata(response) { + getCurrentUserToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfMetadataResponse", + "GetTokenResponse", "" ); return body; @@ -40513,7 +41757,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "PermissionOfMetadataResponse", + "GetTokenResponse", "" ); return body; @@ -40525,14 +41769,19 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to forceLogoutUsers + * @params response Response returned by the server for a request to getCustomAccessToken * @throws ApiException if the response code was not in [200, 299] */ - forceLogoutUsers(response) { + getCustomAccessToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "AccessToken", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40540,7 +41789,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request. This could be due to missing or incorrect parameters.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40548,7 +41797,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access. The request could not be authenticated.", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40556,7 +41805,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access. The user does not have permission to access this resource.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40564,12 +41813,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "An unexpected error occurred on the server.", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "AccessToken", "" ); return body; @@ -40581,16 +41830,24 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to generateCSV + * @params response Response returned by the server for a request to getDataSourceSuggestions * @throws ApiException if the response code was not in [200, 299] */ - generateCSV(response) { + getDataSourceSuggestions(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "EurekaDataSourceSuggestionResponse", + "" + ); + return body; + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "EurekaDataSourceSuggestionResponse", "" ); return body; @@ -40601,7 +41858,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40625,12 +41882,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "any", + "EurekaDataSourceSuggestionResponse", "" ); return body; @@ -40642,16 +41899,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getCurrentUserInfo + * @params response Response returned by the server for a request to getFullAccessToken * @throws ApiException if the response code was not in [200, 299] */ - getCurrentUserInfo(response) { + getFullAccessToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "User", + "Token", "" ); return body; @@ -40691,7 +41948,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "User", + "Token", "" ); return body; @@ -40703,16 +41960,24 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getCurrentUserToken + * @params response Response returned by the server for a request to getNLInstructions * @throws ApiException if the response code was not in [200, 299] */ - getCurrentUserToken(response) { + getNLInstructions(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetTokenResponse", + "EurekaGetNLInstructionsResponse", + "" + ); + return body; + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "EurekaGetNLInstructionsResponse", "" ); return body; @@ -40723,7 +41988,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40747,12 +42012,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "GetTokenResponse", + "EurekaGetNLInstructionsResponse", "" ); return body; @@ -40764,16 +42029,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getCustomAccessToken + * @params response Response returned by the server for a request to getObjectAccessToken * @throws ApiException if the response code was not in [200, 299] */ - getCustomAccessToken(response) { + getObjectAccessToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AccessToken", + "Token", "" ); return body; @@ -40784,7 +42049,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request. This could be due to missing or incorrect parameters.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40792,7 +42057,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access. The request could not be authenticated.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40800,7 +42065,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access. The user does not have permission to access this resource.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -40808,12 +42073,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "An unexpected error occurred on the server.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "AccessToken", + "Token", "" ); return body; @@ -40825,16 +42090,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getDataSourceSuggestions + * @params response Response returned by the server for a request to getRelevantQuestions * @throws ApiException if the response code was not in [200, 299] */ - getDataSourceSuggestions(response) { + getRelevantQuestions(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDataSourceSuggestionResponse", + "EurekaGetRelevantQuestionsResponse", "" ); return body; @@ -40842,7 +42107,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (isCodeInRange("201", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDataSourceSuggestionResponse", + "EurekaGetRelevantQuestionsResponse", "" ); return body; @@ -40882,7 +42147,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDataSourceSuggestionResponse", + "EurekaGetRelevantQuestionsResponse", "" ); return body; @@ -40894,16 +42159,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getFullAccessToken + * @params response Response returned by the server for a request to getSystemConfig * @throws ApiException if the response code was not in [200, 299] */ - getFullAccessToken(response) { + getSystemConfig(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemConfig", "" ); return body; @@ -40943,7 +42208,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemConfig", "" ); return body; @@ -40955,24 +42220,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getNLInstructions + * @params response Response returned by the server for a request to getSystemInformation * @throws ApiException if the response code was not in [200, 299] */ - getNLInstructions(response) { + getSystemInformation(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetNLInstructionsResponse", - "" - ); - return body; - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetNLInstructionsResponse", + "SystemInfo", "" ); return body; @@ -40983,7 +42240,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41007,12 +42264,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetNLInstructionsResponse", + "SystemInfo", "" ); return body; @@ -41024,16 +42281,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getObjectAccessToken + * @params response Response returned by the server for a request to getSystemOverrideInfo * @throws ApiException if the response code was not in [200, 299] */ - getObjectAccessToken(response) { + getSystemOverrideInfo(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemOverrideInfo", "" ); return body; @@ -41073,7 +42330,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Token", + "SystemOverrideInfo", "" ); return body; @@ -41085,24 +42342,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getRelevantQuestions + * @params response Response returned by the server for a request to importMetadataTML * @throws ApiException if the response code was not in [200, 299] */ - getRelevantQuestions(response) { + importMetadataTML(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetRelevantQuestionsResponse", - "" - ); - return body; - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetRelevantQuestionsResponse", + "Array", "" ); return body; @@ -41113,7 +42362,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41137,12 +42386,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaGetRelevantQuestionsResponse", + "Array", "" ); return body; @@ -41154,16 +42403,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getSystemConfig + * @params response Response returned by the server for a request to importMetadataTMLAsync * @throws ApiException if the response code was not in [200, 299] */ - getSystemConfig(response) { + importMetadataTMLAsync(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemConfig", + "ImportEPackAsyncTaskStatus", "" ); return body; @@ -41203,7 +42452,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemConfig", + "ImportEPackAsyncTaskStatus", "" ); return body; @@ -41215,16 +42464,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getSystemInformation + * @params response Response returned by the server for a request to importUserGroups * @throws ApiException if the response code was not in [200, 299] */ - getSystemInformation(response) { + importUserGroups(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemInfo", + "ImportUserGroupsResponse", "" ); return body; @@ -41264,7 +42513,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemInfo", + "ImportUserGroupsResponse", "" ); return body; @@ -41276,16 +42525,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getSystemOverrideInfo + * @params response Response returned by the server for a request to importUsers * @throws ApiException if the response code was not in [200, 299] */ - getSystemOverrideInfo(response) { + importUsers(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemOverrideInfo", + "ImportUsersResponse", "" ); return body; @@ -41325,7 +42574,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "SystemOverrideInfo", + "ImportUsersResponse", "" ); return body; @@ -41337,19 +42586,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importMetadataTML + * @params response Response returned by the server for a request to login * @throws ApiException if the response code was not in [200, 299] */ - importMetadataTML(response) { + login(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41386,7 +42630,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "Array", + "void", "" ); return body; @@ -41398,19 +42642,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importMetadataTMLAsync + * @params response Response returned by the server for a request to logout * @throws ApiException if the response code was not in [200, 299] */ - importMetadataTMLAsync(response) { + logout(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportEPackAsyncTaskStatus", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41447,7 +42686,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportEPackAsyncTaskStatus", + "void", "" ); return body; @@ -41459,19 +42698,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importUserGroups + * @params response Response returned by the server for a request to manageObjectPrivilege * @throws ApiException if the response code was not in [200, 299] */ - importUserGroups(response) { + manageObjectPrivilege(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUserGroupsResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41479,7 +42713,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41487,7 +42721,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41495,7 +42729,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41508,7 +42742,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUserGroupsResponse", + "void", "" ); return body; @@ -41520,19 +42754,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to importUsers + * @params response Response returned by the server for a request to parameterizeMetadata * @throws ApiException if the response code was not in [200, 299] */ - importUsers(response) { + parameterizeMetadata(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUsersResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41569,7 +42798,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ImportUsersResponse", + "void", "" ); return body; @@ -41581,10 +42810,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to login + * @params response Response returned by the server for a request to parameterizeMetadataFields * @throws ApiException if the response code was not in [200, 299] */ - login(response) { + parameterizeMetadataFields(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -41637,10 +42866,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to logout + * @params response Response returned by the server for a request to publishMetadata * @throws ApiException if the response code was not in [200, 299] */ - logout(response) { + publishMetadata(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -41693,10 +42922,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to manageObjectPrivilege + * @params response Response returned by the server for a request to putVariableValues * @throws ApiException if the response code was not in [200, 299] */ - manageObjectPrivilege(response) { + putVariableValues(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -41708,7 +42937,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41716,7 +42945,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access", body, response.headers); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); } if (isCodeInRange("403", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41724,7 +42953,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access", body, response.headers); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41749,78 +42978,35 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to parameterizeMetadata + * @params response Response returned by the server for a request to queryGetDecomposedQuery * @throws ApiException if the response code was not in [200, 299] */ - parameterizeMetadata(response) { + queryGetDecomposedQuery(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } - if (isCodeInRange("400", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); - } - if (isCodeInRange("401", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); - } - if (isCodeInRange("403", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); - } - if (isCodeInRange("500", response.httpStatusCode)) { + if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", + "EurekaDecomposeQueryResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + return body; } - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + if (isCodeInRange("201", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "EurekaDecomposeQueryResponse", "" ); return body; } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); - }); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to parameterizeMetadataFields - * @throws ApiException if the response code was not in [200, 299] - */ - parameterizeMetadataFields(response) { - return __async(this, null, function* () { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41844,12 +43030,12 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); } if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "EurekaDecomposeQueryResponse", "" ); return body; @@ -41861,10 +43047,10 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to publishMetadata + * @params response Response returned by the server for a request to resetUserPassword * @throws ApiException if the response code was not in [200, 299] */ - publishMetadata(response) { + resetUserPassword(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("204", response.httpStatusCode)) { @@ -41917,14 +43103,19 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to putVariableValues + * @params response Response returned by the server for a request to revertCommit * @throws ApiException if the response code was not in [200, 299] */ - putVariableValues(response) { + revertCommit(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; + if (isCodeInRange("200", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "RevertResponse", + "" + ); + return body; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -41961,7 +43152,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "RevertResponse", "" ); return body; @@ -41973,24 +43164,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to queryGetDecomposedQuery + * @params response Response returned by the server for a request to revokeRefreshTokens * @throws ApiException if the response code was not in [200, 299] */ - queryGetDecomposedQuery(response) { + revokeRefreshTokens(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDecomposeQueryResponse", - "" - ); - return body; - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDecomposeQueryResponse", + "RevokeRefreshTokensResponse", "" ); return body; @@ -42001,7 +43184,7 @@ var ThoughtSpotRestApiResponseProcessor = class { "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); } if (isCodeInRange("401", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42019,61 +43202,21 @@ var ThoughtSpotRestApiResponseProcessor = class { ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } - if (isCodeInRange("500", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); - } - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "EurekaDecomposeQueryResponse", - "" - ); - return body; - } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); - }); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to resetUserPassword - * @throws ApiException if the response code was not in [200, 299] - */ - resetUserPassword(response) { - return __async(this, null, function* () { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } - if (isCodeInRange("400", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); - } - if (isCodeInRange("401", response.httpStatusCode)) { + if (isCodeInRange("404", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); } - if (isCodeInRange("403", response.httpStatusCode)) { + if (isCodeInRange("409", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), "ErrorResponse", "" ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + throw new ApiException(response.httpStatusCode, "Conflict", body, response.headers); } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42086,7 +43229,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "RevokeRefreshTokensResponse", "" ); return body; @@ -42098,19 +43241,14 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to revertCommit + * @params response Response returned by the server for a request to revokeToken * @throws ApiException if the response code was not in [200, 299] */ - revertCommit(response) { + revokeToken(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "RevertResponse", - "" - ); - return body; + if (isCodeInRange("204", response.httpStatusCode)) { + return; } if (isCodeInRange("400", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( @@ -42147,7 +43285,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "RevertResponse", + "void", "" ); return body; @@ -42159,16 +43297,16 @@ var ThoughtSpotRestApiResponseProcessor = class { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to revokeRefreshTokens + * @params response Response returned by the server for a request to searchAuthSettings * @throws ApiException if the response code was not in [200, 299] */ - revokeRefreshTokens(response) { + searchAuthSettings(response) { return __async(this, null, function* () { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "RevokeRefreshTokensResponse", + "SearchAuthSettingsResponse", "" ); return body; @@ -42197,78 +43335,6 @@ var ThoughtSpotRestApiResponseProcessor = class { ); throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); } - if (isCodeInRange("404", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); - } - if (isCodeInRange("409", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Conflict", body, response.headers); - } - if (isCodeInRange("500", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); - } - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "RevokeRefreshTokensResponse", - "" - ); - return body; - } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); - }); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to revokeToken - * @throws ApiException if the response code was not in [200, 299] - */ - revokeToken(response) { - return __async(this, null, function* () { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("204", response.httpStatusCode)) { - return; - } - if (isCodeInRange("400", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); - } - if (isCodeInRange("401", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); - } - if (isCodeInRange("403", response.httpStatusCode)) { - const body = ObjectSerializer.deserialize( - ObjectSerializer.parse(yield response.body.text(), contentType), - "ErrorResponse", - "" - ); - throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); - } if (isCodeInRange("500", response.httpStatusCode)) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), @@ -42280,7 +43346,7 @@ var ThoughtSpotRestApiResponseProcessor = class { if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body = ObjectSerializer.deserialize( ObjectSerializer.parse(yield response.body.text(), contentType), - "void", + "SearchAuthSettingsResponse", "" ); return body; @@ -44039,6 +45105,62 @@ var ThoughtSpotRestApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to stopConversation + * @throws ApiException if the response code was not in [200, 299] + */ + stopConversation(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Operation failed", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -44625,6 +45747,70 @@ var ThoughtSpotRestApiResponseProcessor = class { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); }); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConnectionStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateConnectionStatus(response) { + return __async(this, null, function* () { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("204", response.httpStatusCode)) { + return; + } + if (isCodeInRange("400", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Invalid request.", body, response.headers); + } + if (isCodeInRange("401", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unauthorized access.", body, response.headers); + } + if (isCodeInRange("403", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Forbidden access.", body, response.headers); + } + if (isCodeInRange("404", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Object not found", body, response.headers); + } + if (isCodeInRange("500", response.httpStatusCode)) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "ErrorResponse", + "" + ); + throw new ApiException(response.httpStatusCode, "Unexpected error", body, response.headers); + } + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer.deserialize( + ObjectSerializer.parse(yield response.body.text(), contentType), + "void", + "" + ); + return body; + } + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers); + }); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -45780,8 +46966,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/activate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -45817,8 +47003,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/change-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -45854,8 +47040,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -45891,8 +47077,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/deactivate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -45928,8 +47114,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/delete".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -45956,8 +47142,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/force-logout"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -45993,8 +47179,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/import"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46030,8 +47216,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/reset-password"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46067,8 +47253,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46108,8 +47294,8 @@ var UsersApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/users/{user_identifier}/update".replace("{user_identifier}", encodeURIComponent(String(userIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46736,8 +47922,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46773,8 +47959,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/delete".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); let authMethod; authMethod = _config.authMethods["bearerAuth"]; if (authMethod == null ? void 0 : authMethod.applySecurityAuthentication) { @@ -46801,8 +47987,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46842,8 +48028,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update-values".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46879,8 +48065,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46920,8 +48106,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/{identifier}/update".replace("{identifier}", encodeURIComponent(String(identifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -46957,8 +48143,8 @@ var VariableApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/template/variables/update-values"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47402,8 +48588,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/commit"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47439,8 +48625,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47476,8 +48662,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47513,8 +48699,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/deploy"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47554,8 +48740,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/{commit_id}/revert".replace("{commit_id}", encodeURIComponent(String(commitId))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47591,8 +48777,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/commits/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47628,8 +48814,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47665,8 +48851,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/config/update"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -47702,8 +48888,8 @@ var VersionControlApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/vcs/git/branches/validate"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48289,8 +49475,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/create"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48326,8 +49512,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/delete"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48363,8 +49549,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/search"; const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48404,8 +49590,8 @@ var WebhooksApiRequestFactory = class extends BaseAPIRequestFactory { const localVarPath = "/api/rest/2.0/webhooks/{webhook_identifier}/update".replace("{webhook_identifier}", encodeURIComponent(String(webhookIdentifier))); const requestContext = _config.baseServer.makeRequestContext(localVarPath, "POST" /* POST */); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8"); - requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.24.0"); - requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.24.0"); + requestContext.setHeaderParam("User-Agent", "ThoughtSpot-Client/typescript/2.25.0"); + requestContext.setHeaderParam("X-ThoughtSpot-Client", "ThoughtSpot-ts-client/2.25.0"); const contentType = ObjectSerializer.getPreferredMediaType([ "application/json" ]); @@ -48915,6 +50101,24 @@ var ObservableAIApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.singleAnswer(rsp))); })); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const requestContextPromise = this.requestFactory.stopConversation(conversationIdentifier, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.stopConversation(rsp))); + })); + } }; var ObservableAuthenticationApi = class { constructor(configuration, requestFactory, responseProcessor) { @@ -48922,6 +50126,24 @@ var ObservableAuthenticationApi = class { this.requestFactory = requestFactory || new AuthenticationApiRequestFactory(configuration); this.responseProcessor = responseProcessor || new AuthenticationApiResponseProcessor(); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.configureAuthSettings(configureAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.configureAuthSettings(rsp))); + })); + } /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -49063,6 +50285,24 @@ var ObservableAuthenticationApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.revokeToken(rsp))); })); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.searchAuthSettings(searchAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.searchAuthSettings(rsp))); + })); + } /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -49412,6 +50652,25 @@ var ObservableConnectionsApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnection(rsp))); })); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const requestContextPromise = this.requestFactory.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnectionStatus(rsp))); + })); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -51214,6 +52473,24 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.commitBranch(rsp))); })); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.configureAuthSettings(configureAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.configureAuthSettings(rsp))); + })); + } /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -52898,6 +54175,24 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.revokeToken(rsp))); })); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const requestContextPromise = this.requestFactory.searchAuthSettings(searchAuthSettingsRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.searchAuthSettings(rsp))); + })); + } /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -53406,6 +54701,24 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.singleAnswer(rsp))); })); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const requestContextPromise = this.requestFactory.stopConversation(conversationIdentifier, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.stopConversation(rsp))); + })); + } /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -53590,6 +54903,25 @@ var ObservableThoughtSpotRestApi = class { return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnectionConfiguration(rsp))); })); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const requestContextPromise = this.requestFactory.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx) => middleware.pre(ctx))); + } + return middlewarePreObservable.pipe(mergeMap((ctx) => this.configuration.httpApi.send(ctx))).pipe(mergeMap((response) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp) => this.responseProcessor.updateConnectionStatus(rsp))); + })); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -54657,11 +55989,27 @@ var PromiseAIApi = class { const result = this.api.singleAnswer(singleAnswerRequest, _options); return result.toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const result = this.api.stopConversation(conversationIdentifier, _options); + return result.toPromise(); + } }; var PromiseAuthenticationApi = class { constructor(configuration, requestFactory, responseProcessor) { this.api = new ObservableAuthenticationApi(configuration, requestFactory, responseProcessor); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const result = this.api.configureAuthSettings(configureAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -54723,6 +56071,14 @@ var PromiseAuthenticationApi = class { const result = this.api.revokeToken(revokeTokenRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const result = this.api.searchAuthSettings(searchAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -54886,6 +56242,15 @@ var PromiseConnectionsApi = class { const result = this.api.updateConnection(updateConnectionRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const result = this.api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + return result.toPromise(); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -55734,6 +57099,14 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.commitBranch(commitBranchRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + configureAuthSettings(configureAuthSettingsRequest, _options) { + const result = this.api.configureAuthSettings(configureAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -56488,6 +57861,14 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.revokeToken(revokeTokenRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + searchAuthSettings(searchAuthSettingsRequest, _options) { + const result = this.api.searchAuthSettings(searchAuthSettingsRequest, _options); + return result.toPromise(); + } /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -56716,6 +58097,14 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.singleAnswer(singleAnswerRequest, _options); return result.toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + stopConversation(conversationIdentifier, _options) { + const result = this.api.stopConversation(conversationIdentifier, _options); + return result.toPromise(); + } /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -56800,6 +58189,15 @@ var PromiseThoughtSpotRestApi = class { const result = this.api.updateConnectionConfiguration(configurationIdentifier, updateConnectionConfigurationRequest, _options); return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options) { + const result = this.api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + return result.toPromise(); + } /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -57337,11 +58735,18 @@ export { AgentConversation, AnswerContent, AnswerDataResponse, + AnswerPngOptionsInput, ApiException, AssignChangeAuthorRequest, AssignTagRequest, AssociateMetadataInput, AssociateMetadataInputCreate, + AuthClusterPreferences, + AuthClusterPreferencesInput, + AuthOrgInfo, + AuthOrgPreference, + AuthOrgPreferenceInput, + AuthSettingsAccessToken, Authentication, PromiseAuthenticationApi as AuthenticationApi, AuthenticationInput, @@ -57389,6 +58794,8 @@ export { CommiterType, CommunicationChannelPreferencesResponse, CommunicationChannelValidateResponse, + ConfigureAuthSettingsRequest, + ConfigureAuthSettingsRequestClusterPreferences, ConfigureCommunicationChannelPreferencesRequest, ConfigureSecuritySettingsRequest, ConfigureSecuritySettingsRequestClusterPreferences, @@ -57481,6 +58888,7 @@ export { EventChannelConfigInput, ExcludeMetadataListItemInput, ExportAnswerReportRequest, + ExportAnswerReportRequestPngOptions, ExportAnswerReportRequestRegionalSettings, ExportLiveboardReportRequest, ExportLiveboardReportRequestPdfOptions, @@ -57651,6 +59059,8 @@ export { Scope, ScriptSrcUrls, ScriptSrcUrlsInput, + SearchAuthSettingsRequest, + SearchAuthSettingsResponse, SearchCalendarsRequest, SearchCalendarsRequestSortOptions, SearchChannelHistoryRequest, @@ -57743,6 +59153,7 @@ export { UpdateConfigRequest, UpdateConnectionConfigurationRequest, UpdateConnectionRequest, + UpdateConnectionStatusRequest, UpdateConnectionV2Request, UpdateCustomActionRequest, UpdateCustomActionRequestActionDetails, @@ -57780,6 +59191,7 @@ export { Variable, PromiseVariableApi as VariableApi, VariableDetailInput, + VariableOrgInfo, VariablePutAssignmentInput, VariableUpdateAssignmentInput, VariableUpdateScopeInput, diff --git a/sdks/typescript/models/AnswerPngOptionsInput.ts b/sdks/typescript/models/AnswerPngOptionsInput.ts new file mode 100644 index 000000000..eef1a7b11 --- /dev/null +++ b/sdks/typescript/models/AnswerPngOptionsInput.ts @@ -0,0 +1,58 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +export class AnswerPngOptionsInput { + /** + * Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or later + */ + 'x_resolution'?: number | null; + /** + * Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl or later + */ + 'y_resolution'?: number | null; + /** + * The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later + */ + 'scaling'?: number | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "x_resolution", + "baseName": "x_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "y_resolution", + "baseName": "y_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "scaling", + "baseName": "scaling", + "type": "number", + "format": "int32" + } ]; + + static getAttributeTypeMap() { + return AnswerPngOptionsInput.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/sdks/typescript/models/AuthClusterPreferences.ts b/sdks/typescript/models/AuthClusterPreferences.ts new file mode 100644 index 000000000..80a8759f8 --- /dev/null +++ b/sdks/typescript/models/AuthClusterPreferences.ts @@ -0,0 +1,55 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AuthSettingsAccessToken } from '../models/AuthSettingsAccessToken'; +import { HttpFile } from '../http/http'; + +/** +* Cluster-level authentication preferences. +*/ +export class AuthClusterPreferences { + /** + * Whether authentication is enabled or disabled at the cluster level. + */ + 'auth_status'?: AuthClusterPreferencesAuthStatusEnum | null; + /** + * Cluster-level access tokens. Absent when no token is configured. + */ + 'access_tokens'?: Array | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthClusterPreferencesAuthStatusEnum", + "format": "" + }, + { + "name": "access_tokens", + "baseName": "access_tokens", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AuthClusterPreferences.attributeTypeMap; + } + + public constructor() { + } +} + + +export type AuthClusterPreferencesAuthStatusEnum = "ENABLED" | "DISABLED" ; + diff --git a/sdks/typescript/models/AuthClusterPreferencesInput.ts b/sdks/typescript/models/AuthClusterPreferencesInput.ts new file mode 100644 index 000000000..1bb76cd33 --- /dev/null +++ b/sdks/typescript/models/AuthClusterPreferencesInput.ts @@ -0,0 +1,44 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +/** +* Input for cluster-level auth configuration. +*/ +export class AuthClusterPreferencesInput { + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: AuthClusterPreferencesInputAuthStatusEnum | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthClusterPreferencesInputAuthStatusEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AuthClusterPreferencesInput.attributeTypeMap; + } + + public constructor() { + } +} + + +export type AuthClusterPreferencesInputAuthStatusEnum = "ENABLED" | "DISABLED" ; + diff --git a/sdks/typescript/models/AuthOrgInfo.ts b/sdks/typescript/models/AuthOrgInfo.ts new file mode 100644 index 000000000..8db1b9854 --- /dev/null +++ b/sdks/typescript/models/AuthOrgInfo.ts @@ -0,0 +1,51 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +/** +* Org identifier returned in auth settings search results. +*/ +export class AuthOrgInfo { + /** + * Unique identifier of the org. + */ + 'id': number; + /** + * Name of the org. + */ + 'name'?: string | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "int32" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AuthOrgInfo.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/sdks/typescript/models/AuthOrgPreference.ts b/sdks/typescript/models/AuthOrgPreference.ts new file mode 100644 index 000000000..3b272c346 --- /dev/null +++ b/sdks/typescript/models/AuthOrgPreference.ts @@ -0,0 +1,63 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AuthOrgInfo } from '../models/AuthOrgInfo'; +import { AuthSettingsAccessToken } from '../models/AuthSettingsAccessToken'; +import { HttpFile } from '../http/http'; + +/** +* Org-level authentication preferences for a single org. +*/ +export class AuthOrgPreference { + 'org'?: AuthOrgInfo; + /** + * Whether authentication is enabled or disabled for this org. + */ + 'auth_status'?: AuthOrgPreferenceAuthStatusEnum | null; + /** + * Org-level access tokens. Absent when no token is configured or the feature flag is off. + */ + 'access_tokens'?: Array | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "org", + "baseName": "org", + "type": "AuthOrgInfo", + "format": "" + }, + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthOrgPreferenceAuthStatusEnum", + "format": "" + }, + { + "name": "access_tokens", + "baseName": "access_tokens", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AuthOrgPreference.attributeTypeMap; + } + + public constructor() { + } +} + + +export type AuthOrgPreferenceAuthStatusEnum = "ENABLED" | "DISABLED" ; + diff --git a/sdks/typescript/models/AuthOrgPreferenceInput.ts b/sdks/typescript/models/AuthOrgPreferenceInput.ts new file mode 100644 index 000000000..575163b2c --- /dev/null +++ b/sdks/typescript/models/AuthOrgPreferenceInput.ts @@ -0,0 +1,54 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +/** +* Input for org-level auth configuration. +*/ +export class AuthOrgPreferenceInput { + /** + * Unique ID or name of the org to configure. + */ + 'org_identifier': string; + /** + * Enable or disable authentication for this org. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: AuthOrgPreferenceInputAuthStatusEnum | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "org_identifier", + "baseName": "org_identifier", + "type": "string", + "format": "" + }, + { + "name": "auth_status", + "baseName": "auth_status", + "type": "AuthOrgPreferenceInputAuthStatusEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AuthOrgPreferenceInput.attributeTypeMap; + } + + public constructor() { + } +} + + +export type AuthOrgPreferenceInputAuthStatusEnum = "ENABLED" | "DISABLED" ; + diff --git a/sdks/typescript/models/AuthSettingsAccessToken.ts b/sdks/typescript/models/AuthSettingsAccessToken.ts new file mode 100644 index 000000000..203a52bfa --- /dev/null +++ b/sdks/typescript/models/AuthSettingsAccessToken.ts @@ -0,0 +1,41 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +/** +* An auth settings access token. +*/ +export class AuthSettingsAccessToken { + /** + * The plaintext token key value. + */ + 'key': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "key", + "baseName": "key", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AuthSettingsAccessToken.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/sdks/typescript/models/ConfigureAuthSettingsRequest.ts b/sdks/typescript/models/ConfigureAuthSettingsRequest.ts new file mode 100644 index 000000000..265c570df --- /dev/null +++ b/sdks/typescript/models/ConfigureAuthSettingsRequest.ts @@ -0,0 +1,60 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AuthOrgPreferenceInput } from '../models/AuthOrgPreferenceInput'; +import { ConfigureAuthSettingsRequestClusterPreferences } from '../models/ConfigureAuthSettingsRequestClusterPreferences'; +import { HttpFile } from '../http/http'; + +export class ConfigureAuthSettingsRequest { + /** + * Type of authentication mechanism to configure. Currently supports TRUSTED_AUTH. + */ + 'auth_type': ConfigureAuthSettingsRequestAuthTypeEnum; + 'cluster_preferences'?: ConfigureAuthSettingsRequestClusterPreferences; + /** + * Org-level authentication preferences. Each entry identifies an org and the desired status. Omit to leave existing org settings unchanged. + */ + 'org_preferences'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "ConfigureAuthSettingsRequestAuthTypeEnum", + "format": "" + }, + { + "name": "cluster_preferences", + "baseName": "cluster_preferences", + "type": "ConfigureAuthSettingsRequestClusterPreferences", + "format": "" + }, + { + "name": "org_preferences", + "baseName": "org_preferences", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ConfigureAuthSettingsRequest.attributeTypeMap; + } + + public constructor() { + } +} + + +export type ConfigureAuthSettingsRequestAuthTypeEnum = "TRUSTED_AUTH" ; + diff --git a/sdks/typescript/models/ConfigureAuthSettingsRequestClusterPreferences.ts b/sdks/typescript/models/ConfigureAuthSettingsRequestClusterPreferences.ts new file mode 100644 index 000000000..aacd29285 --- /dev/null +++ b/sdks/typescript/models/ConfigureAuthSettingsRequestClusterPreferences.ts @@ -0,0 +1,44 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +/** +* Cluster-level authentication preferences. Omit to leave the existing cluster setting unchanged. +*/ +export class ConfigureAuthSettingsRequestClusterPreferences { + /** + * Enable or disable authentication at the cluster level. When enabled, a new token is generated if one does not exist. When disabled, the existing token is revoked. + */ + 'auth_status'?: ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "auth_status", + "baseName": "auth_status", + "type": "ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ConfigureAuthSettingsRequestClusterPreferences.attributeTypeMap; + } + + public constructor() { + } +} + + +export type ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum = "ENABLED" | "DISABLED" ; + diff --git a/sdks/typescript/models/ConnectionConfigurationResponse.ts b/sdks/typescript/models/ConnectionConfigurationResponse.ts index f9e612370..9b200a58d 100644 --- a/sdks/typescript/models/ConnectionConfigurationResponse.ts +++ b/sdks/typescript/models/ConnectionConfigurationResponse.ts @@ -107,6 +107,6 @@ export class ConnectionConfigurationResponse { export type ConnectionConfigurationResponsePolicyProcessesEnum = "SAGE_INDEXING" | "ROW_COUNT_STATS" ; -export type ConnectionConfigurationResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" ; +export type ConnectionConfigurationResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE" ; export type ConnectionConfigurationResponsePolicyTypeEnum = "NO_POLICY" | "PRINCIPALS" | "PROCESSES" ; diff --git a/sdks/typescript/models/CreateConnectionRequest.ts b/sdks/typescript/models/CreateConnectionRequest.ts index 8c6937482..6715614bf 100644 --- a/sdks/typescript/models/CreateConnectionRequest.ts +++ b/sdks/typescript/models/CreateConnectionRequest.ts @@ -77,5 +77,5 @@ export class CreateConnectionRequest { } -export type CreateConnectionRequestDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" ; +export type CreateConnectionRequestDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE" ; diff --git a/sdks/typescript/models/CreateConnectionResponse.ts b/sdks/typescript/models/CreateConnectionResponse.ts index 32d89d0a7..e1c6c8fa2 100644 --- a/sdks/typescript/models/CreateConnectionResponse.ts +++ b/sdks/typescript/models/CreateConnectionResponse.ts @@ -67,5 +67,5 @@ export class CreateConnectionResponse { } -export type CreateConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" ; +export type CreateConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE" ; diff --git a/sdks/typescript/models/CreateRoleRequest.ts b/sdks/typescript/models/CreateRoleRequest.ts index f0605526d..c702021df 100644 --- a/sdks/typescript/models/CreateRoleRequest.ts +++ b/sdks/typescript/models/CreateRoleRequest.ts @@ -67,5 +67,5 @@ export class CreateRoleRequest { } -export type CreateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type CreateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; diff --git a/sdks/typescript/models/CreateScheduleRequestPdfOptions.ts b/sdks/typescript/models/CreateScheduleRequestPdfOptions.ts index b9ed76a9e..439b28892 100644 --- a/sdks/typescript/models/CreateScheduleRequestPdfOptions.ts +++ b/sdks/typescript/models/CreateScheduleRequestPdfOptions.ts @@ -120,5 +120,5 @@ export class CreateScheduleRequestPdfOptions { } -export type CreateScheduleRequestPdfOptionsPageSizeEnum = "A4" ; +export type CreateScheduleRequestPdfOptionsPageSizeEnum = "A4" | "TAB_BASED" ; diff --git a/sdks/typescript/models/CreateUserGroupRequest.ts b/sdks/typescript/models/CreateUserGroupRequest.ts index 555c10078..cdbcbe755 100644 --- a/sdks/typescript/models/CreateUserGroupRequest.ts +++ b/sdks/typescript/models/CreateUserGroupRequest.ts @@ -127,7 +127,7 @@ export class CreateUserGroupRequest { } -export type CreateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type CreateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type CreateUserGroupRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP" ; export type CreateUserGroupRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE" ; diff --git a/sdks/typescript/models/ExportAnswerReportRequest.ts b/sdks/typescript/models/ExportAnswerReportRequest.ts index e4e92988a..5c9f1186b 100644 --- a/sdks/typescript/models/ExportAnswerReportRequest.ts +++ b/sdks/typescript/models/ExportAnswerReportRequest.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ +import { ExportAnswerReportRequestPngOptions } from '../models/ExportAnswerReportRequestPngOptions'; import { ExportAnswerReportRequestRegionalSettings } from '../models/ExportAnswerReportRequestRegionalSettings'; import { HttpFile } from '../http/http'; @@ -43,6 +44,15 @@ export class ExportAnswerReportRequest { */ 'runtime_param_override'?: any; 'regional_settings'?: ExportAnswerReportRequestRegionalSettings; + 'png_options'?: ExportAnswerReportRequestPngOptions; + /** + * GUID or name of the personalised view of the Answer object. Version: 26.6.0.cl or later + */ + 'personalised_view_identifier'?: string; + /** + * Type of the answer being exported. Version: 26.6.0.cl or later + */ + 'type'?: ExportAnswerReportRequestTypeEnum; static readonly discriminator: string | undefined = undefined; @@ -94,6 +104,24 @@ export class ExportAnswerReportRequest { "baseName": "regional_settings", "type": "ExportAnswerReportRequestRegionalSettings", "format": "" + }, + { + "name": "png_options", + "baseName": "png_options", + "type": "ExportAnswerReportRequestPngOptions", + "format": "" + }, + { + "name": "personalised_view_identifier", + "baseName": "personalised_view_identifier", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "ExportAnswerReportRequestTypeEnum", + "format": "" } ]; static getAttributeTypeMap() { @@ -106,4 +134,5 @@ export class ExportAnswerReportRequest { export type ExportAnswerReportRequestFileFormatEnum = "CSV" | "PDF" | "XLSX" | "PNG" ; +export type ExportAnswerReportRequestTypeEnum = "SAVED" | "PINNED" ; diff --git a/sdks/typescript/models/ExportAnswerReportRequestPngOptions.ts b/sdks/typescript/models/ExportAnswerReportRequestPngOptions.ts new file mode 100644 index 000000000..6f7b25b69 --- /dev/null +++ b/sdks/typescript/models/ExportAnswerReportRequestPngOptions.ts @@ -0,0 +1,61 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +/** +* Options for PNG export. Version: 26.6.0.cl or later +*/ +export class ExportAnswerReportRequestPngOptions { + /** + * Desired width of the answer image in pixels. Ex. 1920 for Full HD image Version: 26.6.0.cl or later + */ + 'x_resolution'?: number | null; + /** + * Desired height of the answer image in pixels. Ex. 1080 for Full HD image Version: 26.6.0.cl or later + */ + 'y_resolution'?: number | null; + /** + * The scale of the image in percentage. Ex. 100 for 100% scale. Version: 26.6.0.cl or later + */ + 'scaling'?: number | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "x_resolution", + "baseName": "x_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "y_resolution", + "baseName": "y_resolution", + "type": "number", + "format": "int32" + }, + { + "name": "scaling", + "baseName": "scaling", + "type": "number", + "format": "int32" + } ]; + + static getAttributeTypeMap() { + return ExportAnswerReportRequestPngOptions.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/sdks/typescript/models/FetchPermissionsOfPrincipalsRequest.ts b/sdks/typescript/models/FetchPermissionsOfPrincipalsRequest.ts index 7656563e5..41ebbf76e 100644 --- a/sdks/typescript/models/FetchPermissionsOfPrincipalsRequest.ts +++ b/sdks/typescript/models/FetchPermissionsOfPrincipalsRequest.ts @@ -79,5 +79,5 @@ export class FetchPermissionsOfPrincipalsRequest { } -export type FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum = "ALL" | "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" ; +export type FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum = "ALL" | "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION" ; diff --git a/sdks/typescript/models/GroupsImportListInput.ts b/sdks/typescript/models/GroupsImportListInput.ts index ec4e51177..14be85604 100644 --- a/sdks/typescript/models/GroupsImportListInput.ts +++ b/sdks/typescript/models/GroupsImportListInput.ts @@ -117,7 +117,7 @@ export class GroupsImportListInput { } -export type GroupsImportListInputPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type GroupsImportListInputPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type GroupsImportListInputTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP" ; export type GroupsImportListInputVisibilityEnum = "SHARABLE" | "NON_SHARABLE" ; diff --git a/sdks/typescript/models/ObjectSerializer.ts b/sdks/typescript/models/ObjectSerializer.ts index e61550852..64448ef91 100644 --- a/sdks/typescript/models/ObjectSerializer.ts +++ b/sdks/typescript/models/ObjectSerializer.ts @@ -12,10 +12,17 @@ export * from '../models/ActivateUserRequest'; export * from '../models/AgentConversation'; export * from '../models/AnswerContent'; export * from '../models/AnswerDataResponse'; +export * from '../models/AnswerPngOptionsInput'; export * from '../models/AssignChangeAuthorRequest'; export * from '../models/AssignTagRequest'; export * from '../models/AssociateMetadataInput'; export * from '../models/AssociateMetadataInputCreate'; +export * from '../models/AuthClusterPreferences'; +export * from '../models/AuthClusterPreferencesInput'; +export * from '../models/AuthOrgInfo'; +export * from '../models/AuthOrgPreference'; +export * from '../models/AuthOrgPreferenceInput'; +export * from '../models/AuthSettingsAccessToken'; export * from '../models/Authentication'; export * from '../models/AuthenticationInput'; export * from '../models/Author'; @@ -60,6 +67,8 @@ export * from '../models/CommitResponse'; export * from '../models/CommiterType'; export * from '../models/CommunicationChannelPreferencesResponse'; export * from '../models/CommunicationChannelValidateResponse'; +export * from '../models/ConfigureAuthSettingsRequest'; +export * from '../models/ConfigureAuthSettingsRequestClusterPreferences'; export * from '../models/ConfigureCommunicationChannelPreferencesRequest'; export * from '../models/ConfigureSecuritySettingsRequest'; export * from '../models/ConfigureSecuritySettingsRequestClusterPreferences'; @@ -145,6 +154,7 @@ export * from '../models/EventChannelConfig'; export * from '../models/EventChannelConfigInput'; export * from '../models/ExcludeMetadataListItemInput'; export * from '../models/ExportAnswerReportRequest'; +export * from '../models/ExportAnswerReportRequestPngOptions'; export * from '../models/ExportAnswerReportRequestRegionalSettings'; export * from '../models/ExportLiveboardReportRequest'; export * from '../models/ExportLiveboardReportRequestPdfOptions'; @@ -301,6 +311,8 @@ export * from '../models/SchemaObject'; export * from '../models/Scope'; export * from '../models/ScriptSrcUrls'; export * from '../models/ScriptSrcUrlsInput'; +export * from '../models/SearchAuthSettingsRequest'; +export * from '../models/SearchAuthSettingsResponse'; export * from '../models/SearchCalendarsRequest'; export * from '../models/SearchCalendarsRequestSortOptions'; export * from '../models/SearchChannelHistoryRequest'; @@ -387,6 +399,7 @@ export * from '../models/UpdateColumnSecurityRulesRequest'; export * from '../models/UpdateConfigRequest'; export * from '../models/UpdateConnectionConfigurationRequest'; export * from '../models/UpdateConnectionRequest'; +export * from '../models/UpdateConnectionStatusRequest'; export * from '../models/UpdateConnectionV2Request'; export * from '../models/UpdateCustomActionRequest'; export * from '../models/UpdateCustomActionRequestActionDetails'; @@ -422,6 +435,7 @@ export * from '../models/ValidateTokenRequest'; export * from '../models/ValueScopeInput'; export * from '../models/Variable'; export * from '../models/VariableDetailInput'; +export * from '../models/VariableOrgInfo'; export * from '../models/VariablePutAssignmentInput'; export * from '../models/VariableUpdateAssignmentInput'; export * from '../models/VariableUpdateScopeInput'; @@ -462,10 +476,17 @@ import { ActivateUserRequest } from '../models/ActivateUserRequest'; import { AgentConversation } from '../models/AgentConversation'; import { AnswerContent } from '../models/AnswerContent'; import { AnswerDataResponse } from '../models/AnswerDataResponse'; +import { AnswerPngOptionsInput } from '../models/AnswerPngOptionsInput'; import { AssignChangeAuthorRequest } from '../models/AssignChangeAuthorRequest'; import { AssignTagRequest } from '../models/AssignTagRequest'; import { AssociateMetadataInput , AssociateMetadataInputTypeEnum } from '../models/AssociateMetadataInput'; import { AssociateMetadataInputCreate , AssociateMetadataInputCreateTypeEnum } from '../models/AssociateMetadataInputCreate'; +import { AuthClusterPreferences, AuthClusterPreferencesAuthStatusEnum } from '../models/AuthClusterPreferences'; +import { AuthClusterPreferencesInput, AuthClusterPreferencesInputAuthStatusEnum } from '../models/AuthClusterPreferencesInput'; +import { AuthOrgInfo } from '../models/AuthOrgInfo'; +import { AuthOrgPreference , AuthOrgPreferenceAuthStatusEnum } from '../models/AuthOrgPreference'; +import { AuthOrgPreferenceInput , AuthOrgPreferenceInputAuthStatusEnum } from '../models/AuthOrgPreferenceInput'; +import { AuthSettingsAccessToken } from '../models/AuthSettingsAccessToken'; import { Authentication } from '../models/Authentication'; import { AuthenticationInput } from '../models/AuthenticationInput'; import { Author } from '../models/Author'; @@ -510,6 +531,8 @@ import { CommitResponse } from '../models/CommitResponse'; import { CommiterType } from '../models/CommiterType'; import { CommunicationChannelPreferencesResponse } from '../models/CommunicationChannelPreferencesResponse'; import { CommunicationChannelValidateResponse, CommunicationChannelValidateResponseChannelTypeEnum , CommunicationChannelValidateResponseEventTypeEnum , CommunicationChannelValidateResponseResultCodeEnum } from '../models/CommunicationChannelValidateResponse'; +import { ConfigureAuthSettingsRequest, ConfigureAuthSettingsRequestAuthTypeEnum } from '../models/ConfigureAuthSettingsRequest'; +import { ConfigureAuthSettingsRequestClusterPreferences, ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum } from '../models/ConfigureAuthSettingsRequestClusterPreferences'; import { ConfigureCommunicationChannelPreferencesRequest } from '../models/ConfigureCommunicationChannelPreferencesRequest'; import { ConfigureSecuritySettingsRequest } from '../models/ConfigureSecuritySettingsRequest'; import { ConfigureSecuritySettingsRequestClusterPreferences } from '../models/ConfigureSecuritySettingsRequestClusterPreferences'; @@ -594,7 +617,8 @@ import { EurekaSetNLInstructionsResponse } from '../models/EurekaSetNLInstructio import { EventChannelConfig, EventChannelConfigEventTypeEnum , EventChannelConfigChannelsEnum } from '../models/EventChannelConfig'; import { EventChannelConfigInput, EventChannelConfigInputEventTypeEnum , EventChannelConfigInputChannelsEnum } from '../models/EventChannelConfigInput'; import { ExcludeMetadataListItemInput , ExcludeMetadataListItemInputTypeEnum } from '../models/ExcludeMetadataListItemInput'; -import { ExportAnswerReportRequest , ExportAnswerReportRequestFileFormatEnum } from '../models/ExportAnswerReportRequest'; +import { ExportAnswerReportRequest , ExportAnswerReportRequestFileFormatEnum , ExportAnswerReportRequestTypeEnum } from '../models/ExportAnswerReportRequest'; +import { ExportAnswerReportRequestPngOptions } from '../models/ExportAnswerReportRequestPngOptions'; import { ExportAnswerReportRequestRegionalSettings, ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum , ExportAnswerReportRequestRegionalSettingsUserLocaleEnum , ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum , ExportAnswerReportRequestRegionalSettingsDateFormatLocaleEnum } from '../models/ExportAnswerReportRequestRegionalSettings'; import { ExportLiveboardReportRequest , ExportLiveboardReportRequestFileFormatEnum } from '../models/ExportLiveboardReportRequest'; import { ExportLiveboardReportRequestPdfOptions, ExportLiveboardReportRequestPdfOptionsPageSizeEnum , ExportLiveboardReportRequestPdfOptionsPageOrientationEnum } from '../models/ExportLiveboardReportRequestPdfOptions'; @@ -751,6 +775,8 @@ import { SchemaObject } from '../models/SchemaObject'; import { Scope } from '../models/Scope'; import { ScriptSrcUrls } from '../models/ScriptSrcUrls'; import { ScriptSrcUrlsInput } from '../models/ScriptSrcUrlsInput'; +import { SearchAuthSettingsRequest, SearchAuthSettingsRequestAuthTypeEnum , SearchAuthSettingsRequestScopeEnum } from '../models/SearchAuthSettingsRequest'; +import { SearchAuthSettingsResponse, SearchAuthSettingsResponseAuthTypeEnum } from '../models/SearchAuthSettingsResponse'; import { SearchCalendarsRequest } from '../models/SearchCalendarsRequest'; import { SearchCalendarsRequestSortOptions, SearchCalendarsRequestSortOptionsFieldNameEnum , SearchCalendarsRequestSortOptionsOrderEnum } from '../models/SearchCalendarsRequestSortOptions'; import { SearchChannelHistoryRequest, SearchChannelHistoryRequestChannelTypeEnum , SearchChannelHistoryRequestChannelStatusEnum } from '../models/SearchChannelHistoryRequest'; @@ -785,10 +811,10 @@ import { SearchUsersRequest , SearchUsersRequestVisibilityEnum , SearchUser import { SearchVariablesRequest , SearchVariablesRequestResponseContentEnum } from '../models/SearchVariablesRequest'; import { SearchWebhookConfigurationsRequest , SearchWebhookConfigurationsRequestEventTypeEnum } from '../models/SearchWebhookConfigurationsRequest'; import { SearchWebhookConfigurationsRequestSortOptions, SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum , SearchWebhookConfigurationsRequestSortOptionsOrderEnum } from '../models/SearchWebhookConfigurationsRequestSortOptions'; -import { SecuritySettingsClusterPreferences } from '../models/SecuritySettingsClusterPreferences'; +import { SecuritySettingsClusterPreferences , SecuritySettingsClusterPreferencesTrustedAuthStatusEnum } from '../models/SecuritySettingsClusterPreferences'; import { SecuritySettingsClusterPreferencesInput } from '../models/SecuritySettingsClusterPreferencesInput'; import { SecuritySettingsOrgDetails } from '../models/SecuritySettingsOrgDetails'; -import { SecuritySettingsOrgPreferences } from '../models/SecuritySettingsOrgPreferences'; +import { SecuritySettingsOrgPreferences , SecuritySettingsOrgPreferencesTrustedAuthStatusEnum } from '../models/SecuritySettingsOrgPreferences'; import { SecuritySettingsOrgPreferencesInput } from '../models/SecuritySettingsOrgPreferencesInput'; import { SecuritySettingsResponse } from '../models/SecuritySettingsResponse'; import { SendAgentConversationMessageRequest } from '../models/SendAgentConversationMessageRequest'; @@ -800,7 +826,7 @@ import { SendMessageRequest } from '../models/SendMessageRequest'; import { SetNLInstructionsRequest } from '../models/SetNLInstructionsRequest'; import { ShareMetadataRequest, ShareMetadataRequestMetadataTypeEnum } from '../models/ShareMetadataRequest'; import { ShareMetadataTypeInput, ShareMetadataTypeInputTypeEnum } from '../models/ShareMetadataTypeInput'; -import { SharePermissionsInput , SharePermissionsInputShareModeEnum } from '../models/SharePermissionsInput'; +import { SharePermissionsInput , SharePermissionsInputShareModeEnum , SharePermissionsInputContentShareModeEnum } from '../models/SharePermissionsInput'; import { SingleAnswerRequest } from '../models/SingleAnswerRequest'; import { SortOption, SortOptionFieldNameEnum , SortOptionOrderEnum } from '../models/SortOption'; import { SortOptionInput, SortOptionInputFieldNameEnum , SortOptionInputOrderEnum } from '../models/SortOptionInput'; @@ -837,6 +863,7 @@ import { UpdateColumnSecurityRulesRequest } from '../models/UpdateColumnSecurity import { UpdateConfigRequest } from '../models/UpdateConfigRequest'; import { UpdateConnectionConfigurationRequest , UpdateConnectionConfigurationRequestAuthenticationTypeEnum , UpdateConnectionConfigurationRequestPolicyTypeEnum , UpdateConnectionConfigurationRequestPolicyProcessesEnum } from '../models/UpdateConnectionConfigurationRequest'; import { UpdateConnectionRequest } from '../models/UpdateConnectionRequest'; +import { UpdateConnectionStatusRequest, UpdateConnectionStatusRequestStatusEnum } from '../models/UpdateConnectionStatusRequest'; import { UpdateConnectionV2Request } from '../models/UpdateConnectionV2Request'; import { UpdateCustomActionRequest , UpdateCustomActionRequestOperationEnum } from '../models/UpdateCustomActionRequest'; import { UpdateCustomActionRequestActionDetails } from '../models/UpdateCustomActionRequestActionDetails'; @@ -870,8 +897,9 @@ import { ValidateCommunicationChannelRequest, ValidateCommunicationChannelReques import { ValidateMergeRequest } from '../models/ValidateMergeRequest'; import { ValidateTokenRequest } from '../models/ValidateTokenRequest'; import { ValueScopeInput , ValueScopeInputPrincipalTypeEnum } from '../models/ValueScopeInput'; -import { Variable , VariableVariableTypeEnum } from '../models/Variable'; +import { Variable , VariableVariableTypeEnum } from '../models/Variable'; import { VariableDetailInput , VariableDetailInputTypeEnum } from '../models/VariableDetailInput'; +import { VariableOrgInfo } from '../models/VariableOrgInfo'; import { VariablePutAssignmentInput , VariablePutAssignmentInputPrincipalTypeEnum } from '../models/VariablePutAssignmentInput'; import { VariableUpdateAssignmentInput , VariableUpdateAssignmentInputOperationEnum } from '../models/VariableUpdateAssignmentInput'; import { VariableUpdateScopeInput , VariableUpdateScopeInputPrincipalTypeEnum } from '../models/VariableUpdateScopeInput'; @@ -922,6 +950,10 @@ let enumsMap: Set = new Set([ "ActionConfigInputCreatePositionEnum", "AssociateMetadataInputTypeEnum", "AssociateMetadataInputCreateTypeEnum", + "AuthClusterPreferencesAuthStatusEnum", + "AuthClusterPreferencesInputAuthStatusEnum", + "AuthOrgPreferenceAuthStatusEnum", + "AuthOrgPreferenceInputAuthStatusEnum", "AuthorMetadataTypeInputTypeEnum", "ChannelHistoryEventInfoTypeEnum", "ChannelHistoryEventInputTypeEnum", @@ -933,6 +965,8 @@ let enumsMap: Set = new Set([ "CommunicationChannelValidateResponseChannelTypeEnum", "CommunicationChannelValidateResponseEventTypeEnum", "CommunicationChannelValidateResponseResultCodeEnum", + "ConfigureAuthSettingsRequestAuthTypeEnum", + "ConfigureAuthSettingsRequestClusterPreferencesAuthStatusEnum", "ConnectionConfigurationResponsePolicyProcessesEnum", "ConnectionConfigurationResponseDataWarehouseTypeEnum", "ConnectionConfigurationResponsePolicyTypeEnum", @@ -977,6 +1011,7 @@ let enumsMap: Set = new Set([ "EventChannelConfigInputChannelsEnum", "ExcludeMetadataListItemInputTypeEnum", "ExportAnswerReportRequestFileFormatEnum", + "ExportAnswerReportRequestTypeEnum", "ExportAnswerReportRequestRegionalSettingsCurrencyFormatEnum", "ExportAnswerReportRequestRegionalSettingsUserLocaleEnum", "ExportAnswerReportRequestRegionalSettingsNumberFormatLocaleEnum", @@ -1058,6 +1093,9 @@ let enumsMap: Set = new Set([ "RuntimeFiltersOperatorEnum", "RuntimeSortsOrderEnum", "SchedulesPdfOptionsInputPageSizeEnum", + "SearchAuthSettingsRequestAuthTypeEnum", + "SearchAuthSettingsRequestScopeEnum", + "SearchAuthSettingsResponseAuthTypeEnum", "SearchCalendarsRequestSortOptionsFieldNameEnum", "SearchCalendarsRequestSortOptionsOrderEnum", "SearchChannelHistoryRequestChannelTypeEnum", @@ -1098,9 +1136,12 @@ let enumsMap: Set = new Set([ "SearchWebhookConfigurationsRequestEventTypeEnum", "SearchWebhookConfigurationsRequestSortOptionsFieldNameEnum", "SearchWebhookConfigurationsRequestSortOptionsOrderEnum", + "SecuritySettingsClusterPreferencesTrustedAuthStatusEnum", + "SecuritySettingsOrgPreferencesTrustedAuthStatusEnum", "ShareMetadataRequestMetadataTypeEnum", "ShareMetadataTypeInputTypeEnum", "SharePermissionsInputShareModeEnum", + "SharePermissionsInputContentShareModeEnum", "SortOptionFieldNameEnum", "SortOptionOrderEnum", "SortOptionInputFieldNameEnum", @@ -1124,6 +1165,7 @@ let enumsMap: Set = new Set([ "UpdateConnectionConfigurationRequestAuthenticationTypeEnum", "UpdateConnectionConfigurationRequestPolicyTypeEnum", "UpdateConnectionConfigurationRequestPolicyProcessesEnum", + "UpdateConnectionStatusRequestStatusEnum", "UpdateCustomActionRequestOperationEnum", "UpdateObjIdInputTypeEnum", "UpdateOrgRequestOperationEnum", @@ -1184,10 +1226,17 @@ let typeMap: {[index: string]: any} = { "AgentConversation": AgentConversation, "AnswerContent": AnswerContent, "AnswerDataResponse": AnswerDataResponse, + "AnswerPngOptionsInput": AnswerPngOptionsInput, "AssignChangeAuthorRequest": AssignChangeAuthorRequest, "AssignTagRequest": AssignTagRequest, "AssociateMetadataInput": AssociateMetadataInput, "AssociateMetadataInputCreate": AssociateMetadataInputCreate, + "AuthClusterPreferences": AuthClusterPreferences, + "AuthClusterPreferencesInput": AuthClusterPreferencesInput, + "AuthOrgInfo": AuthOrgInfo, + "AuthOrgPreference": AuthOrgPreference, + "AuthOrgPreferenceInput": AuthOrgPreferenceInput, + "AuthSettingsAccessToken": AuthSettingsAccessToken, "Authentication": Authentication, "AuthenticationInput": AuthenticationInput, "Author": Author, @@ -1232,6 +1281,8 @@ let typeMap: {[index: string]: any} = { "CommiterType": CommiterType, "CommunicationChannelPreferencesResponse": CommunicationChannelPreferencesResponse, "CommunicationChannelValidateResponse": CommunicationChannelValidateResponse, + "ConfigureAuthSettingsRequest": ConfigureAuthSettingsRequest, + "ConfigureAuthSettingsRequestClusterPreferences": ConfigureAuthSettingsRequestClusterPreferences, "ConfigureCommunicationChannelPreferencesRequest": ConfigureCommunicationChannelPreferencesRequest, "ConfigureSecuritySettingsRequest": ConfigureSecuritySettingsRequest, "ConfigureSecuritySettingsRequestClusterPreferences": ConfigureSecuritySettingsRequestClusterPreferences, @@ -1317,6 +1368,7 @@ let typeMap: {[index: string]: any} = { "EventChannelConfigInput": EventChannelConfigInput, "ExcludeMetadataListItemInput": ExcludeMetadataListItemInput, "ExportAnswerReportRequest": ExportAnswerReportRequest, + "ExportAnswerReportRequestPngOptions": ExportAnswerReportRequestPngOptions, "ExportAnswerReportRequestRegionalSettings": ExportAnswerReportRequestRegionalSettings, "ExportLiveboardReportRequest": ExportLiveboardReportRequest, "ExportLiveboardReportRequestPdfOptions": ExportLiveboardReportRequestPdfOptions, @@ -1473,6 +1525,8 @@ let typeMap: {[index: string]: any} = { "Scope": Scope, "ScriptSrcUrls": ScriptSrcUrls, "ScriptSrcUrlsInput": ScriptSrcUrlsInput, + "SearchAuthSettingsRequest": SearchAuthSettingsRequest, + "SearchAuthSettingsResponse": SearchAuthSettingsResponse, "SearchCalendarsRequest": SearchCalendarsRequest, "SearchCalendarsRequestSortOptions": SearchCalendarsRequestSortOptions, "SearchChannelHistoryRequest": SearchChannelHistoryRequest, @@ -1559,6 +1613,7 @@ let typeMap: {[index: string]: any} = { "UpdateConfigRequest": UpdateConfigRequest, "UpdateConnectionConfigurationRequest": UpdateConnectionConfigurationRequest, "UpdateConnectionRequest": UpdateConnectionRequest, + "UpdateConnectionStatusRequest": UpdateConnectionStatusRequest, "UpdateConnectionV2Request": UpdateConnectionV2Request, "UpdateCustomActionRequest": UpdateCustomActionRequest, "UpdateCustomActionRequestActionDetails": UpdateCustomActionRequestActionDetails, @@ -1594,6 +1649,7 @@ let typeMap: {[index: string]: any} = { "ValueScopeInput": ValueScopeInput, "Variable": Variable, "VariableDetailInput": VariableDetailInput, + "VariableOrgInfo": VariableOrgInfo, "VariablePutAssignmentInput": VariablePutAssignmentInput, "VariableUpdateAssignmentInput": VariableUpdateAssignmentInput, "VariableUpdateScopeInput": VariableUpdateScopeInput, diff --git a/sdks/typescript/models/PdfOptions.ts b/sdks/typescript/models/PdfOptions.ts index 5908ea0d7..1bd3c5511 100644 --- a/sdks/typescript/models/PdfOptions.ts +++ b/sdks/typescript/models/PdfOptions.ts @@ -120,5 +120,5 @@ export class PdfOptions { } -export type PdfOptionsPageSizeEnum = "A4" ; +export type PdfOptionsPageSizeEnum = "A4" | "TAB_BASED" ; diff --git a/sdks/typescript/models/PermissionsMetadataTypeInput.ts b/sdks/typescript/models/PermissionsMetadataTypeInput.ts index d4cfcbc9c..788fd0f9f 100644 --- a/sdks/typescript/models/PermissionsMetadataTypeInput.ts +++ b/sdks/typescript/models/PermissionsMetadataTypeInput.ts @@ -50,5 +50,5 @@ export class PermissionsMetadataTypeInput { } -export type PermissionsMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" ; +export type PermissionsMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION" ; diff --git a/sdks/typescript/models/RoleResponse.ts b/sdks/typescript/models/RoleResponse.ts index 542911030..9a5f88ddb 100644 --- a/sdks/typescript/models/RoleResponse.ts +++ b/sdks/typescript/models/RoleResponse.ts @@ -198,6 +198,6 @@ export class RoleResponse { } -export type RoleResponsePrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type RoleResponsePrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MANAGE_VARIABLES" | "CAN_MODIFY_FOLDERS" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type RoleResponsePermissionEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS" ; diff --git a/sdks/typescript/models/SchedulesPdfOptionsInput.ts b/sdks/typescript/models/SchedulesPdfOptionsInput.ts index 19524044d..6d9a09342 100644 --- a/sdks/typescript/models/SchedulesPdfOptionsInput.ts +++ b/sdks/typescript/models/SchedulesPdfOptionsInput.ts @@ -120,5 +120,5 @@ export class SchedulesPdfOptionsInput { } -export type SchedulesPdfOptionsInputPageSizeEnum = "A4" ; +export type SchedulesPdfOptionsInputPageSizeEnum = "A4" | "TAB_BASED" ; diff --git a/sdks/typescript/models/SearchAuthSettingsRequest.ts b/sdks/typescript/models/SearchAuthSettingsRequest.ts new file mode 100644 index 000000000..5114dfec6 --- /dev/null +++ b/sdks/typescript/models/SearchAuthSettingsRequest.ts @@ -0,0 +1,52 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +export class SearchAuthSettingsRequest { + /** + * Type of authentication mechanism to retrieve settings for. Currently supports TRUSTED_AUTH. + */ + 'auth_type': SearchAuthSettingsRequestAuthTypeEnum; + /** + * Scope of auth settings to retrieve. When absent, both cluster and org settings are returned (subject to caller privileges). Set to CLUSTER to retrieve only cluster-level settings, or ORG to retrieve only org-level settings. + */ + 'scope'?: SearchAuthSettingsRequestScopeEnum; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "SearchAuthSettingsRequestAuthTypeEnum", + "format": "" + }, + { + "name": "scope", + "baseName": "scope", + "type": "SearchAuthSettingsRequestScopeEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SearchAuthSettingsRequest.attributeTypeMap; + } + + public constructor() { + } +} + + +export type SearchAuthSettingsRequestAuthTypeEnum = "TRUSTED_AUTH" ; +export type SearchAuthSettingsRequestScopeEnum = "CLUSTER" | "ORG" ; + diff --git a/sdks/typescript/models/SearchAuthSettingsResponse.ts b/sdks/typescript/models/SearchAuthSettingsResponse.ts new file mode 100644 index 000000000..0b8346715 --- /dev/null +++ b/sdks/typescript/models/SearchAuthSettingsResponse.ts @@ -0,0 +1,63 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AuthClusterPreferences } from '../models/AuthClusterPreferences'; +import { AuthOrgPreference } from '../models/AuthOrgPreference'; +import { HttpFile } from '../http/http'; + +/** +* Response for searchAuthSettings. Contains auth type and cluster/org-level preferences. +*/ +export class SearchAuthSettingsResponse { + /** + * Type of authentication mechanism returned. + */ + 'auth_type'?: SearchAuthSettingsResponseAuthTypeEnum | null; + 'cluster_preferences'?: AuthClusterPreferences; + /** + * Org-level authentication configurations. Present when org scope was requested and per-org auth feature is enabled. + */ + 'org_preferences'?: Array | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "auth_type", + "baseName": "auth_type", + "type": "SearchAuthSettingsResponseAuthTypeEnum", + "format": "" + }, + { + "name": "cluster_preferences", + "baseName": "cluster_preferences", + "type": "AuthClusterPreferences", + "format": "" + }, + { + "name": "org_preferences", + "baseName": "org_preferences", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return SearchAuthSettingsResponse.attributeTypeMap; + } + + public constructor() { + } +} + + +export type SearchAuthSettingsResponseAuthTypeEnum = "TRUSTED_AUTH" ; + diff --git a/sdks/typescript/models/SearchConnectionRequest.ts b/sdks/typescript/models/SearchConnectionRequest.ts index 95e99166b..f9cfec32f 100644 --- a/sdks/typescript/models/SearchConnectionRequest.ts +++ b/sdks/typescript/models/SearchConnectionRequest.ts @@ -136,7 +136,7 @@ export class SearchConnectionRequest { } -export type SearchConnectionRequestDataWarehouseTypesEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" ; +export type SearchConnectionRequestDataWarehouseTypesEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE" ; export type SearchConnectionRequestDataWarehouseObjectTypeEnum = "DATABASE" | "SCHEMA" | "TABLE" | "COLUMN" ; export type SearchConnectionRequestAuthenticationTypeEnum = "SERVICE_ACCOUNT" | "OAUTH" | "IAM" | "EXTOAUTH" | "OAUTH_WITH_SERVICE_PRINCIPAL" | "PERSONAL_ACCESS_TOKEN" | "KEY_PAIR" | "OAUTH_WITH_PKCE" | "EXTOAUTH_WITH_PKCE" | "OAUTH_WITH_PEZ" | "OAUTH_CLIENT_CREDENTIALS" ; diff --git a/sdks/typescript/models/SearchConnectionResponse.ts b/sdks/typescript/models/SearchConnectionResponse.ts index 97a49a70c..23ee98506 100644 --- a/sdks/typescript/models/SearchConnectionResponse.ts +++ b/sdks/typescript/models/SearchConnectionResponse.ts @@ -85,5 +85,5 @@ export class SearchConnectionResponse { } -export type SearchConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" ; +export type SearchConnectionResponseDataWarehouseTypeEnum = "SNOWFLAKE" | "AMAZON_REDSHIFT" | "GOOGLE_BIGQUERY" | "AZURE_SYNAPSE" | "TERADATA" | "SAP_HANA" | "STARBURST" | "ORACLE_ADW" | "DATABRICKS" | "DENODO" | "DREMIO" | "TRINO" | "PRESTO" | "POSTGRES" | "SQLSERVER" | "MYSQL" | "GENERIC_JDBC" | "AMAZON_RDS_POSTGRESQL" | "AMAZON_AURORA_POSTGRESQL" | "AMAZON_RDS_MYSQL" | "AMAZON_AURORA_MYSQL" | "LOOKER" | "AMAZON_ATHENA" | "SINGLESTORE" | "GCP_SQLSERVER" | "GCP_ALLOYDB_POSTGRESQL" | "GCP_POSTGRESQL" | "GCP_MYSQL" | "MODE" | "GOOGLE_SHEETS" | "FALCON" | "FALCON_ONPREM" | "CLICKHOUSE" | "IOMETE" ; diff --git a/sdks/typescript/models/SearchRoleResponse.ts b/sdks/typescript/models/SearchRoleResponse.ts index 72bb3058e..887d059fa 100644 --- a/sdks/typescript/models/SearchRoleResponse.ts +++ b/sdks/typescript/models/SearchRoleResponse.ts @@ -201,6 +201,6 @@ export class SearchRoleResponse { } -export type SearchRoleResponsePrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type SearchRoleResponsePrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type SearchRoleResponsePermissionEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS" ; diff --git a/sdks/typescript/models/SearchRolesRequest.ts b/sdks/typescript/models/SearchRolesRequest.ts index d91eeace7..b5db4bd12 100644 --- a/sdks/typescript/models/SearchRolesRequest.ts +++ b/sdks/typescript/models/SearchRolesRequest.ts @@ -107,6 +107,6 @@ export class SearchRolesRequest { } -export type SearchRolesRequestPrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type SearchRolesRequestPrivilegesEnum = "UNKNOWN" | "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "SECURITYMANAGEMENT" | "LOGICALMODELING" | "DATAMANAGEMENT" | "TAGMANAGEMENT" | "SHAREWITHALL" | "SYSTEMMANAGEMENT" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "BACKUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ENABLESPOTAPPCREATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "PREVIEW_THOUGHTSPOT_SAGE" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_CONFIGURE_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CONTROL_TRUSTED_AUTH" | "CAN_CREATE_CATALOG" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_VIEW_FOLDERS" | "CAN_MODIDY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type SearchRolesRequestPermissionsEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS" ; diff --git a/sdks/typescript/models/SearchUserGroupsRequest.ts b/sdks/typescript/models/SearchUserGroupsRequest.ts index 87410cba4..760ef4ce6 100644 --- a/sdks/typescript/models/SearchUserGroupsRequest.ts +++ b/sdks/typescript/models/SearchUserGroupsRequest.ts @@ -195,7 +195,7 @@ export class SearchUserGroupsRequest { } -export type SearchUserGroupsRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type SearchUserGroupsRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type SearchUserGroupsRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP" ; export type SearchUserGroupsRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE" ; diff --git a/sdks/typescript/models/SearchUsersRequest.ts b/sdks/typescript/models/SearchUsersRequest.ts index 835a4ea0f..b69824ec9 100644 --- a/sdks/typescript/models/SearchUsersRequest.ts +++ b/sdks/typescript/models/SearchUsersRequest.ts @@ -237,7 +237,7 @@ export class SearchUsersRequest { export type SearchUsersRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE" ; -export type SearchUsersRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type SearchUsersRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "APPLICATION_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "CAN_SETUP_VERSION_CONTROL" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type SearchUsersRequestAccountTypeEnum = "LOCAL_USER" | "LDAP_USER" | "SAML_USER" | "OIDC_USER" | "REMOTE_USER" ; export type SearchUsersRequestAccountStatusEnum = "ACTIVE" | "INACTIVE" | "EXPIRED" | "LOCKED" | "PENDING" | "SUSPENDED" ; diff --git a/sdks/typescript/models/SecuritySettingsClusterPreferences.ts b/sdks/typescript/models/SecuritySettingsClusterPreferences.ts index 5af54ae52..d8d052efa 100644 --- a/sdks/typescript/models/SecuritySettingsClusterPreferences.ts +++ b/sdks/typescript/models/SecuritySettingsClusterPreferences.ts @@ -32,6 +32,10 @@ export class SecuritySettingsClusterPreferences { */ 'saml_redirect_urls'?: Array | null; 'non_embed_access'?: ClusterNonEmbedAccess; + /** + * Trusted authentication status at the cluster level. Version: 26.6.0.cl or later + */ + 'trusted_auth_status'?: SecuritySettingsClusterPreferencesTrustedAuthStatusEnum | null; static readonly discriminator: string | undefined = undefined; @@ -65,6 +69,12 @@ export class SecuritySettingsClusterPreferences { "baseName": "non_embed_access", "type": "ClusterNonEmbedAccess", "format": "" + }, + { + "name": "trusted_auth_status", + "baseName": "trusted_auth_status", + "type": "SecuritySettingsClusterPreferencesTrustedAuthStatusEnum", + "format": "" } ]; static getAttributeTypeMap() { @@ -75,3 +85,6 @@ export class SecuritySettingsClusterPreferences { } } + +export type SecuritySettingsClusterPreferencesTrustedAuthStatusEnum = "ENABLED" | "DISABLED" ; + diff --git a/sdks/typescript/models/SecuritySettingsOrgPreferences.ts b/sdks/typescript/models/SecuritySettingsOrgPreferences.ts index d29878a71..c34c90b2b 100644 --- a/sdks/typescript/models/SecuritySettingsOrgPreferences.ts +++ b/sdks/typescript/models/SecuritySettingsOrgPreferences.ts @@ -24,6 +24,10 @@ export class SecuritySettingsOrgPreferences { */ 'cors_whitelisted_urls'?: Array | null; 'non_embed_access'?: OrgNonEmbedAccess; + /** + * Trusted authentication status for this org. Version: 26.6.0.cl or later + */ + 'trusted_auth_status'?: SecuritySettingsOrgPreferencesTrustedAuthStatusEnum | null; static readonly discriminator: string | undefined = undefined; @@ -45,6 +49,12 @@ export class SecuritySettingsOrgPreferences { "baseName": "non_embed_access", "type": "OrgNonEmbedAccess", "format": "" + }, + { + "name": "trusted_auth_status", + "baseName": "trusted_auth_status", + "type": "SecuritySettingsOrgPreferencesTrustedAuthStatusEnum", + "format": "" } ]; static getAttributeTypeMap() { @@ -55,3 +65,6 @@ export class SecuritySettingsOrgPreferences { } } + +export type SecuritySettingsOrgPreferencesTrustedAuthStatusEnum = "ENABLED" | "DISABLED" ; + diff --git a/sdks/typescript/models/ShareMetadataRequest.ts b/sdks/typescript/models/ShareMetadataRequest.ts index 45b0037c2..3e63d4c48 100644 --- a/sdks/typescript/models/ShareMetadataRequest.ts +++ b/sdks/typescript/models/ShareMetadataRequest.ts @@ -16,7 +16,7 @@ import { HttpFile } from '../http/http'; export class ShareMetadataRequest { /** - * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection + * Type of metadata. Required if identifier in metadata_identifies is a name. 1. Liveboard 2. Answers 3. LOGICAL_TABLE for any data object such as table, worksheet or view. 4. LOGICAL_COLUMN 5. Connection 6. Collection */ 'metadata_type'?: ShareMetadataRequestMetadataTypeEnum; /** @@ -129,5 +129,5 @@ export class ShareMetadataRequest { } -export type ShareMetadataRequestMetadataTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" ; +export type ShareMetadataRequestMetadataTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION" ; diff --git a/sdks/typescript/models/ShareMetadataTypeInput.ts b/sdks/typescript/models/ShareMetadataTypeInput.ts index 40732f4f9..74f5f7633 100644 --- a/sdks/typescript/models/ShareMetadataTypeInput.ts +++ b/sdks/typescript/models/ShareMetadataTypeInput.ts @@ -47,5 +47,5 @@ export class ShareMetadataTypeInput { } -export type ShareMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" ; +export type ShareMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION" ; diff --git a/sdks/typescript/models/SharePermissionsInput.ts b/sdks/typescript/models/SharePermissionsInput.ts index 979334616..e45135d3b 100644 --- a/sdks/typescript/models/SharePermissionsInput.ts +++ b/sdks/typescript/models/SharePermissionsInput.ts @@ -19,6 +19,10 @@ export class SharePermissionsInput { * Type of access to the shared object */ 'share_mode': SharePermissionsInputShareModeEnum; + /** + * Content share mode for collections. Controls access to objects within the collection. Only applicable when sharing COLLECTION metadata type. + */ + 'content_share_mode'?: SharePermissionsInputContentShareModeEnum | null; static readonly discriminator: string | undefined = undefined; @@ -34,6 +38,12 @@ export class SharePermissionsInput { "baseName": "share_mode", "type": "SharePermissionsInputShareModeEnum", "format": "" + }, + { + "name": "content_share_mode", + "baseName": "content_share_mode", + "type": "SharePermissionsInputContentShareModeEnum", + "format": "" } ]; static getAttributeTypeMap() { @@ -46,4 +56,5 @@ export class SharePermissionsInput { export type SharePermissionsInputShareModeEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS" ; +export type SharePermissionsInputContentShareModeEnum = "READ_ONLY" | "MODIFY" ; diff --git a/sdks/typescript/models/TagMetadataTypeInput.ts b/sdks/typescript/models/TagMetadataTypeInput.ts index b1068b817..c467dcf3c 100644 --- a/sdks/typescript/models/TagMetadataTypeInput.ts +++ b/sdks/typescript/models/TagMetadataTypeInput.ts @@ -47,5 +47,5 @@ export class TagMetadataTypeInput { } -export type TagMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" ; +export type TagMetadataTypeInputTypeEnum = "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" | "COLLECTION" ; diff --git a/sdks/typescript/models/UpdateConnectionStatusRequest.ts b/sdks/typescript/models/UpdateConnectionStatusRequest.ts new file mode 100644 index 000000000..32c595855 --- /dev/null +++ b/sdks/typescript/models/UpdateConnectionStatusRequest.ts @@ -0,0 +1,41 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +export class UpdateConnectionStatusRequest { + /** + * Status to set for the connection. Use ACTIVATED to enable the connection or DEACTIVATED to disable it. + */ + 'status'?: UpdateConnectionStatusRequestStatusEnum; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "status", + "baseName": "status", + "type": "UpdateConnectionStatusRequestStatusEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return UpdateConnectionStatusRequest.attributeTypeMap; + } + + public constructor() { + } +} + + +export type UpdateConnectionStatusRequestStatusEnum = "ACTIVATED" | "DEACTIVATED" ; + diff --git a/sdks/typescript/models/UpdateRoleRequest.ts b/sdks/typescript/models/UpdateRoleRequest.ts index 79c2c7698..479842af8 100644 --- a/sdks/typescript/models/UpdateRoleRequest.ts +++ b/sdks/typescript/models/UpdateRoleRequest.ts @@ -57,5 +57,5 @@ export class UpdateRoleRequest { } -export type UpdateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type UpdateRoleRequestPrivilegesEnum = "USERDATAUPLOADING" | "DATADOWNLOADING" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "BYPASSRLS" | "DISABLE_PINBOARD_CREATION" | "DEVELOPER" | "APPLICATION_ADMINISTRATION" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYSTEM_INFO_ADMINISTRATION" | "SYNCMANAGEMENT" | "ORG_ADMINISTRATION" | "ROLE_ADMINISTRATION" | "AUTHENTICATION_ADMINISTRATION" | "BILLING_INFO_ADMINISTRATION" | "CONTROL_TRUSTED_AUTH" | "TAGMANAGEMENT" | "LIVEBOARD_VERIFIER" | "CAN_MANAGE_CUSTOM_CALENDAR" | "CAN_CREATE_OR_EDIT_CONNECTIONS" | "CAN_MANAGE_WORKSHEET_VIEWS_TABLES" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "CAN_CREATE_CATALOG" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_WEBHOOKS" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; diff --git a/sdks/typescript/models/UpdateScheduleRequestPdfOptions.ts b/sdks/typescript/models/UpdateScheduleRequestPdfOptions.ts index 3da6b2d9d..f06057ecf 100644 --- a/sdks/typescript/models/UpdateScheduleRequestPdfOptions.ts +++ b/sdks/typescript/models/UpdateScheduleRequestPdfOptions.ts @@ -120,5 +120,5 @@ export class UpdateScheduleRequestPdfOptions { } -export type UpdateScheduleRequestPdfOptionsPageSizeEnum = "A4" ; +export type UpdateScheduleRequestPdfOptionsPageSizeEnum = "A4" | "TAB_BASED" ; diff --git a/sdks/typescript/models/UpdateUserGroupRequest.ts b/sdks/typescript/models/UpdateUserGroupRequest.ts index 893e1d601..d7c2cde0f 100644 --- a/sdks/typescript/models/UpdateUserGroupRequest.ts +++ b/sdks/typescript/models/UpdateUserGroupRequest.ts @@ -137,7 +137,7 @@ export class UpdateUserGroupRequest { } -export type UpdateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; +export type UpdateUserGroupRequestPrivilegesEnum = "ADMINISTRATION" | "AUTHORING" | "USERDATAUPLOADING" | "DATADOWNLOADING" | "USERMANAGEMENT" | "DATAMANAGEMENT" | "SHAREWITHALL" | "JOBSCHEDULING" | "A3ANALYSIS" | "EXPERIMENTALFEATUREPRIVILEGE" | "BYPASSRLS" | "RANALYSIS" | "DEVELOPER" | "USER_ADMINISTRATION" | "GROUP_ADMINISTRATION" | "SYNCMANAGEMENT" | "CAN_CREATE_CATALOG" | "DISABLE_PINBOARD_CREATION" | "LIVEBOARD_VERIFIER" | "PREVIEW_THOUGHTSPOT_SAGE" | "CAN_MANAGE_VERSION_CONTROL" | "THIRDPARTY_ANALYSIS" | "ALLOW_NON_EMBED_FULL_APP_ACCESS" | "CAN_ACCESS_ANALYST_STUDIO" | "CAN_MANAGE_ANALYST_STUDIO" | "CAN_MODIFY_FOLDERS" | "CAN_MANAGE_VARIABLES" | "CAN_VIEW_FOLDERS" | "CAN_MANAGE_AGENTSPOT" | "CAN_ACCESS_AGENTSPOT" | "PREVIEW_DOCUMENT_SEARCH" | "CAN_SETUP_VERSION_CONTROL" | "CAN_DOWNLOAD_VISUALS" | "CAN_DOWNLOAD_DETAILED_DATA" | "CAN_USE_SPOTTER" ; export type UpdateUserGroupRequestTypeEnum = "LOCAL_GROUP" | "LDAP_GROUP" | "TEAM_GROUP" | "TENANT_GROUP" ; export type UpdateUserGroupRequestVisibilityEnum = "SHARABLE" | "NON_SHARABLE" ; export type UpdateUserGroupRequestOperationEnum = "ADD" | "REMOVE" | "REPLACE" ; diff --git a/sdks/typescript/models/Variable.ts b/sdks/typescript/models/Variable.ts index 6346581be..e4361eb9d 100644 --- a/sdks/typescript/models/Variable.ts +++ b/sdks/typescript/models/Variable.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ +import { VariableOrgInfo } from '../models/VariableOrgInfo'; import { VariableValue } from '../models/VariableValue'; import { HttpFile } from '../http/http'; @@ -37,6 +38,7 @@ export class Variable { * Values of the variable */ 'values'?: Array | null; + 'org'?: VariableOrgInfo; static readonly discriminator: string | undefined = undefined; @@ -70,6 +72,12 @@ export class Variable { "baseName": "values", "type": "Array", "format": "" + }, + { + "name": "org", + "baseName": "org", + "type": "VariableOrgInfo", + "format": "" } ]; static getAttributeTypeMap() { diff --git a/sdks/typescript/models/VariableOrgInfo.ts b/sdks/typescript/models/VariableOrgInfo.ts new file mode 100644 index 000000000..f719f5cbd --- /dev/null +++ b/sdks/typescript/models/VariableOrgInfo.ts @@ -0,0 +1,48 @@ +/** + * ThoughtSpot Public REST API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http'; + +export class VariableOrgInfo { + /** + * ID of the Org. + */ + 'id': number; + /** + * Name of the Org. + */ + 'name': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "number", + "format": "int32" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return VariableOrgInfo.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/sdks/typescript/models/all.ts b/sdks/typescript/models/all.ts index da31dc745..efce2ed49 100644 --- a/sdks/typescript/models/all.ts +++ b/sdks/typescript/models/all.ts @@ -12,10 +12,17 @@ export * from '../models/ActivateUserRequest' export * from '../models/AgentConversation' export * from '../models/AnswerContent' export * from '../models/AnswerDataResponse' +export * from '../models/AnswerPngOptionsInput' export * from '../models/AssignChangeAuthorRequest' export * from '../models/AssignTagRequest' export * from '../models/AssociateMetadataInput' export * from '../models/AssociateMetadataInputCreate' +export * from '../models/AuthClusterPreferences' +export * from '../models/AuthClusterPreferencesInput' +export * from '../models/AuthOrgInfo' +export * from '../models/AuthOrgPreference' +export * from '../models/AuthOrgPreferenceInput' +export * from '../models/AuthSettingsAccessToken' export * from '../models/Authentication' export * from '../models/AuthenticationInput' export * from '../models/Author' @@ -60,6 +67,8 @@ export * from '../models/CommitResponse' export * from '../models/CommiterType' export * from '../models/CommunicationChannelPreferencesResponse' export * from '../models/CommunicationChannelValidateResponse' +export * from '../models/ConfigureAuthSettingsRequest' +export * from '../models/ConfigureAuthSettingsRequestClusterPreferences' export * from '../models/ConfigureCommunicationChannelPreferencesRequest' export * from '../models/ConfigureSecuritySettingsRequest' export * from '../models/ConfigureSecuritySettingsRequestClusterPreferences' @@ -145,6 +154,7 @@ export * from '../models/EventChannelConfig' export * from '../models/EventChannelConfigInput' export * from '../models/ExcludeMetadataListItemInput' export * from '../models/ExportAnswerReportRequest' +export * from '../models/ExportAnswerReportRequestPngOptions' export * from '../models/ExportAnswerReportRequestRegionalSettings' export * from '../models/ExportLiveboardReportRequest' export * from '../models/ExportLiveboardReportRequestPdfOptions' @@ -301,6 +311,8 @@ export * from '../models/SchemaObject' export * from '../models/Scope' export * from '../models/ScriptSrcUrls' export * from '../models/ScriptSrcUrlsInput' +export * from '../models/SearchAuthSettingsRequest' +export * from '../models/SearchAuthSettingsResponse' export * from '../models/SearchCalendarsRequest' export * from '../models/SearchCalendarsRequestSortOptions' export * from '../models/SearchChannelHistoryRequest' @@ -387,6 +399,7 @@ export * from '../models/UpdateColumnSecurityRulesRequest' export * from '../models/UpdateConfigRequest' export * from '../models/UpdateConnectionConfigurationRequest' export * from '../models/UpdateConnectionRequest' +export * from '../models/UpdateConnectionStatusRequest' export * from '../models/UpdateConnectionV2Request' export * from '../models/UpdateCustomActionRequest' export * from '../models/UpdateCustomActionRequestActionDetails' @@ -422,6 +435,7 @@ export * from '../models/ValidateTokenRequest' export * from '../models/ValueScopeInput' export * from '../models/Variable' export * from '../models/VariableDetailInput' +export * from '../models/VariableOrgInfo' export * from '../models/VariablePutAssignmentInput' export * from '../models/VariableUpdateAssignmentInput' export * from '../models/VariableUpdateScopeInput' diff --git a/sdks/typescript/package-lock.json b/sdks/typescript/package-lock.json index c1a540d4a..2579483c3 100644 --- a/sdks/typescript/package-lock.json +++ b/sdks/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@thoughtspot/rest-api-sdk", - "version": "2.24.0", + "version": "2.25.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@thoughtspot/rest-api-sdk", - "version": "2.24.0", + "version": "2.25.0", "license": "ThoughtSpot Development Tools End User License Agreement", "dependencies": { "es6-promise": "^4.2.4", @@ -29,13 +29,13 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", - "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.28.5", + "@babel/helper-validator-identifier": "^7.29.7", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" }, @@ -44,9 +44,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", "dev": true, "license": "MIT", "engines": { @@ -456,9 +456,9 @@ } }, "node_modules/@jest/diff-sequences": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.3.0.tgz", - "integrity": "sha512-cG51MVnLq1ecVUaQ3fr6YuuAOitHK1S4WUJHnsPFE/quQr33ADUx1FfrTCpMCRxvy0Yr9BThKpDjSlcTi91tMA==", + "version": "30.4.0", + "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.4.0.tgz", + "integrity": "sha512-zOpzlfUs45l6u7jm39qr87JCHUDsaeCtvL+kQe/Vn9jSnRB4/5IPXISm0h9I1vZW/o00Kn4UTJ2MOlhnUGwv3g==", "dev": true, "license": "MIT", "engines": { @@ -466,9 +466,9 @@ } }, "node_modules/@jest/expect-utils": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.3.0.tgz", - "integrity": "sha512-j0+W5iQQ8hBh7tHZkTQv3q2Fh/M7Je72cIsYqC4OaktgtO7v1So9UTjp6uPBHIaB6beoF/RRsCgMJKvti0wADA==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.4.1.tgz", + "integrity": "sha512-ZBn5CglH8fBsQsvs4VWNzD4aWfUYks+IdOOQU3MEK71ol/BcVm+P+rtb1KpiFBpSWSCE27uOahyyf1vfqOVbcQ==", "dev": true, "license": "MIT", "dependencies": { @@ -489,23 +489,23 @@ } }, "node_modules/@jest/pattern": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.0.1.tgz", - "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==", + "version": "30.4.0", + "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.4.0.tgz", + "integrity": "sha512-RAWn3+f9u8BsHijKJ71uHcFp6vmyEt6VvoWXkl6hKF3qVIuWNmudVjg12DlBPGup/frIl5UcUlH5HfEuvHpEXg==", "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", - "jest-regex-util": "30.0.1" + "jest-regex-util": "30.4.0" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/@jest/schemas": { - "version": "30.0.5", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz", - "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.4.1.tgz", + "integrity": "sha512-i6b4qw5qnP8c5FEeBJg/uZQ4ddrkN6Ca8qISJh0pr7a5hfn3h3v5x60BEbOC7OYAGZNMs1LfFLwnW2CuK8F57Q==", "dev": true, "license": "MIT", "dependencies": { @@ -516,14 +516,14 @@ } }, "node_modules/@jest/types": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.3.0.tgz", - "integrity": "sha512-JHm87k7bA33hpBngtU8h6UBub/fqqA9uXfw+21j5Hmk7ooPHlboRNxHq0JcMtC+n8VJGP1mcfnD3Mk+XKe1oSw==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.4.1.tgz", + "integrity": "sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ==", "dev": true, "license": "MIT", "dependencies": { - "@jest/pattern": "30.0.1", - "@jest/schemas": "30.0.5", + "@jest/pattern": "30.4.0", + "@jest/schemas": "30.4.1", "@types/istanbul-lib-coverage": "^2.0.6", "@types/istanbul-reports": "^3.0.4", "@types/node": "*", @@ -619,9 +619,9 @@ "license": "MIT" }, "node_modules/@swc/core": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.33.tgz", - "integrity": "sha512-jOlwnFV2xhuuZeAUILGFULeR6vDPfijEJ57evfocwznQldLU3w2cZ9bSDryY9ip+AsM3r1NJKzf47V2NXebkeQ==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.40.tgz", + "integrity": "sha512-2kwzJikRvgtNAG7MwVZY2vEzZjTxKIq5jXOihuSV/8U+Hej8Va22t65aKnJZs3P+NwojZvR8Mf8kyM7O+V8sQg==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", @@ -637,18 +637,18 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.15.33", - "@swc/core-darwin-x64": "1.15.33", - "@swc/core-linux-arm-gnueabihf": "1.15.33", - "@swc/core-linux-arm64-gnu": "1.15.33", - "@swc/core-linux-arm64-musl": "1.15.33", - "@swc/core-linux-ppc64-gnu": "1.15.33", - "@swc/core-linux-s390x-gnu": "1.15.33", - "@swc/core-linux-x64-gnu": "1.15.33", - "@swc/core-linux-x64-musl": "1.15.33", - "@swc/core-win32-arm64-msvc": "1.15.33", - "@swc/core-win32-ia32-msvc": "1.15.33", - "@swc/core-win32-x64-msvc": "1.15.33" + "@swc/core-darwin-arm64": "1.15.40", + "@swc/core-darwin-x64": "1.15.40", + "@swc/core-linux-arm-gnueabihf": "1.15.40", + "@swc/core-linux-arm64-gnu": "1.15.40", + "@swc/core-linux-arm64-musl": "1.15.40", + "@swc/core-linux-ppc64-gnu": "1.15.40", + "@swc/core-linux-s390x-gnu": "1.15.40", + "@swc/core-linux-x64-gnu": "1.15.40", + "@swc/core-linux-x64-musl": "1.15.40", + "@swc/core-win32-arm64-msvc": "1.15.40", + "@swc/core-win32-ia32-msvc": "1.15.40", + "@swc/core-win32-x64-msvc": "1.15.40" }, "peerDependencies": { "@swc/helpers": ">=0.5.17" @@ -660,9 +660,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.33.tgz", - "integrity": "sha512-N+L0uXhuO7FIfzqwgxmzv0zIpV0qEp8wPX3QQs2p4atjMoywup2JTeDlXPw+z9pWJGCae3JjM+tZ6myclI+2gA==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.40.tgz", + "integrity": "sha512-PaYyclfmQ++77D8ityYvmmVzHv9aG8ROwt2GfG6/ccloy4Hgf80qtOnzb9VYvPsUT7Ty1uhuDRhv3XYpf62qhQ==", "cpu": [ "arm64" ], @@ -677,9 +677,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.33.tgz", - "integrity": "sha512-/Il4QHSOhV4FekbsDtkrNmKbsX26oSysvgrRswa/RYOHXAkwXDbB4jaeKq6PsJLSPkzJ2KzQ061gtBnk0vNHfA==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.40.tgz", + "integrity": "sha512-HbbPzvfLBUXjIB1Ezks+//lNUjmLjfyd63XSwprJgrZaXYdm70kohXPJUWdqKZozolFxbPaO+xtBaiUp6BoueA==", "cpu": [ "x64" ], @@ -694,9 +694,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.33.tgz", - "integrity": "sha512-C64hBnBxq4viOPQ8hlx+2lJ23bzZBGnjw7ryALmS+0Q3zHmwO8lw1/DArLENw4Q18/0w5wdEO1k3m1wWNtKGqQ==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.40.tgz", + "integrity": "sha512-SlRZsCjOCPR2LvFs0Ri/Xrx/5o5TCt8vl4gW6mX1hEZOG0a625RxzRHpHdAQNGykmAN/7IeaFAJG+QnNmxlHcA==", "cpu": [ "arm" ], @@ -711,9 +711,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.33.tgz", - "integrity": "sha512-TRJfnJbX3jqpxRDRoieMzRiCBS5jOmXNb3iQXmcgjFEHKLnAgK1RZRU8Cq1MsPqO4jAJp/ld1G4O3fXuxv85uw==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.40.tgz", + "integrity": "sha512-Q8byxJt2fh8CR3EUX6snBpy47AoBVm+In/+Z3rjDHMjC38ZvR9/gtUUNCT0tfrn4EdVsO8/QPi59nxrxvqxvBQ==", "cpu": [ "arm64" ], @@ -728,9 +728,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.33.tgz", - "integrity": "sha512-il7tYM+CpUNzieQbwAjFT1P8zqAhmGWNAGhQZBnxurXZ0aNn+5nqYFTEUKNZl7QibtT0uQXzTZrNGHCIj6Y1Og==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.40.tgz", + "integrity": "sha512-4z0MgHU+7M0pZDqBN1El7mFXDI1SBwinfcUkAyA4v8QrhOIUOZltySt2aStQLZGrdXVXM4Y4ylfiTC04ED+MoQ==", "cpu": [ "arm64" ], @@ -745,9 +745,9 @@ } }, "node_modules/@swc/core-linux-ppc64-gnu": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-linux-ppc64-gnu/-/core-linux-ppc64-gnu-1.15.33.tgz", - "integrity": "sha512-ZtNBwN0Z7CFj9Il0FcPaKdjgP7URyKu/3RfH46vq+0paOBqLj4NYldD6Qo//Duif/7IOtAraUfDOmp0PLAufog==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-linux-ppc64-gnu/-/core-linux-ppc64-gnu-1.15.40.tgz", + "integrity": "sha512-fLI4iUgeSZu0eRWUXwe6YzPFx9gHbFiPkl8Rp3mJfP8OpNR3nTQCGPvHdDh9xniW7mVvgMY4ni7A4VzqI1KrpA==", "cpu": [ "ppc64" ], @@ -762,9 +762,9 @@ } }, "node_modules/@swc/core-linux-s390x-gnu": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-linux-s390x-gnu/-/core-linux-s390x-gnu-1.15.33.tgz", - "integrity": "sha512-De1IyajoOmhOYYjw/lx66bKlyDpHZTueqwpDrWgf5O7T6d1ODeJJO9/OqMBmrBQc5C+dNnlmIufHsp4QVCWufA==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-linux-s390x-gnu/-/core-linux-s390x-gnu-1.15.40.tgz", + "integrity": "sha512-YqeKMAb7d4nQSGMJQ454IlaCENpzcDqhvBE9+CPfdnYpnUXxd+BSrB6Xk0YjW8UyoEhUj4p6quATCxbsp6J3jg==", "cpu": [ "s390x" ], @@ -779,9 +779,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.33.tgz", - "integrity": "sha512-mGTH0YxmUN+x6vRN/I6NOk5X0ogNktkwPnJ94IMvR7QjhRDwL0O8RXEDhyUM0YtwWrryBOqaJQBX4zruxEPRGw==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.40.tgz", + "integrity": "sha512-7HOuS1iGcme/j/TuL1TfmmLGiMQrjv/GmjyZeydl00FKPtpGXEldwqfI56xgd1YzrzoB2svWjxbGGyQ0TEASxg==", "cpu": [ "x64" ], @@ -796,9 +796,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.33.tgz", - "integrity": "sha512-hj628ZkSEJf6zMf5VMbYrG2O6QqyTIp2qwY6VlCjvIa9lAEZ5c2lfPblCLVGYubTeLJDxadLB/CxqQYOQABeEQ==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.40.tgz", + "integrity": "sha512-h4kZYHc7dpc9P9u4brRJaS8Pl7tPVHAeiLSzw7T5RfIJgAoSdaCMKzI/2Uay9gFhaw8uyCDl0L5q37r0EpAfIA==", "cpu": [ "x64" ], @@ -813,9 +813,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.33.tgz", - "integrity": "sha512-GV2oohtN2/5+KSccl86VULu3aT+LrISC8uzgSq0FRnikpD+Zwc+sBlXmoKQ+Db6jI57ITUOIB8jRkdGMABC29g==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.40.tgz", + "integrity": "sha512-+mQgKZXSj6mV38Zh05QaxSjUDmGP/R2JWlXZTDLSPkDzHU6p3GxN9eeSf5dfyDVU86946fmCvSzyl/ucImx8+A==", "cpu": [ "arm64" ], @@ -830,9 +830,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.33.tgz", - "integrity": "sha512-gtyvzSNR8DHKfFEA2uqb8Ld1myqi6uEg2jyeUq3ikn5ytYs7H8RpZYC8mdy4NXr8hfcdJfCLXPlYaqqfBXpoEQ==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.40.tgz", + "integrity": "sha512-yvwdPLGd25mcj/mNatjNQ0lZujtQD6psH3v9PNmMb+fSzjbNG8KIDxjFWrcV+fsFVLOkyOmdJsFmX7NAFjVyPw==", "cpu": [ "ia32" ], @@ -847,9 +847,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.15.33", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.33.tgz", - "integrity": "sha512-d6fRqQSkJI+kmMEBWaDQ7TMl8+YjLYbwRUPZQ9DY0ORBJeTzOrG0twvfvlZ2xgw6jA0ScQKgfBm4vHLSLl5Hqg==", + "version": "1.15.40", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.40.tgz", + "integrity": "sha512-OXtKsLU1bVtInzzDEAY2sYiF/rl4tvAnLLLpuMp3HzAOQZ5A+i69AKDhA1YLQTaMAqO3vzyYNVAYVRMPtSYD4w==", "cpu": [ "x64" ], @@ -987,13 +987,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "25.6.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz", - "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==", + "version": "25.9.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.1.tgz", + "integrity": "sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~7.19.0" + "undici-types": ">=7.24.0 <7.24.7" } }, "node_modules/@types/stack-utils": { @@ -1194,9 +1194,9 @@ } }, "node_modules/brace-expansion": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.0.tgz", - "integrity": "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", + "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", "dev": true, "license": "MIT", "dependencies": { @@ -1604,18 +1604,18 @@ } }, "node_modules/expect": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-30.3.0.tgz", - "integrity": "sha512-1zQrciTiQfRdo7qJM1uG4navm8DayFa2TgCSRlzUyNkhcJ6XUZF3hjnpkyr3VhAqPH7i/9GkG7Tv5abz6fqz0Q==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-30.4.1.tgz", + "integrity": "sha512-PMARsyh/JtqC20HoGqlFcIlQAyqUtW4PlI1rup1uhYJtKuwAjbvWi3GQMAn+STdHum/dk8xrKfUM1+5SAwpolA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/expect-utils": "30.3.0", + "@jest/expect-utils": "30.4.1", "@jest/get-type": "30.1.0", - "jest-matcher-utils": "30.3.0", - "jest-message-util": "30.3.0", - "jest-mock": "30.3.0", - "jest-util": "30.3.0" + "jest-matcher-utils": "30.4.1", + "jest-message-util": "30.4.1", + "jest-mock": "30.4.1", + "jest-util": "30.4.1" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -1982,51 +1982,52 @@ "license": "ISC" }, "node_modules/jest-diff": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.3.0.tgz", - "integrity": "sha512-n3q4PDQjS4LrKxfWB3Z5KNk1XjXtZTBwQp71OP0Jo03Z6V60x++K5L8k6ZrW8MY8pOFylZvHM0zsjS1RqlHJZQ==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.4.1.tgz", + "integrity": "sha512-CRpFK0RtLriVDGcPPAnR6HMVI8bSR2jnUIgralhauzYQZIb4RH9AtEInTuQr65LmmGggGcRT6HIASxwqsVsmlA==", "dev": true, "license": "MIT", "dependencies": { - "@jest/diff-sequences": "30.3.0", + "@jest/diff-sequences": "30.4.0", "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "pretty-format": "30.3.0" + "pretty-format": "30.4.1" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-matcher-utils": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.3.0.tgz", - "integrity": "sha512-HEtc9uFQgaUHkC7nLSlQL3Tph4Pjxt/yiPvkIrrDCt9jhoLIgxaubo1G+CFOnmHYMxHwwdaSN7mkIFs6ZK8OhA==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.4.1.tgz", + "integrity": "sha512-zvYfX5CaeEkFrrLS9suWe9rvJrm9J1Iv3ua8kIBv9GEPzcnsfBf0bob37la7s67fs0nlBC3EuvkOLnXQKxtx4A==", "dev": true, "license": "MIT", "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", - "jest-diff": "30.3.0", - "pretty-format": "30.3.0" + "jest-diff": "30.4.1", + "pretty-format": "30.4.1" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-message-util": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.3.0.tgz", - "integrity": "sha512-Z/j4Bo+4ySJ+JPJN3b2Qbl9hDq3VrXmnjjGEWD/x0BCXeOXPTV1iZYYzl2X8c1MaCOL+ewMyNBcm88sboE6YWw==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.4.1.tgz", + "integrity": "sha512-kwCKIvq0MCW1HzLoGola9Te6JUdzgV0loyKJ3Qghrkz9i5/RRIHsL95BMQc2HBBhlBKC4j22K9p11TGHH8RBpQ==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.27.1", - "@jest/types": "30.3.0", + "@jest/types": "30.4.1", "@types/stack-utils": "^2.0.3", "chalk": "^4.1.2", "graceful-fs": "^4.2.11", + "jest-util": "30.4.1", "picomatch": "^4.0.3", - "pretty-format": "30.3.0", + "pretty-format": "30.4.1", "slash": "^3.0.0", "stack-utils": "^2.0.6" }, @@ -2035,24 +2036,24 @@ } }, "node_modules/jest-mock": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.3.0.tgz", - "integrity": "sha512-OTzICK8CpE+t4ndhKrwlIdbM6Pn8j00lvmSmq5ejiO+KxukbLjgOflKWMn3KE34EZdQm5RqTuKj+5RIEniYhog==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.4.1.tgz", + "integrity": "sha512-/i8SVb8/NSB7RfNi8gfqu8gxLV23KaL5EpAttyb9iz8qWRIqXRLflycz/32wXsYkOnaUlx8NAKnJYtpsmXUmfw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.3.0", + "@jest/types": "30.4.1", "@types/node": "*", - "jest-util": "30.3.0" + "jest-util": "30.4.1" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, "node_modules/jest-regex-util": { - "version": "30.0.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.0.1.tgz", - "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==", + "version": "30.4.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.4.0.tgz", + "integrity": "sha512-mWlvLviKIgIQ8VCuM1xRdD0TWp3zlzionlmDBjuXVBs+VkmXq6FgW9T4Emr7oGz/Rk6feDCGyiugolcQEyp3mg==", "dev": true, "license": "MIT", "engines": { @@ -2060,13 +2061,13 @@ } }, "node_modules/jest-util": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.3.0.tgz", - "integrity": "sha512-/jZDa00a3Sz7rdyu55NLrQCIrbyIkbBxareejQI315f/i8HjYN+ZWsDLLpoQSiUIEIyZF/R8fDg3BmB8AtHttg==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.4.1.tgz", + "integrity": "sha512-vjQb1sACEiv13DKJMDToJpzVW0joCsIQrmbg0fi7CyOOt+g9jTuQl2A216pWRBYhOVt53XbL/2LbMKg1BECWOw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/types": "30.3.0", + "@jest/types": "30.4.1", "@types/node": "*", "chalk": "^4.1.2", "ci-info": "^4.2.0", @@ -2095,10 +2096,20 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", + "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], "license": "MIT", "dependencies": { "argparse": "^2.0.1" @@ -2531,15 +2542,16 @@ } }, "node_modules/pretty-format": { - "version": "30.3.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.3.0.tgz", - "integrity": "sha512-oG4T3wCbfeuvljnyAzhBvpN45E8iOTXCU/TD3zXW80HA3dQ4ahdqMkWGiPWZvjpQwlbyHrPTWUAqUzGzv4l1JQ==", + "version": "30.4.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.4.1.tgz", + "integrity": "sha512-K6KiKMHTL4jjX4u3Kir2EW07nRfcqVTXIImx50wbjHQTcZPgg+gjVeNTIT3l3L1Rd4UefxfogquC9J37SoFyyw==", "dev": true, "license": "MIT", "dependencies": { - "@jest/schemas": "30.0.5", + "@jest/schemas": "30.4.1", "ansi-styles": "^5.2.0", - "react-is": "^18.3.1" + "react-is-18": "npm:react-is@^18.3.1", + "react-is-19": "npm:react-is@^19.2.5" }, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -2605,13 +2617,22 @@ "safe-buffer": "^5.1.0" } }, - "node_modules/react-is": { + "node_modules/react-is-18": { + "name": "react-is", "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", "dev": true, "license": "MIT" }, + "node_modules/react-is-19": { + "name": "react-is", + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.6.tgz", + "integrity": "sha512-XjBR15BhXuylgWGuslhDKqlSayuqvqBX91BP8pauG8kd1zY8kotkNWbXksTCNRarse4kuGbe2kIY05ARtwNIvw==", + "dev": true, + "license": "MIT" + }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -2953,9 +2974,9 @@ } }, "node_modules/tinyglobby": { - "version": "0.2.16", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", - "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "license": "MIT", "dependencies": { @@ -3269,9 +3290,9 @@ } }, "node_modules/undici-types": { - "version": "7.19.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz", - "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", "dev": true, "license": "MIT" }, @@ -3378,9 +3399,9 @@ } }, "node_modules/yaml": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.4.tgz", - "integrity": "sha512-ml/JPOj9fOQK8RNnWojA67GbZ0ApXAUlN2UQclwv2eVgTgn7O9gg9o7paZWKMp4g0H3nTLtS9LVzhkpOFIKzog==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", + "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", "dev": true, "license": "ISC", "bin": { diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 7cfa63458..cc89442be 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@thoughtspot/rest-api-sdk", - "version": "2.24.0", + "version": "2.25.0", "description": "Api sdk for thoughtspot's public v2 rest api", "keywords": [ "fetch", diff --git a/sdks/typescript/tests/AIApiTest.ts b/sdks/typescript/tests/AIApiTest.ts index f03f336d6..00513be3d 100644 --- a/sdks/typescript/tests/AIApiTest.ts +++ b/sdks/typescript/tests/AIApiTest.ts @@ -453,4 +453,36 @@ describe('AIApi', function() { }); }); }); + + describe('stopConversation', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "stopConversation" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.stopConversation( + // conversationIdentifier conversation_identifier + test.Path_Variables.conversation_identifier + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.stopConversation( + // conversationIdentifier conversation_identifier + test.Path_Variables.conversation_identifier + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); }); diff --git a/sdks/typescript/tests/AuthenticationApiTest.ts b/sdks/typescript/tests/AuthenticationApiTest.ts index cb3d90344..6cb234374 100644 --- a/sdks/typescript/tests/AuthenticationApiTest.ts +++ b/sdks/typescript/tests/AuthenticationApiTest.ts @@ -22,6 +22,38 @@ const instance = new PromiseAuthenticationApi(config); describe('AuthenticationApi', function() { + describe('configureAuthSettings', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "configureAuthSettings" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.configureAuthSettings( + // configureAuthSettingsRequest ConfigureAuthSettingsRequest + test.Body + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.configureAuthSettings( + // configureAuthSettingsRequest ConfigureAuthSettingsRequest + test.Body + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); + describe('getCurrentUserInfo', function() { const testReqBodies = requestBodies.filter( @@ -266,6 +298,38 @@ describe('AuthenticationApi', function() { }); }); + describe('searchAuthSettings', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "searchAuthSettings" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.searchAuthSettings( + // searchAuthSettingsRequest SearchAuthSettingsRequest + test.Body + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.searchAuthSettings( + // searchAuthSettingsRequest SearchAuthSettingsRequest + test.Body + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); + describe('validateToken', function() { const testReqBodies = requestBodies.filter( diff --git a/sdks/typescript/tests/ConnectionsApiTest.ts b/sdks/typescript/tests/ConnectionsApiTest.ts index 98fd3b5b6..eb7bfc7a2 100644 --- a/sdks/typescript/tests/ConnectionsApiTest.ts +++ b/sdks/typescript/tests/ConnectionsApiTest.ts @@ -318,6 +318,42 @@ describe('ConnectionsApi', function() { }); }); + describe('updateConnectionStatus', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "updateConnectionStatus" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.updateConnectionStatus( + // connectionIdentifier connection_identifier + test.Path_Variables.connection_identifier , + // updateConnectionStatusRequest UpdateConnectionStatusRequest + test.Body + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.updateConnectionStatus( + // connectionIdentifier connection_identifier + test.Path_Variables.connection_identifier , + // updateConnectionStatusRequest UpdateConnectionStatusRequest + test.Body + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); + describe('updateConnectionV2', function() { const testReqBodies = requestBodies.filter( diff --git a/sdks/typescript/tests/ThoughtSpotRestApiTest.ts b/sdks/typescript/tests/ThoughtSpotRestApiTest.ts index c104c549f..b747d9400 100644 --- a/sdks/typescript/tests/ThoughtSpotRestApiTest.ts +++ b/sdks/typescript/tests/ThoughtSpotRestApiTest.ts @@ -182,6 +182,38 @@ describe('ThoughtSpotRestApi', function() { }); }); + describe('configureAuthSettings', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "configureAuthSettings" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.configureAuthSettings( + // configureAuthSettingsRequest ConfigureAuthSettingsRequest + test.Body + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.configureAuthSettings( + // configureAuthSettingsRequest ConfigureAuthSettingsRequest + test.Body + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); + describe('configureCommunicationChannelPreferences', function() { const testReqBodies = requestBodies.filter( @@ -3198,6 +3230,38 @@ describe('ThoughtSpotRestApi', function() { }); }); + describe('searchAuthSettings', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "searchAuthSettings" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.searchAuthSettings( + // searchAuthSettingsRequest SearchAuthSettingsRequest + test.Body + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.searchAuthSettings( + // searchAuthSettingsRequest SearchAuthSettingsRequest + test.Body + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); + describe('searchCalendars', function() { const testReqBodies = requestBodies.filter( @@ -4110,6 +4174,38 @@ describe('ThoughtSpotRestApi', function() { }); }); + describe('stopConversation', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "stopConversation" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.stopConversation( + // conversationIdentifier conversation_identifier + test.Path_Variables.conversation_identifier + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.stopConversation( + // conversationIdentifier conversation_identifier + test.Path_Variables.conversation_identifier + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); + describe('syncMetadata', function() { const testReqBodies = requestBodies.filter( @@ -4446,6 +4542,42 @@ describe('ThoughtSpotRestApi', function() { }); }); + describe('updateConnectionStatus', function() { + + const testReqBodies = requestBodies.filter( + (body: any) => body.Metadata.operationId === "updateConnectionStatus" + ); + testReqBodies.forEach(async (test: any) => { + it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { + + if (test.Metadata.scenario === "positive") { + var data; + try { + data = await instance.updateConnectionStatus( + // connectionIdentifier connection_identifier + test.Path_Variables.connection_identifier , + // updateConnectionStatusRequest UpdateConnectionStatusRequest + test.Body + ) + } catch (er) { + console.error(er, "Response", data) + expect(er).to.be.undefined + } + } else { + await expect( + instance.updateConnectionStatus( + // connectionIdentifier connection_identifier + test.Path_Variables.connection_identifier , + // updateConnectionStatusRequest UpdateConnectionStatusRequest + test.Body + ) + ).to.be.rejectedWith(Error); + } + + }); + }); + }); + describe('updateConnectionV2', function() { const testReqBodies = requestBodies.filter( diff --git a/sdks/typescript/types/ObjectParamAPI.ts b/sdks/typescript/types/ObjectParamAPI.ts index 66a5343ae..9db9280fc 100644 --- a/sdks/typescript/types/ObjectParamAPI.ts +++ b/sdks/typescript/types/ObjectParamAPI.ts @@ -15,10 +15,17 @@ import { ActivateUserRequest } from '../models/ActivateUserRequest'; import { AgentConversation } from '../models/AgentConversation'; import { AnswerContent } from '../models/AnswerContent'; import { AnswerDataResponse } from '../models/AnswerDataResponse'; +import { AnswerPngOptionsInput } from '../models/AnswerPngOptionsInput'; import { AssignChangeAuthorRequest } from '../models/AssignChangeAuthorRequest'; import { AssignTagRequest } from '../models/AssignTagRequest'; import { AssociateMetadataInput } from '../models/AssociateMetadataInput'; import { AssociateMetadataInputCreate } from '../models/AssociateMetadataInputCreate'; +import { AuthClusterPreferences } from '../models/AuthClusterPreferences'; +import { AuthClusterPreferencesInput } from '../models/AuthClusterPreferencesInput'; +import { AuthOrgInfo } from '../models/AuthOrgInfo'; +import { AuthOrgPreference } from '../models/AuthOrgPreference'; +import { AuthOrgPreferenceInput } from '../models/AuthOrgPreferenceInput'; +import { AuthSettingsAccessToken } from '../models/AuthSettingsAccessToken'; import { Authentication } from '../models/Authentication'; import { AuthenticationInput } from '../models/AuthenticationInput'; import { Author } from '../models/Author'; @@ -63,6 +70,8 @@ import { CommitResponse } from '../models/CommitResponse'; import { CommiterType } from '../models/CommiterType'; import { CommunicationChannelPreferencesResponse } from '../models/CommunicationChannelPreferencesResponse'; import { CommunicationChannelValidateResponse } from '../models/CommunicationChannelValidateResponse'; +import { ConfigureAuthSettingsRequest } from '../models/ConfigureAuthSettingsRequest'; +import { ConfigureAuthSettingsRequestClusterPreferences } from '../models/ConfigureAuthSettingsRequestClusterPreferences'; import { ConfigureCommunicationChannelPreferencesRequest } from '../models/ConfigureCommunicationChannelPreferencesRequest'; import { ConfigureSecuritySettingsRequest } from '../models/ConfigureSecuritySettingsRequest'; import { ConfigureSecuritySettingsRequestClusterPreferences } from '../models/ConfigureSecuritySettingsRequestClusterPreferences'; @@ -148,6 +157,7 @@ import { EventChannelConfig } from '../models/EventChannelConfig'; import { EventChannelConfigInput } from '../models/EventChannelConfigInput'; import { ExcludeMetadataListItemInput } from '../models/ExcludeMetadataListItemInput'; import { ExportAnswerReportRequest } from '../models/ExportAnswerReportRequest'; +import { ExportAnswerReportRequestPngOptions } from '../models/ExportAnswerReportRequestPngOptions'; import { ExportAnswerReportRequestRegionalSettings } from '../models/ExportAnswerReportRequestRegionalSettings'; import { ExportLiveboardReportRequest } from '../models/ExportLiveboardReportRequest'; import { ExportLiveboardReportRequestPdfOptions } from '../models/ExportLiveboardReportRequestPdfOptions'; @@ -304,6 +314,8 @@ import { SchemaObject } from '../models/SchemaObject'; import { Scope } from '../models/Scope'; import { ScriptSrcUrls } from '../models/ScriptSrcUrls'; import { ScriptSrcUrlsInput } from '../models/ScriptSrcUrlsInput'; +import { SearchAuthSettingsRequest } from '../models/SearchAuthSettingsRequest'; +import { SearchAuthSettingsResponse } from '../models/SearchAuthSettingsResponse'; import { SearchCalendarsRequest } from '../models/SearchCalendarsRequest'; import { SearchCalendarsRequestSortOptions } from '../models/SearchCalendarsRequestSortOptions'; import { SearchChannelHistoryRequest } from '../models/SearchChannelHistoryRequest'; @@ -390,6 +402,7 @@ import { UpdateColumnSecurityRulesRequest } from '../models/UpdateColumnSecurity import { UpdateConfigRequest } from '../models/UpdateConfigRequest'; import { UpdateConnectionConfigurationRequest } from '../models/UpdateConnectionConfigurationRequest'; import { UpdateConnectionRequest } from '../models/UpdateConnectionRequest'; +import { UpdateConnectionStatusRequest } from '../models/UpdateConnectionStatusRequest'; import { UpdateConnectionV2Request } from '../models/UpdateConnectionV2Request'; import { UpdateCustomActionRequest } from '../models/UpdateCustomActionRequest'; import { UpdateCustomActionRequestActionDetails } from '../models/UpdateCustomActionRequestActionDetails'; @@ -425,6 +438,7 @@ import { ValidateTokenRequest } from '../models/ValidateTokenRequest'; import { ValueScopeInput } from '../models/ValueScopeInput'; import { Variable } from '../models/Variable'; import { VariableDetailInput } from '../models/VariableDetailInput'; +import { VariableOrgInfo } from '../models/VariableOrgInfo'; import { VariablePutAssignmentInput } from '../models/VariablePutAssignmentInput'; import { VariableUpdateAssignmentInput } from '../models/VariableUpdateAssignmentInput'; import { VariableUpdateScopeInput } from '../models/VariableUpdateScopeInput'; @@ -595,6 +609,15 @@ export interface AIApiSingleAnswerRequest { singleAnswerRequest: SingleAnswerRequest } +export interface AIApiStopConversationRequest { + /** + * Unique identifier of the conversation to stop. + * @type string + * @memberof AIApistopConversation + */ + conversationIdentifier: string +} + export class ObjectAIApi { private api: ObservableAIApi @@ -706,11 +729,28 @@ export class ObjectAIApi { return this.api.singleAnswer(param.singleAnswerRequest, options).toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param param the request object + */ + public stopConversation(param: AIApiStopConversationRequest, options?: Configuration): Promise { + return this.api.stopConversation(param.conversationIdentifier, options).toPromise(); + } + } import { ObservableAuthenticationApi } from "./ObservableAPI"; import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor} from "../apis/AuthenticationApi"; +export interface AuthenticationApiConfigureAuthSettingsRequest { + /** + * + * @type ConfigureAuthSettingsRequest + * @memberof AuthenticationApiconfigureAuthSettings + */ + configureAuthSettingsRequest: ConfigureAuthSettingsRequest +} + export interface AuthenticationApiGetCurrentUserInfoRequest { } @@ -765,6 +805,15 @@ export interface AuthenticationApiRevokeTokenRequest { revokeTokenRequest: RevokeTokenRequest } +export interface AuthenticationApiSearchAuthSettingsRequest { + /** + * + * @type SearchAuthSettingsRequest + * @memberof AuthenticationApisearchAuthSettings + */ + searchAuthSettingsRequest: SearchAuthSettingsRequest +} + export interface AuthenticationApiValidateTokenRequest { /** * @@ -781,6 +830,14 @@ export class ObjectAuthenticationApi { this.api = new ObservableAuthenticationApi(configuration, requestFactory, responseProcessor); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param param the request object + */ + public configureAuthSettings(param: AuthenticationApiConfigureAuthSettingsRequest, options?: Configuration): Promise { + return this.api.configureAuthSettings(param.configureAuthSettingsRequest, options).toPromise(); + } + /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. * @param param the request object @@ -845,6 +902,14 @@ export class ObjectAuthenticationApi { return this.api.revokeToken(param.revokeTokenRequest, options).toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param param the request object + */ + public searchAuthSettings(param: AuthenticationApiSearchAuthSettingsRequest, options?: Configuration): Promise { + return this.api.searchAuthSettings(param.searchAuthSettingsRequest, options).toPromise(); + } + /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param param the request object @@ -1123,6 +1188,21 @@ export interface ConnectionsApiUpdateConnectionRequest { updateConnectionRequest: UpdateConnectionRequest } +export interface ConnectionsApiUpdateConnectionStatusRequest { + /** + * Unique ID or name of the connection. + * @type string + * @memberof ConnectionsApiupdateConnectionStatus + */ + connectionIdentifier: string + /** + * + * @type UpdateConnectionStatusRequest + * @memberof ConnectionsApiupdateConnectionStatus + */ + updateConnectionStatusRequest: UpdateConnectionStatusRequest +} + export interface ConnectionsApiUpdateConnectionV2Request { /** * Unique ID or name of the connection. @@ -1217,6 +1297,14 @@ export class ObjectConnectionsApi { return this.api.updateConnection(param.updateConnectionRequest, options).toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param param the request object + */ + public updateConnectionStatus(param: ConnectionsApiUpdateConnectionStatusRequest, options?: Configuration): Promise { + return this.api.updateConnectionStatus(param.connectionIdentifier, param.updateConnectionStatusRequest, options).toPromise(); + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param param the request object @@ -3085,6 +3173,15 @@ export interface ThoughtSpotRestApiCommitBranchRequest { commitBranchRequest: CommitBranchRequest } +export interface ThoughtSpotRestApiConfigureAuthSettingsRequest { + /** + * + * @type ConfigureAuthSettingsRequest + * @memberof ThoughtSpotRestApiconfigureAuthSettings + */ + configureAuthSettingsRequest: ConfigureAuthSettingsRequest +} + export interface ThoughtSpotRestApiConfigureCommunicationChannelPreferencesRequest { /** * @@ -3982,6 +4079,15 @@ export interface ThoughtSpotRestApiRevokeTokenRequest { revokeTokenRequest: RevokeTokenRequest } +export interface ThoughtSpotRestApiSearchAuthSettingsRequest { + /** + * + * @type SearchAuthSettingsRequest + * @memberof ThoughtSpotRestApisearchAuthSettings + */ + searchAuthSettingsRequest: SearchAuthSettingsRequest +} + export interface ThoughtSpotRestApiSearchCalendarsRequest { /** * @@ -4258,6 +4364,15 @@ export interface ThoughtSpotRestApiSingleAnswerRequest { singleAnswerRequest: SingleAnswerRequest } +export interface ThoughtSpotRestApiStopConversationRequest { + /** + * Unique identifier of the conversation to stop. + * @type string + * @memberof ThoughtSpotRestApistopConversation + */ + conversationIdentifier: string +} + export interface ThoughtSpotRestApiSyncMetadataRequest { /** * Unique ID or name of the connection. @@ -4372,6 +4487,21 @@ export interface ThoughtSpotRestApiUpdateConnectionConfigurationRequest { updateConnectionConfigurationRequest: UpdateConnectionConfigurationRequest } +export interface ThoughtSpotRestApiUpdateConnectionStatusRequest { + /** + * Unique ID or name of the connection. + * @type string + * @memberof ThoughtSpotRestApiupdateConnectionStatus + */ + connectionIdentifier: string + /** + * + * @type UpdateConnectionStatusRequest + * @memberof ThoughtSpotRestApiupdateConnectionStatus + */ + updateConnectionStatusRequest: UpdateConnectionStatusRequest +} + export interface ThoughtSpotRestApiUpdateConnectionV2Request { /** * Unique ID or name of the connection. @@ -4713,6 +4843,14 @@ export class ObjectThoughtSpotRestApi { return this.api.commitBranch(param.commitBranchRequest, options).toPromise(); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param param the request object + */ + public configureAuthSettings(param: ThoughtSpotRestApiConfigureAuthSettingsRequest, options?: Configuration): Promise { + return this.api.configureAuthSettings(param.configureAuthSettingsRequest, options).toPromise(); + } + /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param param the request object @@ -5457,6 +5595,14 @@ export class ObjectThoughtSpotRestApi { return this.api.revokeToken(param.revokeTokenRequest, options).toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param param the request object + */ + public searchAuthSettings(param: ThoughtSpotRestApiSearchAuthSettingsRequest, options?: Configuration): Promise { + return this.api.searchAuthSettings(param.searchAuthSettingsRequest, options).toPromise(); + } + /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param param the request object @@ -5681,6 +5827,14 @@ export class ObjectThoughtSpotRestApi { return this.api.singleAnswer(param.singleAnswerRequest, options).toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param param the request object + */ + public stopConversation(param: ThoughtSpotRestApiStopConversationRequest, options?: Configuration): Promise { + return this.api.stopConversation(param.conversationIdentifier, options).toPromise(); + } + /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param param the request object @@ -5761,6 +5915,14 @@ export class ObjectThoughtSpotRestApi { return this.api.updateConnectionConfiguration(param.configurationIdentifier, param.updateConnectionConfigurationRequest, options).toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param param the request object + */ + public updateConnectionStatus(param: ThoughtSpotRestApiUpdateConnectionStatusRequest, options?: Configuration): Promise { + return this.api.updateConnectionStatus(param.connectionIdentifier, param.updateConnectionStatusRequest, options).toPromise(); + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param param the request object diff --git a/sdks/typescript/types/ObservableAPI.ts b/sdks/typescript/types/ObservableAPI.ts index 6f093f4a9..d4f2bec90 100644 --- a/sdks/typescript/types/ObservableAPI.ts +++ b/sdks/typescript/types/ObservableAPI.ts @@ -16,10 +16,17 @@ import { ActivateUserRequest } from '../models/ActivateUserRequest'; import { AgentConversation } from '../models/AgentConversation'; import { AnswerContent } from '../models/AnswerContent'; import { AnswerDataResponse } from '../models/AnswerDataResponse'; +import { AnswerPngOptionsInput } from '../models/AnswerPngOptionsInput'; import { AssignChangeAuthorRequest } from '../models/AssignChangeAuthorRequest'; import { AssignTagRequest } from '../models/AssignTagRequest'; import { AssociateMetadataInput } from '../models/AssociateMetadataInput'; import { AssociateMetadataInputCreate } from '../models/AssociateMetadataInputCreate'; +import { AuthClusterPreferences } from '../models/AuthClusterPreferences'; +import { AuthClusterPreferencesInput } from '../models/AuthClusterPreferencesInput'; +import { AuthOrgInfo } from '../models/AuthOrgInfo'; +import { AuthOrgPreference } from '../models/AuthOrgPreference'; +import { AuthOrgPreferenceInput } from '../models/AuthOrgPreferenceInput'; +import { AuthSettingsAccessToken } from '../models/AuthSettingsAccessToken'; import { Authentication } from '../models/Authentication'; import { AuthenticationInput } from '../models/AuthenticationInput'; import { Author } from '../models/Author'; @@ -64,6 +71,8 @@ import { CommitResponse } from '../models/CommitResponse'; import { CommiterType } from '../models/CommiterType'; import { CommunicationChannelPreferencesResponse } from '../models/CommunicationChannelPreferencesResponse'; import { CommunicationChannelValidateResponse } from '../models/CommunicationChannelValidateResponse'; +import { ConfigureAuthSettingsRequest } from '../models/ConfigureAuthSettingsRequest'; +import { ConfigureAuthSettingsRequestClusterPreferences } from '../models/ConfigureAuthSettingsRequestClusterPreferences'; import { ConfigureCommunicationChannelPreferencesRequest } from '../models/ConfigureCommunicationChannelPreferencesRequest'; import { ConfigureSecuritySettingsRequest } from '../models/ConfigureSecuritySettingsRequest'; import { ConfigureSecuritySettingsRequestClusterPreferences } from '../models/ConfigureSecuritySettingsRequestClusterPreferences'; @@ -149,6 +158,7 @@ import { EventChannelConfig } from '../models/EventChannelConfig'; import { EventChannelConfigInput } from '../models/EventChannelConfigInput'; import { ExcludeMetadataListItemInput } from '../models/ExcludeMetadataListItemInput'; import { ExportAnswerReportRequest } from '../models/ExportAnswerReportRequest'; +import { ExportAnswerReportRequestPngOptions } from '../models/ExportAnswerReportRequestPngOptions'; import { ExportAnswerReportRequestRegionalSettings } from '../models/ExportAnswerReportRequestRegionalSettings'; import { ExportLiveboardReportRequest } from '../models/ExportLiveboardReportRequest'; import { ExportLiveboardReportRequestPdfOptions } from '../models/ExportLiveboardReportRequestPdfOptions'; @@ -305,6 +315,8 @@ import { SchemaObject } from '../models/SchemaObject'; import { Scope } from '../models/Scope'; import { ScriptSrcUrls } from '../models/ScriptSrcUrls'; import { ScriptSrcUrlsInput } from '../models/ScriptSrcUrlsInput'; +import { SearchAuthSettingsRequest } from '../models/SearchAuthSettingsRequest'; +import { SearchAuthSettingsResponse } from '../models/SearchAuthSettingsResponse'; import { SearchCalendarsRequest } from '../models/SearchCalendarsRequest'; import { SearchCalendarsRequestSortOptions } from '../models/SearchCalendarsRequestSortOptions'; import { SearchChannelHistoryRequest } from '../models/SearchChannelHistoryRequest'; @@ -391,6 +403,7 @@ import { UpdateColumnSecurityRulesRequest } from '../models/UpdateColumnSecurity import { UpdateConfigRequest } from '../models/UpdateConfigRequest'; import { UpdateConnectionConfigurationRequest } from '../models/UpdateConnectionConfigurationRequest'; import { UpdateConnectionRequest } from '../models/UpdateConnectionRequest'; +import { UpdateConnectionStatusRequest } from '../models/UpdateConnectionStatusRequest'; import { UpdateConnectionV2Request } from '../models/UpdateConnectionV2Request'; import { UpdateCustomActionRequest } from '../models/UpdateCustomActionRequest'; import { UpdateCustomActionRequestActionDetails } from '../models/UpdateCustomActionRequestActionDetails'; @@ -426,6 +439,7 @@ import { ValidateTokenRequest } from '../models/ValidateTokenRequest'; import { ValueScopeInput } from '../models/ValueScopeInput'; import { Variable } from '../models/Variable'; import { VariableDetailInput } from '../models/VariableDetailInput'; +import { VariableOrgInfo } from '../models/VariableOrgInfo'; import { VariablePutAssignmentInput } from '../models/VariablePutAssignmentInput'; import { VariableUpdateAssignmentInput } from '../models/VariableUpdateAssignmentInput'; import { VariableUpdateScopeInput } from '../models/VariableUpdateScopeInput'; @@ -771,6 +785,29 @@ export class ObservableAIApi { })); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + public stopConversation(conversationIdentifier: string, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.stopConversation(conversationIdentifier, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.stopConversation(rsp))); + })); + } + } import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor} from "../apis/AuthenticationApi"; @@ -789,6 +826,29 @@ export class ObservableAuthenticationApi { this.responseProcessor = responseProcessor || new AuthenticationApiResponseProcessor(); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + public configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.configureAuthSettings(configureAuthSettingsRequest, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.configureAuthSettings(rsp))); + })); + } + /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -970,6 +1030,29 @@ export class ObservableAuthenticationApi { })); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + public searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.searchAuthSettings(searchAuthSettingsRequest, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.searchAuthSettings(rsp))); + })); + } + /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -1442,6 +1525,30 @@ export class ObservableConnectionsApi { })); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + public updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.updateConnectionStatus(rsp))); + })); + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -3891,6 +3998,29 @@ export class ObservableThoughtSpotRestApi { })); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + public configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.configureAuthSettings(configureAuthSettingsRequest, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.configureAuthSettings(rsp))); + })); + } + /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -6040,6 +6170,29 @@ export class ObservableThoughtSpotRestApi { })); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + public searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.searchAuthSettings(searchAuthSettingsRequest, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.searchAuthSettings(rsp))); + })); + } + /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -6688,6 +6841,29 @@ export class ObservableThoughtSpotRestApi { })); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + public stopConversation(conversationIdentifier: string, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.stopConversation(conversationIdentifier, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.stopConversation(rsp))); + })); + } + /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -6922,6 +7098,30 @@ export class ObservableThoughtSpotRestApi { })); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + public updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.updateConnectionStatus(rsp))); + })); + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. diff --git a/sdks/typescript/types/PromiseAPI.ts b/sdks/typescript/types/PromiseAPI.ts index 22a775e5e..6a2da2cba 100644 --- a/sdks/typescript/types/PromiseAPI.ts +++ b/sdks/typescript/types/PromiseAPI.ts @@ -15,10 +15,17 @@ import { ActivateUserRequest } from '../models/ActivateUserRequest'; import { AgentConversation } from '../models/AgentConversation'; import { AnswerContent } from '../models/AnswerContent'; import { AnswerDataResponse } from '../models/AnswerDataResponse'; +import { AnswerPngOptionsInput } from '../models/AnswerPngOptionsInput'; import { AssignChangeAuthorRequest } from '../models/AssignChangeAuthorRequest'; import { AssignTagRequest } from '../models/AssignTagRequest'; import { AssociateMetadataInput } from '../models/AssociateMetadataInput'; import { AssociateMetadataInputCreate } from '../models/AssociateMetadataInputCreate'; +import { AuthClusterPreferences } from '../models/AuthClusterPreferences'; +import { AuthClusterPreferencesInput } from '../models/AuthClusterPreferencesInput'; +import { AuthOrgInfo } from '../models/AuthOrgInfo'; +import { AuthOrgPreference } from '../models/AuthOrgPreference'; +import { AuthOrgPreferenceInput } from '../models/AuthOrgPreferenceInput'; +import { AuthSettingsAccessToken } from '../models/AuthSettingsAccessToken'; import { Authentication } from '../models/Authentication'; import { AuthenticationInput } from '../models/AuthenticationInput'; import { Author } from '../models/Author'; @@ -63,6 +70,8 @@ import { CommitResponse } from '../models/CommitResponse'; import { CommiterType } from '../models/CommiterType'; import { CommunicationChannelPreferencesResponse } from '../models/CommunicationChannelPreferencesResponse'; import { CommunicationChannelValidateResponse } from '../models/CommunicationChannelValidateResponse'; +import { ConfigureAuthSettingsRequest } from '../models/ConfigureAuthSettingsRequest'; +import { ConfigureAuthSettingsRequestClusterPreferences } from '../models/ConfigureAuthSettingsRequestClusterPreferences'; import { ConfigureCommunicationChannelPreferencesRequest } from '../models/ConfigureCommunicationChannelPreferencesRequest'; import { ConfigureSecuritySettingsRequest } from '../models/ConfigureSecuritySettingsRequest'; import { ConfigureSecuritySettingsRequestClusterPreferences } from '../models/ConfigureSecuritySettingsRequestClusterPreferences'; @@ -148,6 +157,7 @@ import { EventChannelConfig } from '../models/EventChannelConfig'; import { EventChannelConfigInput } from '../models/EventChannelConfigInput'; import { ExcludeMetadataListItemInput } from '../models/ExcludeMetadataListItemInput'; import { ExportAnswerReportRequest } from '../models/ExportAnswerReportRequest'; +import { ExportAnswerReportRequestPngOptions } from '../models/ExportAnswerReportRequestPngOptions'; import { ExportAnswerReportRequestRegionalSettings } from '../models/ExportAnswerReportRequestRegionalSettings'; import { ExportLiveboardReportRequest } from '../models/ExportLiveboardReportRequest'; import { ExportLiveboardReportRequestPdfOptions } from '../models/ExportLiveboardReportRequestPdfOptions'; @@ -304,6 +314,8 @@ import { SchemaObject } from '../models/SchemaObject'; import { Scope } from '../models/Scope'; import { ScriptSrcUrls } from '../models/ScriptSrcUrls'; import { ScriptSrcUrlsInput } from '../models/ScriptSrcUrlsInput'; +import { SearchAuthSettingsRequest } from '../models/SearchAuthSettingsRequest'; +import { SearchAuthSettingsResponse } from '../models/SearchAuthSettingsResponse'; import { SearchCalendarsRequest } from '../models/SearchCalendarsRequest'; import { SearchCalendarsRequestSortOptions } from '../models/SearchCalendarsRequestSortOptions'; import { SearchChannelHistoryRequest } from '../models/SearchChannelHistoryRequest'; @@ -390,6 +402,7 @@ import { UpdateColumnSecurityRulesRequest } from '../models/UpdateColumnSecurity import { UpdateConfigRequest } from '../models/UpdateConfigRequest'; import { UpdateConnectionConfigurationRequest } from '../models/UpdateConnectionConfigurationRequest'; import { UpdateConnectionRequest } from '../models/UpdateConnectionRequest'; +import { UpdateConnectionStatusRequest } from '../models/UpdateConnectionStatusRequest'; import { UpdateConnectionV2Request } from '../models/UpdateConnectionV2Request'; import { UpdateCustomActionRequest } from '../models/UpdateCustomActionRequest'; import { UpdateCustomActionRequestActionDetails } from '../models/UpdateCustomActionRequestActionDetails'; @@ -425,6 +438,7 @@ import { ValidateTokenRequest } from '../models/ValidateTokenRequest'; import { ValueScopeInput } from '../models/ValueScopeInput'; import { Variable } from '../models/Variable'; import { VariableDetailInput } from '../models/VariableDetailInput'; +import { VariableOrgInfo } from '../models/VariableOrgInfo'; import { VariablePutAssignmentInput } from '../models/VariablePutAssignmentInput'; import { VariableUpdateAssignmentInput } from '../models/VariableUpdateAssignmentInput'; import { VariableUpdateScopeInput } from '../models/VariableUpdateScopeInput'; @@ -585,6 +599,15 @@ export class PromiseAIApi { return result.toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + public stopConversation(conversationIdentifier: string, _options?: Configuration): Promise { + const result = this.api.stopConversation(conversationIdentifier, _options); + return result.toPromise(); + } + } @@ -604,6 +627,15 @@ export class PromiseAuthenticationApi { this.api = new ObservableAuthenticationApi(configuration, requestFactory, responseProcessor); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + public configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise { + const result = this.api.configureAuthSettings(configureAuthSettingsRequest, _options); + return result.toPromise(); + } + /** * Version: 9.0.0.cl or later Retrieves details of the current user session for the token provided in the request header. Any ThoughtSpot user can access this endpoint and send an API request. The data returned in the API response varies according to user\'s privilege and object access permissions. **NOTE**: In ThoughtSpot, users with cluster administration privileges can access all Orgs by default. However, unless the administrator is explicitly added to an Org, the Orgs list in the session information returned by the API will include only the Primary Org. To include other Orgs in the API response, you must explicitly add the administrator to each Org in the Admin settings page in the UI or via user REST API. */ @@ -673,6 +705,15 @@ export class PromiseAuthenticationApi { return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + public searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise { + const result = this.api.searchAuthSettings(searchAuthSettingsRequest, _options); + return result.toPromise(); + } + /** * Version: 9.12.0.cl or later Validates the authentication token specified in the API request. If your token is not valid, [Get a new token](#/http/api-endpoints/authentication/get-full-access-token). * @param validateTokenRequest @@ -896,6 +937,16 @@ export class PromiseConnectionsApi { return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + public updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise { + const result = this.api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + return result.toPromise(); + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection. @@ -2074,6 +2125,15 @@ export class PromiseThoughtSpotRestApi { return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Enables or disables authentication at cluster or org level for the specified auth type. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `cluster_preferences` to enable or disable authentication at the cluster level. Cluster-level settings can only be configured from the Primary Org. - `ENABLED` — Generates a new access token if one does not exist. An existing token is preserved. - `DISABLED` — Revokes the existing cluster-level access token. Use `org_preferences` to enable or disable authentication for one or more Orgs. Each entry must include an `org_identifier` (unique ID or name) and an `auth_status`. Org-level configuration requires the per-Org authentication feature to be enabled on your instance. - `ENABLED` — Generates a new org-level access token if one does not exist. - `DISABLED` — Revokes the existing org-level access token for that Org. Both `cluster_preferences` and `org_preferences` are optional. Omitting a field leaves the corresponding settings unchanged. If both are omitted, the API returns `204 No Content` without making any changes. **Note**: Cluster-level and org-level settings are independent of each other. Enabling or disabling one does not affect the other. + * @param configureAuthSettingsRequest + */ + public configureAuthSettings(configureAuthSettingsRequest: ConfigureAuthSettingsRequest, _options?: Configuration): Promise { + const result = this.api.configureAuthSettings(configureAuthSettingsRequest, _options); + return result.toPromise(); + } + /** * Version: 10.14.0.cl or later Configure communication channel preferences. - Use `cluster_preferences` to update the default preferences for your ThoughtSpot application instance. - If your instance has [Orgs](https://docs.thoughtspot.com/cloud/latest/orgs-overview), use `org_preferences` to specify Org-specific preferences that override the defaults. Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `DEVELOPER` (**Has developer privilege**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, users with `APPLICATION_ADMINISTRATION` (**Can manage application settings**) privilege are also authorized to perform this action. * @param configureCommunicationChannelPreferencesRequest @@ -2921,6 +2981,15 @@ export class PromiseThoughtSpotRestApi { return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Returns the authentication configuration for the specified auth type at cluster and org level. Currently supports `TRUSTED_AUTH`. #### Required privileges Requires `ADMINISTRATION` (**Can administer ThoughtSpot**) or `CONTROL_TRUSTED_AUTH` (**Can Enable or Disable Trusted Authentication**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled, the `CONTROL_TRUSTED_AUTH` privilege is required. #### Usage guidelines Use `scope` to control which level of settings are returned: - `CLUSTER` — Returns cluster-level authentication status and access tokens. Accessible only from the Primary Org. - `ORG` — Returns org-level authentication status and access tokens for the current Org. Requires the per-Org authentication feature to be enabled on your instance. - If `scope` is omitted, both cluster and org-level settings are returned based on the caller\'s org context and feature availability. The `access_tokens` array in `cluster_preferences` or `org_preferences` is omitted when no token is configured at that level. **Note**: Access tokens returned in the response are sensitive credentials. Treat them with the same care as passwords. + * @param searchAuthSettingsRequest + */ + public searchAuthSettings(searchAuthSettingsRequest: SearchAuthSettingsRequest, _options?: Configuration): Promise { + const result = this.api.searchAuthSettings(searchAuthSettingsRequest, _options); + return result.toPromise(); + } + /** * Version: 10.12.0.cl or later Gets a list of [custom calendars](https://docs.thoughtspot.com/cloud/latest/connections-cust-cal). Requires `DATAMANAGEMENT` (**Can manage data**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your ThoughtSpot instance, the `CAN_MANAGE_CUSTOM_CALENDAR` (**Can manage custom calendars**) privilege is required. #### Usage guidelines By default, the API returns a list of custom calendars for all connection objects. To retrieve custom calendar details for a particular connection, specify the connection ID. You can also use other search parameters such as `name_pattern` and `sort_options` as search filters. The `name_pattern` parameter filters and returns only those objects that match the specified pattern. Use `%` as a wildcard for pattern matching. * @param searchCalendarsRequest @@ -3177,6 +3246,15 @@ export class PromiseThoughtSpotRestApi { return result.toPromise(); } + /** + * Stops an in-progress agent conversation response. Version: 26.6.0.cl or later Version: 26.6.0.cl or later Stops an in-progress agent response for the specified conversation. Use this endpoint to cancel a response that is actively being generated — for example, when the user navigates away, reformulates their question, or no longer needs the current result. Requires `CAN_USE_SPOTTER` privilege and access to the specified conversation. #### Usage guidelines The request must include: - `conversation_identifier` *(path parameter)*: the unique ID of the conversation whose active response should be stopped, as returned by `createAgentConversation` A successful request returns an empty `204 No Content` response. If there is no active response in progress at the time of the call, the request is still treated as successful. After stopping a response, the conversation session remains active. You can continue sending messages using `sendAgentConversationMessage` or `sendAgentConversationMessageStreaming`. #### Example request ```bash POST /api/rest/2.0/ai/agent/conversation/{conversation_identifier}/stop-response ``` #### Typical usage scenario This endpoint is useful when integrating Spotter into a chat UI where users can cancel a long-running query. For example: 1. User sends a message via `sendAgentConversationMessageStreaming`. 2. User clicks a \"Stop generating\" button while the response is streaming. 3. Your client calls `stopConversation` with the active `conversation_identifier`. 4. The stream is terminated and the user can ask a new question. #### Error responses | Code | Description | |------|-------------| | 401 | Unauthorized — authentication token is missing, expired, or invalid. | | 403 | Forbidden — the authenticated user does not have `CAN_USE_SPOTTER` privilege or lacks access to the specified conversation. | > ###### Note: > > - Calling this endpoint when no response is in progress does not return an error. > - The conversation context is preserved after stopping — previous messages and answers remain accessible. > - Available from version 26.6.0.cl and later. > - This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. > - This feature is available only for **Spotter 3** (`SPOTTER3`) version. + * @param conversationIdentifier Unique identifier of the conversation to stop. + */ + public stopConversation(conversationIdentifier: string, _options?: Configuration): Promise { + const result = this.api.stopConversation(conversationIdentifier, _options); + return result.toPromise(); + } + /** * Version: 26.5.0.cl or later Synchronizes connection metadata attributes from your Cloud Data Warehouse (CDW) with ThoughtSpot. Requires the `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_MANAGE_WORKSHEET_VIEWS_TABLES` (**Can manage data models**) privilege is required. #### Usage guidelines To synchronize attributes from a CDW, specify the connection GUID or name in the `connection_identifier` path parameter and `sync_attributes` in the request body. Default attribute is `[\"DESCRIPTION\"]`. ##### Hierarchical schema * Connection: The connection object for the sync operation. * Tables: Tables for the sync operation. When no table is specified, all tables are synchronized. * Columns: If the table is specified, you can add the columns for the sync operation. If no columns are specified, all columns in the specified table are considered for the sync operation. To set the scope for the sync operation: * Connection-level: To sync all tables and columns, pass an empty request body, or only the attributes in the request body. * Table-level: To synchronize specific tables and their columns, specify the table identifiers in the `tables` array. * Column-level: To synchronize specific columns, specify the table identifier as the key and column identifiers as the value in the `tables` array. ``` { \"tables\": [ {\"table-guid-1\": [\"column-guid-1\", \"column-guid-2\"]}, \"table-guid-2\" ], \"sync_attributes\": [\"DESCRIPTION\"] } ``` ##### API response If the sync operation is successful, the API returns the following information: * Status of the sync operation. For example, `SUCCESS`, `PARTIAL_SUCCESS`, or `NO_UPDATE`. * Number of tables and columns that were updated. * Number of tables and columns with the sync failed status when the overall sync status is `PARTIAL_SUCCESS`. * Message text indicating the sync results. * @param connectionIdentifier Unique ID or name of the connection. @@ -3271,6 +3349,16 @@ export class PromiseThoughtSpotRestApi { return result.toPromise(); } + /** + * Version: 26.6.0.cl or later Activates or deactivates a connection. A deactivated connection cannot be used for queries or operations until it is activated again. Requires `DATAMANAGEMENT` (**Can manage data**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. Only the connection owner or an administrator can perform this operation. #### Usage guidelines To update the status of a connection, specify the connection GUID or name in the `connection_identifier` path parameter and the desired `status` in the request body. - **ACTIVATED**: Enables the connection. Queries and operations can resume on an activated connection. - **DEACTIVATED**: Disables the connection. It does not remove the connection metadata, but only makes the connection unavailable for queries and operations. You can reactivate a deactivated connection by setting \"status\": \"ACTIVATED\". + * @param connectionIdentifier Unique ID or name of the connection. + * @param updateConnectionStatusRequest + */ + public updateConnectionStatus(connectionIdentifier: string, updateConnectionStatusRequest: UpdateConnectionStatusRequest, _options?: Configuration): Promise { + const result = this.api.updateConnectionStatus(connectionIdentifier, updateConnectionStatusRequest, _options); + return result.toPromise(); + } + /** * Version: 10.4.0.cl or later Updates a connection object. Requires `DATAMANAGEMENT` (**Can manage data**) and edit permissions to the connection object, or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `CAN_CREATE_OR_EDIT_CONNECTIONS` (**Can create/edit Connections**) privilege is required. To update a connection object, pass these parameters in your API request: 1. GUID of the connection object. 2. If you are updating tables or database schema of a connection object: a. Add the updated JSON map of metadata with database, schema, and tables in `data_warehouse_config`. b. Set `validate` to `true`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes, database details, and table properties in `data_warehouse_config` as shown in the following example: * This is an example of updating a single table in a empty connection: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"DEMORENAME\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"Col1\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col2\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col3\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col312\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"Col4\", \"type\": \"VARCHAR\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` * This is an example of updating a single table in an existing connection with tables: ``` { \"authenticationType\": \"SERVICE_ACCOUNT\", \"externalDatabases\": [ { \"name\": \"DEVELOPMENT\", \"isAutoCreated\": false, \"schemas\": [ { \"name\": \"TS_dataset\", \"tables\": [ { \"name\": \"CUSTOMER\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [], \"relationships\": [] }, { \"name\": \"tpch5k_falcon_default_schema_users\", \"type\": \"TABLE\", \"description\": \"\", \"selected\": true, \"linked\": true, \"gid\": 0, \"datasetId\": \"-1\", \"subType\": \"\", \"reportId\": \"\", \"viewId\": \"\", \"columns\": [ { \"name\": \"user_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"product_id\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false }, { \"name\": \"user_cost\", \"type\": \"INT64\", \"canImport\": true, \"selected\": true, \"description\": \"\", \"isLinkedActive\": true, \"isAggregate\": false } ], \"relationships\": [] } ] } ] } ], \"configuration\": { \"password\": \"\", \"database\": \"DEVELOPMENT\", \"role\": \"DEV\", \"accountName\": \"thoughtspot_partner\", \"warehouse\": \"DEMO_WH\", \"user\": \"DEV_USER\" } } ``` 3. If you are updating a configuration attribute, connection name, or description, you can set `validate` to `false`. **NOTE:** If the `authentication_type` is anything other than SERVICE_ACCOUNT, you must explicitly provide the authenticationType property in the payload. If you do not specify authenticationType, the API will default to SERVICE_ACCOUNT as the authentication type. * A JSON map of configuration attributes in `data_warehouse_config`. The following example shows the configuration attributes for a Snowflake connection: ``` { \"configuration\":{ \"accountName\":\"thoughtspot_partner\", \"user\":\"tsadmin\", \"password\":\"TestConn123\", \"role\":\"sysadmin\", \"warehouse\":\"MEDIUM_WH\" }, \"externalDatabases\":[ ] } ``` * @param connectionIdentifier Unique ID or name of the connection.