@thoughtspot/visual-embed-sdk 1.28.0-alpha.2 → 1.28.0-alpha.5

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 (223) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts +16 -1
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +5 -1
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/auth.spec.d.ts.map +1 -1
  7. package/cjs/src/auth.spec.js +9 -0
  8. package/cjs/src/auth.spec.js.map +1 -1
  9. package/cjs/src/authToken.d.ts +6 -0
  10. package/cjs/src/authToken.d.ts.map +1 -1
  11. package/cjs/src/authToken.js +6 -0
  12. package/cjs/src/authToken.js.map +1 -1
  13. package/cjs/src/embed/app.d.ts +156 -6
  14. package/cjs/src/embed/app.d.ts.map +1 -1
  15. package/cjs/src/embed/app.js +3 -3
  16. package/cjs/src/embed/app.js.map +1 -1
  17. package/cjs/src/embed/app.spec.js +19 -1
  18. package/cjs/src/embed/app.spec.js.map +1 -1
  19. package/cjs/src/embed/base.d.ts.map +1 -1
  20. package/cjs/src/embed/base.js +2 -3
  21. package/cjs/src/embed/base.js.map +1 -1
  22. package/cjs/src/embed/embed.spec.js +0 -15
  23. package/cjs/src/embed/embed.spec.js.map +1 -1
  24. package/cjs/src/embed/liveboard.d.ts +121 -6
  25. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  26. package/cjs/src/embed/liveboard.js +2 -2
  27. package/cjs/src/embed/liveboard.js.map +1 -1
  28. package/cjs/src/embed/liveboard.spec.js +20 -1
  29. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  30. package/cjs/src/embed/pinboard.spec.js +20 -1
  31. package/cjs/src/embed/pinboard.spec.js.map +1 -1
  32. package/cjs/src/embed/sage.d.ts +6 -6
  33. package/cjs/src/embed/sage.d.ts.map +1 -1
  34. package/cjs/src/embed/sage.js +18 -3
  35. package/cjs/src/embed/sage.js.map +1 -1
  36. package/cjs/src/embed/sage.spec.js +11 -11
  37. package/cjs/src/embed/sage.spec.js.map +1 -1
  38. package/cjs/src/embed/search-bar.d.ts +37 -6
  39. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  40. package/cjs/src/embed/search-bar.js +2 -2
  41. package/cjs/src/embed/search-bar.js.map +1 -1
  42. package/cjs/src/embed/search.d.ts +90 -1
  43. package/cjs/src/embed/search.d.ts.map +1 -1
  44. package/cjs/src/embed/search.js +3 -3
  45. package/cjs/src/embed/search.js.map +1 -1
  46. package/cjs/src/embed/search.spec.js +25 -1
  47. package/cjs/src/embed/search.spec.js.map +1 -1
  48. package/cjs/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  49. package/cjs/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  50. package/cjs/src/embed/ts-embed-trigger.spec.js +34 -0
  51. package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -0
  52. package/cjs/src/embed/ts-embed.d.ts +1 -1
  53. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  54. package/cjs/src/embed/ts-embed.js +14 -11
  55. package/cjs/src/embed/ts-embed.js.map +1 -1
  56. package/cjs/src/embed/ts-embed.spec.js +47 -17
  57. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  58. package/cjs/src/index.d.ts +3 -1
  59. package/cjs/src/index.d.ts.map +1 -1
  60. package/cjs/src/index.js +5 -1
  61. package/cjs/src/index.js.map +1 -1
  62. package/cjs/src/react/index.spec.js +1 -1
  63. package/cjs/src/react/index.spec.js.map +1 -1
  64. package/cjs/src/test/test-utils.d.ts +1 -0
  65. package/cjs/src/test/test-utils.d.ts.map +1 -1
  66. package/cjs/src/test/test-utils.js +10 -1
  67. package/cjs/src/test/test-utils.js.map +1 -1
  68. package/cjs/src/tokenizedFetch.d.ts +9 -0
  69. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  70. package/cjs/src/tokenizedFetch.js +9 -0
  71. package/cjs/src/tokenizedFetch.js.map +1 -1
  72. package/cjs/src/types.d.ts +299 -43
  73. package/cjs/src/types.d.ts.map +1 -1
  74. package/cjs/src/types.js +110 -19
  75. package/cjs/src/types.js.map +1 -1
  76. package/cjs/src/utils/authService/authService.d.ts.map +1 -1
  77. package/cjs/src/utils/authService/authService.js +9 -3
  78. package/cjs/src/utils/authService/authService.js.map +1 -1
  79. package/cjs/src/utils/authService/authService.spec.js +22 -0
  80. package/cjs/src/utils/authService/authService.spec.js.map +1 -1
  81. package/dist/src/auth.d.ts +16 -1
  82. package/dist/src/auth.d.ts.map +1 -1
  83. package/dist/src/auth.spec.d.ts.map +1 -1
  84. package/dist/src/authToken.d.ts +6 -0
  85. package/dist/src/authToken.d.ts.map +1 -1
  86. package/dist/src/embed/app.d.ts +156 -6
  87. package/dist/src/embed/app.d.ts.map +1 -1
  88. package/dist/src/embed/base.d.ts.map +1 -1
  89. package/dist/src/embed/liveboard.d.ts +121 -6
  90. package/dist/src/embed/liveboard.d.ts.map +1 -1
  91. package/dist/src/embed/sage.d.ts +6 -6
  92. package/dist/src/embed/sage.d.ts.map +1 -1
  93. package/dist/src/embed/search-bar.d.ts +37 -6
  94. package/dist/src/embed/search-bar.d.ts.map +1 -1
  95. package/dist/src/embed/search.d.ts +90 -1
  96. package/dist/src/embed/search.d.ts.map +1 -1
  97. package/dist/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  98. package/dist/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  99. package/dist/src/embed/ts-embed.d.ts +1 -1
  100. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  101. package/dist/src/index.d.ts +3 -1
  102. package/dist/src/index.d.ts.map +1 -1
  103. package/dist/src/test/test-utils.d.ts +1 -0
  104. package/dist/src/test/test-utils.d.ts.map +1 -1
  105. package/dist/src/tokenizedFetch.d.ts +9 -0
  106. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  107. package/dist/src/types.d.ts +299 -43
  108. package/dist/src/types.d.ts.map +1 -1
  109. package/dist/src/utils/authService/authService.d.ts.map +1 -1
  110. package/dist/tsembed-react.es.js +180 -47
  111. package/dist/tsembed-react.js +180 -47
  112. package/dist/tsembed.es.js +182 -51
  113. package/dist/tsembed.js +183 -50
  114. package/dist/visual-embed-sdk-react-full.d.ts +746 -70
  115. package/dist/visual-embed-sdk-react.d.ts +746 -70
  116. package/dist/visual-embed-sdk.d.ts +746 -70
  117. package/lib/package.json +1 -1
  118. package/lib/src/auth.d.ts +16 -1
  119. package/lib/src/auth.d.ts.map +1 -1
  120. package/lib/src/auth.js +5 -1
  121. package/lib/src/auth.js.map +1 -1
  122. package/lib/src/auth.spec.d.ts.map +1 -1
  123. package/lib/src/auth.spec.js +9 -0
  124. package/lib/src/auth.spec.js.map +1 -1
  125. package/lib/src/authToken.d.ts +6 -0
  126. package/lib/src/authToken.d.ts.map +1 -1
  127. package/lib/src/authToken.js +6 -0
  128. package/lib/src/authToken.js.map +1 -1
  129. package/lib/src/embed/app.d.ts +156 -6
  130. package/lib/src/embed/app.d.ts.map +1 -1
  131. package/lib/src/embed/app.js +3 -3
  132. package/lib/src/embed/app.js.map +1 -1
  133. package/lib/src/embed/app.spec.js +19 -1
  134. package/lib/src/embed/app.spec.js.map +1 -1
  135. package/lib/src/embed/base.d.ts.map +1 -1
  136. package/lib/src/embed/base.js +2 -3
  137. package/lib/src/embed/base.js.map +1 -1
  138. package/lib/src/embed/embed.spec.js +2 -17
  139. package/lib/src/embed/embed.spec.js.map +1 -1
  140. package/lib/src/embed/liveboard.d.ts +121 -6
  141. package/lib/src/embed/liveboard.d.ts.map +1 -1
  142. package/lib/src/embed/liveboard.js +2 -2
  143. package/lib/src/embed/liveboard.js.map +1 -1
  144. package/lib/src/embed/liveboard.spec.js +20 -1
  145. package/lib/src/embed/liveboard.spec.js.map +1 -1
  146. package/lib/src/embed/pinboard.spec.js +20 -1
  147. package/lib/src/embed/pinboard.spec.js.map +1 -1
  148. package/lib/src/embed/sage.d.ts +6 -6
  149. package/lib/src/embed/sage.d.ts.map +1 -1
  150. package/lib/src/embed/sage.js +18 -3
  151. package/lib/src/embed/sage.js.map +1 -1
  152. package/lib/src/embed/sage.spec.js +11 -11
  153. package/lib/src/embed/sage.spec.js.map +1 -1
  154. package/lib/src/embed/search-bar.d.ts +37 -6
  155. package/lib/src/embed/search-bar.d.ts.map +1 -1
  156. package/lib/src/embed/search-bar.js +2 -2
  157. package/lib/src/embed/search-bar.js.map +1 -1
  158. package/lib/src/embed/search.d.ts +90 -1
  159. package/lib/src/embed/search.d.ts.map +1 -1
  160. package/lib/src/embed/search.js +3 -3
  161. package/lib/src/embed/search.js.map +1 -1
  162. package/lib/src/embed/search.spec.js +25 -1
  163. package/lib/src/embed/search.spec.js.map +1 -1
  164. package/lib/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  165. package/lib/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  166. package/lib/src/embed/ts-embed-trigger.spec.js +32 -0
  167. package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -0
  168. package/lib/src/embed/ts-embed.d.ts +1 -1
  169. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  170. package/lib/src/embed/ts-embed.js +14 -11
  171. package/lib/src/embed/ts-embed.js.map +1 -1
  172. package/lib/src/embed/ts-embed.spec.js +41 -11
  173. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  174. package/lib/src/index.d.ts +3 -1
  175. package/lib/src/index.d.ts.map +1 -1
  176. package/lib/src/index.js +3 -1
  177. package/lib/src/index.js.map +1 -1
  178. package/lib/src/react/index.spec.js +1 -1
  179. package/lib/src/react/index.spec.js.map +1 -1
  180. package/lib/src/test/test-utils.d.ts +1 -0
  181. package/lib/src/test/test-utils.d.ts.map +1 -1
  182. package/lib/src/test/test-utils.js +8 -0
  183. package/lib/src/test/test-utils.js.map +1 -1
  184. package/lib/src/tokenizedFetch.d.ts +9 -0
  185. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  186. package/lib/src/tokenizedFetch.js +9 -0
  187. package/lib/src/tokenizedFetch.js.map +1 -1
  188. package/lib/src/types.d.ts +299 -43
  189. package/lib/src/types.d.ts.map +1 -1
  190. package/lib/src/types.js +110 -19
  191. package/lib/src/types.js.map +1 -1
  192. package/lib/src/utils/authService/authService.d.ts.map +1 -1
  193. package/lib/src/utils/authService/authService.js +9 -3
  194. package/lib/src/utils/authService/authService.js.map +1 -1
  195. package/lib/src/utils/authService/authService.spec.js +22 -0
  196. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  197. package/lib/src/visual-embed-sdk.d.ts +754 -71
  198. package/package.json +1 -1
  199. package/src/auth.spec.ts +10 -0
  200. package/src/auth.ts +21 -2
  201. package/src/authToken.ts +6 -0
  202. package/src/embed/app.spec.ts +24 -1
  203. package/src/embed/app.ts +164 -11
  204. package/src/embed/base.ts +3 -5
  205. package/src/embed/embed.spec.ts +0 -18
  206. package/src/embed/liveboard.spec.ts +24 -1
  207. package/src/embed/liveboard.ts +128 -9
  208. package/src/embed/pinboard.spec.ts +24 -1
  209. package/src/embed/sage.spec.ts +11 -11
  210. package/src/embed/sage.ts +19 -6
  211. package/src/embed/search-bar.tsx +38 -7
  212. package/src/embed/search.spec.ts +29 -1
  213. package/src/embed/search.ts +98 -5
  214. package/src/embed/ts-embed-trigger.spec.ts +39 -0
  215. package/src/embed/ts-embed.spec.ts +49 -16
  216. package/src/embed/ts-embed.ts +21 -16
  217. package/src/index.ts +4 -0
  218. package/src/react/index.spec.tsx +1 -0
  219. package/src/test/test-utils.ts +9 -0
  220. package/src/tokenizedFetch.ts +9 -0
  221. package/src/types.ts +310 -50
  222. package/src/utils/authService/authService.spec.ts +27 -0
  223. package/src/utils/authService/authService.ts +14 -13
