@thoughtspot/visual-embed-sdk 1.40.1-alpha.1 → 1.40.1-alpha.3

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 (430) hide show
  1. package/cjs/package.json +7 -6
  2. package/cjs/src/css-variables.d.ts +316 -0
  3. package/cjs/src/css-variables.d.ts.map +1 -1
  4. package/cjs/src/embed/app.d.ts +6 -1
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +27 -1
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +72 -5
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/conversation.d.ts +63 -2
  11. package/cjs/src/embed/conversation.d.ts.map +1 -1
  12. package/cjs/src/embed/conversation.js +9 -1
  13. package/cjs/src/embed/conversation.js.map +1 -1
  14. package/cjs/src/embed/conversation.spec.js +102 -0
  15. package/cjs/src/embed/conversation.spec.js.map +1 -1
  16. package/cjs/src/embed/liveboard.d.ts +11 -2
  17. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  18. package/cjs/src/embed/liveboard.js +24 -17
  19. package/cjs/src/embed/liveboard.js.map +1 -1
  20. package/cjs/src/embed/liveboard.spec.js +202 -2
  21. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  22. package/cjs/src/embed/ts-embed.d.ts +22 -7
  23. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  24. package/cjs/src/embed/ts-embed.js +74 -56
  25. package/cjs/src/embed/ts-embed.js.map +1 -1
  26. package/cjs/src/embed/ts-embed.spec.js +175 -3
  27. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  28. package/cjs/src/types.d.ts +190 -55
  29. package/cjs/src/types.d.ts.map +1 -1
  30. package/cjs/src/types.js +157 -52
  31. package/cjs/src/types.js.map +1 -1
  32. package/cjs/src/utils/liveboardService/liveboardService.d.ts +21 -6
  33. package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  34. package/cjs/src/utils/liveboardService/liveboardService.js +21 -6
  35. package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
  36. package/cjs/src/utils/processData.d.ts.map +1 -1
  37. package/cjs/src/utils/processData.js +10 -0
  38. package/cjs/src/utils/processData.js.map +1 -1
  39. package/cjs/src/utils/processData.spec.js +11 -0
  40. package/cjs/src/utils/processData.spec.js.map +1 -1
  41. package/dist/{index-D1pyb7RG.js → es/index-BwesxE_h.js} +0 -2
  42. package/dist/es/index.js +17539 -0
  43. package/dist/es/react/index.js +24039 -0
  44. package/dist/es/react/src/auth.d.ts +171 -0
  45. package/dist/es/react/src/auth.d.ts.map +1 -0
  46. package/dist/es/react/src/auth.spec.d.ts +15 -0
  47. package/dist/es/react/src/auth.spec.d.ts.map +1 -0
  48. package/dist/es/react/src/authToken.d.ts +17 -0
  49. package/dist/es/react/src/authToken.d.ts.map +1 -0
  50. package/dist/es/react/src/authToken.spec.d.ts +2 -0
  51. package/dist/es/react/src/authToken.spec.d.ts.map +1 -0
  52. package/dist/es/react/src/config.d.ts +21 -0
  53. package/dist/es/react/src/config.d.ts.map +1 -0
  54. package/dist/es/react/src/config.spec.d.ts +5 -0
  55. package/dist/es/react/src/config.spec.d.ts.map +1 -0
  56. package/dist/es/react/src/css-variables.d.ts +384 -0
  57. package/dist/es/react/src/css-variables.d.ts.map +1 -0
  58. package/dist/es/react/src/embed/app.d.ts +478 -0
  59. package/dist/es/react/src/embed/app.d.ts.map +1 -0
  60. package/dist/es/react/src/embed/app.spec.d.ts +2 -0
  61. package/dist/es/react/src/embed/app.spec.d.ts.map +1 -0
  62. package/dist/es/react/src/embed/base.d.ts +136 -0
  63. package/dist/es/react/src/embed/base.d.ts.map +1 -0
  64. package/dist/es/react/src/embed/base.spec.d.ts +2 -0
  65. package/dist/es/react/src/embed/base.spec.d.ts.map +1 -0
  66. package/dist/es/react/src/embed/bodyless-conversation.d.ts +26 -0
  67. package/dist/es/react/src/embed/bodyless-conversation.d.ts.map +1 -0
  68. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts +2 -0
  69. package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  70. package/dist/es/react/src/embed/conversation.d.ts +43 -0
  71. package/dist/es/react/src/embed/conversation.d.ts.map +1 -0
  72. package/dist/es/react/src/embed/conversation.spec.d.ts +2 -0
  73. package/dist/es/react/src/embed/conversation.spec.d.ts.map +1 -0
  74. package/dist/es/react/src/embed/embed.spec.d.ts +2 -0
  75. package/dist/es/react/src/embed/embed.spec.d.ts.map +1 -0
  76. package/dist/es/react/src/embed/embedConfig.d.ts +17 -0
  77. package/dist/es/react/src/embed/embedConfig.d.ts.map +1 -0
  78. package/dist/es/react/src/embed/events.spec.d.ts +2 -0
  79. package/dist/es/react/src/embed/events.spec.d.ts.map +1 -0
  80. package/dist/es/react/src/embed/liveboard.d.ts +379 -0
  81. package/dist/es/react/src/embed/liveboard.d.ts.map +1 -0
  82. package/dist/es/react/src/embed/liveboard.spec.d.ts +2 -0
  83. package/dist/es/react/src/embed/liveboard.spec.d.ts.map +1 -0
  84. package/dist/es/react/src/embed/pinboard.spec.d.ts +2 -0
  85. package/dist/es/react/src/embed/pinboard.spec.d.ts.map +1 -0
  86. package/dist/es/react/src/embed/sage.d.ts +148 -0
  87. package/dist/es/react/src/embed/sage.d.ts.map +1 -0
  88. package/dist/es/react/src/embed/sage.spec.d.ts +2 -0
  89. package/dist/es/react/src/embed/sage.spec.d.ts.map +1 -0
  90. package/dist/es/react/src/embed/search-bar.d.ts +93 -0
  91. package/dist/es/react/src/embed/search-bar.d.ts.map +1 -0
  92. package/dist/es/react/src/embed/search.d.ts +282 -0
  93. package/dist/es/react/src/embed/search.d.ts.map +1 -0
  94. package/dist/es/react/src/embed/search.spec.d.ts +2 -0
  95. package/dist/es/react/src/embed/search.spec.d.ts.map +1 -0
  96. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  97. package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  98. package/dist/es/react/src/embed/ts-embed.d.ts +374 -0
  99. package/dist/es/react/src/embed/ts-embed.d.ts.map +1 -0
  100. package/dist/es/react/src/embed/ts-embed.spec.d.ts +2 -0
  101. package/dist/es/react/src/embed/ts-embed.spec.d.ts.map +1 -0
  102. package/dist/es/react/src/errors.d.ts +19 -0
  103. package/dist/es/react/src/errors.d.ts.map +1 -0
  104. package/dist/es/react/src/index.d.ts +29 -0
  105. package/dist/es/react/src/index.d.ts.map +1 -0
  106. package/dist/es/react/src/mixpanel-service.d.ts +35 -0
  107. package/dist/es/react/src/mixpanel-service.d.ts.map +1 -0
  108. package/dist/es/react/src/mixpanel-service.spec.d.ts +2 -0
  109. package/dist/es/react/src/mixpanel-service.spec.d.ts.map +1 -0
  110. package/dist/es/react/src/react/all-types-export.d.ts +3 -0
  111. package/dist/es/react/src/react/all-types-export.d.ts.map +1 -0
  112. package/dist/es/react/src/react/all-types-export.spec.d.ts +2 -0
  113. package/dist/es/react/src/react/all-types-export.spec.d.ts.map +1 -0
  114. package/dist/es/react/src/react/index.d.ts +254 -0
  115. package/dist/es/react/src/react/index.d.ts.map +1 -0
  116. package/dist/es/react/src/react/index.spec.d.ts +3 -0
  117. package/dist/es/react/src/react/index.spec.d.ts.map +1 -0
  118. package/dist/es/react/src/react/util.d.ts +19 -0
  119. package/dist/es/react/src/react/util.d.ts.map +1 -0
  120. package/dist/es/react/src/test/test-utils.d.ts +61 -0
  121. package/dist/es/react/src/test/test-utils.d.ts.map +1 -0
  122. package/dist/es/react/src/tokenizedFetch.d.ts +18 -0
  123. package/dist/es/react/src/tokenizedFetch.d.ts.map +1 -0
  124. package/dist/es/react/src/types.d.ts +4363 -0
  125. package/dist/es/react/src/types.d.ts.map +1 -0
  126. package/dist/es/react/src/utils/authService/authService.d.ts +45 -0
  127. package/dist/es/react/src/utils/authService/authService.d.ts.map +1 -0
  128. package/dist/es/react/src/utils/authService/authService.spec.d.ts +2 -0
  129. package/dist/es/react/src/utils/authService/authService.spec.d.ts.map +1 -0
  130. package/dist/es/react/src/utils/authService/index.d.ts +3 -0
  131. package/dist/es/react/src/utils/authService/index.d.ts.map +1 -0
  132. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  133. package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  134. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  135. package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  136. package/dist/es/react/src/utils/global-styles.d.ts +2 -0
  137. package/dist/es/react/src/utils/global-styles.d.ts.map +1 -0
  138. package/dist/es/react/src/utils/global-styles.spec.d.ts +2 -0
  139. package/dist/es/react/src/utils/global-styles.spec.d.ts.map +1 -0
  140. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  141. package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  142. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts +180 -0
  143. package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  144. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  145. package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  146. package/dist/es/react/src/utils/graphql/graphql-request.d.ts +15 -0
  147. package/dist/es/react/src/utils/graphql/graphql-request.d.ts.map +1 -0
  148. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  149. package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  150. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  151. package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  152. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  153. package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  154. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  155. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  156. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  157. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  158. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  159. package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  160. package/dist/es/react/src/utils/graphql/preview-service.d.ts +9 -0
  161. package/dist/es/react/src/utils/graphql/preview-service.d.ts.map +1 -0
  162. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts +2 -0
  163. package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  164. package/dist/es/react/src/utils/graphql/sourceService.d.ts +8 -0
  165. package/dist/es/react/src/utils/graphql/sourceService.d.ts.map +1 -0
  166. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts +2 -0
  167. package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  168. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts +16 -0
  169. package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  170. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  171. package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  172. package/dist/es/react/src/utils/logger.d.ts +18 -0
  173. package/dist/es/react/src/utils/logger.d.ts.map +1 -0
  174. package/dist/es/react/src/utils/logger.spec.d.ts +25 -0
  175. package/dist/es/react/src/utils/logger.spec.d.ts.map +1 -0
  176. package/dist/es/react/src/utils/processData.d.ts +22 -0
  177. package/dist/es/react/src/utils/processData.d.ts.map +1 -0
  178. package/dist/es/react/src/utils/processData.spec.d.ts +2 -0
  179. package/dist/es/react/src/utils/processData.spec.d.ts.map +1 -0
  180. package/dist/es/react/src/utils/processTrigger.d.ts +16 -0
  181. package/dist/es/react/src/utils/processTrigger.d.ts.map +1 -0
  182. package/dist/es/react/src/utils/processTrigger.spec.d.ts +2 -0
  183. package/dist/es/react/src/utils/processTrigger.spec.d.ts.map +1 -0
  184. package/dist/es/react/src/utils/reporting.d.ts +16 -0
  185. package/dist/es/react/src/utils/reporting.d.ts.map +1 -0
  186. package/dist/es/react/src/utils/reporting.spec.d.ts +2 -0
  187. package/dist/es/react/src/utils/reporting.spec.d.ts.map +1 -0
  188. package/dist/es/react/src/utils/sessionInfoService.d.ts +66 -0
  189. package/dist/es/react/src/utils/sessionInfoService.d.ts.map +1 -0
  190. package/dist/es/react/src/utils.d.ts +104 -0
  191. package/dist/es/react/src/utils.d.ts.map +1 -0
  192. package/dist/es/react/src/utils.spec.d.ts +2 -0
  193. package/dist/es/react/src/utils.spec.d.ts.map +1 -0
  194. package/dist/es/src/auth.d.ts +171 -0
  195. package/dist/es/src/auth.d.ts.map +1 -0
  196. package/dist/es/src/auth.spec.d.ts +15 -0
  197. package/dist/es/src/auth.spec.d.ts.map +1 -0
  198. package/dist/es/src/authToken.d.ts +17 -0
  199. package/dist/es/src/authToken.d.ts.map +1 -0
  200. package/dist/es/src/authToken.spec.d.ts +2 -0
  201. package/dist/es/src/authToken.spec.d.ts.map +1 -0
  202. package/dist/es/src/config.d.ts +21 -0
  203. package/dist/es/src/config.d.ts.map +1 -0
  204. package/dist/es/src/config.spec.d.ts +5 -0
  205. package/dist/es/src/config.spec.d.ts.map +1 -0
  206. package/dist/es/src/css-variables.d.ts +384 -0
  207. package/dist/es/src/css-variables.d.ts.map +1 -0
  208. package/dist/es/src/embed/app.d.ts +478 -0
  209. package/dist/es/src/embed/app.d.ts.map +1 -0
  210. package/dist/es/src/embed/app.spec.d.ts +2 -0
  211. package/dist/es/src/embed/app.spec.d.ts.map +1 -0
  212. package/dist/es/src/embed/base.d.ts +136 -0
  213. package/dist/es/src/embed/base.d.ts.map +1 -0
  214. package/dist/es/src/embed/base.spec.d.ts +2 -0
  215. package/dist/es/src/embed/base.spec.d.ts.map +1 -0
  216. package/dist/es/src/embed/bodyless-conversation.d.ts +26 -0
  217. package/dist/es/src/embed/bodyless-conversation.d.ts.map +1 -0
  218. package/dist/es/src/embed/bodyless-conversation.spec.d.ts +2 -0
  219. package/dist/es/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
  220. package/dist/es/src/embed/conversation.d.ts +43 -0
  221. package/dist/es/src/embed/conversation.d.ts.map +1 -0
  222. package/dist/es/src/embed/conversation.spec.d.ts +2 -0
  223. package/dist/es/src/embed/conversation.spec.d.ts.map +1 -0
  224. package/dist/es/src/embed/embed.spec.d.ts +2 -0
  225. package/dist/es/src/embed/embed.spec.d.ts.map +1 -0
  226. package/dist/es/src/embed/embedConfig.d.ts +17 -0
  227. package/dist/es/src/embed/embedConfig.d.ts.map +1 -0
  228. package/dist/es/src/embed/events.spec.d.ts +2 -0
  229. package/dist/es/src/embed/events.spec.d.ts.map +1 -0
  230. package/dist/es/src/embed/liveboard.d.ts +379 -0
  231. package/dist/es/src/embed/liveboard.d.ts.map +1 -0
  232. package/dist/es/src/embed/liveboard.spec.d.ts +2 -0
  233. package/dist/es/src/embed/liveboard.spec.d.ts.map +1 -0
  234. package/dist/es/src/embed/pinboard.spec.d.ts +2 -0
  235. package/dist/es/src/embed/pinboard.spec.d.ts.map +1 -0
  236. package/dist/es/src/embed/sage.d.ts +148 -0
  237. package/dist/es/src/embed/sage.d.ts.map +1 -0
  238. package/dist/es/src/embed/sage.spec.d.ts +2 -0
  239. package/dist/es/src/embed/sage.spec.d.ts.map +1 -0
  240. package/dist/es/src/embed/search-bar.d.ts +93 -0
  241. package/dist/es/src/embed/search-bar.d.ts.map +1 -0
  242. package/dist/es/src/embed/search.d.ts +282 -0
  243. package/dist/es/src/embed/search.d.ts.map +1 -0
  244. package/dist/es/src/embed/search.spec.d.ts +2 -0
  245. package/dist/es/src/embed/search.spec.d.ts.map +1 -0
  246. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  247. package/dist/es/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  248. package/dist/es/src/embed/ts-embed.d.ts +374 -0
  249. package/dist/es/src/embed/ts-embed.d.ts.map +1 -0
  250. package/dist/es/src/embed/ts-embed.spec.d.ts +2 -0
  251. package/dist/es/src/embed/ts-embed.spec.d.ts.map +1 -0
  252. package/dist/es/src/errors.d.ts +19 -0
  253. package/dist/es/src/errors.d.ts.map +1 -0
  254. package/dist/es/src/index.d.ts +29 -0
  255. package/dist/es/src/index.d.ts.map +1 -0
  256. package/dist/es/src/mixpanel-service.d.ts +35 -0
  257. package/dist/es/src/mixpanel-service.d.ts.map +1 -0
  258. package/dist/es/src/mixpanel-service.spec.d.ts +2 -0
  259. package/dist/es/src/mixpanel-service.spec.d.ts.map +1 -0
  260. package/dist/es/src/react/all-types-export.d.ts +3 -0
  261. package/dist/es/src/react/all-types-export.d.ts.map +1 -0
  262. package/dist/es/src/react/all-types-export.spec.d.ts +2 -0
  263. package/dist/es/src/react/all-types-export.spec.d.ts.map +1 -0
  264. package/dist/es/src/react/index.d.ts +254 -0
  265. package/dist/es/src/react/index.d.ts.map +1 -0
  266. package/dist/es/src/react/index.spec.d.ts +3 -0
  267. package/dist/es/src/react/index.spec.d.ts.map +1 -0
  268. package/dist/es/src/react/util.d.ts +19 -0
  269. package/dist/es/src/react/util.d.ts.map +1 -0
  270. package/dist/es/src/test/test-utils.d.ts +61 -0
  271. package/dist/es/src/test/test-utils.d.ts.map +1 -0
  272. package/dist/es/src/tokenizedFetch.d.ts +18 -0
  273. package/dist/es/src/tokenizedFetch.d.ts.map +1 -0
  274. package/dist/es/src/types.d.ts +4363 -0
  275. package/dist/es/src/types.d.ts.map +1 -0
  276. package/dist/es/src/utils/authService/authService.d.ts +45 -0
  277. package/dist/es/src/utils/authService/authService.d.ts.map +1 -0
  278. package/dist/es/src/utils/authService/authService.spec.d.ts +2 -0
  279. package/dist/es/src/utils/authService/authService.spec.d.ts.map +1 -0
  280. package/dist/es/src/utils/authService/index.d.ts +3 -0
  281. package/dist/es/src/utils/authService/index.d.ts.map +1 -0
  282. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts +22 -0
  283. package/dist/es/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
  284. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  285. package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  286. package/dist/es/src/utils/global-styles.d.ts +2 -0
  287. package/dist/es/src/utils/global-styles.d.ts.map +1 -0
  288. package/dist/es/src/utils/global-styles.spec.d.ts +2 -0
  289. package/dist/es/src/utils/global-styles.spec.d.ts.map +1 -0
  290. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
  291. package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
  292. package/dist/es/src/utils/graphql/answerService/answerService.d.ts +180 -0
  293. package/dist/es/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
  294. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
  295. package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
  296. package/dist/es/src/utils/graphql/graphql-request.d.ts +15 -0
  297. package/dist/es/src/utils/graphql/graphql-request.d.ts.map +1 -0
  298. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts +2 -0
  299. package/dist/es/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
  300. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
  301. package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
  302. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
  303. package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
  304. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
  305. package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
  306. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
  307. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
  308. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
  309. package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
  310. package/dist/es/src/utils/graphql/preview-service.d.ts +9 -0
  311. package/dist/es/src/utils/graphql/preview-service.d.ts.map +1 -0
  312. package/dist/es/src/utils/graphql/preview-service.spec.d.ts +2 -0
  313. package/dist/es/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
  314. package/dist/es/src/utils/graphql/sourceService.d.ts +8 -0
  315. package/dist/es/src/utils/graphql/sourceService.d.ts.map +1 -0
  316. package/dist/es/src/utils/graphql/sourceService.spec.d.ts +2 -0
  317. package/dist/es/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
  318. package/dist/es/src/utils/liveboardService/liveboardService.d.ts +16 -0
  319. package/dist/es/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
  320. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
  321. package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
  322. package/dist/es/src/utils/logger.d.ts +18 -0
  323. package/dist/es/src/utils/logger.d.ts.map +1 -0
  324. package/dist/es/src/utils/logger.spec.d.ts +25 -0
  325. package/dist/es/src/utils/logger.spec.d.ts.map +1 -0
  326. package/dist/es/src/utils/processData.d.ts +22 -0
  327. package/dist/es/src/utils/processData.d.ts.map +1 -0
  328. package/dist/es/src/utils/processData.spec.d.ts +2 -0
  329. package/dist/es/src/utils/processData.spec.d.ts.map +1 -0
  330. package/dist/es/src/utils/processTrigger.d.ts +16 -0
  331. package/dist/es/src/utils/processTrigger.d.ts.map +1 -0
  332. package/dist/es/src/utils/processTrigger.spec.d.ts +2 -0
  333. package/dist/es/src/utils/processTrigger.spec.d.ts.map +1 -0
  334. package/dist/es/src/utils/reporting.d.ts +16 -0
  335. package/dist/es/src/utils/reporting.d.ts.map +1 -0
  336. package/dist/es/src/utils/reporting.spec.d.ts +2 -0
  337. package/dist/es/src/utils/reporting.spec.d.ts.map +1 -0
  338. package/dist/es/src/utils/sessionInfoService.d.ts +66 -0
  339. package/dist/es/src/utils/sessionInfoService.d.ts.map +1 -0
  340. package/dist/es/src/utils.d.ts +104 -0
  341. package/dist/es/src/utils.d.ts.map +1 -0
  342. package/dist/es/src/utils.spec.d.ts +2 -0
  343. package/dist/es/src/utils.spec.d.ts.map +1 -0
  344. package/dist/{index-CmEQfuE3.js → index-B0uCTBbm.js} +1 -1
  345. package/dist/src/css-variables.d.ts +316 -0
  346. package/dist/src/css-variables.d.ts.map +1 -1
  347. package/dist/src/embed/app.d.ts +6 -1
  348. package/dist/src/embed/app.d.ts.map +1 -1
  349. package/dist/src/embed/bodyless-conversation.d.ts +4 -0
  350. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  351. package/dist/src/embed/conversation.d.ts +63 -2
  352. package/dist/src/embed/conversation.d.ts.map +1 -1
  353. package/dist/src/embed/liveboard.d.ts +10 -0
  354. package/dist/src/embed/liveboard.d.ts.map +1 -1
  355. package/dist/src/embed/ts-embed.d.ts +22 -0
  356. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  357. package/dist/src/react/index.d.ts +2 -0
  358. package/dist/src/react/index.d.ts.map +1 -1
  359. package/dist/src/types.d.ts +379 -31
  360. package/dist/src/types.d.ts.map +1 -1
  361. package/dist/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
  362. package/dist/src/utils/liveboardService/liveboardService.d.ts +21 -6
  363. package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  364. package/dist/src/utils/processData.d.ts.map +1 -1
  365. package/dist/tsembed-react.es.js +507 -52
  366. package/dist/tsembed-react.js +506 -51
  367. package/dist/tsembed.es.js +528 -58
  368. package/dist/tsembed.js +527 -57
  369. package/dist/visual-embed-sdk-react-full.d.ts +813 -39
  370. package/dist/visual-embed-sdk-react.d.ts +813 -39
  371. package/dist/visual-embed-sdk.d.ts +811 -39
  372. package/lib/package.json +7 -6
  373. package/lib/src/css-variables.d.ts +316 -0
  374. package/lib/src/css-variables.d.ts.map +1 -1
  375. package/lib/src/embed/app.d.ts +6 -1
  376. package/lib/src/embed/app.d.ts.map +1 -1
  377. package/lib/src/embed/app.js +27 -1
  378. package/lib/src/embed/app.js.map +1 -1
  379. package/lib/src/embed/app.spec.js +72 -5
  380. package/lib/src/embed/app.spec.js.map +1 -1
  381. package/lib/src/embed/conversation.d.ts +63 -2
  382. package/lib/src/embed/conversation.d.ts.map +1 -1
  383. package/lib/src/embed/conversation.js +10 -2
  384. package/lib/src/embed/conversation.js.map +1 -1
  385. package/lib/src/embed/conversation.spec.js +104 -2
  386. package/lib/src/embed/conversation.spec.js.map +1 -1
  387. package/lib/src/embed/liveboard.d.ts +11 -2
  388. package/lib/src/embed/liveboard.d.ts.map +1 -1
  389. package/lib/src/embed/liveboard.js +24 -17
  390. package/lib/src/embed/liveboard.js.map +1 -1
  391. package/lib/src/embed/liveboard.spec.js +202 -2
  392. package/lib/src/embed/liveboard.spec.js.map +1 -1
  393. package/lib/src/embed/ts-embed.d.ts +22 -7
  394. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  395. package/lib/src/embed/ts-embed.js +74 -56
  396. package/lib/src/embed/ts-embed.js.map +1 -1
  397. package/lib/src/embed/ts-embed.spec.js +175 -3
  398. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  399. package/lib/src/types.d.ts +190 -55
  400. package/lib/src/types.d.ts.map +1 -1
  401. package/lib/src/types.js +157 -52
  402. package/lib/src/types.js.map +1 -1
  403. package/lib/src/utils/liveboardService/liveboardService.d.ts +21 -6
  404. package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
  405. package/lib/src/utils/liveboardService/liveboardService.js +21 -6
  406. package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
  407. package/lib/src/utils/processData.d.ts.map +1 -1
  408. package/lib/src/utils/processData.js +10 -0
  409. package/lib/src/utils/processData.js.map +1 -1
  410. package/lib/src/utils/processData.spec.js +11 -0
  411. package/lib/src/utils/processData.spec.js.map +1 -1
  412. package/lib/src/visual-embed-sdk.d.ts +812 -40
  413. package/package.json +8 -6
  414. package/src/css-variables.ts +396 -1
  415. package/src/embed/app.spec.ts +102 -5
  416. package/src/embed/app.ts +29 -0
  417. package/src/embed/conversation.spec.ts +131 -5
  418. package/src/embed/conversation.ts +85 -10
  419. package/src/embed/liveboard.spec.ts +261 -2
  420. package/src/embed/liveboard.ts +25 -18
  421. package/src/embed/ts-embed.spec.ts +346 -114
  422. package/src/embed/ts-embed.ts +80 -65
  423. package/src/types.ts +190 -55
  424. package/src/utils/liveboardService/liveboardService.ts +21 -6
  425. package/src/utils/processData.spec.ts +12 -0
  426. package/src/utils/processData.ts +10 -0
  427. package/dist/index-DeFzsyFF.js +0 -7371
  428. package/dist/index-Dpf0rd6w.js +0 -7371
  429. package/dist/index-UuEbsISo.js +0 -7447
  430. package/dist/index-e3Uw3YFO.js +0 -7371
