@thoughtspot/visual-embed-sdk 1.26.6 → 1.26.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/README.md +2 -2
  2. package/cjs/package.json +1 -1
  3. package/cjs/src/auth.d.ts +4 -4
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +16 -9
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/embed/app.d.ts +15 -15
  8. package/cjs/src/embed/app.d.ts.map +1 -1
  9. package/cjs/src/embed/app.js +4 -3
  10. package/cjs/src/embed/app.js.map +1 -1
  11. package/cjs/src/embed/app.spec.js +5 -4
  12. package/cjs/src/embed/app.spec.js.map +1 -1
  13. package/cjs/src/embed/base.d.ts +1 -1
  14. package/cjs/src/embed/base.d.ts.map +1 -1
  15. package/cjs/src/embed/base.js +9 -6
  16. package/cjs/src/embed/base.js.map +1 -1
  17. package/cjs/src/embed/base.spec.js +4 -3
  18. package/cjs/src/embed/base.spec.js.map +1 -1
  19. package/cjs/src/embed/embed.spec.js +2 -1
  20. package/cjs/src/embed/embed.spec.js.map +1 -1
  21. package/cjs/src/embed/embedConfig.d.ts +2 -1
  22. package/cjs/src/embed/embedConfig.d.ts.map +1 -1
  23. package/cjs/src/embed/embedConfig.js +2 -0
  24. package/cjs/src/embed/embedConfig.js.map +1 -1
  25. package/cjs/src/embed/events.spec.js +3 -2
  26. package/cjs/src/embed/events.spec.js.map +1 -1
  27. package/cjs/src/embed/liveboard.d.ts +35 -23
  28. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  29. package/cjs/src/embed/liveboard.js +8 -4
  30. package/cjs/src/embed/liveboard.js.map +1 -1
  31. package/cjs/src/embed/liveboard.spec.js +2 -1
  32. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  33. package/cjs/src/embed/sage.d.ts +48 -30
  34. package/cjs/src/embed/sage.d.ts.map +1 -1
  35. package/cjs/src/embed/sage.js +7 -6
  36. package/cjs/src/embed/sage.js.map +1 -1
  37. package/cjs/src/embed/sage.spec.js +3 -3
  38. package/cjs/src/embed/sage.spec.js.map +1 -1
  39. package/cjs/src/embed/search-bar.d.ts +22 -6
  40. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  41. package/cjs/src/embed/search-bar.js.map +1 -1
  42. package/cjs/src/embed/search.d.ts +35 -16
  43. package/cjs/src/embed/search.d.ts.map +1 -1
  44. package/cjs/src/embed/search.js +10 -6
  45. package/cjs/src/embed/search.js.map +1 -1
  46. package/cjs/src/embed/search.spec.js +10 -0
  47. package/cjs/src/embed/search.spec.js.map +1 -1
  48. package/cjs/src/embed/ts-embed.d.ts +2 -1
  49. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  50. package/cjs/src/embed/ts-embed.js +45 -22
  51. package/cjs/src/embed/ts-embed.js.map +1 -1
  52. package/cjs/src/embed/ts-embed.spec.js +153 -32
  53. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  54. package/cjs/src/index.d.ts +2 -2
  55. package/cjs/src/index.d.ts.map +1 -1
  56. package/cjs/src/index.js +2 -1
  57. package/cjs/src/index.js.map +1 -1
  58. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  59. package/cjs/src/mixpanel-service.js +2 -1
  60. package/cjs/src/mixpanel-service.js.map +1 -1
  61. package/cjs/src/react/index.d.ts +1 -1
  62. package/cjs/src/react/index.d.ts.map +1 -1
  63. package/cjs/src/react/index.js +2 -1
  64. package/cjs/src/react/index.js.map +1 -1
  65. package/cjs/src/react/index.spec.js +2 -2
  66. package/cjs/src/react/index.spec.js.map +1 -1
  67. package/cjs/src/types.d.ts +742 -237
  68. package/cjs/src/types.d.ts.map +1 -1
  69. package/cjs/src/types.js +653 -169
  70. package/cjs/src/types.js.map +1 -1
  71. package/cjs/src/utils/authService/authService.d.ts.map +1 -1
  72. package/cjs/src/utils/authService/authService.js +3 -2
  73. package/cjs/src/utils/authService/authService.js.map +1 -1
  74. package/cjs/src/utils/authService/authService.spec.js +3 -2
  75. package/cjs/src/utils/authService/authService.spec.js.map +1 -1
  76. package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  77. package/cjs/src/utils/authService/tokenizedAuthService.js +2 -1
  78. package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
  79. package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -4
  80. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  81. package/cjs/src/utils/graphql/answerService/answerService.js +2 -4
  82. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  83. package/cjs/src/utils/logger.d.ts +18 -0
  84. package/cjs/src/utils/logger.d.ts.map +1 -0
  85. package/cjs/src/utils/logger.js +80 -0
  86. package/cjs/src/utils/logger.js.map +1 -0
  87. package/cjs/src/utils/logger.spec.d.ts +25 -0
  88. package/cjs/src/utils/logger.spec.d.ts.map +1 -0
  89. package/cjs/src/utils/logger.spec.js +116 -0
  90. package/cjs/src/utils/logger.spec.js.map +1 -0
  91. package/cjs/src/utils/processData.d.ts +6 -0
  92. package/cjs/src/utils/processData.d.ts.map +1 -1
  93. package/cjs/src/utils/processData.js +5 -1
  94. package/cjs/src/utils/processData.js.map +1 -1
  95. package/cjs/src/utils/processTrigger.js +1 -1
  96. package/dist/src/auth.d.ts +4 -4
  97. package/dist/src/auth.d.ts.map +1 -1
  98. package/dist/src/embed/app.d.ts +15 -15
  99. package/dist/src/embed/app.d.ts.map +1 -1
  100. package/dist/src/embed/base.d.ts +1 -1
  101. package/dist/src/embed/base.d.ts.map +1 -1
  102. package/dist/src/embed/embedConfig.d.ts +2 -1
  103. package/dist/src/embed/embedConfig.d.ts.map +1 -1
  104. package/dist/src/embed/liveboard.d.ts +35 -23
  105. package/dist/src/embed/liveboard.d.ts.map +1 -1
  106. package/dist/src/embed/sage.d.ts +48 -30
  107. package/dist/src/embed/sage.d.ts.map +1 -1
  108. package/dist/src/embed/search-bar.d.ts +22 -6
  109. package/dist/src/embed/search-bar.d.ts.map +1 -1
  110. package/dist/src/embed/search.d.ts +35 -16
  111. package/dist/src/embed/search.d.ts.map +1 -1
  112. package/dist/src/embed/ts-embed.d.ts +2 -1
  113. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  114. package/dist/src/index.d.ts +2 -2
  115. package/dist/src/index.d.ts.map +1 -1
  116. package/dist/src/mixpanel-service.d.ts.map +1 -1
  117. package/dist/src/react/index.d.ts +1 -1
  118. package/dist/src/react/index.d.ts.map +1 -1
  119. package/dist/src/types.d.ts +742 -237
  120. package/dist/src/types.d.ts.map +1 -1
  121. package/dist/src/utils/authService/authService.d.ts.map +1 -1
  122. package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  123. package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -4
  124. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  125. package/dist/src/utils/logger.d.ts +18 -0
  126. package/dist/src/utils/logger.d.ts.map +1 -0
  127. package/dist/src/utils/logger.spec.d.ts +25 -0
  128. package/dist/src/utils/logger.spec.d.ts.map +1 -0
  129. package/dist/src/utils/processData.d.ts +6 -0
  130. package/dist/src/utils/processData.d.ts.map +1 -1
  131. package/dist/tsembed-react.es.js +3716 -3107
  132. package/dist/tsembed-react.js +3620 -3012
  133. package/dist/tsembed.es.js +9830 -9212
  134. package/dist/tsembed.js +15079 -14462
  135. package/dist/visual-embed-sdk-react-full.d.ts +923 -332
  136. package/dist/visual-embed-sdk-react.d.ts +923 -332
  137. package/dist/visual-embed-sdk.d.ts +923 -332
  138. package/lib/package.json +1 -1
  139. package/lib/src/auth.d.ts +4 -4
  140. package/lib/src/auth.d.ts.map +1 -1
  141. package/lib/src/auth.js +17 -10
  142. package/lib/src/auth.js.map +1 -1
  143. package/lib/src/embed/app.d.ts +15 -15
  144. package/lib/src/embed/app.d.ts.map +1 -1
  145. package/lib/src/embed/app.js +4 -3
  146. package/lib/src/embed/app.js.map +1 -1
  147. package/lib/src/embed/app.spec.js +5 -4
  148. package/lib/src/embed/app.spec.js.map +1 -1
  149. package/lib/src/embed/base.d.ts +1 -1
  150. package/lib/src/embed/base.d.ts.map +1 -1
  151. package/lib/src/embed/base.js +9 -6
  152. package/lib/src/embed/base.js.map +1 -1
  153. package/lib/src/embed/base.spec.js +5 -4
  154. package/lib/src/embed/base.spec.js.map +1 -1
  155. package/lib/src/embed/embed.spec.js +2 -1
  156. package/lib/src/embed/embed.spec.js.map +1 -1
  157. package/lib/src/embed/embedConfig.d.ts +2 -1
  158. package/lib/src/embed/embedConfig.d.ts.map +1 -1
  159. package/lib/src/embed/embedConfig.js +2 -0
  160. package/lib/src/embed/embedConfig.js.map +1 -1
  161. package/lib/src/embed/events.spec.js +3 -2
  162. package/lib/src/embed/events.spec.js.map +1 -1
  163. package/lib/src/embed/liveboard.d.ts +35 -23
  164. package/lib/src/embed/liveboard.d.ts.map +1 -1
  165. package/lib/src/embed/liveboard.js +8 -4
  166. package/lib/src/embed/liveboard.js.map +1 -1
  167. package/lib/src/embed/liveboard.spec.js +2 -1
  168. package/lib/src/embed/liveboard.spec.js.map +1 -1
  169. package/lib/src/embed/sage.d.ts +48 -30
  170. package/lib/src/embed/sage.d.ts.map +1 -1
  171. package/lib/src/embed/sage.js +7 -6
  172. package/lib/src/embed/sage.js.map +1 -1
  173. package/lib/src/embed/sage.spec.js +3 -3
  174. package/lib/src/embed/sage.spec.js.map +1 -1
  175. package/lib/src/embed/search-bar.d.ts +22 -6
  176. package/lib/src/embed/search-bar.d.ts.map +1 -1
  177. package/lib/src/embed/search-bar.js.map +1 -1
  178. package/lib/src/embed/search.d.ts +35 -16
  179. package/lib/src/embed/search.d.ts.map +1 -1
  180. package/lib/src/embed/search.js +11 -7
  181. package/lib/src/embed/search.js.map +1 -1
  182. package/lib/src/embed/search.spec.js +10 -0
  183. package/lib/src/embed/search.spec.js.map +1 -1
  184. package/lib/src/embed/ts-embed.d.ts +2 -1
  185. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  186. package/lib/src/embed/ts-embed.js +48 -25
  187. package/lib/src/embed/ts-embed.js.map +1 -1
  188. package/lib/src/embed/ts-embed.spec.js +153 -32
  189. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  190. package/lib/src/index.d.ts +2 -2
  191. package/lib/src/index.d.ts.map +1 -1
  192. package/lib/src/index.js +2 -2
  193. package/lib/src/index.js.map +1 -1
  194. package/lib/src/mixpanel-service.d.ts.map +1 -1
  195. package/lib/src/mixpanel-service.js +2 -1
  196. package/lib/src/mixpanel-service.js.map +1 -1
  197. package/lib/src/react/index.d.ts +1 -1
  198. package/lib/src/react/index.d.ts.map +1 -1
  199. package/lib/src/react/index.js +1 -1
  200. package/lib/src/react/index.js.map +1 -1
  201. package/lib/src/react/index.spec.js +2 -2
  202. package/lib/src/react/index.spec.js.map +1 -1
  203. package/lib/src/types.d.ts +742 -237
  204. package/lib/src/types.d.ts.map +1 -1
  205. package/lib/src/types.js +652 -168
  206. package/lib/src/types.js.map +1 -1
  207. package/lib/src/utils/authService/authService.d.ts.map +1 -1
  208. package/lib/src/utils/authService/authService.js +3 -2
  209. package/lib/src/utils/authService/authService.js.map +1 -1
  210. package/lib/src/utils/authService/authService.spec.js +4 -3
  211. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  212. package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  213. package/lib/src/utils/authService/tokenizedAuthService.js +2 -1
  214. package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
  215. package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -4
  216. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  217. package/lib/src/utils/graphql/answerService/answerService.js +2 -4
  218. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  219. package/lib/src/utils/logger.d.ts +18 -0
  220. package/lib/src/utils/logger.d.ts.map +1 -0
  221. package/lib/src/utils/logger.js +74 -0
  222. package/lib/src/utils/logger.js.map +1 -0
  223. package/lib/src/utils/logger.spec.d.ts +25 -0
  224. package/lib/src/utils/logger.spec.d.ts.map +1 -0
  225. package/lib/src/utils/logger.spec.js +93 -0
  226. package/lib/src/utils/logger.spec.js.map +1 -0
  227. package/lib/src/utils/processData.d.ts +6 -0
  228. package/lib/src/utils/processData.d.ts.map +1 -1
  229. package/lib/src/utils/processData.js +4 -1
  230. package/lib/src/utils/processData.js.map +1 -1
  231. package/lib/src/utils/processTrigger.js +1 -1
  232. package/lib/src/visual-embed-sdk.d.ts +927 -336
  233. package/package.json +1 -1
  234. package/src/auth.ts +20 -13
  235. package/src/embed/app.spec.ts +5 -4
  236. package/src/embed/app.ts +23 -22
  237. package/src/embed/base.spec.ts +6 -5
  238. package/src/embed/base.ts +18 -11
  239. package/src/embed/embed.spec.ts +2 -1
  240. package/src/embed/embedConfig.ts +2 -0
  241. package/src/embed/events.spec.ts +3 -2
  242. package/src/embed/liveboard.spec.ts +2 -1
  243. package/src/embed/liveboard.ts +43 -27
  244. package/src/embed/sage.spec.ts +3 -3
  245. package/src/embed/sage.ts +54 -36
  246. package/src/embed/search-bar.tsx +22 -6
  247. package/src/embed/search.spec.ts +13 -0
  248. package/src/embed/search.ts +46 -21
  249. package/src/embed/ts-embed.spec.ts +182 -43
  250. package/src/embed/ts-embed.ts +78 -59
  251. package/src/index.ts +2 -0
  252. package/src/mixpanel-service.ts +2 -1
  253. package/src/react/index.spec.tsx +2 -2
  254. package/src/react/index.tsx +1 -0
  255. package/src/types.ts +753 -245
  256. package/src/utils/authService/authService.spec.ts +7 -6
  257. package/src/utils/authService/authService.ts +4 -2
  258. package/src/utils/authService/tokenizedAuthService.ts +2 -1
  259. package/src/utils/graphql/answerService/answerService.ts +2 -4
  260. package/src/utils/logger.spec.ts +108 -0
  261. package/src/utils/logger.ts +88 -0
  262. package/src/utils/processData.ts +4 -1
  263. package/src/utils/processTrigger.ts +1 -1
