@thoughtspot/visual-embed-sdk 1.45.1 → 1.45.3-mcp.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/cjs/package.json +2 -2
  2. package/cjs/src/authToken.d.ts +1 -1
  3. package/cjs/src/authToken.d.ts.map +1 -1
  4. package/cjs/src/authToken.js +2 -2
  5. package/cjs/src/authToken.js.map +1 -1
  6. package/cjs/src/authToken.spec.js +71 -0
  7. package/cjs/src/authToken.spec.js.map +1 -1
  8. package/cjs/src/css-variables.d.ts +48 -0
  9. package/cjs/src/css-variables.d.ts.map +1 -1
  10. package/cjs/src/embed/app.d.ts +37 -0
  11. package/cjs/src/embed/app.d.ts.map +1 -1
  12. package/cjs/src/embed/app.js +37 -1
  13. package/cjs/src/embed/app.js.map +1 -1
  14. package/cjs/src/embed/app.spec.js +24 -0
  15. package/cjs/src/embed/app.spec.js.map +1 -1
  16. package/cjs/src/embed/auto-frame-renderer.d.ts +3 -0
  17. package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -0
  18. package/cjs/src/embed/auto-frame-renderer.js +60 -0
  19. package/cjs/src/embed/auto-frame-renderer.js.map +1 -0
  20. package/cjs/src/embed/base.d.ts.map +1 -1
  21. package/cjs/src/embed/base.js.map +1 -1
  22. package/cjs/src/embed/conversation.d.ts +128 -10
  23. package/cjs/src/embed/conversation.d.ts.map +1 -1
  24. package/cjs/src/embed/conversation.js +41 -18
  25. package/cjs/src/embed/conversation.js.map +1 -1
  26. package/cjs/src/embed/conversation.spec.js +96 -3
  27. package/cjs/src/embed/conversation.spec.js.map +1 -1
  28. package/cjs/src/embed/hostEventClient/contracts.d.ts +3 -3
  29. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  30. package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
  31. package/cjs/src/embed/hostEventClient/host-event-client.d.ts +8 -8
  32. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  33. package/cjs/src/embed/hostEventClient/host-event-client.js +18 -18
  34. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  35. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +7 -7
  36. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  37. package/cjs/src/embed/liveboard.d.ts +40 -3
  38. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  39. package/cjs/src/embed/liveboard.js +40 -12
  40. package/cjs/src/embed/liveboard.js.map +1 -1
  41. package/cjs/src/embed/liveboard.spec.js +180 -8
  42. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  43. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  44. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  45. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +104 -0
  46. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  47. package/cjs/src/embed/ts-embed.d.ts +23 -2
  48. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  49. package/cjs/src/embed/ts-embed.js +64 -22
  50. package/cjs/src/embed/ts-embed.js.map +1 -1
  51. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  52. package/cjs/src/embed/ts-embed.spec.js +138 -19
  53. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  54. package/cjs/src/errors.d.ts +1 -0
  55. package/cjs/src/errors.d.ts.map +1 -1
  56. package/cjs/src/errors.js +1 -0
  57. package/cjs/src/errors.js.map +1 -1
  58. package/cjs/src/index.d.ts +4 -3
  59. package/cjs/src/index.d.ts.map +1 -1
  60. package/cjs/src/index.js +5 -2
  61. package/cjs/src/index.js.map +1 -1
  62. package/cjs/src/types.d.ts +360 -43
  63. package/cjs/src/types.d.ts.map +1 -1
  64. package/cjs/src/types.js +228 -20
  65. package/cjs/src/types.js.map +1 -1
  66. package/cjs/src/utils/answerService/answerService.d.ts +34 -0
  67. package/cjs/src/utils/answerService/answerService.d.ts.map +1 -0
  68. package/cjs/src/utils/answerService/answerService.js +142 -0
  69. package/cjs/src/utils/answerService/answerService.js.map +1 -0
  70. package/cjs/src/utils/answerService/answerService.spec.d.ts +1 -0
  71. package/cjs/src/utils/answerService/answerService.spec.d.ts.map +1 -0
  72. package/cjs/src/utils/answerService/answerService.spec.js +1 -0
  73. package/cjs/src/utils/answerService/answerService.spec.js.map +1 -0
  74. package/cjs/src/utils/answerService/graphql-queries.d.ts +6 -0
  75. package/cjs/src/utils/answerService/graphql-queries.d.ts.map +1 -0
  76. package/cjs/src/utils/answerService/graphql-queries.js +123 -0
  77. package/cjs/src/utils/answerService/graphql-queries.js.map +1 -0
  78. package/cjs/src/utils/answerService.d.ts +10 -0
  79. package/cjs/src/utils/answerService.d.ts.map +1 -0
  80. package/cjs/src/utils/answerService.js +61 -0
  81. package/cjs/src/utils/answerService.js.map +1 -0
  82. package/cjs/src/utils/answerService.spec.d.ts +2 -0
  83. package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
  84. package/cjs/src/utils/answerService.spec.js +31 -0
  85. package/cjs/src/utils/answerService.spec.js.map +1 -0
  86. package/cjs/src/utils/authService.d.ts +37 -0
  87. package/cjs/src/utils/authService.d.ts.map +1 -0
  88. package/cjs/src/utils/authService.js +106 -0
  89. package/cjs/src/utils/authService.js.map +1 -0
  90. package/cjs/src/utils/authService.spec.d.ts +2 -0
  91. package/cjs/src/utils/authService.spec.d.ts.map +1 -0
  92. package/cjs/src/utils/authService.spec.js +72 -0
  93. package/cjs/src/utils/authService.spec.js.map +1 -0
  94. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  95. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  96. package/cjs/src/utils/graphql/answerService/answer-queries.js +23 -1
  97. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  98. package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -1
  99. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  100. package/cjs/src/utils/graphql/answerService/answerService.js +9 -1
  101. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  102. package/cjs/src/utils/graphql/answerService/answerService.spec.js +73 -0
  103. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  104. package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts +5 -0
  105. package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts.map +1 -0
  106. package/cjs/src/utils/graphql/answerService/graphql-queries.js +80 -0
  107. package/cjs/src/utils/graphql/answerService/graphql-queries.js.map +1 -0
  108. package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
  109. package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
  110. package/cjs/src/utils/graphql/conversationService/conversation-queries.js +318 -0
  111. package/cjs/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
  112. package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
  113. package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
  114. package/cjs/src/utils/graphql/conversationService/conversation-service.js +89 -0
  115. package/cjs/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
  116. package/cjs/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
  117. package/cjs/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
  118. package/cjs/src/utils/graphql/spotterService/conversation-queries.js +318 -0
  119. package/cjs/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
  120. package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
  121. package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
  122. package/cjs/src/utils/graphql/spotterService/conversation-service.js +89 -0
  123. package/cjs/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
  124. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
  125. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
  126. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js +403 -0
  127. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
  128. package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts +12 -0
  129. package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
  130. package/cjs/src/utils/graphql/spotterService/nls-answer-service.js +55 -0
  131. package/cjs/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
  132. package/cjs/src/utils/processTrigger.d.ts +3 -2
  133. package/cjs/src/utils/processTrigger.d.ts.map +1 -1
  134. package/cjs/src/utils/processTrigger.js +4 -2
  135. package/cjs/src/utils/processTrigger.js.map +1 -1
  136. package/cjs/src/utils.d.ts +20 -1
  137. package/cjs/src/utils.d.ts.map +1 -1
  138. package/cjs/src/utils.js +40 -1
  139. package/cjs/src/utils.js.map +1 -1
  140. package/cjs/src/utils.spec.js +49 -0
  141. package/cjs/src/utils.spec.js.map +1 -1
  142. package/dist/{index-Dgzjq7qH.js → index-0serzuii.js} +1 -1
  143. package/dist/index-CqrIh3Vj.js +7370 -0
  144. package/dist/src/authToken.d.ts +1 -1
  145. package/dist/src/authToken.d.ts.map +1 -1
  146. package/dist/src/css-variables.d.ts +48 -0
  147. package/dist/src/css-variables.d.ts.map +1 -1
  148. package/dist/src/embed/app.d.ts +37 -0
  149. package/dist/src/embed/app.d.ts.map +1 -1
  150. package/dist/src/embed/auto-frame-renderer.d.ts +3 -0
  151. package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -0
  152. package/dist/src/embed/base.d.ts.map +1 -1
  153. package/dist/src/embed/conversation.d.ts +128 -10
  154. package/dist/src/embed/conversation.d.ts.map +1 -1
  155. package/dist/src/embed/hostEventClient/contracts.d.ts +3 -3
  156. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  157. package/dist/src/embed/hostEventClient/host-event-client.d.ts +8 -8
  158. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  159. package/dist/src/embed/liveboard.d.ts +40 -3
  160. package/dist/src/embed/liveboard.d.ts.map +1 -1
  161. package/dist/src/embed/ts-embed.d.ts +23 -2
  162. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  163. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  164. package/dist/src/errors.d.ts +1 -0
  165. package/dist/src/errors.d.ts.map +1 -1
  166. package/dist/src/index.d.ts +4 -3
  167. package/dist/src/index.d.ts.map +1 -1
  168. package/dist/src/types.d.ts +360 -43
  169. package/dist/src/types.d.ts.map +1 -1
  170. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  171. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  172. package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -1
  173. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  174. package/dist/src/utils/processTrigger.d.ts +3 -2
  175. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  176. package/dist/src/utils.d.ts +20 -1
  177. package/dist/src/utils.d.ts.map +1 -1
  178. package/dist/tsembed-react.es.js +502 -98
  179. package/dist/tsembed-react.js +501 -97
  180. package/dist/tsembed.es.js +570 -113
  181. package/dist/tsembed.js +30011 -29553
  182. package/dist/visual-embed-sdk-react-full.d.ts +820 -283
  183. package/dist/visual-embed-sdk-react.d.ts +819 -282
  184. package/dist/visual-embed-sdk.d.ts +886 -322
  185. package/lib/package.json +2 -2
  186. package/lib/src/authToken.d.ts +1 -1
  187. package/lib/src/authToken.d.ts.map +1 -1
  188. package/lib/src/authToken.js +2 -2
  189. package/lib/src/authToken.js.map +1 -1
  190. package/lib/src/authToken.spec.js +72 -1
  191. package/lib/src/authToken.spec.js.map +1 -1
  192. package/lib/src/css-variables.d.ts +48 -0
  193. package/lib/src/css-variables.d.ts.map +1 -1
  194. package/lib/src/embed/app.d.ts +37 -0
  195. package/lib/src/embed/app.d.ts.map +1 -1
  196. package/lib/src/embed/app.js +39 -3
  197. package/lib/src/embed/app.js.map +1 -1
  198. package/lib/src/embed/app.spec.js +24 -0
  199. package/lib/src/embed/app.spec.js.map +1 -1
  200. package/lib/src/embed/auto-frame-renderer.d.ts +3 -0
  201. package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -0
  202. package/lib/src/embed/auto-frame-renderer.js +56 -0
  203. package/lib/src/embed/auto-frame-renderer.js.map +1 -0
  204. package/lib/src/embed/base.d.ts.map +1 -1
  205. package/lib/src/embed/base.js.map +1 -1
  206. package/lib/src/embed/conversation.d.ts +128 -10
  207. package/lib/src/embed/conversation.d.ts.map +1 -1
  208. package/lib/src/embed/conversation.js +42 -19
  209. package/lib/src/embed/conversation.js.map +1 -1
  210. package/lib/src/embed/conversation.spec.js +96 -3
  211. package/lib/src/embed/conversation.spec.js.map +1 -1
  212. package/lib/src/embed/hostEventClient/contracts.d.ts +3 -3
  213. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  214. package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
  215. package/lib/src/embed/hostEventClient/host-event-client.d.ts +8 -8
  216. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  217. package/lib/src/embed/hostEventClient/host-event-client.js +18 -18
  218. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  219. package/lib/src/embed/hostEventClient/host-event-client.spec.js +7 -7
  220. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  221. package/lib/src/embed/liveboard.d.ts +40 -3
  222. package/lib/src/embed/liveboard.d.ts.map +1 -1
  223. package/lib/src/embed/liveboard.js +41 -13
  224. package/lib/src/embed/liveboard.js.map +1 -1
  225. package/lib/src/embed/liveboard.spec.js +180 -8
  226. package/lib/src/embed/liveboard.spec.js.map +1 -1
  227. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  228. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  229. package/lib/src/embed/searchEmbed-basic-auth.spec.js +101 -0
  230. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  231. package/lib/src/embed/ts-embed.d.ts +23 -2
  232. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  233. package/lib/src/embed/ts-embed.js +64 -22
  234. package/lib/src/embed/ts-embed.js.map +1 -1
  235. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  236. package/lib/src/embed/ts-embed.spec.js +139 -20
  237. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  238. package/lib/src/errors.d.ts +1 -0
  239. package/lib/src/errors.d.ts.map +1 -1
  240. package/lib/src/errors.js +1 -0
  241. package/lib/src/errors.js.map +1 -1
  242. package/lib/src/index.d.ts +4 -3
  243. package/lib/src/index.d.ts.map +1 -1
  244. package/lib/src/index.js +3 -2
  245. package/lib/src/index.js.map +1 -1
  246. package/lib/src/types.d.ts +360 -43
  247. package/lib/src/types.d.ts.map +1 -1
  248. package/lib/src/types.js +227 -19
  249. package/lib/src/types.js.map +1 -1
  250. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
  251. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  252. package/lib/src/utils/graphql/answerService/answer-queries.js +22 -0
  253. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  254. package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -1
  255. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  256. package/lib/src/utils/graphql/answerService/answerService.js +9 -1
  257. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  258. package/lib/src/utils/graphql/answerService/answerService.spec.js +73 -0
  259. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  260. package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
  261. package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
  262. package/lib/src/utils/graphql/conversationService/conversation-queries.js +315 -0
  263. package/lib/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
  264. package/lib/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
  265. package/lib/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
  266. package/lib/src/utils/graphql/conversationService/conversation-service.js +84 -0
  267. package/lib/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
  268. package/lib/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
  269. package/lib/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
  270. package/lib/src/utils/graphql/spotterService/conversation-queries.js +315 -0
  271. package/lib/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
  272. package/lib/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
  273. package/lib/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
  274. package/lib/src/utils/graphql/spotterService/conversation-service.js +84 -0
  275. package/lib/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
  276. package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
  277. package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
  278. package/lib/src/utils/graphql/spotterService/nls-answer-queries.js +400 -0
  279. package/lib/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
  280. package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts +12 -0
  281. package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
  282. package/lib/src/utils/graphql/spotterService/nls-answer-service.js +50 -0
  283. package/lib/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
  284. package/lib/src/utils/processTrigger.d.ts +3 -2
  285. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  286. package/lib/src/utils/processTrigger.js +4 -2
  287. package/lib/src/utils/processTrigger.js.map +1 -1
  288. package/lib/src/utils.d.ts +20 -1
  289. package/lib/src/utils.d.ts.map +1 -1
  290. package/lib/src/utils.js +36 -0
  291. package/lib/src/utils.js.map +1 -1
  292. package/lib/src/utils.spec.js +50 -1
  293. package/lib/src/utils.spec.js.map +1 -1
  294. package/lib/src/visual-embed-sdk.d.ts +7186 -0
  295. package/package.json +3 -3
  296. package/src/authToken.spec.ts +91 -2
  297. package/src/authToken.ts +2 -2
  298. package/src/css-variables.ts +60 -0
  299. package/src/embed/app.spec.ts +32 -0
  300. package/src/embed/app.ts +97 -1
  301. package/src/embed/auto-frame-renderer.ts +65 -0
  302. package/src/embed/base.ts +1 -0
  303. package/src/embed/conversation.spec.ts +117 -3
  304. package/src/embed/conversation.ts +189 -30
  305. package/src/embed/hostEventClient/contracts.ts +4 -4
  306. package/src/embed/hostEventClient/host-event-client.spec.ts +7 -1
  307. package/src/embed/hostEventClient/host-event-client.ts +22 -11
  308. package/src/embed/liveboard.spec.ts +264 -10
  309. package/src/embed/liveboard.ts +105 -14
  310. package/src/embed/ts-embed.spec.ts +184 -8
  311. package/src/embed/ts-embed.ts +81 -24
  312. package/src/errors.ts +1 -0
  313. package/src/index.ts +10 -1
  314. package/src/types.ts +368 -41
  315. package/src/utils/graphql/answerService/answer-queries.ts +23 -0
  316. package/src/utils/graphql/answerService/answerService.spec.ts +87 -0
  317. package/src/utils/graphql/answerService/answerService.ts +13 -1
  318. package/src/utils/processTrigger.ts +6 -3
  319. package/src/utils.spec.ts +56 -0
  320. package/src/utils.ts +44 -0