@@ -127,7 +127,12 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
127
127
  * Modular (v2) introduces the updated Modular Home Experience.
128
128
  * It serves as the foundational version of the home page.
129
129
  */
130
- Modular = "v2"
130
+ Modular = "v2",
131
+ /**
132
+ * ModularWithStylingChanges (v3) introduces Modular Home Experience
133
+ * with styling changes.
134
+ */
135
+ ModularWithStylingChanges = "v3"
131
136
  }
132
137
  /**
133
138
  * Define the version of the list page
@@ -1153,6 +1158,16 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
1153
1158
  * embedded Liveboard or visualization.
1154
1159
  */
1155
1160
  protected getEmbedParams(): string;
1161
+ /**
1162
+ * @hidden
1163
+ * Internal state to track the current liveboard id.
1164
+ * This is used to navigate to the correct liveboard when the prerender is visible.
1165
+ */
1166
+ currentLiveboardState: {
1167
+ liveboardId: string;
1168
+ vizId: string;
1169
+ activeTabId: string;
1170
+ };
1156
1171
  protected beforePrerenderVisible(): void;
1157
1172
  protected handleRenderForPrerender(): Promise<TsEmbed>;
1158
1173
  /**
@@ -1672,6 +1687,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
1672
1687
  genNo: number;
1673
1688
  acSessionId: string;
1674
1689
  acGenNo: number;
1690
+ convId: string;
1691
+ messageId: string;
1675
1692
  }
1676
1693
  export class ConversationMessage extends TsEmbed {
1677
1694
  protected viewConfig: SpotterAgentMessageViewConfig;
@@ -1719,6 +1736,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
1719
1736
  data?: undefined;
1720
1737
  } | {
1721
1738
  data: {
1739
+ convId: any;
1740
+ messageId: any;
1722
1741
  sessionId: any;
1723
1742
  genNo: any;
1724
1743
  acSessionId: any;
@@ -1753,7 +1772,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
1753
1772
  }
1754
1773
 
1755
1774
  declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1756
- import { BaseViewConfig } from '@thoughtspot/visual-embed-sdk/types';
1775
+ import { BaseViewConfig, RuntimeFilter, RuntimeParameter } from '@thoughtspot/visual-embed-sdk/types';
1757
1776
  import { TsEmbed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
1758
1777
  /**
1759
1778
  * Configuration for search options
@@ -1770,7 +1789,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1770
1789
  */
