@thoughtspot/visual-embed-sdk 1.52.0 → 1.52.2-beta

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 (385) hide show
  1. package/cjs/package.json +19 -4
  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 +416 -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 +21 -143
  23. package/cjs/src/embed/app.d.ts.map +1 -1
  24. package/cjs/src/embed/app.js +21 -121
  25. package/cjs/src/embed/app.js.map +1 -1
  26. package/cjs/src/embed/app.spec.js +80 -26
  27. package/cjs/src/embed/app.spec.js.map +1 -1
  28. package/cjs/src/embed/auto-frame-renderer.js +1 -1
  29. package/cjs/src/embed/auto-frame-renderer.js.map +1 -1
  30. package/cjs/src/embed/auto-frame-renderer.spec.js +24 -13
  31. package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -1
  32. package/cjs/src/embed/bodyless-conversation.js +1 -1
  33. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  34. package/cjs/src/embed/conversation.d.ts +1 -0
  35. package/cjs/src/embed/conversation.d.ts.map +1 -1
  36. package/cjs/src/embed/conversation.js +4 -4
  37. package/cjs/src/embed/conversation.js.map +1 -1
  38. package/cjs/src/embed/conversation.spec.js +35 -24
  39. package/cjs/src/embed/conversation.spec.js.map +1 -1
  40. package/cjs/src/embed/embedConfig.spec.js +2 -1
  41. package/cjs/src/embed/embedConfig.spec.js.map +1 -1
  42. package/cjs/src/embed/events.spec.js +12 -2
  43. package/cjs/src/embed/events.spec.js.map +1 -1
  44. package/cjs/src/embed/hostEventClient/host-event-client.d.ts +5 -4
  45. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  46. package/cjs/src/embed/hostEventClient/host-event-client.js +34 -23
  47. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  48. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +50 -44
  49. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  50. package/cjs/src/embed/hostEventClient/utils.d.ts +10 -1
  51. package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
  52. package/cjs/src/embed/hostEventClient/utils.js +52 -6
  53. package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
  54. package/cjs/src/embed/hostEventClient/utils.spec.js +151 -0
  55. package/cjs/src/embed/hostEventClient/utils.spec.js.map +1 -1
  56. package/cjs/src/embed/liveboard.d.ts +13 -164
  57. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  58. package/cjs/src/embed/liveboard.js +72 -135
  59. package/cjs/src/embed/liveboard.js.map +1 -1
  60. package/cjs/src/embed/liveboard.spec.js +213 -29
  61. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  62. package/cjs/src/embed/search-bar.js +1 -1
  63. package/cjs/src/embed/search-bar.js.map +1 -1
  64. package/cjs/src/embed/search.d.ts +14 -0
  65. package/cjs/src/embed/search.d.ts.map +1 -1
  66. package/cjs/src/embed/search.js +5 -2
  67. package/cjs/src/embed/search.js.map +1 -1
  68. package/cjs/src/embed/search.spec.js +85 -0
  69. package/cjs/src/embed/search.spec.js.map +1 -1
  70. package/cjs/src/embed/spotter-utils.d.ts +8 -1
  71. package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
  72. package/cjs/src/embed/spotter-utils.js +14 -1
  73. package/cjs/src/embed/spotter-utils.js.map +1 -1
  74. package/cjs/src/embed/spotter-utils.spec.js +26 -0
  75. package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
  76. package/cjs/src/embed/ts-embed.d.ts +20 -22
  77. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  78. package/cjs/src/embed/ts-embed.js +171 -66
  79. package/cjs/src/embed/ts-embed.js.map +1 -1
  80. package/cjs/src/embed/ts-embed.spec.js +486 -38
  81. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  82. package/cjs/src/errors.js +1 -1
  83. package/cjs/src/errors.js.map +1 -1
  84. package/cjs/src/full-height.d.ts +137 -0
  85. package/cjs/src/full-height.d.ts.map +1 -0
  86. package/cjs/src/full-height.js +272 -0
  87. package/cjs/src/full-height.js.map +1 -0
  88. package/cjs/src/full-height.spec.d.ts +2 -0
  89. package/cjs/src/full-height.spec.d.ts.map +1 -0
  90. package/cjs/src/full-height.spec.js +835 -0
  91. package/cjs/src/full-height.spec.js.map +1 -0
  92. package/cjs/src/index.d.ts +5 -3
  93. package/cjs/src/index.d.ts.map +1 -1
  94. package/cjs/src/index.js +6 -4
  95. package/cjs/src/index.js.map +1 -1
  96. package/cjs/src/react/all-types-export.d.ts +1 -1
  97. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  98. package/cjs/src/react/all-types-export.js +2 -1
  99. package/cjs/src/react/all-types-export.js.map +1 -1
  100. package/cjs/src/react/all-types-export.parity.spec.js +55 -3
  101. package/cjs/src/react/all-types-export.parity.spec.js.map +1 -1
  102. package/cjs/src/types.d.ts +584 -24
  103. package/cjs/src/types.d.ts.map +1 -1
  104. package/cjs/src/types.js +370 -22
  105. package/cjs/src/types.js.map +1 -1
  106. package/cjs/src/utils/authService/tokenizedAuthService.spec.js +2 -1
  107. package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +1 -1
  108. package/cjs/src/utils/custom-actions.spec.js +4 -2
  109. package/cjs/src/utils/custom-actions.spec.js.map +1 -1
  110. package/cjs/src/utils/filterConverter.d.ts +106 -0
  111. package/cjs/src/utils/filterConverter.d.ts.map +1 -0
  112. package/cjs/src/utils/filterConverter.js +215 -0
  113. package/cjs/src/utils/filterConverter.js.map +1 -0
  114. package/cjs/src/utils/filterConverter.spec.d.ts +2 -0
  115. package/cjs/src/utils/filterConverter.spec.d.ts.map +1 -0
  116. package/cjs/src/utils/filterConverter.spec.js +709 -0
  117. package/cjs/src/utils/filterConverter.spec.js.map +1 -0
  118. package/cjs/src/utils/processData.spec.js +2 -1
  119. package/cjs/src/utils/processData.spec.js.map +1 -1
  120. package/cjs/src/utils/processTrigger.d.ts +3 -1
  121. package/cjs/src/utils/processTrigger.d.ts.map +1 -1
  122. package/cjs/src/utils/processTrigger.js +19 -51
  123. package/cjs/src/utils/processTrigger.js.map +1 -1
  124. package/cjs/src/utils/transport/iframe-transport.d.ts +55 -0
  125. package/cjs/src/utils/transport/iframe-transport.d.ts.map +1 -0
  126. package/cjs/src/utils/transport/iframe-transport.js +108 -0
  127. package/cjs/src/utils/transport/iframe-transport.js.map +1 -0
  128. package/cjs/src/utils/transport/iframe-transport.spec.d.ts +2 -0
  129. package/cjs/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
  130. package/cjs/src/utils/transport/iframe-transport.spec.js +140 -0
  131. package/cjs/src/utils/transport/iframe-transport.spec.js.map +1 -0
  132. package/cjs/src/utils.d.ts +18 -0
  133. package/cjs/src/utils.d.ts.map +1 -1
  134. package/cjs/src/utils.js +39 -1
  135. package/cjs/src/utils.js.map +1 -1
  136. package/cjs/src/utils.spec.js +62 -0
  137. package/cjs/src/utils.spec.js.map +1 -1
  138. package/dist/{index-BMppCU63.js → index-CcBYlGo9.js} +1 -1
  139. package/dist/src/contracts/contracts.spec.d.ts +2 -0
  140. package/dist/src/contracts/contracts.spec.d.ts.map +1 -0
  141. package/dist/src/contracts/embed-event-payloads.d.ts +73 -0
  142. package/dist/src/contracts/embed-event-payloads.d.ts.map +1 -0
  143. package/dist/src/contracts/host-event-contracts.d.ts +416 -0
  144. package/dist/src/contracts/host-event-contracts.d.ts.map +1 -0
  145. package/dist/src/contracts/index.d.ts +22 -0
  146. package/dist/src/contracts/index.d.ts.map +1 -0
  147. package/dist/src/contracts/ui-passthrough-contracts.d.ts +277 -0
  148. package/dist/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
  149. package/dist/src/embed/app.d.ts +21 -143
  150. package/dist/src/embed/app.d.ts.map +1 -1
  151. package/dist/src/embed/conversation.d.ts +1 -0
  152. package/dist/src/embed/conversation.d.ts.map +1 -1
  153. package/dist/src/embed/hostEventClient/host-event-client.d.ts +5 -4
  154. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  155. package/dist/src/embed/hostEventClient/utils.d.ts +10 -1
  156. package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
  157. package/dist/src/embed/liveboard.d.ts +13 -164
  158. package/dist/src/embed/liveboard.d.ts.map +1 -1
  159. package/dist/src/embed/search.d.ts +14 -0
  160. package/dist/src/embed/search.d.ts.map +1 -1
  161. package/dist/src/embed/spotter-utils.d.ts +8 -1
  162. package/dist/src/embed/spotter-utils.d.ts.map +1 -1
  163. package/dist/src/embed/ts-embed.d.ts +20 -22
  164. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  165. package/dist/src/full-height.d.ts +137 -0
  166. package/dist/src/full-height.d.ts.map +1 -0
  167. package/dist/src/full-height.spec.d.ts +2 -0
  168. package/dist/src/full-height.spec.d.ts.map +1 -0
  169. package/dist/src/index.d.ts +5 -3
  170. package/dist/src/index.d.ts.map +1 -1
  171. package/dist/src/react/all-types-export.d.ts +1 -1
  172. package/dist/src/react/all-types-export.d.ts.map +1 -1
  173. package/dist/src/types.d.ts +584 -24
  174. package/dist/src/types.d.ts.map +1 -1
  175. package/dist/src/utils/filterConverter.d.ts +106 -0
  176. package/dist/src/utils/filterConverter.d.ts.map +1 -0
  177. package/dist/src/utils/filterConverter.spec.d.ts +2 -0
  178. package/dist/src/utils/filterConverter.spec.d.ts.map +1 -0
  179. package/dist/src/utils/processTrigger.d.ts +3 -1
  180. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  181. package/dist/src/utils/transport/iframe-transport.d.ts +55 -0
  182. package/dist/src/utils/transport/iframe-transport.d.ts.map +1 -0
  183. package/dist/src/utils/transport/iframe-transport.spec.d.ts +2 -0
  184. package/dist/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
  185. package/dist/src/utils.d.ts +18 -0
  186. package/dist/src/utils.d.ts.map +1 -1
  187. package/dist/tsembed-react.es.js +1144 -412
  188. package/dist/tsembed-react.js +1143 -411
  189. package/dist/tsembed.es.js +1357 -418
  190. package/dist/tsembed.js +1352 -412
  191. package/dist/visual-embed-sdk-react-full.d.ts +1514 -651
  192. package/dist/visual-embed-sdk-react.d.ts +1351 -632
  193. package/dist/visual-embed-sdk.d.ts +1508 -668
  194. package/lib/package.json +19 -4
  195. package/lib/src/contracts/contracts.spec.d.ts +2 -0
  196. package/lib/src/contracts/contracts.spec.d.ts.map +1 -0
  197. package/lib/src/contracts/contracts.spec.js +342 -0
  198. package/lib/src/contracts/contracts.spec.js.map +1 -0
  199. package/lib/src/contracts/embed-event-payloads.d.ts +73 -0
  200. package/lib/src/contracts/embed-event-payloads.d.ts.map +1 -0
  201. package/lib/src/contracts/embed-event-payloads.js +2 -0
  202. package/lib/src/contracts/embed-event-payloads.js.map +1 -0
  203. package/lib/src/contracts/host-event-contracts.d.ts +416 -0
  204. package/lib/src/contracts/host-event-contracts.d.ts.map +1 -0
  205. package/lib/src/contracts/host-event-contracts.js +2 -0
  206. package/lib/src/contracts/host-event-contracts.js.map +1 -0
  207. package/lib/src/contracts/index.d.ts +22 -0
  208. package/lib/src/contracts/index.d.ts.map +1 -0
  209. package/lib/src/contracts/index.js +22 -0
  210. package/lib/src/contracts/index.js.map +1 -0
  211. package/lib/src/contracts/ui-passthrough-contracts.d.ts +277 -0
  212. package/lib/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
  213. package/lib/src/{embed/hostEventClient/contracts.js → contracts/ui-passthrough-contracts.js} +6 -2
  214. package/lib/src/contracts/ui-passthrough-contracts.js.map +1 -0
  215. package/lib/src/embed/app.d.ts +21 -143
  216. package/lib/src/embed/app.d.ts.map +1 -1
  217. package/lib/src/embed/app.js +23 -123
  218. package/lib/src/embed/app.js.map +1 -1
  219. package/lib/src/embed/app.spec.js +80 -26
  220. package/lib/src/embed/app.spec.js.map +1 -1
  221. package/lib/src/embed/auto-frame-renderer.js +1 -1
  222. package/lib/src/embed/auto-frame-renderer.js.map +1 -1
  223. package/lib/src/embed/auto-frame-renderer.spec.js +24 -13
  224. package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -1
  225. package/lib/src/embed/bodyless-conversation.js +1 -1
  226. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  227. package/lib/src/embed/conversation.d.ts +1 -0
  228. package/lib/src/embed/conversation.d.ts.map +1 -1
  229. package/lib/src/embed/conversation.js +5 -5
  230. package/lib/src/embed/conversation.js.map +1 -1
  231. package/lib/src/embed/conversation.spec.js +35 -24
  232. package/lib/src/embed/conversation.spec.js.map +1 -1
  233. package/lib/src/embed/embedConfig.spec.js +2 -1
  234. package/lib/src/embed/embedConfig.spec.js.map +1 -1
  235. package/lib/src/embed/events.spec.js +12 -2
  236. package/lib/src/embed/events.spec.js.map +1 -1
  237. package/lib/src/embed/hostEventClient/host-event-client.d.ts +5 -4
  238. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  239. package/lib/src/embed/hostEventClient/host-event-client.js +19 -8
  240. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  241. package/lib/src/embed/hostEventClient/host-event-client.spec.js +15 -9
  242. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  243. package/lib/src/embed/hostEventClient/utils.d.ts +10 -1
  244. package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
  245. package/lib/src/embed/hostEventClient/utils.js +48 -3
  246. package/lib/src/embed/hostEventClient/utils.js.map +1 -1
  247. package/lib/src/embed/hostEventClient/utils.spec.js +152 -1
  248. package/lib/src/embed/hostEventClient/utils.spec.js.map +1 -1
  249. package/lib/src/embed/liveboard.d.ts +13 -164
  250. package/lib/src/embed/liveboard.d.ts.map +1 -1
  251. package/lib/src/embed/liveboard.js +73 -136
  252. package/lib/src/embed/liveboard.js.map +1 -1
  253. package/lib/src/embed/liveboard.spec.js +213 -29
  254. package/lib/src/embed/liveboard.spec.js.map +1 -1
  255. package/lib/src/embed/search-bar.js +1 -1
  256. package/lib/src/embed/search-bar.js.map +1 -1
  257. package/lib/src/embed/search.d.ts +14 -0
  258. package/lib/src/embed/search.d.ts.map +1 -1
  259. package/lib/src/embed/search.js +5 -2
  260. package/lib/src/embed/search.js.map +1 -1
  261. package/lib/src/embed/search.spec.js +85 -0
  262. package/lib/src/embed/search.spec.js.map +1 -1
  263. package/lib/src/embed/spotter-utils.d.ts +8 -1
  264. package/lib/src/embed/spotter-utils.d.ts.map +1 -1
  265. package/lib/src/embed/spotter-utils.js +12 -0
  266. package/lib/src/embed/spotter-utils.js.map +1 -1
  267. package/lib/src/embed/spotter-utils.spec.js +27 -1
  268. package/lib/src/embed/spotter-utils.spec.js.map +1 -1
  269. package/lib/src/embed/ts-embed.d.ts +20 -22
  270. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  271. package/lib/src/embed/ts-embed.js +171 -66
  272. package/lib/src/embed/ts-embed.js.map +1 -1
  273. package/lib/src/embed/ts-embed.spec.js +484 -36
  274. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  275. package/lib/src/errors.js +1 -1
  276. package/lib/src/errors.js.map +1 -1
  277. package/lib/src/full-height.d.ts +137 -0
  278. package/lib/src/full-height.d.ts.map +1 -0
  279. package/lib/src/full-height.js +268 -0
  280. package/lib/src/full-height.js.map +1 -0
  281. package/lib/src/full-height.spec.d.ts +2 -0
  282. package/lib/src/full-height.spec.d.ts.map +1 -0
  283. package/lib/src/full-height.spec.js +833 -0
  284. package/lib/src/full-height.spec.js.map +1 -0
  285. package/lib/src/index.d.ts +5 -3
  286. package/lib/src/index.d.ts.map +1 -1
  287. package/lib/src/index.js +3 -2
  288. package/lib/src/index.js.map +1 -1
  289. package/lib/src/react/all-types-export.d.ts +1 -1
  290. package/lib/src/react/all-types-export.d.ts.map +1 -1
  291. package/lib/src/react/all-types-export.js +1 -1
  292. package/lib/src/react/all-types-export.js.map +1 -1
  293. package/lib/src/react/all-types-export.parity.spec.js +55 -3
  294. package/lib/src/react/all-types-export.parity.spec.js.map +1 -1
  295. package/lib/src/types.d.ts +584 -24
  296. package/lib/src/types.d.ts.map +1 -1
  297. package/lib/src/types.js +370 -22
  298. package/lib/src/types.js.map +1 -1
  299. package/lib/src/utils/authService/tokenizedAuthService.spec.js +2 -1
  300. package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +1 -1
  301. package/lib/src/utils/custom-actions.spec.js +4 -2
  302. package/lib/src/utils/custom-actions.spec.js.map +1 -1
  303. package/lib/src/utils/filterConverter.d.ts +106 -0
  304. package/lib/src/utils/filterConverter.d.ts.map +1 -0
  305. package/lib/src/utils/filterConverter.js +210 -0
  306. package/lib/src/utils/filterConverter.js.map +1 -0
  307. package/lib/src/utils/filterConverter.spec.d.ts +2 -0
  308. package/lib/src/utils/filterConverter.spec.d.ts.map +1 -0
  309. package/lib/src/utils/filterConverter.spec.js +707 -0
  310. package/lib/src/utils/filterConverter.spec.js.map +1 -0
  311. package/lib/src/utils/processData.spec.js +2 -1
  312. package/lib/src/utils/processData.spec.js.map +1 -1
  313. package/lib/src/utils/processTrigger.d.ts +3 -1
  314. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  315. package/lib/src/utils/processTrigger.js +19 -51
  316. package/lib/src/utils/processTrigger.js.map +1 -1
  317. package/lib/src/utils/transport/iframe-transport.d.ts +55 -0
  318. package/lib/src/utils/transport/iframe-transport.d.ts.map +1 -0
  319. package/lib/src/utils/transport/iframe-transport.js +101 -0
  320. package/lib/src/utils/transport/iframe-transport.js.map +1 -0
  321. package/lib/src/utils/transport/iframe-transport.spec.d.ts +2 -0
  322. package/lib/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
  323. package/lib/src/utils/transport/iframe-transport.spec.js +138 -0
  324. package/lib/src/utils/transport/iframe-transport.spec.js.map +1 -0
  325. package/lib/src/utils.d.ts +18 -0
  326. package/lib/src/utils.d.ts.map +1 -1
  327. package/lib/src/utils.js +37 -0
  328. package/lib/src/utils.js.map +1 -1
  329. package/lib/src/utils.spec.js +63 -1
  330. package/lib/src/utils.spec.js.map +1 -1
  331. package/lib/src/visual-embed-sdk.d.ts +1508 -668
  332. package/package.json +19 -4
  333. package/src/contracts/contracts.spec.ts +392 -0
  334. package/src/contracts/embed-event-payloads.ts +83 -0
  335. package/src/contracts/host-event-contracts.ts +500 -0
  336. package/src/contracts/index.ts +53 -0
  337. package/src/contracts/ui-passthrough-contracts.ts +301 -0
  338. package/src/embed/app.spec.ts +101 -34
  339. package/src/embed/app.ts +42 -268
  340. package/src/embed/auto-frame-renderer.spec.ts +24 -13
  341. package/src/embed/auto-frame-renderer.ts +1 -1
  342. package/src/embed/bodyless-conversation.ts +1 -1
  343. package/src/embed/conversation.spec.ts +38 -27
  344. package/src/embed/conversation.ts +5 -5
  345. package/src/embed/embedConfig.spec.ts +2 -1
  346. package/src/embed/events.spec.ts +14 -2
  347. package/src/embed/hostEventClient/host-event-client.spec.ts +16 -10
  348. package/src/embed/hostEventClient/host-event-client.ts +31 -10
  349. package/src/embed/hostEventClient/utils.spec.ts +176 -1
  350. package/src/embed/hostEventClient/utils.ts +53 -3
  351. package/src/embed/liveboard.spec.ts +261 -41
  352. package/src/embed/liveboard.ts +85 -300
  353. package/src/embed/search-bar.tsx +1 -1
  354. package/src/embed/search.spec.ts +103 -0
  355. package/src/embed/search.ts +21 -1
  356. package/src/embed/spotter-utils.spec.ts +29 -0
  357. package/src/embed/spotter-utils.ts +16 -0
  358. package/src/embed/ts-embed.spec.ts +650 -36
  359. package/src/embed/ts-embed.ts +205 -76
  360. package/src/errors.ts +1 -1
  361. package/src/full-height.spec.ts +1008 -0
  362. package/src/full-height.ts +361 -0
  363. package/src/index.ts +103 -5
  364. package/src/react/all-types-export.parity.spec.ts +63 -3
  365. package/src/react/all-types-export.ts +49 -0
  366. package/src/types.ts +584 -22
  367. package/src/utils/authService/tokenizedAuthService.spec.ts +2 -1
  368. package/src/utils/custom-actions.spec.ts +4 -2
  369. package/src/utils/filterConverter.spec.ts +801 -0
  370. package/src/utils/filterConverter.ts +304 -0
  371. package/src/utils/processData.spec.ts +2 -1
  372. package/src/utils/processTrigger.ts +28 -58
  373. package/src/utils/transport/iframe-transport.spec.ts +177 -0
  374. package/src/utils/transport/iframe-transport.ts +122 -0
  375. package/src/utils.spec.ts +71 -0
  376. package/src/utils.ts +38 -0
  377. package/cjs/src/embed/hostEventClient/contracts.d.ts +0 -231
  378. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +0 -1
  379. package/cjs/src/embed/hostEventClient/contracts.js.map +0 -1
  380. package/dist/src/embed/hostEventClient/contracts.d.ts +0 -231
  381. package/dist/src/embed/hostEventClient/contracts.d.ts.map +0 -1
  382. package/lib/src/embed/hostEventClient/contracts.d.ts +0 -231
  383. package/lib/src/embed/hostEventClient/contracts.d.ts.map +0 -1
  384. package/lib/src/embed/hostEventClient/contracts.js.map +0 -1
  385. package/src/embed/hostEventClient/contracts.ts +0 -262
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { CustomCssVariables } from './css-variables';
9
9
  import type { SessionInterface } from './utils/graphql/answerService/answerService';
