@thoughtspot/visual-embed-sdk 1.26.3 → 1.27.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/README.md +3 -3
  2. package/cjs/.DS_Store +0 -0
  3. package/cjs/package.json +1 -1
  4. package/cjs/src/.DS_Store +0 -0
  5. package/cjs/src/auth.d.ts +4 -4
  6. package/cjs/src/auth.d.ts.map +1 -1
  7. package/cjs/src/auth.js +10 -4
  8. package/cjs/src/auth.js.map +1 -1
  9. package/cjs/src/embed/app.d.ts +15 -15
  10. package/cjs/src/embed/app.d.ts.map +1 -1
  11. package/cjs/src/embed/app.js +1 -1
  12. package/cjs/src/embed/app.js.map +1 -1
  13. package/cjs/src/embed/liveboard.d.ts +28 -23
  14. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  15. package/cjs/src/embed/liveboard.js +4 -3
  16. package/cjs/src/embed/liveboard.js.map +1 -1
  17. package/cjs/src/embed/sage.d.ts +48 -30
  18. package/cjs/src/embed/sage.d.ts.map +1 -1
  19. package/cjs/src/embed/sage.js +7 -6
  20. package/cjs/src/embed/sage.js.map +1 -1
  21. package/cjs/src/embed/sage.spec.js +3 -3
  22. package/cjs/src/embed/sage.spec.js.map +1 -1
  23. package/cjs/src/embed/search-bar.d.ts +22 -6
  24. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  25. package/cjs/src/embed/search-bar.js.map +1 -1
  26. package/cjs/src/embed/search.d.ts +34 -19
  27. package/cjs/src/embed/search.d.ts.map +1 -1
  28. package/cjs/src/embed/search.js +7 -3
  29. package/cjs/src/embed/search.js.map +1 -1
  30. package/cjs/src/embed/search.spec.js +10 -0
  31. package/cjs/src/embed/search.spec.js.map +1 -1
  32. package/cjs/src/embed/ts-embed.d.ts +1 -0
  33. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  34. package/cjs/src/embed/ts-embed.js +27 -7
  35. package/cjs/src/embed/ts-embed.js.map +1 -1
  36. package/cjs/src/embed/ts-embed.spec.js +114 -0
  37. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  38. package/cjs/src/react/index.spec.js +0 -12
  39. package/cjs/src/react/index.spec.js.map +1 -1
  40. package/cjs/src/types.d.ts +680 -231
  41. package/cjs/src/types.d.ts.map +1 -1
  42. package/cjs/src/types.js +605 -164
  43. package/cjs/src/types.js.map +1 -1
  44. package/cjs/src/utils/answerService.d.ts +10 -0
  45. package/cjs/src/utils/answerService.d.ts.map +1 -0
  46. package/cjs/src/utils/answerService.js +61 -0
  47. package/cjs/src/utils/answerService.js.map +1 -0
  48. package/cjs/src/utils/answerService.spec.d.ts +2 -0
  49. package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
  50. package/cjs/src/utils/answerService.spec.js +31 -0
  51. package/cjs/src/utils/answerService.spec.js.map +1 -0
  52. package/cjs/src/utils/authService.d.ts +37 -0
  53. package/cjs/src/utils/authService.d.ts.map +1 -0
  54. package/cjs/src/utils/authService.js +106 -0
  55. package/cjs/src/utils/authService.js.map +1 -0
  56. package/cjs/src/utils/authService.spec.d.ts +2 -0
  57. package/cjs/src/utils/authService.spec.d.ts.map +1 -0
  58. package/cjs/src/utils/authService.spec.js +72 -0
  59. package/cjs/src/utils/authService.spec.js.map +1 -0
  60. package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -4
  61. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  62. package/cjs/src/utils/graphql/answerService/answerService.js +2 -4
  63. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  64. package/cjs/src/utils/processData.d.ts +6 -0
  65. package/cjs/src/utils/processData.d.ts.map +1 -1
  66. package/cjs/src/utils/processData.js +5 -1
  67. package/cjs/src/utils/processData.js.map +1 -1
  68. package/cjs/src/utils/processTrigger.js +1 -1
  69. package/dist/src/auth.d.ts +4 -4
  70. package/dist/src/auth.d.ts.map +1 -1
  71. package/dist/src/embed/app.d.ts +15 -15
  72. package/dist/src/embed/app.d.ts.map +1 -1
  73. package/dist/src/embed/liveboard.d.ts +28 -23
  74. package/dist/src/embed/liveboard.d.ts.map +1 -1
  75. package/dist/src/embed/sage.d.ts +48 -30
  76. package/dist/src/embed/sage.d.ts.map +1 -1
  77. package/dist/src/embed/search-bar.d.ts +22 -6
  78. package/dist/src/embed/search-bar.d.ts.map +1 -1
  79. package/dist/src/embed/search.d.ts +34 -19
  80. package/dist/src/embed/search.d.ts.map +1 -1
  81. package/dist/src/embed/ts-embed.d.ts +1 -0
  82. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  83. package/dist/src/types.d.ts +680 -231
  84. package/dist/src/types.d.ts.map +1 -1
  85. package/dist/src/utils/answerService.d.ts +10 -0
  86. package/dist/src/utils/answerService.d.ts.map +1 -0
  87. package/dist/src/utils/answerService.spec.d.ts +2 -0
  88. package/dist/src/utils/answerService.spec.d.ts.map +1 -0
  89. package/dist/src/utils/authService.d.ts +37 -0
  90. package/dist/src/utils/authService.d.ts.map +1 -0
  91. package/dist/src/utils/authService.spec.d.ts +2 -0
  92. package/dist/src/utils/authService.spec.d.ts.map +1 -0
  93. package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -4
  94. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  95. package/dist/src/utils/processData.d.ts +6 -0
  96. package/dist/src/utils/processData.d.ts.map +1 -1
  97. package/dist/tsembed-react.es.js +664 -194
  98. package/dist/tsembed-react.js +663 -193
  99. package/dist/tsembed.es.js +667 -194
  100. package/dist/tsembed.js +665 -192
  101. package/dist/visual-embed-sdk-react-full.d.ts +851 -328
  102. package/dist/visual-embed-sdk-react.d.ts +851 -328
  103. package/dist/visual-embed-sdk.d.ts +851 -328
  104. package/lib/.DS_Store +0 -0
  105. package/lib/package.json +1 -1
  106. package/lib/src/.DS_Store +0 -0
  107. package/lib/src/auth.d.ts +4 -4
  108. package/lib/src/auth.d.ts.map +1 -1
  109. package/lib/src/auth.js +10 -4
  110. package/lib/src/auth.js.map +1 -1
  111. package/lib/src/embed/app.d.ts +15 -15
  112. package/lib/src/embed/app.d.ts.map +1 -1
  113. package/lib/src/embed/app.js +1 -1
  114. package/lib/src/embed/app.js.map +1 -1
  115. package/lib/src/embed/liveboard.d.ts +28 -23
  116. package/lib/src/embed/liveboard.d.ts.map +1 -1
  117. package/lib/src/embed/liveboard.js +4 -3
  118. package/lib/src/embed/liveboard.js.map +1 -1
  119. package/lib/src/embed/sage.d.ts +48 -30
  120. package/lib/src/embed/sage.d.ts.map +1 -1
  121. package/lib/src/embed/sage.js +7 -6
  122. package/lib/src/embed/sage.js.map +1 -1
  123. package/lib/src/embed/sage.spec.js +3 -3
  124. package/lib/src/embed/sage.spec.js.map +1 -1
  125. package/lib/src/embed/search-bar.d.ts +22 -6
  126. package/lib/src/embed/search-bar.d.ts.map +1 -1
  127. package/lib/src/embed/search-bar.js.map +1 -1
  128. package/lib/src/embed/search.d.ts +34 -19
  129. package/lib/src/embed/search.d.ts.map +1 -1
  130. package/lib/src/embed/search.js +7 -3
  131. package/lib/src/embed/search.js.map +1 -1
  132. package/lib/src/embed/search.spec.js +10 -0
  133. package/lib/src/embed/search.spec.js.map +1 -1
  134. package/lib/src/embed/ts-embed.d.ts +1 -0
  135. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  136. package/lib/src/embed/ts-embed.js +28 -8
  137. package/lib/src/embed/ts-embed.js.map +1 -1
  138. package/lib/src/embed/ts-embed.spec.js +114 -0
  139. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  140. package/lib/src/react/index.spec.js +0 -12
  141. package/lib/src/react/index.spec.js.map +1 -1
  142. package/lib/src/types.d.ts +680 -231
  143. package/lib/src/types.d.ts.map +1 -1
  144. package/lib/src/types.js +605 -164
  145. package/lib/src/types.js.map +1 -1
  146. package/lib/src/utils/answerService.d.ts +10 -0
  147. package/lib/src/utils/answerService.d.ts.map +1 -0
  148. package/lib/src/utils/answerService.js +57 -0
  149. package/lib/src/utils/answerService.js.map +1 -0
  150. package/lib/src/utils/answerService.spec.d.ts +2 -0
  151. package/lib/src/utils/answerService.spec.d.ts.map +1 -0
  152. package/lib/src/utils/answerService.spec.js +29 -0
  153. package/lib/src/utils/answerService.spec.js.map +1 -0
  154. package/lib/src/utils/authService.d.ts +37 -0
  155. package/lib/src/utils/authService.d.ts.map +1 -0
  156. package/lib/src/utils/authService.js +97 -0
  157. package/lib/src/utils/authService.js.map +1 -0
  158. package/lib/src/utils/authService.spec.d.ts +2 -0
  159. package/lib/src/utils/authService.spec.d.ts.map +1 -0
  160. package/lib/src/utils/authService.spec.js +70 -0
  161. package/lib/src/utils/authService.spec.js.map +1 -0
  162. package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -4
  163. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  164. package/lib/src/utils/graphql/answerService/answerService.js +2 -4
  165. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  166. package/lib/src/utils/processData.d.ts +6 -0
  167. package/lib/src/utils/processData.d.ts.map +1 -1
  168. package/lib/src/utils/processData.js +4 -1
  169. package/lib/src/utils/processData.js.map +1 -1
  170. package/lib/src/utils/processTrigger.js +1 -1
  171. package/lib/src/visual-embed-sdk.d.ts +851 -328
  172. package/package.json +1 -1
  173. package/src/.DS_Store +0 -0
  174. package/src/auth.ts +10 -4
  175. package/src/embed/app.ts +20 -20
  176. package/src/embed/liveboard.ts +32 -27
  177. package/src/embed/sage.spec.ts +3 -3
  178. package/src/embed/sage.ts +54 -36
  179. package/src/embed/search-bar.tsx +22 -6
  180. package/src/embed/search.spec.ts +13 -0
  181. package/src/embed/search.ts +42 -22
  182. package/src/embed/ts-embed.spec.ts +132 -0
  183. package/src/embed/ts-embed.ts +27 -9
  184. package/src/react/index.spec.tsx +0 -29
  185. package/src/types.ts +680 -232
  186. package/src/utils/graphql/answerService/answerService.ts +2 -4
  187. package/src/utils/processData.ts +4 -1
  188. package/src/utils/processTrigger.ts +1 -1
@@ -242,25 +242,41 @@ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportT
242
242
  export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
243
243
  /**
244
244
  * The array of data source GUIDs to set on load.
245
- * Only a single dataSource supported currently.
245
+ * Only a single data source is supported currently.
246
246
  *
247
- * @deprecated Use dataSource instead
247
+ * @deprecated Use `dataSource` instead
248
248
  */
249
249
  dataSources?: string[];
250
250
  /**
251
251
  * The array of data source GUIDs to set on load.
252
252
  *
253
- * @version: SDK: 1.19.0
253
+ * @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
254
254
  */
255
255
  dataSource?: string;
256
256
  /**
257
- * Flag to set if last selected dataSource should be used
257
+ * Boolean to define if the last selected data source should be used
258
258
  *
259
- * @version: SDK: 1.24.0
259
+ * @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
260
260
  */
261
261
  useLastSelectedSources?: boolean;
262
262
  /**
263
- * Configuration for search options
263
+ * Configuration for search options.
264
+ * Includes the following properties:
265
+ *
266
+ * `searchTokenString`: Search tokens to pass in the query.
267
+ *
268
+ * `executeSearch`: Boolean to define if the search should be executed or not.
269
+ * If it is executed, the focus is placed on the results.
270
+ * If it’s not executed, the focus is placed at the end of
271
+ * the token string in the search bar.
272
+ *
273
+ * @example
274
+ * ```js
275
+ * searchOptions: {
276
+ * searchTokenString: '[quantity purchased] [region]',
277
+ * executeSearch: true,
278
+ * }
279
+ * ```
264
280
  */
265
281
  searchOptions?: SearchOptions;
266
282
  }