@@ -234,18 +234,44 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
234
234
  * Only a single data source is supported currently.
235
235
  *
236
236
  * @deprecated Use `dataSource` instead
237
+ *
238
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
239
+ *
240
+ * @example
241
+ * ```js
242
+ * const embed = new SearchBarEmbed('#tsEmbed', {
243
+ * ... // other options
244
+ * dataSources:['id-2345','id-2345'],
245
+ * })
246
+ * ```
237
247
  */
238
248
  dataSources?: string[];
239
249
  /**
240
- * The array of data source GUIDs to set on load.
250
+ * Pass the ID of the source to be selected.
241
251
  *
242
252
  * @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
253
+ *
254
+ * @example
255
+ * ```js
256
+ * const embed = new SearchBarEmbed('#tsEmbed', {
257
+ * ... // other options
258
+ * dataSource:'id-2345',
259
+ * })
260
+ * ```
243
261
  */
244
262
  dataSource?: string;
245
263
  /**
246
264
  * Boolean to define if the last selected data source should be used
247
265
  *
248
266
  * @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
267
+ *
268
+ * @example
269
+ * ```js
270
+ * const embed = new SearchBarEmbed('#tsEmbed', {
271
+ * ... // other options
272
+ * useLastSelectedSources:false,
273
+ * })
274
+ * ```
249
275
  */
250
276
  useLastSelectedSources?: boolean;
251
277
  /**
@@ -259,12 +285,17 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
259
285
  * If it’s not executed, the focus is placed at the end of
260
286
  * the token string in the search bar.
261
287
  *
288
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
289
+ *
262
290
  * @example
263
291
  * ```js
264
- * searchOptions: {
265
- * searchTokenString: '[quantity purchased] [region]',
266
- * executeSearch: true,
267
- * }
292
+ * const embed = new SearchBarEmbed('#tsEmbed', {
293
+ * ... // other options
294
+ * searchOptions: {
295
+ * searchTokenString: '[quantity purchased] [region]',
296
+ * executeSearch: true,
297
+ * }
298
+ * })
268
299
  * ```
269
300
  */
270
301
  searchOptions?: SearchOptions;
@@ -285,7 +316,7 @@ export declare class SearchBarEmbed extends TsEmbed {
285
316
  /**
286
317
  * Render the embedded ThoughtSpot search
287
318
  */
288
- render(): SearchBarEmbed;
319
+ render(): Promise<SearchBarEmbed>;
289
320
  }
290
321
 
291
322
  /**
@@ -343,17 +374,15 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
343
374
  isProductTour?: boolean;
344
375
  /**
345
376
  * Show or hide the search bar title.
346
- * @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
347
377
  *
348
- * @deprecated Thoughtspot: 9.10.0.cl | search bar doesn't have the title from 9.10.0.cl
378
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
349
379
  */
350
380
  hideSearchBarTitle?: boolean;