@@ -18,12 +18,12 @@ declare module '@thoughtspot/visual-embed-sdk' {
18
18
  import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
19
19
  import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
20
20
  import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, getSessionInfo } from '@thoughtspot/visual-embed-sdk/auth';
21
- import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter } from '@thoughtspot/visual-embed-sdk/types';
21
+ import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel } from '@thoughtspot/visual-embed-sdk/types';
22
22
  import { CustomCssVariables } from '@thoughtspot/visual-embed-sdk/css-variables';
23
23
  import { SageEmbed, SageViewConfig } from '@thoughtspot/visual-embed-sdk/embed/sage';
24
24
  import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
25
25
  import { getEmbedConfig } from '@thoughtspot/visual-embed-sdk/embed/embedConfig';
26
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, };
26
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, };
27
27
  }
28
28
 
29
29
  declare module '@thoughtspot/visual-embed-sdk/embed/app' {
@@ -79,43 +79,43 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
79
79
  */
80
80
  export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
81
81
  /**
82
- * If true, the main navigation bar within the ThoughtSpot app
82
+ * If true, the top navigation bar within the ThoughtSpot app
83
83
  * is displayed. By default, the navigation bar is hidden.
84
- * This flag also control the homepage left nav-bar.
84
+ * This flag also controls the homepage left navigation bar.
85
85
  */
86
86
  showPrimaryNavbar?: boolean;
87
87
  /**
88
- * Flag to control Homepage Left Nav Bar
89
- * If showPrimaryNavbar is true, ie navigation bar(Global nav-bar) and Homepage left
90
- * nav-bar is visible, this flag will only hide the homepage left nav.
91
- * Precedence of showPrimaryNavbar flag > hideHomepageLeftNav flag.
88
+ * Control the visibility of the left navigation bar on the Homepage.
89
+ * If showPrimaryNavbar is true, that is, if the Global and Homepage
90
+ * nav-bars are visible, this flag will only hide the homepage left nav-bar.
91
+ * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
92
92
  *
93
93
  * @default false
94
94
  * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
95
95
  */
96
96
  hideHomepageLeftNav?: boolean;
97
97
  /**
98
- * If true, help and profile buttons will hide on NavBar. By default,
99
- * they are shown.
98
+ * Control the visibility of the help (?) and profile buttons on the
99
+ * Global nav-bar. By default, these buttons are visible on the nav-bar.
100
100
  */
101
101
  disableProfileAndHelp?: boolean;
102
102
  /**
103
- * If true, application switcher button will hide on NavBar. By default,
104
- * they are shown.
103
+ * Control the visibility of the application switcher button on the nav-bar.
104
+ * By default, the application switcher is shown.
105
105
  */
106
106
  hideApplicationSwitcher?: boolean;
107
107
  /**
108
- * If true, org switcher button will hide on NavBar. By default,
109
- * they are shown.
108
+ * Control the visibility of the Org switcher button on the nav-bar.
109
+ * By default, the Org switcher button is shown.
110
110
  */
111
111
  hideOrgSwitcher?: boolean;
112
112
  /**
113
- * A URL path within the app that is to be embedded.
113
+ * A URL path to the embedded application page
114
114
  * If both path and pageId attributes are defined, the path definition
115
115
  * takes precedence. This is the path post the `#/` in the URL of the standalone
116
116
  * ThoughtSpot app. Use this to open the embedded view to a specific path.
117
117
  *
118
- * For eg, if you want the component to open to a specific liveboard
118
+ * For eg, if you want the component to open to a specific Liveboard
119
119
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
120
120
  *
121
121
  * @example
@@ -226,6 +226,12 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
226
226
  * embedded Liveboard or visualization.
227
227
  */
228
228
  protected getEmbedParams(): string;
229
+ /**
230
+ * Constructs the URL of the ThoughtSpot app page to be rendered.
231
+ *
232
+ * @param pageId The ID of the page to be embedded.
233
+ */
234
+ getIFrameSrc(): string;
229
235
  /**
230
236
  * Set the iframe height as per the computed height received
231
237
  * from the ThoughtSpot app.
@@ -257,8 +263,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
257
263
  }
258
264
 
259
265
  declare module '@thoughtspot/visual-embed-sdk/embed/base' {
266
+ import { AuthEventEmitter, notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout } from '@thoughtspot/visual-embed-sdk/auth';
260
267
  import { EmbedConfig, PrefetchFeatures } from '@thoughtspot/visual-embed-sdk/types';
261
- import { notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
262
268
  export interface executeTMLInput {
263
269
  metadata_tmls: string[];
264
270
  import_policy?: 'PARTIAL' | 'ALL_OR_NONE' | 'VALIDATE_ONLY';
@@ -425,8 +431,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
425
431
  */
426
432
  fullHeight?: boolean;
427
433
  /**
428
- * This is the minimum height(in pixels) for a full height Liveboard.
429
- * Setting this height helps resolves issues with empty Liveboards and
434
+ * This is the minimum height(in pixels) for a full-height Liveboard.
435
+ * Setting this height helps resolve issues with empty Liveboards and
430
436
  * other screens navigable from a Liveboard.
431
437
  *
432
438
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
@@ -439,7 +445,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
439
445
  enableVizTransformations?: boolean;
440
446
  /**
441
447
  * The Liveboard to display in the embedded view.
442
- * Use either of liveboardId or pinboardId to reference the Liveboard to embed.
448
+ * Use either liveboardId or pinboardId to reference the Liveboard to embed.
443
449
  *
444
450
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
445
451
  */
@@ -458,79 +464,91 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
458
464
  * If set to true, all filter chips from a
459
465
  * Liveboard page will be read-only (no X buttons)
460
466
  *
461
- * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
467
+ * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
462
468
  */
463
469
  preventLiveboardFilterRemoval?: boolean;
464
470
  /**
465
- * Array of viz ids which should be visible when the liveboard
466
- * first renders. This can be changed by triggering the "SetVisibleVizs"
471
+ * Array of visualization IDs which should be visible when the Liveboard
472
+ * renders. This can be changed by triggering the `SetVisibleVizs`
467
473
  * event.
468
474
  *
469
475
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
470
476
  */
471
477
  visibleVizs?: string[];
472
478
  /**
473
- * To support backward compatibilty
479
+ * To support backward compatibility
474
480
  *
475
481
  * @hidden
476
482
  */
477
483
  preventPinboardFilterRemoval?: boolean;
478
484
  /**
479
- * Render embedded Liveboards and visualizations in the new Liveboard experience mode
485
+ * Render embedded Liveboards and visualizations in the
486
+ * new Liveboard experience mode.
480
487
  *
481
488
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
482
489
  */
483
490
  liveboardV2?: boolean;
484
491
  /**
485
- * Tab ID of the Liveboard that is supposed to be active
492
+ * Set a Liveboard tab as an active tab.
493
+ * Specify the tab ID.
486
494
  *
487
495
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
488
496
  */
489
497
  activeTabId?: string;
490
498
  /**
491
- * Hide tab Panel of embedded LB
499
+ * Show or hide the tab panel of the embedded Liveboard.
492
500
  *
493
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
501
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
494
502
  */
495
503
  hideTabPanel?: boolean;
496
504
  /**
497
- * Show or hide Liveboard header
505
+ * Show or hide the Liveboard header.
498
506
  *
499
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
507
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
500
508
  * @default false
501
509
  */
502
510
  hideLiveboardHeader?: boolean;
503
511
  /**
504
- * Show or hide Liveboard title
512
+ * Show or hide the Liveboard title.
505
513
  *
506
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
514
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
507
515
  * @default false
508
516
  */
509
517
  showLiveboardTitle?: boolean;
510
518
  /**
511
- * Show or hide Liveboard description
519
+ * Show or hide the Liveboard description.
512
520
  *
513
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
521
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
514
522
  * @default false
515
523
  */
516
524
  showLiveboardDescription?: boolean;
517
525
  /**
518
- * Boolean for sticky Liveboard header.
526
+ * Control the position and visibility of
527
+ * the Liveboard header as the users scroll down the
528
+ * embedded Liveboard page.
519
529
  *
520
530
  * @example
521
531
  * ```js
522
532
  * const embed = new LiveboardEmbed('#embed', {
523
- * ... // other liveboard view config
533
+ * ... // other Liveboard view config
524
534
  * isLiveboardHeaderSticky: true,
525
535
  * });
526
536
  * ```
527
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
537
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
528
538
  */
529
539
  isLiveboardHeaderSticky?: boolean;
540
+ /**
541
+ * enable or disable ask sage
542
+ *
543
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
544
+ * @default true
545
+ */
546
+ enableAskSage?: boolean;
530
547
  }
531
548
  /**
532
- * Embed a ThoughtSpot Liveboard or a Thoughtspot visualization. When rendered it already
533
- * waits for the authentication to complete, so no need to wait for AuthStatus.SUCCESS.
549
+ * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
550
+ * waits for the authentication to complete, so you need not wait for
551
+ * `AuthStatus.SUCCESS`.
534
552
  *
535
553
  * @example
536
554
  * ```js
@@ -585,21 +603,22 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
585
603
  * @summary Search embed
586
604
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
587
605
  */
