@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
@@ -231,25 +231,41 @@ export function useEmbedRef<T extends EmbedComponent>(): React.MutableRefObject<
231
231
  export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
232
232
  /**
233
233
  * The array of data source GUIDs to set on load.
234
- * Only a single dataSource supported currently.
234
+ * Only a single data source is supported currently.
235
235
  *
236
- * @deprecated Use dataSource instead
236
+ * @deprecated Use `dataSource` instead
237
237
  */
238
238
  dataSources?: string[];
239
239
  /**
240
240
  * The array of data source GUIDs to set on load.
241
241
  *
242
- * @version: SDK: 1.19.0
242
+ * @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
243
243
  */
244
244
  dataSource?: string;
245
245
  /**
246
- * Flag to set if last selected dataSource should be used
246
+ * Boolean to define if the last selected data source should be used
247
247
  *
248
- * @version: SDK: 1.24.0
248
+ * @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
249
249
  */
250
250
  useLastSelectedSources?: boolean;
251
251
  /**
252
- * Configuration for search options
252
+ * Configuration for search options.
253
+ * Includes the following properties:
254
+ *
255
+ * `searchTokenString`: Search tokens to pass in the query.
256
+ *
257
+ * `executeSearch`: Boolean to define if the search should be executed or not.
258
+ * If it is executed, the focus is placed on the results.
259
+ * If it’s not executed, the focus is placed at the end of
260
+ * the token string in the search bar.
261
+ *
262
+ * @example
263
+ * ```js
264
+ * searchOptions: {
265
+ * searchTokenString: '[quantity purchased] [region]',
266
+ * executeSearch: true,
267
+ * }
268
+ * ```
253
269
  */
254
270
  searchOptions?: SearchOptions;
255
271
  }
@@ -285,14 +301,14 @@ export declare class SearchBarEmbed extends TsEmbed {
285
301
  */
286
302
  export interface SearchOptions {
287
303
  /**
288
- * The query string to pre-fill in natual language search bar
304
+ * The query string to pass for Natural Language Search.
289
305
  */
290
306
  searchQuery: string;
291
307
  /**
292
- * Boolean to determine if the search should be executed or not.
293
- * if it is executed, put the focus on the results.
294
- * if it’s not executed, put the focus in the search bar - at the end of
295
- * the tokens
308
+ * Boolean to define if the search should be executed or not.
309
+ * If it is executed, the focus is placed on the results.
310
+ * If it’s not executed, the focus is placed at the end of
311
+ * the token string in the search bar.
296
312
  */
297
313
  executeSearch?: boolean;
298
314
  }
@@ -300,16 +316,16 @@ export interface SearchOptions {
300
316
  * The configuration attributes for the embedded Natural language search view. Based on
301
317
  * GPT and LLM.
302
318
  *
303
- * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
319
+ * @version: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
304
320
  * @group Embed components
305
321
  */
306
322
  export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
307
323
  /**
308
- * If set to true, a list of liveboard and answers related
324
+ * If set to true, a list of Liveboard and Answers related
309
325
  * to the natural language search will be shown below the
310
326
  * AI generated answer.
311
327
  *
312
- * @deprecated Currently liveboard and answers related
328
+ * @deprecated Currently Liveboard and Answers related
313
329
  * to the natural language search will not be shown for sage
314
330
  * embed
315
331
  */
@@ -326,63 +342,81 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
326
342
  */
327
343
  isProductTour?: boolean;
328
344
  /**
329
- * flag to hide search bar title. default false.
345
+ * Show or hide the search bar title.
330
346
  *
331
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
347
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
332
348
  */
333
349
  hideSearchBarTitle?: boolean;
334
350
  /**
335
- * flag to disable Sage Answer header(`AI Answer` title section on top of the Sage
336
- * answer). default false.
351
+ * Show or hide the Answer header, that is, the `AI Answer` title
352
+ * at the top of the Answer page.
337
353
  *
338
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
354
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
339
355
  */
340
356
  hideSageAnswerHeader?: boolean;
341
357
  /**
342
- * flag to disable changing worksheet. default false.
358
+ * Disable the worksheet selection option.
343
359
  *
344
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
360
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
345
361
  */
346
362
  disableWorksheetChange?: boolean;
347
363
  /**
348
- * flag to hide worksheet selector. default false.
364
+ * Hide the worksheet selection panel.
365
+ *
366
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
349
367
  */
350
368
  hideWorksheetSelector?: boolean;
351
369
  /**
352
- * If set to true, the search bar auto complete search suggestions will not be shown.
353
- * default false
370
+ * Show or hide autocomplete suggestions for the search query string.
354
371
  *
355
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
372
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
356
373
  */
357
374
  hideAutocompleteSuggestions?: boolean;
358
375
  /**
359
- * If set to false, the auto complete search suggestions not be shown
376
+ * Show or hide autocomplete suggestions for the search query string.
360
377
  *
361
- * @deprecated currently, object suggestions will not be shown for sage embed
362
- * earlier this flag was used to show Auto complete suggestions
378
+ * @deprecated
379
+ * Currently, the object suggestions will not be shown for Natural Language Search.
380
+ * You can use {@link hideAutocompleteSuggestions} instead.
363
381
  */
364
382
  showObjectSuggestions?: boolean;
365
383
  /**
366
- * If set to true, sample questions would be hidden to user.
367
- * These sample questions are autogenerated based on selected datasource.
384
+ * Show or hide sample questions.
385
+ * The sample questions are autogenerated based on the worksheet
386
+ * selected for the search operation.
368
387
  *
369
- * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
388
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
370
389
  */
371
390
  hideSampleQuestions?: boolean;
372
391
  /**
373
- * The data source GUID to set on load.
392
+ * The data source GUID (Worksheet GUID) to set on load.
374
393
  */
375
394
  dataSource?: string;
376
395
  /**
377
- * Configuration for search options
396
+ * Includes the following properties:
378
397
  *
379
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
398
+ * `searchQuery`: The search query string to pass in the search bar.
399
+ * Supports Natural Language Search queries.
400
+ *
401
+ * `executeSearch`: Boolean to define if the search should be executed or not.
402
+ * If it is executed, the focus is placed on the results.
403
+ * If it’s not executed, the focus is placed at the end of
404
+ * the token string in the search bar.
405
+ *
406
+ * @example
407
+ * ```js
408
+ * searchOptions: {
409
+ * searchQuery: 'average sales by country and product type',
410
+ * executeSearch: true,
411
+ * }
412
+ * ```
413
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
380
414
  */
381
415
  searchOptions?: SearchOptions;
382
416
  }
383
417
  export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
384
418
  /**
385
- * Embed ThoughtSpot LLM and GPT based natural language search component.
419
+ * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
386
420
  *
387
421
  * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
388
422
  * @group Embed components
@@ -401,6 +435,13 @@ export declare class SageEmbed extends V1Embed {
401
435
  * @returns {string} query string
402
436
  */
403
437
  protected getEmbedParams(): string;
438
+ /**
439
+ * Construct the URL of the embedded ThoughtSpot sage to be
440
+ * loaded in the iframe
441
+ *
442
+ * @returns {string} iframe url
443
+ */
444
+ getIFrameSrc(): string;
404
445
  /**
405
446
  * Render the embedded ThoughtSpot Sage
406
447
  *
@@ -418,18 +459,19 @@ export declare class SageEmbed extends V1Embed {
418
459
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
419
460
  */
420
461
  /**
421
- * Configuration for search options
462
+ * Configuration for search options.
463
+ *
422
464
  */
423
465
  export interface SearchOptions {
424
466
  /**
425
- * The tml string to load the answer
467
+ * Search tokens to pass in the query.
426
468
  */
427
469
  searchTokenString: string;
428
470
  /**
429
- * Boolean to determine if the search should be executed or not.
430
- * if it is executed, put the focus on the results.
431
- * if it’s not executed, put the focus in the search bar - at the end of
432
- * the tokens
471
+ * Boolean to define if the search should be executed or not.
472
+ * If it is executed, the focus is placed on the results.
473
+ * If it’s not executed, the focus is placed at the end of
474
+ * the token string in the search bar.
433
475
  */
434
476
  executeSearch?: boolean;
435
477
  }
@@ -445,11 +487,11 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
445
487
  */
446
488
  collapseDataSources?: boolean;
447
489
  /**
448
- * If set to true, hides the data sources panel.
490
+ * Show or hide the data sources panel.
449
491
  */
450
492
  hideDataSources?: boolean;
451
493
  /**
452
- * If set to true, hides the charts and tables in search answers.
494
+ * Show or hide the charts and tables in search answers.
453
495
  * This attribute can be used to create a custom visualization
454
496
  * using raw answer data.
455
497
  */
@@ -471,9 +513,9 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
471
513
  forceTable?: boolean;
472
514
  /**
473
515
  * The array of data source GUIDs to set on load.
474
- * Only a single dataSource supported currently.
516
+ * Only a single data source is supported currently.
475
517
  *
476
- * @deprecated Use dataSource instead
518
+ * @deprecated Use `dataSource` instead.
477
519
  */
478
520
  dataSources?: string[];
479
521
  /**
@@ -485,11 +527,29 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
485
527
  /**
486
528
  * The initial search query to load the answer with.
487
529
  *
488
- * @deprecated Use {@link searchOptions} instead
530
+ * @deprecated
531
+ *
532
+ * Use {@link searchOptions} instead.
489
533
  */
490
534
  searchQuery?: string;
491
535
  /**
492
- * Configuration for search options
536
+ * Configuration for search options.
537
+ * Includes the following properties:
538
+ *
539
+ * `searchTokenString`: Search tokens to pass in the query.
540
+ *
541
+ * `executeSearch`: Boolean to define if the search should be executed or not.
542
+ * If it is executed, the focus is placed on the results.
543
+ * If it’s not executed, the focus is placed at the end of
544
+ * the token string in the search bar.
545
+ *
546
+ * @example
547
+ * ```js
548
+ * searchOptions: {
549
+ * searchTokenString: '[quantity purchased] [region]',
550
+ * executeSearch: true,
551
+ * }
552
+ * ```
493
553
  */
494
554
  searchOptions?: SearchOptions;
495
555
  /**
@@ -497,10 +557,10 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
497
557
  */
498
558
  answerId?: string;
499
559
  /**
500
- * If set to true, search page will render without the Search Bar
560
+ * If set to true, the search page will render without the Search Bar
501
561
  * The chart/table should still be visible.
502
562
  *
503
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
563
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
504
564
  */
505
565
  hideSearchBar?: boolean;
506
566
  /**
@@ -530,6 +590,14 @@ export declare class SearchEmbed extends TsEmbed {
530
590
  protected viewConfig: SearchViewConfig;
531
591
  constructor(domSelector: DOMSelector, viewConfig: SearchViewConfig);
532
592
  protected getEmbedParams(): string;
593
+ /**
594
+ * Construct the URL of the embedded ThoughtSpot search to be
595
+ * loaded in the iframe
596
+ *
597
+ * @param answerId The GUID of a saved answer
598
+ * @param dataSources A list of data source GUIDs
599
+ */
600
+ getIFrameSrc(): string;
533
601
  /**
534
602
  * Render the embedded ThoughtSpot search
535
603
  */
@@ -586,43 +654,43 @@ export declare enum Page {
586
654
  */
587
655
  export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
588
656
  /**
589
- * If true, the main navigation bar within the ThoughtSpot app
657
+ * If true, the top navigation bar within the ThoughtSpot app
590
658
  * is displayed. By default, the navigation bar is hidden.
591
- * This flag also control the homepage left nav-bar.
659
+ * This flag also controls the homepage left navigation bar.
592
660
  */
593
661
  showPrimaryNavbar?: boolean;
594
662
  /**
595
- * Flag to control Homepage Left Nav Bar
596
- * If showPrimaryNavbar is true, ie navigation bar(Global nav-bar) and Homepage left
597
- * nav-bar is visible, this flag will only hide the homepage left nav.
598
- * Precedence of showPrimaryNavbar flag > hideHomepageLeftNav flag.
663
+ * Control the visibility of the left navigation bar on the Homepage.
664
+ * If showPrimaryNavbar is true, that is, if the Global and Homepage
665
+ * nav-bars are visible, this flag will only hide the homepage left nav-bar.
666
+ * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
599
667
  *
600
668
  * @default false
601
669
  * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
602
670
  */
603
671
  hideHomepageLeftNav?: boolean;
604
672
  /**
605
- * If true, help and profile buttons will hide on NavBar. By default,
606
- * they are shown.
673
+ * Control the visibility of the help (?) and profile buttons on the
674
+ * Global nav-bar. By default, these buttons are visible on the nav-bar.
607
675
  */
608
676
  disableProfileAndHelp?: boolean;
609
677
  /**
610
- * If true, application switcher button will hide on NavBar. By default,
611
- * they are shown.
678
+ * Control the visibility of the application switcher button on the nav-bar.
679
+ * By default, the application switcher is shown.
612
680
  */
613
681
  hideApplicationSwitcher?: boolean;
614
682
  /**
615
- * If true, org switcher button will hide on NavBar. By default,
616
- * they are shown.
683
+ * Control the visibility of the Org switcher button on the nav-bar.
684
+ * By default, the Org switcher button is shown.
617
685
  */
618
686
  hideOrgSwitcher?: boolean;
619
687
  /**
620
- * A URL path within the app that is to be embedded.
688
+ * A URL path to the embedded application page
621
689
  * If both path and pageId attributes are defined, the path definition
622
690
  * takes precedence. This is the path post the `#/` in the URL of the standalone
623
691
  * ThoughtSpot app. Use this to open the embedded view to a specific path.
624
692
  *
625
- * For eg, if you want the component to open to a specific liveboard
693
+ * For eg, if you want the component to open to a specific Liveboard
626
694
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
627
695
  *
628
696
  * @example
@@ -733,6 +801,12 @@ export declare class AppEmbed extends V1Embed {
733
801
  * embedded Liveboard or visualization.
734
802
  */
735
803
  protected getEmbedParams(): string;
804
+ /**
805
+ * Constructs the URL of the ThoughtSpot app page to be rendered.
806
+ *
807
+ * @param pageId The ID of the page to be embedded.
808
+ */
809
+ getIFrameSrc(): string;
736
810
  /**
737
811
  * Set the iframe height as per the computed height received
738
812
  * from the ThoughtSpot app.
@@ -786,8 +860,8 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
786
860
  */
787
861
  fullHeight?: boolean;
788
862
  /**
789
- * This is the minimum height(in pixels) for a full height Liveboard.
790
- * Setting this height helps resolves issues with empty Liveboards and
863
+ * This is the minimum height(in pixels) for a full-height Liveboard.
864
+ * Setting this height helps resolve issues with empty Liveboards and
791
865
  * other screens navigable from a Liveboard.
792
866
  *
793
867
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
@@ -800,7 +874,7 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
800
874
  enableVizTransformations?: boolean;
801
875
  /**
802
876
  * The Liveboard to display in the embedded view.
803
- * Use either of liveboardId or pinboardId to reference the Liveboard to embed.
877
+ * Use either liveboardId or pinboardId to reference the Liveboard to embed.
804
878
  *
805
879
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
806
880
  */
@@ -819,79 +893,91 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
819
893
  * If set to true, all filter chips from a
820
894
  * Liveboard page will be read-only (no X buttons)
821
895
  *
822
- * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
896
+ * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
823
897
  */
824
898
  preventLiveboardFilterRemoval?: boolean;
825
899
  /**
826
- * Array of viz ids which should be visible when the liveboard
827
- * first renders. This can be changed by triggering the "SetVisibleVizs"
900
+ * Array of visualization IDs which should be visible when the Liveboard
901
+ * renders. This can be changed by triggering the `SetVisibleVizs`
828
902
  * event.
829
903
  *
830
904
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
831
905
  */
832
906
  visibleVizs?: string[];
833
907
  /**
834
- * To support backward compatibilty
908
+ * To support backward compatibility
835
909
  *
836
910
  * @hidden
837
911
  */
838
912
  preventPinboardFilterRemoval?: boolean;
839
913
  /**
840
- * Render embedded Liveboards and visualizations in the new Liveboard experience mode
914
+ * Render embedded Liveboards and visualizations in the
915
+ * new Liveboard experience mode.
841
916
  *
842
917
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
843
918
  */
844
919
  liveboardV2?: boolean;
845
920
  /**
846
- * Tab ID of the Liveboard that is supposed to be active
921
+ * Set a Liveboard tab as an active tab.
922
+ * Specify the tab ID.
847
923
  *
848
924
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
849
925
  */
850
926
  activeTabId?: string;
851
927
  /**
852
- * Hide tab Panel of embedded LB
928
+ * Show or hide the tab panel of the embedded Liveboard.
853
929
  *
854
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
930
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
855
931
  */
856
932
  hideTabPanel?: boolean;
857
933
  /**
858
- * Show or hide Liveboard header
934
+ * Show or hide the Liveboard header.
859
935
  *
860
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
936
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
861
937
  * @default false
862
938
  */
863
939
  hideLiveboardHeader?: boolean;
864
940
  /**
865
- * Show or hide Liveboard title
941
+ * Show or hide the Liveboard title.
866
942
  *
867
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
943
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
868
944
  * @default false
869
945
  */
870
946
  showLiveboardTitle?: boolean;
871
947
  /**
872
- * Show or hide Liveboard description
948
+ * Show or hide the Liveboard description.
873
949
  *
874
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
950
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
875
951
  * @default false
876
952
  */
877
953
  showLiveboardDescription?: boolean;
878
954
  /**
879
- * Boolean for sticky Liveboard header.
955
+ * Control the position and visibility of
956
+ * the Liveboard header as the users scroll down the
957
+ * embedded Liveboard page.
880
958
  *
881
959
  * @example
882
960
  * ```js
883
961
  * const embed = new LiveboardEmbed('#embed', {
884
- * ... // other liveboard view config
962
+ * ... // other Liveboard view config
885
963
  * isLiveboardHeaderSticky: true,
886
964
  * });
887
965
  * ```
888
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
966
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
889
967
  */
890
968
  isLiveboardHeaderSticky?: boolean;
969
+ /**
970
+ * enable or disable ask sage
971
+ *
972
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
973
+ * @default true
974
+ */
975
+ enableAskSage?: boolean;
891
976
  }
892
977
  /**
893
- * Embed a ThoughtSpot Liveboard or a Thoughtspot visualization. When rendered it already
894
- * waits for the authentication to complete, so no need to wait for AuthStatus.SUCCESS.
978
+ * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
979
+ * waits for the authentication to complete, so you need not wait for
980
+ * `AuthStatus.SUCCESS`.
895
981
  *
896
982
  * @example
897
983
  * ```js
@@ -963,7 +1049,7 @@ export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewCon
963
1049
  * @summary ThoughtSpot Visual Embed SDK
964
1050
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
965
1051
  */
966
- 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, };
1052
+ 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, };
967
1053
 
