@thoughtspot/visual-embed-sdk 1.52.0 → 1.52.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 (279) hide show
  1. package/cjs/package.json +9 -1
  2. package/cjs/src/contracts/contracts.spec.d.ts +2 -0
  3. package/cjs/src/contracts/contracts.spec.d.ts.map +1 -0
  4. package/cjs/src/contracts/contracts.spec.js +345 -0
  5. package/cjs/src/contracts/contracts.spec.js.map +1 -0
  6. package/cjs/src/contracts/embed-event-payloads.d.ts +73 -0
  7. package/cjs/src/contracts/embed-event-payloads.d.ts.map +1 -0
  8. package/cjs/src/contracts/embed-event-payloads.js +3 -0
  9. package/cjs/src/contracts/embed-event-payloads.js.map +1 -0
  10. package/cjs/src/contracts/host-event-contracts.d.ts +378 -0
  11. package/cjs/src/contracts/host-event-contracts.d.ts.map +1 -0
  12. package/cjs/src/contracts/host-event-contracts.js +3 -0
  13. package/cjs/src/contracts/host-event-contracts.js.map +1 -0
  14. package/cjs/src/contracts/index.d.ts +22 -0
  15. package/cjs/src/contracts/index.d.ts.map +1 -0
  16. package/cjs/src/contracts/index.js +33 -0
  17. package/cjs/src/contracts/index.js.map +1 -0
  18. package/cjs/src/contracts/ui-passthrough-contracts.d.ts +277 -0
  19. package/cjs/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
  20. package/cjs/src/{embed/hostEventClient/contracts.js → contracts/ui-passthrough-contracts.js} +6 -2
  21. package/cjs/src/contracts/ui-passthrough-contracts.js.map +1 -0
  22. package/cjs/src/embed/app.d.ts +17 -140
  23. package/cjs/src/embed/app.d.ts.map +1 -1
  24. package/cjs/src/embed/app.js +20 -120
  25. package/cjs/src/embed/app.js.map +1 -1
  26. package/cjs/src/embed/app.spec.js +70 -26
  27. package/cjs/src/embed/app.spec.js.map +1 -1
  28. package/cjs/src/embed/events.spec.js +12 -2
  29. package/cjs/src/embed/events.spec.js.map +1 -1
  30. package/cjs/src/embed/hostEventClient/host-event-client.d.ts +3 -2
  31. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  32. package/cjs/src/embed/hostEventClient/host-event-client.js +23 -18
  33. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  34. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +36 -36
  35. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  36. package/cjs/src/embed/hostEventClient/utils.d.ts +1 -1
  37. package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
  38. package/cjs/src/embed/hostEventClient/utils.js +3 -3
  39. package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
  40. package/cjs/src/embed/liveboard.d.ts +9 -161
  41. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  42. package/cjs/src/embed/liveboard.js +66 -134
  43. package/cjs/src/embed/liveboard.js.map +1 -1
  44. package/cjs/src/embed/liveboard.spec.js +211 -28
  45. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  46. package/cjs/src/embed/search.d.ts +14 -0
  47. package/cjs/src/embed/search.d.ts.map +1 -1
  48. package/cjs/src/embed/search.js +4 -1
  49. package/cjs/src/embed/search.js.map +1 -1
  50. package/cjs/src/embed/search.spec.js +65 -0
  51. package/cjs/src/embed/search.spec.js.map +1 -1
  52. package/cjs/src/embed/ts-embed.d.ts +17 -22
  53. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  54. package/cjs/src/embed/ts-embed.js +82 -56
  55. package/cjs/src/embed/ts-embed.js.map +1 -1
  56. package/cjs/src/embed/ts-embed.spec.js +325 -17
  57. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  58. package/cjs/src/full-height.d.ts +137 -0
  59. package/cjs/src/full-height.d.ts.map +1 -0
  60. package/cjs/src/full-height.js +272 -0
  61. package/cjs/src/full-height.js.map +1 -0
  62. package/cjs/src/full-height.spec.d.ts +2 -0
  63. package/cjs/src/full-height.spec.d.ts.map +1 -0
  64. package/cjs/src/full-height.spec.js +835 -0
  65. package/cjs/src/full-height.spec.js.map +1 -0
  66. package/cjs/src/index.d.ts +4 -3
  67. package/cjs/src/index.d.ts.map +1 -1
  68. package/cjs/src/index.js +3 -3
  69. package/cjs/src/index.js.map +1 -1
  70. package/cjs/src/react/all-types-export.d.ts +1 -1
  71. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  72. package/cjs/src/react/all-types-export.js.map +1 -1
  73. package/cjs/src/react/all-types-export.parity.spec.js +55 -3
  74. package/cjs/src/react/all-types-export.parity.spec.js.map +1 -1
  75. package/cjs/src/types.d.ts +540 -3
  76. package/cjs/src/types.d.ts.map +1 -1
  77. package/cjs/src/types.js +326 -1
  78. package/cjs/src/types.js.map +1 -1
  79. package/cjs/src/utils/processTrigger.d.ts +3 -1
  80. package/cjs/src/utils/processTrigger.d.ts.map +1 -1
  81. package/cjs/src/utils/processTrigger.js +19 -51
  82. package/cjs/src/utils/processTrigger.js.map +1 -1
  83. package/cjs/src/utils/transport/iframe-transport.d.ts +55 -0
  84. package/cjs/src/utils/transport/iframe-transport.d.ts.map +1 -0
  85. package/cjs/src/utils/transport/iframe-transport.js +108 -0
  86. package/cjs/src/utils/transport/iframe-transport.js.map +1 -0
  87. package/cjs/src/utils/transport/iframe-transport.spec.d.ts +2 -0
  88. package/cjs/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
  89. package/cjs/src/utils/transport/iframe-transport.spec.js +140 -0
  90. package/cjs/src/utils/transport/iframe-transport.spec.js.map +1 -0
  91. package/cjs/src/utils.d.ts +18 -0
  92. package/cjs/src/utils.d.ts.map +1 -1
  93. package/cjs/src/utils.js +39 -1
  94. package/cjs/src/utils.js.map +1 -1
  95. package/cjs/src/utils.spec.js +62 -0
  96. package/cjs/src/utils.spec.js.map +1 -1
  97. package/dist/{index-BMppCU63.js → index-C1pmYb5H.js} +1 -1
  98. package/dist/src/contracts/contracts.spec.d.ts +2 -0
  99. package/dist/src/contracts/contracts.spec.d.ts.map +1 -0
  100. package/dist/src/contracts/embed-event-payloads.d.ts +73 -0
  101. package/dist/src/contracts/embed-event-payloads.d.ts.map +1 -0
  102. package/dist/src/contracts/host-event-contracts.d.ts +378 -0
  103. package/dist/src/contracts/host-event-contracts.d.ts.map +1 -0
  104. package/dist/src/contracts/index.d.ts +22 -0
  105. package/dist/src/contracts/index.d.ts.map +1 -0
  106. package/dist/src/contracts/ui-passthrough-contracts.d.ts +277 -0
  107. package/dist/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
  108. package/dist/src/embed/app.d.ts +17 -140
  109. package/dist/src/embed/app.d.ts.map +1 -1
  110. package/dist/src/embed/hostEventClient/host-event-client.d.ts +3 -2
  111. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  112. package/dist/src/embed/hostEventClient/utils.d.ts +1 -1
  113. package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
  114. package/dist/src/embed/liveboard.d.ts +9 -161
  115. package/dist/src/embed/liveboard.d.ts.map +1 -1
  116. package/dist/src/embed/search.d.ts +14 -0
  117. package/dist/src/embed/search.d.ts.map +1 -1
  118. package/dist/src/embed/ts-embed.d.ts +17 -22
  119. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  120. package/dist/src/full-height.d.ts +137 -0
  121. package/dist/src/full-height.d.ts.map +1 -0
  122. package/dist/src/full-height.spec.d.ts +2 -0
  123. package/dist/src/full-height.spec.d.ts.map +1 -0
  124. package/dist/src/index.d.ts +4 -3
  125. package/dist/src/index.d.ts.map +1 -1
  126. package/dist/src/react/all-types-export.d.ts +1 -1
  127. package/dist/src/react/all-types-export.d.ts.map +1 -1
  128. package/dist/src/types.d.ts +540 -3
  129. package/dist/src/types.d.ts.map +1 -1
  130. package/dist/src/utils/processTrigger.d.ts +3 -1
  131. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  132. package/dist/src/utils/transport/iframe-transport.d.ts +55 -0
  133. package/dist/src/utils/transport/iframe-transport.d.ts.map +1 -0
  134. package/dist/src/utils/transport/iframe-transport.spec.d.ts +2 -0
  135. package/dist/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
  136. package/dist/src/utils.d.ts +18 -0
  137. package/dist/src/utils.d.ts.map +1 -1
  138. package/dist/tsembed-react.es.js +925 -363
  139. package/dist/tsembed-react.js +924 -362
  140. package/dist/tsembed.es.js +925 -363
  141. package/dist/tsembed.js +924 -362
  142. package/dist/visual-embed-sdk-react-full.d.ts +1357 -656
  143. package/dist/visual-embed-sdk-react.d.ts +1257 -606
  144. package/dist/visual-embed-sdk.d.ts +1320 -642
  145. package/lib/package.json +9 -1
  146. package/lib/src/contracts/contracts.spec.d.ts +2 -0
  147. package/lib/src/contracts/contracts.spec.d.ts.map +1 -0
  148. package/lib/src/contracts/contracts.spec.js +342 -0
  149. package/lib/src/contracts/contracts.spec.js.map +1 -0
  150. package/lib/src/contracts/embed-event-payloads.d.ts +73 -0
  151. package/lib/src/contracts/embed-event-payloads.d.ts.map +1 -0
  152. package/lib/src/contracts/embed-event-payloads.js +2 -0
  153. package/lib/src/contracts/embed-event-payloads.js.map +1 -0
  154. package/lib/src/contracts/host-event-contracts.d.ts +378 -0
  155. package/lib/src/contracts/host-event-contracts.d.ts.map +1 -0
  156. package/lib/src/contracts/host-event-contracts.js +2 -0
  157. package/lib/src/contracts/host-event-contracts.js.map +1 -0
  158. package/lib/src/contracts/index.d.ts +22 -0
  159. package/lib/src/contracts/index.d.ts.map +1 -0
  160. package/lib/src/contracts/index.js +22 -0
  161. package/lib/src/contracts/index.js.map +1 -0
  162. package/lib/src/contracts/ui-passthrough-contracts.d.ts +277 -0
  163. package/lib/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
  164. package/lib/src/{embed/hostEventClient/contracts.js → contracts/ui-passthrough-contracts.js} +6 -2
  165. package/lib/src/contracts/ui-passthrough-contracts.js.map +1 -0
  166. package/lib/src/embed/app.d.ts +17 -140
  167. package/lib/src/embed/app.d.ts.map +1 -1
  168. package/lib/src/embed/app.js +22 -122
  169. package/lib/src/embed/app.js.map +1 -1
  170. package/lib/src/embed/app.spec.js +70 -26
  171. package/lib/src/embed/app.spec.js.map +1 -1
  172. package/lib/src/embed/events.spec.js +12 -2
  173. package/lib/src/embed/events.spec.js.map +1 -1
  174. package/lib/src/embed/hostEventClient/host-event-client.d.ts +3 -2
  175. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  176. package/lib/src/embed/hostEventClient/host-event-client.js +6 -1
  177. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  178. package/lib/src/embed/hostEventClient/host-event-client.spec.js +1 -1
  179. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  180. package/lib/src/embed/hostEventClient/utils.d.ts +1 -1
  181. package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
  182. package/lib/src/embed/hostEventClient/utils.js +1 -1
  183. package/lib/src/embed/hostEventClient/utils.js.map +1 -1
  184. package/lib/src/embed/liveboard.d.ts +9 -161
  185. package/lib/src/embed/liveboard.d.ts.map +1 -1
  186. package/lib/src/embed/liveboard.js +67 -135
  187. package/lib/src/embed/liveboard.js.map +1 -1
  188. package/lib/src/embed/liveboard.spec.js +211 -28
  189. package/lib/src/embed/liveboard.spec.js.map +1 -1
  190. package/lib/src/embed/search.d.ts +14 -0
  191. package/lib/src/embed/search.d.ts.map +1 -1
  192. package/lib/src/embed/search.js +4 -1
  193. package/lib/src/embed/search.js.map +1 -1
  194. package/lib/src/embed/search.spec.js +65 -0
  195. package/lib/src/embed/search.spec.js.map +1 -1
  196. package/lib/src/embed/ts-embed.d.ts +17 -22
  197. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  198. package/lib/src/embed/ts-embed.js +82 -56
  199. package/lib/src/embed/ts-embed.js.map +1 -1
  200. package/lib/src/embed/ts-embed.spec.js +322 -14
  201. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  202. package/lib/src/full-height.d.ts +137 -0
  203. package/lib/src/full-height.d.ts.map +1 -0
  204. package/lib/src/full-height.js +268 -0
  205. package/lib/src/full-height.js.map +1 -0
  206. package/lib/src/full-height.spec.d.ts +2 -0
  207. package/lib/src/full-height.spec.d.ts.map +1 -0
  208. package/lib/src/full-height.spec.js +833 -0
  209. package/lib/src/full-height.spec.js.map +1 -0
  210. package/lib/src/index.d.ts +4 -3
  211. package/lib/src/index.d.ts.map +1 -1
  212. package/lib/src/index.js +1 -1
  213. package/lib/src/index.js.map +1 -1
  214. package/lib/src/react/all-types-export.d.ts +1 -1
  215. package/lib/src/react/all-types-export.d.ts.map +1 -1
  216. package/lib/src/react/all-types-export.js.map +1 -1
  217. package/lib/src/react/all-types-export.parity.spec.js +55 -3
  218. package/lib/src/react/all-types-export.parity.spec.js.map +1 -1
  219. package/lib/src/types.d.ts +540 -3
  220. package/lib/src/types.d.ts.map +1 -1
  221. package/lib/src/types.js +326 -1
  222. package/lib/src/types.js.map +1 -1
  223. package/lib/src/utils/processTrigger.d.ts +3 -1
  224. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  225. package/lib/src/utils/processTrigger.js +19 -51
  226. package/lib/src/utils/processTrigger.js.map +1 -1
  227. package/lib/src/utils/transport/iframe-transport.d.ts +55 -0
  228. package/lib/src/utils/transport/iframe-transport.d.ts.map +1 -0
  229. package/lib/src/utils/transport/iframe-transport.js +101 -0
  230. package/lib/src/utils/transport/iframe-transport.js.map +1 -0
  231. package/lib/src/utils/transport/iframe-transport.spec.d.ts +2 -0
  232. package/lib/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
  233. package/lib/src/utils/transport/iframe-transport.spec.js +138 -0
  234. package/lib/src/utils/transport/iframe-transport.spec.js.map +1 -0
  235. package/lib/src/utils.d.ts +18 -0
  236. package/lib/src/utils.d.ts.map +1 -1
  237. package/lib/src/utils.js +37 -0
  238. package/lib/src/utils.js.map +1 -1
  239. package/lib/src/utils.spec.js +63 -1
  240. package/lib/src/utils.spec.js.map +1 -1
  241. package/lib/src/visual-embed-sdk.d.ts +1320 -642
  242. package/package.json +9 -1
  243. package/src/contracts/contracts.spec.ts +392 -0
  244. package/src/contracts/embed-event-payloads.ts +83 -0
  245. package/src/contracts/host-event-contracts.ts +456 -0
  246. package/src/contracts/index.ts +53 -0
  247. package/src/contracts/ui-passthrough-contracts.ts +301 -0
  248. package/src/embed/app.spec.ts +86 -34
  249. package/src/embed/app.ts +37 -264
  250. package/src/embed/events.spec.ts +14 -2
  251. package/src/embed/hostEventClient/host-event-client.spec.ts +2 -2
  252. package/src/embed/hostEventClient/host-event-client.ts +18 -5
  253. package/src/embed/hostEventClient/utils.ts +2 -1
  254. package/src/embed/liveboard.spec.ts +257 -38
  255. package/src/embed/liveboard.ts +75 -296
  256. package/src/embed/search.spec.ts +80 -0
  257. package/src/embed/search.ts +20 -0
  258. package/src/embed/ts-embed.spec.ts +448 -15
  259. package/src/embed/ts-embed.ts +109 -66
  260. package/src/full-height.spec.ts +1008 -0
  261. package/src/full-height.ts +361 -0
  262. package/src/index.ts +93 -5
  263. package/src/react/all-types-export.parity.spec.ts +63 -3
  264. package/src/react/all-types-export.ts +45 -0
  265. package/src/types.ts +540 -1
  266. package/src/utils/processTrigger.ts +28 -58
  267. package/src/utils/transport/iframe-transport.spec.ts +177 -0
  268. package/src/utils/transport/iframe-transport.ts +122 -0
  269. package/src/utils.spec.ts +71 -0
  270. package/src/utils.ts +38 -0
  271. package/cjs/src/embed/hostEventClient/contracts.d.ts +0 -231
  272. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +0 -1
  273. package/cjs/src/embed/hostEventClient/contracts.js.map +0 -1
  274. package/dist/src/embed/hostEventClient/contracts.d.ts +0 -231
  275. package/dist/src/embed/hostEventClient/contracts.d.ts.map +0 -1
  276. package/lib/src/embed/hostEventClient/contracts.d.ts +0 -231
  277. package/lib/src/embed/hostEventClient/contracts.d.ts.map +0 -1
  278. package/lib/src/embed/hostEventClient/contracts.js.map +0 -1
  279. package/src/embed/hostEventClient/contracts.ts +0 -262
