@thoughtspot/visual-embed-sdk 1.45.3 → 1.46.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 (81) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +2 -2
  3. package/cjs/src/auth.d.ts +35 -2
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +36 -3
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/embed/app.d.ts +1 -1
  8. package/cjs/src/embed/app.d.ts.map +1 -1
  9. package/cjs/src/embed/app.js +6 -6
  10. package/cjs/src/embed/app.js.map +1 -1
  11. package/cjs/src/embed/app.spec.js +87 -119
  12. package/cjs/src/embed/app.spec.js.map +1 -1
  13. package/cjs/src/embed/conversation.d.ts +1 -1
  14. package/cjs/src/embed/liveboard.d.ts +2 -2
  15. package/cjs/src/embed/liveboard.js +2 -2
  16. package/cjs/src/embed/search.d.ts +3 -2
  17. package/cjs/src/embed/search.d.ts.map +1 -1
  18. package/cjs/src/embed/search.js +3 -2
  19. package/cjs/src/embed/search.js.map +1 -1
  20. package/cjs/src/embed/ts-embed.d.ts +1 -1
  21. package/cjs/src/embed/ts-embed.js +1 -1
  22. package/cjs/src/react/index.d.ts +1 -1
  23. package/cjs/src/types.d.ts +408 -66
  24. package/cjs/src/types.d.ts.map +1 -1
  25. package/cjs/src/types.js +116 -52
  26. package/cjs/src/types.js.map +1 -1
  27. package/dist/{index-BuwECGdm.js → index-Vyh6Ha5f.js} +1 -1
  28. package/dist/src/auth.d.ts +35 -2
  29. package/dist/src/auth.d.ts.map +1 -1
  30. package/dist/src/embed/app.d.ts +1 -1
  31. package/dist/src/embed/app.d.ts.map +1 -1
  32. package/dist/src/embed/conversation.d.ts +1 -1
  33. package/dist/src/embed/liveboard.d.ts +2 -2
  34. package/dist/src/embed/search.d.ts +3 -2
  35. package/dist/src/embed/search.d.ts.map +1 -1
  36. package/dist/src/embed/ts-embed.d.ts +1 -1
  37. package/dist/src/react/index.d.ts +1 -1
  38. package/dist/src/types.d.ts +408 -66
  39. package/dist/src/types.d.ts.map +1 -1
  40. package/dist/tsembed-react.es.js +167 -69
  41. package/dist/tsembed-react.js +166 -68
  42. package/dist/tsembed.es.js +167 -69
  43. package/dist/tsembed.js +166 -68
  44. package/dist/visual-embed-sdk-react-full.d.ts +446 -71
  45. package/dist/visual-embed-sdk-react.d.ts +439 -67
  46. package/dist/visual-embed-sdk.d.ts +445 -70
  47. package/lib/package.json +2 -2
  48. package/lib/src/auth.d.ts +35 -2
  49. package/lib/src/auth.d.ts.map +1 -1
  50. package/lib/src/auth.js +36 -3
  51. package/lib/src/auth.js.map +1 -1
  52. package/lib/src/embed/app.d.ts +1 -1
  53. package/lib/src/embed/app.d.ts.map +1 -1
  54. package/lib/src/embed/app.js +6 -6
  55. package/lib/src/embed/app.js.map +1 -1
  56. package/lib/src/embed/app.spec.js +87 -119
  57. package/lib/src/embed/app.spec.js.map +1 -1
  58. package/lib/src/embed/conversation.d.ts +1 -1
  59. package/lib/src/embed/liveboard.d.ts +2 -2
  60. package/lib/src/embed/liveboard.js +2 -2
  61. package/lib/src/embed/search.d.ts +3 -2
  62. package/lib/src/embed/search.d.ts.map +1 -1
  63. package/lib/src/embed/search.js +3 -2
  64. package/lib/src/embed/search.js.map +1 -1
  65. package/lib/src/embed/ts-embed.d.ts +1 -1
  66. package/lib/src/embed/ts-embed.js +1 -1
  67. package/lib/src/react/index.d.ts +1 -1
  68. package/lib/src/types.d.ts +408 -66
  69. package/lib/src/types.d.ts.map +1 -1
  70. package/lib/src/types.js +116 -52
  71. package/lib/src/types.js.map +1 -1
  72. package/package.json +2 -2
  73. package/src/auth.ts +36 -3
  74. package/src/embed/app.spec.ts +171 -211
  75. package/src/embed/app.ts +16 -11
  76. package/src/embed/conversation.ts +1 -1
  77. package/src/embed/liveboard.ts +2 -2
  78. package/src/embed/search.ts +3 -2
  79. package/src/embed/ts-embed.ts +1 -1
  80. package/src/react/index.tsx +1 -1
  81. package/src/types.ts +409 -67
