@thoughtspot/visual-embed-sdk 1.43.1 → 1.44.1-test

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 (151) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/api-intercept.d.ts.map +1 -1
  3. package/cjs/src/api-intercept.js +8 -3
  4. package/cjs/src/api-intercept.js.map +1 -1
  5. package/cjs/src/api-intercept.spec.js +19 -3
  6. package/cjs/src/api-intercept.spec.js.map +1 -1
  7. package/cjs/src/embed/app.d.ts +32 -0
  8. package/cjs/src/embed/app.d.ts.map +1 -1
  9. package/cjs/src/embed/app.js +9 -4
  10. package/cjs/src/embed/app.js.map +1 -1
  11. package/cjs/src/embed/app.spec.js +104 -1
  12. package/cjs/src/embed/app.spec.js.map +1 -1
  13. package/cjs/src/embed/base.d.ts +7 -0
  14. package/cjs/src/embed/base.d.ts.map +1 -1
  15. package/cjs/src/embed/base.js +16 -1
  16. package/cjs/src/embed/base.js.map +1 -1
  17. package/cjs/src/embed/base.spec.js +21 -0
  18. package/cjs/src/embed/base.spec.js.map +1 -1
  19. package/cjs/src/embed/conversation.d.ts +15 -0
  20. package/cjs/src/embed/conversation.d.ts.map +1 -1
  21. package/cjs/src/embed/conversation.js +10 -2
  22. package/cjs/src/embed/conversation.js.map +1 -1
  23. package/cjs/src/embed/conversation.spec.js +30 -1
  24. package/cjs/src/embed/conversation.spec.js.map +1 -1
  25. package/cjs/src/embed/liveboard.d.ts +33 -0
  26. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  27. package/cjs/src/embed/liveboard.js +13 -5
  28. package/cjs/src/embed/liveboard.js.map +1 -1
  29. package/cjs/src/embed/liveboard.spec.js +108 -0
  30. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  31. package/cjs/src/embed/ts-embed.d.ts +3 -2
  32. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  33. package/cjs/src/embed/ts-embed.js +51 -17
  34. package/cjs/src/embed/ts-embed.js.map +1 -1
  35. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  36. package/cjs/src/embed/ts-embed.spec.js +93 -5
  37. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  38. package/cjs/src/errors.d.ts +7 -0
  39. package/cjs/src/errors.d.ts.map +1 -1
  40. package/cjs/src/errors.js +7 -0
  41. package/cjs/src/errors.js.map +1 -1
  42. package/cjs/src/index.d.ts +2 -2
  43. package/cjs/src/index.d.ts.map +1 -1
  44. package/cjs/src/index.js +2 -1
  45. package/cjs/src/index.js.map +1 -1
  46. package/cjs/src/react/all-types-export.d.ts +1 -1
  47. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  48. package/cjs/src/react/all-types-export.js +2 -1
  49. package/cjs/src/react/all-types-export.js.map +1 -1
  50. package/cjs/src/types.d.ts +250 -7
  51. package/cjs/src/types.d.ts.map +1 -1
  52. package/cjs/src/types.js +135 -2
  53. package/cjs/src/types.js.map +1 -1
  54. package/dist/{index-CpkMygsc.js → index-BXCUJ09L.js} +1 -1
  55. package/dist/src/api-intercept.d.ts.map +1 -1
  56. package/dist/src/embed/app.d.ts +32 -0
  57. package/dist/src/embed/app.d.ts.map +1 -1
  58. package/dist/src/embed/base.d.ts +7 -0
  59. package/dist/src/embed/base.d.ts.map +1 -1
  60. package/dist/src/embed/conversation.d.ts +15 -0
  61. package/dist/src/embed/conversation.d.ts.map +1 -1
  62. package/dist/src/embed/liveboard.d.ts +33 -0
  63. package/dist/src/embed/liveboard.d.ts.map +1 -1
  64. package/dist/src/embed/ts-embed.d.ts +3 -2
  65. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  66. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  67. package/dist/src/errors.d.ts +7 -0
  68. package/dist/src/errors.d.ts.map +1 -1
  69. package/dist/src/index.d.ts +2 -2
  70. package/dist/src/index.d.ts.map +1 -1
  71. package/dist/src/react/all-types-export.d.ts +1 -1
  72. package/dist/src/react/all-types-export.d.ts.map +1 -1
  73. package/dist/src/types.d.ts +250 -7
  74. package/dist/src/types.d.ts.map +1 -1
  75. package/dist/tsembed-react.es.js +304 -105
  76. package/dist/tsembed-react.js +303 -104
  77. package/dist/tsembed.es.js +318 -106
  78. package/dist/tsembed.js +317 -104
  79. package/dist/visual-embed-sdk-react-full.d.ts +290 -7
  80. package/dist/visual-embed-sdk-react.d.ts +283 -7
  81. package/dist/visual-embed-sdk.d.ts +290 -7
  82. package/lib/package.json +1 -1
  83. package/lib/src/api-intercept.d.ts.map +1 -1
  84. package/lib/src/api-intercept.js +9 -4
  85. package/lib/src/api-intercept.js.map +1 -1
  86. package/lib/src/api-intercept.spec.js +20 -4
  87. package/lib/src/api-intercept.spec.js.map +1 -1
  88. package/lib/src/embed/app.d.ts +32 -0
  89. package/lib/src/embed/app.d.ts.map +1 -1
  90. package/lib/src/embed/app.js +10 -5
  91. package/lib/src/embed/app.js.map +1 -1
  92. package/lib/src/embed/app.spec.js +104 -1
  93. package/lib/src/embed/app.spec.js.map +1 -1
  94. package/lib/src/embed/base.d.ts +7 -0
  95. package/lib/src/embed/base.d.ts.map +1 -1
  96. package/lib/src/embed/base.js +14 -0
  97. package/lib/src/embed/base.js.map +1 -1
  98. package/lib/src/embed/base.spec.js +21 -0
  99. package/lib/src/embed/base.spec.js.map +1 -1
  100. package/lib/src/embed/conversation.d.ts +15 -0
  101. package/lib/src/embed/conversation.d.ts.map +1 -1
  102. package/lib/src/embed/conversation.js +11 -3
  103. package/lib/src/embed/conversation.js.map +1 -1
  104. package/lib/src/embed/conversation.spec.js +31 -2
  105. package/lib/src/embed/conversation.spec.js.map +1 -1
  106. package/lib/src/embed/liveboard.d.ts +33 -0
  107. package/lib/src/embed/liveboard.d.ts.map +1 -1
  108. package/lib/src/embed/liveboard.js +14 -6
  109. package/lib/src/embed/liveboard.js.map +1 -1
  110. package/lib/src/embed/liveboard.spec.js +108 -0
  111. package/lib/src/embed/liveboard.spec.js.map +1 -1
  112. package/lib/src/embed/ts-embed.d.ts +3 -2
  113. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  114. package/lib/src/embed/ts-embed.js +52 -18
  115. package/lib/src/embed/ts-embed.js.map +1 -1
  116. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  117. package/lib/src/embed/ts-embed.spec.js +94 -6
  118. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  119. package/lib/src/errors.d.ts +7 -0
  120. package/lib/src/errors.d.ts.map +1 -1
  121. package/lib/src/errors.js +7 -0
  122. package/lib/src/errors.js.map +1 -1
  123. package/lib/src/index.d.ts +2 -2
  124. package/lib/src/index.d.ts.map +1 -1
  125. package/lib/src/index.js +2 -2
  126. package/lib/src/index.js.map +1 -1
  127. package/lib/src/react/all-types-export.d.ts +1 -1
  128. package/lib/src/react/all-types-export.d.ts.map +1 -1
  129. package/lib/src/react/all-types-export.js +1 -1
  130. package/lib/src/react/all-types-export.js.map +1 -1
  131. package/lib/src/types.d.ts +250 -7
  132. package/lib/src/types.d.ts.map +1 -1
  133. package/lib/src/types.js +134 -1
  134. package/lib/src/types.js.map +1 -1
  135. package/package.json +1 -1
  136. package/src/api-intercept.spec.ts +23 -10
  137. package/src/api-intercept.ts +9 -4
  138. package/src/embed/app.spec.ts +146 -4
  139. package/src/embed/app.ts +69 -24
  140. package/src/embed/base.spec.ts +28 -0
  141. package/src/embed/base.ts +15 -0
  142. package/src/embed/conversation.spec.ts +39 -2
  143. package/src/embed/conversation.ts +28 -2
  144. package/src/embed/liveboard.spec.ts +136 -0
  145. package/src/embed/liveboard.ts +51 -4
  146. package/src/embed/ts-embed.spec.ts +107 -15
  147. package/src/embed/ts-embed.ts +56 -19
  148. package/src/errors.ts +7 -0
  149. package/src/index.ts +2 -0
  150. package/src/react/all-types-export.ts +1 -0
  151. package/src/types.ts +260 -6