10
+ import type { Applicability } from './contracts/ui-passthrough-contracts';
10
11
  /**
11
12
  * The authentication mechanism for allowing access to
12
13
  * the embedded app
@@ -2456,6 +2457,15 @@ export interface RuntimeParameter {
2456
2457
  * Values
2457
2458
  */
2458
2459
  value: number | boolean | string;
2460
+ /**
2461
+ * Whether the parameter is visible to the user (`UpdateParameters` only).
2462
+ */
2463
+ isVisibleToUser?: boolean;
2464
+ /**
2465
+ * Scope of the update (`UpdateParameters` only). Omitting it, or `level`,
2466
+ * targets the Liveboard level.
2467
+ */
2468
+ applicability?: Applicability;
2459
2469
  }
2460
2470
  /**
2461
2471
  * Event types emitted by the embedded ThoughtSpot application.
@@ -2907,6 +2917,9 @@ export declare enum EmbedEvent {
2907
2917
  Download = "download",
2908
2918
  /**
2909
2919
  * Emitted when the download action is triggered on an Answer.
2920
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer,
2921
+ * Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
2922
+ * accepts the union now; per-context enforced next release.
2910
2923
  * Use start:true to subscribe to when download is initiated, or end:true to
2911
2924
  * subscribe to when download is completed. Default is end:true.
2912
2925
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
@@ -2923,6 +2936,9 @@ export declare enum EmbedEvent {
2923
2936
  DownloadAsPng = "downloadAsPng",
2924
2937
  /**
2925
2938
  * Emitted when the Download as PDF action is triggered on an Answer
2939
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer; plus
2940
+ * liveboardId on Liveboard), {@link RequiredVizRequest} (Spotter). trigger()
2941
+ * accepts the union now; per-context enforced next release.
2926
2942
  * Use start:true to subscribe to when download as PDF is initiated, or end:true to
2927
2943
  * subscribe to when download as PDF is completed. Default is end:true.
2928
2944
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
@@ -2939,6 +2955,9 @@ export declare enum EmbedEvent {
2939
2955
  DownloadAsPdf = "downloadAsPdf",
2940
2956
  /**
2941
2957
  * Emitted when the Download as CSV action is triggered on an Answer.
2958
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer,
2959
+ * Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
2960
+ * accepts the union now; per-context enforced next release.
2942
2961
  * Use start:true to subscribe to when download as CSV is initiated, or end:true to
2943
2962
  * subscribe to when download as CSV is completed. Default is end:true.
2944
2963
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
@@ -2955,6 +2974,9 @@ export declare enum EmbedEvent {
2955
2974
  DownloadAsCsv = "downloadAsCsv",
2956
2975
  /**
2957
2976
  * Emitted when the Download as XLSX action is triggered on an Answer.
2977
+ * Payload varies by context: {@link VizScopedRequest} (Search, Answer,
2978
+ * Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
2979
+ * accepts the union now; per-context enforced next release.
2958
2980
  * Use start:true to subscribe to when download as XLSX is initiated, or end:true to
2959
2981
  * subscribe to when download as XLSX is completed. Default is end:true.
2960
2982
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
@@ -3233,6 +3255,9 @@ export declare enum EmbedEvent {
3233
3255
  Schedule = "subscription",
3234
3256
  /**
3235
3257
  * Emitted when a user clicks **Edit** on a Liveboard or visualization
3258
+ * Payload varies by context: {@link VizScopedRequest} (Liveboard),
3259
+ * {@link RequiredVizRequest} (Spotter, vizId required). trigger() accepts the
3260
+ * union now; per-context enforced next release.
3236
3261
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
3237
3262
  * @example
3238
3263
  * ```js
@@ -4311,6 +4336,7 @@ export declare enum HostEvent {
4311
4336
  * the search query string.
4312
4337
  * Supported in `AppEmbed` and `SearchEmbed` deployments.
4313
4338
  * Includes the following properties:
4339
+ * Payload: {@link SearchRequest}.
4314
4340
  * @param - Includes the following keys:
4315
4341
  * - `searchQuery`: Query string with search tokens.
4316
4342
  * - `dataSources`: Data source GUID to search on.
@@ -4338,6 +4364,9 @@ export declare enum HostEvent {
4338
4364
  Search = "search",
4339
4365
  /**
4340
4366
  * Triggers a drill on certain points of the specified column
4367
+ * Payload: {@link DrillDownRequest}; in Liveboard context vizId is required
4368
+ * ({@link RequiredVizRequest}). trigger() accepts the union now; per-context
4369
+ * enforced next release.
4341
4370
  * Includes the following properties:
4342
4371
  * @param - Includes the following keys:
4343
4372
  * - `points`: An object containing `selectedPoints` and/or `clickedPoint`
@@ -4417,6 +4446,8 @@ export declare enum HostEvent {
4417
4446
  Reload = "reload",
4418
4447
  /**
4419
4448
  * Get iframe URL for the current embed view.
4449
+ * Payload: none.
4450
+ * Response: {@link GetIframeUrlResponse}.
4420
4451
  * @example
4421
4452
  * ```js
4422
4453
  * const url = embed.trigger(HostEvent.GetIframeUrl);
@@ -4435,6 +4466,7 @@ export declare enum HostEvent {
4435
4466
  GetIframeUrl = "GetIframeUrl",
4436
4467
  /**
4437
4468
  * Display specific visualizations on a Liveboard.
4469
+ * Payload: `string[]`.
4438
4470
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
4439
4471
  * in this parameter will be hidden.
4440
4472
  * @example
@@ -4457,6 +4489,7 @@ export declare enum HostEvent {
4457
4489
  SetVisibleVizs = "SetPinboardVisibleVizs",
4458
4490
  /**
4459
4491
  * Set a Liveboard tab as an active tab.
4492
+ * Payload: {@link SetActiveTabRequest}.
4460
4493
  * @param - tabId - string of id of Tab to show
4461
4494
  * @example
4462
4495
  * ```js
@@ -4484,6 +4517,7 @@ export declare enum HostEvent {
4484
4517
  * and `AppEmbed` only. In full application embedding, this event updates
4485
4518
  * the runtime filters applied on the Liveboard and saved Answer objects.
4486
4519
  *
4520
+ * Payload: {@link RuntimeFilter}[].
4487
4521
  * @param - Array of {@link RuntimeFilter} objects. Each item includes:
4488
4522
  * - `columnName`: Name of the column to filter on.
4489
4523
  * - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
@@ -4525,6 +4559,7 @@ export declare enum HostEvent {
4525
4559
  * Accepts either a plain value or an object with `path`
4526
4560
  * and an optional `replace` flag.
4527
4561
  *
4562
+ * Payload: `string` | `number` | {@link NavigateRequest}.
4528
4563
  * @param data - A string path, a numeric history delta, or an object
4529
4564
  * `{ path: string | number, replace?: boolean }`.
4530
4565
  * - `path` — the route to navigate to, or a history delta such as `1`
@@ -4552,6 +4587,9 @@ export declare enum HostEvent {
4552
4587
  /**
4553
4588
  * Open the filter panel for a particular column.
4554
4589
  * Works with Search and Liveboard embed.
4590
+ * Payload: {@link OpenFilterRequest} (the cross-context superset). The
4591
+ * accepted fields vary by context: {@link OpenFilterLiveboardRequest},
4592
+ * {@link OpenFilterSpotterRequest}, {@link OpenFilterSearchRequest}.
4555
4593
  * @param - { columnId: string,
4556
4594
  * name: string,
4557
4595
  * type: ATTRIBUTE/MEASURE,
@@ -4634,6 +4672,7 @@ export declare enum HostEvent {
4634
4672
  /**
4635
4673
  * Open the parameter panel for a particular parameter on a Liveboard.
4636
4674
  * Mirrors {@link HostEvent.OpenFilter} for parameters.
4675
+ * Payload: {@link OpenParameterRequest}.
4637
4676
  * @param - Includes the following keys:
4638
4677
  * - `parameter`: An object identifying the parameter to open, for
4639
4678
  * example, `{ parameterId: '<parameter-GUID>' }`.
@@ -4665,6 +4704,7 @@ export declare enum HostEvent {
4665
4704
  OpenParameter = "openParameter",
4666
4705
  /**
4667
4706
  * Add columns to the current search query.
4707
+ * Payload: `{ columnIds: string[] }`.
4668
4708
  * @param - { columnIds: string[] }
4669
4709
  * @example
4670
4710
  * ```js
@@ -4683,6 +4723,7 @@ export declare enum HostEvent {
4683
4723
  AddColumns = "addColumns",
4684
4724
  /**
4685
4725
  * Remove a column from the current search query.
4726
+ * Payload: `{ columnId: string }`.
4686
4727
  * @param - { columnId: string }
4687
4728
  * @example
4688
4729
  * ```js
@@ -4707,6 +4748,8 @@ export declare enum HostEvent {
4707
4748
  * sorting, toggling of legends, and data drill down.
4708
4749
  * For more information, see
4709
4750
  * link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
4751
+ * Payload: none.
4752
+ * Response: {@link GetExportRequestForCurrentPinboardResponse}.
4710
4753
  * @example
4711
4754
  * ```js
4712
4755
  * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
@@ -4728,6 +4771,8 @@ export declare enum HostEvent {
4728
4771
  * requiring additional user input via the *Pin to Liveboard* modal, define
4729
4772
  * the following parameters:
4730
4773
  *
4774
+ * Payload: {@link PinAnswerToLiveboardRequest}.
4775
+ * Response: {@link PinAnswerToLiveboardResponse}.
4731
4776
  * @param - Includes the following keys:
4732
4777
  * - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
4733
4778
  * Liveboard.
@@ -4842,6 +4887,7 @@ export declare enum HostEvent {
4842
4887
  LiveboardInfo = "pinboardInfo",
4843
4888
  /**
4844
4889
  * Trigger the **Schedule** action on an embedded Liveboard.
4890
+ * Payload: {@link VizScopedRequest}.
4845
4891
  * @example
4846
4892
  * ```js
4847
4893
  * liveboardEmbed.trigger(HostEvent.Schedule)
@@ -4857,6 +4903,7 @@ export declare enum HostEvent {
4857
4903
  Schedule = "subscription",
4858
4904
  /**
4859
4905
  * Trigger the **Manage schedule** action on an embedded Liveboard
4906
+ * Payload: {@link VizScopedRequest}.
4860
4907
  * @example
4861
4908
  * ```js
4862
4909
  * liveboardEmbed.trigger(HostEvent.SchedulesList)
@@ -4873,6 +4920,7 @@ export declare enum HostEvent {
4873
4920
  /**
4874
4921
  * Trigger the **Export TML** action on an embedded Liveboard or
4875
4922
  * Answer.
4923
+ * Payload: {@link VizScopedRequest}.
4876
4924
  * @example
4877
4925
  * ```js
4878
4926
  * liveboardEmbed.trigger(HostEvent.ExportTML)
@@ -4895,6 +4943,7 @@ export declare enum HostEvent {
4895
4943
  /**
4896
4944
  * Trigger the **Edit TML** action on an embedded Liveboard or
4897
4945
  * saved Answers in the full application embedding.
4946
+ * Payload: {@link VizScopedRequest}.
4898
4947
  * @example
4899
4948
  * ```js
4900
4949
  * liveboardEmbed.trigger(HostEvent.EditTML)
@@ -4916,6 +4965,7 @@ export declare enum HostEvent {
4916
4965
  EditTML = "editTSL",
4917
4966
  /**
4918
4967
  * Trigger the **Update TML** action on an embedded Liveboard.
4968
+ * Payload: {@link VizScopedRequest}.
4919
4969
  * @example
4920
4970
  * ```js
4921
4971
  * liveboardEmbed.trigger(HostEvent.UpdateTML)
@@ -4933,6 +4983,7 @@ export declare enum HostEvent {
4933
4983
  * Trigger the **Download PDF** action on an embedded Liveboard,
4934
4984
  * visualization or Answer.
4935
4985
  *
4986
+ * Payload: {@link VizScopedRequest} plus optional `liveboardId`.
4936
4987
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
4937
4988
  *
4938
4989
  * **NOTE**: The **Download** > **PDF** action is available on
@@ -4983,6 +5034,7 @@ export declare enum HostEvent {
4983
5034
  /**
4984
5035
  * Trigger the **AI Highlights** action on an embedded Liveboard
4985
5036
  *
5037
+ * Payload: none.
4986
5038
  * @example
4987
5039
  * ```js
4988
5040
  * liveboardEmbed.trigger(HostEvent.AIHighlights)
@@ -5037,6 +5089,9 @@ export declare enum HostEvent {
5037
5089
  MakeACopy = "makeACopy",
5038
5090
  /**
5039
5091
  * Trigger the **Delete** action for a Liveboard.
5092
+ * Payload varies by context: {@link RequiredVizRequest} (Liveboard, vizId
5093
+ * required), {@link VizScopedRequest} (Search). trigger() accepts the union
5094
+ * now; per-context enforced next release.
5040
5095
  * @example
5041
5096
  * ```js
5042
5097
  * appEmbed.trigger(HostEvent.Remove)
@@ -5051,6 +5106,7 @@ export declare enum HostEvent {
5051
5106
  Remove = "delete",
5052
5107
  /**
5053
5108
  * Trigger the **Explore** action on a visualization.
5109
+ * Payload: {@link RequiredVizRequest}.
5054
5110
  * @param - an object with `vizId` as a key
5055
5111
  * @example
5056
5112
  * ```js
@@ -5070,6 +5126,7 @@ export declare enum HostEvent {
5070
5126
  /**
5071
5127
  * Trigger the **Create alert** action on a KPI chart
5072
5128
  * in a Liveboard or saved Answer.
5129
+ * Payload: {@link VizScopedRequest}.
5073
5130
  * @param - an object with `vizId` as a key
5074
5131
  * @example
5075
5132
  * ```js
@@ -5101,6 +5158,7 @@ export declare enum HostEvent {
5101
5158
  /**
5102
5159
  * Trigger the **Manage alerts** action on a KPI chart
5103
5160
  * in a visualization or saved Answer.
5161
+ * Payload: {@link VizScopedRequest}.
5104
5162
  * @param - an object with `vizId` as a key
5105
5163
  * @example
5106
5164
  * ```js
@@ -5138,6 +5196,7 @@ export declare enum HostEvent {
5138
5196
  * on a Liveboard.
5139
5197
  *
5140
5198
  * This event is not supported in visualization embed and search embed.
5199
+ * Payload: {@link VizScopedRequest}.
5141
5200
  * @param - Object parameter. Includes the following keys:
5142
5201
  * - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
5143
5202
  * pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
@@ -5180,6 +5239,7 @@ export declare enum HostEvent {
5180
5239
  Edit = "edit",
5181
5240
  /**
5182
5241
  * Trigger the **Copy link** action on a Liveboard or visualization
5242
+ * Payload: {@link VizScopedRequest}.
5183
5243
  * @param - object - to trigger the action for a
5184
5244
  * specific visualization in Liveboard embed, pass in `vizId` as a key
5185
5245
  * @example
@@ -5225,6 +5285,7 @@ export declare enum HostEvent {
5225
5285
  CopyLink = "embedDocument",
5226
5286
  /**
5227
5287
  * Trigger the **Present** action on a Liveboard or visualization
5288
+ * Payload: {@link VizScopedRequest}.
5228
5289
  * @param - object - to trigger the action for a specific visualization
5229
5290
  * in Liveboard embed, pass in `vizId` as a key
5230
5291
  * @example
@@ -5270,6 +5331,8 @@ export declare enum HostEvent {
5270
5331
  Present = "present",
5271
5332
  /**
5272
5333
  * Get TML for the current search.
5334
+ * Payload: {@link GetTMLRequest}.
5335
+ * Response: `Record<string, any>`.
5273
5336
  * @example
5274
5337
  * ```js
5275
5338
  * searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
@@ -5319,6 +5382,7 @@ export declare enum HostEvent {
5319
5382
  * Trigger the **Show underlying data** action on a
5320
5383
  * chart or table.
5321
5384
  *
5385
+ * Payload: {@link VizScopedRequest}.
5322
5386
  * @param - an object with vizId as a key
5323
5387
  * @example
5324
5388
  * ```js
@@ -5352,6 +5416,7 @@ export declare enum HostEvent {
5352
5416
  * Trigger the **Delete** action for a visualization
5353
5417
  * in an embedded Liveboard, or a chart or table
5354
5418
  * generated from Search.
5419
+ * Payload: {@link VizScopedRequest}.
5355
5420
  * @param - Liveboard embed takes an object with `vizId` as a key.
5356
5421
  * Can be left empty if embedding Search or visualization.
5357
5422
  * @example
@@ -5380,6 +5445,7 @@ export declare enum HostEvent {
5380
5445
  /**
5381
5446
  * Trigger the **SpotIQ analyze** action on a
5382
5447
  * chart or table.
5448
+ * Payload: {@link VizScopedRequest}.
5383
5449
  * @param - Liveboard embed takes `vizId` as a
5384
5450
  * key. Can be left undefined when embedding Search or
5385
5451
  * visualization.
@@ -5442,6 +5508,7 @@ export declare enum HostEvent {
5442
5508
  /**
5443
5509
  * Trigger the **Download** > **PNG** action on
5444
5510
  * charts in the embedded view.
5511
+ * Payload: {@link VizScopedRequest}.
5445
5512
  * @example
5446
5513
  * ```js
5447
5514
  * liveboardEmbed.trigger(HostEvent.DownloadAsPng,
@@ -5472,6 +5539,7 @@ export declare enum HostEvent {
5472
5539
  /**
5473
5540
  * Trigger the **Download** > **CSV** action on tables in
5474
5541
  * the embedded view.
5542
+ * Payload: {@link VizScopedRequest}.
5475
5543
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
5476
5544
  * @example
5477
5545
  * ```js
@@ -5511,6 +5579,7 @@ export declare enum HostEvent {
5511
5579
  /**
5512
5580
  * Trigger the **Download** > **XLSX** action on tables
5513
5581
  * in the embedded view.
5582
+ * Payload: {@link VizScopedRequest}.
5514
5583
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
5515
5584
  * @example
5516
5585
  * ```js
@@ -5550,6 +5619,7 @@ export declare enum HostEvent {
5550
5619
  /**
5551
5620
  * Trigger the **Share** action on an embedded
5552
5621
  * Liveboard or Answer.
5622
+ * Payload: {@link VizScopedRequest}.
5553
5623
  * @example
5554
5624
  * ```js
5555
5625
  * liveboardEmbed.trigger(HostEvent.Share)
@@ -5576,6 +5646,7 @@ export declare enum HostEvent {
5576
5646
  * Trigger the **Save** action on a Liveboard, Answer, or Spotter.
5577
5647
  * Saves the changes.
5578
5648
  *
5649
+ * Payload: {@link VizScopedRequest}.
5579
5650
  * @param - `vizId` refers to the Spotter Visualization Id used in Spotter embed.
5580
5651
  * It is required and can be retrieved from the data embed event.
5581
5652
  *
@@ -5627,6 +5698,7 @@ export declare enum HostEvent {
5627
5698
  /**
5628
5699
  * Trigger the **Sync to Sheets** action on an embedded visualization or Answer
5629
5700
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
5701
+ * Payload: {@link VizScopedRequest}.
5630
5702
  * @param - an object with `vizId` as a key
5631
5703
  * @example
5632
5704
  * ```js
@@ -5657,6 +5729,7 @@ export declare enum HostEvent {
5657
5729
  * Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
5658
5730
  * Sends data from an Answer or Liveboard visualization to third-party apps such
5659
5731
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
5732
+ * Payload: {@link VizScopedRequest}.
5660
5733
  * @param - an object with vizId as a key
5661
5734
  * @example
5662
5735
  * ```js
@@ -5687,6 +5760,7 @@ export declare enum HostEvent {
5687
5760
  * Trigger the **Manage pipelines** action on an embedded
5688
5761
  * visualization or Answer.
5689
5762
  * Allows users to manage ThoughtSpot Sync pipelines.
5763
+ * Payload: {@link VizScopedRequest}.
5690
5764
  * @param - an object with `vizId` as a key
5691
5765
  * @example
5692
5766
  * ```js
@@ -5715,6 +5789,7 @@ export declare enum HostEvent {
5715
5789
  ManagePipelines = "manage-pipeline",
5716
5790
  /**
5717
5791
  * Reset search operation on the Search or Answer page.
5792
+ * Payload: none.
5718
5793
  * @example
5719
5794
  * ```js
5720
5795
  * searchEmbed.trigger(HostEvent.ResetSearch)
@@ -5742,10 +5817,18 @@ export declare enum HostEvent {
5742
5817
  * whole Liveboard.
5743
5818
  * The `applicability` attribute is available from SDK: 1.53.0 |
5744
5819
  * ThoughtSpot: 26.10.0.cl.
5820
+ * Payload: {@link GetFiltersRequest}.
5821
+ * Response: {@link GetFiltersResponse}.
5745
5822
  * @example
5746
5823
  * ```js
5747
5824
  * const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
5748
5825
  * console.log('data', data);
5826
+ * // {
5827
+ * // liveboardFilters: [ ... ],
5828
+ * // runtimeFilters: [
5829
+ * // { columnName: "Region", operator: "IN", values: ["West"] }
5830
+ * // ]
5831
+ * // }
5749
5832
  * ```
5750
5833
  * @example
5751
5834
  * ```js
@@ -5761,6 +5844,7 @@ export declare enum HostEvent {
5761
5844
  GetFilters = "getFilters",
5762
5845
  /**
5763
5846
  * Update one or several filters applied on a Liveboard.
5847
+ * Payload: {@link UpdateFiltersRequest}.
5764
5848
  * @param - Includes the following keys:
5765
5849
  * - `filter`: A single filter object containing column name, filter operator, and
5766
5850
  * values.
@@ -5769,9 +5853,9 @@ export declare enum HostEvent {
5769
5853
  *
5770
5854
  * Each filter object must include the following attributes:
5771
5855
  *
5772
- * `column` - Name of the column to filter on.
5856
+ * `columnName` - Name of the column to filter on.
5773
5857
  *
5774
- * `oper` - Filter operator, for example, EQ, IN, CONTAINS.
5858
+ * `operator` - Filter operator, for example, EQ, IN, CONTAINS.
5775
5859
  * For information about the supported filter operators,
5776
5860
  * see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
5777
5861
  *
@@ -5798,8 +5882,8 @@ export declare enum HostEvent {
5798
5882
  *
5799
5883
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
5800
5884
  * filter: {
5801
- * column: "item type",
5802
- * oper: "IN",
5885
+ * columnName: "item type",
5886
+ * operator: "IN",
5803
5887
  * values: ["bags","shirts"]
5804
5888
  * }
5805
5889
  * });
@@ -5809,8 +5893,8 @@ export declare enum HostEvent {
5809
5893
  *
5810
5894
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
5811
5895
  * filter: {
5812
- * column: "date",
5813
- * oper: "EQ",
5896
+ * columnName: "date",
5897
+ * operator: "EQ",
5814
5898
  * values: ["JULY","2023"],
5815
5899
  * type: "MONTH_YEAR"
5816
5900
  * }
@@ -5821,18 +5905,18 @@ export declare enum HostEvent {
5821
5905
  * ```js
5822
5906
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
5823
5907
  * filters: [{
5824
- * column: "Item Type",
5825
- * oper: 'IN',
5908
+ * columnName: "Item Type",
5909
+ * operator: 'IN',
5826
5910
  * values: ["bags","shirts"]
5827
5911
  * },
5828
5912
  * {
5829
- * column: "Region",
5830
- * oper: 'IN',
5913
+ * columnName: "Region",
5914
+ * operator: 'IN',
5831
5915
  * values: ["West","Midwest"]
5832
5916
  * },
5833
5917
  * {
5834
- * column: "Date",
5835
- * oper: 'EQ',
5918
+ * columnName: "Date",
5919
+ * operator: 'EQ',
5836
5920
  * values: ["2023-07-31"],
5837
5921
  * type: "EXACT_DATE"
5838
5922
  * }]
@@ -5846,13 +5930,13 @@ export declare enum HostEvent {
5846
5930
  * ```js
5847
5931
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
5848
5932
  * filters: [{
5849
- * column: "(Sample) Retail - Apparel::city",
5850
- * oper: 'IN',
5933
+ * columnName: "(Sample) Retail - Apparel::city",
5934
+ * operator: 'IN',
5851
5935
  * values: ["atlanta"]
5852
5936
  * },
5853
5937
  * {
5854
- * column: "(Sample) Retail - Apparel::Region",
5855
- * oper: 'IN',
5938
+ * columnName: "(Sample) Retail - Apparel::Region",
5939
+ * operator: 'IN',
5856
5940
  * values: ["West","Midwest"]
5857
5941
  * }]
5858
5942
  * });
@@ -5863,8 +5947,8 @@ export declare enum HostEvent {
5863
5947
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
5864
5948
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
5865
5949
  * filter: {
5866
- * column: "item type",
5867
- * oper: "IN",
5950
+ * columnName: "item type",
5951
+ * operator: "IN",
5868
5952
  * values: ["shoes", "boots"]
5869
5953
  * }
5870
5954
  * }, ContextType.Liveboard);
@@ -5874,8 +5958,8 @@ export declare enum HostEvent {
5874
5958
  * // Scope the filter to a specific Liveboard tab
5875
5959
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
5876
5960
  * filter: {
5877
- * column: "item type",
5878
- * oper: "IN",
5961
+ * columnName: "item type",
5962
+ * operator: "IN",
5879
5963
  * values: ["bags", "shirts"],
5880
5964
  * applicability: {
5881
5965
  * level: "TAB",
@@ -5884,11 +5968,19 @@ export declare enum HostEvent {
5884
5968
  * }
5885
5969
  * });
5886
5970
  * ```
5971
+ * Use `columnName` and `operator` - the same spelling as
5972
+ * {@link RuntimeFilter}. The older `column` and `oper` spellings are
5973
+ * deprecated; they are still accepted, but pass only one spelling of each
5974
+ * field, never both. To reapply the filter state captured from
5975
+ * {@link EmbedEvent.FilterChanged}, use `convertFilterChangedToUpdateFiltersPayload`
5976
+ * to convert its payload into the shape expected here.
5887
5977
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
5888
5978
  */