@@ -296,14 +312,14 @@ export declare class SearchBarEmbed extends TsEmbed {
296
312
  */
297
313
  export interface SearchOptions {
298
314
  /**
299
- * The query string to pre-fill in natual language search bar
315
+ * The query string to pass for Natural Language Search.
300
316
  */
301
317
  searchQuery: string;
302
318
  /**
303
- * Boolean to determine if the search should be executed or not.
304
- * if it is executed, put the focus on the results.
305
- * if it’s not executed, put the focus in the search bar - at the end of
306
- * the tokens
319
+ * Boolean to define if the search should be executed or not.
320
+ * If it is executed, the focus is placed on the results.
321
+ * If it’s not executed, the focus is placed at the end of
322
+ * the token string in the search bar.
307
323
  */
308
324
  executeSearch?: boolean;
309
325
  }
@@ -311,16 +327,16 @@ export interface SearchOptions {
311
327
  * The configuration attributes for the embedded Natural language search view. Based on
312
328
  * GPT and LLM.
313
329
  *
314
- * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
330
+ * @version: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
315
331
  * @group Embed components
316
332
  */
317
333
  export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
318
334
  /**
319
- * If set to true, a list of liveboard and answers related
335
+ * If set to true, a list of Liveboard and Answers related
320
336
  * to the natural language search will be shown below the
321
337
  * AI generated answer.
322
338
  *
323
- * @deprecated Currently liveboard and answers related
339
+ * @deprecated Currently Liveboard and Answers related
324
340
  * to the natural language search will not be shown for sage
325
341
  * embed
326
342
  */
@@ -337,63 +353,81 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
337
353
  */
338
354
  isProductTour?: boolean;
339
355
  /**
340
- * flag to hide search bar title. default false.
356
+ * Show or hide the search bar title.
341
357
  *
342
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
358
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
343
359
  */
344
360
  hideSearchBarTitle?: boolean;
345
361
  /**
346
- * flag to disable Sage Answer header(`AI Answer` title section on top of the Sage
347
- * answer). default false.
362
+ * Show or hide the Answer header, that is, the `AI Answer` title
363
+ * at the top of the Answer page.
348
364
  *
349
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
365
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
350
366
  */
351
367
  hideSageAnswerHeader?: boolean;
352
368
  /**
353
- * flag to disable changing worksheet. default false.
369
+ * Disable the worksheet selection option.
354
370
  *
355
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
371
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
356
372
  */
357
373
  disableWorksheetChange?: boolean;
358
374
  /**
359
- * flag to hide worksheet selector. default false.
375
+ * Hide the worksheet selection panel.
376
+ *
377
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
360
378
  */
361
379
  hideWorksheetSelector?: boolean;
362
380
  /**
363
- * If set to true, the search bar auto complete search suggestions will not be shown.
364
- * default false
381
+ * Show or hide autocomplete suggestions for the search query string.
365
382
  *
366
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
383
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
367
384
  */
368
385
  hideAutocompleteSuggestions?: boolean;
369
386
  /**
370
- * If set to false, the auto complete search suggestions not be shown
387
+ * Show or hide autocomplete suggestions for the search query string.
371
388
  *
372
- * @deprecated currently, object suggestions will not be shown for sage embed
373
- * earlier this flag was used to show Auto complete suggestions
389
+ * @deprecated
390
+ * Currently, the object suggestions will not be shown for Natural Language Search.
391
+ * You can use {@link hideAutocompleteSuggestions} instead.
374
392
  */
375
393
  showObjectSuggestions?: boolean;
376
394
  /**
377
- * If set to true, sample questions would be hidden to user.
378
- * These sample questions are autogenerated based on selected datasource.
395
+ * Show or hide sample questions.
396
+ * The sample questions are autogenerated based on the worksheet
397
+ * selected for the search operation.
379
398
  *
380
- * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
399
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
381
400
  */
382
401
  hideSampleQuestions?: boolean;
383
402
  /**
384
- * The data source GUID to set on load.
403
+ * The data source GUID (Worksheet GUID) to set on load.
385
404
  */
386
405
  dataSource?: string;
387
406
  /**
388
- * Configuration for search options
407
+ * Includes the following properties:
389
408
  *
390
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
409
+ * `searchQuery`: The search query string to pass in the search bar.
410
+ * Supports Natural Language Search queries.
411
+ *
412
+ * `executeSearch`: Boolean to define if the search should be executed or not.
413
+ * If it is executed, the focus is placed on the results.
414
+ * If it’s not executed, the focus is placed at the end of
415
+ * the token string in the search bar.
416
+ *
417
+ * @example
418
+ * ```js
419
+ * searchOptions: {
420
+ * searchQuery: 'average sales by country and product type',
421
+ * executeSearch: true,
422
+ * }
423
+ * ```
424
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
391
425
  */
392
426
  searchOptions?: SearchOptions;
393
427
  }
394
428
  export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
395
429
  /**
396
- * Embed ThoughtSpot LLM and GPT based natural language search component.
430
+ * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
397
431
  *
398
432
  * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
399
433
  * @group Embed components
@@ -412,6 +446,13 @@ export declare class SageEmbed extends V1Embed {
412
446
  * @returns {string} query string
413
447
  */
414
448
  protected getEmbedParams(): string;
449
+ /**
450
+ * Construct the URL of the embedded ThoughtSpot sage to be
451
+ * loaded in the iframe
452
+ *
453
+ * @returns {string} iframe url
454
+ */
455
+ getIFrameSrc(): string;
415
456
  /**
416
457
  * Render the embedded ThoughtSpot Sage
417
458
  *
@@ -429,18 +470,19 @@ export declare class SageEmbed extends V1Embed {
429
470
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
430
471
  */
431
472
  /**
432
- * Configuration for search options
473
+ * Configuration for search options.
474
+ *
433
475
  */
434
476
  export interface SearchOptions {
435
477
  /**
436
- * The tml string to load the answer
478
+ * Search tokens to pass in the query.
437
479
  */
438
480
  searchTokenString: string;
439
481
  /**
440
- * Boolean to determine if the search should be executed or not.
441
- * if it is executed, put the focus on the results.
442
- * if it’s not executed, put the focus in the search bar - at the end of
443
- * the tokens
482
+ * Boolean to define if the search should be executed or not.
483
+ * If it is executed, the focus is placed on the results.
484
+ * If it’s not executed, the focus is placed at the end of
485
+ * the token string in the search bar.
444
486
  */
445
487
  executeSearch?: boolean;
446
488
  }
@@ -456,19 +498,15 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
456
498
  */
457
499
  collapseDataSources?: boolean;
458
500
  /**
459
- * If set to true, hides the data sources panel.
501
+ * Show or hide the data sources panel.
460
502
  */
461
503
  hideDataSources?: boolean;
462
504
  /**
463
- * If set to true, hides the charts and tables in search answers.
505
+ * Show or hide the charts and tables in search answers.
464
506
  * This attribute can be used to create a custom visualization
465
507
  * using raw answer data.
466
508
  */
467
509
  hideResults?: boolean;
468
- /**
469
- * If set to true, expands all the data sources panel.
470
- */
471
- expandAllDataSource?: boolean;
472
510
  /**
473
511
  * If set to true, the Search Assist feature is enabled.
474
512
  *
@@ -482,9 +520,9 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
482
520
  forceTable?: boolean;
483
521
  /**
484
522
  * The array of data source GUIDs to set on load.
485
- * Only a single dataSource supported currently.
523
+ * Only a single data source is supported currently.
486
524
  *
487
- * @deprecated Use dataSource instead
525
+ * @deprecated Use `dataSource` instead.
488
526
  */
489
527
  dataSources?: string[];
490
528
  /**
@@ -496,11 +534,29 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
496
534
  /**
497
535
  * The initial search query to load the answer with.
498
536
  *
499
- * @deprecated Use {@link searchOptions} instead
537
+ * @deprecated
538
+ *
539
+ * Use {@link searchOptions} instead.
500
540
  */
501
541
  searchQuery?: string;
502
542
  /**
503
- * Configuration for search options
543
+ * Configuration for search options.
544
+ * Includes the following properties:
545
+ *
546
+ * `searchTokenString`: Search tokens to pass in the query.
547
+ *
548
+ * `executeSearch`: Boolean to define if the search should be executed or not.
549
+ * If it is executed, the focus is placed on the results.
550
+ * If it’s not executed, the focus is placed at the end of
551
+ * the token string in the search bar.
552
+ *
553
+ * @example
554
+ * ```js
555
+ * searchOptions: {
556
+ * searchTokenString: '[quantity purchased] [region]',
557
+ * executeSearch: true,
558
+ * }
559
+ * ```
504
560
  */
505
561
  searchOptions?: SearchOptions;
506
562
  /**
@@ -508,10 +564,10 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
508
564
  */
509
565
  answerId?: string;
510
566
  /**
511
- * If set to true, search page will render without the Search Bar
567
+ * If set to true, the search page will render without the Search Bar
512
568
  * The chart/table should still be visible.
513
569
  *
514
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
570
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
515
571
  */
516
572
  hideSearchBar?: boolean;
517
573
  /**
@@ -541,6 +597,14 @@ export declare class SearchEmbed extends TsEmbed {
541
597
  protected viewConfig: SearchViewConfig;
542
598
  constructor(domSelector: DOMSelector, viewConfig: SearchViewConfig);
543
599
  protected getEmbedParams(): string;
600
+ /**
601
+ * Construct the URL of the embedded ThoughtSpot search to be
602
+ * loaded in the iframe
603
+ *
604
+ * @param answerId The GUID of a saved answer
605
+ * @param dataSources A list of data source GUIDs
606
+ */
607
+ getIFrameSrc(): string;
544
608
  /**
545
609
  * Render the embedded ThoughtSpot search
546
610
  */
@@ -597,43 +661,43 @@ export declare enum Page {
597
661
  */
598
662
  export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
599
663
  /**
600
- * If true, the main navigation bar within the ThoughtSpot app
664
+ * If true, the top navigation bar within the ThoughtSpot app
601
665
  * is displayed. By default, the navigation bar is hidden.
602
- * This flag also control the homepage left nav-bar.
666
+ * This flag also controls the homepage left navigation bar.
603
667
  */
604
668
  showPrimaryNavbar?: boolean;
605
669
  /**
606
- * Flag to control Homepage Left Nav Bar
607
- * If showPrimaryNavbar is true, ie navigation bar(Global nav-bar) and Homepage left
608
- * nav-bar is visible, this flag will only hide the homepage left nav.
609
- * Precedence of showPrimaryNavbar flag > hideHomepageLeftNav flag.
670
+ * Control the visibility of the left navigation bar on the Homepage.
671
+ * If showPrimaryNavbar is true, that is, if the Global and Homepage
672
+ * nav-bars are visible, this flag will only hide the homepage left nav-bar.
673
+ * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
610
674
  *
611
675
  * @default false
612
676
  * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
613
677
  */
614
678
  hideHomepageLeftNav?: boolean;
615
679
  /**
616
- * If true, help and profile buttons will hide on NavBar. By default,
617
- * they are shown.
680
+ * Control the visibility of the help (?) and profile buttons on the
681
+ * Global nav-bar. By default, these buttons are visible on the nav-bar.
618
682
  */
619
683
  disableProfileAndHelp?: boolean;
620
684
  /**
621
- * If true, application switcher button will hide on NavBar. By default,
622
- * they are shown.
685
+ * Control the visibility of the application switcher button on the nav-bar.
686
+ * By default, the application switcher is shown.
623
687
  */
624
688
  hideApplicationSwitcher?: boolean;
625
689
  /**
626
- * If true, org switcher button will hide on NavBar. By default,
627
- * they are shown.
690
+ * Control the visibility of the Org switcher button on the nav-bar.
691
+ * By default, the Org switcher button is shown.
628
692
  */
629
693
  hideOrgSwitcher?: boolean;
630
694
  /**
631
- * A URL path within the app that is to be embedded.
695
+ * A URL path to the embedded application page
632
696
  * If both path and pageId attributes are defined, the path definition
633
697
  * takes precedence. This is the path post the `#/` in the URL of the standalone
634
698
  * ThoughtSpot app. Use this to open the embedded view to a specific path.
635
699
  *
636
- * For eg, if you want the component to open to a specific liveboard
700
+ * For eg, if you want the component to open to a specific Liveboard
637
701
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
638
702
  *
639
703
  * @example
@@ -744,6 +808,12 @@ export declare class AppEmbed extends V1Embed {
744
808
  * embedded Liveboard or visualization.
745
809
  */
746
810
  protected getEmbedParams(): string;
811
+ /**
812
+ * Constructs the URL of the ThoughtSpot app page to be rendered.
813
+ *
814
+ * @param pageId The ID of the page to be embedded.
815
+ */
816
+ getIFrameSrc(): string;
747
817
  /**
748
818
  * Set the iframe height as per the computed height received
749
819
  * from the ThoughtSpot app.
@@ -797,8 +867,8 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
797
867
  */
798
868
  fullHeight?: boolean;
799
869
  /**
800
- * This is the minimum height(in pixels) for a full height Liveboard.
801
- * Setting this height helps resolves issues with empty Liveboards and
870
+ * This is the minimum height(in pixels) for a full-height Liveboard.
871
+ * Setting this height helps resolve issues with empty Liveboards and
802
872
  * other screens navigable from a Liveboard.
803
873
  *
804
874
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
@@ -811,7 +881,7 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
811
881
  enableVizTransformations?: boolean;
812
882
  /**
813
883
  * The Liveboard to display in the embedded view.
814
- * Use either of liveboardId or pinboardId to reference the Liveboard to embed.
884
+ * Use either liveboardId or pinboardId to reference the Liveboard to embed.
815
885
  *
816
886
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
817
887
  */
@@ -830,79 +900,84 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
830
900
  * If set to true, all filter chips from a
831
901
  * Liveboard page will be read-only (no X buttons)
832
902
  *
833
- * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
903
+ * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
834
904
  */
835
905
  preventLiveboardFilterRemoval?: boolean;
836
906
  /**
837
- * Array of viz ids which should be visible when the liveboard
838
- * first renders. This can be changed by triggering the "SetVisibleVizs"
907
+ * Array of visualization IDs which should be visible when the Liveboard
908
+ * renders. This can be changed by triggering the `SetVisibleVizs`
839
909
  * event.
840
910
  *
841
911
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
842
912
  */
843
913
  visibleVizs?: string[];
844
914
  /**
845
- * To support backward compatibilty
915
+ * To support backward compatibility
846
916
  *
847
917
  * @hidden
848
918
  */
849
919
  preventPinboardFilterRemoval?: boolean;
850
920
  /**
851
- * Render embedded Liveboards and visualizations in the new Liveboard experience mode
921
+ * Render embedded Liveboards and visualizations in the
922
+ * new Liveboard experience mode.
852
923
  *
853
924
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
854
925
  */
855
926
  liveboardV2?: boolean;
856
927
  /**
857
- * Tab ID of the Liveboard that is supposed to be active
928
+ * Set a Liveboard tab as an active tab.
929
+ * Specify the tab ID.
858
930
  *
859
931
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
860
932
  */
861
933
  activeTabId?: string;
862
934
  /**
863
- * Hide tab Panel of embedded LB
935
+ * Show or hide the tab panel of the embedded Liveboard.
864
936
  *
865
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
937
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
866
938
  */
867
939
  hideTabPanel?: boolean;
868
940
  /**
869
- * Show or hide Liveboard header
941
+ * Show or hide the Liveboard header.
870
942
  *
871
- * @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
872
944
  * @default false
873
945
  */
874
946
  hideLiveboardHeader?: boolean;
875
947
  /**
876
- * Show or hide Liveboard title
948
+ * Show or hide the Liveboard title.
877
949
  *
878
- * @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
879
951
  * @default false
880
952
  */
881
953
  showLiveboardTitle?: boolean;
882
954
  /**
883
- * Show or hide Liveboard description
955
+ * Show or hide the Liveboard description.
884
956
  *
885
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
957
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
886
958
  * @default false
887
959
  */
888
960
  showLiveboardDescription?: boolean;
889
961
  /**
890
- * Boolean for sticky Liveboard header.
962
+ * Control the position and visibility of
963
+ * the Liveboard header as the users scroll down the
964
+ * embedded Liveboard page.
891
965
  *
892
966
  * @example
893
967
  * ```js
894
968
  * const embed = new LiveboardEmbed('#embed', {
895
- * ... // other liveboard view config
969
+ * ... // other Liveboard view config
896
970
  * isLiveboardHeaderSticky: true,
897
971
  * });
898
972
  * ```
899
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
973
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
900
974
  */
901
975
  isLiveboardHeaderSticky?: boolean;
902
976
  }
903
977
  /**
904
- * Embed a ThoughtSpot Liveboard or a Thoughtspot visualization. When rendered it already
905
- * 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`.
906
981
  *
907
982
  * @example
908
983
  * ```js
@@ -1148,8 +1223,8 @@ export declare enum AuthStatus {
1148
1223
  */
1149
1224
  LOGOUT = "LOGOUT",
1150
1225
  /**
1151
- * Emitted when inPopup: true in the SAMLRedirect flow.
1152
- * And, we are waiting for popup to be triggered either programatically
1226
+ * Emitted when inPopup is true in the SAMLRedirect flow and the
1227
+ * popup is waiting to be triggered either programmatically
1153
1228
  * or by the trigger button.
1154
1229
  *
1155
1230
  * @version SDK: 1.19.0
@@ -1194,8 +1269,8 @@ export interface AuthEventEmitter {
1194
1269
  */
1195
1270
  export declare enum AuthEvent {
1196
1271
  /**
1197
- * Manually trigger the SSO popup. This is useful with
1198
- * authStatus: SAMLRedirect/OIDCRedicre and inPopup: true
1272
+ * Manually trigger the SSO popup. This is useful when
1273
+ * authStatus is SAMLRedirect/OIDCRedirect and inPopup is set to true
1199
1274
  */
1200
1275
  TRIGGER_SSO_POPUP = "TRIGGER_SSO_POPUP"
1201
1276
  }
@@ -1304,10 +1379,14 @@ export declare enum AuthType {
1304
1379
  */
1305
1380
  None = "None",
1306
1381
  /**
1307
- * Passthrough SSO to the embedded App within the iframe. Requires least
1382
+ * Passthrough SSO to the embedded application within the iframe. Requires least
1308
1383
  * configuration, but may not be supported by all IDPs. This will behave like `None`
1309
1384
  * if SSO is not configured on ThoughtSpot.
1310
1385
  *
1386
+ * To use this:
1387
+ * Your SAML or OpenID provider must allow iframe redirects.
1388
+ * For example, if you are using Okta as IdP, you can enable iframe embedding.
1389
+ *
1311
1390
  * @example
1312
1391
  * ```js
1313
1392
  * init({
@@ -1315,12 +1394,7 @@ export declare enum AuthType {
1315
1394
  * authType: AuthType.EmbeddedSSO,
1316
1395
  * });
1317
1396
  * ```
1318
- * Set authentication type as Embedded SSO.
1319
- *
1320
- * To use this:
1321
- * Your SAML or OpenID provider must allow iframe redirects.
1322
- * eg. If you are using okta as IdP, you can enable iFrame embedding.
1323
- * @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
1397
+ * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
1324
1398
  */
1325
1399
  EmbeddedSSO = "EmbeddedSSO",
1326
1400
  /**
@@ -1339,10 +1413,10 @@ export declare enum AuthType {
1339
1413
  SAML = "SSO_SAML",
1340
1414
  /**
1341
1415
  * SSO using SAML
1342
- * Will make the host application redirect to the SAML Idp. Use this
1343
- * when the idp does not allow itself to be embedded.
1416
+ * Makes the host application redirect to the SAML IdP. Use this
1417
+ * if your IdP does not allow itself to be embedded.
1344
1418
  *
1345
- * This redirects the host application to the SAML Idp. The host application
1419
+ * This redirects the host application to the SAML IdP. The host application
1346
1420
  * will be redirected back to the ThoughtSpot app after authentication.
1347
1421
  *
1348
1422
  * @example
@@ -1353,7 +1427,7 @@ export declare enum AuthType {
1353
1427
  * });
1354
1428
  * ```
1355
1429
  *
1356
- * This opens the SAML Idp in a popup window. The popup is triggered
1430
+ * This opens the SAML IdP in a popup window. The popup is triggered
1357
1431
  * when the user clicks the trigger button. The popup window will be
1358
1432
  * closed automatically after authentication.
1359
1433
  * @example
@@ -1367,8 +1441,8 @@ export declare enum AuthType {
1367
1441
  * });
1368
1442
  * ```
1369
1443
  *
1370
- * Can also use event to trigger the popup flow. Works the same
1371
- * as above example.
1444
+ * Can also use the event to trigger the popup flow. Works the same
1445
+ * as the above example.
1372
1446
  * @example
1373
1447
  * ```js
1374
1448
  * const authEE = init({
@@ -1392,7 +1466,7 @@ export declare enum AuthType {
1392
1466
  OIDC = "SSO_OIDC",
1393
1467
  /**
1394
1468
  * SSO using OIDC
1395
- * Will make the host application redirect to the OIDC Idp.
1469
+ * Will make the host application redirect to the OIDC IdP.
1396
1470
  * See code samples in {@link SAMLRedirect}.
1397
1471
  */
1398
1472
  OIDCRedirect = "SSO_OIDC",
@@ -1404,8 +1478,8 @@ export declare enum AuthType {
1404
1478
  */
1405
1479
  AuthServer = "AuthServer",
1406
1480
  /**
1407
- * Trusted authentication server, Use your own authentication server
1408
- * which returns a bearer token, generated using the secret_key obtained
1481
+ * Trusted authentication server. Use your own authentication server
1482
+ * which returns a bearer token, generated using the `secret_key` obtained
1409
1483
  * from ThoughtSpot.
1410
1484
  *
1411
1485
  * @example
@@ -1422,11 +1496,11 @@ export declare enum AuthType {
1422
1496
  */
1423
1497
  TrustedAuthToken = "AuthServer",
1424
1498
  /**
1425
- * Trusted authentication server Cookieless, Use you own authentication
1426
- * server which returns a bearer token, generated using the secret_key
1499
+ * Trusted authentication server Cookieless, Use your own authentication
1500
+ * server which returns a bearer token, generated using the `secret_key`
1427
1501
  * obtained from ThoughtSpot. This uses a cookieless authentication
1428
- * approach, recommended to by pass third-party cookie-blocking restriction
1429
- * implemented by some browsers
1502
+ * approach, recommended to bypass the third-party cookie-blocking restriction
1503
+ * implemented by some browsers.
1430
1504
  *
1431
1505
  * @example
1432
1506
  * ```js
@@ -1439,7 +1513,7 @@ export declare enum AuthType {
1439
1513
  * .then((data) => data.token);
1440
1514
  * }
1441
1515
  * ```
1442
- * @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1.sw
1516
+ * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1443
1517
  */
1444
1518
  TrustedAuthTokenCookieless = "AuthServerCookieless",
1445
1519
  /**
@@ -1561,13 +1635,19 @@ export interface EmbedConfig {
1561
1635
  * The ThoughtSpot cluster hostname or IP address.
1562
1636
  */
1563
1637
  thoughtSpotHost: string;
1638
+ /**
1639
+ * If true, all the iframe links will have /v2 added automatically.
1640
+ * If false, all the iframe links will have /v1 added automatically.
1641
+ * If undefined, nothing will be added
1642
+ */
1643
+ enableReactShell?: boolean | undefined;
1564
1644
  /**
1565
1645
  * The authentication mechanism to use.
1566
1646
  */
1567
1647
  authType: AuthType;
1568
1648
  /**
1569
1649
  * [AuthServer] The trusted authentication endpoint to use to get the
1570
- * authentication token. A GET request is made to the
1650
+ * authentication token. A `GET` request is made to the
1571
1651
  * authentication API endpoint, which returns the token
1572
1652
  * as a plaintext response. For trusted authentication,
1573
1653
  * the `authEndpoint` or `getAuthToken` attribute is required.
@@ -1580,8 +1660,8 @@ export interface EmbedConfig {
1580
1660
  * attribute is required.
1581
1661
  *
1582
1662
  * It is advisable to fetch a new token inside this method and not
1583
- * reuse and older issued token, as because when auth expires this is
1584
- * called again and if it is called with an older token the authentication
1663
+ * reuse the old issued token. When auth expires this method is
1664
+ * called again and if it is called with an older token, the authentication
1585
1665
  * will not succeed.
1586
1666
  */
1587
1667
  getAuthToken?: () => Promise<string>;
@@ -1591,7 +1671,7 @@ export interface EmbedConfig {
1591
1671
  */
1592
1672
  username?: string;
1593
1673
  /**
1594
- * [Basic] The ThoughtSpot login password corresponding to the user name
1674
+ * [Basic] The ThoughtSpot login password corresponding to the username
1595
1675
  *
1596
1676
  * Warning: This feature is primarily intended for developer testing. It is
1597
1677
  * strongly advised not to use this authentication method in production.
@@ -1599,7 +1679,7 @@ export interface EmbedConfig {
1599
1679
  password?: string;
1600
1680
  /**
1601
1681
  * [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
1602
- * open the SAML auth flow in a popup, instead of redirecting browser in
1682
+ * open the SAML auth flow in a popup, instead of redirecting the browser in
1603
1683
  * place.
1604
1684
  *
1605
1685
  * @default false
@@ -1608,91 +1688,93 @@ export interface EmbedConfig {
1608
1688
  noRedirect?: boolean;
1609
1689
  /**
1610
1690
  * [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
1611
- * the SAML auth flow in a popup, instead of redirecting browser in place.
1691
+ * the SAML auth flow in a popup, instead of redirecting the browser in place.
1612
1692
  *
1613
- * Need to use this with authTriggerContainer. Or manually trigger
1614
- * the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
1693
+ * Need to use this with `authTriggerContainer`. Or manually trigger
1694
+ * the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
1615
1695
  *
1616
1696
  * @default false
1617
1697
  * @version SDK: 1.18.0
1618
1698
  */
1619
1699
  inPopup?: boolean;
1620
1700
  /**
1621
- * [SSO] For SSO Authentication, one can supply an optional path param,
1622
- * this will be the path on the host origin where the SAML flow will be
1701
+ * [SSO] For SSO Authentication, one can supply an optional path param;
1702
+ * This will be the path on the host origin where the SAML flow will be
1623
1703
  * terminated.
1624
1704
  *
1625
1705
  * Eg: "/dashboard", "#/foo" [Do not include the host]
1626
1706
  *
1627
- * @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
1707
+ * @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
1628
1708
  */
1629
1709
  redirectPath?: string;
1630
1710
  /** @internal */
1631
1711
  basepath?: string;
1632
1712
  /**
1633
- * Should we encode URL Query Params using base64 encoding which thoughtspot
1634
- * will generate for embedding. This provides additional security to
1635
- * thoughtspot clusters against Cross site scripting attacks.
1713
+ * Boolean to define if the query parameters in the ThoughtSpot URL
1714
+ * should be encoded in base64. This provides additional security to
1715
+ * Thoughtspot clusters against cross-site scripting attacks.
1636
1716
  *
1637
1717
  * @default false
1638
1718
  */
1639
1719
  shouldEncodeUrlQueryParams?: boolean;
1640
1720
  /**
1641
- * Suppress cookie access alert when third party cookies are blocked by the
1642
- * user's browser. Third party cookie blocking is the default behaviour on
1643
- * Safari and opt-in for Firefox/Chrome. If you set this to `true`, you are
1644
- * encouraged to handle `noCookieAccess` event, to show your own treatment
1721
+ * Suppress cookie access alert when third-party cookies are blocked by the
1722
+ * user's browser. Third-party cookie blocking is the default behaviour on
1723
+ * some web browsers like Safari. If you set this attribute to `true`,
1724
+ * you are encouraged to handle `noCookieAccess` event, to show your own treatment
1645
1725
  * in this case.
1646
1726
  *
1647
1727
  * @default false
1648
1728
  */
1649
1729
  suppressNoCookieAccessAlert?: boolean;
1650
1730
  /**
1651
- * Ignore cookie access alert when third party cookies are blocked by the
1731
+ * Ignore the cookie access alert when third-party cookies are blocked by the
1652
1732
  * user's browser. If you set this to `true`, the embedded iframe behaviour
1653
- * persist even in case of non logged in user.
1733
+ * persists even in the case of a non-logged-in user.
1654
1734
  *
1655
1735
  * @default false
1656
1736
  */
1657
1737
  ignoreNoCookieAccess?: boolean;
1658
1738
  /**
1659
- * Re-login when session expires with the previous login options
1739
+ * Re-login a user with the previous login options
1740
+ * when a user session expires.
1660
1741
  *
1661
1742
  * @default false
1662
1743
  */
1663
1744
  autoLogin?: boolean;
1664
1745
  /**
1665
1746
  * Disable redirection to the login page when the embedded session expires
1666
- * This flag is typically used alongside the combination of auth modes such as {@link
1667
- * AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
1747
+ * This flag is typically used alongside the combination of authentication modes such
1748
+ * as {@link AuthType.AuthServer} and auto-login behavior {@link
1749
+ * EmbedConfig.autoLogin}
1668
1750
  *
1669
1751
  * @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1670
1752
  * @default false
1671
1753
  */
1672
1754
  disableLoginRedirect?: boolean;
1673
1755
  /**
1674
- * This message is displayed on the embed view when the login fails.
1756
+ * This message is displayed in the embedded view when a user login fails.
1675
1757
  *
1676
1758
  * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
1677
1759
  */
1678
1760
  loginFailedMessage?: string;
1679
1761
  /**
1680
- * Calls the prefetch method internally when set to true
1762
+ * Calls the prefetch method internally when set to `true`
1681
1763
  *
1682
1764
  * @default false
1683
1765
  */
1684
1766
  callPrefetch?: boolean;
1685
1767
  /**
1686
- * When there are multiple embeds, queue the render of embed to start
1687
- * after the previous embed's render is complete. This helps in the load
1688
- * performance by decreasing the load on the browser.
1768
+ * When there are multiple objects embedded, queue the rendering of embedded objects
1769
+ * to start after the previous embed's render is complete. This helps improve
1770
+ * performance by decreasing the load on the browser.
1689
1771
  *
1690
1772
  * @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1691
1773
  * @default false
1692
1774
  */
1693
1775
  queueMultiRenders?: boolean;
1694
1776
  /**
1695
- * Dynamic CSS Url to be injected in the loaded application.
1777
+ * Dynamic CSS URL to be injected in the loaded application.
1696
1778
  * You would also need to set `style-src` in the CSP settings.
1697
1779
  *
1698
1780
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1700,9 +1782,9 @@ export interface EmbedConfig {
1700
1782
  */
1701
1783
  customCssUrl?: string;
1702
1784
  /**
1703
- * [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
1785
+ * [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
1704
1786
  * additional call. This is slower and should be avoided. Listen to the
1705
- * NO_COOKIE_ACCESS event to handle the situation.
1787
+ * `NO_COOKIE_ACCESS` event to handle the situation.
1706
1788
  *
1707
1789
  * This is slightly slower than letting the browser handle the cookie check, as it
1708
1790
  * involves an extra network call.
@@ -1711,26 +1793,26 @@ export interface EmbedConfig {
1711
1793
  */
1712
1794
  detectCookieAccessSlow?: boolean;
1713
1795
  /**
1714
- * Hide beta alert warning message for SearchEmbed.
1796
+ * Hide the `beta` alert warning message for SearchEmbed.
1715
1797
  *
1716
1798
  * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
1717
1799
  */
1718
1800
  suppressSearchEmbedBetaWarning?: boolean;
1719
1801
  /**
1720
- * Hide beta alert warning message for SageEmbed.
1802
+ * Hide `beta` alert warning message for SageEmbed.
1721
1803
  *
1722
1804
  */
1723
1805
  suppressSageEmbedBetaWarning?: boolean;
1724
1806
  /**
1725
1807
  * Custom style params for embed Config.
1726
1808
  *
1727
- * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
1809
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1728
1810
  */
1729
1811
  customizations?: CustomisationsInterface;
1730
1812
  /**
1731
- * For inPopup SAMLRedirect or OIDCRedirect Auth, we need a button which the user
1732
- * click to trigger the flow. This is the containing element
1733
- * for that button.
1813
+ * For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
1814
+ * button that the user can click to trigger the flow.
1815
+ * This attribute sets a containing element for that button.
1734
1816
  *
1735
1817
  * @example
1736
1818
  * ```js
@@ -1740,11 +1822,11 @@ export interface EmbedConfig {
1740
1822
  * authTriggerContainer: '#auth-trigger-container'
1741
1823
  * })
1742
1824
  * ```
1743
- * @version SDK: 1.17.0 | ThoughtSpot: *
1825
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1744
1826
  */
1745
1827
  authTriggerContainer?: string | HTMLElement;
1746
1828
  /**
1747
- * Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
1829
+ * Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
1748
1830
  * SAML popup. This is useful when you want to trigger the popup on a custom user
1749
1831
  * action.
1750
1832
  *
@@ -1752,20 +1834,22 @@ export interface EmbedConfig {
1752
1834
  useEventForSAMLPopup?: boolean;
1753
1835
  /**
1754
1836
  * Text to show in the button which triggers the popup auth flow.
1755
- * Default: "Authorize".
1837
+ * Default: `Authorize`.
1756
1838
  *
1757
- * @version SDK: 1.17.0 | ThoughtSpot: *
1839
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1758
1840
  */
1759
1841
  authTriggerText?: string;
1760
1842
  /**
1761
- * Disable Full App access of Embedded app outside of the iFrame.
1843
+ * Prevent users from accessing the full application or ThoughtSpot application pages
1844
+ * access to the embedded application users
1845
+ * outside of the iframe.
1762
1846
  *
1763
1847
  * @default true
1764
1848
  * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1765
1849
  */
1766
1850
  blockNonEmbedFullAppAccess?: boolean;
1767
1851
  /**
1768
- * Host config incase embedded app is inside TS app itself
1852
+ * Host config in case embedded app is inside TS app itself
1769
1853
  *
1770
1854
  * @hidden
1771
1855
  */
@@ -1791,17 +1875,17 @@ export interface EmbedConfig {
1791
1875
  export interface LayoutConfig {
1792
1876
  }
1793
1877
  /**
1794
- * Embedded iFrame configuration
1878
+ * Embedded iframe configuration
1795
1879
  *
1796
1880
  * @group Embed components
1797
1881
  */
1798
1882
  export interface FrameParams {
1799
1883
  /**
1800
- * The width of the iFrame (unit is pixels if numeric).
1884
+ * The width of the iframe (unit is pixels if numeric).
1801
1885
  */
1802
1886
  width?: number | string;
1803
1887
  /**
1804
- * The height of the iFrame (unit is pixels if numeric).
1888
+ * The height of the iframe (unit is pixels if numeric).
1805
1889
  */
1806
1890
  height?: number | string;
1807
1891
  /**
@@ -1902,7 +1986,6 @@ export interface ViewConfig {
1902
1986
  */
1903
1987
  runtimeParameters?: RuntimeParameter[];
1904
1988
  /**
1905
- /**
1906
1989
  * The locale/language to use for the embedded view.
1907
1990
  *
1908
1991
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
@@ -2002,31 +2085,30 @@ export interface ViewConfig {
2002
2085
  */
2003
2086
  reorderedHomepageModules?: HomepageModule[];
2004
2087
  /**
2005
- * The list of tab IDs to show in the embedded.
2006
- * Only this Tabs will be shown in their respective LBs.
2007
- * Use this to show an tabID.
2088
+ * The list of tab IDs to show in the embedded Liveboard.
2089
+ * Only the tabs specified in the array will be shown in the Liveboard.
2008
2090
  *
2009
- * Use either this or hiddenTabs.
2091
+ * Use either `visibleTabs` or `hiddenTabs`.
2010
2092
  *
2011
2093
  * @example
2012
2094
  * ```js
2013
- * const embed = new LiveboardEmbed('#embed', {
2014
- * ... // other liveboard view config
2015
- * visibleTabs: [
2095
+ * visibleTabs: [
2016
2096
  * '430496d6-6903-4601-937e-2c691821af3c',
2017
- * 'f547ec54-2a37-4516-a222-2b06719af726']
2018
- * });
2097
+ * 'f547ec54-2a37-4516-a222-2b06719af726']
2019
2098
  * ```
2020
2099
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2021
2100
  */
2022
2101
  visibleTabs?: string[];
2023
2102
  /**
2024
- * homepageLeftNavItems : show/hide Homeapage Left Nav Bar Items
2025
- * There are 8 home nav list items, we will send those item as list
2026
- * which we want to hide for TSE.
2027
- * eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
2103
+ * homepageLeftNavItems : Show or hide the left navigation bar items.
2104
+ * There are 8 eight home navigation list items.
2105
+ * To hide these items, specify the string in the array.
2028
2106
  *
2029
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
2107
+ * ```js
2108
+ * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
2109
+ * ```
2110
+ *
2111
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
2030
2112
  */
2031
2113
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
2032
2114
  /**
@@ -2042,7 +2124,7 @@ export interface ViewConfig {
2042
2124
  * });
2043
2125
  * embed.showPreRender();
2044
2126
  * ```
2045
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
2127
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
2046
2128
  */
2047
2129
  preRenderId?: string;
2048
2130
  /**
@@ -2081,7 +2163,7 @@ export type MessagePayload = {
2081
2163
  status?: string;
2082
2164
  };
2083
2165
  /**
2084
- * MessageOptions: By Providing options, getting specific event start / end based on
2166
+ * MessageOptions: By providing options, getting specific event start / end based on
2085
2167
  * option
2086
2168
  *
2087
2169
  * @group Events
@@ -2089,7 +2171,7 @@ export type MessagePayload = {
2089
2171
  export type MessageOptions = {
2090
2172
  /**
2091
2173
  * A boolean value indicating that start status events of this type
2092
- * will be dispatched
2174
+ * will be dispatched.
2093
2175
  */
2094
2176
  start?: boolean;
2095
2177
  };
@@ -2109,7 +2191,7 @@ responder?: (data: any) => void) => void;
2109
2191
  */
2110
2192
  export type MessageCallbackObj = {
2111
2193
  /**
2112
- * options: It contains start, A boolean value indicating that start
2194
+ * options: It contains start, a boolean value indicating that start
2113
2195
  * status events of this type will be dispatched
2114
2196
  */
2115
2197
  options: MessageOptions;
@@ -2181,7 +2263,7 @@ export declare enum RuntimeFilterOp {
2181
2263
  IN = "IN"
2182
2264
  }
2183
2265
  /**
2184
- * Home page module that can be hide
2266
+ * Home page module that can be hidden
2185
2267
  */
2186
2268
  export declare enum HomepageModule {
2187
2269
  /**
@@ -2197,7 +2279,7 @@ export declare enum HomepageModule {
2197
2279
  */
2198
2280
  Favorite = "FAVORITE",
2199
2281
  /**
2200
- * List of answers and liveboards
2282
+ * List of answers and Liveboards
2201
2283
  */
2202
2284
  MyLibrary = "MY_LIBRARY",
2203
2285
  /**
@@ -2230,7 +2312,7 @@ export interface RuntimeFilter {
2230
2312
  values: (number | boolean | string)[];
2231
2313
  }
2232
2314
  /**
2233
- * A filter that can be applied to ThoughtSpot answers, Liveboards, or
2315
+ * A filter that can be applied to ThoughtSpot Answers, Liveboards, or
2234
2316
  * visualizations at runtime.
2235
2317
  */
2236
2318
  export interface RuntimeParameter {
@@ -2267,12 +2349,26 @@ export declare enum EmbedEvent {
2267
2349
  /**
2268
2350
  * Rendering has initialized.
2269
2351
  *
2352
+ * @example
2353
+ *```js
2354
+ * liveboardEmbed.on(EmbedEvent.Init, showLoader)
2355
+ * //show a loader
2356
+ * function showLoader() {
2357
+ * document.getElementById("loader");
2358
+ * }
2359
+ *```
2270
2360
  * @returns timestamp - The timestamp when the event was generated.
2271
2361
  */
2272
2362
  Init = "init",
2273
2363
  /**
2274
2364
  * Authentication has either succeeded or failed.
2275
2365
  *
2366
+ * @example
2367
+ *```js
2368
+ * appEmbed.on(EmbedEvent.AuthInit, payload => {
2369
+ * console.log('AuthInit', payload);
2370
+ * })
2371
+ *```
2276
2372
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
2277
2373
  */
2278
2374
  AuthInit = "authInit",
@@ -2280,37 +2376,91 @@ export declare enum EmbedEvent {
2280
2376
  * The embed object container has loaded.
2281
2377
  *
2282
2378
  * @returns timestamp - The timestamp when the event was generated.
2379
+ * @example
2380
+ *```js
2381
+ * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
2382
+ * //hide loader
2383
+ * function hideLoader() {
2384
+ * document.getElementById("loader");
2385
+ * }
2386
+ *```
2283
2387
  */
2284
2388
  Load = "load",
2285
2389
  /**
2286
2390
  * Data pertaining to answer or Liveboard is received
2287
2391
  *
2288
2392
  * @return data - The answer or Liveboard data
2393
+ * @example
2394
+ *```js
2395
+ * liveboardEmbed.on(EmbedEvent.Data, payload => {
2396
+ * console.log('data', payload);
2397
+ * })
2398
+ *```
2289
2399
  * @important
2290
2400
  */
2291
2401
  Data = "data",
2292
2402
  /**
2293
- * Search/answer/Liveboard filters have been applied/updated by the user.
2403
+ * Search/Answer/Liveboard filters have been applied/updated by the user.
2294
2404
  *
2295
2405
  * @hidden
2296
2406
  */
2297
2407
  FiltersChanged = "filtersChanged",
2298
2408
  /**
2299
2409
  * Search query has been updated by the user.
2410
+ *
2411
+ * @example
2412
+ *```js
2413
+ * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
2414
+ *```
2300
2415
  */
2301
2416
  QueryChanged = "queryChanged",
2302
2417
  /**
2303
- * A drill down operation has been performed.
2418
+ * A drill-down operation has been performed.
2304
2419
  *
2305
2420
  * @returns additionalFilters - Any additional filters applied
2306
2421
  * @returns drillDownColumns - The columns on which drill down was performed
2307
2422
  * @returns nonFilteredColumns - The columns that were not filtered
2423
+ * @example
2424
+ *```js
2425
+ * searchEmbed.trigger(HostEvent.DrillDown, {
2426
+ * points: {
2427
+ * clickedPoint,
2428
+ * selectedPoints: selectedPoint
2429
+ * },
2430
+ * autoDrillDown: true,
2431
+ * })
2432
+ *```
2433
+ * In this example, `VizPointDoubleClick` event is used for
2434
+ * triggering the `DrillDown` event when an area or specific
2435
+ * data point on a table or chart is double-clicked.
2436
+ * @example
2437
+ *```js
2438
+ * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
2439
+ * console.log(payload);
2440
+ * const clickedPoint = payload.data.clickedPoint;
2441
+ * const selectedPoint = payload.data.selectedPoints;
2442
+ * console.log('>>> called', clickedPoint);
2443
+ * embed.trigger(HostEvent.DrillDown, {
2444
+ * points: {
2445
+ * clickedPoint,
2446
+ * selectedPoints: selectedPoint
2447
+ * },
2448
+ * autoDrillDown: true,
2449
+ * })
2450
+ * })
2451
+ *```
2308
2452
  */
2309
2453
  Drilldown = "drillDown",
2310
2454
  /**
2311
2455
  * One or more data sources have been selected.
2312
2456
  *
2313
2457
  * @returns dataSourceIds - the list of data sources
2458
+ * @example
2459
+ * ```js
2460
+ * searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
2461
+ * console.log('DataSourceSelected', payload);
2462
+ * })
2463
+ * ```
2314
2464
  */
2315
2465
  DataSourceSelected = "dataSourceSelected",
2316
2466
  /**
@@ -2318,25 +2468,49 @@ export declare enum EmbedEvent {
2318
2468
  *
2319
2469
  * @returns columnIds - the list of columns
2320
2470
  * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2471
+ * @example
2472
+ * ```js
2473
+ * appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
2474
+ * console.log('AddRemoveColumns', payload);
2475
+ * })
2476
+ * ```
2321
2477
  */
2322
2478
  AddRemoveColumns = "addRemoveColumns",
2323
2479
  /**
2324
- * A custom action has been triggered
2480
+ * A custom action has been triggered.
2325
2481
  *
2326
- * @returns actionId - The id of the custom action
2327
- * @returns data - The answer or Liveboard data
2482
+ * @returns actionId - ID of the custom action
2483
+ * @returns data - Response payload with the Answer or Liveboard data
2484
+ * @example
2485
+ * ```js
2486
+ * appEmbed.on(EmbedEvent.customAction, payload => {
2487
+ * const data = payload.data;
2488
+ * if (data.id === 'insert Custom Action ID here') {
2489
+ * console.log('Custom Action event:', data.embedAnswerData);
2490
+ * }
2491
+ * })
2492
+ * ```
2328
2493
  */
2329
2494
  CustomAction = "customAction",
2330
2495
  /**
2331
- * Listen to double clicks on a visualization
2496
+ * Listen to double click actions on a visualization.
2332
2497
  *
2333
- * @return ContextMenuInputPoints - data point that is double clicked
2498
+ * @return ContextMenuInputPoints - Data point that is double-clicked
2334
2499
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2500
+ * @example
2501
+ * ```js
2502
+ * livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
2503
+ * console.log('VizPointDoubleClick', payload)
2504
+ * })
2505
+ * ```
2335
2506
  */
2336
2507
  VizPointDoubleClick = "vizPointDoubleClick",
2337
2508
  /**
2338
- * Listen to clicks on a visualization in a liveboard or Search result.
2509
+ * Listen to clicks on a visualization in a Liveboard or Search result.
2339
2510
  *
2511
+ * @return viz, clickedPoint - metadata about the point that is clicked
2512
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2513
+ * @important
2340
2514
  * @example
2341
2515
  * ```js
2342
2516
  * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
@@ -2349,25 +2523,42 @@ export declare enum EmbedEvent {
2349
2523
  * )
2350
2524
  * });
2351
2525
  * ```
2352
- * @return viz, clickedPoint - metadata about point that is clicked
2353
- * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2354
- * @important
2355
2526
  */
2356
2527
  VizPointClick = "vizPointClick",
2357
2528
  /**
2358
2529
  * An error has occurred.
2359
2530
  *
2360
2531
  * @returns error - An error object or message
2532
+ * @example
2533
+ * ```js
2534
+ * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
2535
+ * //show error messaage
2536
+ * function showErrorMsg() {
2537
+ * document.getElementById("error");
2538
+ * ```
2361
2539
  */
2362
2540
  Error = "Error",
2363
2541
  /**
2364
- * The embedded object has sent an alert
2542
+ * The embedded object has sent an alert.
2365
2543
  *
2366
2544
  * @returns alert - An alert object
2545
+ * @example
2546
+ * ```js
2547
+ * searchEmbed.on(EmbedEvent.Alert)
2548
+ * ```
2367
2549
  */
2368
2550
  Alert = "alert",
2369
2551
  /**
2370
2552
  * The ThoughtSpot auth session has expired.
2553
+ *
2554
+ * @example
2555
+ *```js
2556
+ * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
2557
+ * //show auth expired banner
2558
+ * function showAuthExpired() {
2559
+ * document.getElementById("authExpiredBanner");
2560
+ * }
2561
+ *```
2371
2562
  */
2372
2563
  AuthExpire = "ThoughtspotAuthExpired",
2373
2564
  /**
@@ -2397,14 +2588,27 @@ export declare enum EmbedEvent {
2397
2588
  */
2398
2589
  EmbedIframeCenter = "EmbedIframeCenter",
2399
2590
  /**
2400
- * Emitted when the "Get Data" button in Search Bar embed
2401
- * is clicked.
2591
+ * Emitted when the **Get Data** action is initiated.
2592
+ * Applicable to `SearchBarEmbed` only.
2402
2593
  *
2403
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0.sw
2594
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2595
+ * @example
2596
+ *```js
2597
+ * searchbarEmbed.on(EmbedEvent.GetDataClick)
2598
+ * .then(data => {
2599
+ * console.log('Answer Data:', data);
2600
+ * })
2601
+ *```
2404
2602
  */
2405
2603
  GetDataClick = "getDataClick",
2406
2604
  /**
2407
2605
  * Detects the route change.
2606
+ *
2607
+ * @example
2608
+ *```js
2609
+ * searchEmbed.on(EmbedEvent.RouteChange, payload =>
2610
+ * console.log('data', payload))
2611
+ *```
2408
2612
  */
2409
2613
  RouteChange = "ROUTE_CHANGE",
2410
2614
  /**
@@ -2414,10 +2618,15 @@ export declare enum EmbedEvent {
2414
2618
  */
2415
2619
  V1Data = "exportVizDataToParent",
2416
2620
  /**
2417
- * Emitted when the embed does not have cookie access. This
2418
- * happens on Safari where third-party cookies are blocked by default.
2621
+ * Emitted when the embed does not have cookie access. This happens
2622
+ * when Safari and other Web browsers block third-party cookies
2623
+ * are blocked by default. `NoCookieAccess` can trigger
2419
2624
  *
2420
- * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2625
+ * @example
2626
+ *```js
2627
+ * appEmbed.on(EmbedEvent.NoCookieAccess)
2628
+ *```
2629
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
2421
2630
  */
2422
2631
  NoCookieAccess = "noCookieAccess",
2423
2632
  /**
@@ -2431,12 +2640,24 @@ export declare enum EmbedEvent {
2431
2640
  * Emitted when any modal is opened in the app
2432
2641
  *
2433
2642
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2643
+ * @example
2644
+ *```js
2645
+ * appEmbed.on(EmbedEvent.DialogOpen, payload => {
2646
+ * console.log('dialog open', payload);
2647
+ * })
2648
+ *```
2434
2649
  */
2435
2650
  DialogOpen = "dialog-open",
2436
2651
  /**
2437
2652
  * Emitted when any modal is closed in the app
2438
2653
  *
2439
2654
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2655
+ * @example
2656
+ *```js
2657
+ * appEmbed.on(EmbedEvent.DialogClose, payload => {
2658
+ * console.log('dialog close', payload);
2659
+ * })
2660
+ *```
2440
2661
  */
2441
2662
  DialogClose = "dialog-close",
2442
2663
  /**
@@ -2445,6 +2666,21 @@ export declare enum EmbedEvent {
2445
2666
  * other events on the rendered Liveboard.
2446
2667
  *
2447
2668
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
2669
+ * @example
2670
+ *```js
2671
+ * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
2672
+ console.log('Liveboard is rendered', payload);
2673
+ })
2674
+ *```
2675
+ * The following example shows how to trigger
2676
+ * `SetVisibleVizs` event using LiveboardRendered embed event:
2677
+ * @example
2678
+ *```js
2679
+ * const embedRef = useEmbedRef();
2680
+ * const onLiveboardRendered = () => {
2681
+ * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
2682
+ * };
2683
+ *```
2448
2684
  */
2449
2685
  LiveboardRendered = "PinboardRendered",
2450
2686
  /**
@@ -2452,216 +2688,470 @@ export declare enum EmbedEvent {
2452
2688
  * is triggered on all events.
2453
2689
  *
2454
2690
  * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2691
+ * @example
2692
+ *```js
2693
+ * appEmbed.on(EmbedEvent.ALL, payload => {
2694
+ * console.log('Embed Events', payload)
2695
+ * })
2696
+ *```
2455
2697
  */
2456
2698
  ALL = "*",
2457
2699
  /**
2458
2700
  * Emitted when an Answer is saved in the app
2459
2701
  *
2460
2702
  * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2703
+ * @example
2704
+ *```js
2705
+ * //trigger when action starts
2706
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2707
+ * console.log('Save', payload)
2708
+ * }, {
2709
+ * start: true
2710
+ * })
2711
+ * //trigger when action ends
2712
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2713
+ * console.log('Save', payload)
2714
+ * })
2715
+ *```
2461
2716
  */
2462
2717
  Save = "save",
2463
2718
  /**
2464
2719
  * Emitted when the download action is triggered on an answer
2465
2720
  *
2721
+ * **Note**: This event is deprecated in v1.21.0.
2722
+ * To fire an event when a download action is initiated on a chart or table,
2723
+ * use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
2724
+ * or `EmbedEvent.DownloadAsXLSX`
2725
+ *
2466
2726
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2727
+ * @example
2728
+ *```js
2729
+ * liveboardEmbed.trigger(HostEvent.Download, {
2730
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2731
+ * })
2732
+ *```
2467
2733
  */
2468
2734
  Download = "download",
2469
2735
  /**
2470
2736
  * Emitted when the download action is triggered on an answer
2471
2737
  *
2472
2738
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
2739
+ * @example
2740
+ *```js
2741
+ * //trigger when action starts
2742
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2743
+ * console.log('download PNG', payload)}, {start: true })
2744
+ * //trigger when action ends
2745
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2746
+ * console.log('download PNG', payload)})
2747
+ *```
2473
2748
  */
2474
2749
  DownloadAsPng = "downloadAsPng",
2475
2750
  /**
2476
2751
  * Emitted when the Download as PDF action is triggered on an answer
2477
2752
  *
2478
2753
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2754
+ * @example
2755
+ *```js
2756
+ * //trigger when action starts
2757
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2758
+ * console.log('download PDF', payload)}, {start: true })
2759
+ * //trigger when action ends
2760
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2761
+ * console.log('download PDF', payload)})
2762
+ *```
2479
2763
  */
2480
2764
  DownloadAsPdf = "downloadAsPdf",
2481
2765
  /**
2482
2766
  * Emitted when the Download as CSV action is triggered on an answer
2483
2767
  *
2484
2768
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2769
+ * @example
2770
+ *```js
2771
+ * //trigger when action starts
2772
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2773
+ * console.log('download CSV', payload)}, {start: true })
2774
+ * //trigger when action ends
2775
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2776
+ * console.log('download CSV', payload)})
2777
+ *```
2485
2778
  */
2486
2779
  DownloadAsCsv = "downloadAsCsv",
2487
2780
  /**
2488
2781
  * Emitted when the Download as XLSX action is triggered on an answer
2489
2782
  *
2490
2783
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2784
+ * @example
2785
+ *```js
2786
+ * //trigger when action starts
2787
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2788
+ * console.log('download Xlsx', payload)}, { start: true })
2789
+ * //trigger when action ends
2790
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2791
+ * console.log('download Xlsx', payload)})
2792
+ *```
2491
2793
  */
2492
2794
  DownloadAsXlsx = "downloadAsXlsx",
2493
2795
  /**
2494
- * Emitted when an answer is deleted in the app
2796
+ * Emitted when an Answer is deleted in the app
2495
2797
  *
2496
2798
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2799
+ * @example
2800
+ *```js
2801
+ * //trigger when action starts
2802
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2803
+ * console.log('delete answer', payload)}, {start: true })
2804
+ * //trigger when action is completed
2805
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2806
+ * console.log('delete answer', payload)})
2807
+ *```
2497
2808
  */
2498
2809
  AnswerDelete = "answerDelete",
2499
2810
  /**
2500
2811
  * Emitted when an answer is pinned to a Liveboard
2501
2812
  *
2502
2813
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2814
+ * @example
2815
+ *```js
2816
+ * //trigger when action starts
2817
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2818
+ * console.log('pin', payload)
2819
+ * }, {
2820
+ * start: true
2821
+ * })
2822
+ * //trigger when action ends
2823
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2824
+ * console.log('pin', payload)
2825
+ * })
2826
+ *```
2503
2827
  */
2504
2828
  Pin = "pin",
2505
2829
  /**
2506
2830
  * Emitted when SpotIQ analysis is triggered
2507
2831
  *
2508
2832
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2833
+ * @example
2834
+ *```js
2835
+ * //trigger when action starts
2836
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2837
+ * console.log('SpotIQAnalyze', payload)
2838
+ * }, {
2839
+ * start: true
2840
+ * })
2841
+ * //trigger when action ends
2842
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2843
+ * console.log('SpotIQ analyze', payload)
2844
+ * })
2845
+ *```
2509
2846
  */
2510
2847
  SpotIQAnalyze = "spotIQAnalyze",
2511
2848
  /**
2512
2849
  * Emitted when a user shares an object with another user or group
2513
2850
  *
2514
2851
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2852
+ * @example
2853
+ *```js
2854
+ * //trigger when action starts
2855
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2856
+ * console.log('Share', payload)
2857
+ * }, {
2858
+ * start: true
2859
+ * })
2860
+ * //trigger when action ends
2861
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2862
+ * console.log('Share', payload)
2863
+ * })
2864
+ *```
2515
2865
  */
2516
2866
  Share = "share",
2517
2867
  /**
2518
- * Emitted when a user clicks the Include action to include a specific value or data
2519
- * on a chart or table
2868
+ * Emitted when a user clicks the **Include** action to include a specific value or
2869
+ * data on a chart or table.
2520
2870
  *
2521
2871
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2872
+ * @example
2873
+ *```js
2874
+ * appEmbed.on(EmbedEvent.DrillInclude, payload => {
2875
+ * console.log('Drill include', payload);
2876
+ * })
2877
+ *```
2522
2878
  */
2523
2879
  DrillInclude = "context-menu-item-include",
2524
2880
  /**
2525
- * Emitted when a user clicks the Exclude action to exclude a specific value or data
2526
- * on a chart or table
2881
+ * Emitted when a user clicks the **Exclude** action to exclude a specific value or
2882
+ * data on a chart or table
2527
2883
  *
2528
2884
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2885
+ * @example
2886
+ *```js
2887
+ * appEmbed.on(EmbedEvent.DrillExclude, payload => {
2888
+ * console.log('Drill exclude', payload);
2889
+ * })
2890
+ *```
2529
2891
  */
2530
2892
  DrillExclude = "context-menu-item-exclude",
2531
2893
  /**
2532
- * Emitted when copied column value on the app
2894
+ * Emitted when a column value is copied in the embedded app.
2533
2895
  *
2534
2896
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2897
+ * @example
2898
+ *```js
2899
+ * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
2900
+ * console.log('copy to clipboard', payload);
2901
+ * })
2902
+ *```
2535
2903
  */
2536
2904
  CopyToClipboard = "context-menu-item-copy-to-clipboard",
2537
2905
  /**
2538
- * Emitted when a user clicks the Update TML action
2906
+ * Emitted when a user clicks the **Update TML** action
2539
2907
  *
2540
2908
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2909
+ * @example
2910
+ *```js
2911
+ * liveboardEmbed.on(EmbedEvent.UpdateTML)
2912
+ * })
2913
+ *```
2541
2914
  */
2542
2915
  UpdateTML = "updateTSL",
2543
2916
  /**
2544
- * Emitted when a user clicks the Edit TML action
2917
+ * Emitted when a user clicks the **Edit TML** action
2545
2918
  *
2546
2919
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2920
+ * @example
2921
+ *```js
2922
+ * appEmbed.on(EmbedEvent.EditTML, payload => {
2923
+ * console.log('Edit TML', payload);
2924
+ * })
2925
+ *```
2547
2926
  */
2548
2927
  EditTML = "editTSL",
2549
2928
  /**
2550
- * Emitted when ExportTML trigger in answer on the app
2929
+ * Emitted when the **Export TML** action is triggered on an
2930
+ * an embedded object in the app
2551
2931
  *
2552
2932
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2933
+ * @example
2934
+ *```js
2935
+ * //trigger when action starts
2936
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2937
+ * console.log('Export TML', payload)}, { start: true })
2938
+ * //trigger when action ends
2939
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2940
+ * console.log('Export TML', payload)})
2941
+ *```
2553
2942
  */
2554
2943
  ExportTML = "exportTSL",
2555
2944
  /**
2556
- * Emitted when an answer is saved as a view
2945
+ * Emitted when an Answer is saved as a View.
2557
2946
  *
2558
2947
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2948
+ * @example
2949
+ *```js
2950
+ * appEmbed.on(EmbedEvent.SaveAsView, payload => {
2951
+ * console.log('View', payload);
2952
+ * })
2953
+ *```
2559
2954
  */
2560
2955
  SaveAsView = "saveAsView",
2561
2956
  /**
2562
- * Emitted when copy of existing answer on the app
2957
+ * Emitted when the user creates a copy of an Answer
2563
2958
  *
2564
2959
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2960
+ * @example
2961
+ *```js
2962
+ * //trigger when action starts
2963
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2964
+ * console.log('Copy and edit', payload)}, {start: true })
2965
+ * //trigger when action ends
2966
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2967
+ * console.log('Copy and edit', payload)})
2968
+ *```
2565
2969
  */
2566
2970
  CopyAEdit = "copyAEdit",
2567
2971
  /**
2568
- * Emitted when a user clicks Show underlying data on an answe
2972
+ * Emitted when a user clicks Show underlying data on an Answer
2569
2973
  *
2570
2974
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2975
+ * @example
2976
+ *```js
2977
+ * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
2978
+ * console.log('show data', payload);
2979
+ * })
2980
+ *```
2571
2981
  */
2572
2982
  ShowUnderlyingData = "showUnderlyingData",
2573
2983
  /**
2574
- * Emitted when an answer is switched to a chart or table view
2984
+ * Emitted when an answer is switched to a chart or table view.
2575
2985
  *
2576
2986
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2987
+ * @example
2988
+ *```js
2989
+ * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
2990
+ * console.log('switch view', payload);
2991
+ * })
2992
+ *```
2577
2993
  */
2578
2994
  AnswerChartSwitcher = "answerChartSwitcher",
2579
2995
  /**
2580
- * Internal event to communicate the initial settings back to the TS APP
2996
+ * Internal event to communicate the initial settings back to the ThoughtSpot app
2581
2997
  *
2582
2998
  * @hidden
2583
2999
  */
2584
3000
  APP_INIT = "appInit",
2585
3001
  /**
2586
- * Emitted when a user clicks Show Liveboard details on a Liveboard
3002
+ * Emitted when a user clicks **Show Liveboard details** on a Liveboard
2587
3003
  *
2588
3004
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3005
+ * @example
3006
+ *```js
3007
+ * liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
3008
+ * console.log('Liveboard details', payload);
3009
+ * })
3010
+ *```
2589
3011
  */
2590
3012
  LiveboardInfo = "pinboardInfo",
2591
3013
  /**
2592
3014
  * Emitted when a user clicks on the Favorite icon on a Liveboard
2593
3015
  *
2594
3016
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3017
+ * @example
3018
+ *```js
3019
+ * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
3020
+ * console.log('favorites', payload);
3021
+ * })
3022
+ *```
2595
3023
  */
2596
3024
  AddToFavorites = "addToFavorites",
2597
3025
  /**
2598
- * Emitted when a user clicks Schedule on a Liveboard
3026
+ * Emitted when a user clicks **Schedule** on a Liveboard
2599
3027
  *
2600
3028
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3029
+ * @example
3030
+ *```js
3031
+ * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
3032
+ * console.log(`Liveboard schedule', payload);
3033
+ * })
3034
+ *```
2601
3035
  */
2602
3036
  Schedule = "subscription",
2603
3037
  /**
2604
- * Emitted when a user clicks Edit on a Liveboard or visualization
3038
+ * Emitted when a user clicks **Edit** on a Liveboard or visualization
2605
3039
  *
2606
3040
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3041
+ * @example
3042
+ *```js
3043
+ * liveboardEmbed.on(EmbedEvent.Edit, payload => {
3044
+ * console.log(`Liveboard edit', payload);
3045
+ * })
3046
+ *```
2607
3047
  */
2608
3048
  Edit = "edit",
2609
3049
  /**
2610
- * Emitted when a user clicks Make a copy on a Liveboard
3050
+ * Emitted when a user clicks *Make a copy* on a Liveboard
2611
3051
  *
2612
3052
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3053
+ * @example
3054
+ *```js
3055
+ * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
3056
+ * console.log(`Copy', payload);
3057
+ * })
3058
+ *```
2613
3059
  */
2614
3060
  MakeACopy = "makeACopy",
2615
3061
  /**
2616
- * Emitted when a user clicks Present on a Liveboard or visualization
3062
+ * Emitted when a user clicks **Present** on a Liveboard or visualization
2617
3063
  *
2618
3064
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3065
+ * @example
3066
+ *```js
3067
+ * liveboardEmbed.trigger(HostEvent.Present)
3068
+ *```
3069
+ * @example
3070
+ *```js
3071
+ * liveboardEmbed.on(EmbedEvent.Present, {
3072
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
3073
+ * })
3074
+ *```
2619
3075
  */
2620
3076
  Present = "present",
2621
3077
  /**
2622
- * Emitted when a user clicks Delete on a Liveboard
3078
+ * Emitted when a user clicks **Delete** on a visualization
2623
3079
  *
2624
3080
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3081
+ * @example
3082
+ *```js
3083
+ * liveboardEmbed.trigger(HostEvent.Delete,
3084
+ * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
3085
+ *```
2625
3086
  */
2626
3087
  Delete = "delete",
2627
3088
  /**
2628
3089
  * Emitted when a user clicks Manage schedules on a Liveboard
2629
3090
  *
2630
3091
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3092
+ * @example
3093
+ *```js
3094
+ * liveboardEmbed.trigger(HostEvent.SchedulesList)
3095
+ *```
2631
3096
  */
2632
3097
  SchedulesList = "schedule-list",
2633
3098
  /**
2634
- * Emitted when a user clicks Cancel in edit mode on a Liveboard
3099
+ * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
2635
3100
  *
2636
3101
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3102
+ * @example
3103
+ *```js
3104
+ * liveboardEmbed.trigger(HostEvent.Cancel)
3105
+ *```
2637
3106
  */
2638
3107
  Cancel = "cancel",
2639
3108
  /**
2640
- * Emitted when a user clicks Explore on a visualization
3109
+ * Emitted when a user clicks **Explore** on a visualization
2641
3110
  *
2642
3111
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3112
+ * @example
3113
+ *```js
3114
+ * liveboardEmbed.trigger(HostEvent.Explore, {
3115
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
3116
+ *```
2643
3117
  */
2644
3118
  Explore = "explore",
2645
3119
  /**
2646
- * Emitted when a user clicks Copy link action on a visualization
3120
+ * Emitted when a user clicks **Copy link** action on a visualization
2647
3121
  *
2648
3122
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3123
+ * @example
3124
+ *```js
3125
+ * liveboardEmbed.trigger(HostEvent.CopyLink, {
3126
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
3127
+ *```
2649
3128
  */
2650
3129
  CopyLink = "embedDocument",
2651
3130
  /**
2652
- * Emitted when a user interacts with cross filters on a visualization or liveboard
3131
+ * Emitted when a user interacts with cross filters on a visualization or Liveboard
2653
3132
  *
2654
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
3133
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
3134
+ * @example
3135
+ *```js
3136
+ * liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
3137
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
3138
+ *```
2655
3139
  */
2656
3140
  CrossFilterChanged = "cross-filter-changed",
2657
3141
  /**
2658
3142
  * Emitted when a user right clicks on a visualization (chart or table)
2659
3143
  *
2660
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
3144
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
3145
+ * @example
3146
+ *```js
3147
+ * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
3148
+ * console.log('VizPointClick', payload)
3149
+ * })
3150
+ *```
2661
3151
  */
2662
3152
  VizPointRightClick = "vizPointRightClick",
2663
3153
  /**
2664
- * Emitted when a user clicks on Insert to slide on a visualization
3154
+ * Emitted when a user clicks **Insert to slide** on a visualization
2665
3155
  *
2666
3156
  * @hidden
2667
3157
  */
@@ -2669,52 +3159,52 @@ export declare enum EmbedEvent {
2669
3159
  /**
2670
3160
  * @hidden
2671
3161
  * Emitted when a user changes any filter on a Liveboard.
2672
- * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
3162
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
2673
3163
  */
2674
3164
  FilterChanged = "filterChanged",
2675
3165
  /**
2676
- * Emitted when a user click on Go button in Sage Embed
3166
+ * Emitted when a user clicks the **Go** button on the Search page
2677
3167
  *
2678
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
3168
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2679
3169
  */
2680
3170
  SageEmbedQuery = "sageEmbedQuery",
2681
3171
  /**
2682
- * Emitten when a user select data source in Sage Embed
3172
+ * Emitted when a user selects a data source.
2683
3173
  *
2684
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
3174
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2685
3175
  */
2686
3176
  SageWorksheetUpdated = "sageWorksheetUpdated",
2687
3177
  /**
2688
- * Emitted when a user updates a connection in Data tab
3178
+ * Emitted when a user updates a connection on the **Data** page
2689
3179
  *
2690
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
3180
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2691
3181
  */
2692
3182
  UpdateConnection = "updateConnection",
2693
3183
  /**
2694
- * Emitted when a user updates a connection in Data tab
3184
+ * Emitted when a user updates a connection on the **Data** page
2695
3185
  *
2696
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
3186
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2697
3187
  */
2698
3188
  CreateConnection = "createConnection",
2699
3189
  /**
2700
3190
  * Emitted when name, status (private or public) or filter values of a
2701
- * PersonalisedView is updated.
3191
+ * Personalised view is updated.
2702
3192
  *
2703
3193
  * @returns viewName: string
2704
3194
  * @returns viewId: string
2705
3195
  * @returns liveboardId: string
2706
3196
  * @returns isPublic: boolean
2707
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
3197
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2708
3198
  */
2709
3199
  UpdatePersonalisedView = "updatePersonalisedView",
2710
3200
  /**
2711
- * Emitted when a PersonalisedView is saved.
3201
+ * Emitted when a Personalised view is saved.
2712
3202
  *
2713
3203
  * @returns viewName: string
2714
3204
  * @returns viewId: string
2715
3205
  * @returns liveboardId: string
2716
3206
  * @returns isPublic: boolean
2717
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
3207
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2718
3208
  */
2719
3209
  SavePersonalisedView = "savePersonalisedView",
2720
3210
  /**
@@ -2724,7 +3214,7 @@ export declare enum EmbedEvent {
2724
3214
  * @returns viewId: string
2725
3215
  * @returns liveboardId: string
2726
3216
  * @returns isPublic: boolean
2727
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
3217
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2728
3218
  */
2729
3219
  ResetLiveboard = "resetLiveboard",
2730
3220
  /**
@@ -2732,11 +3222,11 @@ export declare enum EmbedEvent {
2732
3222
  *
2733
3223
  * @returns views: string[]
2734
3224
  * @returns liveboardId: string
2735
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
3225
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2736
3226
  */
2737
3227
  DeletePersonalisedView = "deletePersonalisedView",
2738
3228
  /**
2739
- * Emitten when a user creates a new worksheet
3229
+ * Emitted when a user creates a new worksheet
2740
3230
  *
2741
3231
  * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2742
3232
  */
@@ -2766,15 +3256,16 @@ export declare enum EmbedEvent {
2766
3256
  */
2767
3257
  export declare enum HostEvent {
2768
3258
  /**
2769
- * Triggers a search query in AppEmbed and SearchEmbed
2770
- * deployments.
3259
+ * Triggers a search operation with the search tokens specified in
3260
+ * the search query string.
3261
+ * Supported in `AppEmbed` and `SearchEmbed` deployments.
2771
3262
  * Includes the following properties:
2772
3263
  *
2773
- * @param - dataSourceIds - The data source GUID to Search on
3264
+ * @param - `searchQuery` - query string with search tokens
3265
+ * @param - `dataSources` - Data source GUID to Search on
2774
3266
  * - Although an array, only a single source
2775
3267
  * is supported.
2776
- * @param - searchQuery - Query string with search tokens
2777
- * @param - execute - executes the existing / updated query
3268
+ * @param - `execute` - executes search and updates the existing query
2778
3269
  * @example
2779
3270
  * ```js
2780
3271
  * searchembed.trigger(HostEvent.Search, {
@@ -2794,6 +3285,10 @@ export declare enum HostEvent {
2794
3285
  * @param - columnGuid - Optional. GUID of the column to drill
2795
3286
  * by. If not provided it will auto drill by the configured
2796
3287
  * column.
3288
+ * @param - autoDrillDown - Optional. If true, the drill down will be
3289
+ * done automatically on the most popular column.
3290
+ * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
3291
+ * in case of a liveboard.
2797
3292
  * @example
2798
3293
  * ```js
2799
3294
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -2810,6 +3305,25 @@ export declare enum HostEvent {
2810
3305
  * });
2811
3306
  * })
2812
3307
  * ```
3308
+ * @example
3309
+ * ```js
3310
+ * // Works with TS 9.8.0 and above
3311
+ *
3312
+ * liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
3313
+ * console.log(payload);
3314
+ * const clickedPoint = payload.data.clickedPoint;
3315
+ * const selectedPoint = payload.data.selectedPoints;
3316
+ * console.log('>>> called', clickedPoint);
3317
+ * liveboardEmbed.trigger(HostEvent.DrillDown, {
3318
+ * points: {
3319
+ * clickedPoint,
3320
+ * selectedPoints: selectedPoint
3321
+ * },
3322
+ * autoDrillDown: true,
3323
+ * vizId: payload.data.vizId
3324
+ * });
3325
+ * })
3326
+ * ```
2813
3327
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2814
3328
  */
2815
3329
  DrillDown = "triggerDrillDown",
@@ -2826,7 +3340,7 @@ export declare enum HostEvent {
2826
3340
  */
2827
3341
  Reload = "reload",
2828
3342
  /**
2829
- * Sets the visible visualizations on a Liveboard.
3343
+ * Display specific visualizations on a Liveboard.
2830
3344
  *
2831
3345
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
2832
3346
  * in this parameter will be hidden.
@@ -2840,7 +3354,7 @@ export declare enum HostEvent {
2840
3354
  */
2841
3355
  SetVisibleVizs = "SetPinboardVisibleVizs",
2842
3356
  /**
2843
- * Set the Active Tab of a Liveboard.
3357
+ * Set a Liveboard tab as an active tab.
2844
3358
  *
2845
3359
  * @param - tabId - string of id of Tab to show
2846
3360
  * @example
@@ -2853,7 +3367,7 @@ export declare enum HostEvent {
2853
3367
  */
2854
3368
  SetActiveTab = "SetActiveTab",
2855
3369
  /**
2856
- * Updates runtime filters applied on a Saved Answer or Liveboard. The
3370
+ * Update runtime filters applied on a Saved Answer or Liveboard. The
2857
3371
  * runtime filters passed here are appended to the existing runtime
2858
3372
  * filters.
2859
3373
  * Pass an array of runtime filters with the following attributes:
@@ -2879,10 +3393,11 @@ export declare enum HostEvent {
2879
3393
  */
2880
3394
  UpdateRuntimeFilters = "UpdateRuntimeFilters",
2881
3395
  /**
2882
- * Navigate to a specific page in the embedded application without reloading the page.
3396
+ * Navigate to a specific page in the embedded ThoughtSpot application.
2883
3397
  * This is the same as calling `appEmbed.navigateToPage(path, true)`
2884
3398
  *
2885
- * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
3399
+ * @param - `path` - the path to navigate to to go forward or back. The path value can
3400
+ * be a number; for example, `1`, `-1`.
2886
3401
  * @example
2887
3402
  * ```js
2888
3403
  * appEmbed.navigateToPage(-1)
@@ -2891,7 +3406,7 @@ export declare enum HostEvent {
2891
3406
  */
2892
3407
  Navigate = "Navigate",
2893
3408
  /**
2894
- * Opens the filter panel for a particular column.
3409
+ * Open the filter panel for a particular column.
2895
3410
  * Works with Search and Liveboard embed.
2896
3411
  *
2897
3412
  * @param - { columnId: string,
@@ -2909,7 +3424,7 @@ export declare enum HostEvent {
2909
3424
  */
2910
3425
  OpenFilter = "openFilter",
2911
3426
  /**
2912
- * Adds columns to the current search query.
3427
+ * Add columns to the current search query.
2913
3428
  *
2914
3429
  * @param - { columnIds: string[] }
2915
3430
  * @example
@@ -2920,7 +3435,7 @@ export declare enum HostEvent {
2920
3435
  */
2921
3436
  AddColumns = "addColumns",
2922
3437
  /**
2923
- * Removes a column from the current search query.
3438
+ * Remove a column from the current search query.
2924
3439
  *
2925
3440
  * @param - { columnId: string }
2926
3441
  * @example
@@ -2931,27 +3446,29 @@ export declare enum HostEvent {
2931
3446
  */
2932
3447
  RemoveColumn = "removeColumn",
2933
3448
  /**
2934
- * Gets the current Liveboard content.
3449
+ * Get the transient state of a Liveboard as encoded content.
3450
+ * This includes unsaved and ad hoc changes such as
3451
+ * Liveboard filters, runtime filters applied on visualizations on a
3452
+ * Liveboard, and Liveboard layout, changes to visualizations such as
3453
+ * sorting, toggling of legends, and data drill down.
2935
3454
  *
2936
3455
  * @example
2937
3456
  * ```js
2938
- * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
3457
+ * liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
3458
+ * data=>console.log(data))
2939
3459
  * ```
2940
3460
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
2941
3461
  */
2942
3462
  getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
2943
3463
  /**
2944
- * Triggers the **Pin** action on an embedded object
3464
+ * Trigger the **Pin** action on an embedded object
2945
3465
  *
2946
3466
  * @param - Liveboard embed takes the `vizId` as a
2947
- * key. Can be left undefined when embedding Search, full app or
3467
+ * key. Can be left undefined when embedding Search, full app, or
2948
3468
  * a visualization.
2949
3469
  * @example
2950
3470
  * ```js
2951
- * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2952
- * ```
2953
- * ```js
2954
- * vizEmbed.trigger(HostEvent.Pin)
3471
+ * appEmbed.trigger(HostEvent.Pin)
2955
3472
  * ```
2956
3473
  * ```js
2957
3474
  * searchEmbed.trigger(HostEvent.Pin)
@@ -2960,17 +3477,18 @@ export declare enum HostEvent {
2960
3477
  */
2961
3478
  Pin = "pin",
2962
3479
  /**
2963
- * Triggers the **Show Liveboard details** action on a Liveboard
3480
+ * Trigger the **Show Liveboard details** action
3481
+ * on an embedded Liveboard.
2964
3482
  *
2965
3483
  * @example
2966
- * ```js
2967
- * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2968
- * ```
3484
+ *```js
3485
+ * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
3486
+ *```
2969
3487
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2970
3488
  */
2971
3489
  LiveboardInfo = "pinboardInfo",
2972
3490
  /**
2973
- * Triggers the **Schedule** action on a Liveboard
3491
+ * Trigger the **Schedule** action on an embedded Liveboard.
2974
3492
  *
2975
3493
  * @example
2976
3494
  * ```js
@@ -2980,7 +3498,7 @@ export declare enum HostEvent {
2980
3498
  */
2981
3499
  Schedule = "subscription",
2982
3500
  /**
2983
- * Triggers the **Manage schedule** action on a Liveboard
3501
+ * Trigger the **Manage schedule** action on an embedded Liveboard
2984
3502
  *
2985
3503
  * @example
2986
3504
  * ```js
@@ -2990,7 +3508,7 @@ export declare enum HostEvent {
2990
3508
  */
2991
3509
  SchedulesList = "schedule-list",
2992
3510
  /**
2993
- * Triggers the **Export TML** action on a Liveboard
3511
+ * Trigger the **Export TML** action on an embedded Liveboard.
2994
3512
  *
2995
3513
  * @example
2996
3514
  * ```js
@@ -3000,7 +3518,7 @@ export declare enum HostEvent {
3000
3518
  */
3001
3519
  ExportTML = "exportTSL",
3002
3520
  /**
3003
- * Triggers the **Edit TML** action on a Liveboard
3521
+ * Trigger the **Edit TML** action on an embedded Liveboard.
3004
3522
  *
3005
3523
  * @example
3006
3524
  * ```js
@@ -3010,7 +3528,7 @@ export declare enum HostEvent {
3010
3528
  */
3011
3529
  EditTML = "editTSL",
3012
3530
  /**
3013
- * Triggers the **Update TML** action on a Liveboard
3531
+ * Trigger the **Update TML** action on an embedded Liveboard.
3014
3532
  *
3015
3533
  * @example
3016
3534
  * ```js
@@ -3020,7 +3538,7 @@ export declare enum HostEvent {
3020
3538
  */
3021
3539
  UpdateTML = "updateTSL",
3022
3540
  /**
3023
- * Triggers the **Download PDF** action on a Liveboard
3541
+ * Trigger the **Download PDF** action on an embedded Liveboard.
3024
3542
  *
3025
3543
  * @example
3026
3544
  * ```js
@@ -3030,8 +3548,8 @@ export declare enum HostEvent {
3030
3548
  */
3031
3549
  DownloadAsPdf = "downloadAsPdf",
3032
3550
  /**
3033
- * Triggers the **Make a copy** action on a Liveboard, Search, or
3034
- * visualization page
3551
+ * Trigger the **Make a copy** action on a Liveboard, Search, or
3552
+ * visualization page.
3035
3553
  *
3036
3554
  * @example
3037
3555
  * ```js
@@ -3047,7 +3565,7 @@ export declare enum HostEvent {
3047
3565
  */
3048
3566
  MakeACopy = "makeACopy",
3049
3567
  /**
3050
- * Triggers the **Delete** action on a Liveboard
3568
+ * Trigger the **Delete** action for a Liveboard.
3051
3569
  *
3052
3570
  * @example
3053
3571
  * ```js
@@ -3057,7 +3575,7 @@ export declare enum HostEvent {
3057
3575
  */
3058
3576
  Remove = "delete",
3059
3577
  /**
3060
- * Triggers the **Explore* action on a visualization
3578
+ * Trigger the **Explore** action on a visualization.
3061
3579
  *
3062
3580
  * @param - an object with `vizId` as a key
3063
3581
  * @example
@@ -3068,7 +3586,7 @@ export declare enum HostEvent {
3068
3586
  */
3069
3587
  Explore = "explore",
3070
3588
  /**
3071
- * Triggers the **Create alert** action on a visualization
3589
+ * Trigger the **Create alert** action on a visualization
3072
3590
  *
3073
3591
  * @param - an object with `vizId` as a key
3074
3592
  * @example
@@ -3081,7 +3599,7 @@ export declare enum HostEvent {
3081
3599
  */
3082
3600
  CreateMonitor = "createMonitor",
3083
3601
  /**
3084
- * Triggers the **Manage alerts** action on a visualization
3602
+ * Trigger the **Manage alerts** action on a visualization
3085
3603
  *
3086
3604
  * @param - an object with `vizId` as a key
3087
3605
  * @example
@@ -3094,7 +3612,7 @@ export declare enum HostEvent {
3094
3612
  */
3095
3613
  ManageMonitor = "manageMonitor",
3096
3614
  /**
3097
- * Triggers the **Edit** action on a Liveboard or visualization
3615
+ * Trigger the **Edit** action on a Liveboard or visualization
3098
3616
  *
3099
3617
  * @param - object - To trigger the action for a specific visualization
3100
3618
  * in Liveboard embed, pass in `vizId` as a key.
@@ -3115,7 +3633,7 @@ export declare enum HostEvent {
3115
3633
  */
3116
3634
  Edit = "edit",
3117
3635
  /**
3118
- * Triggers the **Copy link** action on a Liveboard or visualization
3636
+ * Trigger the **Copy link** action on a Liveboard or visualization
3119
3637
  *
3120
3638
  * @param - object - to trigger the action for a
3121
3639
  * specific visualization in Liveboard embed, pass in `vizId` as a key
@@ -3133,7 +3651,7 @@ export declare enum HostEvent {
3133
3651
  */
3134
3652
  CopyLink = "embedDocument",
3135
3653
  /**
3136
- * Triggers the **Present** action on a Liveboard or visualization
3654
+ * Trigger the **Present** action on a Liveboard or visualization
3137
3655
  *
3138
3656
  * @param - object - to trigger the action for a specific visualization
3139
3657
  * in Liveboard embed, pass in `vizId` as a key
@@ -3151,7 +3669,7 @@ export declare enum HostEvent {
3151
3669
  */
3152
3670
  Present = "present",
3153
3671
  /**
3154
- * Gets TML for the current search.
3672
+ * Get TML for the current search.
3155
3673
  *
3156
3674
  * @example
3157
3675
  * ```js
@@ -3166,7 +3684,7 @@ export declare enum HostEvent {
3166
3684
  */
3167
3685
  GetTML = "getTML",
3168
3686
  /**
3169
- * Triggers the **Show underlying data** action on visualization or search
3687
+ * Trigger the **Show underlying data** action on visualization or search
3170
3688
  *
3171
3689
  * @param - an object with vizId as a key
3172
3690
  * @example
@@ -3184,7 +3702,9 @@ export declare enum HostEvent {
3184
3702
  */
3185
3703
  ShowUnderlyingData = "showUnderlyingData",
3186
3704
  /**
3187
- * Triggers the **Delete** action on visualization or search
3705
+ * Trigger the **Delete** action for a visualization
3706
+ * in an embedded Liveboard, or a chart or table
3707
+ * generated from Search.
3188
3708
  *
3189
3709
  * @param - Liveboard embed takes an object with `vizId` as a key.
3190
3710
  * Can be left empty if embedding Search or visualization.
@@ -3194,16 +3714,13 @@ export declare enum HostEvent {
3194
3714
  * '730496d6-6903-4601-937e-2c691821af3c'})
3195
3715
  * ```
3196
3716
  * ```js
3197
- * vizEmbed.trigger(HostEvent.Delete)
3198
- * ```
3199
- * ```js
3200
3717
  * searchEmbed.trigger(HostEvent.Delete)
3201
3718
  * ```
3202
3719
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
3203
3720
  */
3204
3721
  Delete = "onDeleteAnswer",
3205
3722
  /**
3206
- * Triggers the **SpotIQ analyze** action on visualization
3723
+ * Trigger the **SpotIQ analyze** action on visualization
3207
3724
  * or search.
3208
3725
  *
3209
3726
  * @param - Liveboard embed takes `vizId` as a
@@ -3224,7 +3741,7 @@ export declare enum HostEvent {
3224
3741
  */
3225
3742
  SpotIQAnalyze = "spotIQAnalyze",
3226
3743
  /**
3227
- * Triggers the **Download** action on charts in
3744
+ * Trigger the **Download** action on charts in
3228
3745
  * the embedded view.
3229
3746
  *
3230
3747
  * @example
@@ -3233,17 +3750,15 @@ export declare enum HostEvent {
3233
3750
  * '730496d6-6903-4601-937e-2c691821af3c'})
3234
3751
  * ```
3235
3752
  * ```js
3236
- * vizEmbed.trigger(HostEvent.Download)
3753
+ * embed.trigger(HostEvent.Download)
3237
3754
  * ```
3238
- * ```js
3239
- * searchEmbed.trigger(HostEvent.Download)
3240
- * ```
3241
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw ,Use {@link DownloadAsPng}
3755
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
3756
+ * Use {@link DownloadAsPng}
3242
3757
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
3243
3758
  */
3244
3759
  Download = "downloadAsPng",
3245
3760
  /**
3246
- * Triggers the **Download** > **PNG** action on
3761
+ * Trigger the **Download** > **PNG** action on
3247
3762
  * charts in the embedded view.
3248
3763
  *
3249
3764
  * @example
@@ -3259,7 +3774,7 @@ export declare enum HostEvent {
3259
3774
  */
3260
3775
  DownloadAsPng = "downloadAsPng",
3261
3776
  /**
3262
- * Triggers the **Download** > **CSV** action on tables in
3777
+ * Trigger the **Download** > **CSV** action on tables in
3263
3778
  * the embedded view.
3264
3779
  *
3265
3780
  * @example
@@ -3277,7 +3792,7 @@ export declare enum HostEvent {
3277
3792
  */
3278
3793
  DownloadAsCsv = "downloadAsCSV",
3279
3794
  /**
3280
- * Triggers the **Download** > **XLSX** action on tables
3795
+ * Trigger the **Download** > **XLSX** action on tables
3281
3796
  * in the embedded view.
3282
3797
  *
3283
3798
  * @example
@@ -3295,7 +3810,7 @@ export declare enum HostEvent {
3295
3810
  */
3296
3811
  DownloadAsXlsx = "downloadAsXLSX",
3297
3812
  /**
3298
- * Triggers the **Share** action on an embedded
3813
+ * Trigger the **Share** action on an embedded
3299
3814
  * Liveboard or Answer.
3300
3815
  *
3301
3816
  * @example
@@ -3309,7 +3824,7 @@ export declare enum HostEvent {
3309
3824
  */
3310
3825
  Share = "share",
3311
3826
  /**
3312
- * Triggers the **Save** action on a Liveboard or Answer.
3827
+ * Trigger the **Save** action on a Liveboard or Answer.
3313
3828
  * Saves the changes.
3314
3829
  *
3315
3830
  * @example
@@ -3323,7 +3838,7 @@ export declare enum HostEvent {
3323
3838
  */
3324
3839
  Save = "save",
3325
3840
  /**
3326
- * Triggers the **Sync to Sheets** action on an embedded visualization or Answer
3841
+ * Trigger the **Sync to Sheets** action on an embedded visualization or Answer
3327
3842
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
3328
3843
  *
3329
3844
  * @param - an object with `vizId` as a key
@@ -3339,7 +3854,7 @@ export declare enum HostEvent {
3339
3854
  */
3340
3855
  SyncToSheets = "sync-to-sheets",
3341
3856
  /**
3342
- * Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
3857
+ * Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
3343
3858
  * Sends data from an Answer or Liveboard visualization to third-party apps such
3344
3859
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
3345
3860
  *
@@ -3356,7 +3871,7 @@ export declare enum HostEvent {
3356
3871
  */
3357
3872
  SyncToOtherApps = "sync-to-other-apps",
3358
3873
  /**
3359
- * Triggers the **Manage pipelines** action on an embedded
3874
+ * Trigger the **Manage pipelines** action on an embedded
3360
3875
  * visualization or Answer.
3361
3876
  * Allows users to manage ThoughtSpot Sync pipelines.
3362
3877
  *
@@ -3373,18 +3888,21 @@ export declare enum HostEvent {
3373
3888
  */
3374
3889
  ManagePipelines = "manage-pipeline",
3375
3890
  /**
3376
- * Triggers the Reset search on the Search page
3891
+ * Reset search operation on the Search or Answer page.
3377
3892
  *
3378
3893
  * @example
3379
3894
  * ```js
3380
3895
  * searchEmbed.trigger(HostEvent.ResetSearch)
3381
3896
  * ```
3897
+ * ```js
3898
+ * appEmbed.trigger(HostEvent.ResetSearch)
3899
+ * ```
3382
3900
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
3383
3901
  */
3384
3902
  ResetSearch = "resetSearch",
3385
3903
  /**
3386
3904
  * @hidden
3387
- * Gets the currents visible and runtime filters applied on a Liveboard
3905
+ * Get the currents visible and runtime filters applied on a Liveboard
3388
3906
  * @example
3389
3907
  * liveboardEmbed.trigger(HostEvent.GetFilters)
3390
3908
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3392,7 +3910,7 @@ export declare enum HostEvent {
3392
3910
  GetFilters = "getFilters",
3393
3911
  /**
3394
3912
  * @hidden
3395
- * Updates the visible filters on the Liveboard.
3913
+ * Update the visible filters on the Liveboard.
3396
3914
  * @param - filter: filter object containing column name and filter operation and values
3397
3915
  * @example
3398
3916
  *
@@ -3405,7 +3923,7 @@ export declare enum HostEvent {
3405
3923
  */
3406
3924
  UpdateFilters = "updateFilters",
3407
3925
  /**
3408
- * Get Tab for the current Liveboard.
3926
+ * Get tab details for the current Liveboard.
3409
3927
  *
3410
3928
  * @example
3411
3929
  * ```js
@@ -3419,9 +3937,9 @@ export declare enum HostEvent {
3419
3937
  */
3420
3938
  GetTabs = "getTabs",
3421
3939
  /**
3422
- * Set the visible Tabs on a Liveboard.
3940
+ * Set the visible tabs on a Liveboard.
3423
3941
  *
3424
- * @param - an array of ids of Tabs to show, the ids not passed
3942
+ * @param - an array of ids of tabs to show, the IDs not passed
3425
3943
  * will be hidden.
3426
3944
  * @example
3427
3945
  * ```js
@@ -3435,8 +3953,8 @@ export declare enum HostEvent {
3435
3953
  /**
3436
3954
  * Set the hidden tabs on a Liveboard.
3437
3955
  *
3438
- * @param - an array of ids of Tabs to hide, the ids not passed
3439
- * will be shown.
3956
+ * @param - an array of the IDs of the tabs to hide.
3957
+ * The IDs not passed will be shown.
3440
3958
  * @example
3441
3959
  * ```js
3442
3960
  * liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
@@ -3447,9 +3965,10 @@ export declare enum HostEvent {
3447
3965
  */
3448
3966
  SetHiddenTabs = "SetPinboardHiddenTabs",
3449
3967
  /**
3450
- * Updates the search query for sage embed.
3968
+ * Updates the search query string for Natural Language Search operations.
3451
3969
  *
3452
- * @param - searchOptions: an object queryString and option to execute the query.
3970
+ * @param - `queryString`: Text string in Natural Language format
3971
+ * @param - `executeSearch`: Boolean to execute search and update search query
3453
3972
  * @example
3454
3973
  * ```js
3455
3974
  * sageEmbed.trigger(HostEvent.UpdateSageQuery, {
@@ -3457,7 +3976,7 @@ export declare enum HostEvent {
3457
3976
  * executeSearch: true,
3458
3977
  * })
3459
3978
  * ```
3460
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3979
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
3461
3980
  */
3462
3981
  UpdateSageQuery = "updateSageQuery",
3463
3982
  /**
@@ -3470,24 +3989,25 @@ export declare enum HostEvent {
3470
3989
  * vizId: '123', // For Liveboard Visualization.
3471
3990
  * })
3472
3991
  * ```
3992
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
3473
3993
  */
3474
3994
  GetAnswerSession = "getAnswerSession"
3475
3995
  }
3476
3996
  /**
3477
3997
  * The different visual modes that the data sources panel within
3478
- * search could appear in, i.e., hidden, collapsed, or expanded.
3998
+ * search could appear in, such as hidden, collapsed, or expanded.
3479
3999
  */
3480
4000
  export declare enum DataSourceVisualMode {
3481
4001
  /**
3482
- * Data source panel is hidden.
4002
+ * The data source panel is hidden.
3483
4003
  */
3484
4004
  Hidden = "hide",
3485
4005
  /**
3486
- * Data source panel is collapsed, but the user can manually expand it.
4006
+ * The data source panel is collapsed, but the user can manually expand it.
3487
4007
  */
3488
4008
  Collapsed = "collapse",
3489
4009
  /**
3490
- * Data source panel is expanded, but the user can manually collapse it.
4010
+ * The data source panel is expanded, but the user can manually collapse it.
3491
4011
  */
3492
4012
  Expanded = "expand"
3493
4013
  }
@@ -3563,7 +4083,8 @@ export declare enum Param {
3563
4083
  LiveboardHeaderSticky = "isLiveboardHeaderSticky",
3564
4084
  IsProductTour = "isProductTour",
3565
4085
  HideSearchBarTitle = "hideSearchBarTitle",
3566
- HideSageAnswerHeader = "hideSageAnswerHeader"
4086
+ HideSageAnswerHeader = "hideSageAnswerHeader",
4087
+ HideSearchBar = "hideSearchBar"
3567
4088
  }
3568
4089
  /**
3569
4090
  * ThoughtSpot application pages include actions and menu commands
@@ -3623,9 +4144,11 @@ export declare enum Action {
3623
4144
  SaveAsView = "saveAsView",
3624
4145
  /**
3625
4146
  * The **Make a copy** action on a Liveboard or Answer
3626
- * page.
3627
- * Creates a copy of the Liveboard, visualization,
3628
- * or Answer.
4147
+ * page. Creates a copy of the Liveboard.
4148
+ * In LiveboardEmbed, the **Make a copy** action is not available for
4149
+ * visualizations in the embedded Liveboard view.
4150
+ * In AppEmbed, the **Make a copy** action is available on both
4151
+ * Liveboards and visualizations.
3629
4152
  *
3630
4153
  * @example
3631
4154
  * ```js
@@ -3809,7 +4332,7 @@ export declare enum Action {
3809
4332
  */
3810
4333
  DownloadAsPdf = "downloadAsPdf",
3811
4334
  /**
3812
- * The **Download** > **CSV** menu action for tables on a Liveboard
4335
+ * The **Download** > **CSV** menu action for tables on a Liveboard
3813
4336
  * or Answer page.
3814
4337
  * Downloads a visualization or Answer in the XLSX format.
3815
4338
  *
@@ -4340,6 +4863,7 @@ export declare enum Action {
4340
4863
  */
4341
4864
  RenameModalTitleDescription = "renameModalTitleDescription",
4342
4865
  /**
4866
+ *
4343
4867
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
4344
4868
  */
4345
4869
  RequestVerification = "requestVerification",
@@ -4848,8 +5372,7 @@ interface UnderlyingDataPoint {
4848
5372
  * const data = await underlying.fetchData(0, 100);
4849
5373
  * })
4850
5374
  * ```
4851
- * @version
4852
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5375
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
4853
5376
  * @group Events
4854
5377
  */
4855
5378
  export declare class AnswerService {
@@ -4883,8 +5406,7 @@ export declare class AnswerService {
4883
5406
  * const data = await underlying.fetchData(0, 100);
4884
5407
  * })
4885
5408
  * ```
4886
- * @version
4887
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5409
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
4888
5410
  */
4889
5411
  getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
4890
5412
  executeQuery(query: string, variables: any): Promise<any>;
@@ -5102,6 +5624,7 @@ export declare class TsEmbed {
5102
5624
  * @param args
5103
5625
  */
5104
5626
  render(): TsEmbed;
5627
+ getIframeSrc(): string;
5105
5628
  protected handleRenderForPrerender(): void;
5106
5629
  /**
5107
5630
  * Creates the preRender shell