351
381
  /**
352
382
  * Show or hide the Answer header, that is, the `AI Answer` title
353
383
  * at the top of the Answer page.
354
- * @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
355
384
  *
356
- * @deprecated Thoughtspot: 9.12.0.cl | sage answer doesn't have the header from 9.12.0.cl
385
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
357
386
  */
358
387
  hideSageAnswerHeader?: boolean;
359
388
  /**
@@ -386,6 +415,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
386
415
  * Show or hide sample questions.
387
416
  * The sample questions are autogenerated based on the worksheet
388
417
  * selected for the search operation.
418
+ *
389
419
  * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
390
420
  */
391
421
  hideSampleQuestions?: boolean;
@@ -415,6 +445,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
415
445
  */
416
446
  searchOptions?: SearchOptions;
417
447
  }
448
+ export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
418
449
  /**
419
450
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
420
451
  *
@@ -447,7 +478,7 @@ export declare class SageEmbed extends V1Embed {
447
478
  *
448
479
  * @returns {SageEmbed} Eureka/Sage embed
449
480
  */
450
- render(): SageEmbed;
481
+ render(): Promise<SageEmbed>;
451
482
  }
452
483
 
453
484
  /**
@@ -484,27 +515,74 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
484
515
  /**
485
516
  * If set to true, the data sources panel is collapsed on load,
486
517
  * but can be expanded manually.
518
+ *
519
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
520
+ *
521
+ * @example
522
+ * ```js
523
+ * const embed = new SearchEmbed('#tsEmbed', {
524
+ * ... // other options
525
+ * collapseDataSources:true,
526
+ * })
527
+ * ```
487
528
  */
488
529
  collapseDataSources?: boolean;
489
530
  /**
490
531
  * Show or hide the data sources panel.
532
+ *
533
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
534
+ *
535
+ * @example
536
+ * ```js
537
+ * const embed = new SearchEmbed('#tsEmbed', {
538
+ * ... // other options
539
+ * hideDataSources:true,
540
+ * })
541
+ * ```
491
542
  */
492
543
  hideDataSources?: boolean;
493
544
  /**
494
545
  * Show or hide the charts and tables in search answers.
495
546
  * This attribute can be used to create a custom visualization
496
547
  * using raw answer data.
548
+ *
549
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
550
+ *
551
+ * @example
552
+ * ```js
553
+ * const embed = new SearchEmbed('#tsEmbed', {
554
+ * ... // other options
555
+ * hideResults:true,
556
+ * })
557
+ * ```
497
558
  */
498
559
  hideResults?: boolean;
499
560
  /**
500
561
  * If set to true, the Search Assist feature is enabled.
501
562
  *
502
563
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
564
+ *
565
+ * @example
566
+ * ```js
567
+ * const embed = new SearchEmbed('#tsEmbed', {
568
+ * ... // other options
569
+ * enableSearchAssist:true,
570
+ * })
571
+ * ```
503
572
  */
504
573
  enableSearchAssist?: boolean;
505
574
  /**
506
575
  * If set to true, the tabular view is set as the default
507
576
  * format for presenting search data.
577
+ *
578
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
579
+ *
580
+ * @example
581
+ * ```js
582
+ * const embed = new SearchEmbed('#tsEmbed', {
583
+ * ... // other options
584
+ * forceTable:true,
585
+ * })
508
586
  */
509
587
  forceTable?: boolean;
510
588
  /**
@@ -512,12 +590,28 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
512
590
  * Only a single data source is supported currently.
513
591
  *
514
592
  * @deprecated Use `dataSource` instead.
593
+ *
594
+ * @example
595
+ * ```js
596
+ * const embed = new SearchEmbed('#tsEmbed', {
597
+ * ... // other options
598
+ * dataSources:['id-234','id-456'],
599
+ * })
600
+ * ```
515
601
  */
516
602
  dataSources?: string[];
517
603
  /**
518
604
  * The array of data source GUIDs to set on load.
519
605
  *
520
606
  * @version: SDK: 1.19.0
607
+ *
608
+ * @example
609
+ * ```js
610
+ * const embed = new SearchEmbed('#tsEmbed', {
611
+ * ... // other options
612
+ * dataSource:'id-234',
613
+ * })
614
+ * ```
521
615
  */
522
616
  dataSource?: string;
523
617
  /**
@@ -550,6 +644,16 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
550
644
  searchOptions?: SearchOptions;
551
645
  /**
552
646
  * The GUID of a saved answer to load initially.
647
+ *
648
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
649
+ *
650
+ * @example
651
+ * ```js
652
+ * const embed = new SearchEmbed('#tsEmbed', {
653
+ * ... // other options
654
+ * answerId:'sed-1234',
655
+ * })
656
+ * ```
553
657
  */
554
658
  answerId?: string;
555
659
  /**
@@ -557,6 +661,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
557
661
  * The chart/table should still be visible.
558
662
  *
559
663
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
664
+ *
665
+ * @example
666
+ * ```js
667
+ * const embed = new SearchEmbed('#tsEmbed', {
668
+ * ... // other options
669
+ * hideSearchBar:true,
670
+ * })
671
+ * ```
560
672
  */
561
673
  hideSearchBar?: boolean;
562
674
  /**
@@ -564,6 +676,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
564
676
  *
565
677
  * @default false
566
678
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
679
+ *
680
+ * @example
681
+ * ```js
682
+ * const embed = new SearchEmbed('#tsEmbed', {
683
+ * ... // other options
684
+ * dataPanelV2:false,
685
+ * })
686
+ * ```
567
687
  */
568
688
  dataPanelV2?: boolean;
569
689
  /**
@@ -597,7 +717,7 @@ export declare class SearchEmbed extends TsEmbed {
597
717
  /**
598
718
  * Render the embedded ThoughtSpot search
599
719
  */
600
- render(): SearchEmbed;
720
+ render(): Promise<SearchEmbed>;
601
721
  }
602
722
 
603
723
  /**
@@ -653,6 +773,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
653
773
  * If true, the top navigation bar within the ThoughtSpot app
654
774
  * is displayed. By default, the navigation bar is hidden.
655
775
  * This flag also controls the homepage left navigation bar.
776
+ *
777
+ * @default true
778
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
779
+ *
780
+ * @example
781
+ * ```js
782
+ * const embed = new AppEmbed('#tsEmbed', {
783
+ * ... // other options
784
+ * showPrimaryNavbar:true,
785
+ * })
786
+ * ```
656
787
  */
657
788
  showPrimaryNavbar?: boolean;
658
789
  /**
@@ -661,23 +792,76 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
661
792
  * nav-bars are visible, this flag will only hide the homepage left nav-bar.
662
793
  * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
663
794
  *
795
+ * **Note**: This option does not apply to the classic homepage.
796
+ * To access the updated modular homepage, set
797
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
798
+ *
664
799
  * @default false
665
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
800
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
801
+ *
802
+ * @example
803
+ * ```js
804
+ * const embed = new AppEmbed('#tsEmbed', {
805
+ * ... // other options
806
+ * hideHomepageLeftNav : true,
807
+ * })
808
+ * ```
666
809
  */
667
810
  hideHomepageLeftNav?: boolean;
668
811
  /**
669
812
  * Control the visibility of the help (?) and profile buttons on the
670
813
  * Global nav-bar. By default, these buttons are visible on the nav-bar.
814
+ * @default false
815
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
816
+ *
817
+ * @example
818
+ * ```js
819
+ * const embed = new AppEmbed('#tsEmbed', {
820
+ * ... // other options
821
+ * disableProfileAndHelp: true,
822
+ * })
823
+ * ```
671
824
  */
672
825
  disableProfileAndHelp?: boolean;
673
826
  /**
674
827
  * Control the visibility of the application switcher button on the nav-bar.
675
828
  * By default, the application switcher is shown.
829
+ *
830
+ * **Note**: This option does not apply to the classic homepage.
831
+ * To access the updated modular homepage, set
832
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
833
+ *
834
+ * @default false
835
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
836
+ *
837
+ * @example
838
+ * ```js
839
+ * const embed = new AppEmbed('#tsEmbed', {
840
+ * ... // other options
841
+ * hideApplicationSwitcher : true,
842
+ * })
843
+ * ```
676
844
  */