1771
1790
  export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAction'> {
1772
1791
  /**
1773
- * The ID of the data source object. For example, Model, View, or Table. Spotter uses this object to query data and generate Answers.
1792
+ * The ID of the data source object. For example, Model, View, or Table. Spotter uses
1793
+ * this object to query data and generate Answers.
1774
1794
  */
1775
1795
  worksheetId: string;
1776
1796
  /**
@@ -1853,6 +1873,66 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1853
1873
  * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
1854
1874
  */
1855
1875
  hideSampleQuestions?: boolean;
1876
+ /**
1877
+ * The list of runtime filters to apply to a search Answer,
1878
+ * visualization, or Liveboard.
1879
+ *
1880
+ * Supported embed types: `SpotterEmbed`
1881
+ * @example
1882
+ * ```js
1883
+ * const embed = new SpotterEmbed('#tsEmbed', {
1884
+ * // other embed view config
1885
+ * runtimeFilters: [
1886
+ * {
1887
+ * columnName: 'color',
1888
+ * operator: RuntimeFilterOp.EQ,
1889
+ * values: ['red'],
1890
+ * },
1891
+ * ],
1892
+ * })
1893
+ * ```
1894
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
1895
+ */
1896
+ runtimeFilters?: RuntimeFilter[];
1897
+ /**
1898
+ * Flag to control whether runtime filters should be included in the URL.
1899
+ * If true, filters will be passed via app initialization payload instead.
1900
+ * If false/undefined, filters will be added to URL (default behavior).
1901
+ *
1902
+ * Supported embed types: `SpotterEmbed`
1903
+ * @default false
1904
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
1905
+ */
1906
+ excludeRuntimeFiltersfromURL?: boolean;
1907
+ /**
1908
+ * The list of runtime parameters to apply to the conversation.
1909
+ *
1910
+ * Supported embed types: `SpotterEmbed`
1911
+ * @example
1912
+ * ```js
1913
+ * const embed = new SpotterEmbed('#tsEmbed', {
1914
+ * // other embed view config
1915
+ * runtimeParameters: [
1916
+ * {
1917
+ * name: 'Integer Param',
1918
+ * value: 10,
1919
+ * },
1920
+ * ],
1921
+ * })
1922
+ * ```
1923
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
1924
+ */
1925
+ runtimeParameters?: RuntimeParameter[];
1926
+ /**
1927
+ * Flag to control whether runtime parameters should be included in the URL.
1928
+ * If true, parameters will be passed via app initialization payload instead.
1929
+ * If false/undefined, parameters will be added to URL (default behavior).
1930
+ *
1931
+ * Supported embed types: `SpotterEmbed`
1932
+ * @default false
1933
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
1934
+ */
1935
+ excludeRuntimeParametersfromURL?: boolean;
1856
1936
  }