5889
5979
  UpdateFilters = "updateFilters",
5890
5980
  /**
5891
5981
  * Get tab details for the current Liveboard.
5982
+ * Payload: none.
5983
+ * Response: {@link GetTabsResponse}.
5892
5984
  * @example
5893
5985
  * ```js
5894
5986
  * liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
@@ -5914,6 +6006,8 @@ export declare enum HostEvent {
5914
6006
  /**
5915
6007
  * Get group details for the current Liveboard.
5916
6008
  * Mirrors {@link HostEvent.GetTabs} for filter/parameter groups.
6009
+ * Payload: none.
6010
+ * Response: {@link GetGroupsResponse}.
5917
6011
  * @example
5918
6012
  * ```js
5919
6013
  * liveboardEmbed.trigger(HostEvent.GetGroups).then((groupDetails) => {
@@ -5938,6 +6032,7 @@ export declare enum HostEvent {
5938
6032
  GetGroups = "getGroups",
5939
6033
  /**
5940
6034
  * Set the visible tabs on a Liveboard.
6035
+ * Payload: `string[]`.
5941
6036
  * @param - an array of ids of tabs to show, the IDs not passed
5942
6037
  * will be hidden.
5943
6038
  * @example
@@ -5960,6 +6055,7 @@ export declare enum HostEvent {
5960
6055
  SetVisibleTabs = "SetPinboardVisibleTabs",
5961
6056
  /**
5962
6057
  * Set the hidden tabs on a Liveboard.
6058
+ * Payload: `string[]`.
5963
6059
  * @param - an array of the IDs of the tabs to hide.
5964
6060
  * The IDs not passed will be shown.
5965
6061
  * @example
@@ -5988,6 +6084,8 @@ export declare enum HostEvent {
5988
6084
  * `getAnswerService()` method on the embed instance to get an AnswerService
5989
6085
  * object that provides a more convenient interface for working with answers.
5990
6086
  *
6087
+ * Payload: {@link GetAnswerSessionRequest}.
6088
+ * Response: {@link GetAnswerSessionResponse}.
5991
6089
  * @example
5992
6090
  * ```js
5993
6091
  * // Preferred way to get an AnswerService
@@ -6015,6 +6113,7 @@ export declare enum HostEvent {
6015
6113
  GetAnswerSession = "getAnswerSession",
6016
6114
  /**
6017
6115
  * Trigger the *Ask Sage* action for visualizations
6116
+ * Payload: {@link RequiredVizRequest}.
6018
6117
  * @example
6019
6118
  * ```js
6020
6119
  * liveboardEmbed.trigger(HostEvent.AskSage,
@@ -6026,6 +6125,7 @@ export declare enum HostEvent {
6026
6125
  /**
6027
6126
  * Trigger cross filter update action on a Liveboard.
6028
6127
  *
6128
+ * Payload: {@link UpdateCrossFilterRequest}.
6029
6129
  * @example
6030
6130
  * ```js
6031
6131
  * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
@@ -6041,7 +6141,9 @@ export declare enum HostEvent {
6041
6141
  UpdateCrossFilter = "UpdateCrossFilter",
6042
6142
  /**
6043
6143
  * Trigger reset action for a personalized Liveboard view.
6044
- * This event is deprecated. Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
6144
+ * This event is deprecated.
6145
+ * Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
6146
+ * Payload: none.
6045
6147
  * @example
6046
6148
  * ```js
6047
6149
  * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
@@ -6062,6 +6164,7 @@ export declare enum HostEvent {
6062
6164
  /**
6063
6165
  * Triggers an action to update Parameter values on embedded
6064
6166
  * Answers, Liveboard, and Spotter answer in Edit mode.
6167
+ * Payload: {@link RuntimeParameter}[].
6065
6168
  * @param - Includes the following keys for each item:
6066
6169
  * - `name`: Name of the parameter.
6067
6170
  * - `value`: The value to set for the parameter.
@@ -6119,6 +6222,8 @@ export declare enum HostEvent {
6119
6222
  * whole Liveboard.
6120
6223
  * The `applicability` attribute is available from SDK: 1.53.0 |
6121
6224
  * ThoughtSpot: 26.10.0.cl.
6225
+ * Payload: none.
6226
+ * Response: {@link GetParametersResponse}.
6122
6227
  * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
6123
6228
  * ```js
6124
6229
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
@@ -6156,6 +6261,7 @@ export declare enum HostEvent {
6156
6261
  * ```js
6157
6262
  * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
6158
6263
  * ```
6264
+ * Payload: {@link PersonalisedViewRequest} (`viewId` only).
6159
6265
  * @example
6160
6266
  * ```js
6161
6267
  * // Update personalized view from liveboard context
@@ -6188,6 +6294,7 @@ export declare enum HostEvent {
6188
6294
  * If neither is provided, the Liveboard resets to the original/default view.
6189
6295
  * When a `viewName` is provided and multiple views share
6190
6296
  * the same name, the first match is selected.
6297
+ * Payload: {@link PersonalisedViewRequest}.
6191
6298
  * @example
6192
6299
  * ```js
6193
6300
  * liveboardEmbed.trigger(
@@ -6231,6 +6338,8 @@ export declare enum HostEvent {
6231
6338
  * If no parameters are specified, the save action is
6232
6339
  * triggered with a modal to prompt users to
6233
6340
  * add a name and description for the Answer.
6341
+ * Payload: {@link SaveAnswerRequest}.
6342
+ * Response: {@link SaveAnswerResponse}.
6234
6343
  * @param - Includes the following keys:
6235
6344
  * - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
6236
6345
  * embed.
@@ -6316,6 +6425,7 @@ export declare enum HostEvent {
6316
6425
  /**
6317
6426
  * Triggers a search operation with the search tokens specified in
6318
6427
  * the search query string in spotter embed.
6428
+ * Payload: {@link SpotterSearchRequest}.
6319
6429
  * @param - Includes the following keys:
6320
6430
  * - `query`: Text string in Natural Language format.
6321
6431
  * - `executeSearch`: Boolean to execute search and update search query.
@@ -6340,6 +6450,7 @@ export declare enum HostEvent {
6340
6450
  SpotterSearch = "SpotterSearch",
6341
6451
  /**
6342
6452
  * Edits the last prompt in spotter embed.
6453
+ * Payload: `string`.
6343
6454
  * @param - `query`: Text string
6344
6455
  * @example
6345
6456
  * ```js
@@ -6356,6 +6467,7 @@ export declare enum HostEvent {
6356
6467
  EditLastPrompt = "EditLastPrompt",
6357
6468
  /**
6358
6469
  * Opens the data source preview modal in Spotter Embed.
6470
+ * Payload: none.
6359
6471
  * @example
6360
6472
  * ```js
6361
6473
  * spotterEmbed.trigger(HostEvent.PreviewSpotterData);
@@ -6391,6 +6503,7 @@ export declare enum HostEvent {
6391
6503
  DataModelInstructions = "DataModelInstructions",
6392
6504
  /**
6393
6505
  * Resets the Spotter Embed Conversation.
6506
+ * Payload: none.
6394
6507
  * @example
6395
6508
  * ```js
6396
6509
  * spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
@@ -6403,6 +6516,7 @@ export declare enum HostEvent {
6403
6516
  * `conversationId` is **mandatory** — you must pass the id of the
6404
6517
  * conversation to share. Also no-op when sharing is disabled
6405
6518
  * (enableShareConversation off) or when already in the read-only shared view.
6519
+ * Payload: {@link ConversationScopedRequest}.
6406
6520
  * @example
6407
6521
  * ```js
6408
6522
  * spotterEmbed.trigger(HostEvent.ShareSpotterConversation, { conversationId: 'abc' });
@@ -6412,6 +6526,7 @@ export declare enum HostEvent {
6412
6526
  ShareSpotterConversation = "ShareSpotterConversation",
6413
6527
  /**
6414
6528
  * Closes the Spotter share-conversation modal. No-op if none is open.
6529
+ * Payload: none.
6415
6530
  * @example
6416
6531
  * ```js
6417
6532
  * spotterEmbed.trigger(HostEvent.CloseSpotterShareConversation);
@@ -6421,6 +6536,7 @@ export declare enum HostEvent {
6421
6536
  CloseSpotterShareConversation = "CloseSpotterShareConversation",
6422
6537
  /**
6423
6538
  * Exits the read-only shared-conversation view.
6539
+ * Payload: none.
6424
6540
  * @example
6425
6541
  * ```js
6426
6542
  * spotterEmbed.trigger(HostEvent.ExitSpotterSharedConversation);
@@ -6430,6 +6546,7 @@ export declare enum HostEvent {
6430
6546
  ExitSpotterSharedConversation = "ExitSpotterSharedConversation",
6431
6547
  /**
6432
6548
  * Deletes the last prompt in spotter embed.
6549
+ * Payload: none.
6433
6550
  * @example
6434
6551
  * ```js
6435
6552
  * spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
@@ -6439,6 +6556,7 @@ export declare enum HostEvent {
6439
6556
  DeleteLastPrompt = "DeleteLastPrompt",
6440
6557
  /**
6441
6558
  * Toggle the visualization to chart or table view.
6559
+ * Payload: {@link RequiredVizRequest}.
6442
6560
  * @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
6443
6561
  * @example
6444
6562
  * ```js
@@ -6477,6 +6595,7 @@ export declare enum HostEvent {
6477
6595
  VisibleEmbedCoordinates = "visibleEmbedCoordinates",
6478
6596
  /**
6479
6597
  * Trigger the *Spotter* action for visualizations present on the liveboard's vizzes.
6598
+ * Payload: {@link RequiredVizRequest}.
6480
6599
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required.
6481
6600
  * @example
6482
6601
  * ```js
@@ -6538,6 +6657,7 @@ export declare enum HostEvent {
6538
6657
  * instance. Contact your admin or ThoughtSpot Support to enable chat history on your
6539
6658
  * instance.
6540
6659
  *
6660
+ * Payload: {@link ConversationScopedRequest}.
6541
6661
  * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
6542
6662
  * @example
6543
6663
  * ```js
@@ -6555,6 +6675,7 @@ export declare enum HostEvent {
6555
6675
  * instance. Contact your admin or ThoughtSpot Support to enable chat history on your
6556
6676
  * instance.
6557
6677
  *
6678
+ * Payload: {@link ConversationScopedRequest}.
6558
6679
  * @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
6559
6680
  * @example
6560
6681
  * ```js
@@ -6579,6 +6700,7 @@ export declare enum HostEvent {
6579
6700
  * Trigger the **Send Test Email** action in the Liveboard schedule modal.
6580
6701
  * Sends a test schedule email to self or all recipients.
6581
6702
  * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
6703
+ * Payload: {@link ScheduleEmailRequest}.
6582
6704
  * @example
6583
6705
  * ```js
6584
6706
  * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
@@ -6597,6 +6719,7 @@ export declare enum HostEvent {
6597
6719
  SendTestScheduleEmail = "sendTestScheduleEmail",
6598
6720
  /**
6599
6721
  * Sends a user message (prompt) to the SpotterViz panel programmatically.
6722
+ * Payload: `{ query: string }`.
6600
6723
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
6601
6724
  * @param query - the prompt text to send.
6602
6725
  * @example
@@ -6609,6 +6732,7 @@ export declare enum HostEvent {
6609
6732
  SpotterVizSendUserMessage = "SpotterVizSendUserMessage",
6610
6733
  /**
6611
6734
  * Initializes a new SpotterViz conversation.
6735
+ * Payload: none.
6612
6736
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
6613
6737
  * @example
6614
6738
  * ```js
@@ -6618,6 +6742,7 @@ export declare enum HostEvent {
6618
6742
  InitSpotterVizConversation = "InitSpotterVizConversation",
6619
6743
  /**
6620
6744
  * Opens the SpotterViz panel.
6745
+ * Payload: none.
6621
6746
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
6622
6747
  * @example
6623
6748
  * ```js
@@ -6627,6 +6752,7 @@ export declare enum HostEvent {
6627
6752
  OpenSpotterVizPanel = "OpenSpotterVizPanel",
6628
6753
  /**
6629
6754
  * Closes the SpotterViz panel.
6755
+ * Payload: none.
6630
6756
  * @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
6631
6757
  * @example
6632
6758
  * ```js
@@ -6637,6 +6763,7 @@ export declare enum HostEvent {
6637
6763
  /**
6638
6764
  * Clears browser cache and fetches new data for liveboard ChartViz Containers.
6639
6765
  * Requires `enableLiveboardDataCache` to be enabled.
6766
+ * Payload: {@link ScheduleEmailRequest}.
6640
6767
  * @example
6641
6768
  * ```js
6642
6769
  * liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache);
@@ -6824,8 +6951,8 @@ export declare enum Param {
6824
6951
  IsStarterPromptsEnabled = "enableStarterPrompts",
6825
6952
  UpdatedSpotterExperience = "updatedSpotterExperience",
6826
6953
  SpotterDataSources = "spotterDataSources",
6827
- AnalystId = "analystId",
6828
- OpenSpotterOnLiveboardByDefault = "openSpotterOnLiveboardByDefault"
6954
+ OpenSpotterOnLiveboardByDefault = "openSpotterOnLiveboardByDefault",
6955
+ ShowAnswerEditPanel = "showAnswerEditPanel"
6829
6956
  }
6830
6957
  /**
6831
6958
  * Configuration for allowed file types in Spotter file upload.
@@ -8833,7 +8960,238 @@ export declare enum Action {
8833
8960
  * disabledActions: [Action.SpotterOnLiveboard]
8834
8961
  * ```
8835
8962
  */