@@ -701,6 +701,54 @@ export interface CustomCssVariables {
701
701
  * Width of the Spotter chat window.
702
702
  */
703
703
  "--ts-var-spotter-chat-width"?: string;
704
+ /**
705
+ * Border color for the saved chats sidebar container.
706
+ */
707
+ "--ts-var-saved-chats-border-color"?: string;
708
+ /**
709
+ * Background color for the saved chats sidebar container.
710
+ */
711
+ "--ts-var-saved-chats-bg"?: string;
712
+ /**
713
+ * Text color for the saved chats sidebar container.
714
+ */
715
+ "--ts-var-saved-chats-text-color"?: string;
716
+ /**
717
+ * Border color for the saved chats sidebar header.
718
+ */
719
+ "--ts-var-saved-chats-header-border"?: string;
720
+ /**
721
+ * Color for the saved chats sidebar title text.
722
+ */
723
+ "--ts-var-saved-chats-title-color"?: string;
724
+ /**
725
+ * Background color for buttons (new chat, toggle, footer) in the saved chats sidebar.
726
+ */
727
+ "--ts-var-saved-chats-btn-bg"?: string;
728
+ /**
729
+ * Hover background color for buttons in the saved chats sidebar.
730
+ */
731
+ "--ts-var-saved-chats-btn-hover-bg"?: string;
732
+ /**
733
+ * Text color for conversation items in the saved chats sidebar.
734
+ */
735
+ "--ts-var-saved-chats-conv-text-color"?: string;
736
+ /**
737
+ * Background color for conversation items on hover in the saved chats sidebar.
738
+ */
739
+ "--ts-var-saved-chats-conv-hover-bg"?: string;
740
+ /**
741
+ * Background color for the active/selected conversation in the saved chats sidebar.
742
+ */
743
+ "--ts-var-saved-chats-conv-active-bg"?: string;
744
+ /**
745
+ * Border color for the saved chats sidebar footer.
746
+ */
747
+ "--ts-var-saved-chats-footer-border"?: string;
748
+ /**
749
+ * Color for section title text (e.g., "Recent", "Older") in the saved chats sidebar.
750
+ */
751
+ "--ts-var-saved-chats-section-title-color"?: string;
704
752
  }