968
1054
  /**
969
1055
  * Copyright (c) 2023
@@ -994,10 +1080,14 @@ export declare enum AuthType {
994
1080
  */
995
1081
  None = "None",
996
1082
  /**
997
- * Passthrough SSO to the embedded App within the iframe. Requires least
1083
+ * Passthrough SSO to the embedded application within the iframe. Requires least
998
1084
  * configuration, but may not be supported by all IDPs. This will behave like `None`
999
1085
  * if SSO is not configured on ThoughtSpot.
1000
1086
  *
1087
+ * To use this:
1088
+ * Your SAML or OpenID provider must allow iframe redirects.
1089
+ * For example, if you are using Okta as IdP, you can enable iframe embedding.
1090
+ *
1001
1091
  * @example
1002
1092
  * ```js
1003
1093
  * init({
@@ -1005,12 +1095,7 @@ export declare enum AuthType {
1005
1095
  * authType: AuthType.EmbeddedSSO,
1006
1096
  * });
1007
1097
  * ```
1008
- * Set authentication type as Embedded SSO.
1009
- *
1010
- * To use this:
1011
- * Your SAML or OpenID provider must allow iframe redirects.
1012
- * eg. If you are using okta as IdP, you can enable iFrame embedding.
1013
- * @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
1098
+ * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
1014
1099
  */
1015
1100
  EmbeddedSSO = "EmbeddedSSO",
1016
1101
  /**
@@ -1029,10 +1114,10 @@ export declare enum AuthType {
1029
1114
  SAML = "SSO_SAML",
1030
1115
  /**
1031
1116
  * SSO using SAML
1032
- * Will make the host application redirect to the SAML Idp. Use this
1033
- * when the idp does not allow itself to be embedded.
1117
+ * Makes the host application redirect to the SAML IdP. Use this
1118
+ * if your IdP does not allow itself to be embedded.
1034
1119
  *
1035
- * This redirects the host application to the SAML Idp. The host application
1120
+ * This redirects the host application to the SAML IdP. The host application
1036
1121
  * will be redirected back to the ThoughtSpot app after authentication.
1037
1122
  *
1038
1123
  * @example
@@ -1043,7 +1128,7 @@ export declare enum AuthType {
1043
1128
  * });
1044
1129
  * ```
1045
1130
  *
1046
- * This opens the SAML Idp in a popup window. The popup is triggered
1131
+ * This opens the SAML IdP in a popup window. The popup is triggered
1047
1132
  * when the user clicks the trigger button. The popup window will be
1048
1133
  * closed automatically after authentication.
1049
1134
  * @example
@@ -1057,8 +1142,8 @@ export declare enum AuthType {
1057
1142
  * });
1058
1143
  * ```
1059
1144
  *
1060
- * Can also use event to trigger the popup flow. Works the same
1061
- * as above example.
1145
+ * Can also use the event to trigger the popup flow. Works the same
1146
+ * as the above example.
1062
1147
  * @example
1063
1148
  * ```js
1064
1149
  * const authEE = init({
@@ -1082,7 +1167,7 @@ export declare enum AuthType {
1082
1167
  OIDC = "SSO_OIDC",
1083
1168
  /**
1084
1169
  * SSO using OIDC
1085
- * Will make the host application redirect to the OIDC Idp.
1170
+ * Will make the host application redirect to the OIDC IdP.
1086
1171
  * See code samples in {@link SAMLRedirect}.
1087
1172
  */
1088
1173
  OIDCRedirect = "SSO_OIDC",