1857
1937
  /**
1858
1938
  * The configuration for the embedded spotterEmbed options.
@@ -3206,12 +3286,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3206
3286
  * Hide list page columns
3207
3287
  * For example: hiddenListColumns = [ListPageColumns.Author]
3208
3288
  *
3209
- * **Note**: This option is available only in full app embedding.
3289
+ * **Note**: This option is currently available only in full app embedding and requires importing the ListPageColumns enum.
3290
+ * At present, it can be used with Liveboard and Answer list pages, and starting with version 10.14.0.cl, it will also be supported for the Home page.
3210
3291
  *
3211
3292
  * Supported embed types: `AppEmbed`
3212
3293
  * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
3213
3294
  * @example
3214
3295
  * ```js
3296
+ * import { ListPageColumns } from '@thoughtspot/visual-embed-sdk';
3297
+ *
3215
3298
  * const embed = new AppEmbed('#tsEmbed', {
3216
3299
  * ... //other embed view config
3217
3300
  * hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
@@ -3226,11 +3309,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3226
3309
  * **Note**: This option does not apply to the classic homepage.
3227
3310
  * To access the updated modular homepage, set
3228
3311
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
3312
+ * To use it, you need to import `HomepageModule` enum.
3229
3313
  *
3230
3314
  * Supported embed types: `AppEmbed`
3231
3315
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
3232
3316
  * @example
3233
3317
  * ```js
3318
+ * import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
3319
+ *
3234
3320
  * const embed = new AppEmbed('#tsEmbed', {
3235
3321
  * ... //other embed view config
3236
3322
  * hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
@@ -3245,11 +3331,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3245
3331
  * **Note**: This option does not apply to the classic homepage.
3246
3332
  * To access the updated modular homepage, set
3247
3333
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
3334
+ * To use it, you need to import `HomepageModule` enum.
3248
3335
  *
3249
3336
  * Supported embed types: `AppEmbed`
3250
3337
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl, 10.1.0.sw
3251
3338
  * @example
3252
3339
  * ```js
3340
+ * import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
3341
+ *
3253
3342
  * const embed = new AppEmbed('#tsEmbed', {
3254
3343
  * ... //other embed view config
3255
3344
  * reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary],
@@ -3265,6 +3354,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3265
3354
  * Supported embed types: `AppEmbed`
3266
3355
  * @example
3267
3356
  * ```js
3357
+ * import { HomeLeftNavItem } from '@thoughtspot/visual-embed-sdk';
3358
+ *
3268
3359
  * const embed = new AppEmbed('#tsEmbed', {
3269
3360
  * ... //other embed view config
3270
3361
  * hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
@@ -3274,6 +3365,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3274
3365
  * **Note**: This option does not apply to the classic homepage.
3275
3366
  * To access the updated modular homepage, set
3276
3367
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
3368
+ * To use it, you need to import `HomeLeftNavItem` enum.
3277
3369
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
3278
3370
  */
3279
3371
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
@@ -3529,6 +3621,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3529
3621
  /**
3530
3622
  * This flag is used to enable/disable hide irrelevant filters in Liveboard tab
3531
3623
  *
3624
+ * **Note**: This feature is supported only if compact header is enabled on your Liveboard. To enable compact header, use the `isLiveboardCompactHeaderEnabled` attribute.
3625
+ *
3532
3626
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
3533
3627
  * @version SDK: 1.36.0 | ThoughtSpot:10.6.0.cl
3534
3628
  * @default false
@@ -3538,6 +3632,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3538
3632
  * const embed = new <EmbedComponent>('#tsEmbed', {
3539
3633
  * ... // other embed view config
3540
3634
  * hideIrrelevantChipsInLiveboardTabs: true,
3635
+ * isLiveboardCompactHeaderEnabled: true,
3541
3636
  * })
3542
3637
  * ```
3543
3638
  */
@@ -3590,6 +3685,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3590
3685
  * ```
3591
3686
  */
3592
3687
  coverAndFilterOptionInPDF?: boolean;
3688
+ /**
3689
+ * This flag is used to enable or disable the XLSX/CSV download option for Liveboards.
3690
+ *
3691
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
3692
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.14.0.cl
3693
+ * @example
3694
+ * ```js
3695
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
3696
+ * const embed = new <EmbedComponent>('#tsEmbed', {
3697
+ * ... // other embed view config
3698
+ * liveboardXLSXCSVDownload: true,
3699
+ * })
3700
+ * ```
3701
+ */
3702
+ liveboardXLSXCSVDownload?: boolean;
3593
3703
  }
3594
3704
  export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
3595
3705
  }
@@ -4477,12 +4587,17 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4477
4587
  * @hidden
4478
4588
  */
4479
4589
  APP_INIT = "appInit",
4590
+ /**
4591
+ * Internal event to clear the cached info
4592
+ * @hidden
4593
+ */
4594
+ CLEAR_INFO_CACHE = "clearInfoCache",
4480
4595
  /**
4481
4596
  * Emitted when a user clicks **Show Liveboard details** on a Liveboard
4482
4597
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
4483
4598
  * @example
4484
4599
  *```js
4485
- * liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
4600
+ * liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
4486
4601
  * console.log('Liveboard details', payload);
4487
4602
  * })