705
753
  export interface SessionInterface {
706
754
  sessionId: string;
@@ -817,7 +865,8 @@ export declare class AnswerService {
817
865
  * @returns
818
866
  */
819
867
  addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter["values"]): Promise<any>;
820
- getSQLQuery(): Promise<string>;
868
+ updateDisplayMode(displayMode?: string): Promise<any>;
869
+ getSQLQuery(fetchSQLWithAllColumns?: boolean): Promise<string>;
821
870
  /**
822
871
  * Fetch data from the answer.
823
872
  * @param offset
@@ -1976,6 +2025,46 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1976
2025
  * ```
1977
2026
  */
1978
2027
  customActions?: CustomAction[];
2028
+ /**
2029
+ * Refresh the auth token when the token is near expiry.
2030
+ * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
2031
+ * @example
2032
+ * ```js
2033
+ * const embed = new AppEmbed('#tsEmbed', {
2034
+ * ... // other embed view config
2035
+ * refreshAuthTokenOnNearExpiry: true,
2036
+ * })
2037
+ * ```
2038
+ */
2039
+ refreshAuthTokenOnNearExpiry?: boolean;
2040
+ /**
2041
+ * This flag skips payload validation so events can be processed even if the payload is old, incomplete, or from a trusted system.
2042
+ * @default false
2043
+ * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
2044
+ * @example
2045
+ * ```js
2046
+ * const embed = new AppEmbed('#tsEmbed', {
2047
+ * ... // other embed view config
2048
+ * shouldBypassPayloadValidation:true,
2049
+ * })
2050
+ * ```
2051
+ */
2052
+ shouldBypassPayloadValidation?: boolean;
2053
+ /**
2054
+ * Flag to use host events v2. This is used to enable the new host events v2 API.
2055
+ * @default false
2056
+ * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
2057
+ * @example
2058
+ * ```js
2059
+ * const embed = new AppEmbed('#tsEmbed', {
2060
+ * ... // other embed view config
2061
+ * useHostEventsV2:true,
2062
+ * })
2063
+ * ```
2064
+ */
2065
+ useHostEventsV2?: boolean;
2066
+ }
2067
+ export interface AutoMCPFrameRendererViewConfig extends BaseViewConfig {
1979
2068
  }
1980
2069
  /**
1981
2070
  * The configuration object for Home page embeds configs.
@@ -2174,7 +2263,7 @@ export interface SearchLiveboardCommonViewConfig {
2174
2263
  *
2175
2264
  * Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
2176
2265
  * @default true
2177
- * @version SDK: 1.41.1 | ThoughtSpot Cloud: 10.14.0.cl
2266
+ * @deprecated from SDK 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
2178
2267
  * @example
2179
2268
  * ```js
2180
2269
  * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
@@ -2411,7 +2500,7 @@ export interface LiveboardAppEmbedViewConfig {
2411
2500
  * To enable this feature on your instance, contact ThoughtSpot Support.
2412
2501
  *
2413
2502
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2414
- * @version SDK: 1.42.0 | ThoughtSpot: 10.15.0.cl
2503
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
2415
2504
  * @example
2416
2505
  * ```js
2417
2506
  * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
@@ -3973,7 +4062,55 @@ export declare enum EmbedEvent {
3973
4062
  * ```
3974
4063
  * @version SDK: 1.43.0 | ThoughtSpot: 10.15.0.cl
3975
4064
  */
3976
- ApiIntercept = "ApiIntercept"
4065
+ ApiIntercept = "ApiIntercept",
4066
+ /**
4067
+ * Emitted when a Spotter conversation is renamed.
4068
+ * @example
4069
+ * ```js
4070
+ * spotterEmbed.on(EmbedEvent.SpotterConversationRenamed, (payload) => {
4071
+ * console.log('Conversation renamed', payload);
4072
+ * // payload: { convId: string, oldTitle: string, newTitle: string }
4073
+ * })
4074
+ * ```
4075
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4076
+ */
4077
+ SpotterConversationRenamed = "spotterConversationRenamed",
4078
+ /**
4079
+ * Emitted when a Spotter conversation is deleted.
4080
+ * @example
4081
+ * ```js
4082
+ * spotterEmbed.on(EmbedEvent.SpotterConversationDeleted, (payload) => {
4083
+ * console.log('Conversation deleted', payload);
4084
+ * // payload: { convId: string, title: string }
4085
+ * })
4086
+ * ```
4087
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4088
+ */
4089
+ SpotterConversationDeleted = "spotterConversationDeleted",
4090
+ /**
4091
+ * Emitted when a Spotter conversation is selected/clicked.
4092
+ * @example
4093
+ * ```js
4094
+ * spotterEmbed.on(EmbedEvent.SpotterConversationSelected, (payload) => {
4095
+ * console.log('Conversation selected', payload);
4096
+ * // payload: { convId: string, title: string, worksheetId: string }
4097
+ * })
4098
+ * ```
4099
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
4100
+ */
4101
+ SpotterConversationSelected = "spotterConversationSelected",
4102
+ /**
4103
+ * @hidden
4104
+ * Emitted when the auth token is about to get expired and needs to be refreshed.
4105
+ * @example
4106
+ * ```js
4107
+ * embed.on(EmbedEvent.RefreshAuthToken, (payload) => {
4108
+ * console.log('payload', payload);
4109
+ * })
4110
+ * ```
4111
+ * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
4112
+ */
4113
+ RefreshAuthToken = "RefreshAuthToken"
3977
4114
  }
3978
4115
  /**
3979
4116
  * Event types that can be triggered by the host application
@@ -5355,7 +5492,18 @@ export declare enum HostEvent {
5355
5492
  * ```
5356
5493
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
5357
5494
  */
5358
- StartNewSpotterConversation = "StartNewSpotterConversation"
5495
+ StartNewSpotterConversation = "StartNewSpotterConversation",
5496
+ /**
5497
+ * @hidden
5498
+ * Get the current context of the embedded page.
5499
+ *
5500
+ * @example
5501
+ * ```js
5502
+ * const context = await liveboardEmbed.trigger(HostEvent.GetPageContext);
5503
+ * ```
5504
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
5505
+ */
5506
+ GetPageContext = "GetPageContext"
5359
5507
  }
5360
5508
  /**
5361
5509
  * The different visual modes that the data sources panel within
@@ -6798,6 +6946,96 @@ export declare enum Action {
6798
6946
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
6799
6947
  */
6800
6948
  UngroupLiveboardGroup = "ungroupLiveboardGroup",
6949
+ /**
6950
+ * Controls visibility of the sidebar header (title and toggle button)
6951
+ * in the Spotter past conversations sidebar.
6952
+ * @example
6953
+ * ```js
6954
+ * hiddenActions: [Action.SpotterSidebarHeader]
6955
+ * ```
6956
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
6957
+ */
6958
+ SpotterSidebarHeader = "spotterSidebarHeader",
6959
+ /**
6960
+ * Controls visibility of the sidebar footer (documentation link)
6961
+ * in the Spotter past conversations sidebar.
6962
+ * @example
6963
+ * ```js
6964
+ * hiddenActions: [Action.SpotterSidebarFooter]
6965
+ * ```
6966
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
6967
+ */
6968
+ SpotterSidebarFooter = "spotterSidebarFooter",
6969
+ /**
6970
+ * Controls visibility and disable state of the sidebar toggle/expand button
6971
+ * in the Spotter past conversations sidebar.
6972
+ * @example
6973
+ * ```js
6974
+ * disabledActions: [Action.SpotterSidebarToggle]
6975
+ * ```
6976
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
6977
+ */
6978
+ SpotterSidebarToggle = "spotterSidebarToggle",
6979
+ /**
6980
+ * Controls visibility and disable state of the "New Chat" button
6981
+ * in the Spotter past conversations sidebar.
6982
+ * @example
6983
+ * ```js
6984
+ * disabledActions: [Action.SpotterNewChat]
6985
+ * ```
6986
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
6987
+ */
6988
+ SpotterNewChat = "spotterNewChat",
6989
+ /**
6990
+ * Controls visibility of the past conversation banner alert
6991
+ * in the Spotter interface.
6992
+ * @example
6993
+ * ```js
6994
+ * hiddenActions: [Action.SpotterPastChatBanner]
6995
+ * ```
6996
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
6997
+ */
6998
+ SpotterPastChatBanner = "spotterPastChatBanner",
6999
+ /**
7000
+ * Controls visibility and disable state of the conversation edit menu
7001
+ * (three-dot menu) in the Spotter past conversations sidebar.
7002
+ * @example
7003
+ * ```js
7004
+ * disabledActions: [Action.SpotterChatMenu]
7005
+ * ```
7006
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
7007
+ */
7008
+ SpotterChatMenu = "spotterChatMenu",
7009
+ /**
7010
+ * Controls visibility and disable state of the rename action
7011
+ * in the Spotter conversation edit menu.
7012
+ * @example
7013
+ * ```js
7014
+ * disabledActions: [Action.SpotterChatRename]
7015
+ * ```
7016
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
7017
+ */
7018
+ SpotterChatRename = "spotterChatRename",
7019
+ /**
7020
+ * Controls visibility and disable state of the delete action
7021
+ * in the Spotter conversation edit menu.
7022
+ * @example
7023
+ * ```js
7024
+ * disabledActions: [Action.SpotterChatDelete]
7025
+ * ```
7026
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
7027
+ */
7028
+ SpotterChatDelete = "spotterChatDelete",
7029
+ /**
7030
+ * Controls visibility and disable state of the documentation/best practices
7031
+ * link in the Spotter sidebar footer.
7032
+ * @example
7033
+ * ```js
7034
+ * disabledActions: [Action.SpotterDocs]
7035
+ * ```
7036
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
7037
+ */
7038
+ SpotterDocs = "spotterDocs",
6801
7039
  /**
6802
7040
  * The **Include current period** checkbox for date filters.
6803
7041
  * Controls the visibility and availability of the option to include
@@ -6989,13 +7227,30 @@ export declare enum LogLevel {
6989
7227
  * Error types emitted by embedded components.
6990
7228
  *
6991
7229
  * These enum values categorize different types of errors that can occur during
6992
- * the lifecycle of an embedded ThoughtSpot component. Use these values to implement
6993
- * specific error handling logic based on the error category.
6994
- *
6995
- * @see {@link EmbedErrorDetailsEvent} - The error event object structure
6996
- * @see {@link EmbedEvent.Error} - The event that emits these errors
7230
+ * the lifecycle of an embedded ThoughtSpot component.
7231
+ * Use {@link EmbedErrorDetailsEvent} and {@link EmbedErrorCodes} to handle specific errors.
6997
7232
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
6998
7233
  * @group Error Handling
7234
+ *
7235
+ * @example
7236
+ * Handle specific error types
7237
+ * ```js
7238
+ * embed.on(EmbedEvent.Error, (error) => {
7239
+ * switch (error.errorType) {
7240
+ * case ErrorDetailsTypes.API:
7241
+ * console.error('API error:', error.message);
7242
+ * break;
7243
+ * case ErrorDetailsTypes.VALIDATION_ERROR:
7244
+ * console.error('Validation error:', error.message);
7245
+ * break;
7246
+ * case ErrorDetailsTypes.NETWORK:
7247
+ * console.error('Network error:', error.message);
7248
+ * break;
7249
+ * default:
7250
+ * console.error('Unknown error:', error);
7251
+ * }
7252
+ * });
7253
+ * ```
6999
7254
  */
