Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
340 changes: 321 additions & 19 deletions api-spec/openapiSpecv3-2_0.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sdks/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.thoughtspot</groupId>
<artifactId>rest-api-sdk</artifactId>
<version>2.19.0</version>
<version>2.20.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -29,7 +29,7 @@ Add this dependency to your project's build file:
}

dependencies {
implementation "com.thoughtspot:rest-api-sdk:2.19.0"
implementation "com.thoughtspot:rest-api-sdk:2.20.0"
}
```

Expand Down
574 changes: 413 additions & 161 deletions sdks/java/api/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdks/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'com.thoughtspot'
version = '2.19.0'
version = '2.20.0'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.thoughtspot",
name := "rest-api-sdk",
version := "2.19.0",
version := "2.20.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
72 changes: 72 additions & 0 deletions sdks/java/docs/AiApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ All URIs are relative to *CLUSTER_URL*
| [**createAgentConversation**](AiApi.md#createAgentConversation) | **POST** /api/rest/2.0/ai/agent/conversation/create |
| [**createConversation**](AiApi.md#createConversation) | **POST** /api/rest/2.0/ai/conversation/create |
| [**getDataSourceSuggestions**](AiApi.md#getDataSourceSuggestions) | **POST** /api/rest/2.0/ai/data-source-suggestions |
| [**getNLInstructions**](AiApi.md#getNLInstructions) | **POST** /api/rest/2.0/ai/instructions/get |
| [**getRelevantQuestions**](AiApi.md#getRelevantQuestions) | **POST** /api/rest/2.0/ai/relevant-questions/ |
| [**queryGetDecomposedQuery**](AiApi.md#queryGetDecomposedQuery) | **POST** /api/rest/2.0/ai/analytical-questions |
| [**sendAgentMessage**](AiApi.md#sendAgentMessage) | **POST** /api/rest/2.0/ai/agent/{conversation_identifier}/converse |
| [**sendAgentMessageStreaming**](AiApi.md#sendAgentMessageStreaming) | **POST** /api/rest/2.0/ai/agent/converse/sse |
| [**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 |


Expand Down Expand Up @@ -120,6 +122,41 @@ Version: 10.13.0.cl or later
| **400** | Operation failed | - |
| **500** | Operation failed | - |

<a id="getNLInstructions"></a>
# **getNLInstructions**
> EurekaGetNLInstructionsResponse getNLInstructions(getNLInstructionsRequest)



Version: 10.15.0.cl or later This API allows users to retrieve existing natural language (NL) instructions for a specific data-model. These instructions guide the AI system in understanding data context and generating more accurate responses when processing natural language queries. #### Usage guidelines To retrieve NL instructions for a data-model, the request must include: - &#x60;data_source_identifier&#x60;: The unique ID or name of the data-model to retrieve NL instructions The API returns a response object with: - &#x60;nl_instructions_info&#x60;: An array of instruction objects, each containing: - &#x60;instructions&#x60;: Array of text instructions for natural language processing - &#x60;scope&#x60;: The scope of the instruction (&#x60;GLOBAL&#x60;). It can be extended to data-model-user scope in future. #### Instructions Scope - **GLOBAL**: Instructions that apply globally across the system on the given data-model (currently only global instructions are supported) &gt; ###### Note: &gt; * To use this API, the user needs atleast view access on the data-model and they must use corresponding org related bearerToken where the data-model exists. &gt; * This endpoint is currently in Beta. Breaking changes may be introduced before the endpoint is made Generally Available. &gt; * Available from version 10.15.0.cl and later. &gt; * This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. &gt; * Use this API to view currently configured instructions before modifying them with &#x60;setNLInstructions&#x60;.

### Parameters

| Name | Type |
|------------- | ------------- |
| **getNLInstructionsRequest** | [**GetNLInstructionsRequest**](GetNLInstructionsRequest.md)

### Return type

[**EurekaGetNLInstructionsResponse**](EurekaGetNLInstructionsResponse.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** | Common successful response | - |
| **201** | Common error response | - |
| **400** | Operation failed | - |
| **500** | Operation failed | - |

<a id="getRelevantQuestions"></a>
# **getRelevantQuestions**
> EurekaGetRelevantQuestionsResponse getRelevantQuestions(getRelevantQuestionsRequest)
Expand Down Expand Up @@ -297,6 +334,41 @@ Version: 10.7.0.cl or later
| **400** | Operation failed | - |
| **500** | Operation failed | - |

<a id="setNLInstructions"></a>
# **setNLInstructions**
> EurekaSetNLInstructionsResponse setNLInstructions(setNLInstructionsRequest)



Version: 10.15.0.cl or later This API allows users to set natural language (NL) instructions for a specific data-model to improve AI-generated answers and query processing. These instructions help guide the AI system to better understand the data context and provide more accurate responses. #### Usage guidelines To set NL instructions for a data-model, the request must include: - &#x60;data_source_identifier&#x60;: The unique ID or name of the data-model for which to set NL instructions - &#x60;nl_instructions_info&#x60;: An array of instruction objects, each containing: - &#x60;instructions&#x60;: Array of text instructions for the LLM - &#x60;scope&#x60;: The scope of the instruction (&#x60;GLOBAL&#x60;). Currently only &#x60;GLOBAL&#x60; is supported. It can be extended to data-model-user scope in future. The API returns a response object with: - &#x60;success&#x60;: Boolean indicating whether the operation was successful #### Instructions Scope - **GLOBAL**: Instructions that apply globally for that data-model across the system &gt; ###### Note: &gt; * To use this API, the user needs either edit access or SPOTTER_COACHING_PRIVILEGE on the data-model and they must use corresponding org related bearerToken where the data-model exists. &gt; * This endpoint is currently in Beta. Breaking changes may be introduced before the endpoint is made Generally Available. &gt; * Available from version 10.15.0.cl and later. &gt; * This endpoint requires Spotter — please contact ThoughtSpot Support to enable Spotter on your cluster. &gt; * Instructions help improve the accuracy and relevance of AI-generated responses for the specified data-model.

### Parameters

| Name | Type |
|------------- | ------------- |
| **setNLInstructionsRequest** | [**SetNLInstructionsRequest**](SetNLInstructionsRequest.md)

### Return type

[**EurekaSetNLInstructionsResponse**](EurekaSetNLInstructionsResponse.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** | Common successful response | - |
| **201** | Common error response | - |
| **400** | Operation failed | - |
| **500** | Operation failed | - |

<a id="singleAnswer"></a>
# **singleAnswer**
> ResponseMessage singleAnswer(singleAnswerRequest)
Expand Down
4 changes: 2 additions & 2 deletions sdks/java/docs/ConnectionConfigurationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ All URIs are relative to *CLUSTER_URL*



Version: 10.12.0.cl or later Creates an additional configuration to an existing connection to a data warehouse. Requires &#x60;DATAMANAGEMENT&#x60; (**Can manage data**) or &#x60;ADMINISTRATION&#x60; (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the &#x60;CAN_CREATE_OR_EDIT_CONNECTIONS&#x60; (**Can create/edit Connections**) privilege is required. #### Usage guidelines * A JSON map of configuration attributes in &#x60;configuration&#x60;. The following example shows the configuration attributes: &#x60;&#x60;&#x60; { \&quot;user\&quot;:\&quot;DEV_USER\&quot;, \&quot;password\&quot;:\&quot;TestConn123\&quot;, \&quot;role\&quot;:\&quot;DEV\&quot;, \&quot;warehouse\&quot;:\&quot;DEV_WH\&quot; } &#x60;&#x60;&#x60; * If the &#x60;policy_type&#x60; is &#x60;PRINCIPALS&#x60;, then &#x60;policy_principals&#x60; is a required field. * If the &#x60;policy_type&#x60; is &#x60;PROCESSES&#x60;, then &#x60;policy_processes&#x60; is a required field. * If the &#x60;policy_type&#x60; is &#x60;NO_POLICY&#x60;, then &#x60;policy_principals&#x60; and &#x60;policy_processes&#x60; are not required fields.
Version: 10.12.0.cl or later Creates an additional configuration to an existing connection to a data warehouse. Requires &#x60;DATAMANAGEMENT&#x60; (**Can manage data**) or &#x60;ADMINISTRATION&#x60; (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the &#x60;CAN_CREATE_OR_EDIT_CONNECTIONS&#x60; (**Can create/edit Connections**) privilege is required. #### Usage guidelines * A JSON map of configuration attributes in &#x60;configuration&#x60;. The following example shows the configuration attributes: &#x60;&#x60;&#x60; { \&quot;user\&quot;:\&quot;DEV_USER\&quot;, \&quot;password\&quot;:\&quot;TestConn123\&quot;, \&quot;role\&quot;:\&quot;DEV\&quot;, \&quot;warehouse\&quot;:\&quot;DEV_WH\&quot; } &#x60;&#x60;&#x60; * If the &#x60;policy_type&#x60; is &#x60;PRINCIPALS&#x60;, then &#x60;policy_principals&#x60; is a required field. * If the &#x60;policy_type&#x60; is &#x60;PROCESSES&#x60;, then &#x60;policy_processes&#x60; is a required field. * If the &#x60;policy_type&#x60; is &#x60;NO_POLICY&#x60;, then &#x60;policy_principals&#x60; and &#x60;policy_processes&#x60; are not required fields. #### Parameterized Connection Support For parameterized connections that use OAuth authentication, only the same_as_parent and policy_process_options attributes are allowed in the API request. These attributes are not applicable to connections that are not parameterized.

### Parameters

Expand Down Expand Up @@ -124,7 +124,7 @@ null (empty response body)



Version: 10.12.0.cl or later Updates a connection configuration object. Requires &#x60;DATAMANAGEMENT&#x60; (**Can manage data**) and edit permissions to the connection object, or &#x60;ADMINISTRATION&#x60; (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the &#x60;CAN_CREATE_OR_EDIT_CONNECTIONS&#x60; (**Can create/edit Connections**) privilege is required. #### Supported operations This API endpoint lets you perform the following operations in a single API request: * Edit the name or description of the configuration * Edit the configuration properties * Edit the &#x60;policy_type&#x60; * Edit the type of authentication * Enable or disable a configuration **NOTE**: When updating a configuration where &#x60;disabled&#x60; is &#x60;true&#x60;, you must reset &#x60;disabled&#x60; to &#x60;true&#x60; in your update request payload. If not explicitly set again, the API will default &#x60;disabled&#x60; to &#x60;false&#x60;.
Version: 10.12.0.cl or later Updates a connection configuration object. Requires &#x60;DATAMANAGEMENT&#x60; (**Can manage data**) and edit permissions to the connection object, or &#x60;ADMINISTRATION&#x60; (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the &#x60;CAN_CREATE_OR_EDIT_CONNECTIONS&#x60; (**Can create/edit Connections**) privilege is required. #### Supported operations This API endpoint lets you perform the following operations in a single API request: * Edit the name or description of the configuration * Edit the configuration properties * Edit the &#x60;policy_type&#x60; * Edit the type of authentication * Enable or disable a configuration #### Parameterized Connection Support For parameterized oauth based connections, only the &#x60;same_as_parent&#x60; and &#x60;policy_process_options&#x60; attributes are allowed. These attributes are not applicable to connections that are not parameterized. **NOTE**: When updating a configuration where &#x60;disabled&#x60; is &#x60;true&#x60;, you must reset &#x60;disabled&#x60; to &#x60;true&#x60; in your update request payload. If not explicitly set again, the API will default &#x60;disabled&#x60; to &#x60;false&#x60;.

### Parameters

Expand Down
20 changes: 0 additions & 20 deletions sdks/java/docs/CreateEmailCustomisationResponse.md

This file was deleted.

1 change: 1 addition & 0 deletions sdks/java/docs/CreateRoleRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
| CAN_ACCESS_ANALYST_STUDIO | &quot;CAN_ACCESS_ANALYST_STUDIO&quot; |
| CAN_MANAGE_ANALYST_STUDIO | &quot;CAN_MANAGE_ANALYST_STUDIO&quot; |
| PREVIEW_DOCUMENT_SEARCH | &quot;PREVIEW_DOCUMENT_SEARCH&quot; |
| CAN_MANAGE_VARIABLES | &quot;CAN_MANAGE_VARIABLES&quot; |
| CAN_MODIFY_FOLDERS | &quot;CAN_MODIFY_FOLDERS&quot; |
| CAN_VIEW_FOLDERS | &quot;CAN_VIEW_FOLDERS&quot; |
| CAN_SETUP_VERSION_CONTROL | &quot;CAN_SETUP_VERSION_CONTROL&quot; |
Expand Down
1 change: 1 addition & 0 deletions sdks/java/docs/CreateUserGroupRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
| CAN_ACCESS_ANALYST_STUDIO | &quot;CAN_ACCESS_ANALYST_STUDIO&quot; |
| CAN_MANAGE_ANALYST_STUDIO | &quot;CAN_MANAGE_ANALYST_STUDIO&quot; |
| CAN_MODIFY_FOLDERS | &quot;CAN_MODIFY_FOLDERS&quot; |
| CAN_MANAGE_VARIABLES | &quot;CAN_MANAGE_VARIABLES&quot; |
| CAN_VIEW_FOLDERS | &quot;CAN_VIEW_FOLDERS&quot; |
| PREVIEW_DOCUMENT_SEARCH | &quot;PREVIEW_DOCUMENT_SEARCH&quot; |
| CAN_SETUP_VERSION_CONTROL | &quot;CAN_SETUP_VERSION_CONTROL&quot; |
Expand Down
1 change: 1 addition & 0 deletions sdks/java/docs/CreateVariableRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
| CONNECTION_PROPERTY | &quot;CONNECTION_PROPERTY&quot; |
| TABLE_MAPPING | &quot;TABLE_MAPPING&quot; |
| CONNECTION_PROPERTY_PER_PRINCIPAL | &quot;CONNECTION_PROPERTY_PER_PRINCIPAL&quot; |
| FORMULA_VARIABLE | &quot;FORMULA_VARIABLE&quot; |



Expand Down
35 changes: 0 additions & 35 deletions sdks/java/docs/DbtConnectionRequest.md

This file was deleted.

18 changes: 0 additions & 18 deletions sdks/java/docs/DbtGenerateSyncTmlRequest.md

This file was deleted.

31 changes: 0 additions & 31 deletions sdks/java/docs/DbtGenerateTmlRequest.md

This file was deleted.

Loading