677
845
  hideApplicationSwitcher?: boolean;
678
846
  /**
679
847
  * Control the visibility of the Org switcher button on the nav-bar.
680
848
  * By default, the Org switcher button is shown.
849
+ *
850
+ * **Note**: This option does not apply to the classic homepage.
851
+ * To access the updated modular homepage, set
852
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
853
+ *
854
+ *
855
+ * @default true
856
+ * @version SDK: 1.2.0 | Thoughtspot: 9.4.0.cl
857
+ *
858
+ * @example
859
+ * ```js
860
+ * const embed = new AppEmbed('#tsEmbed', {
861
+ * ... // other options
862
+ * hideOrgSwitcher : true,
863
+ * })
864
+ * ```
681
865
  */
682
866
  hideOrgSwitcher?: boolean;
683
867
  /**
@@ -689,9 +873,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
689
873
  * For eg, if you want the component to open to a specific Liveboard
690
874
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
691
875
  *
876
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
877
+ *
692
878
  * @example
693
- * ```
694
- * <AppEmbed path="pinboard/1234/tab/7464" />
879
+ * ```js
880
+ * const embed = new AppEmbed('#tsEmbed', {
881
+ * ... // other options
882
+ * path:"pinboard/1234/tab/7464"
883
+ * })
695
884
  * ```
696
885
  */
697
886
  path?: string;
@@ -701,16 +890,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
701
890
  *
702
891
  * Use this to open to particular page in the app. To open to a specific
703
892
  * path within the app, use the `path` attribute which is more flexible.
893
+ *
894
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
895
+ *
896
+ * @example
897
+ * ```js
898
+ * const embed = new AppEmbed('#tsEmbed', {
899
+ * ... // other options
900
+ * pageId : Page.Answers | Page.Data
901
+ * })
902
+ * ```
704
903
  */
705
904
  pageId?: Page;
706
905
  /**
707
906
  * This puts a filter tag on the application. All metadata lists in the
708
907
  * application, such as Liveboards and answers, would be filtered by this
709
908
  * tag.
909
+ *
910
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
911
+ * @example
912
+ * ```js
913
+ * const embed = new AppEmbed('#tsEmbed', {
914
+ * ... // other options
915
+ * tag:'value',
916
+ * })
917
+ * ```
710
918
  */
711
919
  tag?: string;
712
920
  /**
713
921
  * The array of GUIDs to be hidden
922
+ *
923
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
924
+ *
925
+ * @example
926
+ * ```js
927
+ * const embed = new AppEmbed('#tsEmbed', {
928
+ * ... // other options
929
+ * hideObjects: [
930
+ * '430496d6-6903-4601-937e-2c691821af3c',
931
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
932
+ * ]
933
+ * })
934
+ * ```
714
935
  */
715
936
  hideObjects?: string[];
716
937
  /**
@@ -723,8 +944,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
723
944
  liveboardV2?: boolean;
724
945
  /**
725
946
  * If set to true, the Search Assist feature is enabled.
947
+ * @default true
726
948
  *
727
949
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
950
+ *
951
+ * @example
952
+ * ```js
953
+ * const embed = new AppEmbed('#tsEmbed', {
954
+ * ... // other options
955
+ * enableSearchAssist: true,
956
+ * })
957
+ * ```
728
958
  */
729
959
  enableSearchAssist?: boolean;
730
960
  /**
@@ -732,6 +962,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
732
962
  * according to the height of the pages which support fullHeight mode.
733
963
  *
734
964
  * @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
965
+ *
966
+ * @example
967
+ * ```js
968
+ * const embed = new AppEmbed('#tsEmbed', {
969
+ * ... // other options
970
+ * fullHeight: true,
971
+ * })
972
+ * ```
735
973
  */
736
974
  fullHeight?: boolean;
737
975
  /**
@@ -747,6 +985,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
747
985
  *
748
986
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
749
987
  * @default false
988
+ *
989
+ * @example
990
+ * ```js
991
+ * const embed = new AppEmbed('#tsEmbed', {
992
+ * ... // other options
993
+ * hideLiveboardHeader : true,
994
+ * })
995
+ * ```
750
996
  */
751
997
  hideLiveboardHeader?: boolean;
752
998
  /**
@@ -754,6 +1000,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
754
1000
  *
755
1001
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
756
1002
  * @default false
1003
+ *
1004
+ * @example
1005
+ * ```js
1006
+ * const embed = new AppEmbed('#tsEmbed', {
1007
+ * ... // other options
1008
+ * showLiveboardTitle:true,
1009
+ * })
1010
+ * ```
757
1011
  */
758
1012
  showLiveboardTitle?: boolean;
759
1013
  /**
@@ -761,13 +1015,29 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
761
1015
  *
762
1016
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
763
1017
  * @default false
1018
+ *
1019
+ * @example
1020
+ * ```js
1021
+ * const embed = new AppEmbed('#tsEmbed', {
1022
+ * ... // other options
1023
+ * showLiveboardDescription:true,
1024
+ * })
1025
+ * ```
764
1026
  */
765
1027
  showLiveboardDescription?: boolean;
766
1028
  /**
767
- * Flag to control new Modular Home experience
1029
+ * Flag to control new Modular Home experience.
768
1030
  *
769
1031
  * @default false
770
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
1032
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
1033
+ *
1034
+ * @example
1035
+ * ```js
1036
+ * const embed = new AppEmbed('#tsEmbed', {
1037
+ * ... // other options
1038
+ * modularHomeExperience : true,
1039
+ * })
1040
+ * ```
771
1041
  */
772
1042
  modularHomeExperience?: boolean;
773
1043
  /**
@@ -836,7 +1106,7 @@ export declare class AppEmbed extends V1Embed {
836
1106
  * @param renderOptions An object containing the page ID
837
1107
  * to be embedded.
838
1108
  */
839
- render(): AppEmbed;
1109
+ render(): Promise<AppEmbed>;
840
1110
  }
841
1111
 
842
1112
  /**
@@ -858,8 +1128,22 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
858
1128
  /**
859
1129
  * If set to true, the embedded object container dynamically resizes
860
1130
  * according to the height of the Liveboard.
1131
+ * **Note**: Using fullHeight loads all visualizations on the
1132
+ * Liveboard simultaneously, which results in multiple warehouse
1133
+ * queries and potentially a longer wait for the topmost
1134
+ * visualizations to display on the screen.
1135
+ * Setting `fullHeight` to `false` fetches visualizations
1136
+ * incrementally as users scroll the page to view the charts and tables.
861
1137
  *
862
1138
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
1139
+ *
1140
+ * @example
1141
+ * ```js
1142
+ * const embed = new LiveboardEmbed('#embed', {
1143
+ * ... // other liveboard view config
1144
+ * fullHeight: true,
1145
+ * });
1146
+ * ```
863
1147
  */
864
1148
  fullHeight?: boolean;
865
1149
  /**
@@ -869,10 +1153,28 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
869
1153
  *
870
1154
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
871
1155
  * @default 500
1156
+ * @example
1157
+ * ```js
1158
+ * const embed = new LiveboardEmbed('#embed', {
1159
+ * ... // other liveboard view config
1160
+ * fullHeight: true,
1161
+ * defaultHeight: 600,
1162
+ * });
1163
+ * ```
872
1164
  */
873
1165
  defaultHeight?: number;
874
1166
  /**
875
1167
  * @Deprecated If set to true, the context menu in visualizations will be enabled.
1168
+ *
1169
+ * @example
1170
+ * ```js
1171
+ * const embed = new LiveboardEmbed('#tsEmbed', {
1172
+ * ... // other options
1173
+ * enableVizTransformations:true,
1174
+ * })
1175
+ * ```
1176
+ *
1177
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
876
1178
  */