7000
7255
  export declare enum ErrorDetailsTypes {
7001
7256
  /** API call failure */
@@ -7006,34 +7261,42 @@ export declare enum ErrorDetailsTypes {
7006
7261
  NETWORK = "NETWORK"
7007
7262
  }
7008
7263
  /**
7009
- * Error codes for identifying specific issues in embedded ThoughtSpot components.
7010
- *
7011
- * Use these codes for precise error handling and debugging. Each code maps to a
7012
- * distinct failure scenario, enabling targeted recovery strategies.
7264
+ * Error codes for identifying specific issues in embedded ThoughtSpot components. Use {@link EmbedErrorDetailsEvent} and {@link ErrorDetailsTypes} codes for precise error handling and debugging.
7013
7265
  *
7014
7266
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
7015
7267
  * @group Error Handling
7016
- *
7017
- * @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
7018
- * @see {@link ErrorDetailsTypes} - General error type categories
7019
- *
7268
+
7020
7269
  * @example
7021
7270
  * Handle specific error codes in the error event handler
7022
- *
7271
+ * ```js
7023
7272
  * embed.on(EmbedEvent.Error, (error) => {
7024
- * if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {
7025
- * console.error('Worksheet ID not found:', error.message);
7273
+ * switch (error.code) {
7274
+ * case EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND:
7275
+ * console.error('Worksheet ID not found:', error.message);
7276
+ * break;
7277
+ * case EmbedErrorCodes.LIVEBOARD_ID_MISSING:
7278
+ * console.error('Liveboard ID is missing:', error.message);
7279
+ * break;
7280
+ * case EmbedErrorCodes.CONFLICTING_ACTIONS_CONFIG:
7281
+ * console.error('Conflicting actions configuration:', error.message);
7282
+ * break;
7283
+ * case EmbedErrorCodes.CONFLICTING_TABS_CONFIG:
7284
+ * console.error('Conflicting tabs configuration:', error.message);
7285
+ * break;
7286
+ * default:
7287
+ * console.error('Unknown error:', error);
7026
7288
  * }
7027
7289
  * });
7028
- * */
7290
+ * ```
7291
+ * */
7029
7292
  export declare enum EmbedErrorCodes {
7030
7293
  /** Worksheet ID not found or does not exist */
7031
7294
  WORKSHEET_ID_NOT_FOUND = "WORKSHEET_ID_NOT_FOUND",
7032
7295
  /** Required Liveboard ID is missing from configuration */
7033
7296
  LIVEBOARD_ID_MISSING = "LIVEBOARD_ID_MISSING",
7034
- /** Conflicting action configuration detected (e.g., both hiddenActions and visibleActions specified) */
7297
+ /** Conflicting action configuration detected */
7035
7298
  CONFLICTING_ACTIONS_CONFIG = "CONFLICTING_ACTIONS_CONFIG",
7036
- /** Conflicting tab configuration detected (e.g., both hiddenTabs and visibleTabs specified) */
7299
+ /** Conflicting tab configuration detected */
7037
7300
  CONFLICTING_TABS_CONFIG = "CONFLICTING_TABS_CONFIG",
7038
7301
  /** Error during component initialization */
7039
7302
  INIT_ERROR = "INIT_ERROR",
@@ -7050,7 +7313,9 @@ export declare enum EmbedErrorCodes {
7050
7313
  /** Error parsing api intercept body */
7051
7314
  PARSING_API_INTERCEPT_BODY_ERROR = "PARSING_API_INTERCEPT_BODY_ERROR",
7052
7315
  /** Failed to update embed parameters during pre-render */
7053
- UPDATE_PARAMS_FAILED = "UPDATE_PARAMS_FAILED"
7316
+ UPDATE_PARAMS_FAILED = "UPDATE_PARAMS_FAILED",
7317
+ /** Invalid URL provided in configuration */
7318
+ INVALID_URL = "INVALID_URL"
7054
7319
  }
7055
7320
  /**
7056
7321
  * Error event object emitted when an error occurs in an embedded component.
@@ -7063,7 +7328,7 @@ export declare enum EmbedErrorCodes {
7063
7328
  *
7064
7329
  * - **errorType**: One of the predefined {@link ErrorDetailsTypes} values
7065
7330
  * - **message**: Human-readable error description (string or array of strings for multiple errors)
7066
- * - **code**: Machine-readable error identifier for programmatic handling
7331
+ * - **code**: Machine-readable error identifier {@link EmbedErrorCodes} values
7067
7332
  * - **[key: string]**: Additional context-specific for backward compatibility
7068
7333
  *
7069
7334
  * ## Usage
@@ -7073,12 +7338,11 @@ export declare enum EmbedErrorCodes {
7073
7338
  *
7074
7339
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
7075
7340
  * @group Error Handling
7076
- * @see {@link ErrorDetailsTypes} - Available error type values
7077
- * @see {@link EmbedEvent.Error} - The event that emits this object
7078
7341
  *
7079
7342
  * @example
7080
7343
  * Handle specific error types
7081
7344
  *
7345
+ * ```js
7082
7346
  * embed.on(EmbedEvent.Error, (error) => {
7083
7347
  * switch (error.code) {
7084
7348
  * case EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND:
@@ -7088,30 +7352,18 @@ export declare enum EmbedErrorCodes {
7088
7352
  * console.error('Unknown error:', error);
7089
7353
  * }
7090
7354
  * });
7091
- * *
7355
+ * ```
7092
7356
  * @example
7093
7357
  * Handle multiple error messages
7094
7358
  *
7359
+ * ```js
7095
7360
  * embed.on(EmbedEvent.Error, (error) => {
7096
7361
  * const messages = Array.isArray(error.message)
7097
7362
  * ? error.message
7098
7363
  * : [error.message];
7099
- *
7100
7364
  * messages.forEach(msg => console.error(msg));
7101
7365
  * });
7102
- * *
7103
- * @example
7104
- * Access additional error context
7105
- *
7106
- * embed.on(EmbedEvent.Error, (error) => {
7107
- * console.error('Error Details:', {
7108
- * type: error.errorType,
7109
- * message: error.message,
7110
- * code: error.code,
7111
- * // Additional context fields vary by error type
7112
- * ...error
7113
- * });
7114
- * });
7366
+ * ```
7115
7367
  * */
7116
7368
  export interface EmbedErrorDetailsEvent {
7117
7369
  /** The type of error that occurred */
@@ -7123,6 +7375,24 @@ export interface EmbedErrorDetailsEvent {
7123
7375
  /** Additional context-specific for backward compatibility */
7124
7376
  [key: string]: any;
7125
7377
  }
7378
+ export declare enum ContextType {
7379
+ /**
7380
+ * Search answer context for search page or edit viz dialog on liveboard page.
7381
+ */
7382
+ Search = "search-answer",
7383
+ /**
7384
+ * Liveboard context for liveboard page.
7385
+ */
7386
+ Liveboard = "liveboard",
7387
+ /**
7388
+ * Answer context for explore modal/page on liveboard page.
7389
+ */
7390
+ Answer = "answer",
7391
+ /**
7392
+ * Spotter context for spotter modal/page.
7393
+ */
7394
+ Spotter = "spotter"
7395
+ }
7126
7396
  export interface DefaultAppInitData {
7127
7397
  customisations: CustomisationsInterface;
7128
7398
  authToken: string;
@@ -7198,6 +7468,89 @@ export type ApiInterceptFlags = {
7198
7468
  */
7199
7469
  interceptTimeout?: number;
7200
7470
  };
7471
+ /**
7472
+ * Object IDs for the embedded component.
7473
+ * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
7474
+ */
7475
+ export interface ObjectIds {
7476
+ /**
7477
+ * Liveboard ID.
7478
+ */
7479
+ liveboardId?: string;
7480
+ /**
7481
+ * Answer ID.
7482
+ */
7483
+ answerId?: string;
7484
+ /**
7485
+ * Viz IDs.
7486
+ */
7487
+ vizIds?: string[];
7488
+ /**
7489
+ * Data model IDs.
7490
+ */
7491
+ dataModelIds?: string[];
7492
+ /**
7493
+ * Modal title.
7494
+ */
7495
+ modalTitle?: string;
7496
+ }
7497
+ /**
7498
+ * Context object for the embedded component.
7499
+ * @example
7500
+ * ```js
7501
+ * const context = await embed.getCurrentContext();
7502
+ * console.log(context);
7503
+ * {
7504
+ * stack: [
7505
+ * {
7506
+ * name: 'Liveboard',
7507
+ * type: ContextType.Liveboard,
7508
+ * objectIds: {
7509
+ * liveboardId: '123',
7510
+ * },
7511
+ * },
7512
+ * ],
7513
+ * currentContext: {
7514
+ * name: 'Liveboard',
7515
+ * type: ContextType.Liveboard,
7516
+ * objectIds: {
7517
+ * liveboardId: '123',
7518
+ * },
7519
+ * },
7520
+ * }
7521
+ * ```
7522
+ * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
7523
+ */
7524
+ export interface ContextObject {
7525
+ /**
7526
+ * Stack of context objects.
7527
+ */
7528
+ stack: Array<{
7529
+ /**
7530
+ * Name of the context object.
7531
+ */
7532
+ name: string;
7533
+ /**
7534
+ * Type of the context object.
7535
+ */
7536
+ type: ContextType;
7537
+ /**
7538
+ * Object IDs of the context object.
7539
+ */
7540
+ objectIds: ObjectIds;
7541
+ }>;
7542
+ /**
7543
+ * Current context object.
7544
+ */
7545
+ currentContext: {
7546
+ /**
7547
+ * Name of the current context object.
7548
+ */
7549
+ name: string;
7550
+ type: ContextType;
7551
+ objectIds: ObjectIds;
7552
+ };
7553
+ }
7201
7554
  export declare enum UIPassthroughEvent {
7202
7555
  PinAnswerToLiveboard = "addVizToPinboard",
7203
7556
  SaveAnswer = "saveAnswer",
@@ -7282,9 +7635,9 @@ export type EmbedApiHostEventMapping = {
7282
7635
  [HostEvent.SaveAnswer]: UIPassthroughEvent.SaveAnswer;
7283
7636
  };
7284
7637
  export type HostEventRequest<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? UIPassthroughRequest<EmbedApiHostEventMapping[HostEventT]> : any;
7285
- export type HostEventResponse<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? UIPassthroughResponse<EmbedApiHostEventMapping[HostEventT]> : any;
7638
+ export type HostEventResponse<HostEventT extends HostEvent, ContextT extends ContextType> = HostEventT extends keyof EmbedApiHostEventMapping ? UIPassthroughResponse<EmbedApiHostEventMapping[HostEventT]> : any;
7286
7639
  export type TriggerPayload<PayloadT, HostEventT extends HostEvent> = PayloadT | HostEventRequest<HostEventT>;
7287
- export type TriggerResponse<PayloadT, HostEventT extends HostEvent> = PayloadT extends HostEventRequest<HostEventT> ? HostEventResponse<HostEventT> : any;
7640
+ export type TriggerResponse<PayloadT, HostEventT extends HostEvent, ContextT extends ContextType> = PayloadT extends HostEventRequest<HostEventT> ? HostEventResponse<HostEventT, ContextT> : any;
7288
7641
  declare class HostEventClient {
7289
7642
  iFrame: HTMLIFrameElement;
7290
7643
  constructor(iFrame?: HTMLIFrameElement);
@@ -7294,18 +7647,18 @@ declare class HostEventClient {
7294
7647
  * @param {any} data Data to send with the host event
7295
7648
  * @returns {Promise<any>} - the response from the process trigger
7296
7649
  */
7297
- protected processTrigger(message: HostEvent, data: any): Promise<any>;
7298
- handleHostEventWithParam<UIPassthroughEventT extends UIPassthroughEvent>(apiName: UIPassthroughEventT, parameters: UIPassthroughRequest<UIPassthroughEventT>): Promise<UIPassthroughResponse<UIPassthroughEventT>>;
7299
- hostEventFallback(hostEvent: HostEvent, data: any): Promise<any>;
7650
+ protected processTrigger(message: HostEvent, data: any, context?: ContextType): Promise<any>;
7651
+ handleHostEventWithParam<UIPassthroughEventT extends UIPassthroughEvent>(apiName: UIPassthroughEventT, parameters: UIPassthroughRequest<UIPassthroughEventT>, context?: ContextType): Promise<UIPassthroughResponse<UIPassthroughEventT>>;
7652
+ hostEventFallback(hostEvent: HostEvent, data: any, context?: ContextType): Promise<any>;
7300
7653
  /**
7301
7654
  * Setter for the iframe element used for host events
7302
7655
  * @param {HTMLIFrameElement} iFrame - the iframe element to set
7303
7656
  */
7304
7657
  setIframeElement(iFrame: HTMLIFrameElement): void;
7305
- triggerUIPassthroughApi<UIPassthroughEventT extends UIPassthroughEvent>(apiName: UIPassthroughEventT, parameters: UIPassthroughRequest<UIPassthroughEventT>): Promise<UIPassthroughArrayResponse<UIPassthroughEventT>>;
7306
- protected handlePinEvent(payload: HostEventRequest<HostEvent.Pin>): Promise<HostEventResponse<HostEvent.Pin>>;
7307
- protected handleSaveAnswerEvent(payload: HostEventRequest<HostEvent.SaveAnswer>): Promise<any>;
7308
- triggerHostEvent<HostEventT extends HostEvent, PayloadT>(hostEvent: HostEventT, payload?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
7658
+ triggerUIPassthroughApi<UIPassthroughEventT extends UIPassthroughEvent>(apiName: UIPassthroughEventT, parameters: UIPassthroughRequest<UIPassthroughEventT>, context?: ContextType): Promise<UIPassthroughArrayResponse<UIPassthroughEventT>>;
7659
+ protected handlePinEvent(payload: HostEventRequest<HostEvent.Pin>, context?: ContextType): Promise<HostEventResponse<HostEvent.Pin, ContextType>>;
7660
+ protected handleSaveAnswerEvent(payload: HostEventRequest<HostEvent.SaveAnswer>, context?: ContextType): Promise<any>;
7661
+ triggerHostEvent<HostEventT extends HostEvent, PayloadT, ContextT extends ContextType>(hostEvent: HostEventT, payload?: TriggerPayload<PayloadT, HostEventT>, context?: ContextT): Promise<TriggerResponse<PayloadT, HostEventT, ContextType>>;
7309
7662
  }
7310
7663
  declare class TsEmbed {
7311
7664
  /**
@@ -7452,6 +7805,21 @@ declare class TsEmbed {
7452
7805
  * @param responder
7453
7806
  */
7454
7807
  private appInitCb;
7808
+ /**
7809
+ * Helper method to refresh/update auth token for TrustedAuthTokenCookieless auth type
7810
+ * @param responder - Function to send response back
7811
+ * @param eventType - The embed event type to send
7812
+ * @param forceRefresh - Whether to force refresh the token
7813
+ * @returns Promise that resolves if token was refreshed, rejects otherwise
7814
+ */
7815
+ private refreshAuthTokenForCookieless;
7816
+ private handleAuthFailure;
7817
+ /**
7818
+ * Refresh the auth token if the autoLogin is true and the authType is TrustedAuthTokenCookieless
7819
+ * @param _
7820
+ * @param responder
7821
+ */
7822
+ private tokenRefresh;
7455
7823
  /**
7456
7824
  * Sends updated auth token to the iFrame to avoid user logout
7457
7825
  * @param _
@@ -7627,7 +7995,7 @@ declare class TsEmbed {
7627
7995
  * @param {any} data The payload to send with the message
7628
7996
  * @returns A promise that resolves with the response from the embedded app
7629
7997
  */
7630
- trigger<HostEventT extends HostEvent, PayloadT>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
7998
+ trigger<HostEventT extends HostEvent, PayloadT, ContextT extends ContextType>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>, context?: ContextT): Promise<TriggerResponse<PayloadT, HostEventT, ContextT>>;
7631
7999
  /**
7632
8000
  * Triggers an event to the embedded app, skipping the UI flow.
7633
8001
  * @param {UIPassthroughEvent} apiName - The name of the API to be triggered.
@@ -7645,6 +8013,12 @@ declare class TsEmbed {
7645
8013
  render(): Promise<TsEmbed>;
7646
8014
  getIframeSrc(): string;
7647
8015
  protected handleRenderForPrerender(): Promise<TsEmbed>;
8016
+ /**
8017
+ * Get the current context of the embedded TS component.
8018
+ * @returns The current context object containing the page type and object ids.
8019
+ * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
8020
+ */
8021
+ getCurrentContext(): Promise<ContextObject>;
7648
8022
  /**
7649
8023
  * Creates the preRender shell
7650
8024
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -7758,23 +8132,387 @@ declare class V1Embed extends TsEmbed {
7758
8132
  test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
7759
8133
  }
7760
8134
  /**
7761
- * Pages within the ThoughtSpot app that can be embedded.
8135
+ * Configuration for search options
7762
8136
  */
7763
- export declare enum Page {
8137
+ export interface SearchOptions {
7764
8138
  /**
7765
- * Home page
8139
+ * The query string to pass to start the Conversation.
7766
8140
  */
7767
- Home = "home",
8141
+ searchQuery: string;
8142
+ }
8143
+ /**
8144
+ * Configuration for the Spotter sidebar.
8145
+ * Can be used in SpotterEmbed and AppEmbed.
8146
+ * @group Embed components
8147
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8148
+ */
8149
+ export interface SpotterSidebarViewConfig {
7768
8150
  /**
7769
- * Search page
8151
+ * Controls the visibility of the past conversations sidebar.
8152
+ * @default false
8153
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
7770
8154
  */
7771
- Search = "search",
8155
+ enablePastConversationsSidebar?: boolean;
7772
8156
  /**
7773
- * Saved answers listing page
8157
+ * Custom title text for the sidebar header.
8158
+ * Defaults to translated "Spotter" text.
8159
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
7774
8160
  */
7775
- Answers = "answers",
8161
+ spotterSidebarTitle?: string;
7776
8162
  /**
7777
- * Liveboards listing page
8163
+ * Boolean to set the default expanded state of the sidebar.
8164
+ * @default false
8165
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8166
+ */
8167
+ spotterSidebarDefaultExpanded?: boolean;
8168
+ /**
8169
+ * Custom label text for the rename action in the conversation edit menu.
8170
+ * Defaults to translated "Rename" text.
8171
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8172
+ */
8173
+ spotterChatRenameLabel?: string;
8174
+ /**
8175
+ * Custom label text for the delete action in the conversation edit menu.
8176
+ * Defaults to translated "DELETE" text.
8177
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8178
+ */
8179
+ spotterChatDeleteLabel?: string;
8180
+ /**
8181
+ * Custom title text for the delete conversation confirmation modal.
8182
+ * Defaults to translated "Delete chat" text.
8183
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8184
+ */
8185
+ spotterDeleteConversationModalTitle?: string;
8186
+ /**
8187
+ * Custom message text for the past conversation banner alert.
8188
+ * Defaults to translated alert message.
8189
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8190
+ */
8191
+ spotterPastConversationAlertMessage?: string;
8192
+ /**
8193
+ * Custom URL for the documentation/best practices link.
8194
+ * Defaults to ThoughtSpot docs URL based on release version.
8195
+ * Note: URL must include the protocol (e.g., `https://www.example.com`).
8196
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8197
+ */
8198
+ spotterDocumentationUrl?: string;
8199
+ /**
8200
+ * Custom label text for the best practices button in the footer.
8201
+ * Defaults to translated "Best Practices" text.
8202
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8203
+ */
8204
+ spotterBestPracticesLabel?: string;
8205
+ /**
8206
+ * Number of conversations to fetch per batch when loading conversation history.
8207
+ * @default 30
8208
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8209
+ */
8210
+ spotterConversationsBatchSize?: number;
8211
+ /**
8212
+ * Custom title text for the "New Chat" button in the sidebar.
8213
+ * Defaults to translated "New Chat" text.
8214
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8215
+ */
8216
+ spotterNewChatButtonTitle?: string;
8217
+ }
8218
+ /**
8219
+ * Configuration for customizing Spotter chat UI branding.
8220
+ * @group Embed components
8221
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
8222
+ */
8223
+ export interface SpotterChatViewConfig {
8224
+ /**
8225
+ * Hides the ThoughtSpot logo/icon in tool response
8226
+ * cards. The branding label prefix is controlled
8227
+ * separately via `toolResponseCardBrandingLabel`.
8228
+ * External MCP tool branding is not affected.
8229
+ * @default false
8230
+ */
8231
+ hideToolResponseCardBranding?: boolean;
8232
+ /**
8233
+ * Custom label to replace the "ThoughtSpot" prefix
8234
+ * in tool response cards. Set to an empty string
8235
+ * `''` to hide the prefix entirely. Works
8236
+ * independently of `hideToolResponseCardBranding`.
8237
+ * External MCP tool branding is not affected.
8238
+ */
8239
+ toolResponseCardBrandingLabel?: string;
8240
+ }
8241
+ /**
8242
+ * The configuration for the embedded spotterEmbed options.
8243
+ * @group Embed components
8244
+ */
8245
+ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
8246
+ /**
8247
+ * The ID of the data source object. For example, Model, View, or Table. Spotter uses
8248
+ * this object to query data and generate Answers.
8249
+ */
8250
+ worksheetId: string;
8251
+ /**
8252
+ * Ability to pass a starting search query to the conversation.
8253
+ */
8254
+ searchOptions?: SearchOptions;
8255
+ /**
8256
+ * disableSourceSelection : Disables data source selection
8257
+ * but still display the selected data source.
8258
+ *
8259
+ * Supported embed types: `SpotterEmbed`
8260
+ * @example
8261
+ * ```js
8262
+ * const embed = new SpotterEmbed('#tsEmbed', {
8263
+ * ... //other embed view config
8264
+ * disableSourceSelection : true,
8265
+ * })
8266
+ * ```
8267
+ * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
8268
+ */
8269
+ disableSourceSelection?: boolean;
8270
+ /**
8271
+ * hideSourceSelection : Hide data source selection
8272
+ *
8273
+ * Supported embed types: `SpotterEmbed`
8274
+ * @example
8275
+ * ```js
8276
+ * const embed = new SpotterEmbed('#tsEmbed', {
8277
+ * ... //other embed view config
8278
+ * hideSourceSelection : true,
8279
+ * })
8280
+ * ```
8281
+ * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
8282
+ */
8283
+ hideSourceSelection?: boolean;
8284
+ /**
8285
+ * Flag to control Data panel experience
8286
+ *
8287
+ * Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
8288
+ * @default true
8289
+ * @deprecated from SDK 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
8290
+ * @example
8291
+ * ```js
8292
+ * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
8293
+ * const embed = new <EmbedComponent>('#tsEmbed', {
8294
+ * ... // other embed view config
8295
+ * dataPanelV2: true,
8296
+ * })
8297
+ * ```
8298
+ */
8299
+ dataPanelV2?: boolean;
8300
+ /**
8301
+ * showSpotterLimitations : show limitation text
8302
+ * of the spotter underneath the chat input.
8303
+ * default is false.
8304
+ *
8305
+ * Supported embed types: `SpotterEmbed`
8306
+ * @example
8307
+ * ```js
8308
+ * const embed = new SpotterEmbed('#tsEmbed', {
8309
+ * ... //other embed view config
8310
+ * showSpotterLimitations : true,
8311
+ * })
8312
+ * ```
8313
+ * @version SDK: 1.36.0 | ThoughtSpot: 10.5.0.cl
8314
+ */
8315
+ showSpotterLimitations?: boolean;
8316
+ /**
8317
+ * hideSampleQuestions : Hide sample questions on
8318
+ * the initial screen of the conversation.
8319
+ *
8320
+ * Supported embed types: `SpotterEmbed`
8321
+ * @example
8322
+ * ```js
8323
+ * const embed = new SpotterEmbed('#tsEmbed', {
8324
+ * ... //other embed view config
8325
+ * hideSampleQuestions : true,
8326
+ * })
8327
+ * ```
8328
+ * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
8329
+ */
8330
+ hideSampleQuestions?: boolean;
8331
+ /**
8332
+ * The list of runtime filters to apply to a search Answer,
8333
+ * visualization, or Liveboard.
8334
+ *
8335
+ * Supported embed types: `SpotterEmbed`
8336
+ * @example
8337
+ * ```js
8338
+ * const embed = new SpotterEmbed('#tsEmbed', {
8339
+ * // other embed view config
8340
+ * runtimeFilters: [
8341
+ * {
8342
+ * columnName: 'color',
8343
+ * operator: RuntimeFilterOp.EQ,
8344
+ * values: ['red'],
8345
+ * },
8346
+ * ],
8347
+ * })
8348
+ * ```
8349
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
8350
+ */
8351
+ runtimeFilters?: RuntimeFilter[];
8352
+ /**
8353
+ * Flag to control whether runtime filters should be included in the URL.
8354
+ * If true, filters will be passed via app initialization payload
8355
+ * (default behavior from SDK 1.45.0).
8356
+ * If false/undefined, filters are appended to the iframe URL instead.
8357
+ * (default behavior before SDK 1.45.0).
8358
+ *
8359
+ * Supported embed types: `SpotterEmbed`
8360
+ * @default true
8361
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
8362
+ */
8363
+ excludeRuntimeFiltersfromURL?: boolean;
8364
+ /**
8365
+ * The list of runtime parameters to apply to the conversation.
8366
+ *
8367
+ * Supported embed types: `SpotterEmbed`
8368
+ * @example
8369
+ * ```js
8370
+ * const embed = new SpotterEmbed('#tsEmbed', {
8371
+ * // other embed view config
8372
+ * runtimeParameters: [
8373
+ * {
8374
+ * name: 'Integer Param',
8375
+ * value: 10,
8376
+ * },
8377
+ * ],
8378
+ * })
8379
+ * ```
8380
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
8381
+ */
8382
+ runtimeParameters?: RuntimeParameter[];
8383
+ /**
8384
+ * Flag to control whether runtime parameters should be included in the URL.
8385
+ * If true, parameters will be passed via app
8386
+ * initialization payload (default behavior from SDK 1.45.0).
8387
+ * If false/undefined, parameters are appended to
8388
+ * the iframe URL instead (default behavior before SDK 1.45.0).
8389
+ *
8390
+ * Supported embed types: `SpotterEmbed`
8391
+ * @default true
8392
+ * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
8393
+ */
8394
+ excludeRuntimeParametersfromURL?: boolean;
8395
+ /**
8396
+ * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
8397
+ *
8398
+ * Supported embed types: `SpotterEmbed`
8399
+ * @default false
8400
+ * @example
8401
+ * ```js
8402
+ * const embed = new SpotterEmbed('#tsEmbed', {
8403
+ * ... //other embed view config
8404
+ * updatedSpotterChatPrompt : true,
8405
+ * })
8406
+ * ```
8407
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
8408
+ */
8409
+ updatedSpotterChatPrompt?: boolean;
8410
+ /**
8411
+ * Configuration for the Spotter sidebar UI customization.
8412
+ *
8413
+ * Supported embed types: `SpotterEmbed`, `AppEmbed`
8414
+ * @example
8415
+ * ```js
8416
+ * const embed = new SpotterEmbed('#tsEmbed', {
8417
+ * ... //other embed view config
8418
+ * spotterSidebarConfig: {
8419
+ * enablePastConversationsSidebar: true,
8420
+ * spotterSidebarTitle: 'My Conversations',
8421
+ * spotterSidebarDefaultExpanded: true,
8422
+ * },
8423
+ * })
8424
+ * ```
8425
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8426
+ */
8427
+ spotterSidebarConfig?: SpotterSidebarViewConfig;
8428
+ /**
8429
+ * Configuration for customizing Spotter chat UI
8430
+ * branding in tool response cards.
8431
+ *
8432
+ * Supported embed types: `SpotterEmbed`
8433
+ * @example
8434
+ * ```js
8435
+ * const embed = new SpotterEmbed('#tsEmbed', {
8436
+ * ... //other embed view config
8437
+ * spotterChatConfig: {
8438
+ * hideToolResponseCardBranding: true,
8439
+ * toolResponseCardBrandingLabel: 'MyBrand',
8440
+ * },
8441
+ * })
8442
+ * ```
8443
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
8444
+ */
8445
+ spotterChatConfig?: SpotterChatViewConfig;
8446
+ }
8447
+ /**
8448
+ * The configuration for the embedded spotterEmbed options.
8449
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
8450
+ * Use {@link SpotterEmbedViewConfig} instead
8451
+ * @group Embed components
8452
+ */
8453
+ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
8454
+ }
8455
+ /**
8456
+ * Embed ThoughtSpot AI Conversation.
8457
+ * @group Embed components
8458
+ * @example
8459
+ * ```js
8460
+ * const conversation = new SpotterEmbed('#tsEmbed', {
8461
+ * worksheetId: 'worksheetId',
8462
+ * searchOptions: {
8463
+ * searchQuery: 'searchQuery',
8464
+ * },
8465
+ * });
8466
+ * conversation.render();
8467
+ * ```
8468
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
8469
+ */
8470
+ export declare class SpotterEmbed extends TsEmbed {
8471
+ protected viewConfig: SpotterEmbedViewConfig;
8472
+ constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
8473
+ protected getEmbedParamsObject(): Record<any, any>;
8474
+ getIframeSrc(): string;
8475
+ render(): Promise<SpotterEmbed>;
8476
+ }
8477
+ /**
8478
+ * Embed ThoughtSpot AI Conversation.
8479
+ * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
8480
+ * Use {@link SpotterEmbed} instead
8481
+ * @group Embed components
8482
+ * @example
8483
+ * ```js
8484
+ * const conversation = new SpotterEmbed('#tsEmbed', {
8485
+ * worksheetId: 'worksheetId',
8486
+ * searchOptions: {
8487
+ * searchQuery: 'searchQuery',
8488
+ * },
8489
+ * });
8490
+ * conversation.render();
8491
+ * ```
8492
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
8493
+ */
8494
+ export declare class ConversationEmbed extends SpotterEmbed {
8495
+ protected viewConfig: ConversationViewConfig;
8496
+ constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
8497
+ }
8498
+ /**
8499
+ * Pages within the ThoughtSpot app that can be embedded.
8500
+ */
8501
+ export declare enum Page {
8502
+ /**
8503
+ * Home page
8504
+ */
8505
+ Home = "home",
8506
+ /**
8507
+ * Search page
8508
+ */
8509
+ Search = "search",
8510
+ /**
8511
+ * Saved answers listing page
8512
+ */
8513
+ Answers = "answers",
8514
+ /**
8515
+ * Liveboards listing page
7778
8516
  */
7779
8517
  Liveboards = "liveboards",
7780
8518
  /**
@@ -8394,6 +9132,42 @@ export interface AppViewConfig extends AllEmbedViewConfig {
8394
9132
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
8395
9133
  */
8396
9134
  updatedSpotterChatPrompt?: boolean;
9135
+ /**
9136
+ * Configuration for the Spotter sidebar UI customization.
9137
+ * Only applicable when navigating to Spotter within the app.
9138
+ *
9139
+ * Supported embed types: `AppEmbed`
9140
+ * @example
9141
+ * ```js
9142
+ * const embed = new AppEmbed('#tsEmbed', {
9143
+ * ... //other embed view config
9144
+ * spotterSidebarConfig: {
9145
+ * enablePastConversationsSidebar: true,
9146
+ * spotterSidebarTitle: 'My Conversations',
9147
+ * },
9148
+ * })
9149
+ * ```
9150
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
9151
+ */
9152
+ spotterSidebarConfig?: SpotterSidebarViewConfig;
9153
+ /**
9154
+ * Configuration for customizing Spotter chat UI
9155
+ * branding in tool response cards.
9156
+ *
9157
+ * Supported embed types: `AppEmbed`
9158
+ * @example
9159
+ * ```js
9160
+ * const embed = new AppEmbed('#tsEmbed', {
9161
+ * ... //other embed view config
9162
+ * spotterChatConfig: {
9163
+ * hideToolResponseCardBranding: true,
9164
+ * toolResponseCardBrandingLabel: 'MyBrand',
9165
+ * },
9166
+ * })
9167
+ * ```
9168
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
9169
+ */
9170
+ spotterChatConfig?: SpotterChatViewConfig;
8397
9171
  /**
8398
9172
  * This is the minimum height (in pixels) for a full-height App.
8399
9173
  * Setting this height helps resolve issues with empty Apps and
@@ -8886,6 +9660,23 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
8886
9660
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
8887
9661
  */
8888
9662
  activeTabId?: string;
9663
+ /**
9664
+ * The GUID of a saved personalized view to load.
9665
+ * A personalized view is a saved configuration of a Liveboard
9666
+ * that includes specific filter selections.
9667
+ *
9668
+ * Supported embed types: `LiveboardEmbed`
9669
+ * @example
9670
+ * ```js
9671
+ * const embed = new LiveboardEmbed('#tsEmbed', {
9672
+ * liveboardId: 'liveboard-guid',
9673
+ * personalizedViewId: 'view-guid',
9674
+ * activeTabId: 'tab-guid',
9675
+ * })
9676
+ * ```
9677
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
9678
+ */
9679
+ personalizedViewId?: string;
8889
9680
  /**
8890
9681
  * Show or hide the tab panel of the embedded Liveboard.
8891
9682
  *
@@ -9125,20 +9916,38 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
9125
9916
  */
9126
9917
  showSpotterLimitations?: boolean;
9127
9918
  /**
9128
- * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
9919
+ * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
9920
+ *
9921
+ * Supported embed types: `LiveboardEmbed`
9922
+ * @default false
9923
+ * @example
9924
+ * ```js
9925
+ * const embed = new LiveboardEmbed('#tsEmbed', {
9926
+ * ... //other embed view config
9927
+ * updatedSpotterChatPrompt : true,
9928
+ * })
9929
+ * ```
9930
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
9931
+ */
9932
+ updatedSpotterChatPrompt?: boolean;
9933
+ /**
9934
+ * Configuration for customizing Spotter chat UI
9935
+ * branding in tool response cards.
9129
9936
  *
9130
9937
  * Supported embed types: `LiveboardEmbed`
9131
- * @default false
9132
9938
  * @example
9133
9939
  * ```js
9134
9940
  * const embed = new LiveboardEmbed('#tsEmbed', {
9135
9941
  * ... //other embed view config
9136
- * updatedSpotterChatPrompt : true,
9942
+ * spotterChatConfig: {
9943
+ * hideToolResponseCardBranding: true,
9944
+ * toolResponseCardBrandingLabel: 'MyBrand',
9945
+ * },
9137
9946
  * })
9138
9947
  * ```
9139
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
9948
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.4.0.cl
9140
9949
  */
9141
- updatedSpotterChatPrompt?: boolean;
9950
+ spotterChatConfig?: SpotterChatViewConfig;
9142
9951
  }