@@ -1549,18 +1549,154 @@ export interface EmbedConfig {
1549
1549
  * @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
1550
1550
  * @example
1551
1551
  * ```js
1552
- * import { CustomActionPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
1552
+ * import { CustomActionsPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
1553
1553
  * init({
1554
1554
  * ... // other embed config options
1555
1555
  * customActions: [
1556
1556
  * {
1557
- * name: 'customAction',
1558
- * id: 'customAction',
1557
+ * // Unique identifier for the custom action
1558
+ * id: 'my-custom-action',
1559
+ *
1560
+ * // Display name shown to users in the UI
1561
+ * name: 'My Custom Action',
1562
+ *
1563
+ * // Where the action appears in the UI
1564
+ * // PRIMARY: Shows as a primary button (e.g., in the toolbar)
1565
+ * // MENU: Shows in the "More" menu (three dots menu)
1566
+ * // CONTEXTMENU: Shows in the right-click context menu
1567
+ * position: CustomActionsPosition.PRIMARY,
1568
+ *
1569
+ * // What type of content this action applies to
1570
+ * // ANSWER: Available on answer pages
1571
+ * target: CustomActionTarget.ANSWER,
1572
+ *
1573
+ * // Optional: Restrict where this action appears based on data models
1574
+ * // dataModelIds: {
1575
+ * // // Restrict to specific data models
1576
+ * // modelIds: ['model-id-1', 'model-id-2'],
1577
+ * // // Restrict to specific columns within models
1578
+ * // modelColumnNames: ['model-id::column-name']
1579
+ * // },
1580
+ *
1581
+ * // Optional: Restrict where this action appears based on metadata
1582
+ * // metadataIds: {
1583
+ * // // Restrict to specific answers
1584
+ * // answerIds: ['answer-id-1', 'answer-id-2'],
1585
+ * // },
1586
+ * // // Restrict to specific groups (for group-based access control)
1587
+ * // groupIds: ['group-id-1', 'group-id-2'],
1588
+ * // // Restrict to specific organizations (for multi-org deployments)
1589
+ * // orgIds: ['org-id-1', 'org-id-2'],
1590
+ * }
1591
+ * ],
1592
+ * })
1593
+ * ```
1594
+ * @example
1595
+ * ```js
1596
+ * import { CustomActionsPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
1597
+ * init({
1598
+ * ... // other embed config options
1599
+ * customActions: [
1600
+ * {
1601
+ * // Unique identifier for the custom action
1602
+ * id: 'my-custom-action',
1603
+ *
1604
+ * // Display name shown to users in the UI
1605
+ * name: 'My Custom Action',
1606
+ *
1607
+ * // Where the action appears in the UI
1608
+ * // MENU: Shows in the "More" menu (three dots menu)
1609
+ * // CONTEXTMENU: Shows in the right-click context menu
1610
+ * position: CustomActionsPosition.MENU,
1611
+ *
1612
+ * // What type of content this action applies to
1613
+ * // SPOTTER: Available in Spotter (AI-powered search)
1614
+ * target: CustomActionTarget.SPOTTER,
1615
+ *
1616
+ * // Optional: Restrict where this action appears based on data models
1617
+ * // dataModelIds: {
1618
+ * // // Restrict to specific data models
1619
+ * // modelIds: ['model-id-1', 'model-id-2'],
1620
+ * // },
1621
+ * // // Restrict to specific groups (for group-based access control)
1622
+ * // groupIds: ['group-id-1'],
1623
+ * // // Restrict to specific organizations (for multi-org deployments)
1624
+ * // orgIds: ['org-id-1'],
1625
+ * }
1626
+ * ],
1627
+ * })
1628
+ * ```
1629
+ * @example
1630
+ * ```js
1631
+ * import { CustomActionsPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
1632
+ * init({
1633
+ * ... // other embed config options
1634
+ * customActions: [
1635
+ * {
1636
+ * // Unique identifier for the custom action
1637
+ * id: 'my-liveboard-custom-action',
1638
+ *
1639
+ * // Display name shown to users in the UI
1640
+ * name: 'My Liveboard Custom Action',
1641
+ *
1642
+ * // Where the action appears in the UI
1643
+ * // PRIMARY: Shows as a primary button (e.g., in the toolbar)
1644
+ * // MENU: Shows in the "More" menu (three dots menu)
1645
+ * position: CustomActionsPosition.PRIMARY,
1646
+ *
1647
+ * // What type of content this action applies to
1648
+ * // LIVEBOARD: Available on liveboard pages
1649
+ * target: CustomActionTarget.LIVEBOARD,
1650
+ *
1651
+ * // Optional: Restrict where this action appears based on metadata
1652
+ * // metadataIds: {
1653
+ * // // Restrict to specific liveboards
1654
+ * // liveboardIds: ['liveboard-id-1', 'liveboard-id-2'],
1655
+ * // },
1656
+ * // // Restrict to specific groups (for group-based access control)
1657
+ * // groupIds: ['group-id-1', 'group-id-2'],
1658
+ * // // Restrict to specific organizations (for multi-org deployments)
1659
+ * // orgIds: ['org-id-1', 'org-id-2'],
1660
+ * },
1661
+ * {
1662
+ * // Unique identifier for the custom action
1663
+ * id: 'my-viz-custom-action',
1664
+ *
1665
+ * // Display name shown to users in the UI
1666
+ * name: 'My Viz Custom Action',
1667
+ *
1668
+ * // Where the action appears in the UI
1669
+ * // PRIMARY: Shows as a primary button (e.g., in the toolbar)
1670
+ * // MENU: Shows in the "More" menu (three dots menu)
1671
+ * // CONTEXTMENU: Shows in the right-click context menu
1672
+ * position: CustomActionsPosition.PRIMARY,
1673
+ *
1674
+ * // What type of content this action applies to
1675
+ * // VIZ: Available on individual visualizations
1559
1676
  * target: CustomActionTarget.VIZ,
1560
- * position: CustomActionPosition.PRIMARY,
1561
- * }
1677
+ *
1678
+ * // Optional: Restrict where this action appears based on metadata
1679
+ * // metadataIds: {
1680
+ * // // Restrict to specific answers
1681
+ * // answerIds: ['answer-id-1', 'answer-id-2'],
1682
+ * // // Restrict to specific liveboard. If liveboardId is
1683
+ * // // passed, custom actions will appear on all vizzes of liveboard
1684
+ * // liveboardIds: ['liveboard-id-1'],
1685
+ * // // Restrict to specific vizIds
1686
+ * // vizIds: ['viz-id-1']
1687
+ * // },
1688
+ * // dataModelIds: {
1689
+ * // // Restrict to specific data models
1690
+ * // modelIds: ['model-id-1', 'model-id-2'],
1691
+ * // // Restrict to specific columns within models
1692
+ * // modelColumnNames: ['model-id::column-name']
1693
+ * // },
1694
+ * // // Restrict to specific groups (for group-based access control)
1695
+ * // groupIds: ['group-id-1', 'group-id-2'],
1696
+ * // // Restrict to specific organizations (for multi-org deployments)
1697
+ * // orgIds: ['org-id-1', 'org-id-2'],
1562
1698
  * }
1563
- * ]
1699
+ * ],
1564
1700
  * })
1565
1701
  * ```
1566
1702
  */
@@ -1950,7 +2086,7 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1950
2086
  * ```ts
1951
2087
  * import {
1952
2088
  * CustomActionPayload,
1953
- * CustomActionPosition,
2089
+ * CustomActionsPosition,
1954
2090
  * CustomActionTarget,
1955
2091
  * } from '@thoughtspot/visual-embed-sdk';
1956
2092
  * // Use supported embed types such as AppEmbed or LiveboardEmbed
@@ -1958,13 +2094,41 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1958
2094
  * ... // other embed config options
1959
2095
  * customActions: [
1960
2096
  * {
1961
- * name: 'customAction',
1962
- * id: 'customAction',
1963
- * target: CustomActionTarget.VIZ,
1964
- * position: CustomActionPosition.PRIMARY,
1965
- * }
2097
+ * // Unique identifier for the custom action
2098
+ * id: 'my-custom-action',
2099
+ *
2100
+ * // Display name shown to users in the UI
2101
+ * name: 'My Custom Action',
2102
+ *
2103
+ * // Where the action appears in the UI
2104
+ * // PRIMARY: Shows as a primary button (e.g., in the toolbar)
2105
+ * // MENU: Shows in the "More" menu (three dots menu)
2106
+ * // CONTEXTMENU: Shows in the right-click context menu
2107
+ * position: CustomActionsPosition.PRIMARY,
2108
+ *
2109
+ * // What type of content this action applies to
2110
+ * // ANSWER: Available on answer pages
2111
+ * target: CustomActionTarget.ANSWER,
2112
+ *
2113
+ * // Optional: Restrict where this action appears based on data models
2114
+ * // dataModelIds: {
2115
+ * // // Restrict to specific data models
2116
+ * // modelIds: ['model-id-1', 'model-id-2'],
2117
+ * // // Restrict to specific columns within models
2118
+ * // modelColumnNames: ['model-id::column-name']
2119
+ * // },
2120
+ *
2121
+ * // Optional: Restrict where this action appears based on metadata
2122
+ * // metadataIds: {
2123
+ * // // Restrict to specific answers
2124
+ * // answerIds: ['answer-id-1', 'answer-id-2'],
2125
+ * // },
2126
+ * // // Restrict to specific groups (for group-based access control)
2127
+ * // groupIds: ['group-id-1', 'group-id-2'],
2128
+ * // // Restrict to specific organizations (for multi-org deployments)
2129
+ * // orgIds: ['org-id-1', 'org-id-2'],
1966
2130
  * }
1967
- * ]
2131
+ * ],
1968
2132
  * })
1969
2133
  *
1970
2134
  * // to trigger a custom flow on custom action click listen to Custom action embed event
@@ -1972,6 +2136,120 @@ export interface BaseViewConfig extends ApiInterceptFlags {
1972
2136
  * console.log('Custom Action event:', payload);
1973
2137
  * })
1974
2138
  * ```
2139
+ * @example
2140
+ * ```ts
2141
+ * import {
2142
+ * CustomActionsPosition,
2143
+ * CustomActionTarget,
2144
+ * } from '@thoughtspot/visual-embed-sdk';
2145
+ * const embed = new LiveboardEmbed('#tsEmbed', {
2146
+ * ... // other embed config options
2147
+ * customActions: [
2148
+ * {
2149
+ * // Unique identifier for the custom action
2150
+ * id: 'my-custom-action',
2151
+ *
2152
+ * // Display name shown to users in the UI
2153
+ * name: 'My Custom Action',
2154
+ *
2155
+ * // Where the action appears in the UI
2156
+ * // MENU: Shows in the "More" menu (three dots menu)
2157
+ * // CONTEXTMENU: Shows in the right-click context menu
2158
+ * position: CustomActionsPosition.MENU,
2159
+ *
2160
+ * // What type of content this action applies to
2161
+ * // SPOTTER: Available in Spotter (AI-powered search)
2162
+ * target: CustomActionTarget.SPOTTER,
2163
+ *
2164
+ * // Optional: Restrict where this action appears based on data models
2165
+ * // dataModelIds: {
2166
+ * // // Restrict to specific data models
2167
+ * // modelIds: ['model-id-1', 'model-id-2'],
2168
+ * // },
2169
+ * // // Restrict to specific groups (for group-based access control)
2170
+ * // groupIds: ['group-id-1'],
2171
+ * // // Restrict to specific organizations (for multi-org deployments)
2172
+ * // orgIds: ['org-id-1'],
2173
+ * }
2174
+ * ],
2175
+ * })
2176
+ * ```
2177
+ * @example
2178
+ * ```ts
2179
+ * import {
2180
+ * CustomActionsPosition,
2181
+ * CustomActionTarget,
2182
+ * } from '@thoughtspot/visual-embed-sdk';
2183
+ * const embed = new LiveboardEmbed('#tsEmbed', {
2184
+ * ... // other embed config options
2185
+ * customActions: [
2186
+ * {
2187
+ * // Unique identifier for the custom action
2188
+ * id: 'my-liveboard-custom-action',
2189
+ *
2190
+ * // Display name shown to users in the UI
2191
+ * name: 'My Liveboard Custom Action',
2192
+ *
2193
+ * // Where the action appears in the UI
2194
+ * // PRIMARY: Shows as a primary button (e.g., in the toolbar)
2195
+ * // MENU: Shows in the "More" menu (three dots menu)
2196
+ * position: CustomActionsPosition.PRIMARY,
2197
+ *
2198
+ * // What type of content this action applies to
2199
+ * // LIVEBOARD: Available on liveboard pages
2200
+ * target: CustomActionTarget.LIVEBOARD,
2201
+ *
2202
+ * // Optional: Restrict where this action appears based on metadata
2203
+ * // metadataIds: {
2204
+ * // // Restrict to specific liveboards
2205
+ * // liveboardIds: ['liveboard-id-1', 'liveboard-id-2'],
2206
+ * // },
2207
+ * // // Restrict to specific groups (for group-based access control)
2208
+ * // groupIds: ['group-id-1', 'group-id-2'],
2209
+ * // // Restrict to specific organizations (for multi-org deployments)
2210
+ * // orgIds: ['org-id-1', 'org-id-2'],
2211
+ * },
2212
+ * {
2213
+ * // Unique identifier for the custom action
2214
+ * id: 'my-viz-custom-action',
2215
+ *
2216
+ * // Display name shown to users in the UI
2217
+ * name: 'My Viz Custom Action',
2218
+ *
2219
+ * // Where the action appears in the UI
2220
+ * // PRIMARY: Shows as a primary button (e.g., in the toolbar)
2221
+ * // MENU: Shows in the "More" menu (three dots menu)
2222
+ * // CONTEXTMENU: Shows in the right-click context menu
2223
+ * position: CustomActionsPosition.PRIMARY,
2224
+ *
2225
+ * // What type of content this action applies to
2226
+ * // VIZ: Available on individual visualizations
2227
+ * target: CustomActionTarget.VIZ,
2228
+ *
2229
+ * // Optional: Restrict where this action appears based on metadata
2230
+ * // metadataIds: {
2231
+ * // // Restrict to specific answers
2232
+ * // answerIds: ['answer-id-1', 'answer-id-2'],
2233
+ * // // Restrict to specific liveboard. If liveboardId is
2234
+ * // // passed, custom actions will appear on all vizzes of liveboard
2235
+ * // liveboardIds: ['liveboard-id-1'],
2236
+ * // // Restrict to specific vizIds
2237
+ * // vizIds: ['viz-id-1']
2238
+ * // },
2239
+ * // dataModelIds: {
2240
+ * // // Restrict to specific data models
2241
+ * // modelIds: ['model-id-1', 'model-id-2'],
2242
+ * // // Restrict to specific columns within models
2243
+ * // modelColumnNames: ['model-id::column-name']
2244
+ * // },
2245
+ * // // Restrict to specific groups (for group-based access control)
2246
+ * // groupIds: ['group-id-1', 'group-id-2'],
2247
+ * // // Restrict to specific organizations (for multi-org deployments)
2248
+ * // orgIds: ['org-id-1', 'org-id-2'],
2249
+ * }
2250
+ * ],
2251
+ * })
2252
+ * ```
1975
2253
  */
1976
2254
  customActions?: CustomAction[];
1977
2255
  /**
@@ -2210,7 +2488,7 @@ export interface SearchLiveboardCommonViewConfig {
2210
2488
  *
2211
2489
  * Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
2212
2490
  * @default true
2213
- * @version SDK: 1.41.1 | ThoughtSpot Cloud: 10.14.0.cl
2491
+ * @deprecated from SDK 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
2214
2492
  * @example
2215
2493
  * ```js
2216
2494
  * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
@@ -3653,65 +3931,67 @@ export declare enum EmbedEvent {
3653
3931
  Rename = "rename",
3654
3932
  /**
3655
3933
  *
3656
- * This event can be emitted to intercept search execution initiated by
3657
- * users and implement logic to allow or restrict search execution.
3658
- * You can also show custom error text if the search query must be
3659
- * restricted due to your application or business requirements.
3660
-
3661
- * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
3662
- * for this embed event to get emitted.
3663
- * @param - Includes the following event listener parameters:
3664
- * - `payload`: The payload received from the embed related to the Data API call.
3665
- * - `responder`: Contains elements that let developers define whether ThoughtSpot
3666
- * should run the search, and if not, what error message
3667
- * should be shown to the user.
3668
- *
3669
- * `execute` - When `execute` returns `true`, the search will be run.
3670
- * When `execute` returns `false`, the search will not be executed.
3934
+ * This event allows developers to intercept search execution
3935
+ * and implement logic that decides whether Search Data should return
3936
+ * data or block the search operation.
3671
3937
  *
3672
- * `error` - Developers can customize the error message text when `execute`
3673
- * is `false` using the `errorText` and `errorDescription` parameters in responder.
3938
+ * **Prerequisite**: Set`isOnBeforeGetVizDataInterceptEnabled` to `true`
3939
+ * to ensure that `EmbedEvent.OnBeforeGetVizDataIntercept` is emitted
3940
+ * when the embedding application user tries to run a search query.
3674
3941
  *
3675
- * `errorText` - The error message text to be shown to the user.
3676
- * `errorDescription (ThoughtSpot: 10.15.0.cl and above)` - The error description to be shown to the user.
3942
+ * This framework applies only to `AppEmbed` and `SearchEmbed`.
3943
+ * @param - Includes the following parameters:
3944
+ * - `payload`: The payload received from the embed related to the Data API call.
3945
+ * - `responder`: Contains elements that let developers define whether ThoughtSpot
3946
+ * will run or block the search operation, and if blocked, which error message to provide.
3947
+ * - `execute` - When `execute` returns `true`, the search is run.
3948
+ * When `execute` returns `false`, the search is not executed.
3949
+ * - `error` - Developers can customize the user-facing error message when `execute`
3950
+ * is `false` by using the `error` parameters in `responder`.
3951
+ * - `errorText` - The error message text shown to the user.
3677
3952
  * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
3678
3953
  * @example
3679
- *```js
3680
- * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
3681
- * (payload, responder) => {
3682
- * responder({
3683
- * data: {
3684
- * execute:false,
3685
- * error: {
3686
- * //Provide a custom error message to explain to your end user
3687
- * //why their search did not run
3688
- * errorText: "This search query cannot be run.
3689
- * Please contact your administrator for more details."
3690
- * }
3691
- * }})
3954
+ *
3955
+ * This example blocks search operation and returns a custom error message:
3956
+ * ```js
3957
+ * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
3958
+ * responder({
3959
+ * data: {
3960
+ * execute: false,
3961
+ * error: {
3962
+ * // Provide a custom error message to explain why the search did not run.
3963
+ * errorText: 'This search query cannot be run. Please contact your administrator for more details.',
3964
+ * },
3965
+ * },
3966
+ * });
3692
3967
  * })
3693
3968
  * ```
3969
+ * @example
3694
3970
  *
3695
- *```js
3696
- * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
3697
- * (payload, responder) => {
3698
- * const query = payload.data.data.answer.search_query
3699
- * responder({
3700
- * data: {
3701
- * // returns true as long as the query does not include
3702
- * // both the 'sales' AND the 'county' column
3703
- * execute: !(query.includes("sales")&&query.includes("county")),
3704
- * error: {
3705
- * //Provide a custom error message to explain to your end user
3706
- * // why their search did not run, and which searches are accepted by your custom logic.
3707
- * errorText: "Error Occurred",
3708
- * errorDescription: "You can't use this query :" + query + ".
3709
- * The 'sales' measures can never be used at the 'county' level.
3710
- * Please try another measure, or remove 'county' from your search."
3711
- * }
3712
- * }})
3971
+ * This example allows the search operation to run
3972
+ * unless the query contains both `sales` and `county`,
3973
+ * and returns a custom error message if the query is rejected:
3974
+ * ```js
3975
+ * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
3976
+ * // Record the search query submitted by the end user.
3977
+ * const query = payload.data.data.answer.search_query;
3978
+ *
3979
+ * responder({
3980
+ * data: {
3981
+ * // Returns true as long as the query does not include both `sales` and `county`.
3982
+ * execute: !(query.includes('sales') && query.includes('county')),
3983
+ * error: {
3984
+ * // Provide a custom error message when the query is blocked by your logic.
3985
+ * errorText:
3986
+ * "You can't use this query: "
3987
+ * + query
3988
+ * + ". The 'sales' measure can never be used at the 'county' level. "
3989
+ * + "Please try another measure or remove 'county' from your search.",
3990
+ * },
3991
+ * },
3992
+ * });
3713
3993
  * })
3714
- *```
3994
+ * ```
3715
3995
  */
3716
3996
  OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
3717
3997
  /**
@@ -7034,17 +7314,79 @@ export interface CustomAction {
7034
7314
  * positions in the application.
7035
7315
  */
7036
7316
  export declare enum CustomActionsPosition {
7317
+ /**
7318
+ * Shows the action as a primary button
7319
+ * in the toolbar area of the embed.
7320
+ */
7037
7321
  PRIMARY = "PRIMARY",
7322
+ /**
7323
+ * Shows the action inside the "More" menu
7324
+ * (three-dot overflow menu).
7325
+ */
7038
7326
  MENU = "MENU",
7327
+ /**
7328
+ * Shows the action in the right-click
7329
+ * context menu. Only supported for
7330
+ * {@link CustomActionTarget.VIZ},
7331
+ * {@link CustomActionTarget.ANSWER}, and
7332
+ * {@link CustomActionTarget.SPOTTER} targets.
7333
+ */
7039
7334
  CONTEXTMENU = "CONTEXTMENU"
7040
7335
  }
7041
7336
  /**
7042
- * Enum options to mention the target of the custom action.
7337
+ * Enum options to mention the target of the code-based custom action.
7338
+ * The target determines which type of ThoughtSpot object the action is
7339
+ * associated with, and also controls which positions and scoping options
7340
+ * are available.
7043
7341
  */
7044
7342
  export declare enum CustomActionTarget {
7343
+ /**
7344
+ * Action applies at the Liveboard level.
7345
+ * Supported positions:
7346
+ * {@link CustomActionsPosition.PRIMARY},
7347
+ * {@link CustomActionsPosition.MENU}.
7348
+ * Can be scoped with
7349
+ * `metadataIds.liveboardIds`,
7350
+ * `orgIds`, and `groupIds`.
7351
+ */
7045
7352
  LIVEBOARD = "LIVEBOARD",
7353
+ /**
7354
+ * Action applies to individual
7355
+ * visualizations (charts/tables).
7356
+ * Supported positions:
7357
+ * {@link CustomActionsPosition.PRIMARY},
7358
+ * {@link CustomActionsPosition.MENU},
7359
+ * {@link CustomActionsPosition.CONTEXTMENU}.
7360
+ * Can be scoped with `metadataIds`
7361
+ * (answerIds, liveboardIds, vizIds),
7362
+ * `dataModelIds` (modelIds,
7363
+ * modelColumnNames), `orgIds`,
7364
+ * and `groupIds`.
7365
+ */
7046
7366
  VIZ = "VIZ",
7367
+ /**
7368
+ * Action applies to saved or unsaved
7369
+ * Answers. Supported positions:
7370
+ * {@link CustomActionsPosition.PRIMARY},
7371
+ * {@link CustomActionsPosition.MENU},
7372
+ * {@link CustomActionsPosition.CONTEXTMENU}.
7373
+ * Can be scoped with
7374
+ * `metadataIds.answerIds`,
7375
+ * `dataModelIds` (modelIds,
7376
+ * modelColumnNames), `orgIds`,
7377
+ * and `groupIds`.
7378
+ */
7047
7379
  ANSWER = "ANSWER",
7380
+ /**
7381
+ * Action applies to Spotter
7382
+ * (AI-powered search).
7383
+ * Supported positions:
7384
+ * {@link CustomActionsPosition.MENU},
7385
+ * {@link CustomActionsPosition.CONTEXTMENU}.
7386
+ * Can be scoped with
7387
+ * `dataModelIds.modelIds`,
7388
+ * `orgIds`, and `groupIds`.
7389
+ */
7048
7390
  SPOTTER = "SPOTTER"
7049
7391
  }
7050
7392
  declare enum LogLevel {
@@ -7395,16 +7737,49 @@ export interface ContextObject {
7395
7737
  };
7396
7738
  }
7397
7739
  /**
7398
- * Enum for auth failure types. This is the parameter passed to the listner
7399
- * of {@link AuthStatus.FAILURE}.
7740
+ * Enum for auth failure types.
7741
+ * This value is passed to the listener for {@link AuthStatus.FAILURE}.
7400
7742
  * @group Authentication / Init
7401
7743
  */
7402
7744
  export declare enum AuthFailureType {
7745
+ /**
7746
+ * Authentication failed in the SDK authentication flow.
7747
+ *
7748
+ * Emitted when `init()` or auto-authentication cannot establish a logged-in session.
7749
+ * For example, this can happen because of an invalid token, an auth request failure,
7750
+ * or an auth promise rejection.
7751
+ */
7403
7752
  SDK = "SDK",
7753
+ /**
7754
+ * Browser cookie access is blocked for the embedded app.
7755
+ *
7756
+ * Emitted when the iframe reports that required cookies
7757
+ * cannot be read or sent, commonly due to third-party cookie restrictions.
7758
+ */
7404
7759
  NO_COOKIE_ACCESS = "NO_COOKIE_ACCESS",
7760
+ /**
7761
+ * The current authentication token or session has expired.
7762
+ *
7763
+ * Emitted when the embed receives an auth-expiry signal and starts auth refresh handling.
7764
+ */
7405
7765
  EXPIRY = "EXPIRY",
7766
+ /**
7767
+ * A generic authentication failure that does not match a more specific type.
7768
+ *
7769
+ * Emitted as a fallback for app-reported auth failures in standard auth flows.
7770
+ */
7406
7771
  OTHER = "OTHER",
7772
+ /**
7773
+ * The user session timed out due to inactivity.
7774
+ *
7775
+ * Emitted when the app reports an idle-session timeout.
7776
+ */
7407
7777
  IDLE_SESSION_TIMEOUT = "IDLE_SESSION_TIMEOUT",
7778
+ /**
7779
+ * The app reports that the user is unauthenticated.
7780
+ *
7781
+ * Used primarily to classify unauthenticated failures in Embedded SSO flows.
7782
+ */
7408
7783
  UNAUTHENTICATED_FAILURE = "UNAUTHENTICATED_FAILURE"
7409
7784
  }
7410
7785
  /**
@@ -8805,7 +9180,7 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
8805
9180
  *
8806
9181
  * Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
8807
9182
  * @default true
8808
- * @version SDK: 1.41.1 | ThoughtSpot Cloud: 10.14.0.cl
9183
+ * @deprecated from SDK 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
8809
9184
  * @example
8810
9185
  * ```js
8811
9186
  * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
@@ -9020,7 +9395,7 @@ export declare enum Page {
9020
9395
  Monitor = "monitor"
9021
9396
  }
9022
9397
  /**
9023
- * Define the initial state os column custom group accordions
9398
+ * Define the initial state of column custom group accordions
9024
9399
  * in data panel v2.
9025
9400
  */
9026
9401
  declare enum DataPanelCustomColumnGroupsAccordionState$1 {
@@ -10483,7 +10858,7 @@ export interface PreRenderProps {
10483
10858
  * return <LiveboardEmbed preRenderId="someId" liveboardId="libId" />
10484
10859
  * }
10485
10860
  * ```
10486
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
10861
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl
10487
10862
  */
10488
10863
  preRenderId: string;
10489
10864
  }