588
- import { DOMSelector, Action, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
606
+ import { Action, DOMSelector, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
589
607
  import { TsEmbed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
590
608
  /**
591
- * Configuration for search options
609
+ * Configuration for search options.
610
+ *
592
611
  */
593
612
  export interface SearchOptions {
594
613
  /**
595
- * The tml string to load the answer
614
+ * Search tokens to pass in the query.
596
615
  */
597
616
  searchTokenString: string;
598
617
  /**
599
- * Boolean to determine if the search should be executed or not.
600
- * if it is executed, put the focus on the results.
601
- * if it’s not executed, put the focus in the search bar - at the end of
602
- * the tokens
618
+ * Boolean to define if the search should be executed or not.
619
+ * If it is executed, the focus is placed on the results.
620
+ * If it’s not executed, the focus is placed at the end of
621
+ * the token string in the search bar.
603
622
  */
604
623
  executeSearch?: boolean;
605
624
  }
@@ -615,11 +634,11 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
615
634
  */
616
635
  collapseDataSources?: boolean;
617
636
  /**
618
- * If set to true, hides the data sources panel.
637
+ * Show or hide the data sources panel.
619
638
  */
620
639
  hideDataSources?: boolean;
621
640
  /**
622
- * If set to true, hides the charts and tables in search answers.
641
+ * Show or hide the charts and tables in search answers.
623
642
  * This attribute can be used to create a custom visualization
624
643
  * using raw answer data.
625
644
  */
@@ -641,9 +660,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
641
660
  forceTable?: boolean;
642
661
  /**
643
662
  * The array of data source GUIDs to set on load.
644
- * Only a single dataSource supported currently.
663
+ * Only a single data source is supported currently.
645
664
  *
646
- * @deprecated Use dataSource instead
665
+ * @deprecated Use `dataSource` instead.
647
666
  */
648
667
  dataSources?: string[];
649
668
  /**
@@ -655,11 +674,29 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
655
674
  /**
656
675
  * The initial search query to load the answer with.
657
676
  *
658
- * @deprecated Use {@link searchOptions} instead
677
+ * @deprecated
678
+ *
679
+ * Use {@link searchOptions} instead.
659
680
  */
660
681
  searchQuery?: string;
661
682
  /**
662
- * Configuration for search options
683
+ * Configuration for search options.
684
+ * Includes the following properties:
685
+ *
686
+ * `searchTokenString`: Search tokens to pass in the query.
687
+ *
688
+ * `executeSearch`: Boolean to define if the search should be executed or not.
689
+ * If it is executed, the focus is placed on the results.
690
+ * If it’s not executed, the focus is placed at the end of
691
+ * the token string in the search bar.
692
+ *
693
+ * @example
694
+ * ```js
695
+ * searchOptions: {
696
+ * searchTokenString: '[quantity purchased] [region]',
697
+ * executeSearch: true,
698
+ * }
699
+ * ```
663
700
  */
664
701
  searchOptions?: SearchOptions;
665
702
  /**
@@ -667,10 +704,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
667
704
  */
668
705
  answerId?: string;
669
706
  /**
670
- * If set to true, search page will render without the Search Bar
707
+ * If set to true, the search page will render without the Search Bar
671
708
  * The chart/table should still be visible.
672
709
  *
673
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
710
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
674
711
  */
675
712
  hideSearchBar?: boolean;
676
713
  /**
@@ -700,6 +737,14 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
700
737
  protected viewConfig: SearchViewConfig;
701
738
  constructor(domSelector: DOMSelector, viewConfig: SearchViewConfig);
702
739
  protected getEmbedParams(): string;
740
+ /**
741
+ * Construct the URL of the embedded ThoughtSpot search to be
742
+ * loaded in the iframe
743
+ *
744
+ * @param answerId The GUID of a saved answer
745
+ * @param dataSources A list of data source GUIDs
746
+ */
747
+ getIFrameSrc(): string;
703
748
  /**
704
749
  * Render the embedded ThoughtSpot search
705
750
  */
@@ -717,25 +762,41 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
717
762
  export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
718
763
  /**
719
764
  * The array of data source GUIDs to set on load.
720
- * Only a single dataSource supported currently.
765
+ * Only a single data source is supported currently.
721
766
  *
722
- * @deprecated Use dataSource instead
767
+ * @deprecated Use `dataSource` instead
723
768
  */
724
769
  dataSources?: string[];
725
770
  /**
726
771
  * The array of data source GUIDs to set on load.
727
772
  *
728
- * @version: SDK: 1.19.0
773
+ * @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
729
774
  */
730
775
  dataSource?: string;
731
776
  /**
732
- * Flag to set if last selected dataSource should be used
777
+ * Boolean to define if the last selected data source should be used
733
778
  *
734
- * @version: SDK: 1.24.0
779
+ * @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
735
780
  */
736
781
  useLastSelectedSources?: boolean;
737
782
  /**
738
- * Configuration for search options
783
+ * Configuration for search options.
784
+ * Includes the following properties:
785
+ *
786
+ * `searchTokenString`: Search tokens to pass in the query.
787
+ *
788
+ * `executeSearch`: Boolean to define if the search should be executed or not.
789
+ * If it is executed, the focus is placed on the results.
790
+ * If it’s not executed, the focus is placed at the end of
791
+ * the token string in the search bar.
792
+ *
793
+ * @example
794
+ * ```js
795
+ * searchOptions: {
796
+ * searchTokenString: '[quantity purchased] [region]',
797
+ * executeSearch: true,
798
+ * }
799
+ * ```
739
800
  */
740
801
  searchOptions?: SearchOptions;
741
802
  }
@@ -807,8 +868,8 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
807
868
  */
808
869
  LOGOUT = "LOGOUT",
809
870
  /**
810
- * Emitted when inPopup: true in the SAMLRedirect flow.
811
- * And, we are waiting for popup to be triggered either programatically
871
+ * Emitted when inPopup is true in the SAMLRedirect flow and the
872
+ * popup is waiting to be triggered either programmatically
812
873
  * or by the trigger button.
813
874
  *
814
875
  * @version SDK: 1.19.0
@@ -853,8 +914,8 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
853
914
  */
854
915
  export enum AuthEvent {
855
916
  /**
856
- * Manually trigger the SSO popup. This is useful with
857
- * authStatus: SAMLRedirect/OIDCRedicre and inPopup: true
917
+ * Manually trigger the SSO popup. This is useful when
918
+ * authStatus is SAMLRedirect/OIDCRedirect and inPopup is set to true
858
919
  */
859
920
  TRIGGER_SSO_POPUP = "TRIGGER_SSO_POPUP"
860
921
  }
@@ -967,10 +1028,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
967
1028
  */
968
1029
  None = "None",
969
1030
  /**
970
- * Passthrough SSO to the embedded App within the iframe. Requires least
1031
+ * Passthrough SSO to the embedded application within the iframe. Requires least
971
1032
  * configuration, but may not be supported by all IDPs. This will behave like `None`
972
1033
  * if SSO is not configured on ThoughtSpot.
973
1034
  *
1035
+ * To use this:
1036
+ * Your SAML or OpenID provider must allow iframe redirects.
1037
+ * For example, if you are using Okta as IdP, you can enable iframe embedding.
1038
+ *
974
1039
  * @example
975
1040
  * ```js
976
1041
  * init({
@@ -978,12 +1043,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
978
1043
  * authType: AuthType.EmbeddedSSO,
979
1044
  * });
980
1045
  * ```
981
- * Set authentication type as Embedded SSO.
982
- *
983
- * To use this:
984
- * Your SAML or OpenID provider must allow iframe redirects.
985
- * eg. If you are using okta as IdP, you can enable iFrame embedding.
986
- * @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
1046
+ * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
987
1047
  */
988
1048
  EmbeddedSSO = "EmbeddedSSO",
989
1049
  /**
@@ -1002,10 +1062,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1002
1062
  SAML = "SSO_SAML",
1003
1063
  /**
1004
1064
  * SSO using SAML
1005
- * Will make the host application redirect to the SAML Idp. Use this
1006
- * when the idp does not allow itself to be embedded.
1065
+ * Makes the host application redirect to the SAML IdP. Use this
1066
+ * if your IdP does not allow itself to be embedded.
1007
1067
  *
1008
- * This redirects the host application to the SAML Idp. The host application
1068
+ * This redirects the host application to the SAML IdP. The host application
1009
1069
  * will be redirected back to the ThoughtSpot app after authentication.
1010
1070
  *
1011
1071
  * @example
@@ -1016,7 +1076,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1016
1076
  * });
1017
1077
  * ```
1018
1078
  *
1019
- * This opens the SAML Idp in a popup window. The popup is triggered
1079
+ * This opens the SAML IdP in a popup window. The popup is triggered
1020
1080
  * when the user clicks the trigger button. The popup window will be
1021
1081
  * closed automatically after authentication.
1022
1082
  * @example
@@ -1030,8 +1090,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1030
1090
  * });
1031
1091
  * ```
1032
1092
  *
1033
- * Can also use event to trigger the popup flow. Works the same
1034
- * as above example.
1093
+ * Can also use the event to trigger the popup flow. Works the same
1094
+ * as the above example.
1035
1095
  * @example
1036
1096
  * ```js
1037
1097
  * const authEE = init({
@@ -1055,7 +1115,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1055
1115
  OIDC = "SSO_OIDC",
1056
1116
  /**
1057
1117
  * SSO using OIDC
1058
- * Will make the host application redirect to the OIDC Idp.
1118
+ * Will make the host application redirect to the OIDC IdP.
1059
1119
  * See code samples in {@link SAMLRedirect}.
1060
1120
  */
1061
1121
  OIDCRedirect = "SSO_OIDC",
@@ -1067,8 +1127,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1067
1127
  */
1068
1128
  AuthServer = "AuthServer",
1069
1129
  /**
1070
- * Trusted authentication server, Use your own authentication server
1071
- * which returns a bearer token, generated using the secret_key obtained
1130
+ * Trusted authentication server. Use your own authentication server
1131
+ * which returns a bearer token, generated using the `secret_key` obtained
1072
1132
  * from ThoughtSpot.
1073
1133
  *
1074
1134
  * @example
@@ -1085,11 +1145,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1085
1145
  */
1086
1146
  TrustedAuthToken = "AuthServer",
1087
1147
  /**
1088
- * Trusted authentication server Cookieless, Use you own authentication
1089
- * server which returns a bearer token, generated using the secret_key
1148
+ * Trusted authentication server Cookieless, Use your own authentication
1149
+ * server which returns a bearer token, generated using the `secret_key`
1090
1150
  * obtained from ThoughtSpot. This uses a cookieless authentication
1091
- * approach, recommended to by pass third-party cookie-blocking restriction
1092
- * implemented by some browsers
1151
+ * approach, recommended to bypass the third-party cookie-blocking restriction
1152
+ * implemented by some browsers.
1093
1153
  *
1094
1154
  * @example
1095
1155
  * ```js
@@ -1102,7 +1162,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1102
1162
  * .then((data) => data.token);
1103
1163
  * }
1104
1164
  * ```
1105
- * @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1.sw
1165
+ * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1106
1166
  */
1107
1167
  TrustedAuthTokenCookieless = "AuthServerCookieless",
1108
1168
  /**
@@ -1224,13 +1284,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1224
1284
  * The ThoughtSpot cluster hostname or IP address.
1225
1285
  */
1226
1286
  thoughtSpotHost: string;
1287
+ /**
1288
+ * If true, all the iframe links will have /v2 added automatically.
1289
+ * If false, all the iframe links will have /v1 added automatically.
1290
+ * If undefined, nothing will be added
1291
+ */
1292
+ enableReactShell?: boolean | undefined;
1227
1293
  /**
1228
1294
  * The authentication mechanism to use.
1229
1295
  */
1230
1296
  authType: AuthType;
1231
1297
  /**
1232
1298
  * [AuthServer] The trusted authentication endpoint to use to get the
1233
- * authentication token. A GET request is made to the
1299
+ * authentication token. A `GET` request is made to the
1234
1300
  * authentication API endpoint, which returns the token
1235
1301
  * as a plaintext response. For trusted authentication,
1236
1302
  * the `authEndpoint` or `getAuthToken` attribute is required.
@@ -1243,8 +1309,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1243
1309
  * attribute is required.
1244
1310
  *
1245
1311
  * It is advisable to fetch a new token inside this method and not
1246
- * reuse and older issued token, as because when auth expires this is
1247
- * called again and if it is called with an older token the authentication
1312
+ * reuse the old issued token. When auth expires this method is
1313
+ * called again and if it is called with an older token, the authentication
1248
1314
  * will not succeed.
1249
1315
  */
1250
1316
  getAuthToken?: () => Promise<string>;
@@ -1254,7 +1320,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1254
1320
  */
1255
1321
  username?: string;
1256
1322
  /**
1257
- * [Basic] The ThoughtSpot login password corresponding to the user name
1323
+ * [Basic] The ThoughtSpot login password corresponding to the username
1258
1324
  *
1259
1325
  * Warning: This feature is primarily intended for developer testing. It is
1260
1326
  * strongly advised not to use this authentication method in production.
@@ -1262,7 +1328,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1262
1328
  password?: string;
1263
1329
  /**
1264
1330
  * [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
1265
- * open the SAML auth flow in a popup, instead of redirecting browser in
1331
+ * open the SAML auth flow in a popup, instead of redirecting the browser in
1266
1332
  * place.
1267
1333
  *
1268
1334
  * @default false
@@ -1271,91 +1337,93 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1271
1337
  noRedirect?: boolean;
1272
1338
  /**
1273
1339
  * [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
1274
- * the SAML auth flow in a popup, instead of redirecting browser in place.
1340
+ * the SAML auth flow in a popup, instead of redirecting the browser in place.
1275
1341
  *
1276
- * Need to use this with authTriggerContainer. Or manually trigger
1277
- * the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
1342
+ * Need to use this with `authTriggerContainer`. Or manually trigger
1343
+ * the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
1278
1344
  *
1279
1345
  * @default false
1280
1346
  * @version SDK: 1.18.0
1281
1347
  */
1282
1348
  inPopup?: boolean;
1283
1349
  /**
1284
- * [SSO] For SSO Authentication, one can supply an optional path param,
1285
- * this will be the path on the host origin where the SAML flow will be
1350
+ * [SSO] For SSO Authentication, one can supply an optional path param;
1351
+ * This will be the path on the host origin where the SAML flow will be
1286
1352
  * terminated.
1287
1353
  *
1288
1354
  * Eg: "/dashboard", "#/foo" [Do not include the host]
1289
1355
  *
1290
- * @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
1356
+ * @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
1291
1357
  */
1292
1358
  redirectPath?: string;
1293
1359
  /** @internal */
1294
1360
  basepath?: string;
1295
1361
  /**
1296
- * Should we encode URL Query Params using base64 encoding which thoughtspot
1297
- * will generate for embedding. This provides additional security to
1298
- * thoughtspot clusters against Cross site scripting attacks.
1362
+ * Boolean to define if the query parameters in the ThoughtSpot URL
1363
+ * should be encoded in base64. This provides additional security to
1364
+ * Thoughtspot clusters against cross-site scripting attacks.
1299
1365
  *
1300
1366
  * @default false
1301
1367
  */
1302
1368
  shouldEncodeUrlQueryParams?: boolean;
1303
1369
  /**
1304
- * Suppress cookie access alert when third party cookies are blocked by the
1305
- * user's browser. Third party cookie blocking is the default behaviour on
1306
- * Safari and opt-in for Firefox/Chrome. If you set this to `true`, you are
1307
- * encouraged to handle `noCookieAccess` event, to show your own treatment
1370
+ * Suppress cookie access alert when third-party cookies are blocked by the
1371
+ * user's browser. Third-party cookie blocking is the default behaviour on
1372
+ * some web browsers like Safari. If you set this attribute to `true`,
1373
+ * you are encouraged to handle `noCookieAccess` event, to show your own treatment
1308
1374
  * in this case.
1309
1375
  *
1310
1376
  * @default false
1311
1377
  */
1312
1378
  suppressNoCookieAccessAlert?: boolean;
1313
1379
  /**
1314
- * Ignore cookie access alert when third party cookies are blocked by the
1380
+ * Ignore the cookie access alert when third-party cookies are blocked by the
1315
1381
  * user's browser. If you set this to `true`, the embedded iframe behaviour
1316
- * persist even in case of non logged in user.
1382
+ * persists even in the case of a non-logged-in user.
1317
1383
  *
1318
1384
  * @default false
1319
1385
  */
1320
1386
  ignoreNoCookieAccess?: boolean;
1321
1387
  /**
1322
- * Re-login when session expires with the previous login options
1388
+ * Re-login a user with the previous login options
1389
+ * when a user session expires.
1323
1390
  *
1324
1391
  * @default false
1325
1392
  */
1326
1393
  autoLogin?: boolean;
1327
1394
  /**
1328
1395
  * Disable redirection to the login page when the embedded session expires
1329
- * This flag is typically used alongside the combination of auth modes such as {@link
1330
- * AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
1396
+ * This flag is typically used alongside the combination of authentication modes such
1397
+ * as {@link AuthType.AuthServer} and auto-login behavior {@link
1398
+ * EmbedConfig.autoLogin}
1331
1399
  *
1332
1400
  * @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1333
1401
  * @default false
1334
1402
  */
1335
1403
  disableLoginRedirect?: boolean;
1336
1404
  /**
1337
- * This message is displayed on the embed view when the login fails.
1405
+ * This message is displayed in the embedded view when a user login fails.
1338
1406
  *
1339
1407
  * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
1340
1408
  */
1341
1409
  loginFailedMessage?: string;
1342
1410
  /**
1343
- * Calls the prefetch method internally when set to true
1411
+ * Calls the prefetch method internally when set to `true`
1344
1412
  *
1345
1413
  * @default false
1346
1414
  */
1347
1415
  callPrefetch?: boolean;
1348
1416
  /**
1349
- * When there are multiple embeds, queue the render of embed to start
1350
- * after the previous embed's render is complete. This helps in the load
1351
- * performance by decreasing the load on the browser.
1417
+ * When there are multiple objects embedded, queue the rendering of embedded objects
1418
+ * to start after the previous embed's render is complete. This helps improve
1419
+ * performance by decreasing the load on the browser.
1352
1420
  *
1353
1421
  * @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1354
1422
  * @default false
1355
1423
  */
1356
1424
  queueMultiRenders?: boolean;
1357
1425
  /**
1358
- * Dynamic CSS Url to be injected in the loaded application.
1426
+ * Dynamic CSS URL to be injected in the loaded application.
1359
1427
  * You would also need to set `style-src` in the CSP settings.
1360
1428
  *
1361
1429
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1363,9 +1431,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1363
1431
  */
1364
1432
  customCssUrl?: string;
1365
1433
  /**
1366
- * [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
1434
+ * [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
1367
1435
  * additional call. This is slower and should be avoided. Listen to the
1368
- * NO_COOKIE_ACCESS event to handle the situation.
1436
+ * `NO_COOKIE_ACCESS` event to handle the situation.
1369
1437
  *
1370
1438
  * This is slightly slower than letting the browser handle the cookie check, as it
1371
1439
  * involves an extra network call.
@@ -1374,26 +1442,26 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1374
1442
  */
1375
1443
  detectCookieAccessSlow?: boolean;
1376
1444
  /**
1377
- * Hide beta alert warning message for SearchEmbed.
1445
+ * Hide the `beta` alert warning message for SearchEmbed.
1378
1446
  *
1379
1447
  * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
1380
1448
  */
1381
1449
  suppressSearchEmbedBetaWarning?: boolean;
1382
1450
  /**
1383
- * Hide beta alert warning message for SageEmbed.
1451
+ * Hide `beta` alert warning message for SageEmbed.
1384
1452
  *
1385
1453
  */
1386
1454
  suppressSageEmbedBetaWarning?: boolean;
1387
1455
  /**
1388
1456
  * Custom style params for embed Config.
1389
1457
  *
1390
- * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
1458
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1391
1459
  */
1392
1460
  customizations?: CustomisationsInterface;
1393
1461
  /**
1394
- * For inPopup SAMLRedirect or OIDCRedirect Auth, we need a button which the user
1395
- * click to trigger the flow. This is the containing element
1396
- * for that button.
1462
+ * For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
1463
+ * button that the user can click to trigger the flow.
1464
+ * This attribute sets a containing element for that button.
1397
1465
  *
1398
1466
  * @example
1399
1467
  * ```js
@@ -1403,11 +1471,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1403
1471
  * authTriggerContainer: '#auth-trigger-container'
1404
1472
  * })
1405
1473
  * ```
1406
- * @version SDK: 1.17.0 | ThoughtSpot: *
1474
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1407
1475
  */
1408
1476
  authTriggerContainer?: string | HTMLElement;
1409
1477
  /**
1410
- * Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
1478
+ * Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
1411
1479
  * SAML popup. This is useful when you want to trigger the popup on a custom user
1412
1480
  * action.
1413
1481
  *
@@ -1415,20 +1483,22 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1415
1483
  useEventForSAMLPopup?: boolean;
1416
1484
  /**
1417
1485
  * Text to show in the button which triggers the popup auth flow.
1418
- * Default: "Authorize".
1486
+ * Default: `Authorize`.
1419
1487
  *
1420
- * @version SDK: 1.17.0 | ThoughtSpot: *
1488
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1421
1489
  */
1422
1490
  authTriggerText?: string;
1423
1491
  /**
1424
- * Disable Full App access of Embedded app outside of the iFrame.
1492
+ * Prevent users from accessing the full application or ThoughtSpot application pages
1493
+ * access to the embedded application users
1494
+ * outside of the iframe.
1425
1495
  *
1426
1496
  * @default true
1427
1497
  * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1428
1498
  */
1429
1499
  blockNonEmbedFullAppAccess?: boolean;
1430
1500
  /**
1431
- * Host config incase embedded app is inside TS app itself
1501
+ * Host config in case embedded app is inside TS app itself
1432
1502
  *
1433
1503
  * @hidden
1434
1504
  */
@@ -1450,21 +1520,35 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1450
1520
  * @version SDK: 1.26.2 | ThoughtSpot: *
1451
1521
  */
1452
1522
  suppressErrorAlerts?: boolean;
1523
+ /**
1524
+ * Log level for the SDK.
1525
+ *
1526
+ * @default LogLevel.ERROR
1527
+ * @example
1528
+ * ```js
1529
+ * init({
1530
+ * ...embedConfig,
1531
+ * logLevel: LogLevel.SILENT
1532
+ * })
1533
+ * ```
1534
+ * @version SDK: 1.26.5 | ThoughtSpot: 9.10.0.cl
1535
+ */
1536
+ logLevel?: LogLevel;
1453
1537
  }
1454
1538
  export interface LayoutConfig {
1455
1539
  }
1456
1540
  /**
1457
- * Embedded iFrame configuration
1541
+ * Embedded iframe configuration
1458
1542
  *
1459
1543
  * @group Embed components
1460
1544
  */
1461
1545
  export interface FrameParams {
1462
1546
  /**
1463
- * The width of the iFrame (unit is pixels if numeric).
1547
+ * The width of the iframe (unit is pixels if numeric).
1464
1548
  */
1465
1549
  width?: number | string;
1466
1550
  /**
1467
- * The height of the iFrame (unit is pixels if numeric).
1551
+ * The height of the iframe (unit is pixels if numeric).
1468
1552
  */
1469
1553
  height?: number | string;
1470
1554
  /**
@@ -1565,7 +1649,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1565
1649
  */
1566
1650
  runtimeParameters?: RuntimeParameter[];
1567
1651
  /**
1568
- /**
1569
1652
  * The locale/language to use for the embedded view.
1570
1653
  *
1571
1654
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
@@ -1665,31 +1748,30 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1665
1748
  */
1666
1749
  reorderedHomepageModules?: HomepageModule[];
1667
1750
  /**
1668
- * The list of tab IDs to show in the embedded.
1669
- * Only this Tabs will be shown in their respective LBs.
1670
- * Use this to show an tabID.
1751
+ * The list of tab IDs to show in the embedded Liveboard.
1752
+ * Only the tabs specified in the array will be shown in the Liveboard.
1671
1753
  *
1672
- * Use either this or hiddenTabs.
1754
+ * Use either `visibleTabs` or `hiddenTabs`.
1673
1755
  *
1674
1756
  * @example
1675
1757
  * ```js
1676
- * const embed = new LiveboardEmbed('#embed', {
1677
- * ... // other liveboard view config
1678
- * visibleTabs: [
1758
+ * visibleTabs: [
1679
1759
  * '430496d6-6903-4601-937e-2c691821af3c',
1680
- * 'f547ec54-2a37-4516-a222-2b06719af726']
1681
- * });
1760
+ * 'f547ec54-2a37-4516-a222-2b06719af726']
1682
1761
  * ```
1683
1762
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1684
1763
  */
1685
1764
  visibleTabs?: string[];
1686
1765
  /**
1687
- * homepageLeftNavItems : show/hide Homeapage Left Nav Bar Items
1688
- * There are 8 home nav list items, we will send those item as list
1689
- * which we want to hide for TSE.
1690
- * eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
1766
+ * homepageLeftNavItems : Show or hide the left navigation bar items.
1767
+ * There are 8 eight home navigation list items.
1768
+ * To hide these items, specify the string in the array.
1691
1769
  *
1692
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
1770
+ * ```js
1771
+ * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
1772
+ * ```
1773
+ *
1774
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
1693
1775
  */
1694
1776
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1695
1777
  /**
@@ -1705,7 +1787,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1705
1787
  * });
1706
1788
  * embed.showPreRender();
1707
1789
  * ```
1708
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1790
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
1709
1791
  */
1710
1792
  preRenderId?: string;
1711
1793
  /**
@@ -1744,7 +1826,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1744
1826
  status?: string;
1745
1827
  };
1746
1828
  /**
1747
- * MessageOptions: By Providing options, getting specific event start / end based on
1829
+ * MessageOptions: By providing options, getting specific event start / end based on
1748
1830
  * option
1749
1831
  *
1750
1832
  * @group Events
@@ -1752,7 +1834,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1752
1834
  export type MessageOptions = {
1753
1835
  /**
1754
1836
  * A boolean value indicating that start status events of this type
1755
- * will be dispatched
1837
+ * will be dispatched.
1756
1838
  */
1757
1839
  start?: boolean;
1758
1840
  };
@@ -1772,7 +1854,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1772
1854
  */
1773
1855
  export type MessageCallbackObj = {
1774
1856
  /**
1775
- * options: It contains start, A boolean value indicating that start
1857
+ * options: It contains start, a boolean value indicating that start
1776
1858
  * status events of this type will be dispatched
1777
1859
  */
1778
1860
  options: MessageOptions;
@@ -1844,7 +1926,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1844
1926
  IN = "IN"
1845
1927
  }
1846
1928
  /**
1847
- * Home page module that can be hide
1929
+ * Home page module that can be hidden
1848
1930
  */
1849
1931
  export enum HomepageModule {
1850
1932
  /**
@@ -1860,7 +1942,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1860
1942
  */
1861
1943
  Favorite = "FAVORITE",
1862
1944
  /**
1863
- * List of answers and liveboards
1945
+ * List of answers and Liveboards
1864
1946
  */
1865
1947
  MyLibrary = "MY_LIBRARY",
1866
1948
  /**
@@ -1893,7 +1975,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1893
1975
  values: (number | boolean | string)[];
1894
1976
  }
1895
1977
  /**
1896
- * A filter that can be applied to ThoughtSpot answers, Liveboards, or
1978
+ * A filter that can be applied to ThoughtSpot Answers, Liveboards, or
1897
1979
  * visualizations at runtime.
1898
1980
  */
1899
1981
  export interface RuntimeParameter {
@@ -1930,12 +2012,26 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1930
2012
  /**
1931
2013
  * Rendering has initialized.
1932
2014
  *
2015
+ * @example
2016
+ *```js
2017
+ * liveboardEmbed.on(EmbedEvent.Init, showLoader)
2018
+ * //show a loader
2019
+ * function showLoader() {
2020
+ * document.getElementById("loader");
2021
+ * }
2022
+ *```
1933
2023
  * @returns timestamp - The timestamp when the event was generated.
1934
2024
  */
1935
2025
  Init = "init",
1936
2026
  /**
1937
2027
  * Authentication has either succeeded or failed.
1938
2028
  *
2029
+ * @example
2030
+ *```js
2031
+ * appEmbed.on(EmbedEvent.AuthInit, payload => {
2032
+ * console.log('AuthInit', payload);
2033
+ * })
2034
+ *```
1939
2035
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
1940
2036
  */
1941
2037
  AuthInit = "authInit",
@@ -1943,37 +2039,91 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1943
2039
  * The embed object container has loaded.
1944
2040
  *
1945
2041
  * @returns timestamp - The timestamp when the event was generated.
2042
+ * @example
2043
+ *```js
2044
+ * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
2045
+ * //hide loader
2046
+ * function hideLoader() {
2047
+ * document.getElementById("loader");
2048
+ * }
2049
+ *```
1946
2050
  */
1947
2051
  Load = "load",
1948
2052
  /**
1949
2053
  * Data pertaining to answer or Liveboard is received
1950
2054
  *
1951
2055
  * @return data - The answer or Liveboard data
2056
+ * @example
2057
+ *```js
2058
+ * liveboardEmbed.on(EmbedEvent.Data, payload => {
2059
+ * console.log('data', payload);
2060
+ * })
2061
+ *```
1952
2062
  * @important
1953
2063
  */
1954
2064
  Data = "data",
1955
2065
  /**
1956
- * Search/answer/Liveboard filters have been applied/updated by the user.
2066
+ * Search/Answer/Liveboard filters have been applied/updated by the user.
1957
2067
  *
1958
2068
  * @hidden
1959
2069
  */
1960
2070
  FiltersChanged = "filtersChanged",
1961
2071
  /**
1962
2072
  * Search query has been updated by the user.
2073
+ *
2074
+ * @example
2075
+ *```js
2076
+ * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
2077
+ *```
1963
2078
  */
1964
2079
  QueryChanged = "queryChanged",
1965
2080
  /**
1966
- * A drill down operation has been performed.
2081
+ * A drill-down operation has been performed.
1967
2082
  *
1968
2083
  * @returns additionalFilters - Any additional filters applied
1969
2084
  * @returns drillDownColumns - The columns on which drill down was performed
1970
2085
  * @returns nonFilteredColumns - The columns that were not filtered
2086
+ * @example
2087
+ *```js
2088
+ * searchEmbed.trigger(HostEvent.DrillDown, {
2089
+ * points: {
2090
+ * clickedPoint,
2091
+ * selectedPoints: selectedPoint
2092
+ * },
2093
+ * autoDrillDown: true,
2094
+ * })
2095
+ *```
2096
+ * In this example, `VizPointDoubleClick` event is used for
2097
+ * triggering the `DrillDown` event when an area or specific
2098
+ * data point on a table or chart is double-clicked.
2099
+ * @example
2100
+ *```js
2101
+ * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
2102
+ * console.log(payload);
2103
+ * const clickedPoint = payload.data.clickedPoint;
2104
+ * const selectedPoint = payload.data.selectedPoints;
2105
+ * console.log('>>> called', clickedPoint);
2106
+ * embed.trigger(HostEvent.DrillDown, {
2107
+ * points: {
2108
+ * clickedPoint,
2109
+ * selectedPoints: selectedPoint
2110
+ * },
2111
+ * autoDrillDown: true,
2112
+ * })
2113
+ * })
2114
+ *```
1971
2115
  */
1972
2116
  Drilldown = "drillDown",
1973
2117
  /**
1974
2118
  * One or more data sources have been selected.
1975
2119
  *
1976
2120
  * @returns dataSourceIds - the list of data sources
2121
+ * @example
2122
+ * ```js
2123
+ * searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
2124
+ * console.log('DataSourceSelected', payload);
2125
+ * })
2126
+ * ```
1977
2127
  */
1978
2128
  DataSourceSelected = "dataSourceSelected",
1979
2129
  /**
@@ -1981,25 +2131,49 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1981
2131
  *
1982
2132
  * @returns columnIds - the list of columns
1983
2133
  * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2134
+ * @example
2135
+ * ```js
2136
+ * appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
2137
+ * console.log('AddRemoveColumns', payload);
2138
+ * })
2139
+ * ```
1984
2140
  */
1985
2141
  AddRemoveColumns = "addRemoveColumns",
1986
2142
  /**
1987
- * A custom action has been triggered
2143
+ * A custom action has been triggered.
1988
2144
  *
1989
- * @returns actionId - The id of the custom action
1990
- * @returns data - The answer or Liveboard data
2145
+ * @returns actionId - ID of the custom action
2146
+ * @returns data - Response payload with the Answer or Liveboard data
2147
+ * @example
2148
+ * ```js
2149
+ * appEmbed.on(EmbedEvent.customAction, payload => {
2150
+ * const data = payload.data;
2151
+ * if (data.id === 'insert Custom Action ID here') {
2152
+ * console.log('Custom Action event:', data.embedAnswerData);
2153
+ * }
2154
+ * })
2155
+ * ```
1991
2156
  */
1992
2157
  CustomAction = "customAction",
1993
2158
  /**
1994
- * Listen to double clicks on a visualization
2159
+ * Listen to double click actions on a visualization.
1995
2160
  *
1996
- * @return ContextMenuInputPoints - data point that is double clicked
2161
+ * @return ContextMenuInputPoints - Data point that is double-clicked
1997
2162
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2163
+ * @example
2164
+ * ```js
2165
+ * livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
2166
+ * console.log('VizPointDoubleClick', payload)
2167
+ * })
2168
+ * ```
1998
2169
  */
1999
2170
  VizPointDoubleClick = "vizPointDoubleClick",
2000
2171
  /**
2001
- * Listen to clicks on a visualization in a liveboard or Search result.
2172
+ * Listen to clicks on a visualization in a Liveboard or Search result.
2002
2173
  *
2174
+ * @return viz, clickedPoint - metadata about the point that is clicked
2175
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2176
+ * @important
2003
2177
  * @example
2004
2178
  * ```js
2005
2179
  * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
@@ -2012,25 +2186,42 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2012
2186
  * )
2013
2187
  * });
2014
2188
  * ```
2015
- * @return viz, clickedPoint - metadata about point that is clicked
2016
- * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2017
- * @important
2018
2189
  */
2019
2190
  VizPointClick = "vizPointClick",
2020
2191
  /**
2021
2192
  * An error has occurred.
2022
2193
  *
2023
2194
  * @returns error - An error object or message
2195
+ * @example
2196
+ * ```js
2197
+ * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
2198
+ * //show error messaage
2199
+ * function showErrorMsg() {
2200
+ * document.getElementById("error");
2201
+ * ```
2024
2202
  */
2025
2203
  Error = "Error",
2026
2204
  /**
2027
- * The embedded object has sent an alert
2205
+ * The embedded object has sent an alert.
2028
2206
  *
2029
2207
  * @returns alert - An alert object
2208
+ * @example
2209
+ * ```js
2210
+ * searchEmbed.on(EmbedEvent.Alert)
2211
+ * ```
2030
2212
  */
2031
2213
  Alert = "alert",
2032
2214
  /**
2033
2215
  * The ThoughtSpot auth session has expired.
2216
+ *
2217
+ * @example
2218
+ *```js
2219
+ * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
2220
+ * //show auth expired banner
2221
+ * function showAuthExpired() {
2222
+ * document.getElementById("authExpiredBanner");
2223
+ * }
2224
+ *```
2034
2225
  */
2035
2226
  AuthExpire = "ThoughtspotAuthExpired",
2036
2227
  /**
@@ -2060,14 +2251,27 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2060
2251
  */
2061
2252
  EmbedIframeCenter = "EmbedIframeCenter",
2062
2253
  /**
2063
- * Emitted when the "Get Data" button in Search Bar embed
2064
- * is clicked.
2254
+ * Emitted when the **Get Data** action is initiated.
2255
+ * Applicable to `SearchBarEmbed` only.
2065
2256
  *
2066
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0.sw
2257
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2258
+ * @example
2259
+ *```js
2260
+ * searchbarEmbed.on(EmbedEvent.GetDataClick)
2261
+ * .then(data => {
2262
+ * console.log('Answer Data:', data);
2263
+ * })
2264
+ *```
2067
2265
  */
2068
2266
  GetDataClick = "getDataClick",
2069
2267
  /**
2070
2268
  * Detects the route change.
2269
+ *
2270
+ * @example
2271
+ *```js
2272
+ * searchEmbed.on(EmbedEvent.RouteChange, payload =>
2273
+ * console.log('data', payload))
2274
+ *```
2071
2275
  */
2072
2276
  RouteChange = "ROUTE_CHANGE",
2073
2277
  /**
@@ -2077,10 +2281,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2077
2281
  */
2078
2282
  V1Data = "exportVizDataToParent",
2079
2283
  /**
2080
- * Emitted when the embed does not have cookie access. This
2081
- * happens on Safari where third-party cookies are blocked by default.
2284
+ * Emitted when the embed does not have cookie access. This happens
2285
+ * when Safari and other Web browsers block third-party cookies
2286
+ * are blocked by default. `NoCookieAccess` can trigger
2082
2287
  *
2083
- * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2288
+ * @example
2289
+ *```js
2290
+ * appEmbed.on(EmbedEvent.NoCookieAccess)
2291
+ *```
2292
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
2084
2293
  */
2085
2294
  NoCookieAccess = "noCookieAccess",
2086
2295
  /**
@@ -2094,12 +2303,24 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2094
2303
  * Emitted when any modal is opened in the app
2095
2304
  *
2096
2305
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2306
+ * @example
2307
+ *```js
2308
+ * appEmbed.on(EmbedEvent.DialogOpen, payload => {
2309
+ * console.log('dialog open', payload);
2310
+ * })
2311
+ *```
2097
2312
  */
2098
2313
  DialogOpen = "dialog-open",
2099
2314
  /**
2100
2315
  * Emitted when any modal is closed in the app
2101
2316
  *
2102
2317
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2318
+ * @example
2319
+ *```js
2320
+ * appEmbed.on(EmbedEvent.DialogClose, payload => {
2321
+ * console.log('dialog close', payload);
2322
+ * })
2323
+ *```
2103
2324
  */
2104
2325
  DialogClose = "dialog-close",
2105
2326
  /**
@@ -2108,6 +2329,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2108
2329
  * other events on the rendered Liveboard.
2109
2330
  *
2110
2331
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
2332
+ * @example
2333
+ *```js
2334
+ * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
2335
+ console.log('Liveboard is rendered', payload);
2336
+ })
2337
+ *```
2338
+ * The following example shows how to trigger
2339
+ * `SetVisibleVizs` event using LiveboardRendered embed event:
2340
+ * @example
2341
+ *```js
2342
+ * const embedRef = useEmbedRef();
2343
+ * const onLiveboardRendered = () => {
2344
+ * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
2345
+ * };
2346
+ *```
2111
2347
  */
2112
2348
  LiveboardRendered = "PinboardRendered",
2113
2349
  /**
@@ -2115,216 +2351,470 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2115
2351
  * is triggered on all events.
2116
2352
  *
2117
2353
  * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2354
+ * @example
2355
+ *```js
2356
+ * appEmbed.on(EmbedEvent.ALL, payload => {
2357
+ * console.log('Embed Events', payload)
2358
+ * })
2359
+ *```
2118
2360
  */
2119
2361
  ALL = "*",
2120
2362
  /**
2121
2363
  * Emitted when an Answer is saved in the app
2122
2364
  *
2123
2365
  * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2366
+ * @example
2367
+ *```js
2368
+ * //trigger when action starts
2369
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2370
+ * console.log('Save', payload)
2371
+ * }, {
2372
+ * start: true
2373
+ * })
2374
+ * //trigger when action ends
2375
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2376
+ * console.log('Save', payload)
2377
+ * })
2378
+ *```
2124
2379
  */
2125
2380
  Save = "save",
2126
2381
  /**
2127
2382
  * Emitted when the download action is triggered on an answer
2128
2383
  *
2384
+ * **Note**: This event is deprecated in v1.21.0.
2385
+ * To fire an event when a download action is initiated on a chart or table,
2386
+ * use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
2387
+ * or `EmbedEvent.DownloadAsXLSX`
2388
+ *
2129
2389
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2390
+ * @example
2391
+ *```js
2392
+ * liveboardEmbed.trigger(HostEvent.Download, {
2393
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2394
+ * })
2395
+ *```
2130
2396
  */
2131
2397
  Download = "download",
2132
2398
  /**
2133
2399
  * Emitted when the download action is triggered on an answer
2134
2400
  *
2135
2401
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
2402
+ * @example
2403
+ *```js
2404
+ * //trigger when action starts
2405
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2406
+ * console.log('download PNG', payload)}, {start: true })
2407
+ * //trigger when action ends
2408
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2409
+ * console.log('download PNG', payload)})
2410
+ *```
2136
2411
  */
2137
2412
  DownloadAsPng = "downloadAsPng",
2138
2413
  /**
2139
2414
  * Emitted when the Download as PDF action is triggered on an answer
2140
2415
  *
2141
2416
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2417
+ * @example
2418
+ *```js
2419
+ * //trigger when action starts
2420
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2421
+ * console.log('download PDF', payload)}, {start: true })
2422
+ * //trigger when action ends
2423
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2424
+ * console.log('download PDF', payload)})
2425
+ *```
2142
2426
  */
2143
2427
  DownloadAsPdf = "downloadAsPdf",
2144
2428
  /**
2145
2429
  * Emitted when the Download as CSV action is triggered on an answer
2146
2430
  *
2147
2431
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2432
+ * @example
2433
+ *```js
2434
+ * //trigger when action starts
2435
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2436
+ * console.log('download CSV', payload)}, {start: true })
2437
+ * //trigger when action ends
2438
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2439
+ * console.log('download CSV', payload)})
2440
+ *```
2148
2441
  */
2149
2442
  DownloadAsCsv = "downloadAsCsv",
2150
2443
  /**
2151
2444
  * Emitted when the Download as XLSX action is triggered on an answer
2152
2445
  *
2153
2446
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2447
+ * @example
2448
+ *```js
2449
+ * //trigger when action starts
2450
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2451
+ * console.log('download Xlsx', payload)}, { start: true })
2452
+ * //trigger when action ends
2453
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2454
+ * console.log('download Xlsx', payload)})
2455
+ *```
2154
2456
  */
2155
2457
  DownloadAsXlsx = "downloadAsXlsx",
2156
2458
  /**
2157
- * Emitted when an answer is deleted in the app
2459
+ * Emitted when an Answer is deleted in the app
2158
2460
  *
2159
2461
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2462
+ * @example
2463
+ *```js
2464
+ * //trigger when action starts
2465
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2466
+ * console.log('delete answer', payload)}, {start: true })
2467
+ * //trigger when action is completed
2468
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2469
+ * console.log('delete answer', payload)})
2470
+ *```
2160
2471
  */
2161
2472
  AnswerDelete = "answerDelete",
2162
2473
  /**
2163
2474
  * Emitted when an answer is pinned to a Liveboard
2164
2475
  *
2165
2476
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2477
+ * @example
2478
+ *```js
2479
+ * //trigger when action starts
2480
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2481
+ * console.log('pin', payload)
2482
+ * }, {
2483
+ * start: true
2484
+ * })
2485
+ * //trigger when action ends
2486
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2487
+ * console.log('pin', payload)
2488
+ * })
2489
+ *```
2166
2490
  */
2167
2491
  Pin = "pin",
2168
2492
  /**
2169
2493
  * Emitted when SpotIQ analysis is triggered
2170
2494
  *
2171
2495
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2496
+ * @example
2497
+ *```js
2498
+ * //trigger when action starts
2499
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2500
+ * console.log('SpotIQAnalyze', payload)
2501
+ * }, {
2502
+ * start: true
2503
+ * })
2504
+ * //trigger when action ends
2505
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2506
+ * console.log('SpotIQ analyze', payload)
2507
+ * })
2508
+ *```
2172
2509
  */
2173
2510
  SpotIQAnalyze = "spotIQAnalyze",
2174
2511
  /**
2175
2512
  * Emitted when a user shares an object with another user or group
2176
2513
  *
2177
2514
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2515
+ * @example
2516
+ *```js
2517
+ * //trigger when action starts
2518
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2519
+ * console.log('Share', payload)
2520
+ * }, {
2521
+ * start: true
2522
+ * })
2523
+ * //trigger when action ends
2524
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2525
+ * console.log('Share', payload)
2526
+ * })
2527
+ *```
2178
2528
  */
2179
2529
  Share = "share",
2180
2530
  /**
2181
- * Emitted when a user clicks the Include action to include a specific value or data
2182
- * on a chart or table
2531
+ * Emitted when a user clicks the **Include** action to include a specific value or
2532
+ * data on a chart or table.
2183
2533
  *
2184
2534
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2535
+ * @example
2536
+ *```js
2537
+ * appEmbed.on(EmbedEvent.DrillInclude, payload => {
2538
+ * console.log('Drill include', payload);
2539
+ * })
2540
+ *```
2185
2541
  */
2186
2542
  DrillInclude = "context-menu-item-include",
2187
2543
  /**
2188
- * Emitted when a user clicks the Exclude action to exclude a specific value or data
2189
- * on a chart or table
2544
+ * Emitted when a user clicks the **Exclude** action to exclude a specific value or
2545
+ * data on a chart or table
2190
2546
  *
2191
2547
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2548
+ * @example
2549
+ *```js
2550
+ * appEmbed.on(EmbedEvent.DrillExclude, payload => {
2551
+ * console.log('Drill exclude', payload);
2552
+ * })
2553
+ *```
2192
2554
  */
2193
2555
  DrillExclude = "context-menu-item-exclude",
2194
2556
  /**
2195
- * Emitted when copied column value on the app
2557
+ * Emitted when a column value is copied in the embedded app.
2196
2558
  *
2197
2559
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2560
+ * @example
2561
+ *```js
2562
+ * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
2563
+ * console.log('copy to clipboard', payload);
2564
+ * })
2565
+ *```
2198
2566
  */
2199
2567
  CopyToClipboard = "context-menu-item-copy-to-clipboard",
2200
2568
  /**
2201
- * Emitted when a user clicks the Update TML action
2569
+ * Emitted when a user clicks the **Update TML** action
2202
2570
  *
2203
2571
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2572
+ * @example
2573
+ *```js
2574
+ * liveboardEmbed.on(EmbedEvent.UpdateTML)
2575
+ * })
2576
+ *```
2204
2577
  */
2205
2578
  UpdateTML = "updateTSL",
2206
2579
  /**
2207
- * Emitted when a user clicks the Edit TML action
2580
+ * Emitted when a user clicks the **Edit TML** action
2208
2581
  *
2209
2582
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2583
+ * @example
2584
+ *```js
2585
+ * appEmbed.on(EmbedEvent.EditTML, payload => {
2586
+ * console.log('Edit TML', payload);
2587
+ * })
2588
+ *```
2210
2589
  */
2211
2590
  EditTML = "editTSL",
2212
2591
  /**
2213
- * Emitted when ExportTML trigger in answer on the app
2592
+ * Emitted when the **Export TML** action is triggered on an
2593
+ * an embedded object in the app
2214
2594
  *
2215
2595
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2596
+ * @example
2597
+ *```js
2598
+ * //trigger when action starts
2599
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2600
+ * console.log('Export TML', payload)}, { start: true })
2601
+ * //trigger when action ends
2602
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2603
+ * console.log('Export TML', payload)})
2604
+ *```
2216
2605
  */
2217
2606
  ExportTML = "exportTSL",
2218
2607
  /**
2219
- * Emitted when an answer is saved as a view
2608
+ * Emitted when an Answer is saved as a View.
2220
2609
  *
2221
2610
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2611
+ * @example
2612
+ *```js
2613
+ * appEmbed.on(EmbedEvent.SaveAsView, payload => {
2614
+ * console.log('View', payload);
2615
+ * })
2616
+ *```
2222
2617
  */
2223
2618
  SaveAsView = "saveAsView",
2224
2619
  /**
2225
- * Emitted when copy of existing answer on the app
2620
+ * Emitted when the user creates a copy of an Answer
2226
2621
  *
2227
2622
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2623
+ * @example
2624
+ *```js
2625
+ * //trigger when action starts
2626
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2627
+ * console.log('Copy and edit', payload)}, {start: true })
2628
+ * //trigger when action ends
2629
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2630
+ * console.log('Copy and edit', payload)})
2631
+ *```
2228
2632
  */
2229
2633
  CopyAEdit = "copyAEdit",
2230
2634
  /**
2231
- * Emitted when a user clicks Show underlying data on an answe
2635
+ * Emitted when a user clicks Show underlying data on an Answer
2232
2636
  *
2233
2637
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2638
+ * @example
2639
+ *```js
2640
+ * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
2641
+ * console.log('show data', payload);
2642
+ * })
2643
+ *```
2234
2644
  */
2235
2645
  ShowUnderlyingData = "showUnderlyingData",
2236
2646
  /**
2237
- * Emitted when an answer is switched to a chart or table view
2647
+ * Emitted when an answer is switched to a chart or table view.
2238
2648
  *
2239
2649
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2650
+ * @example
2651
+ *```js
2652
+ * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
2653
+ * console.log('switch view', payload);
2654
+ * })
2655
+ *```
2240
2656
  */
2241
2657
  AnswerChartSwitcher = "answerChartSwitcher",
2242
2658
  /**
2243
- * Internal event to communicate the initial settings back to the TS APP
2659
+ * Internal event to communicate the initial settings back to the ThoughtSpot app
2244
2660
  *
2245
2661
  * @hidden
2246
2662
  */
2247
2663
  APP_INIT = "appInit",
2248
2664
  /**
2249
- * Emitted when a user clicks Show Liveboard details on a Liveboard
2665
+ * Emitted when a user clicks **Show Liveboard details** on a Liveboard
2250
2666
  *
2251
2667
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2668
+ * @example
2669
+ *```js
2670
+ * liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
2671
+ * console.log('Liveboard details', payload);
2672
+ * })
2673
+ *```
2252
2674
  */
2253
2675
  LiveboardInfo = "pinboardInfo",
2254
2676
  /**
2255
2677
  * Emitted when a user clicks on the Favorite icon on a Liveboard
2256
2678
  *
2257
2679
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2680
+ * @example
2681
+ *```js
2682
+ * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
2683
+ * console.log('favorites', payload);
2684
+ * })
2685
+ *```
2258
2686
  */
2259
2687
  AddToFavorites = "addToFavorites",
2260
2688
  /**
2261
- * Emitted when a user clicks Schedule on a Liveboard
2689
+ * Emitted when a user clicks **Schedule** on a Liveboard
2262
2690
  *
2263
2691
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2692
+ * @example
2693
+ *```js
2694
+ * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
2695
+ * console.log(`Liveboard schedule', payload);
2696
+ * })
2697
+ *```
2264
2698
  */
2265
2699
  Schedule = "subscription",
2266
2700
  /**
2267
- * Emitted when a user clicks Edit on a Liveboard or visualization
2701
+ * Emitted when a user clicks **Edit** on a Liveboard or visualization
2268
2702
  *
2269
2703
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2704
+ * @example
2705
+ *```js
2706
+ * liveboardEmbed.on(EmbedEvent.Edit, payload => {
2707
+ * console.log(`Liveboard edit', payload);
2708
+ * })
2709
+ *```
2270
2710
  */
2271
2711
  Edit = "edit",
2272
2712
  /**
2273
- * Emitted when a user clicks Make a copy on a Liveboard
2713
+ * Emitted when a user clicks *Make a copy* on a Liveboard
2274
2714
  *
2275
2715
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2716
+ * @example
2717
+ *```js
2718
+ * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
2719
+ * console.log(`Copy', payload);
2720
+ * })
2721
+ *```
2276
2722
  */
2277
2723
  MakeACopy = "makeACopy",
2278
2724
  /**
2279
- * Emitted when a user clicks Present on a Liveboard or visualization
2725
+ * Emitted when a user clicks **Present** on a Liveboard or visualization
2280
2726
  *
2281
2727
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2728
+ * @example
2729
+ *```js
2730
+ * liveboardEmbed.trigger(HostEvent.Present)
2731
+ *```
2732
+ * @example
2733
+ *```js
2734
+ * liveboardEmbed.on(EmbedEvent.Present, {
2735
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2736
+ * })
2737
+ *```
2282
2738
  */
2283
2739
  Present = "present",
2284
2740
  /**
2285
- * Emitted when a user clicks Delete on a Liveboard
2741
+ * Emitted when a user clicks **Delete** on a visualization
2286
2742
  *
2287
2743
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2744
+ * @example
2745
+ *```js
2746
+ * liveboardEmbed.trigger(HostEvent.Delete,
2747
+ * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2748
+ *```
2288
2749
  */
2289
2750
  Delete = "delete",
2290
2751
  /**
2291
2752
  * Emitted when a user clicks Manage schedules on a Liveboard
2292
2753
  *
2293
2754
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2755
+ * @example
2756
+ *```js
2757
+ * liveboardEmbed.trigger(HostEvent.SchedulesList)
2758
+ *```
2294
2759
  */
2295
2760
  SchedulesList = "schedule-list",
2296
2761
  /**
2297
- * Emitted when a user clicks Cancel in edit mode on a Liveboard
2762
+ * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
2298
2763
  *
2299
2764
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2765
+ * @example
2766
+ *```js
2767
+ * liveboardEmbed.trigger(HostEvent.Cancel)
2768
+ *```
2300
2769
  */
2301
2770
  Cancel = "cancel",
2302
2771
  /**
2303
- * Emitted when a user clicks Explore on a visualization
2772
+ * Emitted when a user clicks **Explore** on a visualization
2304
2773
  *
2305
2774
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2775
+ * @example
2776
+ *```js
2777
+ * liveboardEmbed.trigger(HostEvent.Explore, {
2778
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2779
+ *```
2306
2780
  */
2307
2781
  Explore = "explore",
2308
2782
  /**
2309
- * Emitted when a user clicks Copy link action on a visualization
2783
+ * Emitted when a user clicks **Copy link** action on a visualization
2310
2784
  *
2311
2785
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2786
+ * @example
2787
+ *```js
2788
+ * liveboardEmbed.trigger(HostEvent.CopyLink, {
2789
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2790
+ *```
2312
2791
  */
2313
2792
  CopyLink = "embedDocument",
2314
2793
  /**
2315
- * Emitted when a user interacts with cross filters on a visualization or liveboard
2794
+ * Emitted when a user interacts with cross filters on a visualization or Liveboard
2316
2795
  *
2317
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2796
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
2797
+ * @example
2798
+ *```js
2799
+ * liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
2800
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2801
+ *```
2318
2802
  */
2319
2803
  CrossFilterChanged = "cross-filter-changed",
2320
2804
  /**
2321
2805
  * Emitted when a user right clicks on a visualization (chart or table)
2322
2806
  *
2323
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2807
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
2808
+ * @example
2809
+ *```js
2810
+ * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
2811
+ * console.log('VizPointClick', payload)
2812
+ * })
2813
+ *```
2324
2814
  */
2325
2815
  VizPointRightClick = "vizPointRightClick",
2326
2816
  /**
2327
- * Emitted when a user clicks on Insert to slide on a visualization
2817
+ * Emitted when a user clicks **Insert to slide** on a visualization
2328
2818
  *
2329
2819
  * @hidden
2330
2820
  */
@@ -2332,52 +2822,52 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2332
2822
  /**
2333
2823
  * @hidden
2334
2824
  * Emitted when a user changes any filter on a Liveboard.
2335
- * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
2825
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
2336
2826
  */
2337
2827
  FilterChanged = "filterChanged",
2338
2828
  /**
2339
- * Emitted when a user click on Go button in Sage Embed
2829
+ * Emitted when a user clicks the **Go** button on the Search page
2340
2830
  *
2341
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2831
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2342
2832
  */
2343
2833
  SageEmbedQuery = "sageEmbedQuery",
2344
2834
  /**
2345
- * Emitten when a user select data source in Sage Embed
2835
+ * Emitted when a user selects a data source.
2346
2836
  *
2347
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2837
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2348
2838
  */
2349
2839
  SageWorksheetUpdated = "sageWorksheetUpdated",
2350
2840
  /**
2351
- * Emitted when a user updates a connection in Data tab
2841
+ * Emitted when a user updates a connection on the **Data** page
2352
2842
  *
2353
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2843
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2354
2844
  */
2355
2845
  UpdateConnection = "updateConnection",
2356
2846
  /**
2357
- * Emitted when a user updates a connection in Data tab
2847
+ * Emitted when a user updates a connection on the **Data** page
2358
2848
  *
2359
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2849
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2360
2850
  */
2361
2851
  CreateConnection = "createConnection",
2362
2852
  /**
2363
2853
  * Emitted when name, status (private or public) or filter values of a
2364
- * PersonalisedView is updated.
2854
+ * Personalised view is updated.
2365
2855
  *
2366
2856
  * @returns viewName: string
2367
2857
  * @returns viewId: string
2368
2858
  * @returns liveboardId: string
2369
2859
  * @returns isPublic: boolean
2370
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2860
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2371
2861
  */
2372
2862
  UpdatePersonalisedView = "updatePersonalisedView",
2373
2863
  /**
2374
- * Emitted when a PersonalisedView is saved.
2864
+ * Emitted when a Personalised view is saved.
2375
2865
  *
2376
2866
  * @returns viewName: string
2377
2867
  * @returns viewId: string
2378
2868
  * @returns liveboardId: string
2379
2869
  * @returns isPublic: boolean
2380
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2870
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2381
2871
  */
2382
2872
  SavePersonalisedView = "savePersonalisedView",
2383
2873
  /**
@@ -2387,7 +2877,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2387
2877
  * @returns viewId: string
2388
2878
  * @returns liveboardId: string
2389
2879
  * @returns isPublic: boolean
2390
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2880
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2391
2881
  */
2392
2882
  ResetLiveboard = "resetLiveboard",
2393
2883
  /**
@@ -2395,20 +2885,30 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2395
2885
  *
2396
2886
  * @returns views: string[]
2397
2887
  * @returns liveboardId: string
2398
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2888
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2399
2889
  */
2400
2890
  DeletePersonalisedView = "deletePersonalisedView",
2401
2891
  /**
2402
- * Emitten when a user creates a new worksheet
2892
+ * Emitted when a user creates a new worksheet
2403
2893
  *
2404
2894
  * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2405
2895
  */
2406
2896
  CreateWorksheet = "createWorksheet",
2407
2897
  /**
2408
- * Emitted when a LB/viz is renamed
2409
- *
2410
- * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
2411
- */
2898
+ * Emitted when Ask Sage is initialized.
2899
+ *
2900
+ * @returns viewName: string
2901
+ * @returns viewId: string
2902
+ * @returns liveboardId: string
2903
+ * @returns isPublic: boolean
2904
+ * @version SDK : 1.29.0 | Thoughtspot: 9.12.0.cl
2905
+ */
2906
+ AskSageInit = "AskSageInit",
2907
+ /**
2908
+ * Emitted when a LB/viz is renamed
2909
+ *
2910
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
2911
+ */
2412
2912
  Rename = "rename"
2413
2913
  }
2414
2914
  /**
@@ -2435,15 +2935,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2435
2935
  */
2436
2936
  export enum HostEvent {
2437
2937
  /**
2438
- * Triggers a search query in AppEmbed and SearchEmbed
2439
- * deployments.
2938
+ * Triggers a search operation with the search tokens specified in
2939
+ * the search query string.
2940
+ * Supported in `AppEmbed` and `SearchEmbed` deployments.
2440
2941
  * Includes the following properties:
2441
2942
  *
2442
- * @param - dataSourceIds - The data source GUID to Search on
2943
+ * @param - `searchQuery` - query string with search tokens
2944
+ * @param - `dataSources` - Data source GUID to Search on
2443
2945
  * - Although an array, only a single source
2444
2946
  * is supported.
2445
- * @param - searchQuery - Query string with search tokens
2446
- * @param - execute - executes the existing / updated query
2947
+ * @param - `execute` - executes search and updates the existing query
2447
2948
  * @example
2448
2949
  * ```js
2449
2950
  * searchembed.trigger(HostEvent.Search, {
@@ -2463,6 +2964,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2463
2964
  * @param - columnGuid - Optional. GUID of the column to drill
2464
2965
  * by. If not provided it will auto drill by the configured
2465
2966
  * column.
2967
+ * @param - autoDrillDown - Optional. If true, the drill down will be
2968
+ * done automatically on the most popular column.
2969
+ * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
2970
+ * in case of a liveboard.
2466
2971
  * @example
2467
2972
  * ```js
2468
2973
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -2479,6 +2984,25 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2479
2984
  * });
2480
2985
  * })
2481
2986
  * ```
2987
+ * @example
2988
+ * ```js
2989
+ * // Works with TS 9.8.0 and above
2990
+ *
2991
+ * liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
2992
+ * console.log(payload);
2993
+ * const clickedPoint = payload.data.clickedPoint;
2994
+ * const selectedPoint = payload.data.selectedPoints;
2995
+ * console.log('>>> called', clickedPoint);
2996
+ * liveboardEmbed.trigger(HostEvent.DrillDown, {
2997
+ * points: {
2998
+ * clickedPoint,
2999
+ * selectedPoints: selectedPoint
3000
+ * },
3001
+ * autoDrillDown: true,
3002
+ * vizId: payload.data.vizId
3003
+ * });
3004
+ * })
3005
+ * ```
2482
3006
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2483
3007
  */
2484
3008
  DrillDown = "triggerDrillDown",
@@ -2495,7 +3019,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2495
3019
  */
2496
3020
  Reload = "reload",
2497
3021
  /**
2498
- * Sets the visible visualizations on a Liveboard.
3022
+ * Display specific visualizations on a Liveboard.
2499
3023
  *
2500
3024
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
2501
3025
  * in this parameter will be hidden.
@@ -2509,7 +3033,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2509
3033
  */
2510
3034
  SetVisibleVizs = "SetPinboardVisibleVizs",
2511
3035
  /**
2512
- * Set the Active Tab of a Liveboard.
3036
+ * Set a Liveboard tab as an active tab.
2513
3037
  *
2514
3038
  * @param - tabId - string of id of Tab to show
2515
3039
  * @example
@@ -2522,7 +3046,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2522
3046
  */
2523
3047
  SetActiveTab = "SetActiveTab",
2524
3048
  /**
2525
- * Updates runtime filters applied on a Saved Answer or Liveboard. The
3049
+ * Update runtime filters applied on a Saved Answer or Liveboard. The
2526
3050
  * runtime filters passed here are appended to the existing runtime
2527
3051
  * filters.
2528
3052
  * Pass an array of runtime filters with the following attributes:
@@ -2548,10 +3072,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2548
3072
  */
2549
3073
  UpdateRuntimeFilters = "UpdateRuntimeFilters",
2550
3074
  /**
2551
- * Navigate to a specific page in the embedded application without reloading the page.
3075
+ * Navigate to a specific page in the embedded ThoughtSpot application.
2552
3076
  * This is the same as calling `appEmbed.navigateToPage(path, true)`
2553
3077
  *
2554
- * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
3078
+ * @param - `path` - the path to navigate to to go forward or back. The path value can
3079
+ * be a number; for example, `1`, `-1`.
2555
3080
  * @example
2556
3081
  * ```js
2557
3082
  * appEmbed.navigateToPage(-1)
@@ -2560,7 +3085,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2560
3085
  */
2561
3086
  Navigate = "Navigate",
2562
3087
  /**
2563
- * Opens the filter panel for a particular column.
3088
+ * Open the filter panel for a particular column.
2564
3089
  * Works with Search and Liveboard embed.
2565
3090
  *
2566
3091
  * @param - { columnId: string,
@@ -2578,7 +3103,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2578
3103
  */
2579
3104
  OpenFilter = "openFilter",
2580
3105
  /**
2581
- * Adds columns to the current search query.
3106
+ * Add columns to the current search query.
2582
3107
  *
2583
3108
  * @param - { columnIds: string[] }
2584
3109
  * @example
@@ -2589,7 +3114,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2589
3114
  */
2590
3115
  AddColumns = "addColumns",
2591
3116
  /**
2592
- * Removes a column from the current search query.
3117
+ * Remove a column from the current search query.
2593
3118
  *
2594
3119
  * @param - { columnId: string }
2595
3120
  * @example
@@ -2600,27 +3125,29 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2600
3125
  */
2601
3126
  RemoveColumn = "removeColumn",
2602
3127
  /**
2603
- * Gets the current Liveboard content.
3128
+ * Get the transient state of a Liveboard as encoded content.
3129
+ * This includes unsaved and ad hoc changes such as
3130
+ * Liveboard filters, runtime filters applied on visualizations on a
3131
+ * Liveboard, and Liveboard layout, changes to visualizations such as
3132
+ * sorting, toggling of legends, and data drill down.
2604
3133
  *
2605
3134
  * @example
2606
3135
  * ```js
2607
- * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
3136
+ * liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
3137
+ * data=>console.log(data))
2608
3138
  * ```
2609
3139
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
2610
3140
  */
2611
3141
  getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
2612
3142
  /**
2613
- * Triggers the **Pin** action on an embedded object
3143
+ * Trigger the **Pin** action on an embedded object
2614
3144
  *
2615
3145
  * @param - Liveboard embed takes the `vizId` as a
2616
- * key. Can be left undefined when embedding Search, full app or
3146
+ * key. Can be left undefined when embedding Search, full app, or
2617
3147
  * a visualization.
2618
3148
  * @example
2619
3149
  * ```js
2620
- * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2621
- * ```
2622
- * ```js
2623
- * vizEmbed.trigger(HostEvent.Pin)
3150
+ * appEmbed.trigger(HostEvent.Pin)
2624
3151
  * ```
2625
3152
  * ```js
2626
3153
  * searchEmbed.trigger(HostEvent.Pin)
@@ -2629,17 +3156,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2629
3156
  */
2630
3157
  Pin = "pin",
2631
3158
  /**
2632
- * Triggers the **Show Liveboard details** action on a Liveboard
3159
+ * Trigger the **Show Liveboard details** action
3160
+ * on an embedded Liveboard.
2633
3161
  *
2634
3162
  * @example
2635
- * ```js
2636
- * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2637
- * ```
3163
+ *```js
3164
+ * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
3165
+ *```
2638
3166
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2639
3167
  */
2640
3168
  LiveboardInfo = "pinboardInfo",
2641
3169
  /**
2642
- * Triggers the **Schedule** action on a Liveboard
3170
+ * Trigger the **Schedule** action on an embedded Liveboard.
2643
3171
  *
2644
3172
  * @example
2645
3173
  * ```js
@@ -2649,7 +3177,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2649
3177
  */
2650
3178
  Schedule = "subscription",
2651
3179
  /**
2652
- * Triggers the **Manage schedule** action on a Liveboard
3180
+ * Trigger the **Manage schedule** action on an embedded Liveboard
2653
3181
  *
2654
3182
  * @example
2655
3183
  * ```js
@@ -2659,7 +3187,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2659
3187
  */
2660
3188
  SchedulesList = "schedule-list",
2661
3189
  /**
2662
- * Triggers the **Export TML** action on a Liveboard
3190
+ * Trigger the **Export TML** action on an embedded Liveboard.
2663
3191
  *
2664
3192
  * @example
2665
3193
  * ```js
@@ -2669,7 +3197,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2669
3197
  */
2670
3198
  ExportTML = "exportTSL",
2671
3199
  /**
2672
- * Triggers the **Edit TML** action on a Liveboard
3200
+ * Trigger the **Edit TML** action on an embedded Liveboard.
2673
3201
  *
2674
3202
  * @example
2675
3203
  * ```js
@@ -2679,7 +3207,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2679
3207
  */
2680
3208
  EditTML = "editTSL",
2681
3209
  /**
2682
- * Triggers the **Update TML** action on a Liveboard
3210
+ * Trigger the **Update TML** action on an embedded Liveboard.
2683
3211
  *
2684
3212
  * @example
2685
3213
  * ```js
@@ -2689,7 +3217,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2689
3217
  */
2690
3218
  UpdateTML = "updateTSL",
2691
3219
  /**
2692
- * Triggers the **Download PDF** action on a Liveboard
3220
+ * Trigger the **Download PDF** action on an embedded Liveboard.
2693
3221
  *
2694
3222
  * @example
2695
3223
  * ```js
@@ -2699,8 +3227,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2699
3227
  */
2700
3228
  DownloadAsPdf = "downloadAsPdf",
2701
3229
  /**
2702
- * Triggers the **Make a copy** action on a Liveboard, Search, or
2703
- * visualization page
3230
+ * Trigger the **Make a copy** action on a Liveboard, Search, or
3231
+ * visualization page.
2704
3232
  *
2705
3233
  * @example
2706
3234
  * ```js
@@ -2716,7 +3244,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2716
3244
  */
2717
3245
  MakeACopy = "makeACopy",
2718
3246
  /**
2719
- * Triggers the **Delete** action on a Liveboard
3247
+ * Trigger the **Delete** action for a Liveboard.
2720
3248
  *
2721
3249
  * @example
2722
3250
  * ```js
@@ -2726,7 +3254,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2726
3254
  */
2727
3255
  Remove = "delete",
2728
3256
  /**
2729
- * Triggers the **Explore* action on a visualization
3257
+ * Trigger the **Explore** action on a visualization.
2730
3258
  *
2731
3259
  * @param - an object with `vizId` as a key
2732
3260
  * @example
@@ -2737,7 +3265,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2737
3265
  */
2738
3266
  Explore = "explore",
2739
3267
  /**
2740
- * Triggers the **Create alert** action on a visualization
3268
+ * Trigger the **Create alert** action on a visualization
2741
3269
  *
2742
3270
  * @param - an object with `vizId` as a key
2743
3271
  * @example
@@ -2750,7 +3278,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2750
3278
  */
2751
3279
  CreateMonitor = "createMonitor",
2752
3280
  /**
2753
- * Triggers the **Manage alerts** action on a visualization
3281
+ * Trigger the **Manage alerts** action on a visualization
2754
3282
  *
2755
3283
  * @param - an object with `vizId` as a key
2756
3284
  * @example
@@ -2763,7 +3291,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2763
3291
  */
2764
3292
  ManageMonitor = "manageMonitor",
2765
3293
  /**
2766
- * Triggers the **Edit** action on a Liveboard or visualization
3294
+ * Trigger the **Edit** action on a Liveboard or visualization
2767
3295
  *
2768
3296
  * @param - object - To trigger the action for a specific visualization
2769
3297
  * in Liveboard embed, pass in `vizId` as a key.
@@ -2784,7 +3312,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2784
3312
  */
2785
3313
  Edit = "edit",
2786
3314
  /**
2787
- * Triggers the **Copy link** action on a Liveboard or visualization
3315
+ * Trigger the **Copy link** action on a Liveboard or visualization
2788
3316
  *
2789
3317
  * @param - object - to trigger the action for a
2790
3318
  * specific visualization in Liveboard embed, pass in `vizId` as a key
@@ -2802,7 +3330,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2802
3330
  */
2803
3331
  CopyLink = "embedDocument",
2804
3332
  /**
2805
- * Triggers the **Present** action on a Liveboard or visualization
3333
+ * Trigger the **Present** action on a Liveboard or visualization
2806
3334
  *
2807
3335
  * @param - object - to trigger the action for a specific visualization
2808
3336
  * in Liveboard embed, pass in `vizId` as a key
@@ -2820,7 +3348,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2820
3348
  */
2821
3349
  Present = "present",
2822
3350
  /**
2823
- * Gets TML for the current search.
3351
+ * Get TML for the current search.
2824
3352
  *
2825
3353
  * @example
2826
3354
  * ```js
@@ -2835,7 +3363,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2835
3363
  */
2836
3364
  GetTML = "getTML",
2837
3365
  /**
2838
- * Triggers the **Show underlying data** action on visualization or search
3366
+ * Trigger the **Show underlying data** action on visualization or search
2839
3367
  *
2840
3368
  * @param - an object with vizId as a key
2841
3369
  * @example
@@ -2853,7 +3381,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2853
3381
  */
2854
3382
  ShowUnderlyingData = "showUnderlyingData",
2855
3383
  /**
2856
- * Triggers the **Delete** action on visualization or search
3384
+ * Trigger the **Delete** action for a visualization
3385
+ * in an embedded Liveboard, or a chart or table
3386
+ * generated from Search.
2857
3387
  *
2858
3388
  * @param - Liveboard embed takes an object with `vizId` as a key.
2859
3389
  * Can be left empty if embedding Search or visualization.
@@ -2863,16 +3393,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2863
3393
  * '730496d6-6903-4601-937e-2c691821af3c'})
2864
3394
  * ```
2865
3395
  * ```js
2866
- * vizEmbed.trigger(HostEvent.Delete)
2867
- * ```
2868
- * ```js
2869
3396
  * searchEmbed.trigger(HostEvent.Delete)
2870
3397
  * ```
2871
3398
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2872
3399
  */
2873
3400
  Delete = "onDeleteAnswer",
2874
3401
  /**
2875
- * Triggers the **SpotIQ analyze** action on visualization
3402
+ * Trigger the **SpotIQ analyze** action on visualization
2876
3403
  * or search.
2877
3404
  *
2878
3405
  * @param - Liveboard embed takes `vizId` as a
@@ -2893,7 +3420,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2893
3420
  */
2894
3421
  SpotIQAnalyze = "spotIQAnalyze",
2895
3422
  /**
2896
- * Triggers the **Download** action on charts in
3423
+ * Trigger the **Download** action on charts in
2897
3424
  * the embedded view.
2898
3425
  *
2899
3426
  * @example
@@ -2902,17 +3429,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2902
3429
  * '730496d6-6903-4601-937e-2c691821af3c'})
2903
3430
  * ```
2904
3431
  * ```js
2905
- * vizEmbed.trigger(HostEvent.Download)
2906
- * ```
2907
- * ```js
2908
- * searchEmbed.trigger(HostEvent.Download)
3432
+ * embed.trigger(HostEvent.Download)
2909
3433
  * ```
2910
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw ,Use {@link DownloadAsPng}
3434
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
3435
+ * Use {@link DownloadAsPng}
2911
3436
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2912
3437
  */
2913
3438
  Download = "downloadAsPng",
2914
3439
  /**
2915
- * Triggers the **Download** > **PNG** action on
3440
+ * Trigger the **Download** > **PNG** action on
2916
3441
  * charts in the embedded view.
2917
3442
  *
2918
3443
  * @example
@@ -2928,7 +3453,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2928
3453
  */
2929
3454
  DownloadAsPng = "downloadAsPng",
2930
3455
  /**
2931
- * Triggers the **Download** > **CSV** action on tables in
3456
+ * Trigger the **Download** > **CSV** action on tables in
2932
3457
  * the embedded view.
2933
3458
  *
2934
3459
  * @example
@@ -2946,7 +3471,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2946
3471
  */
2947
3472
  DownloadAsCsv = "downloadAsCSV",
2948
3473
  /**
2949
- * Triggers the **Download** > **XLSX** action on tables
3474
+ * Trigger the **Download** > **XLSX** action on tables
2950
3475
  * in the embedded view.
2951
3476
  *
2952
3477
  * @example
@@ -2964,7 +3489,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2964
3489
  */
2965
3490
  DownloadAsXlsx = "downloadAsXLSX",
2966
3491
  /**
2967
- * Triggers the **Share** action on an embedded
3492
+ * Trigger the **Share** action on an embedded
2968
3493
  * Liveboard or Answer.
2969
3494
  *
2970
3495
  * @example
@@ -2978,7 +3503,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2978
3503
  */
2979
3504
  Share = "share",
2980
3505
  /**
2981
- * Triggers the **Save** action on a Liveboard or Answer.
3506
+ * Trigger the **Save** action on a Liveboard or Answer.
2982
3507
  * Saves the changes.
2983
3508
  *
2984
3509
  * @example
@@ -2992,7 +3517,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2992
3517
  */
2993
3518
  Save = "save",
2994
3519
  /**
2995
- * Triggers the **Sync to Sheets** action on an embedded visualization or Answer
3520
+ * Trigger the **Sync to Sheets** action on an embedded visualization or Answer
2996
3521
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
2997
3522
  *
2998
3523
  * @param - an object with `vizId` as a key
@@ -3008,7 +3533,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3008
3533
  */
3009
3534
  SyncToSheets = "sync-to-sheets",
3010
3535
  /**
3011
- * Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
3536
+ * Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
3012
3537
  * Sends data from an Answer or Liveboard visualization to third-party apps such
3013
3538
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
3014
3539
  *
@@ -3025,7 +3550,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3025
3550
  */
3026
3551
  SyncToOtherApps = "sync-to-other-apps",
3027
3552
  /**
3028
- * Triggers the **Manage pipelines** action on an embedded
3553
+ * Trigger the **Manage pipelines** action on an embedded
3029
3554
  * visualization or Answer.
3030
3555
  * Allows users to manage ThoughtSpot Sync pipelines.
3031
3556
  *
@@ -3042,18 +3567,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3042
3567
  */
3043
3568
  ManagePipelines = "manage-pipeline",
3044
3569
  /**
3045
- * Triggers the Reset search on the Search page
3570
+ * Reset search operation on the Search or Answer page.
3046
3571
  *
3047
3572
  * @example
3048
3573
  * ```js
3049
3574
  * searchEmbed.trigger(HostEvent.ResetSearch)
3050
3575
  * ```
3576
+ * ```js
3577
+ * appEmbed.trigger(HostEvent.ResetSearch)
3578
+ * ```
3051
3579
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
3052
3580
  */
3053
3581
  ResetSearch = "resetSearch",
3054
3582
  /**
3055
3583
  * @hidden
3056
- * Gets the currents visible and runtime filters applied on a Liveboard
3584
+ * Get the currents visible and runtime filters applied on a Liveboard
3057
3585
  * @example
3058
3586
  * liveboardEmbed.trigger(HostEvent.GetFilters)
3059
3587
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3061,7 +3589,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3061
3589
  GetFilters = "getFilters",
3062
3590
  /**
3063
3591
  * @hidden
3064
- * Updates the visible filters on the Liveboard.
3592
+ * Update the visible filters on the Liveboard.
3065
3593
  * @param - filter: filter object containing column name and filter operation and values
3066
3594
  * @example
3067
3595
  *
@@ -3074,7 +3602,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3074
3602
  */
3075
3603
  UpdateFilters = "updateFilters",
3076
3604
  /**
3077
- * Get Tab for the current Liveboard.
3605
+ * Get tab details for the current Liveboard.
3078
3606
  *
3079
3607
  * @example
3080
3608
  * ```js
@@ -3088,9 +3616,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3088
3616
  */
3089
3617
  GetTabs = "getTabs",
3090
3618
  /**
3091
- * Set the visible Tabs on a Liveboard.
3619
+ * Set the visible tabs on a Liveboard.
3092
3620
  *
3093
- * @param - an array of ids of Tabs to show, the ids not passed
3621
+ * @param - an array of ids of tabs to show, the IDs not passed
3094
3622
  * will be hidden.
3095
3623
  * @example
3096
3624
  * ```js
@@ -3104,8 +3632,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3104
3632
  /**
3105
3633
  * Set the hidden tabs on a Liveboard.
3106
3634
  *
3107
- * @param - an array of ids of Tabs to hide, the ids not passed
3108
- * will be shown.
3635
+ * @param - an array of the IDs of the tabs to hide.
3636
+ * The IDs not passed will be shown.
3109
3637
  * @example
3110
3638
  * ```js
3111
3639
  * liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
@@ -3116,9 +3644,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3116
3644
  */
3117
3645
  SetHiddenTabs = "SetPinboardHiddenTabs",
3118
3646
  /**
3119
- * Updates the search query for sage embed.
3647
+ * Updates the search query string for Natural Language Search operations.
3120
3648
  *
3121
- * @param - searchOptions: an object queryString and option to execute the query.
3649
+ * @param - `queryString`: Text string in Natural Language format
3650
+ * @param - `executeSearch`: Boolean to execute search and update search query
3122
3651
  * @example
3123
3652
  * ```js
3124
3653
  * sageEmbed.trigger(HostEvent.UpdateSageQuery, {
@@ -3126,7 +3655,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3126
3655
  * executeSearch: true,
3127
3656
  * })
3128
3657
  * ```
3129
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3658
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
3130
3659
  */
3131
3660
  UpdateSageQuery = "updateSageQuery",
3132
3661
  /**
@@ -3139,24 +3668,36 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3139
3668
  * vizId: '123', // For Liveboard Visualization.
3140
3669
  * })
3141
3670
  * ```
3671
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
3672
+ */
3673
+ GetAnswerSession = "getAnswerSession",
3674
+ /**
3675
+ * Trigger Ask Sage for viz
3676
+ *
3677
+ * @example
3678
+ * ```js
3679
+ * liveboardEmbed.trigger(HostEvent.AskSage,
3680
+ * {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
3681
+ * ```
3682
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3142
3683
  */
3143
- GetAnswerSession = "getAnswerSession"
3684
+ AskSage = "AskSage"
3144
3685
  }
3145
3686
  /**
3146
3687
  * The different visual modes that the data sources panel within
3147
- * search could appear in, i.e., hidden, collapsed, or expanded.
3688
+ * search could appear in, such as hidden, collapsed, or expanded.
3148
3689
  */
3149
3690
  export enum DataSourceVisualMode {
3150
3691
  /**
3151
- * Data source panel is hidden.
3692
+ * The data source panel is hidden.
3152
3693
  */
3153
3694
  Hidden = "hide",
3154
3695
  /**
3155
- * Data source panel is collapsed, but the user can manually expand it.
3696
+ * The data source panel is collapsed, but the user can manually expand it.
3156
3697
  */
3157
3698
  Collapsed = "collapse",
3158
3699
  /**
3159
- * Data source panel is expanded, but the user can manually collapse it.
3700
+ * The data source panel is expanded, but the user can manually collapse it.
3160
3701
  */
3161
3702
  Expanded = "expand"
3162
3703
  }
@@ -3232,7 +3773,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3232
3773
  LiveboardHeaderSticky = "isLiveboardHeaderSticky",
3233
3774
  IsProductTour = "isProductTour",
3234
3775
  HideSearchBarTitle = "hideSearchBarTitle",
3235
- HideSageAnswerHeader = "hideSageAnswerHeader"
3776
+ HideSageAnswerHeader = "hideSageAnswerHeader",
3777
+ HideSearchBar = "hideSearchBar",
3778
+ ClientLogLevel = "clientLogLevel",
3779
+ OverrideNativeConsole = "overrideConsoleLogs",
3780
+ enableAskSage = "enableAskSage"
3236
3781
  }
3237
3782
  /**
3238
3783
  * ThoughtSpot application pages include actions and menu commands
@@ -3292,9 +3837,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3292
3837
  SaveAsView = "saveAsView",
3293
3838
  /**
3294
3839
  * The **Make a copy** action on a Liveboard or Answer
3295
- * page.
3296
- * Creates a copy of the Liveboard, visualization,
3297
- * or Answer.
3840
+ * page. Creates a copy of the Liveboard.
3841
+ * In LiveboardEmbed, the **Make a copy** action is not available for
3842
+ * visualizations in the embedded Liveboard view.
3843
+ * In AppEmbed, the **Make a copy** action is available on both
3844
+ * Liveboards and visualizations.
3298
3845
  *
3299
3846
  * @example
3300
3847
  * ```js
@@ -3478,7 +4025,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3478
4025
  */
3479
4026
  DownloadAsPdf = "downloadAsPdf",
3480
4027
  /**
3481
- * The **Download** > **CSV** menu action for tables on a Liveboard
4028
+ * The **Download** > **CSV** menu action for tables on a Liveboard
3482
4029
  * or Answer page.
3483
4030
  * Downloads a visualization or Answer in the XLSX format.
3484
4031
  *
@@ -4009,6 +4556,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4009
4556
  */
4010
4557
  RenameModalTitleDescription = "renameModalTitleDescription",
4011
4558
  /**
4559
+ *
4012
4560
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
4013
4561
  */
4014
4562
  RequestVerification = "requestVerification",
@@ -4088,7 +4636,17 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4088
4636
  * ```
4089
4637
  * @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
4090
4638
  */
4091
- VerifiedLiveboard = "verifiedLiveboard"
4639
+ VerifiedLiveboard = "verifiedLiveboard",
4640
+ /**
4641
+ * Action ID for ask sage button
4642
+ *
4643
+ * @example
4644
+ * ```js
4645
+ * hiddenAction: [Action.AskAi]
4646
+ * ```
4647
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
4648
+ */
4649
+ AskAi = "AskAi"
4092
4650
  }
4093
4651
  export interface AnswerServiceType {
4094
4652
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -4144,6 +4702,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4144
4702
  session: SessionInterface;
4145
4703
  vizId?: string;
4146
4704
  }
4705
+ export enum LogLevel {
4706
+ SILENT = "SILENT",
4707
+ ERROR = "ERROR",
4708
+ WARN = "WARN",
4709
+ INFO = "INFO",
4710
+ DEBUG = "DEBUG",
4711
+ TRACE = "TRACE"
4712
+ }
4147
4713
  }
4148
4714
 
4149
4715
  declare module '@thoughtspot/visual-embed-sdk/css-variables' {
@@ -4505,14 +5071,14 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
4505
5071
  */
4506
5072
  export interface SearchOptions {
4507
5073
  /**
4508
- * The query string to pre-fill in natual language search bar
5074
+ * The query string to pass for Natural Language Search.
4509
5075
  */
4510
5076
  searchQuery: string;
4511
5077
  /**
4512
- * Boolean to determine if the search should be executed or not.
4513
- * if it is executed, put the focus on the results.
4514
- * if it’s not executed, put the focus in the search bar - at the end of
4515
- * the tokens
5078
+ * Boolean to define if the search should be executed or not.
5079
+ * If it is executed, the focus is placed on the results.
5080
+ * If it’s not executed, the focus is placed at the end of
5081
+ * the token string in the search bar.
4516
5082
  */
4517
5083
  executeSearch?: boolean;
4518
5084
  }
@@ -4520,16 +5086,16 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
4520
5086
  * The configuration attributes for the embedded Natural language search view. Based on
4521
5087
  * GPT and LLM.
4522
5088
  *
4523
- * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
5089
+ * @version: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
4524
5090
  * @group Embed components
4525
5091
  */
4526
5092
  export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
4527
5093
  /**
4528
- * If set to true, a list of liveboard and answers related
5094
+ * If set to true, a list of Liveboard and Answers related
4529
5095
  * to the natural language search will be shown below the
4530
5096
  * AI generated answer.
4531
5097
  *
4532
- * @deprecated Currently liveboard and answers related
5098
+ * @deprecated Currently Liveboard and Answers related
4533
5099
  * to the natural language search will not be shown for sage
4534
5100
  * embed
4535
5101
  */
@@ -4546,63 +5112,81 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
4546
5112
  */
4547
5113
  isProductTour?: boolean;
4548
5114
  /**
4549
- * flag to hide search bar title. default false.
5115
+ * Show or hide the search bar title.
4550
5116
  *
4551
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
5117
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4552
5118
  */
4553
5119
  hideSearchBarTitle?: boolean;
4554
5120
  /**
4555
- * flag to disable Sage Answer header(`AI Answer` title section on top of the Sage
4556
- * answer). default false.
5121
+ * Show or hide the Answer header, that is, the `AI Answer` title
5122
+ * at the top of the Answer page.
4557
5123
  *
4558
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
5124
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
4559
5125
  */
4560
5126
  hideSageAnswerHeader?: boolean;
4561
5127
  /**
4562
- * flag to disable changing worksheet. default false.
5128
+ * Disable the worksheet selection option.
4563
5129
  *
4564
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
5130
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4565
5131
  */
4566
5132
  disableWorksheetChange?: boolean;
4567
5133
  /**
4568
- * flag to hide worksheet selector. default false.
5134
+ * Hide the worksheet selection panel.
5135
+ *
5136
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4569
5137
  */
4570
5138
  hideWorksheetSelector?: boolean;
4571
5139
  /**
4572
- * If set to true, the search bar auto complete search suggestions will not be shown.
4573
- * default false
5140
+ * Show or hide autocomplete suggestions for the search query string.
4574
5141
  *
4575
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
5142
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4576
5143
  */
4577
5144
  hideAutocompleteSuggestions?: boolean;
4578
5145
  /**
4579
- * If set to false, the auto complete search suggestions not be shown
5146
+ * Show or hide autocomplete suggestions for the search query string.
4580
5147
  *
4581
- * @deprecated currently, object suggestions will not be shown for sage embed
4582
- * earlier this flag was used to show Auto complete suggestions
5148
+ * @deprecated
5149
+ * Currently, the object suggestions will not be shown for Natural Language Search.
5150
+ * You can use {@link hideAutocompleteSuggestions} instead.
4583
5151
  */
4584
5152
  showObjectSuggestions?: boolean;
4585
5153
  /**
4586
- * If set to true, sample questions would be hidden to user.
4587
- * These sample questions are autogenerated based on selected datasource.
5154
+ * Show or hide sample questions.
5155
+ * The sample questions are autogenerated based on the worksheet
5156
+ * selected for the search operation.
4588
5157
  *
4589
- * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
5158
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4590
5159
  */
4591
5160
  hideSampleQuestions?: boolean;
4592
5161
  /**
4593
- * The data source GUID to set on load.
5162
+ * The data source GUID (Worksheet GUID) to set on load.
4594
5163
  */
4595
5164
  dataSource?: string;
4596
5165
  /**
4597
- * Configuration for search options
5166
+ * Includes the following properties:
4598
5167
  *
4599
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
5168
+ * `searchQuery`: The search query string to pass in the search bar.
5169
+ * Supports Natural Language Search queries.
5170
+ *
5171
+ * `executeSearch`: Boolean to define if the search should be executed or not.
5172
+ * If it is executed, the focus is placed on the results.
5173
+ * If it’s not executed, the focus is placed at the end of
5174
+ * the token string in the search bar.
5175
+ *
5176
+ * @example
5177
+ * ```js
5178
+ * searchOptions: {
5179
+ * searchQuery: 'average sales by country and product type',
5180
+ * executeSearch: true,
5181
+ * }
5182
+ * ```
5183
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4600
5184
  */
4601
5185
  searchOptions?: SearchOptions;
4602
5186
  }
4603
5187
  export const HiddenActionItemByDefaultForSageEmbed: Action[];
4604
5188
  /**
4605
- * Embed ThoughtSpot LLM and GPT based natural language search component.
5189
+ * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
4606
5190
  *
4607
5191
  * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
4608
5192
  * @group Embed components
@@ -4621,6 +5205,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
4621
5205
  * @returns {string} query string
4622
5206
  */
4623
5207
  protected getEmbedParams(): string;
5208
+ /**
5209
+ * Construct the URL of the embedded ThoughtSpot sage to be
5210
+ * loaded in the iframe
5211
+ *
5212
+ * @returns {string} iframe url
5213
+ */
5214
+ getIFrameSrc(): string;
4624
5215
  /**
4625
5216
  * Render the embedded ThoughtSpot Sage
4626
5217
  *
@@ -4663,8 +5254,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
4663
5254
  * const data = await underlying.fetchData(0, 100);
4664
5255
  * })
4665
5256
  * ```
4666
- * @version
4667
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5257
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
4668
5258
  * @group Events
4669
5259
  */
4670
5260
  export class AnswerService {
@@ -4698,8 +5288,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
4698
5288
  * const data = await underlying.fetchData(0, 100);
4699
5289
  * })