9143
9952
  /**
9144
9953
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -9198,6 +10007,7 @@ export declare class LiveboardEmbed extends V1Embed {
9198
10007
  liveboardId: string;
9199
10008
  vizId: string;
9200
10009
  activeTabId: string;
10010
+ personalizedViewId: string;
9201
10011
  };
9202
10012
  protected beforePrerenderVisible(): void;
9203
10013
  protected handleRenderForPrerender(): Promise<TsEmbed>;
@@ -9207,7 +10017,7 @@ export declare class LiveboardEmbed extends V1Embed {
9207
10017
  * @param {any} data The payload to send with the message
9208
10018
  * @returns A promise that resolves with the response from the embedded app
9209
10019
  */
9210
- trigger<HostEventT extends HostEvent, PayloadT>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
10020
+ trigger<HostEventT extends HostEvent, PayloadT, ContextT extends ContextType>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>, context?: ContextT): Promise<TriggerResponse<PayloadT, HostEventT, ContextT>>;
9211
10021
  /**
9212
10022
  * Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
9213
10023
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
@@ -9222,7 +10032,7 @@ export declare class LiveboardEmbed extends V1Embed {
9222
10032
  * visualization ID and the runtime filters.
9223
10033
  */
9224
10034
  render(): Promise<LiveboardEmbed>;