package/lib/src/types.js CHANGED
@@ -841,6 +841,9 @@ export var EmbedEvent;
841
841
  EmbedEvent["Download"] = "download";
842
842
  /**
843
843
  * Emitted when the download action is triggered on an Answer.
844
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer,
845
+ * Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
846
+ * accepts the union now; per-context enforced next release.
844
847
  * Use start:true to subscribe to when download is initiated, or end:true to
845
848
  * subscribe to when download is completed. Default is end:true.
846
849
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
@@ -857,6 +860,9 @@ export var EmbedEvent;
857
860
  EmbedEvent["DownloadAsPng"] = "downloadAsPng";
858
861
  /**
859
862
  * Emitted when the Download as PDF action is triggered on an Answer
863
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer; plus
864
+ * liveboardId on Liveboard), {@link RequiredVizRequest} (Spotter). trigger()
865
+ * accepts the union now; per-context enforced next release.
860
866
  * Use start:true to subscribe to when download as PDF is initiated, or end:true to
861
867
  * subscribe to when download as PDF is completed. Default is end:true.
862
868
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
@@ -873,6 +879,9 @@ export var EmbedEvent;
873
879
  EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
874
880
  /**
875
881
  * Emitted when the Download as CSV action is triggered on an Answer.
882
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer,
883
+ * Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
884
+ * accepts the union now; per-context enforced next release.
876
885
  * Use start:true to subscribe to when download as CSV is initiated, or end:true to
877
886
  * subscribe to when download as CSV is completed. Default is end:true.
878
887
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
@@ -889,6 +898,9 @@ export var EmbedEvent;
889
898
  EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
890
899
  /**
891
900
  * Emitted when the Download as XLSX action is triggered on an Answer.
901
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer,
902
+ * Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
903
+ * accepts the union now; per-context enforced next release.
892
904
  * Use start:true to subscribe to when download as XLSX is initiated, or end:true to
893
905
  * subscribe to when download as XLSX is completed. Default is end:true.
894
906
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
@@ -1167,6 +1179,9 @@ export var EmbedEvent;
1167
1179
  EmbedEvent["Schedule"] = "subscription";
1168
1180
  /**
1169
1181
  * Emitted when a user clicks **Edit** on a Liveboard or visualization
1182
+ * Payload varies by context: {@link VizScopedRequest} (Liveboard),
1183
+ * {@link RequiredVizRequest} (Spotter, vizId required). trigger() accepts the
1184
+ * union now; per-context enforced next release.
1170
1185
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1171
1186
  * @example
1172
1187
  * ```js
@@ -2246,6 +2261,7 @@ export var HostEvent;
2246
2261
  * the search query string.
2247
2262
  * Supported in `AppEmbed` and `SearchEmbed` deployments.
2248
2263
  * Includes the following properties:
2264
+ * Payload: {@link SearchRequest}.
2249
2265
  * @param - Includes the following keys:
2250
2266
  * - `searchQuery`: Query string with search tokens.
2251
2267
  * - `dataSources`: Data source GUID to search on.
@@ -2273,6 +2289,9 @@ export var HostEvent;
2273
2289
  HostEvent["Search"] = "search";
2274
2290
  /**
2275
2291
  * Triggers a drill on certain points of the specified column
2292
+ * Payload: {@link DrillDownRequest}; in Liveboard context vizId is required
2293
+ * ({@link RequiredVizRequest}). trigger() accepts the union now; per-context
2294
+ * enforced next release.
2276
2295
  * Includes the following properties:
2277
2296
  * @param - Includes the following keys:
2278
2297
  * - `points`: An object containing `selectedPoints` and/or `clickedPoint`
@@ -2352,6 +2371,8 @@ export var HostEvent;
2352
2371
  HostEvent["Reload"] = "reload";
2353
2372
  /**
2354
2373
  * Get iframe URL for the current embed view.
2374
+ * Payload: none.
2375
+ * Response: {@link GetIframeUrlResponse}.
2355
2376
  * @example
2356
2377
  * ```js
2357
2378
  * const url = embed.trigger(HostEvent.GetIframeUrl);
@@ -2370,6 +2391,7 @@ export var HostEvent;
2370
2391
  HostEvent["GetIframeUrl"] = "GetIframeUrl";
2371
2392
  /**
2372
2393
  * Display specific visualizations on a Liveboard.
2394
+ * Payload: `string[]`.
2373
2395
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
2374
2396
  * in this parameter will be hidden.
2375
2397
  * @example
@@ -2392,6 +2414,7 @@ export var HostEvent;
2392
2414
  HostEvent["SetVisibleVizs"] = "SetPinboardVisibleVizs";
2393
2415
  /**
2394
2416
  * Set a Liveboard tab as an active tab.
2417
+ * Payload: {@link SetActiveTabRequest}.
2395
2418
  * @param - tabId - string of id of Tab to show
2396
2419
  * @example
2397
2420
  * ```js
@@ -2419,6 +2442,7 @@ export var HostEvent;
2419
2442
  * and `AppEmbed` only. In full application embedding, this event updates
2420
2443
  * the runtime filters applied on the Liveboard and saved Answer objects.
2421
2444
  *
2445
+ * Payload: {@link RuntimeFilter}[].
2422
2446
  * @param - Array of {@link RuntimeFilter} objects. Each item includes:
2423
2447
  * - `columnName`: Name of the column to filter on.
2424
2448
  * - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
@@ -2460,6 +2484,7 @@ export var HostEvent;
2460
2484
  * Accepts either a plain value or an object with `path`
2461
2485
  * and an optional `replace` flag.
2462
2486
  *
2487
+ * Payload: `string` | `number` | {@link NavigateRequest}.
2463
2488
  * @param data - A string path, a numeric history delta, or an object
2464
2489
  * `{ path: string | number, replace?: boolean }`.
2465
2490
  * - `path` — the route to navigate to, or a history delta such as `1`
@@ -2487,6 +2512,9 @@ export var HostEvent;
2487
2512
  /**
2488
2513
  * Open the filter panel for a particular column.
2489
2514
  * Works with Search and Liveboard embed.
2515
+ * Payload: {@link OpenFilterRequest} (the cross-context superset). The
2516
+ * accepted fields vary by context: {@link OpenFilterLiveboardRequest},
2517
+ * {@link OpenFilterSpotterRequest}, {@link OpenFilterSearchRequest}.
2490
2518
  * @param - { columnId: string,
2491
2519
  * name: string,
2492
2520
  * type: ATTRIBUTE/MEASURE,
@@ -2569,6 +2597,7 @@ export var HostEvent;
2569
2597
  /**
2570
2598
  * Open the parameter panel for a particular parameter on a Liveboard.
2571
2599
  * Mirrors {@link HostEvent.OpenFilter} for parameters.
2600
+ * Payload: {@link OpenParameterRequest}.
2572
2601
  * @param - Includes the following keys:
2573
2602
  * - `parameter`: An object identifying the parameter to open, for
2574
2603
  * example, `{ parameterId: '<parameter-GUID>' }`.
@@ -2600,6 +2629,7 @@ export var HostEvent;
2600
2629
  HostEvent["OpenParameter"] = "openParameter";
2601
2630
  /**
2602
2631
  * Add columns to the current search query.
2632
+ * Payload: `{ columnIds: string[] }`.
2603
2633
  * @param - { columnIds: string[] }
2604
2634
  * @example
2605
2635
  * ```js
@@ -2618,6 +2648,7 @@ export var HostEvent;
2618
2648
  HostEvent["AddColumns"] = "addColumns";
2619
2649
  /**
2620
2650
  * Remove a column from the current search query.
2651
+ * Payload: `{ columnId: string }`.
2621
2652
  * @param - { columnId: string }
2622
2653
  * @example
2623
2654
  * ```js
@@ -2642,6 +2673,8 @@ export var HostEvent;
2642
2673
  * sorting, toggling of legends, and data drill down.
2643
2674
  * For more information, see
2644
2675
  * link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
2676
+ * Payload: none.
2677
+ * Response: {@link GetExportRequestForCurrentPinboardResponse}.
2645
2678
  * @example
2646
2679
  * ```js
2647
2680
  * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
@@ -2663,6 +2696,8 @@ export var HostEvent;
2663
2696
  * requiring additional user input via the *Pin to Liveboard* modal, define
2664
2697
  * the following parameters:
2665
2698
  *
2699
+ * Payload: {@link PinAnswerToLiveboardRequest}.
2700
+ * Response: {@link PinAnswerToLiveboardResponse}.
2666
2701
  * @param - Includes the following keys:
2667
2702
  * - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
2668
2703
  * Liveboard.
@@ -2777,6 +2812,7 @@ export var HostEvent;
2777
2812
  HostEvent["LiveboardInfo"] = "pinboardInfo";
2778
2813
  /**
2779
2814
  * Trigger the **Schedule** action on an embedded Liveboard.
2815
+ * Payload: {@link VizScopedRequest}.
2780
2816
  * @example
2781
2817
  * ```js
2782
2818
  * liveboardEmbed.trigger(HostEvent.Schedule)
@@ -2792,6 +2828,7 @@ export var HostEvent;
2792
2828
  HostEvent["Schedule"] = "subscription";
2793
2829
  /**
2794
2830
  * Trigger the **Manage schedule** action on an embedded Liveboard
2831
+ * Payload: {@link VizScopedRequest}.
2795
2832
  * @example
2796
2833
  * ```js
2797
2834
  * liveboardEmbed.trigger(HostEvent.SchedulesList)
@@ -2808,6 +2845,7 @@ export var HostEvent;
2808
2845
  /**
2809
2846
  * Trigger the **Export TML** action on an embedded Liveboard or
2810
2847
  * Answer.
2848
+ * Payload: {@link VizScopedRequest}.
2811
2849
  * @example
2812
2850
  * ```js
2813
2851
  * liveboardEmbed.trigger(HostEvent.ExportTML)
@@ -2830,6 +2868,7 @@ export var HostEvent;
2830
2868
  /**
2831
2869
  * Trigger the **Edit TML** action on an embedded Liveboard or
2832
2870
  * saved Answers in the full application embedding.
2871
+ * Payload: {@link VizScopedRequest}.
2833
2872
  * @example
2834
2873
  * ```js
2835
2874
  * liveboardEmbed.trigger(HostEvent.EditTML)
@@ -2851,6 +2890,7 @@ export var HostEvent;
2851
2890
  HostEvent["EditTML"] = "editTSL";
2852
2891
  /**
2853
2892
  * Trigger the **Update TML** action on an embedded Liveboard.
2893
+ * Payload: {@link VizScopedRequest}.
2854
2894
  * @example
2855
2895
  * ```js
2856
2896
  * liveboardEmbed.trigger(HostEvent.UpdateTML)
@@ -2868,6 +2908,7 @@ export var HostEvent;
2868
2908
  * Trigger the **Download PDF** action on an embedded Liveboard,
2869
2909
  * visualization or Answer.
2870
2910
  *
2911
+ * Payload: {@link VizScopedRequest} plus optional `liveboardId`.
2871
2912
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2872
2913
  *
2873
2914
  * **NOTE**: The **Download** > **PDF** action is available on
@@ -2918,6 +2959,7 @@ export var HostEvent;
2918
2959
  /**
2919
2960
  * Trigger the **AI Highlights** action on an embedded Liveboard
2920
2961
  *
2962
+ * Payload: none.
2921
2963
  * @example
2922
2964
  * ```js
2923
2965
  * liveboardEmbed.trigger(HostEvent.AIHighlights)
@@ -2972,6 +3014,9 @@ export var HostEvent;
2972
3014
  HostEvent["MakeACopy"] = "makeACopy";
2973
3015
  /**
2974
3016
  * Trigger the **Delete** action for a Liveboard.
3017
+ * Payload varies by context: {@link RequiredVizRequest} (Liveboard, vizId
3018
+ * required), {@link VizScopedRequest} (Search). trigger() accepts the union
3019
+ * now; per-context enforced next release.
2975
3020
  * @example
2976
3021
  * ```js
2977
3022
  * appEmbed.trigger(HostEvent.Remove)
@@ -2986,6 +3031,7 @@ export var HostEvent;
2986
3031
  HostEvent["Remove"] = "delete";
2987
3032
  /**
2988
3033
  * Trigger the **Explore** action on a visualization.
3034
+ * Payload: {@link RequiredVizRequest}.
2989
3035
  * @param - an object with `vizId` as a key
2990
3036
  * @example
2991
3037
  * ```js
@@ -3005,6 +3051,7 @@ export var HostEvent;
3005
3051
  /**
3006
3052
  * Trigger the **Create alert** action on a KPI chart
3007
3053
  * in a Liveboard or saved Answer.
3054
+ * Payload: {@link VizScopedRequest}.
3008
3055
  * @param - an object with `vizId` as a key
3009
3056
  * @example
3010
3057
  * ```js
@@ -3036,6 +3083,7 @@ export var HostEvent;
3036
3083
  /**
3037
3084
  * Trigger the **Manage alerts** action on a KPI chart
3038
3085
  * in a visualization or saved Answer.
3086
+ * Payload: {@link VizScopedRequest}.
3039
3087
  * @param - an object with `vizId` as a key
3040
3088
  * @example
3041
3089
  * ```js
@@ -3073,6 +3121,7 @@ export var HostEvent;
3073
3121
  * on a Liveboard.
3074
3122
  *
3075
3123
  * This event is not supported in visualization embed and search embed.
3124
+ * Payload: {@link VizScopedRequest}.
3076
3125
  * @param - Object parameter. Includes the following keys:
3077
3126
  * - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
3078
3127
  * pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
@@ -3115,6 +3164,7 @@ export var HostEvent;
3115
3164
  HostEvent["Edit"] = "edit";
3116
3165
  /**
3117
3166
  * Trigger the **Copy link** action on a Liveboard or visualization
3167
+ * Payload: {@link VizScopedRequest}.
3118
3168
  * @param - object - to trigger the action for a
3119
3169
  * specific visualization in Liveboard embed, pass in `vizId` as a key
3120
3170
  * @example
@@ -3160,6 +3210,7 @@ export var HostEvent;
3160
3210
  HostEvent["CopyLink"] = "embedDocument";
3161
3211
  /**
3162
3212
  * Trigger the **Present** action on a Liveboard or visualization
3213
+ * Payload: {@link VizScopedRequest}.
3163
3214
  * @param - object - to trigger the action for a specific visualization
3164
3215
  * in Liveboard embed, pass in `vizId` as a key
3165
3216
  * @example
@@ -3205,6 +3256,8 @@ export var HostEvent;
3205
3256
  HostEvent["Present"] = "present";
3206
3257
  /**
3207
3258
  * Get TML for the current search.
3259
+ * Payload: {@link GetTMLRequest}.
3260
+ * Response: `Record<string, any>`.
3208
3261
  * @example
3209
3262
  * ```js
3210
3263
  * searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
@@ -3254,6 +3307,7 @@ export var HostEvent;
3254
3307
  * Trigger the **Show underlying data** action on a
3255
3308
  * chart or table.
3256
3309
  *
3310
+ * Payload: {@link VizScopedRequest}.
3257
3311
  * @param - an object with vizId as a key
3258
3312
  * @example
3259
3313
  * ```js
@@ -3287,6 +3341,7 @@ export var HostEvent;
3287
3341
  * Trigger the **Delete** action for a visualization
3288
3342
  * in an embedded Liveboard, or a chart or table
3289
3343
  * generated from Search.
3344
+ * Payload: {@link VizScopedRequest}.
3290
3345
  * @param - Liveboard embed takes an object with `vizId` as a key.
3291
3346
  * Can be left empty if embedding Search or visualization.
3292
3347
  * @example
@@ -3315,6 +3370,7 @@ export var HostEvent;
3315
3370
  /**
3316
3371
  * Trigger the **SpotIQ analyze** action on a
3317
3372
  * chart or table.
3373
+ * Payload: {@link VizScopedRequest}.
3318
3374
  * @param - Liveboard embed takes `vizId` as a
3319
3375
  * key. Can be left undefined when embedding Search or
3320
3376
  * visualization.
@@ -3377,6 +3433,7 @@ export var HostEvent;
3377
3433
  /**
3378
3434
  * Trigger the **Download** > **PNG** action on
3379
3435
  * charts in the embedded view.
3436
+ * Payload: {@link VizScopedRequest}.
3380
3437
  * @example
3381
3438
  * ```js
3382
3439
  * liveboardEmbed.trigger(HostEvent.DownloadAsPng,
@@ -3408,6 +3465,7 @@ export var HostEvent;
3408
3465
  /**
3409
3466
  * Trigger the **Download** > **CSV** action on tables in
3410
3467
  * the embedded view.
3468
+ * Payload: {@link VizScopedRequest}.
3411
3469
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
3412
3470
  * @example
3413
3471
  * ```js
@@ -3447,6 +3505,7 @@ export var HostEvent;
3447
3505
  /**
3448
3506
  * Trigger the **Download** > **XLSX** action on tables
3449
3507
  * in the embedded view.
3508
+ * Payload: {@link VizScopedRequest}.
3450
3509
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
3451
3510
  * @example
3452
3511
  * ```js
@@ -3486,6 +3545,7 @@ export var HostEvent;
3486
3545
  /**
3487
3546
  * Trigger the **Share** action on an embedded
3488
3547
  * Liveboard or Answer.
3548
+ * Payload: {@link VizScopedRequest}.
3489
3549
  * @example
3490
3550
  * ```js
3491
3551
  * liveboardEmbed.trigger(HostEvent.Share)
@@ -3512,6 +3572,7 @@ export var HostEvent;
3512
3572
  * Trigger the **Save** action on a Liveboard, Answer, or Spotter.
3513
3573
  * Saves the changes.
3514
3574
  *
3575
+ * Payload: {@link VizScopedRequest}.
3515
3576
  * @param - `vizId` refers to the Spotter Visualization Id used in Spotter embed.
3516
3577
  * It is required and can be retrieved from the data embed event.
3517
3578
  *
@@ -3563,6 +3624,7 @@ export var HostEvent;
3563
3624
  /**
3564
3625
  * Trigger the **Sync to Sheets** action on an embedded visualization or Answer
3565
3626
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
3627
+ * Payload: {@link VizScopedRequest}.
3566
3628
  * @param - an object with `vizId` as a key
3567
3629
  * @example
3568
3630
  * ```js
@@ -3593,6 +3655,7 @@ export var HostEvent;
3593
3655
  * Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
3594
3656
  * Sends data from an Answer or Liveboard visualization to third-party apps such
3595
3657
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
3658
+ * Payload: {@link VizScopedRequest}.
3596
3659
  * @param - an object with vizId as a key
3597
3660
  * @example
3598
3661
  * ```js
@@ -3623,6 +3686,7 @@ export var HostEvent;
3623
3686
  * Trigger the **Manage pipelines** action on an embedded
3624
3687
  * visualization or Answer.
3625
3688
  * Allows users to manage ThoughtSpot Sync pipelines.
3689
+ * Payload: {@link VizScopedRequest}.
3626
3690
  * @param - an object with `vizId` as a key
3627
3691
  * @example
3628
3692
  * ```js
@@ -3651,6 +3715,7 @@ export var HostEvent;
3651
3715
  HostEvent["ManagePipelines"] = "manage-pipeline";
3652
3716
  /**
3653
3717
  * Reset search operation on the Search or Answer page.
3718
+ * Payload: none.
3654
3719
  * @example
3655
3720
  * ```js
3656
3721
  * searchEmbed.trigger(HostEvent.ResetSearch)
@@ -3678,6 +3743,8 @@ export var HostEvent;
3678
3743
  * whole Liveboard.
3679
3744
  * The `applicability` attribute is available from SDK: 1.53.0 |
3680
3745
  * ThoughtSpot: 26.10.0.cl.
3746
+ * Payload: {@link GetFiltersRequest}.
3747
+ * Response: {@link GetFiltersResponse}.
3681
3748
  * @example
3682
3749
  * ```js
3683
3750
  * const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
@@ -3697,6 +3764,7 @@ export var HostEvent;
3697
3764
  HostEvent["GetFilters"] = "getFilters";
3698
3765
  /**
3699
3766
  * Update one or several filters applied on a Liveboard.
3767
+ * Payload: {@link UpdateFiltersRequest}.
3700
3768
  * @param - Includes the following keys:
3701
3769
  * - `filter`: A single filter object containing column name, filter operator, and
3702
3770
  * values.
@@ -3825,6 +3893,8 @@ export var HostEvent;
3825
3893
  HostEvent["UpdateFilters"] = "updateFilters";
3826
3894
  /**
3827
3895
  * Get tab details for the current Liveboard.
3896
+ * Payload: none.
3897
+ * Response: {@link GetTabsResponse}.
3828
3898
  * @example
3829
3899
  * ```js
3830
3900
  * liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
@@ -3850,6 +3920,8 @@ export var HostEvent;
3850
3920
  /**
3851
3921
  * Get group details for the current Liveboard.
3852
3922
  * Mirrors {@link HostEvent.GetTabs} for filter/parameter groups.
3923
+ * Payload: none.
3924
+ * Response: {@link GetGroupsResponse}.
3853
3925
  * @example
3854
3926
  * ```js
3855
3927
  * liveboardEmbed.trigger(HostEvent.GetGroups).then((groupDetails) => {
@@ -3874,6 +3946,7 @@ export var HostEvent;
3874
3946
  HostEvent["GetGroups"] = "getGroups";
3875
3947
  /**
3876
3948
  * Set the visible tabs on a Liveboard.
3949
+ * Payload: `string[]`.
3877
3950
  * @param - an array of ids of tabs to show, the IDs not passed
3878
3951
  * will be hidden.
3879
3952
  * @example
@@ -3896,6 +3969,7 @@ export var HostEvent;
3896
3969
  HostEvent["SetVisibleTabs"] = "SetPinboardVisibleTabs";
3897
3970
  /**
3898
3971
  * Set the hidden tabs on a Liveboard.
3972
+ * Payload: `string[]`.
3899
3973
  * @param - an array of the IDs of the tabs to hide.
3900
3974
  * The IDs not passed will be shown.
3901
3975
  * @example
@@ -3924,6 +3998,8 @@ export var HostEvent;
3924
3998
  * `getAnswerService()` method on the embed instance to get an AnswerService
3925
3999
  * object that provides a more convenient interface for working with answers.
3926
4000
  *
4001
+ * Payload: {@link GetAnswerSessionRequest}.
4002
+ * Response: {@link GetAnswerSessionResponse}.
3927
4003
  * @example
3928
4004
  * ```js
3929
4005
  * // Preferred way to get an AnswerService
@@ -3951,6 +4027,7 @@ export var HostEvent;
3951
4027
  HostEvent["GetAnswerSession"] = "getAnswerSession";
3952
4028
  /**
3953
4029
  * Trigger the *Ask Sage* action for visualizations
4030
+ * Payload: {@link RequiredVizRequest}.
3954
4031
  * @example
3955
4032
  * ```js
3956
4033
  * liveboardEmbed.trigger(HostEvent.AskSage,
@@ -3962,6 +4039,7 @@ export var HostEvent;
3962
4039
  /**
3963
4040
  * Trigger cross filter update action on a Liveboard.
3964
4041
  *
4042
+ * Payload: {@link UpdateCrossFilterRequest}.
3965
4043
  * @example
3966
4044
  * ```js
3967
4045
  * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
@@ -3977,7 +4055,9 @@ export var HostEvent;
3977
4055
  HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
3978
4056
  /**
3979
4057
  * Trigger reset action for a personalized Liveboard view.
3980
- * This event is deprecated. Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
4058
+ * This event is deprecated.
4059
+ * Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
4060
+ * Payload: none.
3981
4061
  * @example
3982
4062
  * ```js
3983
4063
  * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
@@ -3998,6 +4078,7 @@ export var HostEvent;
3998
4078
  /**
3999
4079
  * Triggers an action to update Parameter values on embedded
4000
4080
  * Answers, Liveboard, and Spotter answer in Edit mode.
4081
+ * Payload: {@link RuntimeParameter}[].
4001
4082
  * @param - Includes the following keys for each item:
4002
4083
  * - `name`: Name of the parameter.
4003
4084
  * - `value`: The value to set for the parameter.
@@ -4055,6 +4136,8 @@ export var HostEvent;
4055
4136
  * whole Liveboard.
4056
4137
  * The `applicability` attribute is available from SDK: 1.53.0 |
4057
4138
  * ThoughtSpot: 26.10.0.cl.
4139
+ * Payload: none.
4140
+ * Response: {@link GetParametersResponse}.
4058
4141
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
4059
4142
  * ```js
4060
4143
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
@@ -4092,6 +4175,7 @@ export var HostEvent;
4092
4175
  * ```js
4093
4176
  * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
4094
4177
  * ```
4178
+ * Payload: {@link PersonalisedViewRequest} (`viewId` only).
4095
4179
  * @example
4096
4180
  * ```js
4097
4181
  * // Update personalized view from liveboard context
@@ -4124,6 +4208,7 @@ export var HostEvent;
4124
4208
  * If neither is provided, the Liveboard resets to the original/default view.
4125
4209
  * When a `viewName` is provided and multiple views share
4126
4210
  * the same name, the first match is selected.
4211
+ * Payload: {@link PersonalisedViewRequest}.
4127
4212
  * @example
4128
4213
  * ```js
4129
4214
  * liveboardEmbed.trigger(
@@ -4167,6 +4252,8 @@ export var HostEvent;
4167
4252
  * If no parameters are specified, the save action is
4168
4253
  * triggered with a modal to prompt users to
4169
4254
  * add a name and description for the Answer.
4255
+ * Payload: {@link SaveAnswerRequest}.
4256
+ * Response: {@link SaveAnswerResponse}.
4170
4257
  * @param - Includes the following keys:
4171
4258
  * - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
4172
4259
  * embed.
@@ -4252,6 +4339,7 @@ export var HostEvent;
4252
4339
  /**
4253
4340
  * Triggers a search operation with the search tokens specified in
4254
4341
  * the search query string in spotter embed.
4342
+ * Payload: {@link SpotterSearchRequest}.
4255
4343
  * @param - Includes the following keys:
4256
4344
  * - `query`: Text string in Natural Language format.
4257
4345
  * - `executeSearch`: Boolean to execute search and update search query.
@@ -4276,6 +4364,7 @@ export var HostEvent;
4276
4364
  HostEvent["SpotterSearch"] = "SpotterSearch";
4277
4365
  /**
4278
4366
  * Edits the last prompt in spotter embed.
4367
+ * Payload: `string`.
4279
4368
  * @param - `query`: Text string
4280
4369
  * @example
4281
4370
  * ```js
@@ -4292,6 +4381,7 @@ export var HostEvent;
4292
4381
  HostEvent["EditLastPrompt"] = "EditLastPrompt";
4293
4382
  /**
4294
4383
  * Opens the data source preview modal in Spotter Embed.
4384
+ * Payload: none.
4295
4385
  * @example
4296
4386
  * ```js
4297
4387
  * spotterEmbed.trigger(HostEvent.PreviewSpotterData);
@@ -4327,6 +4417,7 @@ export var HostEvent;
4327
4417
  HostEvent["DataModelInstructions"] = "DataModelInstructions";
4328
4418
  /**
4329
4419
  * Resets the Spotter Embed Conversation.
4420
+ * Payload: none.
4330
4421
  * @example
4331
4422
  * ```js
4332
4423
  * spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
@@ -4339,6 +4430,7 @@ export var HostEvent;
4339
4430
  * `conversationId` is **mandatory** — you must pass the id of the
4340
4431
  * conversation to share. Also no-op when sharing is disabled
4341
4432
  * (enableShareConversation off) or when already in the read-only shared view.
4433
+ * Payload: {@link ConversationScopedRequest}.
4342
4434
  * @example
4343
4435
  * ```js
4344
4436
  * spotterEmbed.trigger(HostEvent.ShareSpotterConversation, { conversationId: 'abc' });
@@ -4348,6 +4440,7 @@ export var HostEvent;
4348
4440
  HostEvent["ShareSpotterConversation"] = "ShareSpotterConversation";
4349
4441
  /**
4350
4442
  * Closes the Spotter share-conversation modal. No-op if none is open.
4443
+ * Payload: none.
4351
4444
  * @example
4352
4445
  * ```js
4353
4446
  * spotterEmbed.trigger(HostEvent.CloseSpotterShareConversation);
@@ -4357,6 +4450,7 @@ export var HostEvent;
4357
4450
  HostEvent["CloseSpotterShareConversation"] = "CloseSpotterShareConversation";
4358
4451
  /**
4359
4452
  * Exits the read-only shared-conversation view.
4453
+ * Payload: none.
4360
4454
  * @example
4361
4455
  * ```js
4362
4456
  * spotterEmbed.trigger(HostEvent.ExitSpotterSharedConversation);
@@ -4366,6 +4460,7 @@ export var HostEvent;
4366
4460
  HostEvent["ExitSpotterSharedConversation"] = "ExitSpotterSharedConversation";
4367
4461
  /**
4368
4462
  * Deletes the last prompt in spotter embed.
4463
+ * Payload: none.
4369
4464
  * @example
4370
4465
  * ```js
4371
4466
  * spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
@@ -4375,6 +4470,7 @@ export var HostEvent;
4375
4470
  HostEvent["DeleteLastPrompt"] = "DeleteLastPrompt";
4376
4471
  /**
4377
4472
  * Toggle the visualization to chart or table view.
4473
+ * Payload: {@link RequiredVizRequest}.
4378
4474
  * @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
4379
4475
  * @example
4380
4476
  * ```js
@@ -4413,6 +4509,7 @@ export var HostEvent;
4413
4509
  HostEvent["VisibleEmbedCoordinates"] = "visibleEmbedCoordinates";
4414
4510
  /**
4415
4511
  * Trigger the *Spotter* action for visualizations present on the liveboard's vizzes.
4512
+ * Payload: {@link RequiredVizRequest}.
4416
4513
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required.
4417
4514
  * @example
4418
4515
  * ```js
@@ -4474,6 +4571,7 @@ export var HostEvent;
4474
4571
  * instance. Contact your admin or ThoughtSpot Support to enable chat history on your
4475
4572
  * instance.
4476
4573
  *
4574
+ * Payload: {@link ConversationScopedRequest}.
4477
4575
  * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
4478
4576
  * @example
4479
4577
  * ```js
@@ -4491,6 +4589,7 @@ export var HostEvent;
4491
4589
  * instance. Contact your admin or ThoughtSpot Support to enable chat history on your
4492
4590
  * instance.
4493
4591
  *
4592
+ * Payload: {@link ConversationScopedRequest}.
4494
4593
  * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
4495
4594
  * @example
4496
4595
  * ```js
@@ -4515,6 +4614,7 @@ export var HostEvent;
4515
4614
  * Trigger the **Send Test Email** action in the Liveboard schedule modal.
4516
4615
  * Sends a test schedule email to self or all recipients.
4517
4616
  * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
4617
+ * Payload: {@link ScheduleEmailRequest}.
4518
4618
  * @example
4519
4619
  * ```js
4520
4620
  * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
@@ -4533,6 +4633,7 @@ export var HostEvent;
4533
4633
  HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
4534
4634
  /**
4535
4635
  * Sends a user message (prompt) to the SpotterViz panel programmatically.
4636
+ * Payload: `{ query: string }`.
4536
4637
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
4537
4638
  * @param query - the prompt text to send.
4538
4639
  * @example
@@ -4545,6 +4646,7 @@ export var HostEvent;
4545
4646
  HostEvent["SpotterVizSendUserMessage"] = "SpotterVizSendUserMessage";
4546
4647
  /**
4547
4648
  * Initializes a new SpotterViz conversation.
4649
+ * Payload: none.
4548
4650
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
4549
4651
  * @example
4550
4652
  * ```js
@@ -4554,6 +4656,7 @@ export var HostEvent;
4554
4656
  HostEvent["InitSpotterVizConversation"] = "InitSpotterVizConversation";
4555
4657
  /**
4556
4658
  * Opens the SpotterViz panel.
4659
+ * Payload: none.
4557
4660
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
4558
4661
  * @example
4559
4662
  * ```js
@@ -4563,6 +4666,7 @@ export var HostEvent;
4563
4666
  HostEvent["OpenSpotterVizPanel"] = "OpenSpotterVizPanel";
4564
4667
  /**
4565
4668
  * Closes the SpotterViz panel.
4669
+ * Payload: none.
4566
4670
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
4567
4671
  * @example
4568
4672
  * ```js
@@ -4573,6 +4677,7 @@ export var HostEvent;
4573
4677
  /**
4574
4678
  * Clears browser cache and fetches new data for liveboard ChartViz Containers.
4575
4679
  * Requires `enableLiveboardDataCache` to be enabled.
4680
+ * Payload: {@link ScheduleEmailRequest}.
4576
4681
  * @example
4577
4682
  * ```js
4578
4683
  * liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache);
@@ -4770,6 +4875,7 @@ export var Param;
4770
4875
  Param["SpotterDataSources"] = "spotterDataSources";
4771
4876
  Param["AnalystId"] = "analystId";
4772
4877
  Param["OpenSpotterOnLiveboardByDefault"] = "openSpotterOnLiveboardByDefault";
4878
+ Param["ShowAnswerEditPanel"] = "showAnswerEditPanel";
4773
4879
  })(Param || (Param = {}));
4774
4880
  /**
4775
4881
  * ThoughtSpot application pages include actions and menu commands
@@ -6774,6 +6880,225 @@ export var Action;
6774
6880
  * ```
6775
6881
  */