8836
- SpotterOnLiveboard = "spotterOnLiveboard"
8963
+ SpotterOnLiveboard = "spotterOnLiveboard",
8964
+ /**
8965
+ * Controls the visibility and disabled state of the "Chart Type" menu item
8966
+ * in Chart Settings V2.
8967
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
8968
+ * @example
8969
+ * ```js
8970
+ * {
8971
+ * hiddenActions: [Action.ChartTypeSettings],
8972
+ * disabledActions: [Action.ChartTypeSettings],
8973
+ * }
8974
+ * ```
8975
+ */
8976
+ ChartTypeSettings = "CHART_TYPE",
8977
+ /**
8978
+ * Controls the visibility and disabled state of the "Layout" menu item
8979
+ * in Chart Settings V2.
8980
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
8981
+ * @example
8982
+ * ```js
8983
+ * {
8984
+ * hiddenActions: [Action.LayoutSettings],
8985
+ * disabledActions: [Action.LayoutSettings],
8986
+ * }
8987
+ * ```
8988
+ */
8989
+ LayoutSettings = "LAYOUT",
8990
+ /**
8991
+ * Controls the visibility and disabled state of the "Column" menu item
8992
+ * in Chart Settings V2.
8993
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
8994
+ * @example
8995
+ * ```js
8996
+ * {
8997
+ * hiddenActions: [Action.ColumnSettings],
8998
+ * disabledActions: [Action.ColumnSettings],
8999
+ * }
9000
+ * ```
9001
+ */
9002
+ ColumnSettings = "COLUMN",
9003
+ /**
9004
+ * Controls the visibility and disabled state of the "Axis" menu item
9005
+ * in Chart Settings V2.
9006
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9007
+ * @example
9008
+ * ```js
9009
+ * {
9010
+ * hiddenActions: [Action.AxisSettings],
9011
+ * disabledActions: [Action.AxisSettings],
9012
+ * }
9013
+ * ```
9014
+ */
9015
+ AxisSettings = "AXIS",
9016
+ /**
9017
+ * Controls the visibility and disabled state of the "Data Label" menu item
9018
+ * in Chart Settings V2.
9019
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9020
+ * @example
9021
+ * ```js
9022
+ * {
9023
+ * hiddenActions: [Action.DataLabelSettings],
9024
+ * disabledActions: [Action.DataLabelSettings],
9025
+ * }
9026
+ * ```
9027
+ */
9028
+ DataLabelSettings = "DATA_LABEL",
9029
+ /**
9030
+ * Controls the visibility and disabled state of the "Tooltip" menu item
9031
+ * in Chart Settings V2.
9032
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9033
+ * @example
9034
+ * ```js
9035
+ * {
9036
+ * hiddenActions: [Action.TooltipSettings],
9037
+ * disabledActions: [Action.TooltipSettings],
9038
+ * }
9039
+ * ```
9040
+ */
9041
+ TooltipSettings = "TOOLTIP",
9042
+ /**
9043
+ * Controls the visibility and disabled state of the "Legend" menu item
9044
+ * in Chart Settings V2.
9045
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9046
+ * @example
9047
+ * ```js
9048
+ * {
9049
+ * hiddenActions: [Action.LegendSettings],
9050
+ * disabledActions: [Action.LegendSettings],
9051
+ * }
9052
+ * ```
9053
+ */
9054
+ LegendSettings = "LEGEND",
9055
+ /**
9056
+ * Controls the visibility and disabled state of the "Display" menu item
9057
+ * in Chart Settings V2.
9058
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9059
+ * @example
9060
+ * ```js
9061
+ * {
9062
+ * hiddenActions: [Action.DisplaySettings],
9063
+ * disabledActions: [Action.DisplaySettings],
9064
+ * }
9065
+ * ```
9066
+ */
9067
+ DisplaySettings = "DISPLAY",
9068
+ /**
9069
+ * Controls the visibility and disabled state of the "Query Details" menu
9070
+ * item in Chart Settings V2.
9071
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9072
+ * @example
9073
+ * ```js
9074
+ * {
9075
+ * hiddenActions: [Action.QuerySettings],
9076
+ * disabledActions: [Action.QuerySettings],
9077
+ * }
9078
+ * ```
9079
+ */
9080
+ QuerySettings = "QUERY_DETAILS",
9081
+ /**
9082
+ * Controls the visibility and disabled state of the "Custom Action" menu
9083
+ * item in Chart Settings V2.
9084
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9085
+ * @example
9086
+ * ```js
9087
+ * {
9088
+ * hiddenActions: [Action.CustomSettings],
9089
+ * disabledActions: [Action.CustomSettings],
9090
+ * }
9091
+ * ```
9092
+ */
9093
+ CustomSettings = "CUSTOM_ACTION",
9094
+ /**
9095
+ * Controls the visibility and disabled state of the "Muze AI" menu item
9096
+ * in Chart Settings V2.
9097
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9098
+ * @example
9099
+ * ```js
9100
+ * {
9101
+ * hiddenActions: [Action.MuzeAiSettings],
9102
+ * disabledActions: [Action.MuzeAiSettings],
9103
+ * }
9104
+ * ```
9105
+ */
9106
+ MuzeAiSettings = "MUZE_AI",
9107
+ /**
9108
+ * Controls the visibility and disabled state of the "R Analysis" menu item
9109
+ * in Chart Settings V2.
9110
+ * @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
9111
+ * @example
9112
+ * ```js
9113
+ * {
9114
+ * hiddenActions: [Action.RAnalysisSettings],
9115
+ * disabledActions: [Action.RAnalysisSettings],
9116
+ * }
9117
+ * ```
9118
+ */
9119
+ RAnalysisSettings = "R_ANALYSIS",
9120
+ /**
9121
+ * Controls the visibility and disabled state of the "Add to Collection" menu item.
9122
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
9123
+ * @example
9124
+ * ```js
9125
+ * {
9126
+ * hiddenActions: [Action.AddToCollection],
9127
+ * disabledActions: [Action.AddToCollection],
9128
+ * }
9129
+ * ```
9130
+ */
9131
+ AddToCollection = "addToCollection",
9132
+ /**
9133
+ * Controls the visibility and disabled state of the "Create Collection" button.
9134
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
9135
+ * @example
9136
+ * ```js
9137
+ * {
9138
+ * hiddenActions: [Action.CreateCollection],
9139
+ * disabledActions: [Action.CreateCollection],
9140
+ * }
9141
+ * ```
9142
+ */
9143
+ CreateCollection = "createCollection",
9144
+ /**
9145
+ * Controls the visibility and disabled state of the "Move" menu item in a
9146
+ * Collection.
9147
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
9148
+ * @example
9149
+ * ```js
9150
+ * {
9151
+ * hiddenActions: [Action.MoveToCollection],
9152
+ * disabledActions: [Action.MoveToCollection],
9153
+ * }
9154
+ * ```
9155
+ */
9156
+ MoveToCollection = "moveToCollection",
9157
+ /**
9158
+ * Controls the visibility and disabled state of the "Remove" menu item in a
9159
+ * Collection.
9160
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
9161
+ * @example
9162
+ * ```js
9163
+ * {
9164
+ * hiddenActions: [Action.RemoveFromCollection],
9165
+ * disabledActions: [Action.RemoveFromCollection],
9166
+ * }
9167
+ * ```
9168
+ */
9169
+ RemoveFromCollection = "removeFromCollection",
9170
+ /**
9171
+ * Controls the visibility and disabled state of the "Delete" menu item for a
9172
+ * Collection.
9173
+ * @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
9174
+ * @example
9175
+ * ```js
9176
+ * {
9177
+ * hiddenActions: [Action.DeleteCollection],
9178
+ * disabledActions: [Action.DeleteCollection],
9179
+ * }
9180
+ * ```
9181
+ */
9182
+ DeleteCollection = "deleteCollection",
9183
+ /**
9184
+ * Controls the visibility of the "Customize homepage" button on the
9185
+ * embedded home page.
9186
+ * @version SDK: 1.55.0 | ThoughtSpot Cloud: 26.12.0.cl
9187
+ * @example
9188
+ * ```js
9189
+ * {
9190
+ * hiddenActions: [Action.CustomizeHomepage],
9191
+ * }
9192
+ * ```
9193
+ */
9194
+ CustomizeHomepage = "customizeHomepage"
8837
9195
  }