9225
- navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
10035
+ navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string, personalizedViewId?: string): void;
9226
10036
  /**
9227
10037
  * Returns the full url of the Liveboard/visualization which can be used to open
9228
10038
  * this Liveboard inside the full ThoughtSpot application in a new tab.
@@ -9235,11 +10045,7 @@ export declare class LiveboardEmbed extends V1Embed {
9235
10045
  */
9236
10046
  export declare class PinboardEmbed extends LiveboardEmbed {
9237
10047
  }
9238
- /**
9239
- * Configuration for search options.
9240
- *
9241
- */
9242
- export interface SearchOptions {
10048
+ interface SearchOptions$1 {
9243
10049
  /**
9244
10050
  * Search tokens to pass in the query.
9245
10051
  */
@@ -9416,7 +10222,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
9416
10222
  * }
9417
10223
  * ```
9418
10224
  */
9419
- searchOptions?: SearchOptions;
10225
+ searchOptions?: SearchOptions$1;
9420
10226
  /**
9421
10227
  * Exclude the search token string from the URL.
9422
10228
  * If set to true, the search token string is not appended to the URL.
@@ -9517,7 +10323,7 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
9517
10323
  focusSearchBarOnRender?: boolean;
9518
10324
  }
9519
10325
  export interface SearchAppInitData extends DefaultAppInitData {
9520
- searchOptions?: SearchOptions;
10326
+ searchOptions?: SearchOptions$1;
9521
10327
  }
9522
10328
  /**
9523
10329
  * Embed ThoughtSpot search
@@ -9626,7 +10432,7 @@ export interface SearchBarViewConfig extends BaseViewConfig, SearchLiveboardComm
9626
10432
  * })
9627
10433
  * ```
9628
10434
  */
9629
- searchOptions?: SearchOptions;
10435
+ searchOptions?: SearchOptions$1;
9630
10436
  /**
9631
10437
  * Exclude the search token string from the URL.
9632
10438
  * If set to true, the search token string is not appended to the URL.
@@ -9647,7 +10453,7 @@ export interface SearchBarViewConfig extends BaseViewConfig, SearchLiveboardComm
9647
10453
  excludeSearchTokenStringFromURL?: boolean;
9648
10454
  }
9649
10455
  interface SearchAppInitData$1 extends DefaultAppInitData {
9650
- searchOptions: SearchOptions;
10456
+ searchOptions: SearchOptions$1;
9651
10457
  }
9652
10458
  /**
9653
10459
  * Embed ThoughtSpot search bar
@@ -9673,7 +10479,7 @@ export declare class SearchBarEmbed extends TsEmbed {
9673
10479
  */
9674
10480
  render(): Promise<SearchBarEmbed>;
9675
10481
  protected getSearchInitData(): {
9676
- searchOptions: SearchOptions;
10482
+ searchOptions: SearchOptions$1;
9677
10483
  };
9678
10484
  protected getAppInitData(): Promise<SearchAppInitData$1>;
9679
10485
  }