4488
4603
  *```
@@ -4855,7 +4970,107 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4855
4970
  * @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
4856
4971
  * @hidden
4857
4972
  */
4858
- RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates"
4973
+ RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates",
4974
+ /**
4975
+ * Emitted when Spotter response is text data
4976
+ * @example
4977
+ * ```js
4978
+ * spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
4979
+ * console.log('payload', payload);
4980
+ * })
4981
+ *```
4982
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
4983
+ */
4984
+ SpotterData = "SpotterData",
4985
+ /**
4986
+ * Emitted when user opens up the worksheet preview modal in Spotter embed.
4987
+ * @example
4988
+ * ```js
4989
+ * spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
4990
+ * console.log('payload', payload);
4991
+ * })
4992
+ *```
4993
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
4994
+ */
4995
+ PreviewSpotterData = "PreviewSpotterData",
4996
+ /**
4997
+ * Emitted when the Spotter query is triggered in Spotter embed.
4998
+ * @example
4999
+ * ```js
5000
+ * spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
5001
+ * console.log('payload', payload);
5002
+ * })
5003
+ *```
5004
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
5005
+ */
5006
+ SpotterQueryTriggered = "SpotterQueryTriggered",
5007
+ /**
5008
+ * Emitted when the last Spotter query is edited in Spotter embed.
5009
+ * @example
5010
+ * ```js
5011
+ * spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
5012
+ * console.log('payload', payload);
5013
+ * })
5014
+ *```
5015
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
5016
+ */
5017
+ LastPromptEdited = "LastPromptEdited",
5018
+ /**
5019
+ * Emitted when the last Spotter query is deleted in Spotter embed.
5020
+ * @example
5021
+ * ```js
5022
+ * spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
5023
+ * console.log('payload', payload);
5024
+ * })
5025
+ *```
5026
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
5027
+ */
5028
+ LastPromptDeleted = "LastPromptDeleted",
5029
+ /**
5030
+ * Emitted when the coversation is reset in spotter embed.
5031
+ * @example
5032
+ * ```js
5033
+ * spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
5034
+ * console.log('payload', payload);
5035
+ * })
5036
+ *```
5037
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
5038
+ */
5039
+ ResetSpotterConversation = "ResetSpotterConversation",
5040
+ /**
5041
+ * Emitted when the *Spotter* is initialized.
5042
+ * @example
5043
+ * ```js
5044
+ * spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
5045
+ * console.log('payload', payload);
5046
+ * })
5047
+ *```
5048
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
5049
+ */
5050
+ SpotterInit = "spotterInit",
5051
+ /**
5052
+ * @hidden
5053
+ * Triggers when the embed listener is ready to receive events.
5054
+ * This is used to trigger events after the embed container is loaded.
5055
+ * @example
5056
+ * ```js
5057
+ * liveboardEmbed.on(EmbedEvent.EmbedListenerReady, () => {
5058
+ * console.log('EmbedListenerReady');
5059
+ * })
5060
+ * ```
5061
+ */
5062
+ EmbedListenerReady = "EmbedListenerReady",
5063
+ /**
5064
+ * Emitted when the organization is switched.
5065
+ * @example
5066
+ * ```js
5067
+ * appEmbed.on(EmbedEvent.OrgSwitched, (payload) => {
5068
+ * console.log('payload', payload);
5069
+ * })
5070
+ * ```
5071
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
5072
+ */
5073
+ OrgSwitched = "orgSwitched"
4859
5074
  }
4860
5075
  /**
4861
5076
  * Event types that can be triggered by the host application
@@ -4873,7 +5088,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4873
5088
  * // create the liveboard embed.
4874
5089
  *
4875
5090
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
4876
- * { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
5091
+ * { columnName: 'state', operator: RuntimeFilterOp.EQ, values: ["california"]}
4877
5092
  * ]);
4878
5093
  * ```
4879
5094
  * @example
@@ -4943,6 +5158,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4943
5158
  * done automatically on the most popular column.
4944
5159
  * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
4945
5160
  * in case of a Liveboard.
5161
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
4946
5162
  * @example
4947
5163
  * ```js
4948
5164
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -5081,12 +5297,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5081
5297
  * Works with Search and Liveboard embed.
5082
5298
  * @param - { columnId: string,
5083
5299
  * name: string,
5084
- * type: INT64/CHAR/DATE,
5085
- * dataType: ATTRIBUTE/MEASURE }
5300
+ * type: ATTRIBUTE/MEASURE,
5301
+ * dataType: INT64/CHAR/DATE }
5086
5302
  * @example
5087
5303
  * ```js
5088
5304
  * searchEmbed.trigger(HostEvent.OpenFilter,
5089
- * {column: { columnId: '<column-GUID>', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE'}})
5305
+ * {column: { columnId: '<column-GUID>', name: 'column name', type: 'ATTRIBUTE', dataType: 'INT64'}})
5090
5306
  * ```
5091
5307
  * @example
5092
5308
  * ```js
@@ -5144,6 +5360,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5144
5360
  * @param
5145
5361
  * `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
5146
5362
  * Optional when pinning a new chart or table generated from a Search query.
5363
+ * **Required** in Spotter Embed.
5147
5364
  * @param
5148
5365
  * `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
5149
5366
  * specify the `newLiveboardName` parameter to create a new Liveboard.
@@ -5191,6 +5408,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5191
5408
  * ```js
5192
5409
  * appEmbed.trigger(HostEvent.Pin)
5193
5410
  * ```
5411
+ * @example
5412
+ * ```js
5413
+ * const pinResponse = await spotterEmbed.trigger(HostEvent.Pin, {
5414
+ * vizId:'730496d6-6903-4601-937e-2c691821af3c'
5415
+ * });
5416
+ * ```
5194
5417
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
5195
5418
  */
5196
5419
  Pin = "pin",
@@ -5255,12 +5478,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5255
5478
  * Trigger the **Download PDF** action on an embedded Liveboard,
5256
5479
  * visualization or Answer.
5257
5480
  *
5481
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5482
+ *
5258
5483
  * **NOTE**: The **Download** > **PDF** action is available on
5259
5484
  * visualizations and Answers if the data is in tabular format.
5260
5485
  * @example
5261
5486
  * ```js
5262
5487
  * liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
5263
5488
  * ```
5489
+ * @example
5490
+ * ```js
5491
+ * spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
5492
+ * vizId:'730496d6-6903-4601-937e-2c691821af3c'
5493
+ * });
5494
+ * ```
5495
+ *
5264
5496
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
5265
5497
  */
5266
5498
  DownloadAsPdf = "downloadAsPdf",
@@ -5284,6 +5516,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5284
5516
  * ```js
5285
5517
  * searchEmbed.trigger(HostEvent.MakeACopy)
5286
5518
  * ```
5519
+ * @example
5520
+ * ```js
5521
+ * const pinResponse = await spotterEmbed.trigger(HostEvent.MakeACopy, {
5522
+ * vizId:'730496d6-6903-4601-937e-2c691821af3c'
5523
+ * });
5524
+ * ```
5287
5525
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
5288
5526
  */
5289
5527
  MakeACopy = "makeACopy",
@@ -5356,6 +5594,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5356
5594
  * This event is not supported in visualization embed and search embed.
5357
5595
  * @param - object - To trigger the action for a specific visualization
5358
5596
  * in Liveboard embed, pass in `vizId` as a key.
5597
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5598
+ *
5359
5599
  * @example
5360
5600
  * ```js
5361
5601
  * liveboardEmbed.trigger(HostEvent.Edit)
@@ -5364,6 +5604,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5364
5604
  * liveboardEmbed.trigger(HostEvent.Edit, {vizId:
5365
5605
  * '730496d6-6903-4601-937e-2c691821af3c'})
5366
5606
  * ```
5607
+ * @example
5608
+ * ```js
5609
+ * const pinResponse = await spotterEmbed.trigger(HostEvent.Edit, {
5610
+ * vizId:'730496d6-6903-4601-937e-2c691821af3c'
5611
+ * });
5612
+ * ```
5613
+ * @example
5614
+ * ```js
5615
+ * const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
5616
+ * vizId:'730496d6-6903-4601-937e-2c691821af3c'
5617
+ * });
5618
+ * ```
5367
5619
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
5368
5620
  */
5369
5621
  Edit = "edit",
@@ -5411,6 +5663,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5411
5663
  * );
5412
5664
  * })
5413
5665
  * ```
5666
+ * @example
5667
+ * ```js
5668
+ * spotterEmbed.trigger(HostEvent.GetTML, {
5669
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
5670
+ * }).then((tml) => {
5671
+ * console.log(
5672
+ * tml.answer.search_query // TML representation of the search query
5673
+ * );
5674
+ * })
5675
+ * ```
5414
5676
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
5415
5677
  * @important
5416
5678
  */
@@ -5474,6 +5736,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5474
5736
  /**
5475
5737
  * Trigger the **Download** action on charts in
5476
5738
  * the embedded view.
5739
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5477
5740
  * @example
5478
5741
  * ```js
