@thoughtspot/visual-embed-sdk 1.37.0 → 1.37.1-spotter-embed

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 (173) hide show
  1. package/cjs/package.json +3 -3
  2. package/cjs/src/auth.d.ts +9 -4
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +21 -0
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/auth.spec.js +48 -0
  7. package/cjs/src/auth.spec.js.map +1 -1
  8. package/cjs/src/embed/app.d.ts +59 -0
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +13 -1
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/app.spec.js +44 -0
  13. package/cjs/src/embed/app.spec.js.map +1 -1
  14. package/cjs/src/embed/bodyless-conversation.d.ts +39 -9
  15. package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
  16. package/cjs/src/embed/bodyless-conversation.js +32 -5
  17. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  18. package/cjs/src/embed/bodyless-conversation.spec.js +4 -4
  19. package/cjs/src/embed/bodyless-conversation.spec.js.map +1 -1
  20. package/cjs/src/embed/conversation.d.ts +38 -11
  21. package/cjs/src/embed/conversation.d.ts.map +1 -1
  22. package/cjs/src/embed/conversation.js +28 -4
  23. package/cjs/src/embed/conversation.js.map +1 -1
  24. package/cjs/src/embed/conversation.spec.js +7 -7
  25. package/cjs/src/embed/conversation.spec.js.map +1 -1
  26. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  27. package/cjs/src/embed/ts-embed.js +4 -1
  28. package/cjs/src/embed/ts-embed.js.map +1 -1
  29. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  30. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  31. package/cjs/src/index.d.ts +3 -3
  32. package/cjs/src/index.d.ts.map +1 -1
  33. package/cjs/src/index.js +5 -3
  34. package/cjs/src/index.js.map +1 -1
  35. package/cjs/src/pages/embed-test.page.d.ts +8 -0
  36. package/cjs/src/pages/embed-test.page.d.ts.map +1 -0
  37. package/cjs/src/pages/embed-test.page.js +20 -0
  38. package/cjs/src/pages/embed-test.page.js.map +1 -0
  39. package/cjs/src/pages/home.page.d.ts +6 -0
  40. package/cjs/src/pages/home.page.d.ts.map +1 -0
  41. package/cjs/src/pages/home.page.js +12 -0
  42. package/cjs/src/pages/home.page.js.map +1 -0
  43. package/cjs/src/pages/login.page.d.ts +15 -0
  44. package/cjs/src/pages/login.page.d.ts.map +1 -0
  45. package/cjs/src/pages/login.page.js +22 -0
  46. package/cjs/src/pages/login.page.js.map +1 -0
  47. package/cjs/src/react/all-types-export.d.ts +1 -1
  48. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  49. package/cjs/src/react/all-types-export.js +2 -1
  50. package/cjs/src/react/all-types-export.js.map +1 -1
  51. package/cjs/src/react/index.d.ts +24 -5
  52. package/cjs/src/react/index.d.ts.map +1 -1
  53. package/cjs/src/react/index.js +21 -4
  54. package/cjs/src/react/index.js.map +1 -1
  55. package/cjs/src/tests/auth.test.d.ts +1 -0
  56. package/cjs/src/tests/auth.test.d.ts.map +1 -0
  57. package/cjs/src/tests/auth.test.js +1 -0
  58. package/cjs/src/tests/auth.test.js.map +1 -0
  59. package/cjs/src/tests/e2e/auth.spec.d.ts +2 -0
  60. package/cjs/src/tests/e2e/auth.spec.d.ts.map +1 -0
  61. package/cjs/src/tests/e2e/auth.spec.js +54 -0
  62. package/cjs/src/tests/e2e/auth.spec.js.map +1 -0
  63. package/cjs/src/types.d.ts +95 -3
  64. package/cjs/src/types.d.ts.map +1 -1
  65. package/cjs/src/types.js +79 -0
  66. package/cjs/src/types.js.map +1 -1
  67. package/cjs/src/utils/graphql/answerService/answerService.d.ts +35 -15
  68. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  69. package/cjs/src/utils/graphql/answerService/answerService.js +35 -15
  70. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  71. package/cjs/src/utils/processData.js +6 -4
  72. package/cjs/src/utils/processData.js.map +1 -1
  73. package/dist/index-Cj4BVGHL.js +7371 -0
  74. package/dist/index-DUaG1OG2.js +7447 -0
  75. package/dist/index-Fhk1V_Gw.js +7371 -0
  76. package/dist/index-OuiZF3zE.js +7371 -0
  77. package/dist/src/auth.d.ts +9 -4
  78. package/dist/src/auth.d.ts.map +1 -1
  79. package/dist/src/embed/app.d.ts +59 -0
  80. package/dist/src/embed/app.d.ts.map +1 -1
  81. package/dist/src/embed/bodyless-conversation.d.ts +39 -9
  82. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  83. package/dist/src/embed/conversation.d.ts +38 -11
  84. package/dist/src/embed/conversation.d.ts.map +1 -1
  85. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  86. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  87. package/dist/src/index.d.ts +3 -3
  88. package/dist/src/index.d.ts.map +1 -1
  89. package/dist/src/react/all-types-export.d.ts +1 -1
  90. package/dist/src/react/all-types-export.d.ts.map +1 -1
  91. package/dist/src/react/index.d.ts +24 -5
  92. package/dist/src/react/index.d.ts.map +1 -1
  93. package/dist/src/types.d.ts +95 -3
  94. package/dist/src/types.d.ts.map +1 -1
  95. package/dist/src/utils/graphql/answerService/answerService.d.ts +35 -15
  96. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  97. package/dist/tsembed-react.es.js +208 -31
  98. package/dist/tsembed-react.js +428 -174
  99. package/dist/tsembed.es.js +170 -32
  100. package/dist/tsembed.js +392 -176
  101. package/dist/visual-embed-sdk-react-full.d.ts +299 -47
  102. package/dist/visual-embed-sdk-react.d.ts +299 -47
  103. package/dist/visual-embed-sdk.d.ts +276 -43
  104. package/lib/package.json +3 -3
  105. package/lib/src/auth.d.ts +9 -4
  106. package/lib/src/auth.d.ts.map +1 -1
  107. package/lib/src/auth.js +21 -0
  108. package/lib/src/auth.js.map +1 -1
  109. package/lib/src/auth.spec.js +48 -0
  110. package/lib/src/auth.spec.js.map +1 -1
  111. package/lib/src/embed/app.d.ts +59 -0
  112. package/lib/src/embed/app.d.ts.map +1 -1
  113. package/lib/src/embed/app.js +13 -1
  114. package/lib/src/embed/app.js.map +1 -1
  115. package/lib/src/embed/app.spec.js +44 -0
  116. package/lib/src/embed/app.spec.js.map +1 -1
  117. package/lib/src/embed/bodyless-conversation.d.ts +39 -9
  118. package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
  119. package/lib/src/embed/bodyless-conversation.js +30 -4
  120. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  121. package/lib/src/embed/bodyless-conversation.spec.js +5 -5
  122. package/lib/src/embed/bodyless-conversation.spec.js.map +1 -1
  123. package/lib/src/embed/conversation.d.ts +38 -11
  124. package/lib/src/embed/conversation.d.ts.map +1 -1
  125. package/lib/src/embed/conversation.js +26 -3
  126. package/lib/src/embed/conversation.js.map +1 -1
  127. package/lib/src/embed/conversation.spec.js +8 -8
  128. package/lib/src/embed/conversation.spec.js.map +1 -1
  129. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  130. package/lib/src/embed/ts-embed.js +4 -1
  131. package/lib/src/embed/ts-embed.js.map +1 -1
  132. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  133. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  134. package/lib/src/index.d.ts +3 -3
  135. package/lib/src/index.d.ts.map +1 -1
  136. package/lib/src/index.js +3 -3
  137. package/lib/src/index.js.map +1 -1
  138. package/lib/src/react/all-types-export.d.ts +1 -1
  139. package/lib/src/react/all-types-export.d.ts.map +1 -1
  140. package/lib/src/react/all-types-export.js +1 -1
  141. package/lib/src/react/all-types-export.js.map +1 -1
  142. package/lib/src/react/index.d.ts +24 -5
  143. package/lib/src/react/index.d.ts.map +1 -1
  144. package/lib/src/react/index.js +21 -4
  145. package/lib/src/react/index.js.map +1 -1
  146. package/lib/src/types.d.ts +95 -3
  147. package/lib/src/types.d.ts.map +1 -1
  148. package/lib/src/types.js +79 -0
  149. package/lib/src/types.js.map +1 -1
  150. package/lib/src/utils/graphql/answerService/answerService.d.ts +35 -15
  151. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  152. package/lib/src/utils/graphql/answerService/answerService.js +35 -15
  153. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  154. package/lib/src/utils/processData.js +6 -4
  155. package/lib/src/utils/processData.js.map +1 -1
  156. package/lib/src/visual-embed-sdk.d.ts +278 -45
  157. package/package.json +3 -3
  158. package/src/auth.spec.ts +52 -0
  159. package/src/auth.ts +25 -3
  160. package/src/embed/app.spec.ts +64 -0
  161. package/src/embed/app.ts +80 -0
  162. package/src/embed/bodyless-conversation.spec.ts +6 -6
  163. package/src/embed/bodyless-conversation.ts +43 -8
  164. package/src/embed/conversation.spec.ts +16 -16
  165. package/src/embed/conversation.ts +42 -11
  166. package/src/embed/ts-embed.spec.ts +0 -2
  167. package/src/embed/ts-embed.ts +4 -0
  168. package/src/index.ts +8 -4
  169. package/src/react/all-types-export.ts +1 -0
  170. package/src/react/index.tsx +36 -10
  171. package/src/types.ts +99 -1
  172. package/src/utils/graphql/answerService/answerService.ts +35 -15
  173. package/src/utils/processData.ts +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"answerService.js","sourceRoot":"","sources":["../../../../../src/utils/graphql/answerService/answerService.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAQ5C,qCAAqC;AACrC,MAAM,CAAN,IAAY,aAG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CAAC,KAAK,EAAE,CAAC,CAAC;SACzC;QACD,mBAAmB,CAAC,IAAI,CAAC;YACrB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;YAC1B,SAAS;SACZ,CAAC,CAAC;IACP,CAAC;IAED,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACzB,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IACH,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AAED;;;;GAIG;AACH,SAAS,eAAe,CAAC,cAAqB,EAAE,WAAmB;IAC/D,IAAI,WAAW,KAAK,YAAY,EAAE;QAC9B,OAAO,cAAc,CAAC,IAAI;QACtB,gDAAgD;QAChD,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,KAAK,UAAU,CAC9C,CAAC;KACL;IACD,OAAO,cAAc,CAAC,IAAI;IACtB,gDAAgD;IAChD,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,KAAK,UAAU,CAC9C,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"answerService.js","sourceRoot":"","sources":["../../../../../src/utils/graphql/answerService/answerService.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAQ5C,qCAAqC;AACrC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,sDAAqC,CAAA;IACrC,sEAAqD,CAAA;AACzD,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAOD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,MAAM,CAAC,MAAM,CAAC,EAAE;YAC1B,SAAS;SACZ,CAAC,CAAC;IACP,CAAC;IAED,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACzB,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IACH,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AAED;;;;GAIG;AACH,SAAS,eAAe,CAAC,cAAqB,EAAE,WAAmB;IAC/D,IAAI,WAAW,KAAK,YAAY,EAAE;QAC9B,OAAO,cAAc,CAAC,IAAI;QACtB,gDAAgD;QAChD,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,KAAK,UAAU,CAC9C,CAAC;KACL;IACD,OAAO,cAAc,CAAC,IAAI;IACtB,gDAAgD;IAChD,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,KAAK,UAAU,CAC9C,CAAC;AACN,CAAC"}
@@ -58,15 +58,17 @@ function processNoCookieAccess(e, containerEl) {
58
58
  * @param containerEl
59
59
  */
60
60
  export function processAuthFailure(e, containerEl) {
61
+ var _a;
61
62
  const { loginFailedMessage, authType, disableLoginFailurePage, autoLogin, } = getEmbedConfig();
62
- if (autoLogin
63
- && (authType === AuthType.TrustedAuthToken
64
- || authType === AuthType.TrustedAuthTokenCookieless)) {
63
+ const isEmbeddedSSO = authType === AuthType.EmbeddedSSO;
64
+ const isTrustedAuth = authType === AuthType.TrustedAuthToken || authType === AuthType.TrustedAuthTokenCookieless;
65
+ const isEmbeddedSSOInfoFailure = isEmbeddedSSO && ((_a = e === null || e === void 0 ? void 0 : e.data) === null || _a === void 0 ? void 0 : _a.type) === AuthFailureType.UNAUTHENTICATED_FAILURE;
66
+ if (autoLogin && isTrustedAuth) {
65
67
  // eslint-disable-next-line no-param-reassign
66
68
  containerEl.innerHTML = loginFailedMessage;
67
69
  notifyAuthFailure(AuthFailureType.IDLE_SESSION_TIMEOUT);
68
70
  }
69
- else if (authType !== AuthType.None && !disableLoginFailurePage) {
71
+ else if (authType !== AuthType.None && !disableLoginFailurePage && !isEmbeddedSSOInfoFailure) {
70
72
  // eslint-disable-next-line no-param-reassign
71
73
  containerEl.innerHTML = loginFailedMessage;
72
74
  notifyAuthFailure(AuthFailureType.OTHER);
@@ -1 +1 @@
1
- {"version":3,"file":"processData.js","sourceRoot":"","sources":["../../../src/utils/processData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACH,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAuB,UAAU,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,CAAM,EAAE,eAAuB;IAC/D,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,GAAG,CAAC,CAAC,IAA2B,CAAC;IACtF,MAAM,aAAa,GAAG,IAAI,aAAa,CACnC,OAAO,EACP,eAAe,IAAI,EAAE,EACrB,eAAe,EACf,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,cAAc,CACpC,CAAC;IACF,OAAO;QACH,GAAG,CAAC;QACJ,aAAa;KAChB,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,SAAS,eAAe,CAAC,CAAM;;IAC3B,iBAAiB,EAAE,CAAC;IAEpB,gEAAgE;IAChE,OAAO;QACH,GAAG,CAAC;QACJ,IAAI,EAAE;YACF,QAAQ,EAAE,CAAA,MAAA,CAAC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,CAC5B,IAAgB,EAChB,CAAM,EACN,eAAuB,EACvB,WAAoB;IAEpB,QAAQ,IAAI,EAAE;QACV,KAAK,UAAU,CAAC,YAAY;YACxB,OAAO,mBAAmB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC;QACnD,KAAK,UAAU,CAAC,QAAQ;YACpB,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;QAC9B,KAAK,UAAU,CAAC,cAAc;YAC1B,OAAO,qBAAqB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QACjD,KAAK,UAAU,CAAC,WAAW;YACvB,OAAO,kBAAkB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAC9C,KAAK,UAAU,CAAC,UAAU;YACtB,OAAO,iBAAiB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAC7C,QAAQ;KACX;IACD,OAAO,CAAC,CAAC;AACb,CAAC"}
@@ -16,8 +16,8 @@ declare module '@thoughtspot/visual-embed-sdk' {
16
16
  import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from '@thoughtspot/visual-embed-sdk/embed/liveboard';
17
17
  import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
18
18
  import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
19
- import { BodylessConversation, BodylessConversationViewConfig } from '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation';
20
- import { ConversationEmbed, ConversationViewConfig } from '@thoughtspot/visual-embed-sdk/embed/conversation';
19
+ import { SpotterAgentEmbed, SpotterAgentEmbedViewConfig, SpotterAgentEmbed as BodylessConversation, SpotterAgentEmbedViewConfig as BodylessConversationViewConfig } from '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation';
20
+ import { SpotterEmbed, SpotterEmbedViewConfig, SpotterEmbed as ConversationEmbed, SpotterEmbedViewConfig as ConversationViewConfig } from '@thoughtspot/visual-embed-sdk/embed/conversation';
21
21
  import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
22
22
  import { getSessionInfo } from '@thoughtspot/visual-embed-sdk/utils/sessionInfoService';
23
23
  import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel, VizPoint, CustomActionPayload, ListPageColumns } from '@thoughtspot/visual-embed-sdk/types';
@@ -30,7 +30,7 @@ declare module '@thoughtspot/visual-embed-sdk' {
30
30
  import { getAnswerFromQuery } from '@thoughtspot/visual-embed-sdk/utils/graphql/nlsService/nls-answer-service';
31
31
  import { createLiveboardWithAnswers } from '@thoughtspot/visual-embed-sdk/utils/liveboardService/liveboardService';
32
32
  import { UIPassthroughEvent } from '@thoughtspot/visual-embed-sdk/embed/hostEventClient/contracts';
33
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, };
33
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, SpotterAgentEmbed, SpotterAgentEmbedViewConfig, BodylessConversationViewConfig, BodylessConversation, SpotterEmbed, SpotterEmbedViewConfig, ConversationViewConfig, ConversationEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, };
34
34
  export { resetCachedAuthToken } from '@thoughtspot/visual-embed-sdk/authToken';
35
35
  }
36
36
 
@@ -174,6 +174,51 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
174
174
  * ```
175
175
  */
176
176
  enablePendoHelp?: boolean;
177
+ /**
178
+ * Control the visibility of the hamburger icon on the top nav bar
179
+ * available when new navigation V3 is enabled.
180
+ *
181
+ * @default false
182
+ * @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
183
+ * @example
184
+ * ```js
185
+ * const embed = new AppEmbed('#tsEmbed', {
186
+ * ... // other options
187
+ * hideHamburger : true,
188
+ * })
189
+ * ```
190
+ */
191
+ hideHamburger?: boolean;
192
+ /**
193
+ * Control the visibility of the Eureka search on the top nav bar
194
+ * this will control for both new V2 and new navigation V3.
195
+ *
196
+ * @default true
197
+ * @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
198
+ * @example
199
+ * ```js
200
+ * const embed = new AppEmbed('#tsEmbed', {
201
+ * ... // other options
202
+ * hideObjectSearch: false,
203
+ * })
204
+ * ```
205
+ */
206
+ hideObjectSearch?: boolean;
207
+ /**
208
+ * Control the visibility of the notification on the top nav bar V3,
209
+ * available when new navigation V3 is enabled.
210
+ *
211
+ * @default true
212
+ * @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
213
+ * @example
214
+ * ```js
215
+ * const embed = new AppEmbed('#tsEmbed', {
216
+ * ... // other options
217
+ * hideNotification: false,
218
+ * })
219
+ * ```
220
+ */
221
+ hideNotification?: boolean;
177
222
  /**
178
223
  * Control the visibility of the application switcher button on the nav-bar.
179
224
  * By default, the application switcher is shown.
@@ -367,6 +412,20 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
367
412
  * ```
368
413
  */
369
414
  modularHomeExperience?: boolean;
415
+ /**
416
+ * Flag to control new navigation v3 home experience.
417
+ *
418
+ * @default false
419
+ * @version SDK: 1.39.0 | Thoughtspot: 10.10.0.cl
420
+ * @example
421
+ * ```js
422
+ * const embed = new AppEmbed('#tsEmbed', {
423
+ * ... // other options
424
+ * modularHomeExperienceV3 : true,
425
+ * })
426
+ * ```
427
+ */
428
+ modularHomeExperienceV3?: boolean;
370
429
  /**
371
430
  * Boolean to control if Liveboard header is sticky or not.
372
431
  * @example
@@ -1552,21 +1611,28 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
1552
1611
  * Configuration for bodyless conversation options.
1553
1612
  * @group Embed components
1554
1613
  */
1555
- export interface BodylessConversationViewConfig extends ViewConfig {
1614
+ export interface SpotterAgentEmbedViewConfig extends ViewConfig {
1556
1615
  /**
1557
1616
  * The ID of the worksheet to use for the conversation.
1558
1617
  */
1559
1618
  worksheetId: string;
1560
1619
  }
1561
- interface ConversationMessageViewConfig extends BodylessConversationViewConfig {
1620
+ /**
1621
+ * Configuration for conversation options.
1622
+ * @deprecated Renamed to SpotterAgentEmbedViewConfig
1623
+ * @group Embed components
1624
+ */
1625
+ export interface BodylessConversationViewConfig extends SpotterAgentEmbedViewConfig {
1626
+ }
1627
+ interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConfig {
1562
1628
  sessionId: string;
1563
1629
  genNo: number;
1564
1630
  acSessionId: string;
1565
1631
  acGenNo: number;
1566
1632
  }
1567
1633
  class ConversationMessage extends TsEmbed {
1568
- protected viewConfig: ConversationMessageViewConfig;
1569
- constructor(container: HTMLElement, viewConfig: ConversationMessageViewConfig);
1634
+ protected viewConfig: SpotterAgentMessageViewConfig;
1635
+ constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
1570
1636
  getIframeSrc(): string;
1571
1637
  render(): Promise<ConversationMessage>;
1572
1638
  }
@@ -1575,9 +1641,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
1575
1641
  * chatbots or other conversational interfaces.
1576
1642
  * @example
1577
1643
  * ```js
1578
- * import { BodylessConversation } from '@thoughtspot/visual-embed-sdk';
1644
+ * import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
1579
1645
  *
1580
- * const conversation = new BodylessConversation({
1646
+ * const conversation = new SpotterAgentEmbed({
1581
1647
  * worksheetId: 'worksheetId',
1582
1648
  * });
1583
1649
  *
@@ -1587,10 +1653,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
1587
1653
  * document.body.appendChild(container); // or to any other element
1588
1654
  * ```
1589
1655
  * @group Embed components
1590
- * @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
1656
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
1591
1657
  */
1592
- export class BodylessConversation {
1593
- constructor(viewConfig: BodylessConversationViewConfig);
1658
+ export class SpotterAgentEmbed {
1659
+ constructor(viewConfig: SpotterAgentEmbedViewConfig);
1594
1660
  sendMessage(userMessage: string): Promise<{
1595
1661
  error: any;
1596
1662
  container?: undefined;
@@ -1601,6 +1667,29 @@ declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
1601
1667
  error?: undefined;
1602
1668
  }>;
1603
1669
  }
1670
+ /**
1671
+ * Create a conversation embed, which can be integrated inside
1672
+ * chatbots or other conversational interfaces.
1673
+ * @deprecated Renamed to SpotterAgentEmbed
1674
+ * @example
1675
+ * ```js
1676
+ * import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
1677
+ *
1678
+ * const conversation = new SpotterAgentEmbed({
1679
+ * worksheetId: 'worksheetId',
1680
+ * });
1681
+ *
1682
+ * const { container, error } = await conversation.sendMessage('show me sales by region');
1683
+ *
1684
+ * // append the container to the DOM
1685
+ * document.body.appendChild(container); // or to any other element
1686
+ * ```
1687
+ * @group Embed components
1688
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
1689
+ */
1690
+ export class BodylessConversation extends SpotterAgentEmbed {
1691
+ constructor(viewConfig: BodylessConversationViewConfig);
1692
+ }
1604
1693
  export {};
1605
1694
  }
1606
1695
 
@@ -1617,10 +1706,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1617
1706
  searchQuery: string;
1618
1707
  }
1619
1708
  /**
1620
- * The configuration for the embedded conversationEmbed options.
1709
+ * The configuration for the embedded spotterEmbed options.
1621
1710
  * @group Embed components
1622
1711
  */
1623
- export interface ConversationViewConfig extends ViewConfig {
1712
+ export interface SpotterEmbedViewConfig extends ViewConfig {
1624
1713
  /**
1625
1714
  * The ID of the worksheet to use for the conversation.
1626
1715
  */
@@ -1634,7 +1723,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1634
1723
  * but still display the selected data source.
1635
1724
  * @example
1636
1725
  * ```js
1637
- * const embed = new ConversationEmbed('#tsEmbed', {
1726
+ * const embed = new SpotterEmbed('#tsEmbed', {
1638
1727
  * ... // other options
1639
1728
  * disableSourceSelection : true,
1640
1729
  * })
@@ -1646,7 +1735,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1646
1735
  * hideSourceSelection : Hide data source selection
1647
1736
  * @example
1648
1737
  * ```js
1649
- * const embed = new ConversationEmbed('#tsEmbed', {
1738
+ * const embed = new SpotterEmbed('#tsEmbed', {
1650
1739
  * ... // other options
1651
1740
  * hideSourceSelection : true,
1652
1741
  * })
@@ -1673,7 +1762,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1673
1762
  * default is false.
1674
1763
  * @example
1675
1764
  * ```js
1676
- * const embed = new ConversationEmbed('#tsEmbed', {
1765
+ * const embed = new SpotterEmbed('#tsEmbed', {
1677
1766
  * ... // other options
1678
1767
  * showSpotterLimitations : true,
1679
1768
  * })
@@ -1686,7 +1775,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1686
1775
  * the initial screen of the conversation.
1687
1776
  * @example
1688
1777
  * ```js
1689
- * const embed = new ConversationEmbed('#tsEmbed', {
1778
+ * const embed = new SpotterEmbed('#tsEmbed', {
1690
1779
  * ... // other options
1691
1780
  * hideSampleQuestions : true,
1692
1781
  * })
@@ -1695,12 +1784,41 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1695
1784
  */
1696
1785
  hideSampleQuestions?: boolean;
1697
1786
  }
1787
+ /**
1788
+ * The configuration for the embedded spotterEmbed options.
1789
+ * @deprecated Renamed to SpotterEmbedViewConfig
1790
+ * @group Embed components
1791
+ */
1792
+ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
1793
+ }
1794
+ /**
1795
+ * Embed ThoughtSpot AI Conversation.
1796
+ * @group Embed components
1797
+ * @example
1798
+ * ```js
1799
+ * const conversation = new SpotterEmbed('#tsEmbed', {
1800
+ * worksheetId: 'worksheetId',
1801
+ * searchOptions: {
1802
+ * searchQuery: 'searchQuery',
1803
+ * },
1804
+ * });
1805
+ * conversation.render();
1806
+ * ```
1807
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.10.0.cl
1808
+ */
1809
+ export class SpotterEmbed extends TsEmbed {
1810
+ protected viewConfig: SpotterEmbedViewConfig;
1811
+ constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
1812
+ getIframeSrc(): string;
1813
+ render(): Promise<SpotterEmbed>;
1814
+ }
1698
1815
  /**
1699
1816
  * Embed ThoughtSpot AI Conversation.
1817
+ * @deprecated Renamed to SpotterEmbed
1700
1818
  * @group Embed components
1701
1819
  * @example
1702
1820
  * ```js
1703
- * const conversation = new ConversationEmbed('#tsEmbed', {
1821
+ * const conversation = new SpotterEmbed('#tsEmbed', {
1704
1822
  * worksheetId: 'worksheetId',
1705
1823
  * searchOptions: {
1706
1824
  * searchQuery: 'searchQuery',
@@ -1708,13 +1826,11 @@ declare module '@thoughtspot/visual-embed-sdk/embed/conversation' {
1708
1826
  * });
1709
1827
  * conversation.render();
1710
1828
  * ```
1711
- * @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
1829
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
1712
1830
  */
1713
- export class ConversationEmbed extends TsEmbed {
1831
+ export class ConversationEmbed extends SpotterEmbed {
1714
1832
  protected viewConfig: ConversationViewConfig;
1715
1833
  constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
1716
- getIframeSrc(): string;
1717
- render(): Promise<ConversationEmbed>;
1718
1834
  }
1719
1835
  }
1720
1836
 
@@ -1735,7 +1851,8 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
1735
1851
  NO_COOKIE_ACCESS = "NO_COOKIE_ACCESS",
1736
1852
  EXPIRY = "EXPIRY",
1737
1853
  OTHER = "OTHER",
1738
- IDLE_SESSION_TIMEOUT = "IDLE_SESSION_TIMEOUT"
1854
+ IDLE_SESSION_TIMEOUT = "IDLE_SESSION_TIMEOUT",
1855
+ UNAUTHENTICATED_FAILURE = "UNAUTHENTICATED_FAILURE"
1739
1856
  }
1740
1857
  /**
1741
1858
  * Enum for auth status emitted by the emitter returned from {@link init}.
@@ -1769,7 +1886,11 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
1769
1886
  * or by the trigger button.
1770
1887
  * @version SDK: 1.19.0
1771
1888
  */
1772
- WAITING_FOR_POPUP = "WAITING_FOR_POPUP"
1889
+ WAITING_FOR_POPUP = "WAITING_FOR_POPUP",
1890
+ /**
1891
+ * Emitted when the SAML popup is closed without authentication
1892
+ */
1893
+ SAML_POPUP_CLOSED_NO_AUTH = "SAML_POPUP_CLOSED_NO_AUTH"
1773
1894
  }
1774
1895
  /**
1775
1896
  * Event emitter returned from {@link init}.
@@ -1787,10 +1908,10 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
1787
1908
  * @param event
1788
1909
  * @param listener
1789
1910
  */
1790
- on(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP, listener: () => void): this;
1911
+ on(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP | AuthStatus.SAML_POPUP_CLOSED_NO_AUTH, listener: () => void): this;
1791
1912
  on(event: AuthStatus.SUCCESS, listener: (sessionInfo: any) => void): this;
1792
1913
  once(event: AuthStatus.FAILURE, listener: (failureType: AuthFailureType) => void): this;
1793
- once(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP, listener: () => void): this;
1914
+ once(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP | AuthStatus.SAML_POPUP_CLOSED_NO_AUTH, listener: () => void): this;
1794
1915
  once(event: AuthStatus.SUCCESS, listener: (sessionInfo: any) => void): this;
1795
1916
  /**
1796
1917
  * Trigger an event on the emitter returned from init.
@@ -2206,7 +2327,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2206
2327
  /**
2207
2328
  * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
2208
2329
  */
2209
- LiveboardSchedules = "liveboard-schedules"
2330
+ LiveboardSchedules = "liveboard-schedules",
2331
+ /**
2332
+ * Create new options in the insights left navigation,
2333
+ * available when new navigation V3 is enabled.
2334
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
2335
+ */
2336
+ Create = "create",
2337
+ /**
2338
+ * Spotter option in the insights left navigation,
2339
+ * available when new navigation V3 is enabled.
2340
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
2341
+ */
2342
+ Spotter = "spotter"
2210
2343
  }
2211
2344
  export type DOMSelector = string | HTMLElement;
2212
2345
  /**
@@ -2687,6 +2820,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2687
2820
  * ```
2688
2821
  */
2689
2822
  disabledActions?: Action[];
2823
+ /**
2824
+ * The primary action to display on top of the viz for Liveboard and App Embed.
2825
+ * Use this to set the primary action.
2826
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
2827
+ * @example
2828
+ * ```js
2829
+ * const embed = new LiveboardEmbed('#embed', {
2830
+ * ... // other liveboard view config
2831
+ * primaryAction: Action.Download
2832
+ * });
2833
+ * ```
2834
+ */
2835
+ primaryAction?: Action | string;
2690
2836
  /**
2691
2837
  * The tooltip to display for disabled actions.
2692
2838
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -5276,8 +5422,17 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5276
5422
  /**
5277
5423
  * Get the Answer session for a Search or
5278
5424
  * Liveboard visualization.
5425
+ *
5426
+ * Note: This event is not typically used directly. Instead, use the
5427
+ * `getAnswerService()` method on the embed instance to get an AnswerService
5428
+ * object that provides a more convenient interface for working with answers.
5429
+ *
5279
5430
  * @example
5280
5431
  * ```js
5432
+ * // Preferred way to get an AnswerService
5433
+ * const service = await embed.getAnswerService();
5434
+ *
5435
+ * // Alternative direct usage (not recommended)
5281
5436
  * const {session} = await embed.trigger(
5282
5437
  * HostEvent.GetAnswerSession, {
5283
5438
  * vizId: '123', // For Liveboard Visualization.
@@ -5285,6 +5440,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5285
5440
  * ```
5286
5441
  * @example
5287
5442
  * ```js
5443
+ * // Preferred way to get an AnswerService
5444
+ * const service = await embed.getAnswerService();
5445
+ *
5446
+ * // Alternative direct usage (not recommended)
5288
5447
  * const {session} = await embed.trigger( HostEvent.GetAnswerSession )
5289
5448
  * ```
5290
5449
  * @version SDK: 1.26.0 | ThoughtSpot: 9.10.0.cl, 10.1.0.sw
@@ -5412,7 +5571,55 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5412
5571
  * ```
5413
5572
  * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
5414
5573
  */
5415
- TransformTableVizData = "TransformTableVizData"
5574
+ TransformTableVizData = "TransformTableVizData",
5575
+ /**
5576
+ * Triggers the table visualization re-render with the updated data.
5577
+ * Includes the following properties:
5578
+ * @param - `columnDataLite` - an array of object containing the
5579
+ * data value modifications retrieved from the `EmbedEvent.TableVizRendered`
5580
+ * payload.For example, { columnDataLite: []}`.
5581
+ */
5582
+ SpotterSearch = "SpotterSearch",
5583
+ /**
5584
+ * Triggers the table visualization re-render with the updated data.
5585
+ * Includes the following properties:
5586
+ * @param - `columnDataLite` - an array of object containing the
5587
+ * data value modifications retrieved from the `EmbedEvent.TableVizRendered`
5588
+ * payload.For example, { columnDataLite: []}`.
5589
+ */
5590
+ EditLastPrompt = "EditLastPrompt",
5591
+ /**
5592
+ * Triggers the table visualization re-render with the updated data.
5593
+ * Includes the following properties:
5594
+ * @param - `columnDataLite` - an array of object containing the
5595
+ * data value modifications retrieved from the `EmbedEvent.TableVizRendered`
5596
+ * payload.For example, { columnDataLite: []}`.
5597
+ */
5598
+ PreviewSpotterData = "PreviewSpotterData",
5599
+ /**
5600
+ * Triggers the table visualization re-render with the updated data.
5601
+ * Includes the following properties:
5602
+ * @param - `columnDataLite` - an array of object containing the
5603
+ * data value modifications retrieved from the `EmbedEvent.TableVizRendered`
5604
+ * payload.For example, { columnDataLite: []}`.
5605
+ */
5606
+ ResetSpotterConversation = "ResetSpotterConversation",
5607
+ /**
5608
+ * Triggers the table visualization re-render with the updated data.
5609
+ * Includes the following properties:
5610
+ * @param - `columnDataLite` - an array of object containing the
5611
+ * data value modifications retrieved from the `EmbedEvent.TableVizRendered`
5612
+ * payload.For example, { columnDataLite: []}`.
5613
+ */
5614
+ DeleteLastPrompt = "DeleteLastPrompt",
5615
+ /**
5616
+ * Triggers the table visualization re-render with the updated data.
5617
+ * Includes the following properties:
5618
+ * @param - `columnDataLite` - an array of object containing the
5619
+ * data value modifications retrieved from the `EmbedEvent.TableVizRendered`
5620
+ * payload.For example, { columnDataLite: []}`.
5621
+ */
5622
+ AnswerChartSwitcher = "answerChartSwitcher"
5416
5623
  }
5417
5624
  /**
5418
5625
  * The different visual modes that the data sources panel within
@@ -5483,6 +5690,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5483
5690
  ShowInsertToSlide = "insertInToSlide",
5484
5691
  PrimaryNavHidden = "primaryNavHidden",
5485
5692
  HideProfleAndHelp = "profileAndHelpInNavBarHidden",
5693
+ NavigationVersion = "navigationVersion",
5694
+ HideHamburger = "hideHamburger",
5695
+ HideObjectSearch = "hideObjectSearch",
5696
+ HideNotification = "hideNotification",
5486
5697
  HideApplicationSwitcher = "applicationSwitcherHidden",
5487
5698
  HideOrgSwitcher = "orgSwitcherHidden",
5488
5699
  IsSageEmbed = "isSageEmbed",
@@ -5538,7 +5749,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
5538
5749
  DataSourceId = "dataSourceId",
5539
5750
  preAuthCache = "preAuthCache",
5540
5751
  ShowSpotterLimitations = "showSpotterLimitations",
5541
- CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
5752
+ CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
5753
+ PrimaryAction = "primaryAction",
5754
+ isSpotterAgentEmbed = "isSpotterAgentEmbed"
5542
5755
  }
5543
5756
  /**
5544
5757
  * ThoughtSpot application pages include actions and menu commands
@@ -7478,29 +7691,49 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
7478
7691
  dataValue: any;
7479
7692
  }
7480
7693
  /**
7481
- * Class representing the answer service provided with the
7482
- * custom action payload. This service could be used to run
7483
- * graphql queries in the context of the answer on which the
7484
- * custom action was triggered.
7694
+ * AnswerService provides a simple way to work with ThoughtSpot Answers.
7695
+ *
7696
+ * This service allows you to interact with ThoughtSpot Answers programmatically,
7697
+ * making it easy to customize visualizations, filter data, and extract insights
7698
+ * directly from your application.
7699
+ *
7700
+ * You can use this service to:
7701
+ * - Add or remove columns from Answers (`addColumns`, `removeColumns`, `addColumnsByName`)
7702
+ * - Apply filters to Answers (`addFilter`)
7703
+ * - Get data from Answers in different formats (JSON, CSV, PNG) (`fetchData`, `fetchCSVBlob`, `fetchPNGBlob`)
7704
+ * - Get data for specific points in visualizations (`getUnderlyingDataForPoint`)
7705
+ * - Run custom queries (`executeQuery`)
7706
+ * - Add visualizations to liveboards (`addDisplayedVizToLiveboard`)
7707
+ *
7485
7708
  * @example
7486
7709
  * ```js
7487
- * embed.on(EmbedEvent.CustomAction, e => {
7488
- * const underlying = await e.answerService.getUnderlyingDataForPoint([
7489
- * 'col name 1'
7490
- * ]);
7491
- * const data = await underlying.fetchData(0, 100);
7492
- * })
7710
+ * // Get the answer service
7711
+ * embed.on(EmbedEvent.Data, async (e) => {
7712
+ * const service = await embed.getAnswerService();
7713
+ *
7714
+ * // Add columns to the answer
7715
+ * await service.addColumnsByName(["Sales", "Region"]);
7716
+ *
7717
+ * // Get the data
7718
+ * const data = await service.fetchData();
7719
+ * console.log(data);
7720
+ * });
7493
7721
  * ```
7722
+ *
7494
7723
  * @example
7495
7724
  * ```js
7496
- * embed.on(EmbedEvent.Data, async (e) => {
7497
- * const service = await embed.getAnswerService();
7498
- * await service.addColumns([
7499
- * "<column guid>"
7725
+ * // Get data for a point in a visualization
7726
+ * embed.on(EmbedEvent.CustomAction, async (e) => {
7727
+ * const underlying = await e.answerService.getUnderlyingDataForPoint([
7728
+ * 'Product Name',
7729
+ * 'Sales Amount'
7500
7730
  * ]);
7501
- * console.log(await service.fetchData());
7731
+ *
7732
+ * const data = await underlying.fetchData(0, 100);
7733
+ * console.log(data);
7502
7734
  * });
7503
7735
  * ```
7736
+ *
7504
7737
  * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
7505
7738
  * @group Events
7506
7739
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.37.0",
3
+ "version": "1.37.1-spotter-embed",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -57,7 +57,7 @@
57
57
  "test": "npm run test-sdk",
58
58
  "posttest": "cat ./coverage/sdk/lcov.info | coveralls",
59
59
  "is-publish-allowed": "node scripts/is-publish-allowed.js",
60
- "prepublishOnly": "npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build",
60
+ "prepublishOnly": "npm run is-publish-allowed && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build",
61
61
  "check-size": "npm run build && size-limit",
62
62
  "publish-dev": "npm publish --tag dev",
63
63
  "publish-prod": "npm publish --tag latest",
@@ -141,7 +141,7 @@
141
141
  "typescript-eslint": "^8.29.1",
142
142
  "url-search-params-polyfill": "^8.1.0",
143
143
  "util": "^0.12.4",
144
- "vite": "^5.3.4"
144
+ "vite": "^6.3.5"
145
145
  },
146
146
  "author": "ThoughtSpot",
147
147
  "email": "support@thoughtspot.com",