@@ -9785,249 +10591,6 @@ export declare class SpotterAgentEmbed {
9785
10591
  export declare class BodylessConversation extends SpotterAgentEmbed {
9786
10592
  constructor(viewConfig: BodylessConversationViewConfig);
9787
10593
  }
9788
- interface SearchOptions$1 {
9789
- /**
9790
- * The query string to pass to start the Conversation.
9791
- */
9792
- searchQuery: string;
9793
- }
9794
- /**
9795
- * The configuration for the embedded spotterEmbed options.
9796
- * @group Embed components
9797
- */
9798
- export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAction"> {
9799
- /**
9800
- * The ID of the data source object. For example, Model, View, or Table. Spotter uses
9801
- * this object to query data and generate Answers.
9802
- */
9803
- worksheetId: string;
9804
- /**
9805
- * Ability to pass a starting search query to the conversation.
9806
- */
9807
- searchOptions?: SearchOptions$1;
9808
- /**
9809
- * disableSourceSelection : Disables data source selection
9810
- * but still display the selected data source.
9811
- *
9812
- * Supported embed types: `SpotterEmbed`
9813
- * @example
9814
- * ```js
9815
- * const embed = new SpotterEmbed('#tsEmbed', {
9816
- * ... //other embed view config
9817
- * disableSourceSelection : true,
9818
- * })
9819
- * ```
9820
- * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
9821
- */
9822
- disableSourceSelection?: boolean;
9823
- /**
9824
- * hideSourceSelection : Hide data source selection
9825
- *
9826
- * Supported embed types: `SpotterEmbed`
9827
- * @example
9828
- * ```js
9829
- * const embed = new SpotterEmbed('#tsEmbed', {
9830
- * ... //other embed view config
9831
- * hideSourceSelection : true,
9832
- * })
9833
- * ```
9834
- * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
9835
- */
9836
- hideSourceSelection?: boolean;
9837
- /**
9838
- * Flag to control Data panel experience
9839
- *
9840
- * Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
9841
- * @default true
9842
- * @version SDK: 1.41.1 | ThoughtSpot Cloud: 10.14.0.cl
9843
- * @example
9844
- * ```js
9845
- * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
9846
- * const embed = new <EmbedComponent>('#tsEmbed', {
9847
- * ... // other embed view config
9848
- * dataPanelV2: true,
9849
- * })
9850
- * ```
9851
- */
9852
- dataPanelV2?: boolean;
9853
- /**
9854
- * showSpotterLimitations : show limitation text
9855
- * of the spotter underneath the chat input.
9856
- * default is false.
9857
- *
9858
- * Supported embed types: `SpotterEmbed`
9859
- * @example
9860
- * ```js
9861
- * const embed = new SpotterEmbed('#tsEmbed', {
9862
- * ... //other embed view config
9863
- * showSpotterLimitations : true,
9864
- * })
9865
- * ```
9866
- * @version SDK: 1.36.0 | ThoughtSpot: 10.5.0.cl
9867
- */
9868
- showSpotterLimitations?: boolean;
9869
- /**
9870
- * hideSampleQuestions : Hide sample questions on
9871
- * the initial screen of the conversation.
9872
- *
9873
- * Supported embed types: `SpotterEmbed`
9874
- * @example
9875
- * ```js
9876
- * const embed = new SpotterEmbed('#tsEmbed', {
9877
- * ... //other embed view config
9878
- * hideSampleQuestions : true,
9879
- * })
9880
- * ```
9881
- * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
9882
- */
9883
- hideSampleQuestions?: boolean;
9884
- /**
9885
- * The list of runtime filters to apply to a search Answer,
9886
- * visualization, or Liveboard.
9887
- *
9888
- * Supported embed types: `SpotterEmbed`
9889
- * @example
9890
- * ```js
9891
- * const embed = new SpotterEmbed('#tsEmbed', {
9892
- * // other embed view config
9893
- * runtimeFilters: [
9894
- * {
9895
- * columnName: 'color',
9896
- * operator: RuntimeFilterOp.EQ,
9897
- * values: ['red'],
9898
- * },
9899
- * ],
9900
- * })
9901
- * ```
9902
- * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
9903
- */
9904
- runtimeFilters?: RuntimeFilter[];
9905
- /**
9906
- * Flag to control whether runtime filters should be included in the URL.
9907
- * If true, filters will be passed via app initialization payload
9908
- * (default behavior from SDK 1.45.0).
9909
- * If false/undefined, filters are appended to the iframe URL instead.
9910
- * (default behavior before SDK 1.45.0).
9911
- *
9912
- * Supported embed types: `SpotterEmbed`
9913
- * @default true
9914
- * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
9915
- */
9916
- excludeRuntimeFiltersfromURL?: boolean;
9917
- /**
9918
- * The list of runtime parameters to apply to the conversation.
9919
- *
9920
- * Supported embed types: `SpotterEmbed`
9921
- * @example
9922
- * ```js
9923
- * const embed = new SpotterEmbed('#tsEmbed', {
9924
- * // other embed view config
9925
- * runtimeParameters: [
9926
- * {
9927
- * name: 'Integer Param',
9928
- * value: 10,
9929
- * },
9930
- * ],
9931
- * })
9932
- * ```
9933
- * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
9934
- */
9935
- runtimeParameters?: RuntimeParameter[];
9936
- /**
9937
- * Flag to control whether runtime parameters should be included in the URL.
9938
- * If true, parameters will be passed via app
9939
- * initialization payload (default behavior from SDK 1.45.0).
9940
- * If false/undefined, parameters are appended to
9941
- * the iframe URL instead (default behavior before SDK 1.45.0).
9942
- *
9943
- * Supported embed types: `SpotterEmbed`
9944
- * @default true
9945
- * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
9946
- */
9947
- excludeRuntimeParametersfromURL?: boolean;
9948
- /**
9949
- * enablePastConversationsSidebar : Controls the visibility of the past conversations
9950
- * sidebar.
9951
- *
9952
- * Supported embed types: `SpotterEmbed`
9953
- * @default false
9954
- * @example
9955
- * ```js
9956
- * const embed = new SpotterEmbed('#tsEmbed', {
9957
- * ... //other embed view config
9958
- * enablePastConversationsSidebar : true,
9959
- * })
9960
- * ```
9961
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
9962
- */
9963
- enablePastConversationsSidebar?: boolean;
9964
- /**
9965
- * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
9966
- *
9967
- * Supported embed types: `SpotterEmbed`
9968
- * @default false
9969
- * @example
9970
- * ```js
9971
- * const embed = new SpotterEmbed('#tsEmbed', {
9972
- * ... //other embed view config
9973
- * updatedSpotterChatPrompt : true,
9974
- * })
9975
- * ```
9976
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
9977
- */
9978
- updatedSpotterChatPrompt?: boolean;
9979
- }
9980
- /**
9981
- * The configuration for the embedded spotterEmbed options.
9982
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
9983
- * Use {@link SpotterEmbedViewConfig} instead
9984
- * @group Embed components
9985
- */
9986
- export interface ConversationViewConfig extends SpotterEmbedViewConfig {
9987
- }
9988
- /**
9989
- * Embed ThoughtSpot AI Conversation.
9990
- * @group Embed components
9991
- * @example
9992
- * ```js
9993
- * const conversation = new SpotterEmbed('#tsEmbed', {
9994
- * worksheetId: 'worksheetId',
9995
- * searchOptions: {
9996
- * searchQuery: 'searchQuery',
9997
- * },
9998
- * });
9999
- * conversation.render();
10000
- * ```
10001
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
10002
- */
10003
- export declare class SpotterEmbed extends TsEmbed {
10004
- protected viewConfig: SpotterEmbedViewConfig;
10005
- constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
10006
- protected getEmbedParamsObject(): Record<any, any>;
10007
- getIframeSrc(): string;
10008
- render(): Promise<SpotterEmbed>;
10009
- }
10010
- /**
10011
- * Embed ThoughtSpot AI Conversation.
10012
- * @deprecated from SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
10013
- * Use {@link SpotterEmbed} instead
10014
- * @group Embed components
10015
- * @example
10016
- * ```js
10017
- * const conversation = new SpotterEmbed('#tsEmbed', {
10018
- * worksheetId: 'worksheetId',
10019
- * searchOptions: {
10020
- * searchQuery: 'searchQuery',
10021
- * },
10022
- * });
10023
- * conversation.render();
10024
- * ```
10025
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
10026
- */
10027
- export declare class ConversationEmbed extends SpotterEmbed {
10028
- protected viewConfig: ConversationViewConfig;
10029
- constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
10030
- }
10031
10594
  export type SessionInfo = {
10032
10595
  releaseVersion: string;
10033
10596
  userGUID: string;
@@ -10346,6 +10909,7 @@ export declare const createLiveboardWithAnswers: (answers: AnswerService[], name
10346
10909
  * @group Authentication / Init
10347
10910
  */
10348
10911
  export declare const resetCachedAuthToken: () => void;
10912
+ export declare function startAutoMCPFrameRenderer(viewConfig?: AutoMCPFrameRendererViewConfig): MutationObserver;
10349
10913
 
10350
10914
  export {
10351
10915
  getEmbedConfig as getInitConfig,