4700
5290
  * ```
4701
- * @version
4702
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5291
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
4703
5292
  */
4704
5293
  getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
4705
5294
  executeQuery(query: string, variables: any): Promise<any>;
@@ -4720,12 +5309,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
4720
5309
  export const getEmbedConfig: () => EmbedConfig;
4721
5310
  /**
4722
5311
  * Sets the configuration embed was initialized with.
5312
+ * And returns the new configuration.
4723
5313
  *
4724
5314
  * @param newConfig The configuration to set.
4725
5315
  * @version SDK: 1.27.0 | ThoughtSpot: *
4726
5316
  * @group Global methods
4727
5317
  */
4728
- export const setEmbedConfig: (newConfig: EmbedConfig) => void;
5318
+ export const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
4729
5319
  }
4730
5320
 
4731
5321
  declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
@@ -4737,8 +5327,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
4737
5327
  * @summary Base classes
4738
5328
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
4739
5329
  */
5330
+ import { DOMSelector, EmbedConfig, EmbedEvent, HostEvent, MessageCallback, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
4740
5331
  import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
4741
- import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, EmbedConfig, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
4742
5332
  /**
4743
5333
  * Global prefix for all Thoughtspot postHash Params.
4744
5334
  */
@@ -4924,6 +5514,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
4924
5514
  * @param args
4925
5515
  */
4926
5516
  render(): TsEmbed;
5517
+ getIframeSrc(): string;
4927
5518
  protected handleRenderForPrerender(): void;
4928
5519
  /**
4929
5520
  * Creates the preRender shell