8838
9196
  export interface AnswerServiceType {
8839
9197
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -8875,6 +9233,11 @@ export interface VizPoint {
8875
9233
  * @group Events
8876
9234
  */
8877
9235
  export interface CustomActionPayload {
9236
+ /**
9237
+ * Id of the custom action that was triggered. Matches the `id` you set on
9238
+ * the {@link CustomAction}. Omitted on Liveboard-level code-based actions.
9239
+ */
9240
+ id?: string;
8878
9241
  contextMenuPoints?: {
8879
9242
  clickedPoint: VizPoint;
8880
9243
  selectedPoints: VizPoint[];
@@ -8894,21 +9257,58 @@ export interface CustomActionPayload {
8894
9257
  session: SessionInterface;
8895
9258
  vizId?: string;
8896
9259
  }
9260
+ /**
9261
+ * A code-based custom action to inject into the embedded ThoughtSpot UI.
9262
+ * Pass an array of these as `customActions` in the embed view config. When a
9263
+ * user invokes the action, the host emits {@link EmbedEvent.CustomAction} with
9264
+ * a {@link CustomActionPayload} carrying the same `id`.
9265
+ */
8897
9266
  export interface CustomAction {
9267
+ /**
9268
+ * Display label shown on the action's button or menu item.
9269
+ */
8898
9270
  name: string;
9271
+ /**
9272
+ * Unique identifier for the action. Echoed back as `id` on the
9273
+ * {@link CustomActionPayload} when the action is invoked.
9274
+ */
8899
9275
  id: string;
9276
+ /**
9277
+ * Where the action appears: a primary button, the "More" menu, or the
9278
+ * right-click context menu. See {@link CustomActionsPosition}.
9279
+ */
8900
9280
  position: CustomActionsPosition;
9281
+ /**
9282
+ * The surface the action applies to (Liveboard, visualization, Answer, or
9283
+ * Spotter). See {@link CustomActionTarget}. The allowed `position` values
9284
+ * and scoping keys depend on the target.
9285
+ */
8901
9286
  target: CustomActionTarget;
9287
+ /**
9288
+ * Scope the action to specific objects by GUID. Which keys are allowed
9289
+ * depends on `target` (for example, a `VIZ` action may use `answerIds`,
9290
+ * `liveboardIds`, and `vizIds`).
9291
+ */
8902
9292
  metadataIds?: {
8903
9293
  answerIds?: string[];
8904
9294
  liveboardIds?: string[];
8905
9295
  vizIds?: string[];
8906
9296
  };
9297
+ /**
9298
+ * Scope the action by data model, using model GUIDs or column names.
9299
+ * Allowed for `VIZ`, `ANSWER`, and `SPOTTER` targets.
9300
+ */
8907
9301
  dataModelIds?: {
8908
9302
  modelIds?: string[];
8909
9303
  modelColumnNames?: string[];
8910
9304
  };
9305
+ /**
9306
+ * Restrict the action to specific organizations by ID.
9307
+ */
8911
9308
  orgIds?: string[];
9309
+ /**
9310
+ * Restrict the action to specific user groups by ID.
9311
+ */
8912
9312
  groupIds?: string[];
8913
9313
  }
8914
9314
  /**
@@ -9870,4 +10270,164 @@ export interface VisualizationOverrides {
9870
10270
  /** Table visualization overrides */
9871
10271
  table?: TableOverrides;
9872
10272
  }
10273
+ /**
10274
+ * The configuration object for the full-height behavior shared by the
10275
+ * Liveboard and app embeds.
10276
+ *
10277
+ * When `fullHeight` is enabled the SDK resizes the embed container to match the
10278
+ * height reported by the ThoughtSpot app, and — when lazy loading is also
10279
+ * enabled — keeps the app informed of the portion of the embed that is
10280
+ * currently visible so that visualizations load on demand.
10281
+ */
10282
+ export interface FullHeightViewConfig {
10283
+ /**
10284
+ * If set to true, the embedded object container dynamically resizes
10285
+ * according to the height of the Liveboard.
10286
+ *
10287
+ * **Note**: Using fullHeight loads all visualizations on the
10288
+ * Liveboard simultaneously, which results in multiple warehouse
10289
+ * queries and potentially a longer wait for the topmost
10290
+ * visualizations to display on the screen.
10291
+ * Setting `fullHeight` to `false` fetches visualizations
10292
+ * incrementally as users scroll the page to view the charts and tables.
10293
+ *
10294
+ * From SDK 1.52.0, enabling `fullHeight` also turns on
10295
+ * {@link lazyLoadingForFullHeight} and
10296
+ * {@link enableScrollableContainerLazyLoading}, so visualizations load as
10297
+ * they scroll into view. Set either flag to `false` to opt out.
10298
+ *
10299
+ * Supported embed types: `LiveboardEmbed`, `AppEmbed`
10300
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
10301
+ * @example
10302
+ * ```js
10303
+ * // Replace <EmbedComponent> with the embed component name.
10304
+ * // For example, AppEmbed or LiveboardEmbed
10305
+ * const embed = new <EmbedComponent>('#embed', {
10306
+ * ... // other view config
10307
+ * fullHeight: true,
10308
+ * });
10309
+ * ```
10310
+ */
10311
+ fullHeight?: boolean;
10312
+ /**
10313
+ * This is the minimum height (in pixels) for a full-height Liveboard.
10314
+ * Setting this height helps resolve issues with empty Liveboards and
10315
+ * other screens navigable from a Liveboard.
10316
+ *
10317
+ * Supported embed types: `LiveboardEmbed`, `AppEmbed`
10318
+ * @version SDK: 1.44.2 | ThoughtSpot: 10.15.0.cl
10319
+ * @default 500
10320
+ * @example
10321
+ * ```js
10322
+ * // Replace <EmbedComponent> with the embed component name.
10323
+ * // For example, AppEmbed or LiveboardEmbed
10324
+ * const embed = new <EmbedComponent>('#embed', {
10325
+ * ... // other view config
10326
+ * fullHeight: true,
10327
+ * minimumHeight: 600,
10328
+ * });
10329
+ * ```
10330
+ */
10331
+ minimumHeight?: number;
10332
+ /**
10333
+ * This is the minimum height (in pixels) for a full-height Liveboard.
10334
+ * Setting this height helps resolve issues with empty Liveboards and
10335
+ * other screens navigable from a Liveboard.
10336
+ *
10337
+ * Supported embed types: `LiveboardEmbed`, `AppEmbed`
10338
+ * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
10339
+ * @deprecated Use `minimumHeight` instead.
10340
+ * @default 500
10341
+ * @example
10342
+ * ```js
10343
+ * // Replace <EmbedComponent> with the embed component name.
10344
+ * // For example, AppEmbed or LiveboardEmbed
10345
+ * const embed = new <EmbedComponent>('#embed', {
10346
+ * ... // other view config
10347
+ * fullHeight: true,
10348
+ * defaultHeight: 600,
10349
+ * });
10350
+ * ```
10351
+ */
10352
+ defaultHeight?: number;
10353
+ /**
10354
+ * Loads visualizations only as they scroll into the viewport, instead of
10355
+ * loading the whole full-height Liveboard at once.
10356
+ *
10357
+ * From SDK 1.52.0 this is enabled automatically whenever `fullHeight` is
10358
+ * `true`. On SDK 1.51.0 and earlier it defaulted to `false` and had to be
10359
+ * set explicitly. Set it to `false` to load every visualization upfront.
10360
+ * The flag has no effect unless `fullHeight` is enabled.
10361
+ *
10362
+ * Supported embed types: `LiveboardEmbed`, `AppEmbed`
10363
+ * @type {boolean}
10364
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
10365
+ * @default true when `fullHeight` is enabled, from SDK 1.52.0
10366
+ * @example
10367
+ * ```js
10368
+ * // Replace <EmbedComponent> with the embed component name.
10369
+ * // For example, AppEmbed or LiveboardEmbed
10370
+ * const embed = new <EmbedComponent>('#embed-container', {
10371
+ * // ...other options
10372
+ * fullHeight: true,
10373
+ * lazyLoadingForFullHeight: true,
10374
+ * })
10375
+ * ```
10376
+ */
10377
+ lazyLoadingForFullHeight?: boolean;
10378
+ /**
10379
+ * How far outside the viewport a visualization starts loading, when
10380
+ * {@link lazyLoadingForFullHeight} is enabled.
10381
+ *
10382
+ * For example, if the margin is set to '10px',
10383
+ * the visualization will be loaded 10px before its top edge is visible in the
10384
+ * viewport.
10385
+ *
10386
+ * The format is similar to CSS margin, so `'500px 0px'` extends the
10387
+ * prefetch 500px above and below the viewport and not sideways. Accepted
10388
+ * units are `px`, `em`, `rem`, `%`, `vh` and `vw`, plus bare `0` and
10389
+ * `auto`; an invalid value is logged and ignored.
10390
+ *
10391
+ * From SDK 1.52.0 this defaults to `'500px 0px'` — roughly one
10392
+ * visualization ahead of the scroll position, so a chart has usually
10393
+ * finished loading by the time it scrolls into view. Use a smaller margin
10394
+ * to cut warehouse queries further, or `'0px'` to load a visualization
10395
+ * only once it is actually visible.
10396
+ *
10397
+ * Supported embed types: `LiveboardEmbed`, `AppEmbed`
10398
+ * @type {string}
10399
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
10400
+ * @default '500px 0px' when `fullHeight` is enabled, from SDK 1.52.0
10401
+ * @example
10402
+ * ```js
10403
+ * // Replace <EmbedComponent> with the embed component name.
10404
+ * // For example, AppEmbed or LiveboardEmbed
10405
+ * const embed = new <EmbedComponent>('#embed-container', {
10406
+ * // ...other options
10407
+ * fullHeight: true,
10408
+ * lazyLoadingForFullHeight: true,
10409
+ * // With 0px, the visualization only starts loading once it is
10410
+ * // visible in the viewport.
10411
+ * lazyLoadingMargin: '0px',
10412
+ * })
10413
+ * ```
10414
+ */
10415
+ lazyLoadingMargin?: string;
10416
+ /**
10417
+ * Computes the visible region of the embed against its scrollable and
10418
+ * clipping ancestors, instead of treating the browser window as the only
10419
+ * viewport, and tracks scroll and resize on those ancestors.
10420
+ *
10421
+ * From SDK 1.52.0 this is enabled automatically whenever `fullHeight` is
10422
+ * `true`. On SDK 1.51.0 and earlier it defaulted to `false` and had to be
10423
+ * set explicitly. Set it to `false` when the page scrolls with the window
10424
+ * and the embed has no clipping ancestor, to skip the extra ancestor
10425
+ * tracking.
10426
+ *
10427
+ * Supported embed types: `LiveboardEmbed`, `AppEmbed`
10428
+ * @type {boolean}
10429
+ * @default true when `fullHeight` is enabled, from SDK 1.52.0
10430
+ */
10431
+ enableScrollableContainerLazyLoading?: boolean;
10432
+ }
9873
10433
  //# sourceMappingURL=types.d.ts.map