877
1179
  enableVizTransformations?: boolean;
878
1180
  /**
@@ -880,6 +1182,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
880
1182
  * Use either liveboardId or pinboardId to reference the Liveboard to embed.
881
1183
  *
882
1184
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
1185
+ * @example
1186
+ * ```js
1187
+ * const embed = new LiveboardEmbed('#embed-container', {
1188
+ * ... // other options
1189
+ * liveboardId:id of liveboard,
1190
+ * })
883
1191
  */
884
1192
  liveboardId?: string;
885
1193
  /**
@@ -890,6 +1198,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
890
1198
  pinboardId?: string;
891
1199
  /**
892
1200
  * The visualization within the Liveboard to display.
1201
+ *
1202
+ * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1203
+ *
1204
+ * @example
1205
+ * ```js
1206
+ * const embed = new LiveboardEmbed('#embed-container', {
1207
+ * ... // other options
1208
+ * vizId:'430496d6-6903-4601-937e-2c691821af3c',
1209
+ * })
1210
+ * ```
893
1211
  */
894
1212
  vizId?: string;
895
1213
  /**
@@ -897,6 +1215,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
897
1215
  * Liveboard page will be read-only (no X buttons)
898
1216
  *
899
1217
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
1218
+ * @example
1219
+ * ```js
1220
+ * const embed = new LiveboardEmbed('#embed-container', {
1221
+ * ... // other options
1222
+ * preventLiveboardFilterRemoval:true,
1223
+ * })
1224
+ * ```
900
1225
  */
901
1226
  preventLiveboardFilterRemoval?: boolean;
902
1227
  /**
@@ -905,6 +1230,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
905
1230
  * event.
906
1231
  *
907
1232
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1233
+ *
1234
+ * @example
1235
+ * ```js
1236
+ * const embed = new LiveboardEmbed('#embed-container', {
1237
+ * ... // other options
1238
+ * visibleVizs: [
1239
+ * '430496d6-6903-4601-937e-2c691821af3c',
1240
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
1241
+ * ]
1242
+ * })
908
1243
  */
909
1244
  visibleVizs?: string[];
910
1245
  /**
@@ -918,12 +1253,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
918
1253
  * new Liveboard experience mode.
919
1254
  *
920
1255
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
1256
+ * @example
1257
+ * ```js
1258
+ * const embed = new LiveboardEmbed('#embed-container', {
1259
+ * ... // other options
1260
+ * liveboardV2:true,
1261
+ * })
1262
+ * ```
921
1263
  */
922
1264
  liveboardV2?: boolean;
923
1265
  /**
924
1266
  * Set a Liveboard tab as an active tab.
925
1267
  * Specify the tab ID.
926
1268
  *
1269
+ * @example
1270
+ * ```js
1271
+ * const embed = new LiveboardEmbed('#tsEmbed', {
1272
+ * ... // other options
1273
+ * activeTabId:'id-1234',
1274
+ * })
1275
+ * ```
927
1276
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
928
1277
  */
929
1278
  activeTabId?: string;
@@ -931,6 +1280,14 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
931
1280
  * Show or hide the tab panel of the embedded Liveboard.
932
1281
  *
933
1282
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
1283
+ *
1284
+ * @example
1285
+ * ```js
1286
+ * const embed = new LiveboardEmbed('#embed-container', {
1287
+ * ... // other options
1288
+ * hideTabPanel:true,
1289
+ * })
1290
+ * ```
934
1291
  */
935
1292
  hideTabPanel?: boolean;
936
1293
  /**
@@ -938,20 +1295,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
938
1295
  *
939
1296
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
940
1297
  * @default false
1298
+ * @example
1299
+ * ```js
1300
+ * const embed = new LiveboardEmbed('#embed', {
1301
+ * ... // other liveboard view config
1302
+ * hideLiveboardHeader:true,
1303
+ * });
1304
+ * ```
941
1305
  */
942
1306
  hideLiveboardHeader?: boolean;
943
1307
  /**
944
1308
  * Show or hide the Liveboard title.
945
- *
946
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
947
1309
  * @default false
1310
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
1311
+ *
1312
+ * @example
1313
+ * ```js
1314
+ * const embed = new LiveboardEmbed('#embed-container', {
1315
+ * ... // other options
1316
+ * showLiveboardTitle:true,
1317
+ * })
1318
+ * ```
948
1319
  */
949
1320
  showLiveboardTitle?: boolean;
950
1321
  /**
951
1322
  * Show or hide the Liveboard description.
952
- *
953
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
954
1323
  * @default false
1324
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
1325
+ *
1326
+ * @example
1327
+ * ```js
1328
+ * const embed = new LiveboardEmbed('#embed-container', {
1329
+ * ... // other options
1330
+ * showLiveboardDescription:true,
1331
+ * })
1332
+ * ```
955
1333
  */
956
1334
  showLiveboardDescription?: boolean;
957
1335
  /**
@@ -972,8 +1350,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
972
1350
  /**
973
1351
  * enable or disable ask sage
974
1352
  *
975
- * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
976
1353
  * @default false
1354
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
1355
+ * @example
1356
+ * ```js
1357
+ * const embed = new SearchEmbed('#tsEmbed', {
1358
+ * ... // other options
1359
+ * enableAskSage:true,
1360
+ * })
1361
+ * ```
977
1362
  */
978
1363
  enableAskSage?: boolean;
979
1364
  }
@@ -1016,7 +1401,7 @@ export declare class LiveboardEmbed extends V1Embed {
1016
1401
  * @param renderOptions An object specifying the Liveboard ID,
1017
1402
  * visualization ID and the runtime filters.
1018
1403
  */
1019
- render(): LiveboardEmbed;
1404
+ render(): Promise<LiveboardEmbed>;
1020
1405
  navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
1021
1406
  }
1022
1407
  /**
@@ -1052,7 +1437,7 @@ export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewCon
1052
1437
  * @summary ThoughtSpot Visual Embed SDK
1053
1438
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
1054
1439
  */
1055
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
1440
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
1056
1441
 
1057
1442
  /**
1058
1443
  * Copyright (c) 2023
@@ -1230,15 +1615,30 @@ export declare enum AuthType {
1230
1615
  Basic = "Basic"
1231
1616
  }
1232
1617
  export declare enum HomeLeftNavItem {
1233
- QueryBuilder = "query-builder",
1618
+ /**
1619
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1620
+ */
1621
+ SearchData = "search-data",
1622
+ /**
1623
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1624
+ */
1234
1625
  Home = "insights-home",
1626
+ /**
1627
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1628
+ */
1235
1629
  Liveboards = "liveboards",
1630
+ /**
1631
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1632
+ */
1236
1633
  Answers = "answers",
1634
+ /**
1635
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1636
+ */
1237
1637
  MonitorSubscription = "monitor-alerts",
1238
- SpotIQAnalysis = "spotiq-analysis",
1239
- Tutorials = "tutorials",
1240
- Documentation = "documentation",
1241
- Community = "community"
1638
+ /**
1639
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1640
+ */
1641
+ SpotIQAnalysis = "spotiq-analysis"
1242
1642
  }
1243
1643
  export type DOMSelector = string | HTMLElement;
1244
1644
  /**
@@ -1294,6 +1694,8 @@ export interface CustomStyles {
1294
1694
  /**
1295
1695
  * Configuration to define the customization on the Embedded
1296
1696
  * Thoughtspot components.
1697
+ * You can customize styles, text strings, and icons.
1698
+ * For more information, see https://developers.thoughtspot.com/docs/custom-css.
1297
1699
  *
1298
1700
  * @example
1299
1701
  * ```js
@@ -1308,7 +1710,12 @@ export interface CustomStyles {
1308
1710
  * },
1309
1711
  * content: {
1310
1712
  * strings: {
1311
- * 'LIVEBOARDS': 'Dashboards'
1713
+ * 'LIVEBOARDS': 'Dashboards',
1714
+ * 'ANSWERS': 'Visualizations',
1715
+ * 'Edit': 'Modify',
1716
+ * 'Show underlying data': 'Show source data',
1717
+ * 'SpotIQ': 'Insights',
1718
+ * 'Monitor': 'Alerts',
1312
1719
  * }
1313
1720
  * },
1314
1721
  * iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
@@ -1340,12 +1747,6 @@ export interface EmbedConfig {
1340
1747
  * The ThoughtSpot cluster hostname or IP address.
1341
1748
  */
