@thoughtspot/visual-embed-sdk 1.50.0 → 1.50.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/cjs/package.json +1 -1
  2. package/cjs/src/css-variables.d.ts +59 -0
  3. package/cjs/src/css-variables.d.ts.map +1 -1
  4. package/cjs/src/embed/app.d.ts +31 -2
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +13 -2
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +101 -0
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/conversation.d.ts +26 -0
  11. package/cjs/src/embed/conversation.d.ts.map +1 -1
  12. package/cjs/src/embed/conversation.js +12 -2
  13. package/cjs/src/embed/conversation.js.map +1 -1
  14. package/cjs/src/embed/conversation.spec.js +23 -0
  15. package/cjs/src/embed/conversation.spec.js.map +1 -1
  16. package/cjs/src/embed/events.spec.js +593 -0
  17. package/cjs/src/embed/events.spec.js.map +1 -1
  18. package/cjs/src/embed/host-events.spec.js +106 -0
  19. package/cjs/src/embed/host-events.spec.js.map +1 -1
  20. package/cjs/src/embed/hostEventClient/contracts.d.ts +36 -14
  21. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  22. package/cjs/src/embed/hostEventClient/contracts.js +10 -1
  23. package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
  24. package/cjs/src/embed/hostEventClient/host-event-client.d.ts +1 -0
  25. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  26. package/cjs/src/embed/hostEventClient/host-event-client.js +8 -0
  27. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  28. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +209 -0
  29. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  30. package/cjs/src/embed/hostEventClient/utils.d.ts +2 -0
  31. package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
  32. package/cjs/src/embed/hostEventClient/utils.js +32 -2
  33. package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
  34. package/cjs/src/embed/hostEventClient/utils.spec.js +178 -0
  35. package/cjs/src/embed/hostEventClient/utils.spec.js.map +1 -1
  36. package/cjs/src/embed/liveboard.d.ts +6 -0
  37. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  38. package/cjs/src/embed/liveboard.js.map +1 -1
  39. package/cjs/src/embed/spotter-viz-utils.d.ts +34 -0
  40. package/cjs/src/embed/spotter-viz-utils.d.ts.map +1 -1
  41. package/cjs/src/embed/spotter-viz-utils.js.map +1 -1
  42. package/cjs/src/embed/spotter-viz-utils.spec.js +17 -0
  43. package/cjs/src/embed/spotter-viz-utils.spec.js.map +1 -1
  44. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  45. package/cjs/src/embed/ts-embed.js +14 -7
  46. package/cjs/src/embed/ts-embed.js.map +1 -1
  47. package/cjs/src/embed/ts-embed.spec.js +146 -0
  48. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  49. package/cjs/src/errors.d.ts +1 -0
  50. package/cjs/src/errors.d.ts.map +1 -1
  51. package/cjs/src/errors.js +1 -0
  52. package/cjs/src/errors.js.map +1 -1
  53. package/cjs/src/index.d.ts +2 -2
  54. package/cjs/src/index.d.ts.map +1 -1
  55. package/cjs/src/index.js +3 -2
  56. package/cjs/src/index.js.map +1 -1
  57. package/cjs/src/react/util.spec.js +251 -0
  58. package/cjs/src/react/util.spec.js.map +1 -1
  59. package/cjs/src/types.d.ts +119 -2
  60. package/cjs/src/types.d.ts.map +1 -1
  61. package/cjs/src/types.js +97 -0
  62. package/cjs/src/types.js.map +1 -1
  63. package/cjs/src/utils/processData.spec.js +93 -0
  64. package/cjs/src/utils/processData.spec.js.map +1 -1
  65. package/cjs/src/utils/processTrigger.spec.js +61 -0
  66. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  67. package/dist/{index-B5xoN6Cp.js → index-fCne7kmU.js} +1 -1
  68. package/dist/src/css-variables.d.ts +59 -0
  69. package/dist/src/css-variables.d.ts.map +1 -1
  70. package/dist/src/embed/app.d.ts +31 -2
  71. package/dist/src/embed/app.d.ts.map +1 -1
  72. package/dist/src/embed/conversation.d.ts +26 -0
  73. package/dist/src/embed/conversation.d.ts.map +1 -1
  74. package/dist/src/embed/hostEventClient/contracts.d.ts +36 -14
  75. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  76. package/dist/src/embed/hostEventClient/host-event-client.d.ts +1 -0
  77. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  78. package/dist/src/embed/hostEventClient/utils.d.ts +2 -0
  79. package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
  80. package/dist/src/embed/liveboard.d.ts +6 -0
  81. package/dist/src/embed/liveboard.d.ts.map +1 -1
  82. package/dist/src/embed/spotter-viz-utils.d.ts +34 -0
  83. package/dist/src/embed/spotter-viz-utils.d.ts.map +1 -1
  84. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  85. package/dist/src/errors.d.ts +1 -0
  86. package/dist/src/errors.d.ts.map +1 -1
  87. package/dist/src/index.d.ts +2 -2
  88. package/dist/src/index.d.ts.map +1 -1
  89. package/dist/src/types.d.ts +119 -2
  90. package/dist/src/types.d.ts.map +1 -1
  91. package/dist/tsembed-react.es.js +389 -84
  92. package/dist/tsembed-react.js +388 -83
  93. package/dist/tsembed.es.js +390 -85
  94. package/dist/tsembed.js +388 -83
  95. package/dist/visual-embed-sdk-react-full.d.ts +302 -17
  96. package/dist/visual-embed-sdk-react.d.ts +302 -17
  97. package/dist/visual-embed-sdk.d.ts +306 -17
  98. package/lib/package.json +1 -1
  99. package/lib/src/css-variables.d.ts +59 -0
  100. package/lib/src/css-variables.d.ts.map +1 -1
  101. package/lib/src/embed/app.d.ts +31 -2
  102. package/lib/src/embed/app.d.ts.map +1 -1
  103. package/lib/src/embed/app.js +13 -2
  104. package/lib/src/embed/app.js.map +1 -1
  105. package/lib/src/embed/app.spec.js +101 -0
  106. package/lib/src/embed/app.spec.js.map +1 -1
  107. package/lib/src/embed/conversation.d.ts +26 -0
  108. package/lib/src/embed/conversation.d.ts.map +1 -1
  109. package/lib/src/embed/conversation.js +11 -1
  110. package/lib/src/embed/conversation.js.map +1 -1
  111. package/lib/src/embed/conversation.spec.js +24 -1
  112. package/lib/src/embed/conversation.spec.js.map +1 -1
  113. package/lib/src/embed/events.spec.js +593 -0
  114. package/lib/src/embed/events.spec.js.map +1 -1
  115. package/lib/src/embed/host-events.spec.js +107 -1
  116. package/lib/src/embed/host-events.spec.js.map +1 -1
  117. package/lib/src/embed/hostEventClient/contracts.d.ts +36 -14
  118. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  119. package/lib/src/embed/hostEventClient/contracts.js +9 -0
  120. package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
  121. package/lib/src/embed/hostEventClient/host-event-client.d.ts +1 -0
  122. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  123. package/lib/src/embed/hostEventClient/host-event-client.js +9 -1
  124. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  125. package/lib/src/embed/hostEventClient/host-event-client.spec.js +209 -0
  126. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  127. package/lib/src/embed/hostEventClient/utils.d.ts +2 -0
  128. package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
  129. package/lib/src/embed/hostEventClient/utils.js +28 -1
  130. package/lib/src/embed/hostEventClient/utils.js.map +1 -1
  131. package/lib/src/embed/hostEventClient/utils.spec.js +179 -1
  132. package/lib/src/embed/hostEventClient/utils.spec.js.map +1 -1
  133. package/lib/src/embed/liveboard.d.ts +6 -0
  134. package/lib/src/embed/liveboard.d.ts.map +1 -1
  135. package/lib/src/embed/liveboard.js.map +1 -1
  136. package/lib/src/embed/spotter-viz-utils.d.ts +34 -0
  137. package/lib/src/embed/spotter-viz-utils.d.ts.map +1 -1
  138. package/lib/src/embed/spotter-viz-utils.js.map +1 -1
  139. package/lib/src/embed/spotter-viz-utils.spec.js +17 -0
  140. package/lib/src/embed/spotter-viz-utils.spec.js.map +1 -1
  141. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  142. package/lib/src/embed/ts-embed.js +14 -7
  143. package/lib/src/embed/ts-embed.js.map +1 -1
  144. package/lib/src/embed/ts-embed.spec.js +146 -0
  145. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  146. package/lib/src/errors.d.ts +1 -0
  147. package/lib/src/errors.d.ts.map +1 -1
  148. package/lib/src/errors.js +1 -0
  149. package/lib/src/errors.js.map +1 -1
  150. package/lib/src/index.d.ts +2 -2
  151. package/lib/src/index.d.ts.map +1 -1
  152. package/lib/src/index.js +2 -2
  153. package/lib/src/index.js.map +1 -1
  154. package/lib/src/react/util.spec.js +251 -0
  155. package/lib/src/react/util.spec.js.map +1 -1
  156. package/lib/src/types.d.ts +119 -2
  157. package/lib/src/types.d.ts.map +1 -1
  158. package/lib/src/types.js +97 -0
  159. package/lib/src/types.js.map +1 -1
  160. package/lib/src/utils/processData.spec.js +93 -0
  161. package/lib/src/utils/processData.spec.js.map +1 -1
  162. package/lib/src/utils/processTrigger.spec.js +61 -0
  163. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  164. package/lib/src/visual-embed-sdk.d.ts +306 -17
  165. package/package.json +1 -1
  166. package/src/css-variables.ts +73 -0
  167. package/src/embed/app.spec.ts +140 -0
  168. package/src/embed/app.ts +38 -2
  169. package/src/embed/conversation.spec.ts +32 -1
  170. package/src/embed/conversation.ts +29 -0
  171. package/src/embed/events.spec.ts +705 -1
  172. package/src/embed/host-events.spec.ts +124 -0
  173. package/src/embed/hostEventClient/contracts.ts +41 -14
  174. package/src/embed/hostEventClient/host-event-client.spec.ts +326 -0
  175. package/src/embed/hostEventClient/host-event-client.ts +15 -0
  176. package/src/embed/hostEventClient/utils.spec.ts +204 -0
  177. package/src/embed/hostEventClient/utils.ts +37 -10
  178. package/src/embed/liveboard.ts +6 -0
  179. package/src/embed/spotter-viz-utils.spec.ts +17 -0
  180. package/src/embed/spotter-viz-utils.ts +34 -0
  181. package/src/embed/ts-embed.spec.ts +186 -0
  182. package/src/embed/ts-embed.ts +12 -4
  183. package/src/errors.ts +1 -0
  184. package/src/index.ts +2 -1
  185. package/src/react/util.spec.tsx +255 -0
  186. package/src/types.ts +119 -0
  187. package/src/utils/processData.spec.ts +97 -0
  188. package/src/utils/processTrigger.spec.ts +91 -0