5479
5742
  * liveboardEmbed.trigger(HostEvent.Download, {vizId:
@@ -5482,6 +5745,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5482
5745
  * ```js
5483
5746
  * embed.trigger(HostEvent.Download)
5484
5747
  * ```
5748
+ * ```js
5749
+ * spotterEmbed.trigger(HostEvent.Download, {
5750
+ * vizId:'730496d6-6903-4601-937e-2c691821af3c'
5751
+ * });
5752
+ * ```
5485
5753
  * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
5486
5754
  * Use {@link DownloadAsPng}
5487
5755
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
@@ -5498,13 +5766,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5498
5766
  * vizEmbed.trigger(HostEvent.DownloadAsPng)
5499
5767
  *
5500
5768
  * searchEmbed.trigger(HostEvent.DownloadAsPng)
5769
+ *
5770
+ * spotterEmbed.trigger(HostEvent.DownloadAsPng, {
5771
+ * vizId:"730496d6-6903-4601-937e-2c691821af3c"
5772
+ * })
5501
5773
  * ```
5774
+ *
5502
5775
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
5503
5776
  */
5504
5777
  DownloadAsPng = "downloadAsPng",
5505
5778
  /**
5506
5779
  * Trigger the **Download** > **CSV** action on tables in
5507
5780
  * the embedded view.
5781
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5508
5782
  * @example
5509
5783
  * ```js
5510
5784
  * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
@@ -5516,12 +5790,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5516
5790
  * ```js
5517
5791
  * searchEmbed.trigger(HostEvent.DownloadAsCsv)
5518
5792
  * ```
5793
+ * ```js
5794
+ * spotterEmbed.trigger(HostEvent.DownloadAsCsv, {
5795
+ * vizId:"730496d6-6903-4601-937e-2c691821af3c"
5796
+ * })
5797
+ * ```
5519
5798
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
5520
5799
  */
5521
5800
  DownloadAsCsv = "downloadAsCSV",
5522
5801
  /**
5523
5802
  * Trigger the **Download** > **XLSX** action on tables
5524
5803
  * in the embedded view.
5804
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5525
5805
  * @example
5526
5806
  * ```js
5527
5807
  * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
@@ -5533,6 +5813,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5533
5813
  * ```js
5534
5814
  * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
5535
5815
  * ```
5816
+ * ```js
5817
+ * spotterEmbed.trigger(HostEvent.downloadAsXLSX, {
5818
+ * vizId:"730496d6-6903-4601-937e-2c691821af3c"
5819
+ * })
5820
+ * ```
5536
5821
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
5537
5822
  */
5538
5823
  DownloadAsXlsx = "downloadAsXLSX",
@@ -5552,6 +5837,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5552
5837
  /**
5553
5838
  * Trigger the **Save** action on a Liveboard or Answer.
5554
5839
  * Saves the changes.
5840
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5555
5841
  * @example
5556
5842
  * ```js
5557
5843
  * liveboardEmbed.trigger(HostEvent.Save)
@@ -5559,6 +5845,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5559
5845
  * ```js
5560
5846
  * searchEmbed.trigger(HostEvent.Save)
5561
5847
  * ```
5848
+ * ```js
5849
+ * spotterEmbed.trigger(HostEvent.Save, {
5850
+ * vizId:"730496d6-6903-4601-937e-2c691821af3c"
5851
+ * })
5852
+ * ```
5562
5853
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
5563
5854
  */
5564
5855
  Save = "save",
@@ -5842,7 +6133,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5842
6133
  ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView",
5843
6134
  /**
5844
6135
  * Triggers an action to update Parameter values on embedded
5845
- * Answers and Liveboard.
6136
+ * Answers, Liveboard and Spotter answer in Edit mode.
5846
6137
  *
5847
6138
  * @example
5848
6139
  * ```js
@@ -5856,11 +6147,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5856
6147
  UpdateParameters = "UpdateParameters",
5857
6148
  /**
5858
6149
  * Triggers GetParameters to fetch the runtime Parameters.
6150
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5859
6151
  * ```js
5860
6152
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
5861
6153
  * console.log('parameters', parameter);
5862
6154
  * });
5863
6155
  *```
6156
+ *```js
6157
+ * spotterEmbed.trigger(HostEvent.GetParameters, {
6158
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
6159
+ * }).then((parameter) => {
6160
+ * console.log('parameters', parameter);
6161
+ * });
6162
+ *```
5864
6163
  * @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
5865
6164
  */
5866
6165
  GetParameters = "GetParameters",
@@ -5892,7 +6191,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5892
6191
  * @param - optional attributes to set Answer properties.
5893
6192
  * `name` - Name string for the Answer.
5894
6193
  * `description` - Description text for the Answer.
5895
- *
6194
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
5896
6195
  * @example
5897
6196
  * ```js
5898
6197
  * const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
@@ -5900,6 +6199,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5900
6199
  * description: "Total sales by states in MidWest"
5901
6200
  * });
5902
6201
  * ```
6202
+ * @example
6203
+ * ```js
6204
+ * const saveAnswerResponse = await spotterEmbed.trigger(HostEvent.SaveAnswer, {
6205
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c',
6206
+ * name: "Sales by states",
6207
+ * description: "Total sales by states in MidWest"
6208
+ * });
6209
+ * ```
5903
6210
  * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
5904
6211
  */
5905
6212
  SaveAnswer = "saveAnswer",
@@ -5928,6 +6235,70 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5928
6235
  * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
5929
6236
  */
5930
6237
  TransformTableVizData = "TransformTableVizData",
6238
+ /**
6239
+ * Triggers a search operation with the search tokens specified in
6240
+ * the search query string in spotter embed.
6241
+ * @param - `query`: Text string in Natural Language format
6242
+ * @param - `executeSearch`: Boolean to execute search and update search query
6243
+ * @example
6244
+ * ```js
6245
+ * spotterEmbed.trigger(HostEvent.SpotterSearch, {
6246
+ * query: 'revenue per year',
6247
+ * executeSearch: true,
6248
+ * })
6249
+ * ```
6250
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
6251
+ */
6252
+ SpotterSearch = "SpotterSearch",
6253
+ /**
6254
+ * Edits the last prompt in spotter embed.
6255
+ * @param - `query`: Text string
6256
+ * @example
6257
+ * ```js
6258
+ * spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
6259
+ * ```
6260
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
6261
+ */
6262
+ EditLastPrompt = "EditLastPrompt",
6263
+ /**
6264
+ * Opens the Worksheet preview modal in Spotter Embed.
6265
+ * @example
6266
+ * ```js
6267
+ * spotterEmbed.trigger(HostEvent.PreviewSpotterData);
6268
+ * ```
6269
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
6270
+ */
6271
+ PreviewSpotterData = "PreviewSpotterData",
6272
+ /**
6273
+ * Resets the Spotter Embed Conversation.
6274
+ * @example
6275
+ * ```js
6276
+ * spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
6277
+ * ```
6278
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
6279
+ */
6280
+ ResetSpotterConversation = "ResetSpotterConversation",
6281
+ /**
6282
+ * Deletes the last prompt in spotter embed.
6283
+ * @example
6284
+ * ```js
6285
+ * spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
6286
+ * ```
6287
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
6288
+ */
6289
+ DeleteLastPrompt = "DeleteLastPrompt",
6290
+ /**
6291
+ * Toggle the visualization to chart or table view.
6292
+ * @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
6293
+ * @example
6294
+ * ```js
6295
+ * spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
6296
+ * vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
6297
+ * });
6298
+ *```
6299
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
6300
+ */
6301
+ AnswerChartSwitcher = "answerChartSwitcher",
5931
6302
  /**
5932
6303
  * @hidden
5933
6304
  * Trigger exit from presentation mode when user exits fullscreen.
@@ -5950,7 +6321,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5950
6321
  *
5951
6322
  * @hidden
5952
6323
  */
5953
- VisibleEmbedCoordinates = "visibleEmbedCoordinates"
6324
+ VisibleEmbedCoordinates = "visibleEmbedCoordinates",
6325
+ /**
6326
+ * Trigger the *Ask Spotter* action for visualizations
6327
+ * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
6328
+ * @example
6329
+ * ```js
6330
+ * spotterEmbed.trigger(HostEvent.AskSpotter,
6331
+ * {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
6332
+ * ```
6333
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
6334
+ */
6335
+ AskSpotter = "AskSpotter"
5954
6336
  }
5955
6337
  /**
5956
6338
  * The different visual modes that the data sources panel within
@@ -6046,6 +6428,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
6046
6428
  Query = "query",
6047
6429
  HideHomepageLeftNav = "hideHomepageLeftNav",
6048
6430
  ModularHomeExperienceEnabled = "modularHomeExperience",
6431
+ HomepageVersion = "homepageVersion",
6049
6432
  ListPageVersion = "listpageVersion",
6050
6433
  PendoTrackingKey = "additionalPendoKey",
6051
6434
  LiveboardHeaderSticky = "isLiveboardHeaderSticky",
@@ -6086,7 +6469,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
6086
6469
  isSpotterAgentEmbed = "isSpotterAgentEmbed",
6087
6470
  IsLiveboardStylingAndGroupingEnabled = "isLiveboardStylingAndGroupingEnabled",
6088
6471
  IsLazyLoadingForEmbedEnabled = "isLazyLoadingForEmbedEnabled",
6089
- RootMarginForLazyLoad = "rootMarginForLazyLoad"
6472
+ RootMarginForLazyLoad = "rootMarginForLazyLoad",
6473
+ LiveboardXLSXCSVDownload = "isLiveboardXLSXCSVDownloadEnabled"
6090
6474
  }
6091
6475
  /**
6092
6476
  * ThoughtSpot application pages include actions and menu commands
@@ -6238,27 +6622,27 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
6238
6622
  */
6239
6623
  ConfigureFilter = "configureFilter",
6240
6624
  /**
6241
- * The **Collapse data sources** icon on the Search page.
6242
- * Collapses the panel showing data sources.
6243
- *
6244
- * @example
6245
- * ```js
6246
- * disabledActions: [Action.CollapseDataPanel]
6247
- * ```
6248
- * @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
6249
- */
6625
+ * The **Collapse data sources** icon on the Search page.
6626
+ * Collapses the panel showing data sources.
6627
+ *
6628
+ * @example
6629
+ * ```js
6630
+ * disabledActions: [Action.CollapseDataPanel]
6631
+ * ```
6632
+ * @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
6633
+ */
6250
6634
  CollapseDataSources = "collapseDataSources",
6251
6635
  /**
6252
- * The **Collapse data panel** icon on the Search page.
6253
- * Collapses the data panel view.
6254
- *
6255
- * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
6256
- *
6257
- * @example
6258
- * ```js
6259
- * disabledActions: [Action.CollapseDataPanel]
6260
- * ```
6261
- */
6636
+ * The **Collapse data panel** icon on the Search page.
6637
+ * Collapses the data panel view.
6638
+ *
6639
+ * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
6640
+ *
6641
+ * @example
6642
+ * ```js
6643
+ * disabledActions: [Action.CollapseDataPanel]
6644
+ * ```
6645
+ */
6262
6646
  CollapseDataPanel = "collapseDataPanel",
6263
6647
  /**
6264
6648
  * The **Choose sources** button on Search page.
@@ -6954,6 +7338,17 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
6954
7338
  * @version SDK: 1.25.0 | ThoughtSpot Cloud: 9.6.0.cl
6955
7339
  */
6956
7340
  EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
7341
+ /**
7342
+ * Action ID to hide or disable Iterative Change Analysis option
7343
+ * on contextual change analysis Inisght charts context menu
7344
+ *
7345
+ * @example
7346
+ * ```js
7347
+ * disabledActions: [Action.EnableIterativeChangeAnalysis]
7348
+ * ```
7349
+ * @version SDK: 1.41.0 | ThoughtSpot Cloud: 9.12.0.cl
7350
+ */
7351
+ EnableIterativeChangeAnalysis = "enableIterativeChangeAnalysis",
6957
7352
  /**
6958
7353
  * Action ID to hide or disable Natural Language Search query.
6959
7354
  *
@@ -7322,7 +7717,40 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
7322
7717
  * ```
7323
7718
  * @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
7324
7719
  */
7325
- InConversationTraining = "InConversationTraining"
7720
+ InConversationTraining = "InConversationTraining",
7721
+ /**
7722
+ * Action ID to hide the warnings banner in
7723
+ * Spotter results. It's an EA feature and
7724
+ * handled by LD.
7725
+ * @example
7726
+ * ```js
7727
+ * hiddenAction: [Action.SpotterWarningsBanner]
7728
+ * ```
7729
+ * @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
7730
+ */
7731
+ SpotterWarningsBanner = "SpotterWarningsBanner",
7732
+ /**
7733
+ * Action ID to hide the warnings border on the knowledge
7734
+ * card in Spotter results. It's an EA feature and
7735
+ * handled by LD.
7736
+ * @example
7737
+ * ```js
7738
+ * hiddenAction: [Action.SpotterWarningsOnTokens]
7739
+ * ```
7740
+ * @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
7741
+ */
7742
+ SpotterWarningsOnTokens = "SpotterWarningsOnTokens",
7743
+ /**
7744
+ * Action ID to disable the click event handler on knowledge
7745
+ * card in Spotter results. It's an EA feature and
7746
+ * handled by LD.
7747
+ * @example
7748
+ * ```js
7749
+ * hiddenAction: [Action.SpotterTokenQuickEdit]
7750
+ * ```
7751
+ * @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
7752
+ */
7753
+ SpotterTokenQuickEdit = "SpotterTokenQuickEdit"
7326
7754
  }