1342
1749
  thoughtSpotHost: string;
1343
- /**
1344
- * If true, all the iframe links will have /v2 added automatically.
1345
- * If false, all the iframe links will have /v1 added automatically.
1346
- * If undefined, nothing will be added
1347
- */
1348
- enableReactShell?: boolean | undefined;
1349
1750
  /**
1350
1751
  * The authentication mechanism to use.
1351
1752
  */
@@ -1590,6 +1991,12 @@ export interface EmbedConfig {
1590
1991
  * @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
1591
1992
  */
1592
1993
  logLevel?: LogLevel;
1994
+ /**
1995
+ * Disables the Mixpanel tracking from the SDK.
1996
+ *
1997
+ * @version SDK: 1.27.9
1998
+ */
1999
+ disableSDKTracking?: boolean;
1593
2000
  }
1594
2001
  export interface LayoutConfig {
1595
2002
  }
@@ -1628,8 +2035,21 @@ export interface ViewConfig {
1628
2035
  */
1629
2036
  layoutConfig?: LayoutConfig;
1630
2037
  /**
1631
- * The <b>width</b> and <b>height</b> dimensions to render an embedded
2038
+ * The width and height dimensions to render an embedded
1632
2039
  * object inside your app. Specify the values in pixels or percentage.
2040
+ *
2041
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2042
+ *
2043
+ * @example
2044
+ * ```js
2045
+ * const embed = new LiveboardEmbed('#embed', {
2046
+ * ... // other liveboard view config
2047
+ * frameParams: {
2048
+ * width: '500px' | '50%',
2049
+ * height: '400px' | '60%',
2050
+ * },
2051
+ * });
2052
+ * ```
1633
2053
  */
1634
2054
  frameParams?: FrameParams;
1635
2055
  /**
@@ -1646,6 +2066,7 @@ export interface ViewConfig {
1646
2066
  * for the user.
1647
2067
  * Use this to disable actions.
1648
2068
  *
2069
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1649
2070
  * @example
1650
2071
  * ```js
1651
2072
  * const embed = new LiveboardEmbed('#embed', {
@@ -1657,6 +2078,15 @@ export interface ViewConfig {
1657
2078
  disabledActions?: Action[];
1658
2079
  /**
1659
2080
  * The tooltip to display for disabled actions.
2081
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2082
+ * @example
2083
+ * ```js
2084
+ * const embed = new LiveboardEmbed('#embed', {
2085
+ * ... // other liveboard view config
2086
+ * disabledActions: [Action.Download, Action.Save]
2087
+ * disabledActionReason: "Reason for disabling",
2088
+ * });
2089
+ * ```
1660
2090
  */
1661
2091
  disabledActionReason?: string;
1662
2092
  /**
@@ -1664,6 +2094,8 @@ export interface ViewConfig {
1664
2094
  * This actions will be hidden from the user.
1665
2095
  * Use this to hide an action.
1666
2096
  *
2097
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2098
+ *
1667
2099
  * @example
1668
2100
  * ```js
1669
2101
  * const embed = new LiveboardEmbed('#embed', {
@@ -1684,17 +2116,49 @@ export interface ViewConfig {
1684
2116
  *
1685
2117
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1686
2118
  * @important
2119
+ *
2120
+ * @example
2121
+ * ```js
2122
+ * const embed = new LiveboardEmbed('#embed', {
2123
+ * ... // other liveboard view config
2124
+ * visibleActions: [Action.Download, Action.Export]
2125
+ * });
2126
+ * ```
1687
2127
  */
1688
2128
  visibleActions?: Action[];
1689
2129
  /**
1690
2130
  * Show alert messages and toast messages in the embedded view.
1691
2131
  *
1692
2132
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2133
+ *
2134
+ * @example
2135
+ * ```js
2136
+ * const embed = new LiveboardEmbed('#embed-container', {
2137
+ * ... // other options
2138
+ * showAlerts:true,
2139
+ * })
2140
+ * ```
1693
2141
  */
1694
2142
  showAlerts?: boolean;
1695
2143
  /**
1696
2144
  * The list of runtime filters to apply to a search answer,
1697
2145
  * visualization, or Liveboard.
2146
+ *
2147
+ * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2148
+ *
2149
+ * @example
2150
+ * ```js
2151
+ * const embed = new LiveboardEmbed('#embed-container', {
2152
+ * ... // other options
2153
+ * runtimeFilters: [
2154
+ * {
2155
+ * columnName: 'value',
2156
+ * operator: RuntimeFilterOp.EQ,
2157
+ * values: ['string' | 123 | true],
2158
+ * },
2159
+ * ],
2160
+ * })
2161
+ * ```
1698
2162
  */
1699
2163
  runtimeFilters?: RuntimeFilter[];
1700
2164
  /**
@@ -1702,12 +2166,32 @@ export interface ViewConfig {
1702
2166
  * visualization, or Liveboard.
1703
2167
  *
1704
2168
  * @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
2169
+ *
2170
+ * @example
2171
+ * ```js
2172
+ * const embed = new LiveboardEmbed('#embed-container', {
2173
+ * ... // other options
2174
+ * runtimeParameters: [
2175
+ * {
2176
+ * name: 'value',
2177
+ * value: 'string' | 123 | true,
2178
+ * },
2179
+ * ],
2180
+ * })
2181
+ * ```
1705
2182
  */
1706
2183
  runtimeParameters?: RuntimeParameter[];
1707
2184
  /**
1708
2185
  * The locale/language to use for the embedded view.
1709
2186
  *
1710
2187
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2188
+ * @example
2189
+ * ```js
2190
+ * const embed = new LiveboardEmbed('#embed-container', {
2191
+ * ... // other options
2192
+ * locale:'en',
2193
+ * })
2194
+ * ```
1711
2195
  */
1712
2196
  locale?: string;
1713
2197
  /**
@@ -1717,7 +2201,16 @@ export interface ViewConfig {
1717
2201
  * Warning: This option is for advanced use only and is used internally
1718
2202
  * to control embed behavior in non-regular ways. We do not publish the
1719
2203
  * list of supported keys and values associated with each.
1720
- *
2204
+ * @example
2205
+ * ```js
2206
+ * const embed = new LiveboardEmbed('#embed', {
2207
+ * ... // other liveboard view config
2208
+ * additionalFlags: {
2209
+ * flag1: 'value1',
2210
+ * flag2: 'value2'
2211
+ * }
2212
+ * });
2213
+ * ```
1721
2214
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1722
2215
  */
1723
2216
  additionalFlags?: {
@@ -1734,18 +2227,42 @@ export interface ViewConfig {
1734
2227
  /**
1735
2228
  * Insert as a sibling of the target container, instead of appending to a
1736
2229
  * child inside it.
2230
+ *
2231
+ * @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
2232
+ *
2233
+ * @example
2234
+ * ```js
2235
+ * const embed = new LiveboardEmbed('#embed-container', {
2236
+ * ... // other options
2237
+ * insertAsSibling:true,
2238
+ * })
2239
+ * ```
1737
2240
  */
1738
2241
  insertAsSibling?: boolean;
1739
2242
  /**
1740
2243
  * flag to set ContextMenu Trigger to either left or right click.
1741
2244
  *
2245
+ * @example
2246
+ * ```js
2247
+ * const embed = new LiveboardEmbed('#tsEmbed', {
2248
+ * ... // other options
2249
+ * contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
2250
+ * })
2251
+ * ```
1742
2252
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1743
2253
  */
1744
2254
  contextMenuTrigger?: ContextMenuTriggerOptions;
1745
2255
  /**
1746
- * flag to override openNew tab context menu link
2256
+ * Flag to override openNew tab context menu link
1747
2257
  *
1748
2258
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2259
+ * @example
2260
+ * ```js
2261
+ * const embed = new LiveboardEmbed('#embed-container', {
2262
+ * ... // other options
2263
+ * linkOverride:false,
2264
+ * })
2265
+ * ```
1749
2266
  */
1750
2267
  linkOverride?: boolean;
1751
2268
  /**
@@ -1767,9 +2284,14 @@ export interface ViewConfig {
1767
2284
  usePrerenderedIfAvailable?: boolean;
1768
2285
  /**
1769
2286
  * Boolean to exclude runtimeFilters in the URL
2287
+ * By default it is true, this flag removes runtime filters from the URL
2288
+ * when set to false, runtime filters will be included in the URL.
1770
2289
  *
1771
- * @default false
1772
- * @hidden
2290
+ * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
2291
+ * embedded view.
2292
+ *
2293
+ * @default true
2294
+ * @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
1773
2295
  */
1774
2296
  excludeRuntimeFiltersfromURL?: boolean;
1775
2297
  /**
@@ -1791,16 +2313,40 @@ export interface ViewConfig {
1791
2313
  hiddenTabs?: string[];
1792
2314
  /**
1793
2315
  * Hide the home page modules
1794
- * eg: hiddenHomepageModules = [HomepageModule.MyLibrary]
2316
+ * For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
2317
+ *
2318
+ * **Note**: This option does not apply to the classic homepage.
2319
+ * To access the updated modular homepage, set
2320
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
2321
+ *
2322
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
2323
+ * @example
2324
+ * ```js
2325
+ * const embed = new AppEmbed('#tsEmbed', {
2326
+ * ... // other options
2327
+ * hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
2328
+ * })
2329
+ * ```
1795
2330
  *
1796
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
1797
2331
  */
1798
2332
  hiddenHomepageModules?: HomepageModule[];
1799
2333
  /**
1800
2334
  * reordering the home page modules
1801
2335
  * eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
1802
2336
  *
1803
- * @version SDK: 1.28.0 | Thoughtspot: 9.12.0.cl
2337
+ * **Note**: This option does not apply to the classic homepage.
2338
+ * To access the updated modular homepage, set
2339
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl onwards).
2340
+ *
2341
+ * @version SDK: 1.27.9| Thoughtspot: 9.12.0.cl
2342
+ *
2343
+ * @example
2344
+ * ```js
2345
+ * const embed = new AppEmbed('#tsEmbed', {
2346
+ * ... // other options
2347
+ * reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
2348
+ * })
2349
+ * ```
1804
2350
  */
1805
2351
  reorderedHomepageModules?: HomepageModule[];
1806
2352
  /**
@@ -1809,13 +2355,18 @@ export interface ViewConfig {
1809
2355
  *
1810
2356
  * Use either `visibleTabs` or `hiddenTabs`.
1811
2357
  *
2358
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2359
+ *
1812
2360
  * @example
1813
2361
  * ```js
1814
- * visibleTabs: [
1815
- * '430496d6-6903-4601-937e-2c691821af3c',
1816
- * 'f547ec54-2a37-4516-a222-2b06719af726']
2362
+ * const embed = new LiveboardEmbed('#embed-container', {
2363
+ * ... // other options
2364
+ * visibleTabs: [
2365
+ * '430496d6-6903-4601-937e-2c691821af3c',
2366
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
2367
+ * ]
2368
+ * })
1817
2369
  * ```
1818
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1819
2370
  */
1820
2371
  visibleTabs?: string[];
1821
2372
  /**
@@ -1823,11 +2374,21 @@ export interface ViewConfig {
1823
2374
  * There are 8 eight home navigation list items.
1824
2375
  * To hide these items, specify the string in the array.
1825
2376
  *
2377
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
2378
+ *
2379
+ * * @example
1826
2380
  * ```js
1827
- * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
2381
+ * const embed = new AppEmbed('#tsEmbed', {
2382
+ * ... // other options
2383
+ * hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
2384
+ * })
1828
2385
  * ```
1829
2386
  *
1830
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2387
+ * **Note**: This option does not apply to the classic homepage.
2388
+ * To access the updated modular homepage, set
2389
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
2390
+ *
2391
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
1831
2392
  */
1832
2393
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1833
2394
  /**
@@ -1854,7 +2415,10 @@ export interface ViewConfig {
1854
2415
  *
1855
2416
  * @type {boolean}
1856
2417
  * @default false
2418
+ * @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
2419
+ *
1857
2420
  * @example
2421
+ * ```js
1858
2422
  * // Disable tracking PreRender size in the configuration
1859
2423
  * const config = {
1860
2424
  * doNotTrackPreRenderSize: true,
@@ -1862,6 +2426,7 @@ export interface ViewConfig {
1862
2426
  *
1863
2427
  * // Instantiate an object with the configuration
1864
2428
  * const myComponent = new MyComponent(config);
2429
+ * ```
1865
2430
  */
1866
2431
  doNotTrackPreRenderSize?: boolean;
1867
2432
  /**
@@ -2003,6 +2568,10 @@ export declare enum HomepageModule {
2003
2568
  MyLibrary = "MY_LIBRARY",
2004
2569
  /**
2005
2570
  * Trending list
2571
+ *
2572
+ * **Note**: This option does not apply to the classic homepage.
2573
+ * To access the updated modular homepage, set
2574
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl onwards).
2006
2575
  */
2007
2576
  Trending = "TRENDING",
2008
2577
  /**
@@ -2141,7 +2710,7 @@ export declare enum EmbedEvent {
2141
2710
  * @returns nonFilteredColumns - The columns that were not filtered
2142
2711
  * @example
2143
2712
  *```js
2144
- * searchEmbed.trigger(HostEvent.DrillDown, {
2713
+ * searchEmbed.trigger(EmbedEvent.DrillDown, {
2145
2714
  * points: {
2146
2715
  * clickedPoint,
2147
2716
  * selectedPoints: selectedPoint
@@ -2233,7 +2802,7 @@ export declare enum EmbedEvent {
2233
2802
  * @important
2234
2803
  * @example
2235
2804
  * ```js
2236
- * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
2805
+ * embed.on(EmbedEvent.VizPointClick, ({data}) => {
2237
2806
  * console.log(
2238
2807
  * data.vizId, // viz id
2239
2808
  * data.clickedPoint.selectedAttributes[0].value,
@@ -2248,19 +2817,20 @@ export declare enum EmbedEvent {
2248
2817
  /**
2249
2818
  * An error has occurred. This event is fired for the following error types:
2250
2819
  *
2251
- * `API` - API call failure error.
2820
+ * API - API call failure error.
2252
2821
  *
2253
- * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
2822
+ * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen mode.
2254
2823
  *
2255
- * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
2824
+ * SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
2256
2825
  *
2257
- * `NON_EXIST_FILTER` - Error due to a non-existent filter.
2826
+ * NON_EXIST_FILTER - Error due to a non-existent filter.
2258
2827
  *
2259
- * `INVALID_DATE_VALUE` - Invalid date value error.
2828
+ * INVALID_DATE_VALUE - Invalid date value error.
2260
2829
  *
2261
- * `INVALID_OPERATOR` - Use of invalid operator during filter application.
2830
+ * INVALID_OPERATOR - Use of invalid operator during filter application.
2262
2831
  *
2263
2832
  * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
2833
+ *
2264
2834
  * @returns error - An error object or message
2265
2835
  * @example
2266
2836
  * ```js
@@ -2825,7 +3395,7 @@ export declare enum EmbedEvent {
2825
3395
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2826
3396
  * @example
2827
3397
  *```js
2828
- * liveboardEmbed.trigger(HostEvent.Delete,
3398
+ * liveboardEmbed.trigger(EmbedEvent.Delete,
2829
3399
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2830
3400
  *```
2831
3401
  */
@@ -2836,7 +3406,7 @@ export declare enum EmbedEvent {
2836
3406
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2837
3407
  * @example
2838
3408
  *```js
2839
- * liveboardEmbed.trigger(HostEvent.SchedulesList)
3409
+ * liveboardEmbed.trigger(EmbedEvent.SchedulesList)
2840
3410
  *```
2841
3411
  */
2842
3412
  SchedulesList = "schedule-list",
@@ -2846,7 +3416,7 @@ export declare enum EmbedEvent {
2846
3416
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2847
3417
  * @example
2848
3418
  *```js
2849
- * liveboardEmbed.trigger(HostEvent.Cancel)
3419
+ * liveboardEmbed.trigger(EmbedEvent.Cancel)
2850
3420
  *```
2851
3421
  */
2852
3422
  Cancel = "cancel",
@@ -2856,7 +3426,7 @@ export declare enum EmbedEvent {
2856
3426
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2857
3427
  * @example
2858
3428
  *```js
2859
- * liveboardEmbed.trigger(HostEvent.Explore, {
3429
+ * liveboardEmbed.trigger(EmbedEvent.Explore, {
2860
3430
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2861
3431
  *```
2862
3432
  */
@@ -2867,7 +3437,7 @@ export declare enum EmbedEvent {
2867
3437
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2868
3438
  * @example
2869
3439
  *```js
2870
- * liveboardEmbed.trigger(HostEvent.CopyLink, {
3440
+ * liveboardEmbed.trigger(EmbedEvent.CopyLink, {
2871
3441
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2872
3442
  *```
2873
3443
  */
@@ -3136,10 +3706,13 @@ export declare enum HostEvent {
3136
3706
  * _String_. The name of the column to filter on.
3137
3707
  * `operator`
3138
3708
  * Runtime filter operator to apply. For information,
3139
- * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
3709
+ * see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
3140
3710
  * `values`
3141
3711
  * List of operands. Some operators such as EQ, LE allow a single value, whereas
3142
3712
  * operators such as BW and IN accept multiple operands.
3713
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
3714
+ * Search embedding (SearchEmbed) and Natural Language Search
3715
+ * embedding (SageEmbed).
3143
3716
  *
3144
3717
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
3145
3718
  * @example
@@ -3664,6 +4237,7 @@ export declare enum HostEvent {
3664
4237
  /**
3665
4238
  *
3666
4239
  * Get the currents visible and runtime filters applied on a Liveboard
4240
+ *
3667
4241
  * @example
3668
4242
  * liveboardEmbed.trigger(HostEvent.GetFilters)
3669
4243
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3672,12 +4246,13 @@ export declare enum HostEvent {
3672
4246
  /**
3673
4247
  *
3674
4248
  * Update the visible filters on the Liveboard.
4249
+ *
3675
4250
  * @param - filter: filter object containing column name and filter operation and values
3676
4251
  * @example
3677
4252
  *
3678
4253
  * ```js
3679
4254
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
3680
- * filter: { column: 'column name', oper: 'in', values: [1,2,3], is_mandatory: false }
4255
+ * filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
3681
4256
  * })
3682
4257
  * ```
3683
4258
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3763,7 +4338,33 @@ export declare enum HostEvent {
3763
4338
  * ```
3764
4339
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3765
4340
  */
3766
- AskSage = "AskSage"
4341
+ AskSage = "AskSage",
4342
+ /**
4343
+ * Trigger UpdateCrossFilter for Liveboard
4344
+ *
4345
+ * @example
4346
+ * ```js
4347
+ * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
4348
+ * vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
4349
+ * conditions: [
4350
+ * { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
4351
+ * { columnName: 'color', values: ['mint','hot'] },
4352
+ * ],
4353
+ * });
4354
+ * ```
4355
+ * @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
4356
+ */
4357
+ UpdateCrossFilter = "UpdateCrossFilter",
4358
+ /**
4359
+ * Trigger ResetLiveboardPersonalisedView for Liveboard
4360
+ *
4361
+ * @example
4362
+ * ```js
4363
+ * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
4364
+ * ```
4365
+ * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
4366
+ */
4367
+ ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
3767
4368
  }
3768
4369
  /**
3769
4370
  * The different visual modes that the data sources panel within
@@ -4728,7 +5329,47 @@ export declare enum Action {
4728
5329
  * ```
4729
5330
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
4730
5331
  */
4731
- AskAi = "AskAi"
5332
+ AskAi = "AskAi",
5333
+ /**
5334
+ * The **Add KPI to Watchlist** action on Home page watchlist.
5335
+ *
5336
+ * @example
5337
+ * ```js
5338
+ * disabledActions: [Action.AddToWatchlist]
5339
+ * ```
5340
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5341
+ */
5342
+ AddToWatchlist = "addToWatchlist",
5343
+ /**
5344
+ * The **Remove from watchlist** menu action on KPI watchlist.
5345
+ *
5346
+ * @example
5347
+ * ```js
5348
+ * disabledActions: [Action.RemoveFromWatchlist]
5349
+ * ```
5350
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5351
+ */
5352
+ RemoveFromWatchlist = "removeFromWatchlist",
5353
+ /**
5354
+ * The **Copy KPI Link** menu action on KPI watchlist.
5355
+ *
5356
+ * @example
5357
+ * ```js
5358
+ * disabledActions: [Action.CopyKpiLink]
5359
+ * ```
5360
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5361
+ */
5362
+ CopyKpiLink = "copyKpiLink",
5363
+ /**
5364
+ * Action ID for AI Highlights button
5365
+ *
5366
+ * @example
5367
+ * ```js
5368
+ * hiddenAction: [Action.AIHighlights]
5369
+ * ```
5370
+ * @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
5371
+ */
5372
+ AIHighlights = "AIHighlights"
4732
5373
  }
4733
5374
  export interface AnswerServiceType {
4734
5375
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -5060,7 +5701,7 @@ export declare class TsEmbed {
5060
5701
  *
5061
5702
  * @param args
5062
5703
  */
5063
- render(): TsEmbed;
5704
+ render(): Promise<TsEmbed>;
5064
5705
  getIframeSrc(): string;
5065
5706
  protected handleRenderForPrerender(): void;
5066
5707
  /**
@@ -5394,7 +6035,22 @@ export interface AuthEventEmitter {
5394
6035
  *
5395
6036
  * @param {@link AuthEvent}
5396
6037
  */
5397
- emit(event: AuthEvent): void;
6038
+ emit(event: AuthEvent, ...args: any[]): boolean;
6039
+ /**
6040
+ * Remove listener from the emitter returned from init.
6041
+ *
6042
+ * @param event
6043
+ * @param listener
6044
+ * @param context
6045
+ * @param once
6046
+ */
6047
+ off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
6048
+ /**
6049
+ * Remove all the event listeners
6050
+ *
6051
+ * @param event
6052
+ */
6053
+ removeAllListeners(event: AuthStatus): this;
5398
6054
  }
5399
6055
  /**
5400
6056
  * Events which can be triggered on the emitter returned from {@link init}.
@@ -6001,3 +6657,23 @@ export declare function initMixpanel(sessionInfo: any): void;
6001
6657
  */
6002
6658
  export declare function testResetMixpanel(): void;
6003
6659
 
6660
+ /**
6661
+ * Fetch wrapper that adds the authentication token to the request.
6662
+ * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6663
+ *
6664
+ * @param input
6665
+ * @param init
6666
+ * @version SDK: 1.28.0
6667
+ * @group Global methods
6668
+ */
6669
+ export declare const tokenizedFetch: typeof fetch;
6670
+
6671
+ export declare const getAuthenticationToken: (embedConfig: EmbedConfig) => Promise<string>;
6672
+ /**
6673
+ * Resets the auth token and a new token will be fetched on the next request.
6674
+ *
6675
+ * @version SDK: 1.28.0 | ThoughtSpot: *
6676
+ * @group Authentication / Init
6677
+ */
6678
+ export declare const resetCachedAuthToken: () => void;
6679
+