@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 @@ 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.
@@ -4730,6 +4816,30 @@ export declare enum EmbedEvent {
4730
4816
  * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4731
4817
  */
4732
4818
  SpotterConversationSelected = "spotterConversationSelected",
4819
+ /**
4820
+ * Emitted when the Spotter agent finishes streaming/rendering a response.
4821
+ * Includes the conversation and message identifiers so the host app can
4822
+ * fetch the full conversation history via the REST API if needed.
4823
+ *
4824
+ * The payload data has the shape `{ convId: string, messageId: string }`.
4825
+ *
4826
+ * Works with SpotterEmbed as well as AppEmbed (when Spotter is reached
4827
+ * inside the full application).
4828
+ * @example
4829
+ * ```js
4830
+ * spotterEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
4831
+ * console.log('Spotter response complete', payload);
4832
+ * })
4833
+ * ```
4834
+ * @example
4835
+ * ```js
4836
+ * appEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
4837
+ * console.log('Spotter response complete', payload);
4838
+ * })
4839
+ * ```
4840
+ * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.9.0.cl
4841
+ */
4842
+ SpotterResponseComplete = "spotterResponseComplete",
4733
4843
  /**
4734
4844
  * @hidden
4735
4845
  * Emitted when the auth token is about to get expired and needs to be refreshed.
@@ -6293,6 +6403,14 @@ export declare enum HostEvent {
6293
6403
  /**
6294
6404
  * Get details of filters applied on the Liveboard.
6295
6405
  * Returns arrays containing Liveboard filter and runtime filter elements.
6406
+ * Each Liveboard filter may include an `applicability` attribute
6407
+ * indicating the scope of the filter. It contains a `level`
6408
+ * (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
6409
+ * `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
6410
+ * level there is no `targetId`, since the filter applies to the
6411
+ * whole Liveboard.
6412
+ * The `applicability` attribute is available from SDK: 1.51.0 |
6413
+ * ThoughtSpot: 26.10.0.cl.
6296
6414
  * @example
6297
6415
  * ```js
6298
6416
  * const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
@@ -6332,6 +6450,16 @@ export declare enum HostEvent {
6332
6450
  *
6333
6451
  * `type` - To update filters for date time, specify the date format type.
6334
6452
  * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
6453
+ *
6454
+ * `applicability` - Optional. Scopes the filter to a specific target,
6455
+ * for example, a single Liveboard tab. Available from SDK: 1.51.0 |
6456
+ * ThoughtSpot: 26.10.0.cl. Includes the following attributes:
6457
+ *
6458
+ * - `level`: The scope of the filter: `LIVEBOARD`, `TAB`, or `GROUP`.
6459
+ * - `targetId`: The GUID of the target, for example, the tab GUID.
6460
+ * Required when `level` is `TAB` or `GROUP`. Do not pass it when
6461
+ * `level` is `LIVEBOARD`, since the filter applies to the whole
6462
+ * Liveboard.
6335
6463
  * @example
6336
6464
  * ```js
6337
6465
  *
@@ -6408,6 +6536,21 @@ export declare enum HostEvent {
6408
6536
  * }
6409
6537
  * }, ContextType.Liveboard);
6410
6538
  * ```
6539
+ * @example
6540
+ * ```js
6541
+ * // Scope the filter to a specific Liveboard tab
6542
+ * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
6543
+ * filter: {
6544
+ * column: "item type",
6545
+ * oper: "IN",
6546
+ * values: ["bags", "shirts"],
6547
+ * applicability: {
6548
+ * level: "TAB",
6549
+ * targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
6550
+ * }
6551
+ * }
6552
+ * });
6553
+ * ```
6411
6554
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
6412
6555
  */
6413
6556
  UpdateFilters = "updateFilters",
@@ -6559,6 +6702,15 @@ export declare enum HostEvent {
6559
6702
  * - `name`: Name of the parameter.
6560
6703
  * - `value`: The value to set for the parameter.
6561
6704
  * - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
6705
+ * - `applicability`: Optional. Scopes the parameter to a specific target,
6706
+ * for example, a single Liveboard tab. Available from SDK: 1.51.0 |
6707
+ * ThoughtSpot: 26.10.0.cl. Includes the following attributes:
6708
+ *
6709
+ * - `level`: The scope of the parameter: `LIVEBOARD`, `TAB`, or `GROUP`.
6710
+ * - `targetId`: The GUID of the target, for example, the tab GUID.
6711
+ * Required when `level` is `TAB` or `GROUP`. Do not pass it when
6712
+ * `level` is `LIVEBOARD`, since the parameter applies to the whole
6713
+ * Liveboard.
6562
6714
  *
6563
6715
  * @example
6564
6716
  * ```js
@@ -6570,6 +6722,18 @@ export declare enum HostEvent {
6570
6722
  * ```
6571
6723
  * @example
6572
6724
  * ```js
6725
+ * // Scope the parameter to a specific Liveboard tab
6726
+ * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
6727
+ * name: "Integer Range Param",
6728
+ * value: 10,
6729
+ * applicability: {
6730
+ * level: "TAB",
6731
+ * targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
6732
+ * }
6733
+ * }])
6734
+ * ```
6735
+ * @example
6736
+ * ```js
6573
6737
  * // Update parameters from liveboard context
6574
6738
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
6575
6739
  * liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
@@ -6583,6 +6747,14 @@ export declare enum HostEvent {
6583
6747
  UpdateParameters = "UpdateParameters",
6584
6748
  /**
6585
6749
  * Triggers GetParameters to fetch the runtime Parameters.
6750
+ * Each parameter may include an `applicability` attribute
6751
+ * indicating the scope of the parameter. It contains a `level`
6752
+ * (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
6753
+ * `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
6754
+ * level there is no `targetId`, since the parameter applies to the
6755
+ * whole Liveboard.
6756
+ * The `applicability` attribute is available from SDK: 1.51.0 |
6757
+ * ThoughtSpot: 26.10.0.cl.
6586
6758
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
6587
6759
  * ```js
6588
6760
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
@@ -9090,7 +9262,9 @@ declare enum EmbedErrorCodes {
9090
9262
  /** UpdateFilters payload is invalid - missing or malformed filter/filters */
9091
9263
  UPDATEFILTERS_INVALID_PAYLOAD = "UPDATEFILTERS_INVALID_PAYLOAD",
9092
9264
  /** DrillDown payload is invalid - missing or malformed points */
9093
- DRILLDOWN_INVALID_PAYLOAD = "DRILLDOWN_INVALID_PAYLOAD"
9265
+ DRILLDOWN_INVALID_PAYLOAD = "DRILLDOWN_INVALID_PAYLOAD",
9266
+ /** UpdateParameters payload is invalid - malformed applicability */
9267
+ UPDATEPARAMETERS_INVALID_PAYLOAD = "UPDATEPARAMETERS_INVALID_PAYLOAD"
9094
9268
  }
9095
9269
  /**
9096
9270
  * Error event object emitted when an error occurs in an embedded component.
@@ -9853,6 +10027,35 @@ export interface LiveboardTab {
9853
10027
  name: string;
9854
10028
  [key: string]: any;
9855
10029
  }
10030
+ declare enum ApplicabilityLevel {
10031
+ Liveboard = "LIVEBOARD",
10032
+ Tab = "TAB",
10033
+ Group = "GROUP"
10034
+ }
10035
+ /**
10036
+ * Scopes a filter or parameter to a specific target.
10037
+ * At `LIVEBOARD` level the filter applies to the whole Liveboard, so `targetId`
10038
+ * is not required.
10039
+ */
10040
+ export interface Applicability {
10041
+ level: ApplicabilityLevel;
10042
+ targetId?: string;
10043
+ }
10044
+ export interface FilterUpdate {
10045
+ column: string;
10046
+ oper: string;
10047
+ values: string[];
10048
+ type?: string;
10049
+ applicability?: Applicability;
10050
+ }
10051
+ export interface LiveboardFilter {
10052
+ applicability?: Applicability;
10053
+ [key: string]: any;
10054
+ }
10055
+ export interface LiveboardParameter {
10056
+ applicability?: Applicability;
10057
+ [key: string]: any;
10058
+ }
9856
10059
  export declare enum UIPassthroughEvent {
9857
10060
  PinAnswerToLiveboard = "addVizToPinboard",
9858
10061
  SaveAnswer = "saveAnswer",
@@ -9947,7 +10150,7 @@ export type UIPassthroughContractBase = {
9947
10150
  vizId?: string;
9948
10151
  };
9949
10152
  response: {
9950
- liveboardFilters: Record<string, any>[];
10153
+ liveboardFilters: LiveboardFilter[];
9951
10154
  runtimeFilters: RuntimeFilter[];
9952
10155
  };
9953
10156
  };
@@ -9960,7 +10163,7 @@ export type UIPassthroughContractBase = {
9960
10163
  [UIPassthroughEvent.GetParameters]: {
9961
10164
  request: Record<string, never>;
9962
10165
  response: {
9963
- parameters: Record<string, any>[];
10166
+ parameters: LiveboardParameter[];
9964
10167
  };
9965
10168
  };
9966
10169
  [UIPassthroughEvent.GetTML]: {
@@ -9989,18 +10192,8 @@ export type UIPassthroughContractBase = {
9989
10192
  };
9990
10193
  [UIPassthroughEvent.UpdateFilters]: {
9991
10194
  request: {
9992
- filter?: {
9993
- column: string;
9994
- oper: string;
9995
- values: string[];
9996
- type?: string;
9997
- };
9998
- filters?: {
9999
- column: string;
10000
- oper: string;
10001
- values: string[];
10002
- type?: string;
10003
- }[];
10195
+ filter?: FilterUpdate;
10196
+ filters?: FilterUpdate[];
10004
10197
  };
10005
10198
  response: unknown;
10006
10199
  };
@@ -10077,6 +10270,7 @@ declare class HostEventClient {
10077
10270
  protected handlePinEvent(payload: HostEventRequest<HostEvent.Pin>, context?: ContextType): Promise<HostEventResponse<HostEvent.Pin, ContextType>>;
10078
10271
  protected handleSaveAnswerEvent(payload: HostEventRequest<HostEvent.SaveAnswer>, context?: ContextType): Promise<any>;
10079
10272
  protected handleUpdateFiltersEvent(payload: HostEventRequest<HostEvent.UpdateFilters>, context?: ContextType): Promise<any>;
10273
+ protected handleUpdateParametersEvent(payload: HostEventRequest<HostEvent.UpdateParameters>, context?: ContextType): Promise<any>;
10080
10274
  protected handleDrillDownEvent(payload: HostEventRequest<HostEvent.DrillDown>, context?: ContextType): Promise<any>;
10081
10275
  /**
10082
10276
  * Dispatches a host event using the appropriate channel:
@@ -11133,6 +11327,10 @@ interface SearchOptions$1 {
11133
11327
  */
11134
11328
  searchQuery: string;
11135
11329
  }
11330
+ declare enum SpotterQueryMode {
11331
+ FAST_SEARCH = "fastSearch",
11332
+ RESEARCH = "research"
11333
+ }
11136
11334
  /**
11137
11335
  * Configuration for the Spotter sidebar.
11138
11336
  * Can be used in SpotterEmbed and AppEmbed.
@@ -11435,6 +11633,24 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
11435
11633
  * ```
11436
11634
  */
11437
11635
  updatedSpotterChatPrompt?: boolean;
11636
+ /**
11637
+ * Sets the default query mode when Spotter loads — Fast Search or
11638
+ * Research Mode. Applies fresh on every new session for this embed
11639
+ * instance only; it does not persist as a user preference and does
11640
+ * not affect other embeds or native ThoughtSpot usage.
11641
+ *
11642
+ * Supported embed types: `SpotterEmbed`, `AppEmbed`
11643
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11644
+ * @default SpotterQueryMode.FAST_SEARCH
11645
+ * @example
11646
+ * ```js
11647
+ * const embed = new SpotterEmbed('#tsEmbed', {
11648
+ * ... //other embed view config
11649
+ * defaultQueryMode: SpotterQueryMode.RESEARCH,
11650
+ * })
11651
+ * ```
11652
+ */
11653
+ defaultQueryMode?: SpotterQueryMode;
11438
11654
  /**
11439
11655
  * Enables the stop answer generation button in the Spotter embed UI,
11440
11656
  * allowing users to interrupt an ongoing answer generation.
@@ -11573,6 +11789,12 @@ export interface SpotterVizStarterPrompt {
11573
11789
  * { label: 'Tip', text: 'try asking about revenue by region' },
11574
11790
  * { label: 'Tip', text: 'use natural language' },
11575
11791
  * ],
11792
+ * // liveboardBrandName, spotterBrandName, insightTileBrandName, insightTileViewPlanLabel and insightTileLoaderText require SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11793
+ * liveboardBrandName: 'Reports',
11794
+ * spotterBrandName: 'Analyst',
11795
+ * insightTileBrandName: 'Insight card',
11796
+ * insightTileViewPlanLabel: 'View plan',
11797
+ * insightTileLoaderText: 'Generating insight',
11576
11798
  * },
11577
11799
  * })
11578
11800
  * ```
@@ -11629,6 +11851,34 @@ export interface SpotterVizConfig {
11629
11851
  * @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
11630
11852
  */
11631
11853
  loaderTips?: SpotterVizLoaderTip[];
11854
+ /**
11855
+ * Custom term used to replace "Liveboard" in the agent's responses.
11856
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11857
+ * @default ''
11858
+ */
11859
+ liveboardBrandName?: string;
11860
+ /**
11861
+ * Custom term used to replace "Spotter" in the agent's responses.
11862
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11863
+ * @default ''
11864
+ */
11865
+ spotterBrandName?: string;
11866
+ /**
11867
+ * Custom term used to replace "Insight tile" in the UI and in the agent's responses.
11868
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11869
+ * @default ''
11870
+ */
11871
+ insightTileBrandName?: string;
11872
+ /**
11873
+ * Custom term used to replace "View plan" in the insight tile menu.
11874
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11875
+ */
11876
+ insightTileViewPlanLabel?: string;
11877
+ /**
11878
+ * Custom loader text shown on the insight tile.
11879
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
11880
+ */
11881
+ insightTileLoaderText?: string;
11632
11882
  }
11633
11883
  /**
11634
11884
  * A single tip shown in the SpotterViz loading state.
@@ -11676,7 +11926,11 @@ export declare enum Page {
11676
11926
  /**
11677
11927
  * Monitor Alerts Page
11678
11928
  */
11679
- Monitor = "monitor"
11929
+ Monitor = "monitor",
11930
+ /**
11931
+ * Collections listing page
11932
+ */
11933
+ Collections = "collections"
11680
11934
  }