7327
7755
  export interface AnswerServiceType {
7328
7756
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -7871,6 +8299,322 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
7871
8299
  * Background color of checkbox.
7872
8300
  */
7873
8301
  '--ts-var-checkbox-background-color'?: string;
8302
+ /**
8303
+ * Height of the tiles in the Liveboard.
8304
+ */
8305
+ '--ts-var-viz-tile-height'?: string;
8306
+ /**
8307
+ * Background color of the layout in the Liveboard.
8308
+ */
8309
+ '--ts-var-liveboard-layout-background'?: string;
8310
+ /**
8311
+ * Font color of the title of the layout in the Liveboard.
8312
+ */
8313
+ '--ts-var-liveboard-layout-title-color'?: string;
8314
+ /**
8315
+ * Font size of the title of the layout in the Liveboard.
8316
+ */
8317
+ '--ts-var-liveboard-layout-title-fontsize'?: string;
8318
+ /**
8319
+ * Background color of the header in the Liveboard.
8320
+ */
8321
+ '--ts-var-liveboard-header-background'?: string;
8322
+ /**
8323
+ * Font size of the header in the Liveboard.
8324
+ */
8325
+ '--ts-var-liveboard-header-fontsize'?: string;
8326
+ /**
8327
+ * Font color of the header in the Liveboard.
8328
+ */
8329
+ '--ts-var-liveboard-header-font-color'?: string;
8330
+ /**
8331
+ * Border color of the tiles in the Liveboard.
8332
+ */
8333
+ '--ts-var-liveboard-tile-border-color'?: string;
8334
+ /**
8335
+ * Background color of the tiles in the Liveboard.
8336
+ */
8337
+ '--ts-var-liveboard-tile-background'?: string;
8338
+ /**
8339
+ * Border radius of the tiles in the Liveboard.
8340
+ */
8341
+ '--ts-var-liveboard-tile-border-radius'?: string;
8342
+ /**
8343
+ * Padding of the tiles in the Liveboard.
8344
+ */
8345
+ '--ts-var-liveboard-tile-padding'?: string;
8346
+ /**
8347
+ * Background color of the table header in the Liveboard.
8348
+ */
8349
+ '--ts-var-liveboard-tile-table-header-background'?: string;
8350
+ /**
8351
+ * Padding of the groups in the Liveboard.
8352
+ */
8353
+ '--ts-var-liveboard-group-padding'?: string;
8354
+ /**
8355
+ * Padding of the title of the groups in the Liveboard.
8356
+ */
8357
+ '--ts-var-liveboard-group-title-padding'?: string;
8358
+ /**
8359
+ * Font size of the title of the groups in the Liveboard.
8360
+ */
8361
+ '--ts-var-liveboard-group-title-font-size'?: string;
8362
+ /**
8363
+ * Font weight of the title of the groups in the Liveboard.
8364
+ */
8365
+ '--ts-var-liveboard-group-title-font-weight'?: string;
8366
+ /**
8367
+ * Font size of the title of the tiles inside the groups in the Liveboard.
8368
+ */
8369
+ '--ts-var-liveboard-group-tile-title-font-size'?: string;
8370
+ /**
8371
+ * Font weight of the title of the tiles inside the groups in the Liveboard.
8372
+ */
8373
+ '--ts-var-liveboard-group-tile-title-font-weight'?: string;
8374
+ /**
8375
+ * Font size of the description of the groups in the Liveboard.
8376
+ */
8377
+ '--ts-var-liveboard-group-description-font-size'?: string;
8378
+ /**
8379
+ * Font weight of the description of the groups in the Liveboard.
8380
+ */
8381
+ '--ts-var-liveboard-group-description-font-weight'?: string;
8382
+ /**
8383
+ * Border of the tiles in the Liveboard.
8384
+ */
8385
+ '--ts-var-liveboard-group-tile-border'?: string;
8386
+ /**
8387
+ * Padding of the tiles in the Liveboard.
8388
+ */
8389
+ '--ts-var-liveboard-group-tile-padding'?: string;
8390
+ /**
8391
+ * Padding of the answer viz in the Liveboard.
8392
+ */
8393
+ '--ts-var-liveboard-answer-viz-padding'?: string;
8394
+ /**
8395
+ * Background color of the groups in the Liveboard.
8396
+ */
8397
+ '--ts-var-liveboard-group-background'?: string;
8398
+ /**
8399
+ * Border color of the groups in the Liveboard.
8400
+ */
8401
+ '--ts-var-liveboard-group-border-color'?: string;
8402
+ /**
8403
+ * Font color of the heading of the note title in the Liveboard.
8404
+ */
8405
+ '--ts-var-liveboard-notetitle-heading-font-color'?: string;
8406
+ /**
8407
+ * Font color of the body of the note title in the Liveboard.
8408
+ */
8409
+ '--ts-var-liveboard-notetitle-body-font-color'?: string;
8410
+ /**
8411
+ * Font color of the title of the groups in the Liveboard.
8412
+ */
8413
+ '--ts-var-liveboard-group-title-font-color'?: string;
8414
+ /**
8415
+ * Font color of the description of the groups in the Liveboard.
8416
+ */
8417
+ '--ts-var-liveboard-group-description-font-color'?: string;
8418
+ /**
8419
+ * Font color of the title of the tiles inside the groups in the Liveboard.
8420
+ */
8421
+ '--ts-var-liveboard-group-tile-title-font-color'?: string;
8422
+ /**
8423
+ * Background color of the tiles inside the groups in the Liveboard.
8424
+ */
8425
+ '--ts-var-liveboard-group-tile-background'?: string;
8426
+ /**
8427
+ * Background color of the chips in the Liveboard.
8428
+ */
8429
+ '--ts-var-liveboard-chip-background'?: string;
8430
+ /**
8431
+ * Font color of the chips in the Liveboard.
8432
+ */
8433
+ '--ts-var-liveboard-chip-color'?: string;
8434
+ /**
8435
+ * Background color of the chips in the Liveboard on hover.
8436
+ */
8437
+ '--ts-var-liveboard-chip--hover-background'?: string;
8438
+ /**
8439
+ * Font color of the chips in the Liveboard on hover.
8440
+ */
8441
+ '--ts-var-liveboard-chip--hover-color'?: string;
8442
+ /**
8443
+ * Background color of the chips in the Liveboard on active.
8444
+ */
8445
+ '--ts-var-liveboard-chip--active-background'?: string;
8446
+ /**
8447
+ * Font color of the chips in the Liveboard on active.
8448
+ */
8449
+ '--ts-var-liveboard-chip--active-color'?: string;
8450
+ /**
8451
+ * Width of the side panel in the Liveboard.
8452
+ */
8453
+ '--ts-var-side-panel-width'?: string;
8454
+ /**
8455
+ * Background color of the edit bar in the Liveboard.
8456
+ */
8457
+ '--ts-var-liveboard-edit-bar-background'?: string;
8458
+ /**
8459
+ * Breakpoint for the dual column layout in the Liveboard.
8460
+ */
8461
+ '--ts-var-liveboard-dual-column-breakpoint'?: string;
8462
+ /**
8463
+ * Breakpoint for the single column layout in the Liveboard.
8464
+ */
8465
+ '--ts-var-liveboard-single-column-breakpoint'?: string;
8466
+ /**
8467
+ * Background color of the cross filter layout in the Liveboard.
8468
+ */
8469
+ '--ts-var-liveboard-cross-filter-layout-background'?: string;
8470
+ /**
8471
+ * Border color of the active tab in the Liveboard.
8472
+ */
8473
+ '--ts-var-liveboard-tab-active-border-color'?: string;
8474
+ /**
8475
+ * Font color of the hover tab in the Liveboard.
8476
+ */
8477
+ '--ts-var-liveboard-tab-hover-color'?: string;
8478
+ /**
8479
+ * Font size of the title of the tiles in the Liveboard.
8480
+ */
8481
+ '--ts-var-liveboard-tile-title-fontsize'?: string;
8482
+ /**
8483
+ * Font weight of the title of the tiles in the Liveboard.
8484
+ */
8485
+ '--ts-var-liveboard-tile-title-fontweight'?: string;
8486
+ /**
8487
+ * Font weight of the description of the tiles in the Liveboard.
8488
+ */
8489
+ '--ts-var-liveboard-tile-description-font-weight'?: string;
8490
+ /**
8491
+ * Opacity of the description of the tiles in the Liveboard.
8492
+ */
8493
+ '--ts-var-liveboard-tile-description-opacity'?: string;
8494
+ /**
8495
+ * Background color of the parameter chips in the Liveboard.
8496
+ */
8497
+ '--ts-var-parameter-chip-background'?: string;
8498
+ /**
8499
+ * Font color of the parameter chips in the Liveboard.
8500
+ */
8501
+ '--ts-var-parameter-chip-text-color'?: string;
8502
+ /**
8503
+ * Background color of the parameter chips in the Liveboard on hover.
8504
+ */
8505
+ '--ts-var-parameter-chip-hover-background'?: string;
8506
+ /**
8507
+ * Font color of the parameter chips in the Liveboard on hover.
8508
+ */
8509
+ '--ts-var-parameter-chip-hover-text-color'?: string;
8510
+ /**
8511
+ * Background color of the parameter chips in the Liveboard on active.
8512
+ */
8513
+ '--ts-var-parameter-chip-active-background'?: string;
8514
+ /**
8515
+ * Font color of the parameter chips in the Liveboard on active.
8516
+ */
8517
+ '--ts-var-parameter-chip-active-text-color'?: string;
8518
+ /**
8519
+ * Background color of the action button in the Liveboard header.
8520
+ */
8521
+ '--ts-var-liveboard-header-action-button-background'?: string;
8522
+ /**
8523
+ * Font color of the action button in the Liveboard header.
8524
+ */
8525
+ '--ts-var-liveboard-header-action-button-font-color'?: string;
8526
+ /**
8527
+ * Font color of the action button in the Liveboard header on hover.
8528
+ */
8529
+ '--ts-var-liveboard-header-action-button-hover-color'?: string;
8530
+ /**
8531
+ * Font color of the action button in the Liveboard header on active.
8532
+ */
8533
+ '--ts-var-liveboard-header-action-button-active-color'?: string;
8534
+ /**
8535
+ * Background color of the badge in the Liveboard header.
8536
+ */
8537
+ '--ts-var-liveboard-header-badge-background'?: string;
8538
+ /**
8539
+ * Font color of the badge in the Liveboard header.
8540
+ */
8541
+ '--ts-var-liveboard-header-badge-font-color'?: string;
8542
+ /**
8543
+ * Background color of the modified badge in the Liveboard header.
8544
+ */
8545
+ '--ts-var-liveboard-header-badge-modified-background'?: string;
8546
+ /**
8547
+ * Font color of the modified badge in the Liveboard header.
8548
+ */
8549
+ '--ts-var-liveboard-header-badge-modified-font-color'?: string;
8550
+ /**
8551
+ * Font color of the badge in the Liveboard header on hover.
8552
+ */
8553
+ '--ts-var-liveboard-header-badge-hover-color'?: string;
8554
+ /**
8555
+ * Font color of the badge in the Liveboard header on active.
8556
+ */
8557
+ '--ts-var-liveboard-header-badge-active-color'?: string;
8558
+ /**
8559
+ * Font color of the hero text in the KPI widget.
8560
+ */
8561
+ '--ts-var-kpi-hero-color'?: string;
8562
+ /**
8563
+ * Font color of the comparison text in the KPI widget.
8564
+ */
8565
+ '--ts-var-kpi-comparison-color'?: string;
8566
+ /**
8567
+ * Font color of the analyze text in the KPI widget.
8568
+ */
8569
+ '--ts-var-kpi-analyze-text-color'?: string;
8570
+ /**
8571
+ * Font color of the legend title in the heatmap chart.
8572
+ */
8573
+ '--ts-var-chart-heatmap-legend-title-color'?: string;
8574
+ /**
8575
+ * Font color of the legend label in the heatmap chart.
8576
+ */
8577
+ '--ts-var-chart-heatmap-legend-label-color'?: string;
8578
+ /**
8579
+ * Font color of the legend title in the treemap chart.
8580
+ */
8581
+ '--ts-var-chart-treemap-legend-title-color'?: string;
8582
+ /**
8583
+ * Font color of the legend label in the treemap chart.
8584
+ */
8585
+ '--ts-var-chart-treemap-legend-label-color'?: string;
8586
+ /**
8587
+ * Color of the positive change in the KPI.
8588
+ */
8589
+ '--ts-var-kpi-positive-change-color'?: string;
8590
+ /**
8591
+ * Color of the negative change in the KPI.
8592
+ */
8593
+ '--ts-var-kpi-negative-change-color'?: string;
8594
+ /**
8595
+ * Background color of the change analysis insights.
8596
+ */
8597
+ '--ts-var-change-analysis-insights-background'?: string;
8598
+ /**
8599
+ * Background color of the forecasting card in the SpotIQ analyze.
8600
+ */
8601
+ '--ts-var-spotiq-analyze-forecasting-card-background'?: string;
8602
+ /**
8603
+ * Background color of the outlier card in the SpotIQ analyze.
8604
+ */
8605
+ '--ts-var-spotiq-analyze-outlier-card-background'?: string;
8606
+ /**
8607
+ * Background color of the trend card in the SpotIQ analyze.
8608
+ */
8609
+ '--ts-var-spotiq-analyze-trend-card-background'?: string;
8610
+ /**
8611
+ * Background color of the crosscorrelation card in the SpotIQ analyze.
8612
+ */
8613
+ '--ts-var-spotiq-analyze-crosscorrelation-card-background'?: string;
8614
+ /**
8615
+ * Background color of the summary header in the CCA modal.
8616
+ */
8617
+ '--ts-var-cca-modal-summary-header-background'?: string;
7874
8618
  }