@@ -1094,8 +1179,8 @@ export declare enum AuthType {
1094
1179
  */
1095
1180
  AuthServer = "AuthServer",
1096
1181
  /**
1097
- * Trusted authentication server, Use your own authentication server
1098
- * which returns a bearer token, generated using the secret_key obtained
1182
+ * Trusted authentication server. Use your own authentication server
1183
+ * which returns a bearer token, generated using the `secret_key` obtained
1099
1184
  * from ThoughtSpot.
1100
1185
  *
1101
1186
  * @example
@@ -1112,11 +1197,11 @@ export declare enum AuthType {
1112
1197
  */
1113
1198
  TrustedAuthToken = "AuthServer",
1114
1199
  /**
1115
- * Trusted authentication server Cookieless, Use you own authentication
1116
- * server which returns a bearer token, generated using the secret_key
1200
+ * Trusted authentication server Cookieless, Use your own authentication
1201
+ * server which returns a bearer token, generated using the `secret_key`
1117
1202
  * obtained from ThoughtSpot. This uses a cookieless authentication
1118
- * approach, recommended to by pass third-party cookie-blocking restriction
1119
- * implemented by some browsers
1203
+ * approach, recommended to bypass the third-party cookie-blocking restriction
1204
+ * implemented by some browsers.
1120
1205
  *
1121
1206
  * @example
1122
1207
  * ```js
@@ -1129,7 +1214,7 @@ export declare enum AuthType {
1129
1214
  * .then((data) => data.token);
1130
1215
  * }
1131
1216
  * ```
1132
- * @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1.sw
1217
+ * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1133
1218
  */
1134
1219
  TrustedAuthTokenCookieless = "AuthServerCookieless",
1135
1220
  /**
@@ -1251,13 +1336,19 @@ export interface EmbedConfig {
1251
1336
  * The ThoughtSpot cluster hostname or IP address.
1252
1337
  */
1253
1338
  thoughtSpotHost: string;
1339
+ /**
1340
+ * If true, all the iframe links will have /v2 added automatically.
1341
+ * If false, all the iframe links will have /v1 added automatically.
1342
+ * If undefined, nothing will be added
1343
+ */
1344
+ enableReactShell?: boolean | undefined;
1254
1345
  /**
1255
1346
  * The authentication mechanism to use.
1256
1347
  */
1257
1348
  authType: AuthType;
1258
1349
  /**
1259
1350
  * [AuthServer] The trusted authentication endpoint to use to get the
1260
- * authentication token. A GET request is made to the
1351
+ * authentication token. A `GET` request is made to the
1261
1352
  * authentication API endpoint, which returns the token
1262
1353
  * as a plaintext response. For trusted authentication,
1263
1354
  * the `authEndpoint` or `getAuthToken` attribute is required.
@@ -1270,8 +1361,8 @@ export interface EmbedConfig {
1270
1361
  * attribute is required.
1271
1362
  *
1272
1363
  * It is advisable to fetch a new token inside this method and not
1273
- * reuse and older issued token, as because when auth expires this is
1274
- * called again and if it is called with an older token the authentication
1364
+ * reuse the old issued token. When auth expires this method is
1365
+ * called again and if it is called with an older token, the authentication
1275
1366
  * will not succeed.
1276
1367
  */
1277
1368
  getAuthToken?: () => Promise<string>;
@@ -1281,7 +1372,7 @@ export interface EmbedConfig {
1281
1372
  */
1282
1373
  username?: string;
1283
1374
  /**
1284
- * [Basic] The ThoughtSpot login password corresponding to the user name
1375
+ * [Basic] The ThoughtSpot login password corresponding to the username
1285
1376
  *
1286
1377
  * Warning: This feature is primarily intended for developer testing. It is
1287
1378
  * strongly advised not to use this authentication method in production.
@@ -1289,7 +1380,7 @@ export interface EmbedConfig {
1289
1380
  password?: string;
1290
1381
  /**
1291
1382
  * [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
1292
- * open the SAML auth flow in a popup, instead of redirecting browser in
1383
+ * open the SAML auth flow in a popup, instead of redirecting the browser in
1293
1384
  * place.
1294
1385
  *
1295
1386
  * @default false
@@ -1298,91 +1389,93 @@ export interface EmbedConfig {
1298
1389
  noRedirect?: boolean;
1299
1390
  /**
1300
1391
  * [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
1301
- * the SAML auth flow in a popup, instead of redirecting browser in place.
1392
+ * the SAML auth flow in a popup, instead of redirecting the browser in place.
1302
1393
  *
1303
- * Need to use this with authTriggerContainer. Or manually trigger
1304
- * the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
1394
+ * Need to use this with `authTriggerContainer`. Or manually trigger
1395
+ * the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
1305
1396
  *
1306
1397
  * @default false
1307
1398
  * @version SDK: 1.18.0
1308
1399
  */
1309
1400
  inPopup?: boolean;
1310
1401
  /**
1311
- * [SSO] For SSO Authentication, one can supply an optional path param,
1312
- * this will be the path on the host origin where the SAML flow will be
1402
+ * [SSO] For SSO Authentication, one can supply an optional path param;
1403
+ * This will be the path on the host origin where the SAML flow will be
1313
1404
  * terminated.
1314
1405
  *
1315
1406
  * Eg: "/dashboard", "#/foo" [Do not include the host]
1316
1407
  *
1317
- * @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
1408
+ * @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
1318
1409
  */
1319
1410
  redirectPath?: string;
1320
1411
  /** @internal */
1321
1412
  basepath?: string;
1322
1413
  /**
1323
- * Should we encode URL Query Params using base64 encoding which thoughtspot
1324
- * will generate for embedding. This provides additional security to
1325
- * thoughtspot clusters against Cross site scripting attacks.
1414
+ * Boolean to define if the query parameters in the ThoughtSpot URL
1415
+ * should be encoded in base64. This provides additional security to
1416
+ * Thoughtspot clusters against cross-site scripting attacks.
1326
1417
  *
1327
1418
  * @default false
1328
1419
  */
1329
1420
  shouldEncodeUrlQueryParams?: boolean;
1330
1421
  /**
1331
- * Suppress cookie access alert when third party cookies are blocked by the
1332
- * user's browser. Third party cookie blocking is the default behaviour on
1333
- * Safari and opt-in for Firefox/Chrome. If you set this to `true`, you are
1334
- * encouraged to handle `noCookieAccess` event, to show your own treatment
1422
+ * Suppress cookie access alert when third-party cookies are blocked by the
1423
+ * user's browser. Third-party cookie blocking is the default behaviour on
1424
+ * some web browsers like Safari. If you set this attribute to `true`,
1425
+ * you are encouraged to handle `noCookieAccess` event, to show your own treatment
1335
1426
  * in this case.
1336
1427
  *
1337
1428
  * @default false
1338
1429
  */
1339
1430
  suppressNoCookieAccessAlert?: boolean;
1340
1431
  /**
1341
- * Ignore cookie access alert when third party cookies are blocked by the
1432
+ * Ignore the cookie access alert when third-party cookies are blocked by the
1342
1433
  * user's browser. If you set this to `true`, the embedded iframe behaviour
1343
- * persist even in case of non logged in user.
1434
+ * persists even in the case of a non-logged-in user.
1344
1435
  *
1345
1436
  * @default false
1346
1437
  */
1347
1438
  ignoreNoCookieAccess?: boolean;
1348
1439
  /**
1349
- * Re-login when session expires with the previous login options
1440
+ * Re-login a user with the previous login options
1441
+ * when a user session expires.
1350
1442
  *
1351
1443
  * @default false
1352
1444
  */
1353
1445
  autoLogin?: boolean;
1354
1446
  /**
1355
1447
  * Disable redirection to the login page when the embedded session expires
1356
- * This flag is typically used alongside the combination of auth modes such as {@link
1357
- * AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
1448
+ * This flag is typically used alongside the combination of authentication modes such
1449
+ * as {@link AuthType.AuthServer} and auto-login behavior {@link
1450
+ * EmbedConfig.autoLogin}
1358
1451
  *
1359
1452
  * @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1360
1453
  * @default false
1361
1454
  */
1362
1455
  disableLoginRedirect?: boolean;
1363
1456
  /**
1364
- * This message is displayed on the embed view when the login fails.
1457
+ * This message is displayed in the embedded view when a user login fails.
1365
1458
  *
1366
1459
  * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
1367
1460
  */
1368
1461
  loginFailedMessage?: string;
1369
1462
  /**
1370
- * Calls the prefetch method internally when set to true
1463
+ * Calls the prefetch method internally when set to `true`
1371
1464
  *
1372
1465
  * @default false
1373
1466
  */
1374
1467
  callPrefetch?: boolean;
1375
1468
  /**
1376
- * When there are multiple embeds, queue the render of embed to start
1377
- * after the previous embed's render is complete. This helps in the load
1378
- * performance by decreasing the load on the browser.
1469
+ * When there are multiple objects embedded, queue the rendering of embedded objects
1470
+ * to start after the previous embed's render is complete. This helps improve
1471
+ * performance by decreasing the load on the browser.
1379
1472
  *
1380
1473
  * @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1381
1474
  * @default false
1382
1475
  */
1383
1476
  queueMultiRenders?: boolean;
1384
1477
  /**
1385
- * Dynamic CSS Url to be injected in the loaded application.
1478
+ * Dynamic CSS URL to be injected in the loaded application.
1386
1479
  * You would also need to set `style-src` in the CSP settings.
1387
1480
  *
1388
1481
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1390,9 +1483,9 @@ export interface EmbedConfig {
1390
1483
  */
1391
1484
  customCssUrl?: string;
1392
1485
  /**
1393
- * [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
1486
+ * [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
1394
1487
  * additional call. This is slower and should be avoided. Listen to the
1395
- * NO_COOKIE_ACCESS event to handle the situation.
1488
+ * `NO_COOKIE_ACCESS` event to handle the situation.
1396
1489
  *
1397
1490
  * This is slightly slower than letting the browser handle the cookie check, as it
1398
1491
  * involves an extra network call.
@@ -1401,26 +1494,26 @@ export interface EmbedConfig {
1401
1494
  */
1402
1495
  detectCookieAccessSlow?: boolean;
1403
1496
  /**
1404
- * Hide beta alert warning message for SearchEmbed.
1497
+ * Hide the `beta` alert warning message for SearchEmbed.
1405
1498
  *
1406
1499
  * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
1407
1500
  */
1408
1501
  suppressSearchEmbedBetaWarning?: boolean;
1409
1502
  /**
1410
- * Hide beta alert warning message for SageEmbed.
1503
+ * Hide `beta` alert warning message for SageEmbed.
1411
1504
  *
1412
1505
  */
1413
1506
  suppressSageEmbedBetaWarning?: boolean;
1414
1507
  /**
1415
1508
  * Custom style params for embed Config.
1416
1509
  *
1417
- * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
1510
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1418
1511
  */
1419
1512
  customizations?: CustomisationsInterface;
1420
1513
  /**
1421
- * For inPopup SAMLRedirect or OIDCRedirect Auth, we need a button which the user
1422
- * click to trigger the flow. This is the containing element
1423
- * for that button.
1514
+ * For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
1515
+ * button that the user can click to trigger the flow.
1516
+ * This attribute sets a containing element for that button.
1424
1517
  *
1425
1518
  * @example
1426
1519
  * ```js
@@ -1430,11 +1523,11 @@ export interface EmbedConfig {
1430
1523
  * authTriggerContainer: '#auth-trigger-container'
1431
1524
  * })
1432
1525
  * ```
1433
- * @version SDK: 1.17.0 | ThoughtSpot: *
1526
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1434
1527
  */
1435
1528
  authTriggerContainer?: string | HTMLElement;
1436
1529
  /**
1437
- * Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
1530
+ * Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
1438
1531
  * SAML popup. This is useful when you want to trigger the popup on a custom user
1439
1532
  * action.
1440
1533
  *
@@ -1442,20 +1535,22 @@ export interface EmbedConfig {
1442
1535
  useEventForSAMLPopup?: boolean;
1443
1536
  /**
1444
1537
  * Text to show in the button which triggers the popup auth flow.
1445
- * Default: "Authorize".
1538
+ * Default: `Authorize`.
1446
1539
  *
1447
- * @version SDK: 1.17.0 | ThoughtSpot: *
1540
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1448
1541
  */
1449
1542
  authTriggerText?: string;
1450
1543
  /**
1451
- * Disable Full App access of Embedded app outside of the iFrame.
1544
+ * Prevent users from accessing the full application or ThoughtSpot application pages
1545
+ * access to the embedded application users
1546
+ * outside of the iframe.
1452
1547
  *
1453
1548
  * @default true
1454
1549
  * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1455
1550
  */
1456
1551
  blockNonEmbedFullAppAccess?: boolean;
1457
1552
  /**
1458
- * Host config incase embedded app is inside TS app itself
1553
+ * Host config in case embedded app is inside TS app itself
1459
1554
  *
1460
1555
  * @hidden
1461
1556
  */
@@ -1477,21 +1572,35 @@ export interface EmbedConfig {
1477
1572
  * @version SDK: 1.26.2 | ThoughtSpot: *
1478
1573
  */
1479
1574
  suppressErrorAlerts?: boolean;
1575
+ /**
1576
+ * Log level for the SDK.
1577
+ *
1578
+ * @default LogLevel.ERROR
1579
+ * @example
1580
+ * ```js
1581
+ * init({
1582
+ * ...embedConfig,
1583
+ * logLevel: LogLevel.SILENT
1584
+ * })
1585
+ * ```
1586
+ * @version SDK: 1.26.5 | ThoughtSpot: 9.10.0.cl
1587
+ */
1588
+ logLevel?: LogLevel;
1480
1589
  }
1481
1590
  export interface LayoutConfig {
1482
1591
  }
1483
1592
  /**
1484
- * Embedded iFrame configuration
1593
+ * Embedded iframe configuration
1485
1594
  *
1486
1595
  * @group Embed components
1487
1596
  */
1488
1597
  export interface FrameParams {
1489
1598
  /**
1490
- * The width of the iFrame (unit is pixels if numeric).
1599
+ * The width of the iframe (unit is pixels if numeric).
1491
1600
  */
1492
1601
  width?: number | string;
1493
1602
  /**
1494
- * The height of the iFrame (unit is pixels if numeric).
1603
+ * The height of the iframe (unit is pixels if numeric).
1495
1604
  */
1496
1605
  height?: number | string;
1497
1606
  /**
@@ -1592,7 +1701,6 @@ export interface ViewConfig {
1592
1701
  */
1593
1702
  runtimeParameters?: RuntimeParameter[];
1594
1703
  /**
1595
- /**
1596
1704
  * The locale/language to use for the embedded view.
1597
1705
  *
1598
1706
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
@@ -1692,31 +1800,30 @@ export interface ViewConfig {
1692
1800
  */
1693
1801
  reorderedHomepageModules?: HomepageModule[];
1694
1802
  /**
1695
- * The list of tab IDs to show in the embedded.
1696
- * Only this Tabs will be shown in their respective LBs.
1697
- * Use this to show an tabID.
1803
+ * The list of tab IDs to show in the embedded Liveboard.
1804
+ * Only the tabs specified in the array will be shown in the Liveboard.
1698
1805
  *
1699
- * Use either this or hiddenTabs.
1806
+ * Use either `visibleTabs` or `hiddenTabs`.
1700
1807
  *
1701
1808
  * @example
1702
1809
  * ```js
1703
- * const embed = new LiveboardEmbed('#embed', {
1704
- * ... // other liveboard view config
1705
- * visibleTabs: [
1810
+ * visibleTabs: [
1706
1811
  * '430496d6-6903-4601-937e-2c691821af3c',
1707
- * 'f547ec54-2a37-4516-a222-2b06719af726']
1708
- * });
1812
+ * 'f547ec54-2a37-4516-a222-2b06719af726']
1709
1813
  * ```
1710
1814
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1711
1815
  */
1712
1816
  visibleTabs?: string[];
1713
1817
  /**
1714
- * homepageLeftNavItems : show/hide Homeapage Left Nav Bar Items
1715
- * There are 8 home nav list items, we will send those item as list
1716
- * which we want to hide for TSE.
1717
- * eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
1818
+ * homepageLeftNavItems : Show or hide the left navigation bar items.
1819
+ * There are 8 eight home navigation list items.
1820
+ * To hide these items, specify the string in the array.
1718
1821
  *
1719
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
1822
+ * ```js
1823
+ * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
1824
+ * ```
1825
+ *
1826
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
1720
1827
  */
1721
1828
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1722
1829
  /**
@@ -1732,7 +1839,7 @@ export interface ViewConfig {
1732
1839
  * });
1733
1840
  * embed.showPreRender();
1734
1841
  * ```
1735
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1842
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
1736
1843
  */
1737
1844
  preRenderId?: string;
1738
1845
  /**
@@ -1771,7 +1878,7 @@ export type MessagePayload = {
1771
1878
  status?: string;
1772
1879
  };
1773
1880
  /**
1774
- * MessageOptions: By Providing options, getting specific event start / end based on
1881
+ * MessageOptions: By providing options, getting specific event start / end based on
1775
1882
  * option
1776
1883
  *
1777
1884
  * @group Events
@@ -1779,7 +1886,7 @@ export type MessagePayload = {
1779
1886
  export type MessageOptions = {
1780
1887
  /**
1781
1888
  * A boolean value indicating that start status events of this type
1782
- * will be dispatched
1889
+ * will be dispatched.
1783
1890
  */
1784
1891
  start?: boolean;
1785
1892
  };
@@ -1799,7 +1906,7 @@ responder?: (data: any) => void) => void;
1799
1906
  */
1800
1907
  export type MessageCallbackObj = {
1801
1908
  /**
1802
- * options: It contains start, A boolean value indicating that start
1909
+ * options: It contains start, a boolean value indicating that start
1803
1910
  * status events of this type will be dispatched
1804
1911
  */
1805
1912
  options: MessageOptions;
@@ -1871,7 +1978,7 @@ export declare enum RuntimeFilterOp {
1871
1978
  IN = "IN"
1872
1979
  }
1873
1980
  /**
1874
- * Home page module that can be hide
1981
+ * Home page module that can be hidden
1875
1982
  */
1876
1983
  export declare enum HomepageModule {
1877
1984
  /**
@@ -1887,7 +1994,7 @@ export declare enum HomepageModule {
1887
1994
  */
1888
1995
  Favorite = "FAVORITE",
1889
1996
  /**
1890
- * List of answers and liveboards
1997
+ * List of answers and Liveboards
1891
1998
  */
1892
1999
  MyLibrary = "MY_LIBRARY",
1893
2000
  /**
@@ -1920,7 +2027,7 @@ export interface RuntimeFilter {
1920
2027
  values: (number | boolean | string)[];
1921
2028
  }
1922
2029
  /**
1923
- * A filter that can be applied to ThoughtSpot answers, Liveboards, or
2030
+ * A filter that can be applied to ThoughtSpot Answers, Liveboards, or
1924
2031
  * visualizations at runtime.
1925
2032
  */
1926
2033
  export interface RuntimeParameter {
@@ -1957,12 +2064,26 @@ export declare enum EmbedEvent {
1957
2064
  /**
1958
2065
  * Rendering has initialized.
1959
2066
  *
2067
+ * @example
2068
+ *```js
2069
+ * liveboardEmbed.on(EmbedEvent.Init, showLoader)
2070
+ * //show a loader
2071
+ * function showLoader() {
2072
+ * document.getElementById("loader");
2073
+ * }
2074
+ *```
1960
2075
  * @returns timestamp - The timestamp when the event was generated.
1961
2076
  */
1962
2077
  Init = "init",
1963
2078
  /**
1964
2079
  * Authentication has either succeeded or failed.
1965
2080
  *
2081
+ * @example
2082
+ *```js
2083
+ * appEmbed.on(EmbedEvent.AuthInit, payload => {
2084
+ * console.log('AuthInit', payload);
2085
+ * })
2086
+ *```
1966
2087
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
1967
2088
  */
1968
2089
  AuthInit = "authInit",
@@ -1970,37 +2091,91 @@ export declare enum EmbedEvent {
1970
2091
  * The embed object container has loaded.
1971
2092
  *
1972
2093
  * @returns timestamp - The timestamp when the event was generated.
2094
+ * @example
2095
+ *```js
2096
+ * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
2097
+ * //hide loader
2098
+ * function hideLoader() {
2099
+ * document.getElementById("loader");
2100
+ * }
2101
+ *```
1973
2102
  */
1974
2103
  Load = "load",
1975
2104
  /**
1976
2105
  * Data pertaining to answer or Liveboard is received
1977
2106
  *
1978
2107
  * @return data - The answer or Liveboard data
2108
+ * @example
2109
+ *```js
2110
+ * liveboardEmbed.on(EmbedEvent.Data, payload => {
2111
+ * console.log('data', payload);
2112
+ * })
2113
+ *```
1979
2114
  * @important
1980
2115
  */
1981
2116
  Data = "data",
1982
2117
  /**
1983
- * Search/answer/Liveboard filters have been applied/updated by the user.
2118
+ * Search/Answer/Liveboard filters have been applied/updated by the user.
1984
2119
  *
1985
2120
  * @hidden
1986
2121
  */
1987
2122
  FiltersChanged = "filtersChanged",
1988
2123
  /**
1989
2124
  * Search query has been updated by the user.
2125
+ *
2126
+ * @example
2127
+ *```js
2128
+ * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
2129
+ *```
1990
2130
  */
1991
2131
  QueryChanged = "queryChanged",
1992
2132
  /**
1993
- * A drill down operation has been performed.
2133
+ * A drill-down operation has been performed.
1994
2134
  *
1995
2135
  * @returns additionalFilters - Any additional filters applied
1996
2136
  * @returns drillDownColumns - The columns on which drill down was performed
1997
2137
  * @returns nonFilteredColumns - The columns that were not filtered
2138
+ * @example
2139
+ *```js
2140
+ * searchEmbed.trigger(HostEvent.DrillDown, {
2141
+ * points: {
2142
+ * clickedPoint,
2143
+ * selectedPoints: selectedPoint
2144
+ * },
2145
+ * autoDrillDown: true,
2146
+ * })
2147
+ *```
2148
+ * In this example, `VizPointDoubleClick` event is used for
2149
+ * triggering the `DrillDown` event when an area or specific
2150
+ * data point on a table or chart is double-clicked.
2151
+ * @example
2152
+ *```js
2153
+ * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
2154
+ * console.log(payload);
2155
+ * const clickedPoint = payload.data.clickedPoint;
2156
+ * const selectedPoint = payload.data.selectedPoints;
2157
+ * console.log('>>> called', clickedPoint);
2158
+ * embed.trigger(HostEvent.DrillDown, {
2159
+ * points: {
2160
+ * clickedPoint,
2161
+ * selectedPoints: selectedPoint
2162
+ * },
2163
+ * autoDrillDown: true,
2164
+ * })
2165
+ * })
2166
+ *```
1998
2167
  */
1999
2168
  Drilldown = "drillDown",
2000
2169
  /**
2001
2170
  * One or more data sources have been selected.
2002
2171
  *
2003
2172
  * @returns dataSourceIds - the list of data sources
2173
+ * @example
2174
+ * ```js
2175
+ * searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
2176
+ * console.log('DataSourceSelected', payload);
2177
+ * })
2178
+ * ```
2004
2179
  */
2005
2180
  DataSourceSelected = "dataSourceSelected",
2006
2181
  /**
@@ -2008,25 +2183,49 @@ export declare enum EmbedEvent {
2008
2183
  *
2009
2184
  * @returns columnIds - the list of columns
2010
2185
  * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2186
+ * @example
2187
+ * ```js
2188
+ * appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
2189
+ * console.log('AddRemoveColumns', payload);
2190
+ * })
2191
+ * ```
2011
2192
  */
2012
2193
  AddRemoveColumns = "addRemoveColumns",
2013
2194
  /**
2014
- * A custom action has been triggered
2195
+ * A custom action has been triggered.
2015
2196
  *
2016
- * @returns actionId - The id of the custom action
2017
- * @returns data - The answer or Liveboard data
2197
+ * @returns actionId - ID of the custom action
2198
+ * @returns data - Response payload with the Answer or Liveboard data
2199
+ * @example
2200
+ * ```js
2201
+ * appEmbed.on(EmbedEvent.customAction, payload => {
2202
+ * const data = payload.data;
2203
+ * if (data.id === 'insert Custom Action ID here') {
2204
+ * console.log('Custom Action event:', data.embedAnswerData);
2205
+ * }
2206
+ * })
2207
+ * ```
2018
2208
  */
2019
2209
  CustomAction = "customAction",
2020
2210
  /**
2021
- * Listen to double clicks on a visualization
2211
+ * Listen to double click actions on a visualization.
2022
2212
  *
2023
- * @return ContextMenuInputPoints - data point that is double clicked
2213
+ * @return ContextMenuInputPoints - Data point that is double-clicked
2024
2214
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2215
+ * @example
2216
+ * ```js
2217
+ * livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
2218
+ * console.log('VizPointDoubleClick', payload)
2219
+ * })
2220
+ * ```
2025
2221
  */
2026
2222
  VizPointDoubleClick = "vizPointDoubleClick",
2027
2223
  /**
2028
- * Listen to clicks on a visualization in a liveboard or Search result.
2224
+ * Listen to clicks on a visualization in a Liveboard or Search result.
2029
2225
  *
2226
+ * @return viz, clickedPoint - metadata about the point that is clicked
2227
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2228
+ * @important
2030
2229
  * @example
2031
2230
  * ```js
2032
2231
  * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
@@ -2039,25 +2238,42 @@ export declare enum EmbedEvent {
2039
2238
  * )
2040
2239
  * });
2041
2240
  * ```
2042
- * @return viz, clickedPoint - metadata about point that is clicked
2043
- * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2044
- * @important
2045
2241
  */
2046
2242
  VizPointClick = "vizPointClick",
2047
2243
  /**
2048
2244
  * An error has occurred.
2049
2245
  *
2050
2246
  * @returns error - An error object or message
2247
+ * @example
2248
+ * ```js
2249
+ * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
2250
+ * //show error messaage
2251
+ * function showErrorMsg() {
2252
+ * document.getElementById("error");
2253
+ * ```
2051
2254
  */
2052
2255
  Error = "Error",
2053
2256
  /**
2054
- * The embedded object has sent an alert
2257
+ * The embedded object has sent an alert.
2055
2258
  *
2056
2259
  * @returns alert - An alert object
2260
+ * @example
2261
+ * ```js
2262
+ * searchEmbed.on(EmbedEvent.Alert)
2263
+ * ```
2057
2264
  */
2058
2265
  Alert = "alert",
2059
2266
  /**
2060
2267
  * The ThoughtSpot auth session has expired.
2268
+ *
2269
+ * @example
2270
+ *```js
2271
+ * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
2272
+ * //show auth expired banner
2273
+ * function showAuthExpired() {
2274
+ * document.getElementById("authExpiredBanner");
2275
+ * }
2276
+ *```
2061
2277
  */
2062
2278
  AuthExpire = "ThoughtspotAuthExpired",
2063
2279
  /**
@@ -2087,14 +2303,27 @@ export declare enum EmbedEvent {
2087
2303
  */
2088
2304
  EmbedIframeCenter = "EmbedIframeCenter",
2089
2305
  /**
2090
- * Emitted when the "Get Data" button in Search Bar embed
2091
- * is clicked.
2306
+ * Emitted when the **Get Data** action is initiated.
2307
+ * Applicable to `SearchBarEmbed` only.
2092
2308
  *
2093
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0.sw
2309
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2310
+ * @example
2311
+ *```js
2312
+ * searchbarEmbed.on(EmbedEvent.GetDataClick)
2313
+ * .then(data => {
2314
+ * console.log('Answer Data:', data);
2315
+ * })
2316
+ *```
2094
2317
  */
2095
2318
  GetDataClick = "getDataClick",
2096
2319
  /**
2097
2320
  * Detects the route change.
2321
+ *
2322
+ * @example
2323
+ *```js
2324
+ * searchEmbed.on(EmbedEvent.RouteChange, payload =>
2325
+ * console.log('data', payload))
2326
+ *```
2098
2327
  */
2099
2328
  RouteChange = "ROUTE_CHANGE",
2100
2329
  /**
@@ -2104,10 +2333,15 @@ export declare enum EmbedEvent {
2104
2333
  */
2105
2334
  V1Data = "exportVizDataToParent",
2106
2335
  /**
2107
- * Emitted when the embed does not have cookie access. This
2108
- * happens on Safari where third-party cookies are blocked by default.
2336
+ * Emitted when the embed does not have cookie access. This happens
2337
+ * when Safari and other Web browsers block third-party cookies
2338
+ * are blocked by default. `NoCookieAccess` can trigger
2109
2339
  *
2110
- * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2340
+ * @example
2341
+ *```js
2342
+ * appEmbed.on(EmbedEvent.NoCookieAccess)
2343
+ *```
2344
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
2111
2345
  */
2112
2346
  NoCookieAccess = "noCookieAccess",
2113
2347
  /**
@@ -2121,12 +2355,24 @@ export declare enum EmbedEvent {
2121
2355
  * Emitted when any modal is opened in the app
2122
2356
  *
2123
2357
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2358
+ * @example
2359
+ *```js
2360
+ * appEmbed.on(EmbedEvent.DialogOpen, payload => {
2361
+ * console.log('dialog open', payload);
2362
+ * })
2363
+ *```
2124
2364
  */
2125
2365
  DialogOpen = "dialog-open",
2126
2366
  /**
2127
2367
  * Emitted when any modal is closed in the app
2128
2368
  *
2129
2369
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2370
+ * @example
2371
+ *```js
2372
+ * appEmbed.on(EmbedEvent.DialogClose, payload => {
2373
+ * console.log('dialog close', payload);
2374
+ * })
2375
+ *```
2130
2376
  */
2131
2377
  DialogClose = "dialog-close",
2132
2378
  /**
@@ -2135,6 +2381,21 @@ export declare enum EmbedEvent {
2135
2381
  * other events on the rendered Liveboard.
2136
2382
  *
2137
2383
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
2384
+ * @example
2385
+ *```js
2386
+ * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
2387
+ console.log('Liveboard is rendered', payload);
2388
+ })
2389
+ *```
2390
+ * The following example shows how to trigger
2391
+ * `SetVisibleVizs` event using LiveboardRendered embed event:
2392
+ * @example
2393
+ *```js
2394
+ * const embedRef = useEmbedRef();
2395
+ * const onLiveboardRendered = () => {
2396
+ * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
2397
+ * };
2398
+ *```
2138
2399
  */
2139
2400
  LiveboardRendered = "PinboardRendered",
2140
2401
  /**
@@ -2142,216 +2403,470 @@ export declare enum EmbedEvent {
2142
2403
  * is triggered on all events.
2143
2404
  *
2144
2405
  * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2406
+ * @example
2407
+ *```js
2408
+ * appEmbed.on(EmbedEvent.ALL, payload => {
2409
+ * console.log('Embed Events', payload)
2410
+ * })
2411
+ *```
2145
2412
  */
2146
2413
  ALL = "*",
2147
2414
  /**
2148
2415
  * Emitted when an Answer is saved in the app
2149
2416
  *
2150
2417
  * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2418
+ * @example
2419
+ *```js
2420
+ * //trigger when action starts
2421
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2422
+ * console.log('Save', payload)
2423
+ * }, {
2424
+ * start: true
2425
+ * })
2426
+ * //trigger when action ends
2427
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2428
+ * console.log('Save', payload)
2429
+ * })
2430
+ *```
2151
2431
  */
2152
2432
  Save = "save",
2153
2433
  /**
2154
2434
  * Emitted when the download action is triggered on an answer
2155
2435
  *
2436
+ * **Note**: This event is deprecated in v1.21.0.
2437
+ * To fire an event when a download action is initiated on a chart or table,
2438
+ * use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
2439
+ * or `EmbedEvent.DownloadAsXLSX`
2440
+ *
2156
2441
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2442
+ * @example
2443
+ *```js
2444
+ * liveboardEmbed.trigger(HostEvent.Download, {
2445
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2446
+ * })
2447
+ *```
2157
2448
  */
2158
2449
  Download = "download",
2159
2450
  /**
2160
2451
  * Emitted when the download action is triggered on an answer
2161
2452
  *
2162
2453
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
2454
+ * @example
2455
+ *```js
2456
+ * //trigger when action starts
2457
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2458
+ * console.log('download PNG', payload)}, {start: true })
2459
+ * //trigger when action ends
2460
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2461
+ * console.log('download PNG', payload)})
2462
+ *```
2163
2463
  */
2164
2464
  DownloadAsPng = "downloadAsPng",
2165
2465
  /**
2166
2466
  * Emitted when the Download as PDF action is triggered on an answer
2167
2467
  *
2168
2468
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2469
+ * @example
2470
+ *```js
2471
+ * //trigger when action starts
2472
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2473
+ * console.log('download PDF', payload)}, {start: true })
2474
+ * //trigger when action ends
2475
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2476
+ * console.log('download PDF', payload)})
2477
+ *```
2169
2478
  */
2170
2479
  DownloadAsPdf = "downloadAsPdf",
2171
2480
  /**
2172
2481
  * Emitted when the Download as CSV action is triggered on an answer
2173
2482
  *
2174
2483
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2484
+ * @example
2485
+ *```js
2486
+ * //trigger when action starts
2487
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2488
+ * console.log('download CSV', payload)}, {start: true })
2489
+ * //trigger when action ends
2490
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2491
+ * console.log('download CSV', payload)})
2492
+ *```
2175
2493
  */
2176
2494
  DownloadAsCsv = "downloadAsCsv",
2177
2495
  /**
2178
2496
  * Emitted when the Download as XLSX action is triggered on an answer
2179
2497
  *
2180
2498
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2499
+ * @example
2500
+ *```js
2501
+ * //trigger when action starts
2502
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2503
+ * console.log('download Xlsx', payload)}, { start: true })
2504
+ * //trigger when action ends
2505
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2506
+ * console.log('download Xlsx', payload)})
2507
+ *```
2181
2508
  */
2182
2509
  DownloadAsXlsx = "downloadAsXlsx",
2183
2510
  /**
2184
- * Emitted when an answer is deleted in the app
2511
+ * Emitted when an Answer is deleted in the app
2185
2512
  *
2186
2513
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2514
+ * @example
2515
+ *```js
2516
+ * //trigger when action starts
2517
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2518
+ * console.log('delete answer', payload)}, {start: true })
2519
+ * //trigger when action is completed
2520
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2521
+ * console.log('delete answer', payload)})
2522
+ *```
2187
2523
  */
2188
2524
  AnswerDelete = "answerDelete",
2189
2525
  /**
2190
2526
  * Emitted when an answer is pinned to a Liveboard
2191
2527
  *
2192
2528
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2529
+ * @example
2530
+ *```js
2531
+ * //trigger when action starts
2532
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2533
+ * console.log('pin', payload)
2534
+ * }, {
2535
+ * start: true
2536
+ * })
2537
+ * //trigger when action ends
2538
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2539
+ * console.log('pin', payload)
2540
+ * })
2541
+ *```
2193
2542
  */
2194
2543
  Pin = "pin",
2195
2544
  /**
2196
2545
  * Emitted when SpotIQ analysis is triggered
2197
2546
  *
2198
2547
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2548
+ * @example
2549
+ *```js
2550
+ * //trigger when action starts
2551
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2552
+ * console.log('SpotIQAnalyze', payload)
2553
+ * }, {
2554
+ * start: true
2555
+ * })
2556
+ * //trigger when action ends
2557
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2558
+ * console.log('SpotIQ analyze', payload)
2559
+ * })
2560
+ *```
2199
2561
  */
2200
2562
  SpotIQAnalyze = "spotIQAnalyze",
2201
2563
  /**
2202
2564
  * Emitted when a user shares an object with another user or group
2203
2565
  *
2204
2566
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2567
+ * @example
2568
+ *```js
2569
+ * //trigger when action starts
2570
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2571
+ * console.log('Share', payload)
2572
+ * }, {
2573
+ * start: true
2574
+ * })
2575
+ * //trigger when action ends
2576
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2577
+ * console.log('Share', payload)
2578
+ * })
2579
+ *```
2205
2580
  */
2206
2581
  Share = "share",
2207
2582
  /**
2208
- * Emitted when a user clicks the Include action to include a specific value or data
2209
- * on a chart or table
2583
+ * Emitted when a user clicks the **Include** action to include a specific value or
2584
+ * data on a chart or table.
2210
2585
  *
2211
2586
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2587
+ * @example
2588
+ *```js
2589
+ * appEmbed.on(EmbedEvent.DrillInclude, payload => {
2590
+ * console.log('Drill include', payload);
2591
+ * })
2592
+ *```
2212
2593
  */
2213
2594
  DrillInclude = "context-menu-item-include",
2214
2595
  /**
2215
- * Emitted when a user clicks the Exclude action to exclude a specific value or data
2216
- * on a chart or table
2596
+ * Emitted when a user clicks the **Exclude** action to exclude a specific value or
2597
+ * data on a chart or table
2217
2598
  *
2218
2599
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2600
+ * @example
2601
+ *```js
2602
+ * appEmbed.on(EmbedEvent.DrillExclude, payload => {
2603
+ * console.log('Drill exclude', payload);
2604
+ * })
2605
+ *```
2219
2606
  */
2220
2607
  DrillExclude = "context-menu-item-exclude",
2221
2608
  /**
2222
- * Emitted when copied column value on the app
2609
+ * Emitted when a column value is copied in the embedded app.
2223
2610
  *
2224
2611
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2612
+ * @example
2613
+ *```js
2614
+ * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
2615
+ * console.log('copy to clipboard', payload);
2616
+ * })
2617
+ *```
2225
2618
  */
2226
2619
  CopyToClipboard = "context-menu-item-copy-to-clipboard",
2227
2620
  /**
2228
- * Emitted when a user clicks the Update TML action
2621
+ * Emitted when a user clicks the **Update TML** action
2229
2622
  *
2230
2623
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2624
+ * @example
2625
+ *```js
2626
+ * liveboardEmbed.on(EmbedEvent.UpdateTML)
2627
+ * })
2628
+ *```
2231
2629
  */
2232
2630
  UpdateTML = "updateTSL",
2233
2631
  /**
2234
- * Emitted when a user clicks the Edit TML action
2632
+ * Emitted when a user clicks the **Edit TML** action
2235
2633
  *
2236
2634
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2635
+ * @example
2636
+ *```js
2637
+ * appEmbed.on(EmbedEvent.EditTML, payload => {
2638
+ * console.log('Edit TML', payload);
2639
+ * })
2640
+ *```
2237
2641
  */
2238
2642
  EditTML = "editTSL",
2239
2643
  /**
2240
- * Emitted when ExportTML trigger in answer on the app
2644
+ * Emitted when the **Export TML** action is triggered on an
2645
+ * an embedded object in the app
2241
2646
  *
2242
2647
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2648
+ * @example
2649
+ *```js
2650
+ * //trigger when action starts
2651
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2652
+ * console.log('Export TML', payload)}, { start: true })
2653
+ * //trigger when action ends
2654
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2655
+ * console.log('Export TML', payload)})
2656
+ *```
2243
2657
  */
2244
2658
  ExportTML = "exportTSL",
2245
2659
  /**
2246
- * Emitted when an answer is saved as a view
2660
+ * Emitted when an Answer is saved as a View.
2247
2661
  *
2248
2662
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2663
+ * @example
2664
+ *```js
2665
+ * appEmbed.on(EmbedEvent.SaveAsView, payload => {
2666
+ * console.log('View', payload);
2667
+ * })
2668
+ *```
2249
2669
  */
2250
2670
  SaveAsView = "saveAsView",
2251
2671
  /**
2252
- * Emitted when copy of existing answer on the app
2672
+ * Emitted when the user creates a copy of an Answer
2253
2673
  *
2254
2674
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2675
+ * @example
2676
+ *```js
2677
+ * //trigger when action starts
2678
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2679
+ * console.log('Copy and edit', payload)}, {start: true })
2680
+ * //trigger when action ends
2681
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2682
+ * console.log('Copy and edit', payload)})
2683
+ *```
2255
2684
  */
2256
2685
  CopyAEdit = "copyAEdit",
2257
2686
  /**
2258
- * Emitted when a user clicks Show underlying data on an answe
2687
+ * Emitted when a user clicks Show underlying data on an Answer
2259
2688
  *
2260
2689
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2690
+ * @example
2691
+ *```js
2692
+ * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
2693
+ * console.log('show data', payload);
2694
+ * })
2695
+ *```
2261
2696
  */
2262
2697
  ShowUnderlyingData = "showUnderlyingData",
2263
2698
  /**
2264
- * Emitted when an answer is switched to a chart or table view
2699
+ * Emitted when an answer is switched to a chart or table view.
2265
2700
  *
2266
2701
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2702
+ * @example
2703
+ *```js
2704
+ * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
2705
+ * console.log('switch view', payload);
2706
+ * })
2707
+ *```
2267
2708
  */
2268
2709
  AnswerChartSwitcher = "answerChartSwitcher",
2269
2710
  /**
2270
- * Internal event to communicate the initial settings back to the TS APP
2711
+ * Internal event to communicate the initial settings back to the ThoughtSpot app
2271
2712
  *
2272
2713
  * @hidden
2273
2714
  */
2274
2715
  APP_INIT = "appInit",
2275
2716
  /**
2276
- * Emitted when a user clicks Show Liveboard details on a Liveboard
2717
+ * Emitted when a user clicks **Show Liveboard details** on a Liveboard
2277
2718
  *
2278
2719
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2720
+ * @example
2721
+ *```js
2722
+ * liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
2723
+ * console.log('Liveboard details', payload);
2724
+ * })
2725
+ *```
2279
2726
  */
2280
2727
  LiveboardInfo = "pinboardInfo",
2281
2728
  /**
2282
2729
  * Emitted when a user clicks on the Favorite icon on a Liveboard
2283
2730
  *
2284
2731
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2732
+ * @example
2733
+ *```js
2734
+ * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
2735
+ * console.log('favorites', payload);
2736
+ * })
2737
+ *```
2285
2738
  */
2286
2739
  AddToFavorites = "addToFavorites",
2287
2740
  /**
2288
- * Emitted when a user clicks Schedule on a Liveboard
2741
+ * Emitted when a user clicks **Schedule** on a Liveboard
2289
2742
  *
2290
2743
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2744
+ * @example
2745
+ *```js
2746
+ * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
2747
+ * console.log(`Liveboard schedule', payload);
2748
+ * })
2749
+ *```
2291
2750
  */
2292
2751
  Schedule = "subscription",
2293
2752
  /**
2294
- * Emitted when a user clicks Edit on a Liveboard or visualization
2753
+ * Emitted when a user clicks **Edit** on a Liveboard or visualization
2295
2754
  *
2296
2755
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2756
+ * @example
2757
+ *```js
2758
+ * liveboardEmbed.on(EmbedEvent.Edit, payload => {
2759
+ * console.log(`Liveboard edit', payload);
2760
+ * })
2761
+ *```
2297
2762
  */
2298
2763
  Edit = "edit",
2299
2764
  /**
2300
- * Emitted when a user clicks Make a copy on a Liveboard
2765
+ * Emitted when a user clicks *Make a copy* on a Liveboard
2301
2766
  *
2302
2767
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2768
+ * @example
2769
+ *```js
2770
+ * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
2771
+ * console.log(`Copy', payload);
2772
+ * })
2773
+ *```
2303
2774
  */
2304
2775
  MakeACopy = "makeACopy",
2305
2776
  /**
2306
- * Emitted when a user clicks Present on a Liveboard or visualization
2777
+ * Emitted when a user clicks **Present** on a Liveboard or visualization
2307
2778
  *
2308
2779
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2780
+ * @example
2781
+ *```js
2782
+ * liveboardEmbed.trigger(HostEvent.Present)
2783
+ *```
2784
+ * @example
2785
+ *```js
2786
+ * liveboardEmbed.on(EmbedEvent.Present, {
2787
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2788
+ * })
2789
+ *```
2309
2790
  */
2310
2791
  Present = "present",
2311
2792
  /**
2312
- * Emitted when a user clicks Delete on a Liveboard
2793
+ * Emitted when a user clicks **Delete** on a visualization
2313
2794
  *
2314
2795
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2796
+ * @example
2797
+ *```js
2798
+ * liveboardEmbed.trigger(HostEvent.Delete,
2799
+ * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2800
+ *```
2315
2801
  */
2316
2802
  Delete = "delete",
2317
2803
  /**
2318
2804
  * Emitted when a user clicks Manage schedules on a Liveboard
2319
2805
  *
2320
2806
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2807
+ * @example
2808
+ *```js
2809
+ * liveboardEmbed.trigger(HostEvent.SchedulesList)
2810
+ *```
2321
2811
  */
2322
2812
  SchedulesList = "schedule-list",
2323
2813
  /**
2324
- * Emitted when a user clicks Cancel in edit mode on a Liveboard
2814
+ * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
2325
2815
  *
2326
2816
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2817
+ * @example
2818
+ *```js
2819
+ * liveboardEmbed.trigger(HostEvent.Cancel)
2820
+ *```
2327
2821
  */
2328
2822
  Cancel = "cancel",
2329
2823
  /**
2330
- * Emitted when a user clicks Explore on a visualization
2824
+ * Emitted when a user clicks **Explore** on a visualization
2331
2825
  *
2332
2826
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2827
+ * @example
2828
+ *```js
2829
+ * liveboardEmbed.trigger(HostEvent.Explore, {
2830
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2831
+ *```
2333
2832
  */
2334
2833
  Explore = "explore",
2335
2834
  /**
2336
- * Emitted when a user clicks Copy link action on a visualization
2835
+ * Emitted when a user clicks **Copy link** action on a visualization
2337
2836
  *
2338
2837
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2838
+ * @example
2839
+ *```js
2840
+ * liveboardEmbed.trigger(HostEvent.CopyLink, {
2841
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2842
+ *```
2339
2843
  */
2340
2844
  CopyLink = "embedDocument",
2341
2845
  /**
2342
- * Emitted when a user interacts with cross filters on a visualization or liveboard
2846
+ * Emitted when a user interacts with cross filters on a visualization or Liveboard
2343
2847
  *
2344
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2848
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
2849
+ * @example
2850
+ *```js
2851
+ * liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
2852
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2853
+ *```
2345
2854
  */
2346
2855
  CrossFilterChanged = "cross-filter-changed",
2347
2856
  /**
2348
2857
  * Emitted when a user right clicks on a visualization (chart or table)
2349
2858
  *
2350
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2859
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
2860
+ * @example
2861
+ *```js
2862
+ * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
2863
+ * console.log('VizPointClick', payload)
2864
+ * })
2865
+ *```
2351
2866
  */
2352
2867
  VizPointRightClick = "vizPointRightClick",
2353
2868
  /**
2354
- * Emitted when a user clicks on Insert to slide on a visualization
2869
+ * Emitted when a user clicks **Insert to slide** on a visualization
2355
2870
  *
2356
2871
  * @hidden
2357
2872
  */
@@ -2359,52 +2874,52 @@ export declare enum EmbedEvent {
2359
2874
  /**
2360
2875
  * @hidden
2361
2876
  * Emitted when a user changes any filter on a Liveboard.
2362
- * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
2877
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
2363
2878
  */
2364
2879
  FilterChanged = "filterChanged",
2365
2880
  /**
2366
- * Emitted when a user click on Go button in Sage Embed
2881
+ * Emitted when a user clicks the **Go** button on the Search page
2367
2882
  *
2368
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2883
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2369
2884
  */
2370
2885
  SageEmbedQuery = "sageEmbedQuery",
2371
2886
  /**
2372
- * Emitten when a user select data source in Sage Embed
2887
+ * Emitted when a user selects a data source.
2373
2888
  *
2374
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2889
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2375
2890
  */
2376
2891
  SageWorksheetUpdated = "sageWorksheetUpdated",
2377
2892
  /**
2378
- * Emitted when a user updates a connection in Data tab
2893
+ * Emitted when a user updates a connection on the **Data** page
2379
2894
  *
2380
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2895
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2381
2896
  */
2382
2897
  UpdateConnection = "updateConnection",
2383
2898
  /**
2384
- * Emitted when a user updates a connection in Data tab
2899
+ * Emitted when a user updates a connection on the **Data** page
2385
2900
  *
2386
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2901
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2387
2902
  */
2388
2903
  CreateConnection = "createConnection",
2389
2904
  /**
2390
2905
  * Emitted when name, status (private or public) or filter values of a
2391
- * PersonalisedView is updated.
2906
+ * Personalised view is updated.
2392
2907
  *
2393
2908
  * @returns viewName: string
2394
2909
  * @returns viewId: string
2395
2910
  * @returns liveboardId: string
2396
2911
  * @returns isPublic: boolean
2397
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2912
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2398
2913
  */
2399
2914
  UpdatePersonalisedView = "updatePersonalisedView",
2400
2915
  /**
2401
- * Emitted when a PersonalisedView is saved.
2916
+ * Emitted when a Personalised view is saved.
2402
2917
  *
2403
2918
  * @returns viewName: string
2404
2919
  * @returns viewId: string
2405
2920
  * @returns liveboardId: string
2406
2921
  * @returns isPublic: boolean
2407
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2922
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2408
2923
  */
2409
2924
  SavePersonalisedView = "savePersonalisedView",
2410
2925
  /**
@@ -2414,7 +2929,7 @@ export declare enum EmbedEvent {
2414
2929
  * @returns viewId: string
2415
2930
  * @returns liveboardId: string
2416
2931
  * @returns isPublic: boolean
2417
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2932
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2418
2933
  */
2419
2934
  ResetLiveboard = "resetLiveboard",
2420
2935
  /**
@@ -2422,20 +2937,30 @@ export declare enum EmbedEvent {
2422
2937
  *
2423
2938
  * @returns views: string[]
2424
2939
  * @returns liveboardId: string
2425
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2940
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2426
2941
  */
2427
2942
  DeletePersonalisedView = "deletePersonalisedView",
2428
2943
  /**
2429
- * Emitten when a user creates a new worksheet
2944
+ * Emitted when a user creates a new worksheet
2430
2945
  *
2431
2946
  * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2432
2947
  */
2433
2948
  CreateWorksheet = "createWorksheet",
2434
2949
  /**
2435
- * Emitted when a LB/viz is renamed
2436
- *
2437
- * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
2438
- */
2950
+ * Emitted when Ask Sage is initialized.
2951
+ *
2952
+ * @returns viewName: string
2953
+ * @returns viewId: string
2954
+ * @returns liveboardId: string
2955
+ * @returns isPublic: boolean
2956
+ * @version SDK : 1.29.0 | Thoughtspot: 9.12.0.cl
2957
+ */
2958
+ AskSageInit = "AskSageInit",
2959
+ /**
2960
+ * Emitted when a LB/viz is renamed
2961
+ *
2962
+ * @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
2963
+ */
2439
2964
  Rename = "rename"
2440
2965
  }
2441
2966
  /**
@@ -2462,15 +2987,16 @@ export declare enum EmbedEvent {
2462
2987
  */
2463
2988
  export declare enum HostEvent {
2464
2989
  /**
2465
- * Triggers a search query in AppEmbed and SearchEmbed
2466
- * deployments.
2990
+ * Triggers a search operation with the search tokens specified in
2991
+ * the search query string.
2992
+ * Supported in `AppEmbed` and `SearchEmbed` deployments.
2467
2993
  * Includes the following properties:
2468
2994
  *
2469
- * @param - dataSourceIds - The data source GUID to Search on
2995
+ * @param - `searchQuery` - query string with search tokens
2996
+ * @param - `dataSources` - Data source GUID to Search on
2470
2997
  * - Although an array, only a single source
2471
2998
  * is supported.
2472
- * @param - searchQuery - Query string with search tokens
2473
- * @param - execute - executes the existing / updated query
2999
+ * @param - `execute` - executes search and updates the existing query
2474
3000
  * @example
2475
3001
  * ```js
2476
3002
  * searchembed.trigger(HostEvent.Search, {
@@ -2490,6 +3016,10 @@ export declare enum HostEvent {
2490
3016
  * @param - columnGuid - Optional. GUID of the column to drill
2491
3017
  * by. If not provided it will auto drill by the configured
2492
3018
  * column.
3019
+ * @param - autoDrillDown - Optional. If true, the drill down will be
3020
+ * done automatically on the most popular column.
3021
+ * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
3022
+ * in case of a liveboard.
2493
3023
  * @example
2494
3024
  * ```js
2495
3025
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -2506,6 +3036,25 @@ export declare enum HostEvent {
2506
3036
  * });
2507
3037
  * })
2508
3038
  * ```
3039
+ * @example
3040
+ * ```js
3041
+ * // Works with TS 9.8.0 and above
3042
+ *
3043
+ * liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
3044
+ * console.log(payload);
3045
+ * const clickedPoint = payload.data.clickedPoint;
3046
+ * const selectedPoint = payload.data.selectedPoints;
3047
+ * console.log('>>> called', clickedPoint);
3048
+ * liveboardEmbed.trigger(HostEvent.DrillDown, {
3049
+ * points: {
3050
+ * clickedPoint,
3051
+ * selectedPoints: selectedPoint
3052
+ * },
3053
+ * autoDrillDown: true,
3054
+ * vizId: payload.data.vizId
3055
+ * });
3056
+ * })
3057
+ * ```
2509
3058
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2510
3059
  */
2511
3060
  DrillDown = "triggerDrillDown",
@@ -2522,7 +3071,7 @@ export declare enum HostEvent {
2522
3071
  */
2523
3072
  Reload = "reload",
2524
3073
  /**
2525
- * Sets the visible visualizations on a Liveboard.
3074
+ * Display specific visualizations on a Liveboard.
2526
3075
  *
2527
3076
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
2528
3077
  * in this parameter will be hidden.
@@ -2536,7 +3085,7 @@ export declare enum HostEvent {
2536
3085
  */
2537
3086
  SetVisibleVizs = "SetPinboardVisibleVizs",
2538
3087
  /**
2539
- * Set the Active Tab of a Liveboard.
3088
+ * Set a Liveboard tab as an active tab.
2540
3089
  *
2541
3090
  * @param - tabId - string of id of Tab to show
2542
3091
  * @example
@@ -2549,7 +3098,7 @@ export declare enum HostEvent {
2549
3098
  */
2550
3099
  SetActiveTab = "SetActiveTab",
2551
3100
  /**
2552
- * Updates runtime filters applied on a Saved Answer or Liveboard. The
3101
+ * Update runtime filters applied on a Saved Answer or Liveboard. The
2553
3102
  * runtime filters passed here are appended to the existing runtime
2554
3103
  * filters.
2555
3104
  * Pass an array of runtime filters with the following attributes:
@@ -2575,10 +3124,11 @@ export declare enum HostEvent {
2575
3124
  */
2576
3125
  UpdateRuntimeFilters = "UpdateRuntimeFilters",
2577
3126
  /**
2578
- * Navigate to a specific page in the embedded application without reloading the page.
3127
+ * Navigate to a specific page in the embedded ThoughtSpot application.
2579
3128
  * This is the same as calling `appEmbed.navigateToPage(path, true)`
2580
3129
  *
2581
- * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
3130
+ * @param - `path` - the path to navigate to to go forward or back. The path value can
3131
+ * be a number; for example, `1`, `-1`.
2582
3132
  * @example
2583
3133
  * ```js
2584
3134
  * appEmbed.navigateToPage(-1)
@@ -2587,7 +3137,7 @@ export declare enum HostEvent {
2587
3137
  */
2588
3138
  Navigate = "Navigate",
2589
3139
  /**
2590
- * Opens the filter panel for a particular column.
3140
+ * Open the filter panel for a particular column.
2591
3141
  * Works with Search and Liveboard embed.
2592
3142
  *
2593
3143
  * @param - { columnId: string,
@@ -2605,7 +3155,7 @@ export declare enum HostEvent {
2605
3155
  */
2606
3156
  OpenFilter = "openFilter",
2607
3157
  /**
2608
- * Adds columns to the current search query.
3158
+ * Add columns to the current search query.
2609
3159
  *
2610
3160
  * @param - { columnIds: string[] }
2611
3161
  * @example
@@ -2616,7 +3166,7 @@ export declare enum HostEvent {
2616
3166
  */
2617
3167
  AddColumns = "addColumns",
2618
3168
  /**
2619
- * Removes a column from the current search query.
3169
+ * Remove a column from the current search query.
2620
3170
  *
2621
3171
  * @param - { columnId: string }
2622
3172
  * @example
@@ -2627,27 +3177,29 @@ export declare enum HostEvent {
2627
3177
  */
2628
3178
  RemoveColumn = "removeColumn",
2629
3179
  /**
2630
- * Gets the current Liveboard content.
3180
+ * Get the transient state of a Liveboard as encoded content.
3181
+ * This includes unsaved and ad hoc changes such as
3182
+ * Liveboard filters, runtime filters applied on visualizations on a
3183
+ * Liveboard, and Liveboard layout, changes to visualizations such as
3184
+ * sorting, toggling of legends, and data drill down.
2631
3185
  *
2632
3186
  * @example
2633
3187
  * ```js
2634
- * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
3188
+ * liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
3189
+ * data=>console.log(data))
2635
3190
  * ```
2636
3191
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
2637
3192
  */
2638
3193
  getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
2639
3194
  /**
2640
- * Triggers the **Pin** action on an embedded object
3195
+ * Trigger the **Pin** action on an embedded object
2641
3196
  *
2642
3197
  * @param - Liveboard embed takes the `vizId` as a
2643
- * key. Can be left undefined when embedding Search, full app or
3198
+ * key. Can be left undefined when embedding Search, full app, or
2644
3199
  * a visualization.
2645
3200
  * @example
2646
3201
  * ```js
2647
- * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2648
- * ```
2649
- * ```js
2650
- * vizEmbed.trigger(HostEvent.Pin)
3202
+ * appEmbed.trigger(HostEvent.Pin)
2651
3203
  * ```
2652
3204
  * ```js
2653
3205
  * searchEmbed.trigger(HostEvent.Pin)
@@ -2656,17 +3208,18 @@ export declare enum HostEvent {
2656
3208
  */
2657
3209
  Pin = "pin",
2658
3210
  /**
2659
- * Triggers the **Show Liveboard details** action on a Liveboard
3211
+ * Trigger the **Show Liveboard details** action
3212
+ * on an embedded Liveboard.
2660
3213
  *
2661
3214
  * @example
2662
- * ```js
2663
- * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2664
- * ```
3215
+ *```js
3216
+ * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
3217
+ *```
2665
3218
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2666
3219
  */
2667
3220
  LiveboardInfo = "pinboardInfo",
2668
3221
  /**
2669
- * Triggers the **Schedule** action on a Liveboard
3222
+ * Trigger the **Schedule** action on an embedded Liveboard.
2670
3223
  *
2671
3224
  * @example
2672
3225
  * ```js
@@ -2676,7 +3229,7 @@ export declare enum HostEvent {
2676
3229
  */
2677
3230
  Schedule = "subscription",
2678
3231
  /**
2679
- * Triggers the **Manage schedule** action on a Liveboard
3232
+ * Trigger the **Manage schedule** action on an embedded Liveboard
2680
3233
  *
2681
3234
  * @example
2682
3235
  * ```js
@@ -2686,7 +3239,7 @@ export declare enum HostEvent {
2686
3239
  */
2687
3240
  SchedulesList = "schedule-list",
2688
3241
  /**
2689
- * Triggers the **Export TML** action on a Liveboard
3242
+ * Trigger the **Export TML** action on an embedded Liveboard.
2690
3243
  *
2691
3244
  * @example
2692
3245
  * ```js
@@ -2696,7 +3249,7 @@ export declare enum HostEvent {
2696
3249
  */
2697
3250
  ExportTML = "exportTSL",
2698
3251
  /**
2699
- * Triggers the **Edit TML** action on a Liveboard
3252
+ * Trigger the **Edit TML** action on an embedded Liveboard.
2700
3253
  *
2701
3254
  * @example
2702
3255
  * ```js
@@ -2706,7 +3259,7 @@ export declare enum HostEvent {
2706
3259
  */
2707
3260
  EditTML = "editTSL",
2708
3261
  /**
2709
- * Triggers the **Update TML** action on a Liveboard
3262
+ * Trigger the **Update TML** action on an embedded Liveboard.
2710
3263
  *
2711
3264
  * @example
2712
3265
  * ```js
@@ -2716,7 +3269,7 @@ export declare enum HostEvent {
2716
3269
  */
2717
3270
  UpdateTML = "updateTSL",
2718
3271
  /**
2719
- * Triggers the **Download PDF** action on a Liveboard
3272
+ * Trigger the **Download PDF** action on an embedded Liveboard.
2720
3273
  *
2721
3274
  * @example
2722
3275
  * ```js
@@ -2726,8 +3279,8 @@ export declare enum HostEvent {
2726
3279
  */
2727
3280
  DownloadAsPdf = "downloadAsPdf",
2728
3281
  /**
2729
- * Triggers the **Make a copy** action on a Liveboard, Search, or
2730
- * visualization page
3282
+ * Trigger the **Make a copy** action on a Liveboard, Search, or
3283
+ * visualization page.
2731
3284
  *
2732
3285
  * @example
2733
3286
  * ```js
@@ -2743,7 +3296,7 @@ export declare enum HostEvent {
2743
3296
  */
2744
3297
  MakeACopy = "makeACopy",
2745
3298
  /**
2746
- * Triggers the **Delete** action on a Liveboard
3299
+ * Trigger the **Delete** action for a Liveboard.
2747
3300
  *
2748
3301
  * @example
2749
3302
  * ```js
@@ -2753,7 +3306,7 @@ export declare enum HostEvent {
2753
3306
  */
2754
3307
  Remove = "delete",
2755
3308
  /**
2756
- * Triggers the **Explore* action on a visualization
3309
+ * Trigger the **Explore** action on a visualization.
2757
3310
  *
2758
3311
  * @param - an object with `vizId` as a key
2759
3312
  * @example
@@ -2764,7 +3317,7 @@ export declare enum HostEvent {
2764
3317
  */
2765
3318
  Explore = "explore",
2766
3319
  /**
2767
- * Triggers the **Create alert** action on a visualization
3320
+ * Trigger the **Create alert** action on a visualization
2768
3321
  *
2769
3322
  * @param - an object with `vizId` as a key
2770
3323
  * @example
@@ -2777,7 +3330,7 @@ export declare enum HostEvent {
2777
3330
  */
2778
3331
  CreateMonitor = "createMonitor",
2779
3332
  /**
2780
- * Triggers the **Manage alerts** action on a visualization
3333
+ * Trigger the **Manage alerts** action on a visualization
2781
3334
  *
2782
3335
  * @param - an object with `vizId` as a key
2783
3336
  * @example
@@ -2790,7 +3343,7 @@ export declare enum HostEvent {
2790
3343
  */
2791
3344
  ManageMonitor = "manageMonitor",
2792
3345
  /**
2793
- * Triggers the **Edit** action on a Liveboard or visualization
3346
+ * Trigger the **Edit** action on a Liveboard or visualization
2794
3347
  *
2795
3348
  * @param - object - To trigger the action for a specific visualization
2796
3349
  * in Liveboard embed, pass in `vizId` as a key.
@@ -2811,7 +3364,7 @@ export declare enum HostEvent {
2811
3364
  */
2812
3365
  Edit = "edit",
2813
3366
  /**
2814
- * Triggers the **Copy link** action on a Liveboard or visualization
3367
+ * Trigger the **Copy link** action on a Liveboard or visualization
2815
3368
  *
2816
3369
  * @param - object - to trigger the action for a
2817
3370
  * specific visualization in Liveboard embed, pass in `vizId` as a key
@@ -2829,7 +3382,7 @@ export declare enum HostEvent {
2829
3382
  */
2830
3383
  CopyLink = "embedDocument",
2831
3384
  /**
2832
- * Triggers the **Present** action on a Liveboard or visualization
3385
+ * Trigger the **Present** action on a Liveboard or visualization
2833
3386
  *
2834
3387
  * @param - object - to trigger the action for a specific visualization
2835
3388
  * in Liveboard embed, pass in `vizId` as a key
@@ -2847,7 +3400,7 @@ export declare enum HostEvent {
2847
3400
  */
2848
3401
  Present = "present",
2849
3402
  /**
2850
- * Gets TML for the current search.
3403
+ * Get TML for the current search.
2851
3404
  *
2852
3405
  * @example
2853
3406
  * ```js
@@ -2862,7 +3415,7 @@ export declare enum HostEvent {
2862
3415
  */
2863
3416
  GetTML = "getTML",
2864
3417
  /**
2865
- * Triggers the **Show underlying data** action on visualization or search
3418
+ * Trigger the **Show underlying data** action on visualization or search
2866
3419
  *
2867
3420
  * @param - an object with vizId as a key
2868
3421
  * @example
@@ -2880,7 +3433,9 @@ export declare enum HostEvent {
2880
3433
  */
2881
3434
  ShowUnderlyingData = "showUnderlyingData",
2882
3435
  /**
2883
- * Triggers the **Delete** action on visualization or search
3436
+ * Trigger the **Delete** action for a visualization
3437
+ * in an embedded Liveboard, or a chart or table
3438
+ * generated from Search.
2884
3439
  *
2885
3440
  * @param - Liveboard embed takes an object with `vizId` as a key.
2886
3441
  * Can be left empty if embedding Search or visualization.
@@ -2890,16 +3445,13 @@ export declare enum HostEvent {
2890
3445
  * '730496d6-6903-4601-937e-2c691821af3c'})
2891
3446
  * ```
2892
3447
  * ```js
2893
- * vizEmbed.trigger(HostEvent.Delete)
2894
- * ```
2895
- * ```js
2896
3448
  * searchEmbed.trigger(HostEvent.Delete)
2897
3449
  * ```
2898
3450
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2899
3451
  */
2900
3452
  Delete = "onDeleteAnswer",
2901
3453
  /**
2902
- * Triggers the **SpotIQ analyze** action on visualization
3454
+ * Trigger the **SpotIQ analyze** action on visualization
2903
3455
  * or search.
2904
3456
  *
2905
3457
  * @param - Liveboard embed takes `vizId` as a
@@ -2920,7 +3472,7 @@ export declare enum HostEvent {
2920
3472
  */
2921
3473
  SpotIQAnalyze = "spotIQAnalyze",
2922
3474
  /**
2923
- * Triggers the **Download** action on charts in
3475
+ * Trigger the **Download** action on charts in
2924
3476
  * the embedded view.
2925
3477
  *
2926
3478
  * @example
@@ -2929,17 +3481,15 @@ export declare enum HostEvent {
2929
3481
  * '730496d6-6903-4601-937e-2c691821af3c'})
2930
3482
  * ```
2931
3483
  * ```js
2932
- * vizEmbed.trigger(HostEvent.Download)
2933
- * ```
2934
- * ```js
2935
- * searchEmbed.trigger(HostEvent.Download)
3484
+ * embed.trigger(HostEvent.Download)
2936
3485
  * ```
2937
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw ,Use {@link DownloadAsPng}
3486
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
3487
+ * Use {@link DownloadAsPng}
2938
3488
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2939
3489
  */
2940
3490
  Download = "downloadAsPng",
2941
3491
  /**
2942
- * Triggers the **Download** > **PNG** action on
3492
+ * Trigger the **Download** > **PNG** action on
2943
3493
  * charts in the embedded view.
2944
3494
  *
2945
3495
  * @example
@@ -2955,7 +3505,7 @@ export declare enum HostEvent {
2955
3505
  */
2956
3506
  DownloadAsPng = "downloadAsPng",
2957
3507
  /**
2958
- * Triggers the **Download** > **CSV** action on tables in
3508
+ * Trigger the **Download** > **CSV** action on tables in
2959
3509
  * the embedded view.
2960
3510
  *
2961
3511
  * @example
@@ -2973,7 +3523,7 @@ export declare enum HostEvent {
2973
3523
  */
2974
3524
  DownloadAsCsv = "downloadAsCSV",
2975
3525
  /**
2976
- * Triggers the **Download** > **XLSX** action on tables
3526
+ * Trigger the **Download** > **XLSX** action on tables
2977
3527
  * in the embedded view.
2978
3528
  *
2979
3529
  * @example
@@ -2991,7 +3541,7 @@ export declare enum HostEvent {
2991
3541
  */
2992
3542
  DownloadAsXlsx = "downloadAsXLSX",
2993
3543
  /**
2994
- * Triggers the **Share** action on an embedded
3544
+ * Trigger the **Share** action on an embedded
2995
3545
  * Liveboard or Answer.
2996
3546
  *
2997
3547
  * @example
@@ -3005,7 +3555,7 @@ export declare enum HostEvent {
3005
3555
  */
3006
3556
  Share = "share",
3007
3557
  /**
3008
- * Triggers the **Save** action on a Liveboard or Answer.
3558
+ * Trigger the **Save** action on a Liveboard or Answer.
3009
3559
  * Saves the changes.
3010
3560
  *
3011
3561
  * @example
@@ -3019,7 +3569,7 @@ export declare enum HostEvent {
3019
3569
  */
3020
3570
  Save = "save",
3021
3571
  /**
3022
- * Triggers the **Sync to Sheets** action on an embedded visualization or Answer
3572
+ * Trigger the **Sync to Sheets** action on an embedded visualization or Answer
3023
3573
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
3024
3574
  *
3025
3575
  * @param - an object with `vizId` as a key
@@ -3035,7 +3585,7 @@ export declare enum HostEvent {
3035
3585
  */
3036
3586
  SyncToSheets = "sync-to-sheets",
3037
3587
  /**
3038
- * Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
3588
+ * Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
3039
3589
  * Sends data from an Answer or Liveboard visualization to third-party apps such
3040
3590
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
3041
3591
  *
@@ -3052,7 +3602,7 @@ export declare enum HostEvent {
3052
3602
  */
3053
3603
  SyncToOtherApps = "sync-to-other-apps",
3054
3604
  /**
3055
- * Triggers the **Manage pipelines** action on an embedded
3605
+ * Trigger the **Manage pipelines** action on an embedded
3056
3606
  * visualization or Answer.
3057
3607
  * Allows users to manage ThoughtSpot Sync pipelines.
3058
3608
  *
@@ -3069,18 +3619,21 @@ export declare enum HostEvent {
3069
3619
  */
3070
3620
  ManagePipelines = "manage-pipeline",
3071
3621
  /**
3072
- * Triggers the Reset search on the Search page
3622
+ * Reset search operation on the Search or Answer page.
3073
3623
  *
3074
3624
  * @example
3075
3625
  * ```js
3076
3626
  * searchEmbed.trigger(HostEvent.ResetSearch)
3077
3627
  * ```
3628
+ * ```js
3629
+ * appEmbed.trigger(HostEvent.ResetSearch)
3630
+ * ```
3078
3631
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
3079
3632
  */
3080
3633
  ResetSearch = "resetSearch",
3081
3634
  /**
3082
3635
  * @hidden
3083
- * Gets the currents visible and runtime filters applied on a Liveboard
3636
+ * Get the currents visible and runtime filters applied on a Liveboard
3084
3637
  * @example
3085
3638
  * liveboardEmbed.trigger(HostEvent.GetFilters)
3086
3639
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3088,7 +3641,7 @@ export declare enum HostEvent {
3088
3641
  GetFilters = "getFilters",
3089
3642
  /**
3090
3643
  * @hidden
3091
- * Updates the visible filters on the Liveboard.
3644
+ * Update the visible filters on the Liveboard.
3092
3645
  * @param - filter: filter object containing column name and filter operation and values
3093
3646
  * @example
3094
3647
  *
@@ -3101,7 +3654,7 @@ export declare enum HostEvent {
3101
3654
  */
3102
3655
  UpdateFilters = "updateFilters",
3103
3656
  /**
3104
- * Get Tab for the current Liveboard.
3657
+ * Get tab details for the current Liveboard.
3105
3658
  *
3106
3659
  * @example
3107
3660
  * ```js
@@ -3115,9 +3668,9 @@ export declare enum HostEvent {
3115
3668
  */
3116
3669
  GetTabs = "getTabs",
3117
3670
  /**
3118
- * Set the visible Tabs on a Liveboard.
3671
+ * Set the visible tabs on a Liveboard.
3119
3672
  *
3120
- * @param - an array of ids of Tabs to show, the ids not passed
3673
+ * @param - an array of ids of tabs to show, the IDs not passed
3121
3674
  * will be hidden.
3122
3675
  * @example
3123
3676
  * ```js
@@ -3131,8 +3684,8 @@ export declare enum HostEvent {
3131
3684
  /**
3132
3685
  * Set the hidden tabs on a Liveboard.
3133
3686
  *
3134
- * @param - an array of ids of Tabs to hide, the ids not passed
3135
- * will be shown.
3687
+ * @param - an array of the IDs of the tabs to hide.
3688
+ * The IDs not passed will be shown.
3136
3689
  * @example
3137
3690
  * ```js
3138
3691
  * liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
@@ -3143,9 +3696,10 @@ export declare enum HostEvent {
3143
3696
  */
3144
3697
  SetHiddenTabs = "SetPinboardHiddenTabs",
3145
3698
  /**
3146
- * Updates the search query for sage embed.
3699
+ * Updates the search query string for Natural Language Search operations.
3147
3700
  *
3148
- * @param - searchOptions: an object queryString and option to execute the query.
3701
+ * @param - `queryString`: Text string in Natural Language format
3702
+ * @param - `executeSearch`: Boolean to execute search and update search query
3149
3703
  * @example
3150
3704
  * ```js
3151
3705
  * sageEmbed.trigger(HostEvent.UpdateSageQuery, {
@@ -3153,7 +3707,7 @@ export declare enum HostEvent {
3153
3707
  * executeSearch: true,
3154
3708
  * })
3155
3709
  * ```
3156
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3710
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
3157
3711
  */
3158
3712
  UpdateSageQuery = "updateSageQuery",
3159
3713
  /**
@@ -3166,24 +3720,36 @@ export declare enum HostEvent {
3166
3720
  * vizId: '123', // For Liveboard Visualization.
3167
3721
  * })
3168
3722
  * ```
3723
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
3724
+ */
3725
+ GetAnswerSession = "getAnswerSession",
3726
+ /**
3727
+ * Trigger Ask Sage for viz
3728
+ *
3729
+ * @example
3730
+ * ```js
3731
+ * liveboardEmbed.trigger(HostEvent.AskSage,
3732
+ * {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
3733
+ * ```
3734
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3169
3735
  */
3170
- GetAnswerSession = "getAnswerSession"
3736
+ AskSage = "AskSage"
3171
3737
  }
3172
3738
  /**
3173
3739
  * The different visual modes that the data sources panel within
3174
- * search could appear in, i.e., hidden, collapsed, or expanded.
3740
+ * search could appear in, such as hidden, collapsed, or expanded.
3175
3741
  */
3176
3742
  export declare enum DataSourceVisualMode {
3177
3743
  /**
3178
- * Data source panel is hidden.
3744
+ * The data source panel is hidden.
3179
3745
  */
3180
3746
  Hidden = "hide",
3181
3747
  /**
3182
- * Data source panel is collapsed, but the user can manually expand it.
3748
+ * The data source panel is collapsed, but the user can manually expand it.
3183
3749
  */
3184
3750
  Collapsed = "collapse",
3185
3751
  /**
3186
- * Data source panel is expanded, but the user can manually collapse it.
3752
+ * The data source panel is expanded, but the user can manually collapse it.
3187
3753
  */
3188
3754
  Expanded = "expand"
3189
3755
  }
@@ -3259,7 +3825,11 @@ export declare enum Param {
3259
3825
  LiveboardHeaderSticky = "isLiveboardHeaderSticky",
3260
3826
  IsProductTour = "isProductTour",
3261
3827
  HideSearchBarTitle = "hideSearchBarTitle",
3262
- HideSageAnswerHeader = "hideSageAnswerHeader"
3828
+ HideSageAnswerHeader = "hideSageAnswerHeader",
3829
+ HideSearchBar = "hideSearchBar",
3830
+ ClientLogLevel = "clientLogLevel",
3831
+ OverrideNativeConsole = "overrideConsoleLogs",
3832
+ enableAskSage = "enableAskSage"
3263
3833
  }
3264
3834
  /**
3265
3835
  * ThoughtSpot application pages include actions and menu commands
@@ -3319,9 +3889,11 @@ export declare enum Action {
3319
3889
  SaveAsView = "saveAsView",
3320
3890
  /**
3321
3891
  * The **Make a copy** action on a Liveboard or Answer
3322
- * page.
3323
- * Creates a copy of the Liveboard, visualization,
3324
- * or Answer.
3892
+ * page. Creates a copy of the Liveboard.
3893
+ * In LiveboardEmbed, the **Make a copy** action is not available for
3894
+ * visualizations in the embedded Liveboard view.
3895
+ * In AppEmbed, the **Make a copy** action is available on both
3896
+ * Liveboards and visualizations.
3325
3897
  *
3326
3898
  * @example
3327
3899
  * ```js
@@ -3505,7 +4077,7 @@ export declare enum Action {
3505
4077
  */
3506
4078
  DownloadAsPdf = "downloadAsPdf",
3507
4079
  /**
3508
- * The **Download** > **CSV** menu action for tables on a Liveboard
4080
+ * The **Download** > **CSV** menu action for tables on a Liveboard
3509
4081
  * or Answer page.
3510
4082
  * Downloads a visualization or Answer in the XLSX format.
3511
4083
  *
@@ -4036,6 +4608,7 @@ export declare enum Action {
4036
4608
  */
4037
4609
  RenameModalTitleDescription = "renameModalTitleDescription",
4038
4610
  /**
4611
+ *
4039
4612
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
4040
4613
  */
4041
4614
  RequestVerification = "requestVerification",
@@ -4115,7 +4688,17 @@ export declare enum Action {
4115
4688
  * ```
4116
4689
  * @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
4117
4690
  */
4118
- VerifiedLiveboard = "verifiedLiveboard"
4691
+ VerifiedLiveboard = "verifiedLiveboard",
4692
+ /**
4693
+ * Action ID for ask sage button
4694
+ *
4695
+ * @example
4696
+ * ```js
4697
+ * hiddenAction: [Action.AskAi]
4698
+ * ```
4699
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
4700
+ */
4701
+ AskAi = "AskAi"
4119
4702
  }
4120
4703
  export interface AnswerServiceType {
4121
4704
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -4171,6 +4754,14 @@ export interface CustomActionPayload {
4171
4754
  session: SessionInterface;
4172
4755
  vizId?: string;
4173
4756
  }
4757
+ export declare enum LogLevel {
4758
+ SILENT = "SILENT",
4759
+ ERROR = "ERROR",
4760
+ WARN = "WARN",
4761
+ INFO = "INFO",
4762
+ DEBUG = "DEBUG",
4763
+ TRACE = "TRACE"
4764
+ }
4174
4765
 
4175
4766
  /**
4176
4767
  * Copyright (c) 2022
@@ -4365,6 +4956,7 @@ export declare class TsEmbed {
4365
4956
  * @param args
4366
4957
  */
4367
4958
  render(): TsEmbed;
4959
+ getIframeSrc(): string;
4368
4960
  protected handleRenderForPrerender(): void;
4369
4961
  /**
4370
4962
  * Creates the preRender shell
@@ -4660,8 +5252,8 @@ export declare enum AuthStatus {
4660
5252
  */
4661
5253
  LOGOUT = "LOGOUT",
4662
5254
  /**
4663
- * Emitted when inPopup: true in the SAMLRedirect flow.
4664
- * And, we are waiting for popup to be triggered either programatically
5255
+ * Emitted when inPopup is true in the SAMLRedirect flow and the
5256
+ * popup is waiting to be triggered either programmatically
4665
5257
  * or by the trigger button.
4666
5258
  *
4667
5259
  * @version SDK: 1.19.0
@@ -4706,8 +5298,8 @@ export interface AuthEventEmitter {
4706
5298
  */
4707
5299
  export declare enum AuthEvent {
4708
5300
  /**
4709
- * Manually trigger the SSO popup. This is useful with
4710
- * authStatus: SAMLRedirect/OIDCRedicre and inPopup: true
5301
+ * Manually trigger the SSO popup. This is useful when
5302
+ * authStatus is SAMLRedirect/OIDCRedirect and inPopup is set to true
4711
5303
  */
4712
5304
  TRIGGER_SSO_POPUP = "TRIGGER_SSO_POPUP"
4713
5305
  }
@@ -5159,8 +5751,7 @@ interface UnderlyingDataPoint {
5159
5751
  * const data = await underlying.fetchData(0, 100);
5160
5752
  * })
5161
5753
  * ```
5162
- * @version
5163
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5754
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
5164
5755
  * @group Events
5165
5756
  */
5166
5757
  export declare class AnswerService {
@@ -5194,8 +5785,7 @@ export declare class AnswerService {
5194
5785
  * const data = await underlying.fetchData(0, 100);
5195
5786
  * })
5196
5787
  * ```
5197
- * @version
5198
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5788
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
5199
5789
  */
5200
5790
  getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
5201
5791
  executeQuery(query: string, variables: any): Promise<any>;
@@ -5213,10 +5803,11 @@ export {};
5213
5803
  export declare const getEmbedConfig: () => EmbedConfig;
5214
5804
  /**
5215
5805
  * Sets the configuration embed was initialized with.
5806
+ * And returns the new configuration.
5216
5807
  *
5217
5808
  * @param newConfig The configuration to set.
5218
5809
  * @version SDK: 1.27.0 | ThoughtSpot: *
5219
5810
  * @group Global methods
5220
5811
  */
5221
- export declare const setEmbedConfig: (newConfig: EmbedConfig) => void;
5812
+ export declare const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
5222
5813