6776
6882
  Action["SpotterOnLiveboard"] = "spotterOnLiveboard";
6883
+ /**
6884
+ * Controls the visibility and disabled state of the "Chart Type" menu item
6885
+ * in Chart Settings V2.
6886
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6887
+ * @example
6888
+ * ```js
6889
+ * {
6890
+ * hiddenActions: [Action.ChartTypeSettings],
6891
+ * disabledActions: [Action.ChartTypeSettings],
6892
+ * }
6893
+ * ```
6894
+ */
6895
+ Action["ChartTypeSettings"] = "CHART_TYPE";
6896
+ /**
6897
+ * Controls the visibility and disabled state of the "Layout" menu item
6898
+ * in Chart Settings V2.
6899
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6900
+ * @example
6901
+ * ```js
6902
+ * {
6903
+ * hiddenActions: [Action.LayoutSettings],
6904
+ * disabledActions: [Action.LayoutSettings],
6905
+ * }
6906
+ * ```
6907
+ */
6908
+ Action["LayoutSettings"] = "LAYOUT";
6909
+ /**
6910
+ * Controls the visibility and disabled state of the "Column" menu item
6911
+ * in Chart Settings V2.
6912
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6913
+ * @example
6914
+ * ```js
6915
+ * {
6916
+ * hiddenActions: [Action.ColumnSettings],
6917
+ * disabledActions: [Action.ColumnSettings],
6918
+ * }
6919
+ * ```
6920
+ */
6921
+ Action["ColumnSettings"] = "COLUMN";
6922
+ /**
6923
+ * Controls the visibility and disabled state of the "Axis" menu item
6924
+ * in Chart Settings V2.
6925
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6926
+ * @example
6927
+ * ```js
6928
+ * {
6929
+ * hiddenActions: [Action.AxisSettings],
6930
+ * disabledActions: [Action.AxisSettings],
6931
+ * }
6932
+ * ```
6933
+ */
6934
+ Action["AxisSettings"] = "AXIS";
6935
+ /**
6936
+ * Controls the visibility and disabled state of the "Data Label" menu item
6937
+ * in Chart Settings V2.
6938
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6939
+ * @example
6940
+ * ```js
6941
+ * {
6942
+ * hiddenActions: [Action.DataLabelSettings],
6943
+ * disabledActions: [Action.DataLabelSettings],
6944
+ * }
6945
+ * ```
6946
+ */
6947
+ Action["DataLabelSettings"] = "DATA_LABEL";
6948
+ /**
6949
+ * Controls the visibility and disabled state of the "Tooltip" menu item
6950
+ * in Chart Settings V2.
6951
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6952
+ * @example
6953
+ * ```js
6954
+ * {
6955
+ * hiddenActions: [Action.TooltipSettings],
6956
+ * disabledActions: [Action.TooltipSettings],
6957
+ * }
6958
+ * ```
6959
+ */
6960
+ Action["TooltipSettings"] = "TOOLTIP";
6961
+ /**
6962
+ * Controls the visibility and disabled state of the "Legend" menu item
6963
+ * in Chart Settings V2.
6964
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6965
+ * @example
6966
+ * ```js
6967
+ * {
6968
+ * hiddenActions: [Action.LegendSettings],
6969
+ * disabledActions: [Action.LegendSettings],
6970
+ * }
6971
+ * ```
6972
+ */
6973
+ Action["LegendSettings"] = "LEGEND";
6974
+ /**
6975
+ * Controls the visibility and disabled state of the "Display" menu item
6976
+ * in Chart Settings V2.
6977
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6978
+ * @example
6979
+ * ```js
6980
+ * {
6981
+ * hiddenActions: [Action.DisplaySettings],
6982
+ * disabledActions: [Action.DisplaySettings],
6983
+ * }
6984
+ * ```
6985
+ */
6986
+ Action["DisplaySettings"] = "DISPLAY";
6987
+ /**
6988
+ * Controls the visibility and disabled state of the "Query Details" menu
6989
+ * item in Chart Settings V2.
6990
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
6991
+ * @example
6992
+ * ```js
6993
+ * {
6994
+ * hiddenActions: [Action.QuerySettings],
6995
+ * disabledActions: [Action.QuerySettings],
6996
+ * }
6997
+ * ```
6998
+ */
6999
+ Action["QuerySettings"] = "QUERY_DETAILS";
7000
+ /**
7001
+ * Controls the visibility and disabled state of the "Custom Action" menu
7002
+ * item in Chart Settings V2.
7003
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7004
+ * @example
7005
+ * ```js
7006
+ * {
7007
+ * hiddenActions: [Action.CustomSettings],
7008
+ * disabledActions: [Action.CustomSettings],
7009
+ * }
7010
+ * ```
7011
+ */
7012
+ Action["CustomSettings"] = "CUSTOM_ACTION";
7013
+ /**
7014
+ * Controls the visibility and disabled state of the "Muze AI" menu item
7015
+ * in Chart Settings V2.
7016
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7017
+ * @example
7018
+ * ```js
7019
+ * {
7020
+ * hiddenActions: [Action.MuzeAiSettings],
7021
+ * disabledActions: [Action.MuzeAiSettings],
7022
+ * }
7023
+ * ```
7024
+ */
7025
+ Action["MuzeAiSettings"] = "MUZE_AI";
7026
+ /**
7027
+ * Controls the visibility and disabled state of the "R Analysis" menu item
7028
+ * in Chart Settings V2.
7029
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
7030
+ * @example
7031
+ * ```js
7032
+ * {
7033
+ * hiddenActions: [Action.RAnalysisSettings],
7034
+ * disabledActions: [Action.RAnalysisSettings],
7035
+ * }
7036
+ * ```
7037
+ */
7038
+ Action["RAnalysisSettings"] = "R_ANALYSIS";
7039
+ /**
7040
+ * Controls the visibility and disabled state of the "Add to Collection" menu item.
7041
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
7042
+ * @example
7043
+ * ```js
7044
+ * {
7045
+ * hiddenActions: [Action.AddToCollection],
7046
+ * disabledActions: [Action.AddToCollection],
7047
+ * }
7048
+ * ```
7049
+ */
7050
+ Action["AddToCollection"] = "addToCollection";
7051
+ /**
7052
+ * Controls the visibility and disabled state of the "Create Collection" button.
7053
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
7054
+ * @example
7055
+ * ```js
7056
+ * {
7057
+ * hiddenActions: [Action.CreateCollection],
7058
+ * disabledActions: [Action.CreateCollection],
7059
+ * }
7060
+ * ```
7061
+ */
7062
+ Action["CreateCollection"] = "createCollection";
7063
+ /**
7064
+ * Controls the visibility and disabled state of the "Move" menu item in a
7065
+ * Collection.
7066
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
7067
+ * @example
7068
+ * ```js
7069
+ * {
7070
+ * hiddenActions: [Action.MoveToCollection],
7071
+ * disabledActions: [Action.MoveToCollection],
7072
+ * }
7073
+ * ```
7074
+ */
7075
+ Action["MoveToCollection"] = "moveToCollection";
7076
+ /**
7077
+ * Controls the visibility and disabled state of the "Remove" menu item in a
7078
+ * Collection.
7079
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
7080
+ * @example
7081
+ * ```js
7082
+ * {
7083
+ * hiddenActions: [Action.RemoveFromCollection],
7084
+ * disabledActions: [Action.RemoveFromCollection],
7085
+ * }
7086
+ * ```
7087
+ */
7088
+ Action["RemoveFromCollection"] = "removeFromCollection";
7089
+ /**
7090
+ * Controls the visibility and disabled state of the "Delete" menu item for a
7091
+ * Collection.
7092
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
7093
+ * @example
7094
+ * ```js
7095
+ * {
7096
+ * hiddenActions: [Action.DeleteCollection],
7097
+ * disabledActions: [Action.DeleteCollection],
7098
+ * }
7099
+ * ```
7100
+ */
7101
+ Action["DeleteCollection"] = "deleteCollection";
6777
7102
  })(Action || (Action = {}));
6778
7103
  export var PrefetchFeatures;
6779
7104
  (function (PrefetchFeatures) {