@@ -413,6 +413,14 @@ export interface CustomCssVariables {
413
413
  * Background color of the tiles in the Liveboard.
414
414
  */
415
415
  "--ts-var-liveboard-tile-background"?: string;
416
+ /**
417
+ * Font color of the insight tiles in the Liveboard.
418
+ */
419
+ "--ts-var-liveboard-insight-tile-font-color"?: string;
420
+ /**
421
+ * Background color of the insight tiles in the Liveboard.
422
+ */
423
+ "--ts-var-liveboard-insight-tile-background"?: string;
416
424
  /**
417
425
  * Border radius of the tiles in the Liveboard.
418
426
  */
@@ -961,6 +969,10 @@ export interface CustomCssVariables {
961
969
  * header underline, left panel border, thinking step connector and dots.
962
970
  */
963
971
  "--ts-var-spotterviz-border-color"?: string;
972
+ /**
973
+ * Expanded user chat message bubble border color in SpotterViz.
974
+ */
975
+ "--ts-var-spotterviz-expanded-border-color"?: string;
964
976
  /**
965
977
  * Background color of the reference-mode toggle button in the SpotterViz
966
978
  * chat input when it is unselected and the user hovers over it.
@@ -978,6 +990,53 @@ export interface CustomCssVariables {
978
990
  * on each referenced-entity chip in the chat input.
979
991
  */
980
992
  "--ts-var-spotterviz-reference-icon-selected-background"?: string;
993
+ /**
994
+ * Background color of the shared conversation header (recipient's read-only view).
995
+ */
996
+ "--ts-var-shared-conv-header-background"?: string;
997
+ /**
998
+ * Border color of the shared conversation header.
999
+ */
1000
+ "--ts-var-shared-conv-header-border-color"?: string;
1001
+ /**
1002
+ * Font color of the title text in the shared conversation header.
1003
+ */
1004
+ "--ts-var-shared-conv-title-color"?: string;
1005
+ /**
1006
+ * Background gradient color-stop of the share chat header's outer container
1007
+ * (sender's pre-share header). Defaults to transparent.
1008
+ */
1009
+ "--ts-var-share-chat-header-container-background"?: string;
1010
+ /**
1011
+ * Background color of the share chat header's inner title/actions row.
1012
+ * Defaults to transparent.
1013
+ */
1014
+ "--ts-var-share-chat-header-background"?: string;
1015
+ /**
1016
+ * Font color of the title text in the share chat header.
1017
+ */
1018
+ "--ts-var-share-chat-header-title-color"?: string;
1019
+ /**
1020
+ * Font color of the title input field in the share chat header.
1021
+ */
1022
+ "--ts-var-share-chat-header-input-text-color"?: string;
1023
+ /**
1024
+ * Background color of the title input field in the share chat header.
1025
+ */
1026
+ "--ts-var-share-chat-header-input-background"?: string;
1027
+ /**
1028
+ * Border color of the title input field in the share chat header.
1029
+ */
1030
+ "--ts-var-share-chat-header-input-border-color"?: string;
1031
+ /**
1032
+ * Background color of the shimmer loading effect. Also affects the
1033
+ * saved chats sidebar's new-chat shimmer, which shares the same style.
1034
+ */
1035
+ "--ts-var-shimmer-background"?: string;
1036
+ /**
1037
+ * Background color of the shimmer sweep animation's gradient mid-stop.
1038
+ */
1039
+ "--ts-var-shimmer-sweep-background"?: string;
981
1040
  }
982
1041
  export interface SessionInterface {
983
1042
  sessionId: string;
@@ -1351,7 +1410,14 @@ export declare enum HomeLeftNavItem {
1351
1410
  * Available in the V3 navigation experience.
1352
1411
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1353
1412
  */
1354
- Favorites = "favorites"
1413
+ Favorites = "favorites",
1414
+ /**
1415
+ * The *Collections* menu option in
1416
+ * the *Insights* left navigation panel.
1417
+ * Shown when collections are enabled on the cluster.
1418
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
1419
+ */
1420
+ Collections = "collections"
1355
1421
  }
1356
1422
  export type DOMSelector = string | HTMLElement;
1357
1423
  /**
@@ -2298,6 +2364,26 @@ export interface BaseViewConfig extends ApiInterceptFlags {
2298
2364
  * ```
2299
2365
  */
2300
2366
  overrideOrgId?: number;
2367
+ /**
2368
+ * Overrides the browser history behavior for embedding application users.
2369
+ * This parameter changes standard history navigation (pushState) into a
2370
+ * state replacement (replaceState), preventing users from getting trapped in
2371
+ * back-button loops inside the embedded iframe environment.
2372
+ * The overrideHistoryState setting is honored only if the
2373
+ * application is running within an embedded context.
2374
+ *
2375
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
2376
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
2377
+ * @example
2378
+ * ```js
2379
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
2380
+ * const embed = new <EmbedComponent>('#tsEmbed', {
2381
+ * // ... other embed view config
2382
+ * overrideHistoryState: true,
2383
+ * });
2384
+ * ```
2385
+ */
2386
+ overrideHistoryState?: boolean;
2301
2387
  /**
2302
2388
  * Flag to override the *Open Link in New Tab* context
2303
2389
  * menu option.
@@ -4743,6 +4829,30 @@ export declare enum EmbedEvent {
4743
4829
  * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4744
4830
  */
4745
4831
  SpotterConversationSelected = "spotterConversationSelected",
4832
+ /**
4833
+ * Emitted when the Spotter agent finishes streaming/rendering a response.
4834
+ * Includes the conversation and message identifiers so the host app can
4835
+ * fetch the full conversation history via the REST API if needed.
4836
+ *
4837
+ * The payload data has the shape `{ convId: string, messageId: string }`.
4838
+ *
4839
+ * Works with SpotterEmbed as well as AppEmbed (when Spotter is reached
4840
+ * inside the full application).
4841
+ * @example
4842
+ * ```js
4843
+ * spotterEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
4844
+ * console.log('Spotter response complete', payload);
4845
+ * })
4846
+ * ```
4847
+ * @example
4848
+ * ```js
4849
+ * appEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
4850
+ * console.log('Spotter response complete', payload);
4851
+ * })
4852
+ * ```
4853
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.9.0.cl
4854
+ */
4855
+ SpotterResponseComplete = "spotterResponseComplete",
4746
4856
  /**
4747
4857
  * @hidden
4748
4858
  * Emitted when the auth token is about to get expired and needs to be refreshed.
@@ -6306,6 +6416,14 @@ export declare enum HostEvent {
6306
6416
  /**
6307
6417
  * Get details of filters applied on the Liveboard.
6308
6418
  * Returns arrays containing Liveboard filter and runtime filter elements.
6419
+ * Each Liveboard filter may include an `applicability` attribute
6420
+ * indicating the scope of the filter. It contains a `level`
6421
+ * (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
6422
+ * `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
6423
+ * level there is no `targetId`, since the filter applies to the
6424
+ * whole Liveboard.
6425
+ * The `applicability` attribute is available from SDK: 1.51.0 |
6426
+ * ThoughtSpot: 26.10.0.cl.
6309
6427
  * @example
6310
6428
  * ```js
6311
6429
  * const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
@@ -6345,6 +6463,16 @@ export declare enum HostEvent {
6345
6463
  *
6346
6464
  * `type` - To update filters for date time, specify the date format type.
6347
6465
  * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
6466
+ *
6467
+ * `applicability` - Optional. Scopes the filter to a specific target,
6468
+ * for example, a single Liveboard tab. Available from SDK: 1.51.0 |
6469
+ * ThoughtSpot: 26.10.0.cl. Includes the following attributes:
6470
+ *
6471
+ * - `level`: The scope of the filter: `LIVEBOARD`, `TAB`, or `GROUP`.
6472
+ * - `targetId`: The GUID of the target, for example, the tab GUID.
6473
+ * Required when `level` is `TAB` or `GROUP`. Do not pass it when
6474
+ * `level` is `LIVEBOARD`, since the filter applies to the whole
6475
+ * Liveboard.
6348
6476
  * @example
6349
6477
  * ```js
6350
6478
  *
@@ -6421,6 +6549,21 @@ export declare enum HostEvent {
6421
6549
  * }
6422
6550
  * }, ContextType.Liveboard);
6423
6551
  * ```
6552
+ * @example
6553
+ * ```js
6554
+ * // Scope the filter to a specific Liveboard tab
6555
+ * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
6556
+ * filter: {
6557
+ * column: "item type",
6558
+ * oper: "IN",
6559
+ * values: ["bags", "shirts"],
6560
+ * applicability: {
6561
+ * level: "TAB",
6562
+ * targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
6563
+ * }
6564
+ * }
6565
+ * });
6566
+ * ```
6424
6567
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
6425
6568
  */
6426
6569
  UpdateFilters = "updateFilters",
@@ -6572,6 +6715,15 @@ export declare enum HostEvent {
6572
6715
  * - `name`: Name of the parameter.
6573
6716
  * - `value`: The value to set for the parameter.
6574
6717
  * - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
6718
+ * - `applicability`: Optional. Scopes the parameter to a specific target,
6719
+ * for example, a single Liveboard tab. Available from SDK: 1.51.0 |
6720
+ * ThoughtSpot: 26.10.0.cl. Includes the following attributes:
6721
+ *
6722
+ * - `level`: The scope of the parameter: `LIVEBOARD`, `TAB`, or `GROUP`.
6723
+ * - `targetId`: The GUID of the target, for example, the tab GUID.
6724
+ * Required when `level` is `TAB` or `GROUP`. Do not pass it when
6725
+ * `level` is `LIVEBOARD`, since the parameter applies to the whole
6726
+ * Liveboard.
6575
6727
  *
6576
6728
  * @example
6577
6729
  * ```js
@@ -6583,6 +6735,18 @@ export declare enum HostEvent {
6583
6735
  * ```
6584
6736
  * @example
6585
6737
  * ```js
6738
+ * // Scope the parameter to a specific Liveboard tab
6739
+ * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
6740
+ * name: "Integer Range Param",
6741
+ * value: 10,
6742
+ * applicability: {
6743
+ * level: "TAB",
6744
+ * targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
6745
+ * }
6746
+ * }])
6747
+ * ```
6748
+ * @example
6749
+ * ```js
6586
6750
  * // Update parameters from liveboard context
6587
6751
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
6588
6752
  * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
@@ -6596,6 +6760,14 @@ export declare enum HostEvent {
6596
6760
  UpdateParameters = "UpdateParameters",
6597
6761
  /**
6598
6762
  * Triggers GetParameters to fetch the runtime Parameters.
6763
+ * Each parameter may include an `applicability` attribute
6764
+ * indicating the scope of the parameter. It contains a `level`
6765
+ * (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
6766
+ * `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
6767
+ * level there is no `targetId`, since the parameter applies to the
6768
+ * whole Liveboard.
6769
+ * The `applicability` attribute is available from SDK: 1.51.0 |
6770
+ * ThoughtSpot: 26.10.0.cl.
6599
6771
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
6600
6772
  * ```js
6601
6773
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
@@ -9079,7 +9251,9 @@ declare enum EmbedErrorCodes {
9079
9251
  /** UpdateFilters payload is invalid - missing or malformed filter/filters */
9080
9252
  UPDATEFILTERS_INVALID_PAYLOAD = "UPDATEFILTERS_INVALID_PAYLOAD",
9081
9253
  /** DrillDown payload is invalid - missing or malformed points */
9082
- DRILLDOWN_INVALID_PAYLOAD = "DRILLDOWN_INVALID_PAYLOAD"
9254
+ DRILLDOWN_INVALID_PAYLOAD = "DRILLDOWN_INVALID_PAYLOAD",
9255
+ /** UpdateParameters payload is invalid - malformed applicability */
9256
+ UPDATEPARAMETERS_INVALID_PAYLOAD = "UPDATEPARAMETERS_INVALID_PAYLOAD"
9083
9257
  }
9084
9258
  /**
9085
9259
  * Error event object emitted when an error occurs in an embedded component.
@@ -9826,6 +10000,35 @@ export interface LiveboardTab {
9826
10000
  name: string;
9827
10001
  [key: string]: any;
9828
10002
  }
10003
+ declare enum ApplicabilityLevel {
10004
+ Liveboard = "LIVEBOARD",
10005
+ Tab = "TAB",
10006
+ Group = "GROUP"
10007
+ }
10008
+ /**
10009
+ * Scopes a filter or parameter to a specific target.
10010
+ * At `LIVEBOARD` level the filter applies to the whole Liveboard, so `targetId`
10011
+ * is not required.
10012
+ */
10013
+ export interface Applicability {
10014
+ level: ApplicabilityLevel;
10015
+ targetId?: string;
10016
+ }
10017
+ export interface FilterUpdate {
10018
+ column: string;
10019
+ oper: string;
10020
+ values: string[];
10021
+ type?: string;
10022
+ applicability?: Applicability;
10023
+ }
10024
+ export interface LiveboardFilter {
10025
+ applicability?: Applicability;
10026
+ [key: string]: any;
10027
+ }
10028
+ export interface LiveboardParameter {
10029
+ applicability?: Applicability;
10030
+ [key: string]: any;
10031
+ }
9829
10032
  declare enum UIPassthroughEvent {
9830
10033
  PinAnswerToLiveboard = "addVizToPinboard",
9831
10034
  SaveAnswer = "saveAnswer",
@@ -9920,7 +10123,7 @@ export type UIPassthroughContractBase = {
9920
10123
  vizId?: string;
9921
10124
  };
9922
10125
  response: {
9923
- liveboardFilters: Record<string, any>[];
10126
+ liveboardFilters: LiveboardFilter[];
9924
10127
  runtimeFilters: RuntimeFilter[];
9925
10128
  };
9926
10129
  };
@@ -9933,7 +10136,7 @@ export type UIPassthroughContractBase = {
9933
10136
  [UIPassthroughEvent.GetParameters]: {
9934
10137
  request: Record<string, never>;
9935
10138
  response: {
9936
- parameters: Record<string, any>[];
10139
+ parameters: LiveboardParameter[];
9937
10140
  };
9938
10141
  };
9939
10142
  [UIPassthroughEvent.GetTML]: {
@@ -9962,18 +10165,8 @@ export type UIPassthroughContractBase = {
9962
10165
  };
9963
10166
  [UIPassthroughEvent.UpdateFilters]: {
9964
10167
  request: {
9965
- filter?: {
9966
- column: string;
9967
- oper: string;
9968
- values: string[];
9969
- type?: string;
9970
- };
9971
- filters?: {
9972
- column: string;
9973
- oper: string;
9974
- values: string[];
9975
- type?: string;
9976
- }[];
10168
+ filter?: FilterUpdate;
10169
+ filters?: FilterUpdate[];
9977
10170
  };
9978
10171
  response: unknown;
9979
10172
  };
@@ -10050,6 +10243,7 @@ declare class HostEventClient {
10050
10243
  protected handlePinEvent(payload: HostEventRequest<HostEvent.Pin>, context?: ContextType): Promise<HostEventResponse<HostEvent.Pin, ContextType>>;
10051
10244
  protected handleSaveAnswerEvent(payload: HostEventRequest<HostEvent.SaveAnswer>, context?: ContextType): Promise<any>;
10052
10245
  protected handleUpdateFiltersEvent(payload: HostEventRequest<HostEvent.UpdateFilters>, context?: ContextType): Promise<any>;
10246
+ protected handleUpdateParametersEvent(payload: HostEventRequest<HostEvent.UpdateParameters>, context?: ContextType): Promise<any>;
10053
10247
  protected handleDrillDownEvent(payload: HostEventRequest<HostEvent.DrillDown>, context?: ContextType): Promise<any>;
10054
10248
  /**
10055
10249
  * Dispatches a host event using the appropriate channel:
@@ -11106,6 +11300,10 @@ interface SearchOptions$1 {
11106
11300
  */
11107
11301
  searchQuery: string;
11108
11302
  }
11303
+ declare enum SpotterQueryMode {
11304
+ FAST_SEARCH = "fastSearch",
11305
+ RESEARCH = "research"
11306
+ }
11109
11307
  /**
11110
11308
  * Configuration for the Spotter sidebar.
11111
11309
  * Can be used in SpotterEmbed and AppEmbed.
@@ -11408,6 +11606,24 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
11408
11606
  * ```
11409
11607
  */
11410
11608
  updatedSpotterChatPrompt?: boolean;
11609
+ /**
11610
+ * Sets the default query mode when Spotter loads — Fast Search or
11611
+ * Research Mode. Applies fresh on every new session for this embed
11612
+ * instance only; it does not persist as a user preference and does
11613
+ * not affect other embeds or native ThoughtSpot usage.
11614
+ *
11615
+ * Supported embed types: `SpotterEmbed`, `AppEmbed`
11616
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11617
+ * @default SpotterQueryMode.FAST_SEARCH
11618
+ * @example
11619
+ * ```js
11620
+ * const embed = new SpotterEmbed('#tsEmbed', {
11621
+ * ... //other embed view config
11622
+ * defaultQueryMode: SpotterQueryMode.RESEARCH,
11623
+ * })
11624
+ * ```
11625
+ */
11626
+ defaultQueryMode?: SpotterQueryMode;
11411
11627
  /**
11412
11628
  * Enables the stop answer generation button in the Spotter embed UI,
11413
11629
  * allowing users to interrupt an ongoing answer generation.
@@ -11546,6 +11762,12 @@ export interface SpotterVizStarterPrompt {
11546
11762
  * { label: 'Tip', text: 'try asking about revenue by region' },
11547
11763
  * { label: 'Tip', text: 'use natural language' },
11548
11764
  * ],
11765
+ * // liveboardBrandName, spotterBrandName, insightTileBrandName, insightTileViewPlanLabel and insightTileLoaderText require SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11766
+ * liveboardBrandName: 'Reports',
11767
+ * spotterBrandName: 'Analyst',
11768
+ * insightTileBrandName: 'Insight card',
11769
+ * insightTileViewPlanLabel: 'View plan',
11770
+ * insightTileLoaderText: 'Generating insight',
11549
11771
  * },
11550
11772
  * })
11551
11773
  * ```
@@ -11602,6 +11824,34 @@ export interface SpotterVizConfig {
11602
11824
  * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
11603
11825
  */
11604
11826
  loaderTips?: SpotterVizLoaderTip[];
11827
+ /**
11828
+ * Custom term used to replace "Liveboard" in the agent's responses.
11829
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11830
+ * @default ''
11831
+ */
11832
+ liveboardBrandName?: string;
11833
+ /**
11834
+ * Custom term used to replace "Spotter" in the agent's responses.
11835
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11836
+ * @default ''
11837
+ */
11838
+ spotterBrandName?: string;
11839
+ /**
11840
+ * Custom term used to replace "Insight tile" in the UI and in the agent's responses.
11841
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11842
+ * @default ''
11843
+ */
11844
+ insightTileBrandName?: string;
11845
+ /**
11846
+ * Custom term used to replace "View plan" in the insight tile menu.
11847
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11848
+ */
11849
+ insightTileViewPlanLabel?: string;
11850
+ /**
11851
+ * Custom loader text shown on the insight tile.
11852
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11853
+ */
11854
+ insightTileLoaderText?: string;
11605
11855
  }
11606
11856
  /**
11607
11857
  * A single tip shown in the SpotterViz loading state.
@@ -11649,7 +11899,11 @@ export declare enum Page {
11649
11899
  /**
11650
11900
  * Monitor Alerts Page
11651
11901
  */
11652
- Monitor = "monitor"
11902
+ Monitor = "monitor",
11903
+ /**
11904
+ * Collections listing page
11905
+ */
11906
+ Collections = "collections"
11653
11907
  }
11654
11908
  declare enum DataPanelCustomColumnGroupsAccordionState$1 {
11655
11909
  /**
@@ -12288,6 +12542,25 @@ export interface AppViewConfig extends AllEmbedViewConfig {
12288
12542
  * ```
12289
12543
  */
12290
12544
  updatedSpotterChatPrompt?: boolean;
12545
+ /**
12546
+ * Sets the default query mode when Spotter loads — Fast Search or
12547
+ * Research Mode. Applies fresh on every new session for this embed
12548
+ * instance only; it does not persist as a user preference and does
12549
+ * not affect other embeds or native ThoughtSpot usage.
12550
+ * Only applicable when navigating to Spotter within the app.
12551
+ *
12552
+ * Supported embed types: `AppEmbed`
12553
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
12554
+ * @default SpotterQueryMode.FAST_SEARCH
12555
+ * @example
12556
+ * ```js
12557
+ * const embed = new AppEmbed('#tsEmbed', {
12558
+ * ... //other embed view config
12559
+ * defaultQueryMode: SpotterQueryMode.RESEARCH,
12560
+ * })
12561
+ * ```
12562
+ */
12563
+ defaultQueryMode?: SpotterQueryMode;
12291
12564
  /**
12292
12565
  * Controls the visibility of the past conversations sidebar.
12293
12566
  *
@@ -12360,6 +12633,12 @@ export interface AppViewConfig extends AllEmbedViewConfig {
12360
12633
  * { label: 'Tip', text: 'try asking about revenue by region' },
12361
12634
  * { label: 'Tip', text: 'use natural language' },
12362
12635
  * ],
12636
+ * // liveboardBrandName, spotterBrandName, insightTileBrandName, insightTileViewPlanLabel and insightTileLoaderText require SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
12637
+ * liveboardBrandName: 'Reports',
12638
+ * spotterBrandName: 'Analyst',
12639
+ * insightTileBrandName: 'Insight card',
12640
+ * insightTileViewPlanLabel: 'View plan',
12641
+ * insightTileLoaderText: 'Generating insight',
12363
12642
  * },
12364
12643
  * })
12365
12644
  * ```
@@ -13062,6 +13341,12 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
13062
13341
  * { label: 'Tip', text: 'try asking about revenue by region' },
13063
13342
  * { label: 'Tip', text: 'use natural language' },
13064
13343
  * ],
13344
+ * // liveboardBrandName, spotterBrandName, insightTileBrandName, insightTileViewPlanLabel and insightTileLoaderText require SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
13345
+ * liveboardBrandName: 'Reports',
13346
+ * spotterBrandName: 'Analyst',
13347
+ * insightTileBrandName: 'Insight card',
13348
+ * insightTileViewPlanLabel: 'View plan',
13349
+ * insightTileLoaderText: 'Generating insight',
13065
13350
  * },
13066
13351
  * })
13067
13352
  * ```