11681
11935
  /**
11682
11936
  * Define the initial state of column custom group accordions
@@ -12319,6 +12573,25 @@ export interface AppViewConfig extends AllEmbedViewConfig {
12319
12573
  * ```
12320
12574
  */
12321
12575
  updatedSpotterChatPrompt?: boolean;
12576
+ /**
12577
+ * Sets the default query mode when Spotter loads — Fast Search or
12578
+ * Research Mode. Applies fresh on every new session for this embed
12579
+ * instance only; it does not persist as a user preference and does
12580
+ * not affect other embeds or native ThoughtSpot usage.
12581
+ * Only applicable when navigating to Spotter within the app.
12582
+ *
12583
+ * Supported embed types: `AppEmbed`
12584
+ * @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
12585
+ * @default SpotterQueryMode.FAST_SEARCH
12586
+ * @example
12587
+ * ```js
12588
+ * const embed = new AppEmbed('#tsEmbed', {
12589
+ * ... //other embed view config
12590
+ * defaultQueryMode: SpotterQueryMode.RESEARCH,
12591
+ * })
12592
+ * ```
12593
+ */
12594
+ defaultQueryMode?: SpotterQueryMode;
12322
12595
  /**
12323
12596
  * Controls the visibility of the past conversations sidebar.
12324
12597
  *
@@ -12391,6 +12664,12 @@ export interface AppViewConfig extends AllEmbedViewConfig {
12391
12664
  * { label: 'Tip', text: 'try asking about revenue by region' },
12392
12665
  * { label: 'Tip', text: 'use natural language' },
12393
12666
  * ],
12667
+ * // liveboardBrandName, spotterBrandName, insightTileBrandName, insightTileViewPlanLabel and insightTileLoaderText require SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
12668
+ * liveboardBrandName: 'Reports',
12669
+ * spotterBrandName: 'Analyst',
12670
+ * insightTileBrandName: 'Insight card',
12671
+ * insightTileViewPlanLabel: 'View plan',
12672
+ * insightTileLoaderText: 'Generating insight',
12394
12673
  * },
12395
12674
  * })
12396
12675
  * ```
@@ -13093,6 +13372,12 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
13093
13372
  * { label: 'Tip', text: 'try asking about revenue by region' },
13094
13373
  * { label: 'Tip', text: 'use natural language' },
13095
13374
  * ],
13375
+ * // liveboardBrandName, spotterBrandName, insightTileBrandName, insightTileViewPlanLabel and insightTileLoaderText require SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
13376
+ * liveboardBrandName: 'Reports',
13377
+ * spotterBrandName: 'Analyst',
13378
+ * insightTileBrandName: 'Insight card',
13379
+ * insightTileViewPlanLabel: 'View plan',
13380
+ * insightTileLoaderText: 'Generating insight',
13096
13381
  * },
13097
13382
  * })
13098
13383
  * ```