7875
8619
  }
7876
8620
 
@@ -8379,16 +9123,31 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/nlsService/nls-answe
8379
9123
  declare module '@thoughtspot/visual-embed-sdk/utils/liveboardService/liveboardService' {
8380
9124
  import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
8381
9125
  /**
8382
- * Create a liveboard with the given answers
8383
- * @param answers AnswerService[]
8384
- * @param name string
9126
+ * Creates a new Liveboard in ThoughtSpot using the provided AnswerService instances.
9127
+ *
9128
+ * Each answer will be added as a visualization to the newly created Liveboard.
9129
+ *
9130
+ * @param {AnswerService[]} answers - An array of initialized `AnswerService` instances
9131
+ * representing the answers to be added to the Liveboard.
9132
+ * @param {string} name - The name of the Liveboard to create.
8385
9133
  * @returns result Promise
8386
9134
  * @version SDK: 1.33.1 | ThoughtSpot: *
8387
9135
  * @example
8388
9136
  * ```js
8389
- * const lb = createLiveboardWithAnswers([
8390
- * new AnswerService(session, null, 'tshost'),
8391
- * ], "my-liveboard");
9137
+ * import { EmbedEvent, AnswerService } from "@thoughtspot/visual-embed-sdk";
9138
+ *
9139
+ * embed.on(EmbedEvent.Data, async () => {
9140
+ * try {
9141
+ * const answerService = await embed.getAnswerService();
9142
+ * const lb = await createLiveboardWithAnswers(
9143
+ * [answerService],
9144
+ * "My Liveboard"
9145
+ * );
9146
+ * console.log("Liveboard created:", lb);
9147
+ * } catch (err) {
9148
+ * console.error("Failed to create liveboard:", err);
9149
+ * }
9150
+ * });
8392
9151
  * ```
8393
9152
  */
8394
9153
  export const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
@@ -8679,6 +9438,19 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
8679
9438
  * ```
8680
9439
  */
8681
9440
  off(messageType: EmbedEvent, callback: MessageCallback): typeof TsEmbed.prototype;
9441
+ /**
9442
+ * @hidden
9443
+ * Internal state to track if the embed container is loaded.
9444
+ * This is used to trigger events after the embed container is loaded.
9445
+ */
9446
+ isEmbedContainerLoaded: boolean;
9447
+ protected getPreRenderObj<T extends TsEmbed>(): T;
9448
+ /**
9449
+ * Executes a callback after the embed container is loaded.
9450
+ * @param callback The callback to execute
9451
+ */
9452
+ protected executeAfterEmbedContainerLoaded(callback: () => void): void;
9453
+ protected createEmbedContainerHandler: (source: EmbedEvent.AuthInit | EmbedEvent.EmbedListenerReady) => () => void;
8682
9454
  /**
8683
9455
  * Triggers an event to the embedded app
8684
9456
  * @param {HostEvent} messageType The event type