@@ -1490,7 +1490,7 @@ export interface EmbedConfig {
1490
1490
  * {
1491
1491
  * name: 'customAction',
1492
1492
  * id: 'customAction',
1493
- * target: CustomActionTarget.VISUALIZATION,
1493
+ * target: CustomActionTarget.VIZ,
1494
1494
  * position: CustomActionPosition.PRIMARY,
1495
1495
  * }
1496
1496
  * }
@@ -1881,8 +1881,12 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1881
1881
  * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterEmbed`
1882
1882
  * @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
1883
1883
  * @example
1884
- * ```js
1885
- * import { CustomActionPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
1884
+ * ```ts
1885
+ * import {
1886
+ * CustomActionPayload,
1887
+ * CustomActionPosition,
1888
+ * CustomActionTarget,
1889
+ * } from '@thoughtspot/visual-embed-sdk';
1886
1890
  * // Use supported embed types such as AppEmbed or LiveboardEmbed
1887
1891
  * const embed = new LiveboardEmbed('#tsEmbed', {
1888
1892
  * ... // other embed config options
@@ -1890,12 +1894,17 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1890
1894
  * {
1891
1895
  * name: 'customAction',
1892
1896
  * id: 'customAction',
1893
- * target: CustomActionTarget.VISUALIZATION,
1897
+ * target: CustomActionTarget.VIZ,
1894
1898
  * position: CustomActionPosition.PRIMARY,
1895
1899
  * }
1896
1900
  * }
1897
1901
  * ]
1898
1902
  * })
1903
+ *
1904
+ * // to trigger a custom flow on custom action click listen to Custom action embed event
1905
+ * embed.on(EmbedEvent.CustomAction, (payload: CustomActionPayload) => {
1906
+ * console.log('Custom Action event:', payload);
1907
+ * })
1899
1908
  * ```
1900
1909
  */
1901
1910
  customActions?: CustomAction[];
@@ -2373,6 +2382,38 @@ export interface LiveboardAppEmbedViewConfig {
2373
2382
  * ```
2374
2383
  */
2375
2384
  isEnhancedFilterInteractivityEnabled?: boolean;
2385
+ /**
2386
+ * Show or hide masked filter chips
2387
+ *
2388
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2389
+ * @version SDK: 1.45.0 | Thoughtspot: 26.2.0.cl
2390
+ * @default false
2391
+ * @example
2392
+ * ```js
2393
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
2394
+ * const embed = new <EmbedComponent>('#tsEmbed', {
2395
+ * ... // other embed view config
2396
+ * showMaskedFilterChip: true,
2397
+ * })
2398
+ * ```
2399
+ */
2400
+ showMaskedFilterChip?: boolean;
2401
+ /**
2402
+ * Enable or disable Liveboard styling and grouping
2403
+ *
2404
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2405
+ * @version SDK: 1.45.0 | Thoughtspot: 26.2.0.cl
2406
+ * @default false
2407
+ * @example
2408
+ * ```js
2409
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
2410
+ * const embed = new <EmbedComponent>('#tsEmbed', {
2411
+ * ... // other embed view config
2412
+ * isLiveboardMasterpiecesEnabled: true,
2413
+ * })
2414
+ * ```
2415
+ */
2416
+ isLiveboardMasterpiecesEnabled?: boolean;
2376
2417
  }
2377
2418
  export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
2378
2419
  }
@@ -2784,6 +2825,7 @@ export declare enum EmbedEvent {
2784
2825
  * SearchEmbed.on(EmbedEvent.Error, (error) => {
2785
2826
  * console.log(error);
2786
2827
  * // { type: "Error", data: { errorType: "API", error: { message: '...', error: '...' } } }
2828
+ * // { errorType: "API", message: '...', code: '...' } new format
2787
2829
  * });
2788
2830
  * ```
2789
2831
  * @example
@@ -2795,6 +2837,7 @@ export declare enum EmbedEvent {
2795
2837
  * // message: "Fullscreen API is not enabled",
2796
2838
  * // stack: "..."
2797
2839
  * // } }}
2840
+ * // { errorType: "FULLSCREEN", message: "Fullscreen API is not enabled", code: '...' } new format
2798
2841
  * })
2799
2842
  * ```
2800
2843
  */
@@ -2950,7 +2993,8 @@ export declare enum EmbedEvent {
2950
2993
  */
2951
2994
  ALL = "*",
2952
2995
  /**
2953
- * Emitted when an Answer is saved in the app
2996
+ * Emitted when an Answer is saved in the app.
2997
+ * Use start:true to subscribe to when save is initiated, or end:true to subscribe to when save is completed. Default is end:true.
2954
2998
  * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2955
2999
  * @example
2956
3000
  *```js
@@ -2985,6 +3029,7 @@ export declare enum EmbedEvent {
2985
3029
  Download = "download",
2986
3030
  /**
2987
3031
  * Emitted when the download action is triggered on an Answer.
3032
+ * Use start:true to subscribe to when download is initiated, or end:true to subscribe to when download is completed. Default is end:true.
2988
3033
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
2989
3034
  * @example
2990
3035
  *```js
@@ -2999,6 +3044,7 @@ export declare enum EmbedEvent {
2999
3044
  DownloadAsPng = "downloadAsPng",
3000
3045
  /**
3001
3046
  * Emitted when the Download as PDF action is triggered on an Answer
3047
+ * Use start:true to subscribe to when download as PDF is initiated, or end:true to subscribe to when download as PDF is completed. Default is end:true.
3002
3048
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3003
3049
  * @example
3004
3050
  *```js
@@ -3013,6 +3059,7 @@ export declare enum EmbedEvent {
3013
3059
  DownloadAsPdf = "downloadAsPdf",
3014
3060
  /**
3015
3061
  * Emitted when the Download as CSV action is triggered on an Answer.
3062
+ * Use start:true to subscribe to when download as CSV is initiated, or end:true to subscribe to when download as CSV is completed. Default is end:true.
3016
3063
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3017
3064
  * @example
3018
3065
  *```js
@@ -3027,6 +3074,7 @@ export declare enum EmbedEvent {
3027
3074
  DownloadAsCsv = "downloadAsCsv",
3028
3075
  /**
3029
3076
  * Emitted when the Download as XLSX action is triggered on an Answer.
3077
+ * Use start:true to subscribe to when download as XLSX is initiated, or end:true to subscribe to when download as XLSX is completed. Default is end:true.
3030
3078
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3031
3079
  * @example
3032
3080
  *```js
@@ -3041,6 +3089,7 @@ export declare enum EmbedEvent {
3041
3089
  DownloadAsXlsx = "downloadAsXlsx",
3042
3090
  /**
3043
3091
  * Emitted when an Answer is deleted in the app
3092
+ * Use start:true to subscribe to when delete is initiated, or end:true to subscribe to when delete is completed. Default is end:true.
3044
3093
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3045
3094
  * @example
3046
3095
  *```js
@@ -3067,6 +3116,7 @@ export declare enum EmbedEvent {
3067
3116
  /**
3068
3117
  * Emitted when a user initiates the Pin action to
3069
3118
  * add an Answer to a Liveboard.
3119
+ * Use start:true to subscribe to when pin is initiated, or end:true to subscribe to when pin is completed. Default is end:true.
3070
3120
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3071
3121
  * @example
3072
3122
  *```js
@@ -3180,6 +3230,7 @@ export declare enum EmbedEvent {
3180
3230
  /**
3181
3231
  * Emitted when the **Export TML** action is triggered on an
3182
3232
  * an embedded object in the app
3233
+ * Use start:true to subscribe to when export is initiated, or end:true to subscribe to when export is completed. Default is end:true.
3183
3234
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3184
3235
  * @example
3185
3236
  *```js
@@ -3205,6 +3256,7 @@ export declare enum EmbedEvent {
3205
3256
  SaveAsView = "saveAsView",
3206
3257
  /**
3207
3258
  * Emitted when the user creates a copy of an Answer.
3259
+ * Use start:true to subscribe to when copy and edit is initiated, or end:true to subscribe to when copy and edit is completed. Default is end:true.
3208
3260
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3209
3261
  * @example
3210
3262
  *```js
@@ -6509,7 +6561,47 @@ export declare enum Action {
6509
6561
  * ```
6510
6562
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
6511
6563
  */
6512
- LiveboardStylePanel = "liveboardStylePanel"
6564
+ LiveboardStylePanel = "liveboardStylePanel",
6565
+ /**
6566
+ * The **Move to Group** menu action on a Liveboard.
6567
+ * Allows moving a visualization to a different group.
6568
+ * @example
6569
+ * ```js
6570
+ * disabledActions: [Action.MoveToGroup]
6571
+ * ```
6572
+ * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
6573
+ */
6574
+ MoveToGroup = "moveToGroup",
6575
+ /**
6576
+ * The **Move out of Group** menu action on a Liveboard.
6577
+ * Allows moving a visualization out of a group.
6578
+ * @example
6579
+ * ```js
6580
+ * disabledActions: [Action.MoveOutOfGroup]
6581
+ * ```
6582
+ * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
6583
+ */
6584
+ MoveOutOfGroup = "moveOutOfGroup",
6585
+ /**
6586
+ * The **Create Group** menu action on a Liveboard.
6587
+ * Allows creating a new group.
6588
+ * @example
6589
+ * ```js
6590
+ * disabledActions: [Action.CreateGroup]
6591
+ * ```
6592
+ * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
6593
+ */
6594
+ CreateGroup = "createGroup",
6595
+ /**
6596
+ * The **Ungroup Liveboard Group** menu action on a Liveboard.
6597
+ * Allows ungrouping a liveboard group.
6598
+ * @example
6599
+ * ```js
6600
+ * disabledActions: [Action.UngroupLiveboardGroup]
6601
+ * ```
6602
+ * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
6603
+ */
6604
+ UngroupLiveboardGroup = "ungroupLiveboardGroup"
6513
6605
  }
6514
6606
  export declare enum PrefetchFeatures {
6515
6607
  FullApp = "FullApp",
@@ -6652,6 +6744,109 @@ declare enum LogLevel {
6652
6744
  */
6653
6745
  TRACE = "TRACE"
6654
6746
  }
6747
+ declare enum ErrorDetailsTypes {
6748
+ /** API call failure */
6749
+ API = "API",
6750
+ /** General validation error */
6751
+ VALIDATION_ERROR = "VALIDATION_ERROR",
6752
+ /** Network connectivity or request error */
6753
+ NETWORK = "NETWORK"
6754
+ }
6755
+ declare enum EmbedErrorCodes {
6756
+ /** Worksheet ID not found or does not exist */
6757
+ WORKSHEET_ID_NOT_FOUND = "WORKSHEET_ID_NOT_FOUND",
6758
+ /** Required Liveboard ID is missing from configuration */
6759
+ LIVEBOARD_ID_MISSING = "LIVEBOARD_ID_MISSING",
6760
+ /** Conflicting action configuration detected (e.g., both hiddenActions and visibleActions specified) */
6761
+ CONFLICTING_ACTIONS_CONFIG = "CONFLICTING_ACTIONS_CONFIG",
6762
+ /** Conflicting tab configuration detected (e.g., both hiddenTabs and visibleTabs specified) */
6763
+ CONFLICTING_TABS_CONFIG = "CONFLICTING_TABS_CONFIG",
6764
+ /** Error during component initialization */
6765
+ INIT_ERROR = "INIT_ERROR",
6766
+ /** Network connectivity or request error */
6767
+ NETWORK_ERROR = "NETWORK_ERROR",
6768
+ /** Custom action validation failed */
6769
+ CUSTOM_ACTION_VALIDATION = "CUSTOM_ACTION_VALIDATION",
6770
+ /** Authentication/login failed */
6771
+ LOGIN_FAILED = "LOGIN_FAILED",
6772
+ /** Render method was not called before attempting to use the component */
6773
+ RENDER_NOT_CALLED = "RENDER_NOT_CALLED",
6774
+ /** Host event type is undefined or invalid */
6775
+ HOST_EVENT_TYPE_UNDEFINED = "HOST_EVENT_TYPE_UNDEFINED",
6776
+ /** Error parsing api intercept body */
6777
+ PARSING_API_INTERCEPT_BODY_ERROR = "PARSING_API_INTERCEPT_BODY_ERROR"
6778
+ }
6779
+ /**
6780
+ * Error event object emitted when an error occurs in an embedded component.
6781
+ *
6782
+ * This interface defines the structure of error objects returned by the {@link EmbedEvent.Error}
6783
+ * event. It provides detailed information about what went wrong, including the error type,
6784
+ * a human-readable message, and a machine-readable error code.
6785
+ *
6786
+ * ## Properties
6787
+ *
6788
+ * - **errorType**: One of the predefined {@link ErrorDetailsTypes} values
6789
+ * - **message**: Human-readable error description (string or array of strings for multiple errors)
6790
+ * - **code**: Machine-readable error identifier for programmatic handling
6791
+ * - **[key: string]**: Additional context-specific for backward compatibility
6792
+ *
6793
+ * ## Usage
6794
+ *
6795
+ * Listen to the {@link EmbedEvent.Error} event to receive instances of this object
6796
+ * and implement appropriate error handling logic based on the `errorType`.
6797
+ *
6798
+ * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
6799
+ * @group Error Handling
6800
+ * @see {@link ErrorDetailsTypes} - Available error type values
6801
+ * @see {@link EmbedEvent.Error} - The event that emits this object
6802
+ *
6803
+ * @example
6804
+ * Handle specific error types
6805
+ *
6806
+ * embed.on(EmbedEvent.Error, (error) => {
6807
+ * switch (error.code) {
6808
+ * case EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND:
6809
+ * console.error('Worksheet ID not found:', error.message, error.code);
6810
+ * break;
6811
+ * default:
6812
+ * console.error('Unknown error:', error);
6813
+ * }
6814
+ * });
6815
+ * *
6816
+ * @example
6817
+ * Handle multiple error messages
6818
+ *
6819
+ * embed.on(EmbedEvent.Error, (error) => {
6820
+ * const messages = Array.isArray(error.message)
6821
+ * ? error.message
6822
+ * : [error.message];
6823
+ *
6824
+ * messages.forEach(msg => console.error(msg));
6825
+ * });
6826
+ * *
6827
+ * @example
6828
+ * Access additional error context
6829
+ *
6830
+ * embed.on(EmbedEvent.Error, (error) => {
6831
+ * console.error('Error Details:', {
6832
+ * type: error.errorType,
6833
+ * message: error.message,
6834
+ * code: error.code,
6835
+ * // Additional context fields vary by error type
6836
+ * ...error
6837
+ * });
6838
+ * });
6839
+ * */
6840
+ export interface EmbedErrorDetailsEvent {
6841
+ /** The type of error that occurred */
6842
+ errorType: ErrorDetailsTypes;
6843
+ /** Human-readable error message(s) describing what went wrong */
6844
+ message: string | string[];
6845
+ /** Machine-readable error code for programmatic error handling */
6846
+ code: EmbedErrorCodes;
6847
+ /** Additional context-specific for backward compatibility */
6848
+ [key: string]: any;
6849
+ }
6655
6850
  export interface DefaultAppInitData {
6656
6851
  customisations: CustomisationsInterface;
6657
6852
  authToken: string;
@@ -7017,8 +7212,9 @@ declare class TsEmbed {
7017
7212
  /**
7018
7213
  * Handles errors within the SDK
7019
7214
  * @param error The error message or object
7215
+ * @param errorDetails The error details
7020
7216
  */
7021
- protected handleError(error: string | Record<string, unknown>): void;
7217
+ protected handleError(errorDetails: EmbedErrorDetailsEvent): void;
7022
7218
  /**
7023
7219
  * Extracts the type field from the event payload
7024
7220
  * @param event The window message event
@@ -8529,6 +8725,38 @@ export interface AppViewConfig extends AllEmbedViewConfig {
8529
8725
  * @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
8530
8726
  */
8531
8727
  lazyLoadingMargin?: string;
8728
+ /**
8729
+ * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
8730
+ *
8731
+ * Supported embed types: `AppEmbed`
8732
+ * @default false
8733
+ * @example
8734
+ * ```js
8735
+ * const embed = new AppEmbed('#tsEmbed', {
8736
+ * ... //other embed view config
8737
+ * updatedSpotterChatPrompt : true,
8738
+ * })
8739
+ * ```
8740
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
8741
+ */
8742
+ updatedSpotterChatPrompt?: boolean;
8743
+ /**
8744
+ * This is the minimum height (in pixels) for a full-height App.
8745
+ * Setting this height helps resolve issues with empty Apps and
8746
+ * other screens navigable from an App.
8747
+ *
8748
+ * @version SDK: 1.44.2 | ThoughtSpot: 26.0.2.cl
8749
+ * @default 500
8750
+ * @example
8751
+ * ```js
8752
+ * const embed = new AppEmbed('#embed', {
8753
+ * ... // other app view config
8754
+ * fullHeight: true,
8755
+ * minimumHeight: 600,
8756
+ * });
8757
+ * ```
8758
+ */
8759
+ minimumHeight?: number;
8532
8760
  }
8533
8761
  declare class AppEmbed extends V1Embed {
8534
8762
  protected viewConfig: AppViewConfig;
@@ -8635,6 +8863,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
8635
8863
  * Supported embed types: `LiveboardEmbed`
8636
8864
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
8637
8865
  * @default 500
8866
+ * @deprecated Use `minimumHeight` instead.
8638
8867
  * @example
8639
8868
  * ```js
8640
8869
  * const embed = new LiveboardEmbed('#embed', {
@@ -8645,6 +8874,23 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
8645
8874
  * ```
8646
8875
  */
8647
8876
  defaultHeight?: number;
8877
+ /**
8878
+ * This is the minimum height (in pixels) for a full-height Liveboard.
8879
+ * Setting this height helps resolve issues with empty Liveboards and
8880
+ * other screens navigable from a Liveboard.
8881
+ *
8882
+ * @version SDK: 1.44.2 | ThoughtSpot: 26.0.2.cl
8883
+ * @default 500
8884
+ * @example
8885
+ * ```js
8886
+ * const embed = new LiveboardEmbed('#embed', {
8887
+ * ... // other liveboard view config
8888
+ * fullHeight: true,
8889
+ * minimumHeight: 600,
8890
+ * });
8891
+ * ```
8892
+ */
8893
+ minimumHeight?: number;
8648
8894
  /**
8649
8895
  * @Deprecated If set to true, the context menu in visualizations will be enabled.
8650
8896
  * @example
@@ -8964,6 +9210,21 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
8964
9210
  * @version SDK: 1.41.1 | ThoughtSpot: 10.5.0.cl
8965
9211
  */
8966
9212
  showSpotterLimitations?: boolean;
9213
+ /**
9214
+ * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
9215
+ *
9216
+ * Supported embed types: `LiveboardEmbed`
9217
+ * @default false
9218
+ * @example
9219
+ * ```js
9220
+ * const embed = new LiveboardEmbed('#tsEmbed', {
9221
+ * ... //other embed view config
9222
+ * updatedSpotterChatPrompt : true,
9223
+ * })
9224
+ * ```
9225
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
9226
+ */
9227
+ updatedSpotterChatPrompt?: boolean;
8967
9228
  }
8968
9229
  declare class LiveboardEmbed extends V1Embed {
8969
9230
  protected viewConfig: LiveboardViewConfig;
@@ -9251,6 +9512,21 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
9251
9512
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
9252
9513
  */
9253
9514
  enablePastConversationsSidebar?: boolean;
9515
+ /**
9516
+ * updatedSpotterChatPrompt : Controls the updated spotter chat prompt.
9517
+ *
9518
+ * Supported embed types: `SpotterEmbed`
9519
+ * @default false
9520
+ * @example
9521
+ * ```js
9522
+ * const embed = new SpotterEmbed('#tsEmbed', {
9523
+ * ... //other embed view config
9524
+ * updatedSpotterChatPrompt : true,
9525
+ * })
9526
+ * ```
9527
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
9528
+ */
9529
+ updatedSpotterChatPrompt?: boolean;
9254
9530
  }
9255
9531
  /**
9256
9532
  * The configuration for the embedded spotterEmbed options.
@@ -9317,6 +9593,13 @@ export declare const init: (embedConfig: EmbedConfig) => AuthEventEmitter;
9317
9593
  * @group Global methods
9318
9594
  */
9319
9595
  export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolean>;
9596
+ /**
9597
+ * Reloads the ThoughtSpot iframe.
9598
+ * @param iFrame
9599
+ * @group Global methods
9600
+ * @version SDK: 1.43.1
9601
+ */
9602
+ export declare const reloadIframe: (iFrame: HTMLIFrameElement) => void;
9320
9603
  export type SessionInfo = {
9321
9604
  releaseVersion: string;
9322
9605
  userGUID: string;