@burdenoff/fe-libs 2026.527.5 → 2026.527.7

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 (817) hide show
  1. package/dist/button/Button.d.ts +14 -0
  2. package/dist/button/Button.d.ts.map +1 -0
  3. package/dist/button/index.d.ts +3 -0
  4. package/dist/button/index.d.ts.map +1 -0
  5. package/dist/button.d.ts +2 -0
  6. package/dist/chrome/AccountSwitcher.d.ts +51 -0
  7. package/dist/chrome/AccountSwitcher.d.ts.map +1 -0
  8. package/dist/chrome/AppShellLayout.d.ts +67 -0
  9. package/dist/chrome/AppShellLayout.d.ts.map +1 -0
  10. package/dist/chrome/AutoBreadcrumbs.d.ts +22 -0
  11. package/dist/chrome/AutoBreadcrumbs.d.ts.map +1 -0
  12. package/dist/chrome/Breadcrumb.d.ts +47 -0
  13. package/dist/chrome/Breadcrumb.d.ts.map +1 -0
  14. package/dist/chrome/Breadcrumbs.d.ts +69 -0
  15. package/dist/chrome/Breadcrumbs.d.ts.map +1 -0
  16. package/dist/chrome/CommandPalette.d.ts +64 -0
  17. package/dist/chrome/CommandPalette.d.ts.map +1 -0
  18. package/dist/chrome/ContextSwitcher.d.ts +18 -0
  19. package/dist/chrome/ContextSwitcher.d.ts.map +1 -0
  20. package/dist/chrome/DynamicFooter.d.ts +21 -0
  21. package/dist/chrome/DynamicFooter.d.ts.map +1 -0
  22. package/dist/chrome/Footer.d.ts +128 -0
  23. package/dist/chrome/Footer.d.ts.map +1 -0
  24. package/dist/chrome/FooterBar.d.ts +79 -0
  25. package/dist/chrome/FooterBar.d.ts.map +1 -0
  26. package/dist/chrome/GeographySwitcher.d.ts +22 -0
  27. package/dist/chrome/GeographySwitcher.d.ts.map +1 -0
  28. package/dist/chrome/GlobalSearch.d.ts +49 -0
  29. package/dist/chrome/GlobalSearch.d.ts.map +1 -0
  30. package/dist/chrome/HeaderBar.d.ts +108 -0
  31. package/dist/chrome/HeaderBar.d.ts.map +1 -0
  32. package/dist/chrome/LanguagePickerSheet.d.ts +22 -0
  33. package/dist/chrome/LanguagePickerSheet.d.ts.map +1 -0
  34. package/dist/chrome/LanguageSwitcher.d.ts +23 -0
  35. package/dist/chrome/LanguageSwitcher.d.ts.map +1 -0
  36. package/dist/chrome/NavLink.d.ts +64 -0
  37. package/dist/chrome/NavLink.d.ts.map +1 -0
  38. package/dist/chrome/NotificationCenter.d.ts +16 -0
  39. package/dist/chrome/NotificationCenter.d.ts.map +1 -0
  40. package/dist/chrome/PanelContainer.d.ts +8 -0
  41. package/dist/chrome/PanelContainer.d.ts.map +1 -0
  42. package/dist/chrome/PanelTabs.d.ts +19 -0
  43. package/dist/chrome/PanelTabs.d.ts.map +1 -0
  44. package/dist/chrome/PluginContextMenuTarget.d.ts +8 -0
  45. package/dist/chrome/PluginContextMenuTarget.d.ts.map +1 -0
  46. package/dist/chrome/PluginFooterStrip.d.ts +3 -0
  47. package/dist/chrome/PluginFooterStrip.d.ts.map +1 -0
  48. package/dist/chrome/PluginRoutes.d.ts +9 -0
  49. package/dist/chrome/PluginRoutes.d.ts.map +1 -0
  50. package/dist/chrome/PluginSettingsPage.d.ts +3 -0
  51. package/dist/chrome/PluginSettingsPage.d.ts.map +1 -0
  52. package/dist/chrome/PluginToolbar.d.ts +9 -0
  53. package/dist/chrome/PluginToolbar.d.ts.map +1 -0
  54. package/dist/chrome/PluginWidgetGrid.d.ts +7 -0
  55. package/dist/chrome/PluginWidgetGrid.d.ts.map +1 -0
  56. package/dist/chrome/ProductPickerSheet.d.ts +24 -0
  57. package/dist/chrome/ProductPickerSheet.d.ts.map +1 -0
  58. package/dist/chrome/ProductSideNav.d.ts +22 -0
  59. package/dist/chrome/ProductSideNav.d.ts.map +1 -0
  60. package/dist/chrome/ProductSwitcher.d.ts +31 -0
  61. package/dist/chrome/ProductSwitcher.d.ts.map +1 -0
  62. package/dist/chrome/ProfileSwitcher.d.ts +49 -0
  63. package/dist/chrome/ProfileSwitcher.d.ts.map +1 -0
  64. package/dist/chrome/ShortcutHelpDialog.d.ts +33 -0
  65. package/dist/chrome/ShortcutHelpDialog.d.ts.map +1 -0
  66. package/dist/chrome/SideNavigation.d.ts +41 -0
  67. package/dist/chrome/SideNavigation.d.ts.map +1 -0
  68. package/dist/chrome/Sidebar.d.ts +108 -0
  69. package/dist/chrome/Sidebar.d.ts.map +1 -0
  70. package/dist/chrome/StatusBar.d.ts +3 -0
  71. package/dist/chrome/StatusBar.d.ts.map +1 -0
  72. package/dist/chrome/Tabs.d.ts +74 -0
  73. package/dist/chrome/Tabs.d.ts.map +1 -0
  74. package/dist/chrome/contextSwitcher/EmptyState.d.ts +6 -0
  75. package/dist/chrome/contextSwitcher/EmptyState.d.ts.map +1 -0
  76. package/dist/chrome/contextSwitcher/OrganizationList.d.ts +12 -0
  77. package/dist/chrome/contextSwitcher/OrganizationList.d.ts.map +1 -0
  78. package/dist/chrome/contextSwitcher/ProjectList.d.ts +12 -0
  79. package/dist/chrome/contextSwitcher/ProjectList.d.ts.map +1 -0
  80. package/dist/chrome/contextSwitcher/SearchInput.d.ts +8 -0
  81. package/dist/chrome/contextSwitcher/SearchInput.d.ts.map +1 -0
  82. package/dist/chrome/contextSwitcher/TabButton.d.ts +7 -0
  83. package/dist/chrome/contextSwitcher/TabButton.d.ts.map +1 -0
  84. package/dist/chrome/contextSwitcher/TriggerButton.d.ts +11 -0
  85. package/dist/chrome/contextSwitcher/TriggerButton.d.ts.map +1 -0
  86. package/dist/chrome/contextSwitcher/WorkspaceList.d.ts +12 -0
  87. package/dist/chrome/contextSwitcher/WorkspaceList.d.ts.map +1 -0
  88. package/dist/chrome/contextSwitcher/icons.d.ts +17 -0
  89. package/dist/chrome/contextSwitcher/icons.d.ts.map +1 -0
  90. package/dist/chrome/contextSwitcher/types.d.ts +19 -0
  91. package/dist/chrome/contextSwitcher/types.d.ts.map +1 -0
  92. package/dist/chrome/contextSwitcher/useIsMobile.d.ts +2 -0
  93. package/dist/chrome/contextSwitcher/useIsMobile.d.ts.map +1 -0
  94. package/dist/chrome/globalSearch/AdvancedFiltersPanel.d.ts +7 -0
  95. package/dist/chrome/globalSearch/AdvancedFiltersPanel.d.ts.map +1 -0
  96. package/dist/chrome/globalSearch/CategoryTabs.d.ts +9 -0
  97. package/dist/chrome/globalSearch/CategoryTabs.d.ts.map +1 -0
  98. package/dist/chrome/globalSearch/ResultsList.d.ts +14 -0
  99. package/dist/chrome/globalSearch/ResultsList.d.ts.map +1 -0
  100. package/dist/chrome/globalSearch/SearchInput.d.ts +9 -0
  101. package/dist/chrome/globalSearch/SearchInput.d.ts.map +1 -0
  102. package/dist/chrome/globalSearch/SearchModeBar.d.ts +10 -0
  103. package/dist/chrome/globalSearch/SearchModeBar.d.ts.map +1 -0
  104. package/dist/chrome/globalSearch/useAdvancedFilters.d.ts +39 -0
  105. package/dist/chrome/globalSearch/useAdvancedFilters.d.ts.map +1 -0
  106. package/dist/chrome/globalSearch/utils.d.ts +6 -0
  107. package/dist/chrome/globalSearch/utils.d.ts.map +1 -0
  108. package/dist/chrome/index.d.ts +108 -0
  109. package/dist/chrome/index.d.ts.map +1 -0
  110. package/dist/chrome/notificationCenter/BellButton.d.ts +9 -0
  111. package/dist/chrome/notificationCenter/BellButton.d.ts.map +1 -0
  112. package/dist/chrome/notificationCenter/NotificationCardItem.d.ts +11 -0
  113. package/dist/chrome/notificationCenter/NotificationCardItem.d.ts.map +1 -0
  114. package/dist/chrome/notificationCenter/NotificationFilters.d.ts +16 -0
  115. package/dist/chrome/notificationCenter/NotificationFilters.d.ts.map +1 -0
  116. package/dist/chrome/notificationCenter/NotificationFooter.d.ts +8 -0
  117. package/dist/chrome/notificationCenter/NotificationFooter.d.ts.map +1 -0
  118. package/dist/chrome/notificationCenter/NotificationHeader.d.ts +10 -0
  119. package/dist/chrome/notificationCenter/NotificationHeader.d.ts.map +1 -0
  120. package/dist/chrome/notificationCenter/NotificationList.d.ts +17 -0
  121. package/dist/chrome/notificationCenter/NotificationList.d.ts.map +1 -0
  122. package/dist/chrome/notificationCenter/NotificationPanel.d.ts +9 -0
  123. package/dist/chrome/notificationCenter/NotificationPanel.d.ts.map +1 -0
  124. package/dist/chrome/notificationCenter/SkeletonCard.d.ts +3 -0
  125. package/dist/chrome/notificationCenter/SkeletonCard.d.ts.map +1 -0
  126. package/dist/chrome/notificationCenter/constants.d.ts +22 -0
  127. package/dist/chrome/notificationCenter/constants.d.ts.map +1 -0
  128. package/dist/chrome/notificationCenter/gql.d.ts +15 -0
  129. package/dist/chrome/notificationCenter/gql.d.ts.map +1 -0
  130. package/dist/chrome/notificationCenter/types.d.ts +31 -0
  131. package/dist/chrome/notificationCenter/types.d.ts.map +1 -0
  132. package/dist/chrome/notificationCenter/useNotificationCenter.d.ts +24 -0
  133. package/dist/chrome/notificationCenter/useNotificationCenter.d.ts.map +1 -0
  134. package/dist/chrome/notificationCenter/usePanelChrome.d.ts +7 -0
  135. package/dist/chrome/notificationCenter/usePanelChrome.d.ts.map +1 -0
  136. package/dist/chrome/sideNavigation/CollapseToggle.d.ts +9 -0
  137. package/dist/chrome/sideNavigation/CollapseToggle.d.ts.map +1 -0
  138. package/dist/chrome/sideNavigation/MobileActionsBar.d.ts +10 -0
  139. package/dist/chrome/sideNavigation/MobileActionsBar.d.ts.map +1 -0
  140. package/dist/chrome/sideNavigation/NavItemRenderer.d.ts +16 -0
  141. package/dist/chrome/sideNavigation/NavItemRenderer.d.ts.map +1 -0
  142. package/dist/chrome/sideNavigation/SidebarHeader.d.ts +10 -0
  143. package/dist/chrome/sideNavigation/SidebarHeader.d.ts.map +1 -0
  144. package/dist/chrome/sideNavigation/helpers.d.ts +6 -0
  145. package/dist/chrome/sideNavigation/helpers.d.ts.map +1 -0
  146. package/dist/chrome/sideNavigation/types.d.ts +33 -0
  147. package/dist/chrome/sideNavigation/types.d.ts.map +1 -0
  148. package/dist/chrome/sideNavigation/useSideNavigationState.d.ts +15 -0
  149. package/dist/chrome/sideNavigation/useSideNavigationState.d.ts.map +1 -0
  150. package/dist/chrome.d.ts +2 -0
  151. package/dist/config/eslint.config.d.ts +12 -0
  152. package/dist/config/eslint.config.d.ts.map +1 -0
  153. package/dist/config/index.d.ts +19 -0
  154. package/dist/config/index.d.ts.map +1 -0
  155. package/dist/config/prettier.config.d.ts +7 -0
  156. package/dist/config/prettier.config.d.ts.map +1 -0
  157. package/dist/form/Checkbox.d.ts +65 -0
  158. package/dist/form/Checkbox.d.ts.map +1 -0
  159. package/dist/form/Form.d.ts +114 -0
  160. package/dist/form/Form.d.ts.map +1 -0
  161. package/dist/form/FormDescription.d.ts +35 -0
  162. package/dist/form/FormDescription.d.ts.map +1 -0
  163. package/dist/form/FormField.d.ts +100 -0
  164. package/dist/form/FormField.d.ts.map +1 -0
  165. package/dist/form/FormLabel.d.ts +43 -0
  166. package/dist/form/FormLabel.d.ts.map +1 -0
  167. package/dist/form/FormMessage.d.ts +37 -0
  168. package/dist/form/FormMessage.d.ts.map +1 -0
  169. package/dist/form/Input.d.ts +45 -0
  170. package/dist/form/Input.d.ts.map +1 -0
  171. package/dist/form/Radio.d.ts +109 -0
  172. package/dist/form/Radio.d.ts.map +1 -0
  173. package/dist/form/Select.d.ts +136 -0
  174. package/dist/form/Select.d.ts.map +1 -0
  175. package/dist/form/Textarea.d.ts +52 -0
  176. package/dist/form/Textarea.d.ts.map +1 -0
  177. package/dist/form/index.d.ts +24 -0
  178. package/dist/form/index.d.ts.map +1 -0
  179. package/dist/form.d.ts +2 -0
  180. package/dist/index.d.ts +2 -0
  181. package/dist/index.d.ts.map +1 -0
  182. package/dist/lib/utils.d.ts +3 -0
  183. package/dist/lib/utils.d.ts.map +1 -0
  184. package/dist/shared/components/AccessDenied.d.ts +117 -0
  185. package/dist/shared/components/AccessDenied.d.ts.map +1 -0
  186. package/dist/shared/components/AppErrorBoundary.d.ts +19 -0
  187. package/dist/shared/components/AppErrorBoundary.d.ts.map +1 -0
  188. package/dist/shared/components/ConditionalShell.d.ts +17 -0
  189. package/dist/shared/components/ConditionalShell.d.ts.map +1 -0
  190. package/dist/shared/components/ContextConversationWidget.d.ts +6 -0
  191. package/dist/shared/components/ContextConversationWidget.d.ts.map +1 -0
  192. package/dist/shared/components/ErrorBoundary.d.ts +19 -0
  193. package/dist/shared/components/ErrorBoundary.d.ts.map +1 -0
  194. package/dist/shared/components/ErrorFallback.d.ts +3 -0
  195. package/dist/shared/components/ErrorFallback.d.ts.map +1 -0
  196. package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts +7 -0
  197. package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +1 -0
  198. package/dist/shared/components/LegalPage.d.ts +19 -0
  199. package/dist/shared/components/LegalPage.d.ts.map +1 -0
  200. package/dist/shared/components/LoadingFallback.d.ts +31 -0
  201. package/dist/shared/components/LoadingFallback.d.ts.map +1 -0
  202. package/dist/shared/components/MicrofrontendErrorBoundary.d.ts +20 -0
  203. package/dist/shared/components/MicrofrontendErrorBoundary.d.ts.map +1 -0
  204. package/dist/shared/components/PWAInstallBanner.d.ts +14 -0
  205. package/dist/shared/components/PWAInstallBanner.d.ts.map +1 -0
  206. package/dist/shared/components/PermissionGate.d.ts +202 -0
  207. package/dist/shared/components/PermissionGate.d.ts.map +1 -0
  208. package/dist/shared/components/ProductAccessGuard.d.ts +8 -0
  209. package/dist/shared/components/ProductAccessGuard.d.ts.map +1 -0
  210. package/dist/shared/components/QuotaMeter.d.ts +30 -0
  211. package/dist/shared/components/QuotaMeter.d.ts.map +1 -0
  212. package/dist/shared/components/RequireAuth.d.ts +76 -0
  213. package/dist/shared/components/RequireAuth.d.ts.map +1 -0
  214. package/dist/shared/components/SSORedirectGuard.d.ts +49 -0
  215. package/dist/shared/components/SSORedirectGuard.d.ts.map +1 -0
  216. package/dist/shared/components/SearchPage.d.ts +24 -0
  217. package/dist/shared/components/SearchPage.d.ts.map +1 -0
  218. package/dist/shared/components/UpgradeInlineBanner.d.ts +45 -0
  219. package/dist/shared/components/UpgradeInlineBanner.d.ts.map +1 -0
  220. package/dist/shared/components/UpgradeInlineBanner.js +57 -0
  221. package/dist/shared/components/UpgradePromptModal.d.ts +64 -0
  222. package/dist/shared/components/UpgradePromptModal.d.ts.map +1 -0
  223. package/dist/shared/components/UpgradePromptModal.js +92 -0
  224. package/dist/shared/components/contextConversationWidget/Composer.d.ts +19 -0
  225. package/dist/shared/components/contextConversationWidget/Composer.d.ts.map +1 -0
  226. package/dist/shared/components/contextConversationWidget/MessageItem.d.ts +20 -0
  227. package/dist/shared/components/contextConversationWidget/MessageItem.d.ts.map +1 -0
  228. package/dist/shared/components/contextConversationWidget/MessageList.d.ts +22 -0
  229. package/dist/shared/components/contextConversationWidget/MessageList.d.ts.map +1 -0
  230. package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.d.ts +7 -0
  231. package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.d.ts.map +1 -0
  232. package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.d.ts +8 -0
  233. package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.d.ts.map +1 -0
  234. package/dist/shared/components/contextConversationWidget/ReplyBanner.d.ts +9 -0
  235. package/dist/shared/components/contextConversationWidget/ReplyBanner.d.ts.map +1 -0
  236. package/dist/shared/components/contextConversationWidget/WidgetHeader.d.ts +19 -0
  237. package/dist/shared/components/contextConversationWidget/WidgetHeader.d.ts.map +1 -0
  238. package/dist/shared/components/contextConversationWidget/queries.d.ts +16 -0
  239. package/dist/shared/components/contextConversationWidget/queries.d.ts.map +1 -0
  240. package/dist/shared/components/contextConversationWidget/types.d.ts +113 -0
  241. package/dist/shared/components/contextConversationWidget/types.d.ts.map +1 -0
  242. package/dist/shared/components/contextConversationWidget/useAttachmentUpload.d.ts +16 -0
  243. package/dist/shared/components/contextConversationWidget/useAttachmentUpload.d.ts.map +1 -0
  244. package/dist/shared/components/contextConversationWidget/useConversationSubscriptions.d.ts +3 -0
  245. package/dist/shared/components/contextConversationWidget/useConversationSubscriptions.d.ts.map +1 -0
  246. package/dist/shared/components/contextConversationWidget/useMessageActions.d.ts +15 -0
  247. package/dist/shared/components/contextConversationWidget/useMessageActions.d.ts.map +1 -0
  248. package/dist/shared/components/contextConversationWidget/useSendMessage.d.ts +25 -0
  249. package/dist/shared/components/contextConversationWidget/useSendMessage.d.ts.map +1 -0
  250. package/dist/shared/components/contextConversationWidget/useWidgetMessages.d.ts +3 -0
  251. package/dist/shared/components/contextConversationWidget/useWidgetMessages.d.ts.map +1 -0
  252. package/dist/shared/components/contextConversationWidget/utils.d.ts +12 -0
  253. package/dist/shared/components/contextConversationWidget/utils.d.ts.map +1 -0
  254. package/dist/shared/components/index.d.ts +29 -0
  255. package/dist/shared/components/index.d.ts.map +1 -0
  256. package/dist/shared/components/searchPage/FiltersPanel.d.ts +17 -0
  257. package/dist/shared/components/searchPage/FiltersPanel.d.ts.map +1 -0
  258. package/dist/shared/components/searchPage/Pagination.d.ts +8 -0
  259. package/dist/shared/components/searchPage/Pagination.d.ts.map +1 -0
  260. package/dist/shared/components/searchPage/ResultsHeader.d.ts +8 -0
  261. package/dist/shared/components/searchPage/ResultsHeader.d.ts.map +1 -0
  262. package/dist/shared/components/searchPage/ResultsList.d.ts +13 -0
  263. package/dist/shared/components/searchPage/ResultsList.d.ts.map +1 -0
  264. package/dist/shared/components/searchPage/SearchInput.d.ts +9 -0
  265. package/dist/shared/components/searchPage/SearchInput.d.ts.map +1 -0
  266. package/dist/shared/components/searchPage/SearchToolbar.d.ts +13 -0
  267. package/dist/shared/components/searchPage/SearchToolbar.d.ts.map +1 -0
  268. package/dist/shared/components/searchPage/constants.d.ts +18 -0
  269. package/dist/shared/components/searchPage/constants.d.ts.map +1 -0
  270. package/dist/shared/config/authBridgeUrls.d.ts +27 -0
  271. package/dist/shared/config/authBridgeUrls.d.ts.map +1 -0
  272. package/dist/shared/config/eslint.config.d.ts +12 -0
  273. package/dist/shared/config/eslint.config.d.ts.map +1 -0
  274. package/dist/shared/config/gatewayUrls.d.ts +44 -0
  275. package/dist/shared/config/gatewayUrls.d.ts.map +1 -0
  276. package/dist/shared/config/index.d.ts +71 -0
  277. package/dist/shared/config/index.d.ts.map +1 -0
  278. package/dist/shared/config/prettier.config.d.ts +7 -0
  279. package/dist/shared/config/prettier.config.d.ts.map +1 -0
  280. package/dist/shared/config/products.d.ts +56 -0
  281. package/dist/shared/config/products.d.ts.map +1 -0
  282. package/dist/shared/config/shellRoutes.d.ts +52 -0
  283. package/dist/shared/config/shellRoutes.d.ts.map +1 -0
  284. package/dist/shared/events/index.d.ts +591 -0
  285. package/dist/shared/events/index.d.ts.map +1 -0
  286. package/dist/shared/events/metadata.d.ts +7 -0
  287. package/dist/shared/events/metadata.d.ts.map +1 -0
  288. package/dist/shared/events/sinks/BackendAuditSink.d.ts +18 -0
  289. package/dist/shared/events/sinks/BackendAuditSink.d.ts.map +1 -0
  290. package/dist/shared/events/sinks/BroadcastChannelSink.d.ts +10 -0
  291. package/dist/shared/events/sinks/BroadcastChannelSink.d.ts.map +1 -0
  292. package/dist/shared/events/sinks/DevtoolsSink.d.ts +10 -0
  293. package/dist/shared/events/sinks/DevtoolsSink.d.ts.map +1 -0
  294. package/dist/shared/events/sinks/OtelBrowserSink.d.ts +14 -0
  295. package/dist/shared/events/sinks/OtelBrowserSink.d.ts.map +1 -0
  296. package/dist/shared/events/sinks/RybbitSink.d.ts +19 -0
  297. package/dist/shared/events/sinks/RybbitSink.d.ts.map +1 -0
  298. package/dist/shared/events/sinks/index.d.ts +6 -0
  299. package/dist/shared/events/sinks/index.d.ts.map +1 -0
  300. package/dist/shared/feature-flags/FeatureFlagProvider.d.ts +47 -0
  301. package/dist/shared/feature-flags/FeatureFlagProvider.d.ts.map +1 -0
  302. package/dist/shared/feature-flags/FeatureGate.d.ts +27 -0
  303. package/dist/shared/feature-flags/FeatureGate.d.ts.map +1 -0
  304. package/dist/shared/feature-flags/index.d.ts +38 -0
  305. package/dist/shared/feature-flags/index.d.ts.map +1 -0
  306. package/dist/shared/feature-flags/types.d.ts +121 -0
  307. package/dist/shared/feature-flags/types.d.ts.map +1 -0
  308. package/dist/shared/feature-flags/useFeatureFlag.d.ts +41 -0
  309. package/dist/shared/feature-flags/useFeatureFlag.d.ts.map +1 -0
  310. package/dist/shared/geography/GeographyProvider.d.ts +40 -0
  311. package/dist/shared/geography/GeographyProvider.d.ts.map +1 -0
  312. package/dist/shared/geography/countries.d.ts +53 -0
  313. package/dist/shared/geography/countries.d.ts.map +1 -0
  314. package/dist/shared/geography/index.d.ts +5 -0
  315. package/dist/shared/geography/index.d.ts.map +1 -0
  316. package/dist/shared/graphql/GatewayContext.d.ts +55 -0
  317. package/dist/shared/graphql/GatewayContext.d.ts.map +1 -0
  318. package/dist/shared/graphql/client.d.ts +122 -0
  319. package/dist/shared/graphql/client.d.ts.map +1 -0
  320. package/dist/shared/graphql/client.js +70 -62
  321. package/dist/shared/graphql/fetch.d.ts +133 -0
  322. package/dist/shared/graphql/fetch.d.ts.map +1 -0
  323. package/dist/shared/graphql/index.d.ts +9 -0
  324. package/dist/shared/graphql/index.d.ts.map +1 -0
  325. package/dist/shared/graphql/links/sse-link.d.ts +48 -0
  326. package/dist/shared/graphql/links/sse-link.d.ts.map +1 -0
  327. package/dist/shared/graphql/security.d.ts +13 -0
  328. package/dist/shared/graphql/security.d.ts.map +1 -0
  329. package/dist/shared/graphql/workspaceToken.d.ts +13 -0
  330. package/dist/shared/graphql/workspaceToken.d.ts.map +1 -0
  331. package/dist/shared/help/HelpButton.d.ts +25 -0
  332. package/dist/shared/help/HelpButton.d.ts.map +1 -0
  333. package/dist/shared/help/HelpPanel.d.ts +10 -0
  334. package/dist/shared/help/HelpPanel.d.ts.map +1 -0
  335. package/dist/shared/help/HelpProvider.d.ts +40 -0
  336. package/dist/shared/help/HelpProvider.d.ts.map +1 -0
  337. package/dist/shared/help/index.d.ts +53 -0
  338. package/dist/shared/help/index.d.ts.map +1 -0
  339. package/dist/shared/help/types.d.ts +159 -0
  340. package/dist/shared/help/types.d.ts.map +1 -0
  341. package/dist/shared/hooks/index.d.ts +33 -0
  342. package/dist/shared/hooks/index.d.ts.map +1 -0
  343. package/dist/shared/hooks/shell/index.d.ts +22 -0
  344. package/dist/shared/hooks/shell/index.d.ts.map +1 -0
  345. package/dist/shared/hooks/shell/useBreadcrumbs.d.ts +50 -0
  346. package/dist/shared/hooks/shell/useBreadcrumbs.d.ts.map +1 -0
  347. package/dist/shared/hooks/shell/useFooterRegistry.d.ts +23 -0
  348. package/dist/shared/hooks/shell/useFooterRegistry.d.ts.map +1 -0
  349. package/dist/shared/hooks/shell/useGlobalSearch.d.ts +103 -0
  350. package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +1 -0
  351. package/dist/shared/hooks/shell/useLanguages.d.ts +43 -0
  352. package/dist/shared/hooks/shell/useLanguages.d.ts.map +1 -0
  353. package/dist/shared/hooks/shell/useNavRegistry.d.ts +25 -0
  354. package/dist/shared/hooks/shell/useNavRegistry.d.ts.map +1 -0
  355. package/dist/shared/hooks/shell/useProductAccess.d.ts +37 -0
  356. package/dist/shared/hooks/shell/useProductAccess.d.ts.map +1 -0
  357. package/dist/shared/hooks/shell/useProducts.d.ts +30 -0
  358. package/dist/shared/hooks/shell/useProducts.d.ts.map +1 -0
  359. package/dist/shared/hooks/useAsync.d.ts +151 -0
  360. package/dist/shared/hooks/useAsync.d.ts.map +1 -0
  361. package/dist/shared/hooks/useBreakpoint.d.ts +83 -0
  362. package/dist/shared/hooks/useBreakpoint.d.ts.map +1 -0
  363. package/dist/shared/hooks/useCopyToClipboard.d.ts +72 -0
  364. package/dist/shared/hooks/useCopyToClipboard.d.ts.map +1 -0
  365. package/dist/shared/hooks/useDebounce.d.ts +26 -0
  366. package/dist/shared/hooks/useDebounce.d.ts.map +1 -0
  367. package/dist/shared/hooks/useHasAnimated.d.ts +10 -0
  368. package/dist/shared/hooks/useHasAnimated.d.ts.map +1 -0
  369. package/dist/shared/hooks/useKeyPress.d.ts +116 -0
  370. package/dist/shared/hooks/useKeyPress.d.ts.map +1 -0
  371. package/dist/shared/hooks/useLocalStorage.d.ts +41 -0
  372. package/dist/shared/hooks/useLocalStorage.d.ts.map +1 -0
  373. package/dist/shared/hooks/useMediaQuery.d.ts +35 -0
  374. package/dist/shared/hooks/useMediaQuery.d.ts.map +1 -0
  375. package/dist/shared/hooks/useOnClickOutside.d.ts +76 -0
  376. package/dist/shared/hooks/useOnClickOutside.d.ts.map +1 -0
  377. package/dist/shared/hooks/usePWA.d.ts +57 -0
  378. package/dist/shared/hooks/usePWA.d.ts.map +1 -0
  379. package/dist/shared/hooks/usePrevious.d.ts +157 -0
  380. package/dist/shared/hooks/usePrevious.d.ts.map +1 -0
  381. package/dist/shared/hooks/useQuotaErrorToast.d.ts +50 -0
  382. package/dist/shared/hooks/useQuotaErrorToast.d.ts.map +1 -0
  383. package/dist/shared/hooks/useRecordProductVisit.d.ts +11 -0
  384. package/dist/shared/hooks/useRecordProductVisit.d.ts.map +1 -0
  385. package/dist/shared/hooks/useReferralAttribution.d.ts +2 -0
  386. package/dist/shared/hooks/useReferralAttribution.d.ts.map +1 -0
  387. package/dist/shared/hooks/useSessionStorage.d.ts +44 -0
  388. package/dist/shared/hooks/useSessionStorage.d.ts.map +1 -0
  389. package/dist/shared/hooks/useThrottle.d.ts +37 -0
  390. package/dist/shared/hooks/useThrottle.d.ts.map +1 -0
  391. package/dist/shared/hooks/useToggle.d.ts +152 -0
  392. package/dist/shared/hooks/useToggle.d.ts.map +1 -0
  393. package/dist/shared/hooks/useUpgradePrompt.d.ts +50 -0
  394. package/dist/shared/hooks/useUpgradePrompt.d.ts.map +1 -0
  395. package/dist/shared/hooks/useUpgradePrompt.js +63 -0
  396. package/dist/shared/index.d.ts +13 -0
  397. package/dist/shared/index.d.ts.map +1 -0
  398. package/dist/shared/keyboard/globalShortcuts.d.ts +58 -0
  399. package/dist/shared/keyboard/globalShortcuts.d.ts.map +1 -0
  400. package/dist/shared/keyboard/index.d.ts +40 -0
  401. package/dist/shared/keyboard/index.d.ts.map +1 -0
  402. package/dist/shared/keyboard/types.d.ts +85 -0
  403. package/dist/shared/keyboard/types.d.ts.map +1 -0
  404. package/dist/shared/keyboard/useHotkeys.d.ts +21 -0
  405. package/dist/shared/keyboard/useHotkeys.d.ts.map +1 -0
  406. package/dist/shared/keyboard/useKeyboardShortcuts.d.ts +94 -0
  407. package/dist/shared/keyboard/useKeyboardShortcuts.d.ts.map +1 -0
  408. package/dist/shared/keyboard/useShortcutHelp.d.ts +27 -0
  409. package/dist/shared/keyboard/useShortcutHelp.d.ts.map +1 -0
  410. package/dist/shared/keyboard/utils.d.ts +72 -0
  411. package/dist/shared/keyboard/utils.d.ts.map +1 -0
  412. package/dist/shared/logger/ConsoleTransport.d.ts +22 -0
  413. package/dist/shared/logger/ConsoleTransport.d.ts.map +1 -0
  414. package/dist/shared/logger/LogManager.d.ts +75 -0
  415. package/dist/shared/logger/LogManager.d.ts.map +1 -0
  416. package/dist/shared/logger/Logger.d.ts +86 -0
  417. package/dist/shared/logger/Logger.d.ts.map +1 -0
  418. package/dist/shared/logger/index.d.ts +42 -0
  419. package/dist/shared/logger/index.d.ts.map +1 -0
  420. package/dist/shared/logger/types.d.ts +70 -0
  421. package/dist/shared/logger/types.d.ts.map +1 -0
  422. package/dist/shared/logger/useLogger.d.ts +29 -0
  423. package/dist/shared/logger/useLogger.d.ts.map +1 -0
  424. package/dist/shared/motion/AnimatedCounter.d.ts +16 -0
  425. package/dist/shared/motion/AnimatedCounter.d.ts.map +1 -0
  426. package/dist/shared/motion/MotionCard.d.ts +18 -0
  427. package/dist/shared/motion/MotionCard.d.ts.map +1 -0
  428. package/dist/shared/motion/MotionCollapse.d.ts +14 -0
  429. package/dist/shared/motion/MotionCollapse.d.ts.map +1 -0
  430. package/dist/shared/motion/MotionFade.d.ts +16 -0
  431. package/dist/shared/motion/MotionFade.d.ts.map +1 -0
  432. package/dist/shared/motion/MotionItem.d.ts +25 -0
  433. package/dist/shared/motion/MotionItem.d.ts.map +1 -0
  434. package/dist/shared/motion/MotionList.d.ts +28 -0
  435. package/dist/shared/motion/MotionList.d.ts.map +1 -0
  436. package/dist/shared/motion/MotionPage.d.ts +18 -0
  437. package/dist/shared/motion/MotionPage.d.ts.map +1 -0
  438. package/dist/shared/motion/index.d.ts +9 -0
  439. package/dist/shared/motion/index.d.ts.map +1 -0
  440. package/dist/shared/motion/variants.d.ts +70 -0
  441. package/dist/shared/motion/variants.d.ts.map +1 -0
  442. package/dist/shared/native/bridge.d.ts +3 -0
  443. package/dist/shared/native/bridge.d.ts.map +1 -0
  444. package/dist/shared/native/consumers.d.ts +9 -0
  445. package/dist/shared/native/consumers.d.ts.map +1 -0
  446. package/dist/shared/native/hooks/index.d.ts +12 -0
  447. package/dist/shared/native/hooks/index.d.ts.map +1 -0
  448. package/dist/shared/native/hooks/useAppState.d.ts +3 -0
  449. package/dist/shared/native/hooks/useAppState.d.ts.map +1 -0
  450. package/dist/shared/native/hooks/useDeviceInfo.d.ts +3 -0
  451. package/dist/shared/native/hooks/useDeviceInfo.d.ts.map +1 -0
  452. package/dist/shared/native/hooks/useHaptics.d.ts +8 -0
  453. package/dist/shared/native/hooks/useHaptics.d.ts.map +1 -0
  454. package/dist/shared/native/hooks/useNativeKeyboard.d.ts +6 -0
  455. package/dist/shared/native/hooks/useNativeKeyboard.d.ts.map +1 -0
  456. package/dist/shared/native/hooks/useNativePlatform.d.ts +10 -0
  457. package/dist/shared/native/hooks/useNativePlatform.d.ts.map +1 -0
  458. package/dist/shared/native/hooks/useSafeArea.d.ts +3 -0
  459. package/dist/shared/native/hooks/useSafeArea.d.ts.map +1 -0
  460. package/dist/shared/native/hooks/useStatusBar.d.ts +6 -0
  461. package/dist/shared/native/hooks/useStatusBar.d.ts.map +1 -0
  462. package/dist/shared/native/index.d.ts +6 -0
  463. package/dist/shared/native/index.d.ts.map +1 -0
  464. package/dist/shared/native/platform.d.ts +7 -0
  465. package/dist/shared/native/platform.d.ts.map +1 -0
  466. package/dist/shared/native/types.d.ts +62 -0
  467. package/dist/shared/native/types.d.ts.map +1 -0
  468. package/dist/shared/pages/AiPage.d.ts +14 -0
  469. package/dist/shared/pages/AiPage.d.ts.map +1 -0
  470. package/dist/shared/pages/LegalPage.d.ts +19 -0
  471. package/dist/shared/pages/LegalPage.d.ts.map +1 -0
  472. package/dist/shared/pages/SearchPage.d.ts +28 -0
  473. package/dist/shared/pages/SearchPage.d.ts.map +1 -0
  474. package/dist/shared/pages/index.d.ts +7 -0
  475. package/dist/shared/pages/index.d.ts.map +1 -0
  476. package/dist/shared/pages/searchPage/ActiveFilterChips.d.ts +40 -0
  477. package/dist/shared/pages/searchPage/ActiveFilterChips.d.ts.map +1 -0
  478. package/dist/shared/pages/searchPage/FiltersPanel.d.ts +54 -0
  479. package/dist/shared/pages/searchPage/FiltersPanel.d.ts.map +1 -0
  480. package/dist/shared/pages/searchPage/ResultsList.d.ts +13 -0
  481. package/dist/shared/pages/searchPage/ResultsList.d.ts.map +1 -0
  482. package/dist/shared/pages/searchPage/ResultsStatus.d.ts +8 -0
  483. package/dist/shared/pages/searchPage/ResultsStatus.d.ts.map +1 -0
  484. package/dist/shared/pages/searchPage/SearchInput.d.ts +9 -0
  485. package/dist/shared/pages/searchPage/SearchInput.d.ts.map +1 -0
  486. package/dist/shared/pages/searchPage/SearchPagination.d.ts +8 -0
  487. package/dist/shared/pages/searchPage/SearchPagination.d.ts.map +1 -0
  488. package/dist/shared/pages/searchPage/SearchToolbar.d.ts +13 -0
  489. package/dist/shared/pages/searchPage/SearchToolbar.d.ts.map +1 -0
  490. package/dist/shared/pages/searchPage/constants.d.ts +26 -0
  491. package/dist/shared/pages/searchPage/constants.d.ts.map +1 -0
  492. package/dist/shared/pages/searchPage/utils.d.ts +7 -0
  493. package/dist/shared/pages/searchPage/utils.d.ts.map +1 -0
  494. package/dist/shared/plugins/PluginRuntimeProvider.d.ts +28 -0
  495. package/dist/shared/plugins/PluginRuntimeProvider.d.ts.map +1 -0
  496. package/dist/shared/plugins/context.d.ts +65 -0
  497. package/dist/shared/plugins/context.d.ts.map +1 -0
  498. package/dist/shared/plugins/disposable.d.ts +17 -0
  499. package/dist/shared/plugins/disposable.d.ts.map +1 -0
  500. package/dist/shared/plugins/event-bus.d.ts +112 -0
  501. package/dist/shared/plugins/event-bus.d.ts.map +1 -0
  502. package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts +75 -0
  503. package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts.map +1 -0
  504. package/dist/shared/plugins/iframe-mount/PluginMount.d.ts +59 -0
  505. package/dist/shared/plugins/iframe-mount/PluginMount.d.ts.map +1 -0
  506. package/dist/shared/plugins/iframe-mount/client/index.d.ts +3 -0
  507. package/dist/shared/plugins/iframe-mount/client/index.d.ts.map +1 -0
  508. package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts +71 -0
  509. package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts.map +1 -0
  510. package/dist/shared/plugins/iframe-mount/client/rpc.d.ts +25 -0
  511. package/dist/shared/plugins/iframe-mount/client/rpc.d.ts.map +1 -0
  512. package/dist/shared/plugins/iframe-mount/index.d.ts +6 -0
  513. package/dist/shared/plugins/iframe-mount/index.d.ts.map +1 -0
  514. package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts +83 -0
  515. package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts.map +1 -0
  516. package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts +136 -0
  517. package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts.map +1 -0
  518. package/dist/shared/plugins/iframe-mount/protocol/index.d.ts +3 -0
  519. package/dist/shared/plugins/iframe-mount/protocol/index.d.ts.map +1 -0
  520. package/dist/shared/plugins/iframe-mount/sandbox.d.ts +3 -0
  521. package/dist/shared/plugins/iframe-mount/sandbox.d.ts.map +1 -0
  522. package/dist/shared/plugins/iframe-mount/types.d.ts +64 -0
  523. package/dist/shared/plugins/iframe-mount/types.d.ts.map +1 -0
  524. package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts +31 -0
  525. package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts.map +1 -0
  526. package/dist/shared/plugins/index.d.ts +41 -0
  527. package/dist/shared/plugins/index.d.ts.map +1 -0
  528. package/dist/shared/plugins/panels/usePanelManagerStore.d.ts +68 -0
  529. package/dist/shared/plugins/panels/usePanelManagerStore.d.ts.map +1 -0
  530. package/dist/shared/plugins/registries/createContributionRegistry.d.ts +16 -0
  531. package/dist/shared/plugins/registries/createContributionRegistry.d.ts.map +1 -0
  532. package/dist/shared/plugins/registries/index.d.ts +15 -0
  533. package/dist/shared/plugins/registries/index.d.ts.map +1 -0
  534. package/dist/shared/plugins/registries/useCommandRegistry.d.ts +3 -0
  535. package/dist/shared/plugins/registries/useCommandRegistry.d.ts.map +1 -0
  536. package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts +3 -0
  537. package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts.map +1 -0
  538. package/dist/shared/plugins/registries/usePanelRegistry.d.ts +3 -0
  539. package/dist/shared/plugins/registries/usePanelRegistry.d.ts.map +1 -0
  540. package/dist/shared/plugins/registries/useRouteRegistry.d.ts +3 -0
  541. package/dist/shared/plugins/registries/useRouteRegistry.d.ts.map +1 -0
  542. package/dist/shared/plugins/registries/useSettingsRegistry.d.ts +3 -0
  543. package/dist/shared/plugins/registries/useSettingsRegistry.d.ts.map +1 -0
  544. package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts +3 -0
  545. package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts.map +1 -0
  546. package/dist/shared/plugins/registries/useToolbarRegistry.d.ts +3 -0
  547. package/dist/shared/plugins/registries/useToolbarRegistry.d.ts.map +1 -0
  548. package/dist/shared/plugins/registries/useWidgetRegistry.d.ts +3 -0
  549. package/dist/shared/plugins/registries/useWidgetRegistry.d.ts.map +1 -0
  550. package/dist/shared/plugins/runtime.d.ts +68 -0
  551. package/dist/shared/plugins/runtime.d.ts.map +1 -0
  552. package/dist/shared/plugins/types.d.ts +228 -0
  553. package/dist/shared/plugins/types.d.ts.map +1 -0
  554. package/dist/shared/providers/AppShellProvider.d.ts +96 -0
  555. package/dist/shared/providers/AppShellProvider.d.ts.map +1 -0
  556. package/dist/shared/providers/MicrofrontendProvider.d.ts +41 -0
  557. package/dist/shared/providers/MicrofrontendProvider.d.ts.map +1 -0
  558. package/dist/shared/providers/index.d.ts +12 -0
  559. package/dist/shared/providers/index.d.ts.map +1 -0
  560. package/dist/shared/providers/shell/ActiveContextProvider.d.ts +88 -0
  561. package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +1 -0
  562. package/dist/shared/providers/shell/ActiveContextStorage.d.ts +45 -0
  563. package/dist/shared/providers/shell/ActiveContextStorage.d.ts.map +1 -0
  564. package/dist/shared/providers/shell/AppShellContext.d.ts +19 -0
  565. package/dist/shared/providers/shell/AppShellContext.d.ts.map +1 -0
  566. package/dist/shared/providers/shell/AuthBridgeClient.d.ts +121 -0
  567. package/dist/shared/providers/shell/AuthBridgeClient.d.ts.map +1 -0
  568. package/dist/shared/providers/shell/AuthProvider.d.ts +58 -0
  569. package/dist/shared/providers/shell/AuthProvider.d.ts.map +1 -0
  570. package/dist/shared/providers/shell/AuthTokenProvider.d.ts +22 -0
  571. package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +1 -0
  572. package/dist/shared/providers/shell/ContextManagerProvider.d.ts +56 -0
  573. package/dist/shared/providers/shell/ContextManagerProvider.d.ts.map +1 -0
  574. package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts +20 -0
  575. package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts.map +1 -0
  576. package/dist/shared/providers/shell/GatewayRouter.d.ts +31 -0
  577. package/dist/shared/providers/shell/GatewayRouter.d.ts.map +1 -0
  578. package/dist/shared/providers/shell/GlobalUiProvider.d.ts +46 -0
  579. package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +1 -0
  580. package/dist/shared/providers/shell/I18nProvider.d.ts +75 -0
  581. package/dist/shared/providers/shell/I18nProvider.d.ts.map +1 -0
  582. package/dist/shared/providers/shell/MultiGatewayProvider.d.ts +25 -0
  583. package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +1 -0
  584. package/dist/shared/providers/shell/ObservabilityProvider.d.ts +15 -0
  585. package/dist/shared/providers/shell/ObservabilityProvider.d.ts.map +1 -0
  586. package/dist/shared/providers/shell/PageConversationContextProvider.d.ts +22 -0
  587. package/dist/shared/providers/shell/PageConversationContextProvider.d.ts.map +1 -0
  588. package/dist/shared/providers/shell/PermissionProvider.d.ts +227 -0
  589. package/dist/shared/providers/shell/PermissionProvider.d.ts.map +1 -0
  590. package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts +8 -0
  591. package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts.map +1 -0
  592. package/dist/shared/providers/shell/ProfileI18nBridge.d.ts +15 -0
  593. package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +1 -0
  594. package/dist/shared/providers/shell/ProfileStorageManager.d.ts +107 -0
  595. package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +1 -0
  596. package/dist/shared/providers/shell/ShellUiProvider.d.ts +47 -0
  597. package/dist/shared/providers/shell/ShellUiProvider.d.ts.map +1 -0
  598. package/dist/shared/providers/shell/ThemeProvider.d.ts +29 -0
  599. package/dist/shared/providers/shell/ThemeProvider.d.ts.map +1 -0
  600. package/dist/shared/providers/shell/authProvider/bridgeStateSync.d.ts +6 -0
  601. package/dist/shared/providers/shell/authProvider/bridgeStateSync.d.ts.map +1 -0
  602. package/dist/shared/providers/shell/authProvider/jwt.d.ts +6 -0
  603. package/dist/shared/providers/shell/authProvider/jwt.d.ts.map +1 -0
  604. package/dist/shared/providers/shell/authProvider/ssoRelay.d.ts +17 -0
  605. package/dist/shared/providers/shell/authProvider/ssoRelay.d.ts.map +1 -0
  606. package/dist/shared/providers/shell/authProvider/useAuthActions.d.ts +38 -0
  607. package/dist/shared/providers/shell/authProvider/useAuthActions.d.ts.map +1 -0
  608. package/dist/shared/providers/shell/authProvider/useBridgeInitialization.d.ts +18 -0
  609. package/dist/shared/providers/shell/authProvider/useBridgeInitialization.d.ts.map +1 -0
  610. package/dist/shared/providers/shell/authProvider/useRemoteSLO.d.ts +13 -0
  611. package/dist/shared/providers/shell/authProvider/useRemoteSLO.d.ts.map +1 -0
  612. package/dist/shared/providers/shell/authProvider/useStorageSync.d.ts +15 -0
  613. package/dist/shared/providers/shell/authProvider/useStorageSync.d.ts.map +1 -0
  614. package/dist/shared/providers/shell/authProvider/useTokenExpiryTimer.d.ts +14 -0
  615. package/dist/shared/providers/shell/authProvider/useTokenExpiryTimer.d.ts.map +1 -0
  616. package/dist/shared/providers/shell/index.d.ts +45 -0
  617. package/dist/shared/providers/shell/index.d.ts.map +1 -0
  618. package/dist/shared/shims/assert.d.ts +19 -0
  619. package/dist/shared/shims/assert.d.ts.map +1 -0
  620. package/dist/shared/shims/index.d.ts +25 -0
  621. package/dist/shared/shims/index.d.ts.map +1 -0
  622. package/dist/shared/shims/process.d.ts +20 -0
  623. package/dist/shared/shims/process.d.ts.map +1 -0
  624. package/dist/shared/shims/use-sync-external-store-shim.d.ts +7 -0
  625. package/dist/shared/shims/use-sync-external-store-shim.d.ts.map +1 -0
  626. package/dist/shared/shims/use-sync-external-store-with-selector.d.ts +17 -0
  627. package/dist/shared/shims/use-sync-external-store-with-selector.d.ts.map +1 -0
  628. package/dist/shared/shims/util.d.ts +135 -0
  629. package/dist/shared/shims/util.d.ts.map +1 -0
  630. package/dist/shared/tours/TourInitializer.d.ts +6 -0
  631. package/dist/shared/tours/TourInitializer.d.ts.map +1 -0
  632. package/dist/shared/tours/TourPlayer.d.ts +49 -0
  633. package/dist/shared/tours/TourPlayer.d.ts.map +1 -0
  634. package/dist/shared/tours/TourPlayerProvider.d.ts +26 -0
  635. package/dist/shared/tours/TourPlayerProvider.d.ts.map +1 -0
  636. package/dist/shared/tours/TourSpotlight.d.ts +8 -0
  637. package/dist/shared/tours/TourSpotlight.d.ts.map +1 -0
  638. package/dist/shared/tours/TourTooltip.d.ts +7 -0
  639. package/dist/shared/tours/TourTooltip.d.ts.map +1 -0
  640. package/dist/shared/tours/TourTrigger.d.ts +15 -0
  641. package/dist/shared/tours/TourTrigger.d.ts.map +1 -0
  642. package/dist/shared/tours/ToursContext.d.ts +38 -0
  643. package/dist/shared/tours/ToursContext.d.ts.map +1 -0
  644. package/dist/shared/tours/index.d.ts +53 -0
  645. package/dist/shared/tours/index.d.ts.map +1 -0
  646. package/dist/shared/tours/progress.d.ts +7 -0
  647. package/dist/shared/tours/progress.d.ts.map +1 -0
  648. package/dist/shared/tours/routeCatalog.d.ts +42 -0
  649. package/dist/shared/tours/routeCatalog.d.ts.map +1 -0
  650. package/dist/shared/tours/tourTrigger/DesktopTourDropdown.d.ts +9 -0
  651. package/dist/shared/tours/tourTrigger/DesktopTourDropdown.d.ts.map +1 -0
  652. package/dist/shared/tours/tourTrigger/MobileTourSheet.d.ts +10 -0
  653. package/dist/shared/tours/tourTrigger/MobileTourSheet.d.ts.map +1 -0
  654. package/dist/shared/tours/tourTrigger/TourListItemDesktop.d.ts +8 -0
  655. package/dist/shared/tours/tourTrigger/TourListItemDesktop.d.ts.map +1 -0
  656. package/dist/shared/tours/tourTrigger/TourListItemMobile.d.ts +8 -0
  657. package/dist/shared/tours/tourTrigger/TourListItemMobile.d.ts.map +1 -0
  658. package/dist/shared/tours/tourTrigger/TourStatusChip.d.ts +5 -0
  659. package/dist/shared/tours/tourTrigger/TourStatusChip.d.ts.map +1 -0
  660. package/dist/shared/tours/tourTrigger/TourTriggerButton.d.ts +8 -0
  661. package/dist/shared/tours/tourTrigger/TourTriggerButton.d.ts.map +1 -0
  662. package/dist/shared/tours/toursContext/errors.d.ts +3 -0
  663. package/dist/shared/tours/toursContext/errors.d.ts.map +1 -0
  664. package/dist/shared/tours/toursContext/gql.d.ts +8 -0
  665. package/dist/shared/tours/toursContext/gql.d.ts.map +1 -0
  666. package/dist/shared/tours/toursContext/route.d.ts +5 -0
  667. package/dist/shared/tours/toursContext/route.d.ts.map +1 -0
  668. package/dist/shared/tours/toursContext/session.d.ts +3 -0
  669. package/dist/shared/tours/toursContext/session.d.ts.map +1 -0
  670. package/dist/shared/tours/toursContext/useIdleReady.d.ts +2 -0
  671. package/dist/shared/tours/toursContext/useIdleReady.d.ts.map +1 -0
  672. package/dist/shared/tours/toursContext/useTourMutations.d.ts +29 -0
  673. package/dist/shared/tours/toursContext/useTourMutations.d.ts.map +1 -0
  674. package/dist/shared/tours/types.d.ts +215 -0
  675. package/dist/shared/tours/types.d.ts.map +1 -0
  676. package/dist/shared/tours/useTourPlayer.d.ts +38 -0
  677. package/dist/shared/tours/useTourPlayer.d.ts.map +1 -0
  678. package/dist/shared/types/index.d.ts +185 -0
  679. package/dist/shared/types/index.d.ts.map +1 -0
  680. package/dist/shared/utils/apollo.d.ts +26 -0
  681. package/dist/shared/utils/apollo.d.ts.map +1 -0
  682. package/dist/shared/utils/appHelpers.d.ts +34 -0
  683. package/dist/shared/utils/appHelpers.d.ts.map +1 -0
  684. package/dist/shared/utils/authCookie.d.ts +35 -0
  685. package/dist/shared/utils/authCookie.d.ts.map +1 -0
  686. package/dist/shared/utils/authErrorHandling.d.ts +65 -0
  687. package/dist/shared/utils/authErrorHandling.d.ts.map +1 -0
  688. package/dist/shared/utils/cn.d.ts +6 -0
  689. package/dist/shared/utils/cn.d.ts.map +1 -0
  690. package/dist/shared/utils/format.d.ts +98 -0
  691. package/dist/shared/utils/format.d.ts.map +1 -0
  692. package/dist/shared/utils/gatewayFetchRewrite.d.ts +53 -0
  693. package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +1 -0
  694. package/dist/shared/utils/index.d.ts +26 -0
  695. package/dist/shared/utils/index.d.ts.map +1 -0
  696. package/dist/shared/utils/lazyWithRetry.d.ts +43 -0
  697. package/dist/shared/utils/lazyWithRetry.d.ts.map +1 -0
  698. package/dist/shared/utils/loggerInit.d.ts +15 -0
  699. package/dist/shared/utils/loggerInit.d.ts.map +1 -0
  700. package/dist/shared/utils/mockData.d.ts +40 -0
  701. package/dist/shared/utils/mockData.d.ts.map +1 -0
  702. package/dist/shared/utils/profileScopedStorage.d.ts +42 -0
  703. package/dist/shared/utils/profileScopedStorage.d.ts.map +1 -0
  704. package/dist/shared/utils/quotaErrors.d.ts +81 -0
  705. package/dist/shared/utils/quotaErrors.d.ts.map +1 -0
  706. package/dist/shared/utils/quotaErrors.js +48 -10
  707. package/dist/shared/utils/tokens.d.ts +166 -0
  708. package/dist/shared/utils/tokens.d.ts.map +1 -0
  709. package/dist/shared-components.d.ts +2 -0
  710. package/dist/shared-components.js +3 -1
  711. package/dist/shared-config.d.ts +2 -0
  712. package/dist/shared-events.d.ts +2 -0
  713. package/dist/shared-feature-flags.d.ts +2 -0
  714. package/dist/shared-geography.d.ts +2 -0
  715. package/dist/shared-graphql.d.ts +2 -0
  716. package/dist/shared-hooks-shell.d.ts +2 -0
  717. package/dist/shared-hooks.d.ts +2 -0
  718. package/dist/shared-hooks.js +6 -5
  719. package/dist/shared-keyboard.d.ts +2 -0
  720. package/dist/shared-logger.d.ts +2 -0
  721. package/dist/shared-motion.d.ts +2 -0
  722. package/dist/shared-native.d.ts +2 -0
  723. package/dist/shared-pages.d.ts +2 -0
  724. package/dist/shared-plugins.d.ts +2 -0
  725. package/dist/shared-providers-shell.d.ts +2 -0
  726. package/dist/shared-providers.d.ts +2 -0
  727. package/dist/shared-shims.d.ts +2 -0
  728. package/dist/shared-tours.d.ts +2 -0
  729. package/dist/shared-types.d.ts +1 -0
  730. package/dist/shared-utils.d.ts +2 -0
  731. package/dist/shared.d.ts +2 -0
  732. package/dist/shared.js +57 -54
  733. package/dist/storage/SaveToFilesButton.d.ts +55 -0
  734. package/dist/storage/SaveToFilesButton.d.ts.map +1 -0
  735. package/dist/storage/SaveToFilesDialog.d.ts +13 -0
  736. package/dist/storage/SaveToFilesDialog.d.ts.map +1 -0
  737. package/dist/storage/StorageFolderPicker.d.ts +23 -0
  738. package/dist/storage/StorageFolderPicker.d.ts.map +1 -0
  739. package/dist/storage/index.d.ts +10 -0
  740. package/dist/storage/index.d.ts.map +1 -0
  741. package/dist/storage/uploadBlob.d.ts +21 -0
  742. package/dist/storage/uploadBlob.d.ts.map +1 -0
  743. package/dist/storage/useSaveToFiles.d.ts +17 -0
  744. package/dist/storage/useSaveToFiles.d.ts.map +1 -0
  745. package/dist/tag/TagBadge.d.ts +17 -0
  746. package/dist/tag/TagBadge.d.ts.map +1 -0
  747. package/dist/tag/TagsWidget.d.ts +103 -0
  748. package/dist/tag/TagsWidget.d.ts.map +1 -0
  749. package/dist/tag/index.d.ts +3 -0
  750. package/dist/tag/index.d.ts.map +1 -0
  751. package/dist/tag/tagsWidget/AddTagTrigger.d.ts +5 -0
  752. package/dist/tag/tagsWidget/AddTagTrigger.d.ts.map +1 -0
  753. package/dist/tag/tagsWidget/TagBadgeList.d.ts +7 -0
  754. package/dist/tag/tagsWidget/TagBadgeList.d.ts.map +1 -0
  755. package/dist/tag/tagsWidget/TagSearchPopover.d.ts +17 -0
  756. package/dist/tag/tagsWidget/TagSearchPopover.d.ts.map +1 -0
  757. package/dist/tag/tagsWidget/operations.d.ts +13 -0
  758. package/dist/tag/tagsWidget/operations.d.ts.map +1 -0
  759. package/dist/tag/tagsWidget/useVocabResolver.d.ts +6 -0
  760. package/dist/tag/tagsWidget/useVocabResolver.d.ts.map +1 -0
  761. package/dist/tag.d.ts +2 -0
  762. package/dist/ui/accordion.d.ts +8 -0
  763. package/dist/ui/accordion.d.ts.map +1 -0
  764. package/dist/ui/alert-dialog.d.ts +15 -0
  765. package/dist/ui/alert-dialog.d.ts.map +1 -0
  766. package/dist/ui/badge.d.ts +10 -0
  767. package/dist/ui/badge.d.ts.map +1 -0
  768. package/dist/ui/button.d.ts +12 -0
  769. package/dist/ui/button.d.ts.map +1 -0
  770. package/dist/ui/card.d.ts +21 -0
  771. package/dist/ui/card.d.ts.map +1 -0
  772. package/dist/ui/checkbox.d.ts +5 -0
  773. package/dist/ui/checkbox.d.ts.map +1 -0
  774. package/dist/ui/command.d.ts +19 -0
  775. package/dist/ui/command.d.ts.map +1 -0
  776. package/dist/ui/dialog.d.ts +16 -0
  777. package/dist/ui/dialog.d.ts.map +1 -0
  778. package/dist/ui/dropdown-menu.d.ts +68 -0
  779. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  780. package/dist/ui/index.d.ts +25 -0
  781. package/dist/ui/index.d.ts.map +1 -0
  782. package/dist/ui/input.d.ts +7 -0
  783. package/dist/ui/input.d.ts.map +1 -0
  784. package/dist/ui/label.d.ts +12 -0
  785. package/dist/ui/label.d.ts.map +1 -0
  786. package/dist/ui/popover.d.ts +8 -0
  787. package/dist/ui/popover.d.ts.map +1 -0
  788. package/dist/ui/scroll-area.d.ts +6 -0
  789. package/dist/ui/scroll-area.d.ts.map +1 -0
  790. package/dist/ui/select.d.ts +49 -0
  791. package/dist/ui/select.d.ts.map +1 -0
  792. package/dist/ui/separator.d.ts +5 -0
  793. package/dist/ui/separator.d.ts.map +1 -0
  794. package/dist/ui/sheet.d.ts +14 -0
  795. package/dist/ui/sheet.d.ts.map +1 -0
  796. package/dist/ui/skeleton.d.ts +4 -0
  797. package/dist/ui/skeleton.d.ts.map +1 -0
  798. package/dist/ui/sonner.d.ts +4 -0
  799. package/dist/ui/sonner.d.ts.map +1 -0
  800. package/dist/ui/spinner.d.ts +6 -0
  801. package/dist/ui/spinner.d.ts.map +1 -0
  802. package/dist/ui/switch.d.ts +5 -0
  803. package/dist/ui/switch.d.ts.map +1 -0
  804. package/dist/ui/table.d.ts +27 -0
  805. package/dist/ui/table.d.ts.map +1 -0
  806. package/dist/ui/tabs.d.ts +8 -0
  807. package/dist/ui/tabs.d.ts.map +1 -0
  808. package/dist/ui/textarea.d.ts +7 -0
  809. package/dist/ui/textarea.d.ts.map +1 -0
  810. package/dist/ui/tooltip.d.ts +13 -0
  811. package/dist/ui/tooltip.d.ts.map +1 -0
  812. package/dist/ui.d.ts +2 -0
  813. package/dist/utils/cn.d.ts +15 -0
  814. package/dist/utils/cn.d.ts.map +1 -0
  815. package/dist/utils/index.d.ts +3 -0
  816. package/dist/utils/index.d.ts.map +1 -0
  817. package/package.json +1 -1
@@ -0,0 +1,122 @@
1
+ import { ApolloClient, InMemoryCache } from '@apollo/client/core';
2
+ import { Gateway } from '../config';
3
+ /**
4
+ * Check if the network circuit breaker is currently open (backend unreachable).
5
+ * Useful for showing "backend offline" banners in the UI.
6
+ */
7
+ export declare function isNetworkCircuitOpen(): boolean;
8
+ export type { Gateway } from '../config';
9
+ export interface CreateClientOptions {
10
+ /** Gateway type: 'workspace' or 'global' */
11
+ gateway: Gateway;
12
+ /** Optional base URL override (defaults to gateway's defaultBaseUrl) */
13
+ baseUrl?: string;
14
+ /** Authorization token or token getter function */
15
+ authToken?: string | (() => string | null);
16
+ /** Workspace token or getter for X-Workspace-Authorization header (workspace gateway only) */
17
+ workspaceToken?: string | (() => string | null);
18
+ /** Locale code or getter function for Accept-Language header */
19
+ locale?: string | (() => string | null);
20
+ /** Geography getter for x-geo-* headers (country, currency, timezone) */
21
+ geography?: () => {
22
+ country?: string;
23
+ currency?: string;
24
+ timezone?: string;
25
+ } | null;
26
+ /** Organization ID or getter function for x-org-id header (global gateway) */
27
+ organizationId?: string | (() => string | null);
28
+ /** Product ID or getter function for x-product-id header (for product-level isolation) */
29
+ productId?: string | (() => string | null);
30
+ /** Workspace ID or getter function for x-workspace-id header (workspace context) */
31
+ workspaceId?: string | (() => string | null);
32
+ /** Tenant ID or getter function for x-tenant-id header (tenant context) */
33
+ tenantId?: string | (() => string | null);
34
+ /** Optional cache instance for sharing between clients */
35
+ cache?: InMemoryCache;
36
+ /** Enable SSE subscriptions */
37
+ enableSubscriptions?: boolean;
38
+ /** SSE endpoint URL override (defaults to gateway's sse path) */
39
+ sseUrl?: string;
40
+ /** Callback when authentication error occurs */
41
+ onAuthError?: () => void;
42
+ /**
43
+ * Callback to attempt token refresh when a 401/UNAUTHENTICATED error occurs.
44
+ * If provided, the ErrorLink will call this before invoking onAuthError,
45
+ * and will retry the failed operation with the new token on success.
46
+ * Should return `true` if refresh succeeded (token updated in storage),
47
+ * or `false` if refresh failed (triggers onAuthError).
48
+ */
49
+ onRefreshToken?: () => Promise<boolean>;
50
+ /** Callback when network error occurs */
51
+ onNetworkError?: (error: Error) => void;
52
+ /** Callback when network status changes (circuit breaker open/closed) */
53
+ onNetworkStatusChange?: (isOffline: boolean) => void;
54
+ /** Maximum retry attempts for failed requests (default: 3) */
55
+ maxRetryAttempts?: number;
56
+ /**
57
+ * Maximum number of operations to batch together (default: 10).
58
+ * Set to 1 to disable batching.
59
+ */
60
+ batchMax?: number;
61
+ /**
62
+ * Time window (ms) to collect operations before sending a batch.
63
+ * Defaults to a longer page-load burst window and a shorter steady-state window.
64
+ */
65
+ batchInterval?: number;
66
+ /** Enable debug logging */
67
+ debug?: boolean;
68
+ }
69
+ /**
70
+ * Creates an Apollo Client configured for a Burdenoff gateway
71
+ *
72
+ * @example Basic usage
73
+ * ```ts
74
+ * // Workspace gateway client
75
+ * const workspaceClient = createGraphQLClient({
76
+ * gateway: 'workspace',
77
+ * authToken: 'your-jwt-token',
78
+ * });
79
+ *
80
+ * // Global gateway client
81
+ * const globalClient = createGraphQLClient({
82
+ * gateway: 'global',
83
+ * authToken: () => localStorage.getItem('token'),
84
+ * });
85
+ * ```
86
+ *
87
+ * @example With subscriptions
88
+ * ```ts
89
+ * const client = createGraphQLClient({
90
+ * gateway: 'workspace',
91
+ * authToken: token,
92
+ * enableSubscriptions: true,
93
+ * });
94
+ * ```
95
+ */
96
+ export declare function createGraphQLClient(options: CreateClientOptions): ApolloClient;
97
+ export interface AppClientConfig {
98
+ workspaceBaseUrl?: string;
99
+ globalBaseUrl?: string;
100
+ authToken?: string | (() => string | null);
101
+ enableSubscriptions?: boolean;
102
+ onAuthError?: () => void;
103
+ debug?: boolean;
104
+ }
105
+ /**
106
+ * Initialize app-level Apollo clients
107
+ * Call this once during app initialization
108
+ */
109
+ export declare function initializeAppClients(config: AppClientConfig): void;
110
+ /**
111
+ * Get the workspace gateway Apollo client
112
+ */
113
+ export declare function getWorkspaceClient(): ApolloClient;
114
+ /**
115
+ * Get the global gateway Apollo client
116
+ */
117
+ export declare function getGlobalClient(): ApolloClient;
118
+ /**
119
+ * Reset all singleton clients (useful for logout or testing)
120
+ */
121
+ export declare function resetAppClients(): void;
122
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/client.ts"],"names":[],"mappings":"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"}
@@ -6,53 +6,53 @@ import { SSELink as a } from "./links/sse-link.js";
6
6
  import { onError as o } from "@apollo/client/link/error";
7
7
  import { RetryLink as s } from "@apollo/client/link/retry";
8
8
  import { setContext as c } from "@apollo/client/link/context";
9
- import { ApolloClient as l, ApolloLink as u, InMemoryCache as ee, Observable as d, from as f, split as p } from "@apollo/client/core";
10
- import { getMainDefinition as m } from "@apollo/client/utilities";
11
- import { print as h } from "graphql";
9
+ import { ApolloClient as l, ApolloLink as u, InMemoryCache as d, Observable as f, from as p, split as ee } from "@apollo/client/core";
10
+ import { getMainDefinition as te } from "@apollo/client/utilities";
11
+ import { print as m } from "graphql";
12
12
  //#region src/shared/graphql/client.ts
13
- var g = {
13
+ var h = {
14
14
  consecutiveFailures: 0,
15
15
  lastFailureTime: 0,
16
16
  isOpen: !1
17
- }, _ = 5, v = 3e4;
18
- function te() {
19
- return g.consecutiveFailures++, g.lastFailureTime = Date.now(), g.consecutiveFailures >= _ && (g.isOpen = !0), g.isOpen;
17
+ }, g = 5, _ = 3e4;
18
+ function ne() {
19
+ return h.consecutiveFailures++, h.lastFailureTime = Date.now(), h.consecutiveFailures >= g && (h.isOpen = !0), h.isOpen;
20
20
  }
21
- function y() {
22
- g.consecutiveFailures = 0, g.isOpen = !1;
21
+ function v() {
22
+ h.consecutiveFailures = 0, h.isOpen = !1;
23
23
  }
24
- function b() {
25
- return g.isOpen ? Date.now() - g.lastFailureTime > v ? (g.isOpen = !1, g.consecutiveFailures = 0, !1) : !0 : !1;
24
+ function y() {
25
+ return h.isOpen ? Date.now() - h.lastFailureTime > _ ? (h.isOpen = !1, h.consecutiveFailures = 0, !1) : !0 : !1;
26
26
  }
27
- function x(e) {
27
+ function b(e) {
28
28
  if (!e || typeof e != "object") return null;
29
29
  let t = e.workspaceId;
30
30
  return typeof t == "string" && t.trim() ? t : null;
31
31
  }
32
- function S(e) {
32
+ function x(e) {
33
33
  let t = e.headers;
34
34
  if (!t || typeof t != "object" || Array.isArray(t)) return {};
35
35
  let n = {};
36
36
  for (let [e, r] of Object.entries(t)) typeof r == "string" && (n[e] = r);
37
37
  return n;
38
38
  }
39
- function C(e) {
39
+ function S(e) {
40
40
  let t = e.fetchOptions;
41
41
  if (!t || typeof t != "object" || !("signal" in t)) return;
42
42
  let n = t.signal;
43
43
  return n instanceof AbortSignal ? n : void 0;
44
44
  }
45
- function ne({ uri: e, batchMax: t, batchInterval: n }) {
46
- return new u((r) => new d((a) => {
47
- let o = r.getContext(), s = { query: h(r.query) };
45
+ function re({ uri: e, batchMax: t, batchInterval: n }) {
46
+ return new u((r) => new f((a) => {
47
+ let o = r.getContext(), s = { query: m(r.query) };
48
48
  r.operationName && (s.operationName = r.operationName);
49
49
  let c = r.variables ?? {}, l = r.extensions ?? {};
50
50
  Object.keys(c).length > 0 && (s.variables = c), Object.keys(l).length > 0 && (s.extensions = l);
51
51
  let u = !1;
52
52
  return i(e, {
53
53
  "content-type": "application/json",
54
- ...S(o)
55
- }, s, C(o), {
54
+ ...x(o)
55
+ }, s, S(o), {
56
56
  batchMax: t,
57
57
  batchInterval: n
58
58
  }).then((e) => {
@@ -64,25 +64,25 @@ function ne({ uri: e, batchMax: t, batchInterval: n }) {
64
64
  };
65
65
  }));
66
66
  }
67
- function w(i) {
68
- let { gateway: h, baseUrl: _, authToken: v, workspaceToken: S, locale: C, geography: w, organizationId: T, productId: E, workspaceId: D, tenantId: O, cache: k, enableSubscriptions: A = !1, sseUrl: j, onAuthError: M, onRefreshToken: N, onNetworkError: P, onNetworkStatusChange: F, maxRetryAttempts: re = 3, batchMax: ie = 10, batchInterval: ae, debug: I = !1 } = i, L = e[h], R = ne({
69
- uri: n(t(_, h)),
67
+ function C(i) {
68
+ let { gateway: m, baseUrl: g, authToken: _, workspaceToken: x, locale: S, geography: C, organizationId: w, productId: T, workspaceId: E, tenantId: D, cache: O, enableSubscriptions: k = !1, sseUrl: A, onAuthError: j, onRefreshToken: M, onNetworkError: N, onNetworkStatusChange: P, maxRetryAttempts: F = 3, batchMax: ie = 10, batchInterval: ae, debug: I = !1 } = i, L = e[m], R = re({
69
+ uri: n(t(g, m)),
70
70
  batchMax: ie,
71
71
  batchInterval: ae
72
72
  }), z = c((e, t) => {
73
- let n = t.headers ?? {}, r = typeof v == "function" ? v() : v;
73
+ let n = t.headers ?? {}, r = typeof _ == "function" ? _() : _;
74
74
  return { headers: {
75
75
  ...n,
76
76
  ...r ? { authorization: `Bearer ${r}` } : {}
77
77
  } };
78
78
  }), B = c((e, t) => {
79
- let n = t.headers ?? {}, r = typeof C == "function" ? C() : C;
79
+ let n = t.headers ?? {}, r = typeof S == "function" ? S() : S;
80
80
  return { headers: {
81
81
  ...n,
82
82
  ...r ? { "accept-language": r } : {}
83
83
  } };
84
84
  }), V = c((e, t) => {
85
- let n = t.headers ?? {}, r = typeof w == "function" ? w() : null;
85
+ let n = t.headers ?? {}, r = typeof C == "function" ? C() : null;
86
86
  return { headers: {
87
87
  ...n,
88
88
  ...r?.country ? { "x-geo-country": r.country } : {},
@@ -90,31 +90,31 @@ function w(i) {
90
90
  ...r?.timezone ? { "x-geo-timezone": r.timezone } : {}
91
91
  } };
92
92
  }), H = c((e, t) => {
93
- let n = t.headers ?? {}, r = typeof T == "function" ? T() : T;
93
+ let n = t.headers ?? {}, r = typeof w == "function" ? w() : w;
94
94
  return { headers: {
95
95
  ...n,
96
96
  ...r ? { "x-org-id": r } : {}
97
97
  } };
98
98
  }), U = c((e, t) => {
99
- let n = t.headers ?? {}, r = typeof E == "function" ? E() : E;
99
+ let n = t.headers ?? {}, r = typeof T == "function" ? T() : T;
100
100
  return { headers: {
101
101
  ...n,
102
102
  ...r ? { "x-product-id": r } : {}
103
103
  } };
104
104
  }), W = c((e, t) => {
105
- let n = t.headers ?? {}, r = (typeof D == "function" ? D() : D) || x(e.variables);
105
+ let n = t.headers ?? {}, r = (typeof E == "function" ? E() : E) || b(e.variables);
106
106
  return { headers: {
107
107
  ...n,
108
108
  ...r ? { "x-workspace-id": r } : {}
109
109
  } };
110
110
  }), G = c((e, t) => {
111
- let n = t.headers ?? {}, r = typeof O == "function" ? O() : O;
111
+ let n = t.headers ?? {}, r = typeof D == "function" ? D() : D;
112
112
  return { headers: {
113
113
  ...n,
114
114
  ...r ? { "x-tenant-id": r } : {}
115
115
  } };
116
116
  }), K = c((e, t) => {
117
- let n = t.headers ?? {}, i = typeof S == "function" ? S() : S, a = r(i, { workspaceId: typeof D == "function" ? D() : D }) ? i : null;
117
+ let n = t.headers ?? {}, i = typeof x == "function" ? x() : x, a = r(i, { workspaceId: typeof E == "function" ? E() : E }) ? i : null;
118
118
  return { headers: {
119
119
  ...n,
120
120
  ...a ? { "x-workspace-authorization": `Bearer ${a}` } : {}
@@ -126,25 +126,25 @@ function w(i) {
126
126
  jitter: !0
127
127
  },
128
128
  attempts: {
129
- max: re,
129
+ max: F,
130
130
  retryIf: (e) => {
131
- if (b() || !e) return !1;
131
+ if (y() || !e) return !1;
132
132
  let t = e.message?.toLowerCase?.() ?? "";
133
133
  return !(t.includes("401") || t.includes("403") || t.includes("unauthorized") || t.includes("forbidden") || t.includes("unauthenticated"));
134
134
  }
135
135
  }
136
136
  }), J = new u((e, t) => {
137
- if (b()) {
137
+ if (y()) {
138
138
  I && console.warn("[CircuitBreaker] Circuit is open, blocking request:", e.operationName);
139
139
  let t = /* @__PURE__ */ Error("Network circuit breaker is open — backend appears unreachable. Retrying in 30 seconds.");
140
- return P?.(t), new d((e) => {
140
+ return N?.(t), new f((e) => {
141
141
  e.error(t);
142
142
  });
143
143
  }
144
- return new d((n) => {
144
+ return new f((n) => {
145
145
  let r = t(e).subscribe({
146
146
  next: (e) => {
147
- y(), g.consecutiveFailures === 0 && F?.(!1), n.next(e);
147
+ v(), h.consecutiveFailures === 0 && P?.(!1), n.next(e);
148
148
  },
149
149
  error: (e) => {
150
150
  n.error(e);
@@ -166,30 +166,38 @@ function w(i) {
166
166
  if (r) {
167
167
  let i = r.some((e) => e.extensions?.code === "UNAUTHENTICATED" || e.message.includes("Unauthorized") || e.message.includes("Unauthenticated"));
168
168
  for (let e of r) I && console.error("[GraphQL Error]:", e.message);
169
- if (i && N) return new d((r) => {
169
+ let a = new Set(["STORAGE_QUOTA_EXCEEDED", "RESOURCE_CAP_EXCEEDED"]);
170
+ for (let e of r) {
171
+ let t = e.extensions?.code;
172
+ if (t && a.has(t) && typeof window < "u") {
173
+ window.dispatchEvent(new CustomEvent("burdenoff:upgrade-prompt", { detail: { extensions: e.extensions } }));
174
+ break;
175
+ }
176
+ }
177
+ if (i && M) return new f((r) => {
170
178
  (async () => {
171
179
  if (Y) if (await new Promise((e) => {
172
180
  X.push({ resolve: e });
173
181
  })) {
174
182
  let e = n(t).subscribe(r);
175
183
  return () => e.unsubscribe();
176
- } else return M?.(), r.error(e), () => {};
184
+ } else return j?.(), r.error(e), () => {};
177
185
  Y = !0;
178
186
  try {
179
- let i = await N();
187
+ let i = await M();
180
188
  if (Y = !1, i) {
181
189
  Z(!0);
182
190
  let e = n(t).subscribe(r);
183
191
  return () => e.unsubscribe();
184
- } else return Z(!1), M?.(), r.error(e), () => {};
192
+ } else return Z(!1), j?.(), r.error(e), () => {};
185
193
  } catch {
186
- return Y = !1, Z(!1), M?.(), r.error(e), () => {};
194
+ return Y = !1, Z(!1), j?.(), r.error(e), () => {};
187
195
  }
188
196
  })();
189
197
  });
190
- i && M?.(), y();
191
- } else I && console.error("[Network Error]:", e), te() && F?.(!0), e instanceof Error ? P?.(e) : P?.(Error(String(e)));
192
- }), $ = f([
198
+ i && j?.(), v();
199
+ } else I && console.error("[Network Error]:", e), ne() && P?.(!0), e instanceof Error ? N?.(e) : N?.(Error(String(e)));
200
+ }), $ = p([
193
201
  q,
194
202
  J,
195
203
  Q,
@@ -203,9 +211,9 @@ function w(i) {
203
211
  V,
204
212
  R
205
213
  ]);
206
- if (A) {
207
- let e = j || n(_ || L.defaultBaseUrl) + L.sse;
208
- e && ($ = f([
214
+ if (k) {
215
+ let e = A || n(g || L.defaultBaseUrl) + L.sse;
216
+ e && ($ = p([
209
217
  q,
210
218
  J,
211
219
  Q,
@@ -217,8 +225,8 @@ function w(i) {
217
225
  G,
218
226
  B,
219
227
  V,
220
- p(({ query: e }) => {
221
- let t = m(e);
228
+ ee(({ query: e }) => {
229
+ let t = te(e);
222
230
  return t.kind === "OperationDefinition" && t.operation === "subscription";
223
231
  }, new a({
224
232
  url: e,
@@ -227,7 +235,7 @@ function w(i) {
227
235
  }), R)
228
236
  ]));
229
237
  }
230
- let oe = new ee({ typePolicies: {
238
+ let oe = new d({ typePolicies: {
231
239
  File: { keyFields: ["id"] },
232
240
  Folder: { keyFields: ["id"] },
233
241
  Tag: { keyFields: ["id"] },
@@ -261,7 +269,7 @@ function w(i) {
261
269
  } });
262
270
  return new l({
263
271
  link: $,
264
- cache: k ?? oe,
272
+ cache: O ?? oe,
265
273
  defaultOptions: {
266
274
  watchQuery: {
267
275
  fetchPolicy: "cache-and-network",
@@ -275,17 +283,17 @@ function w(i) {
275
283
  }
276
284
  });
277
285
  }
278
- var T = null, E = null;
279
- function D(e) {
286
+ var w = null, T = null;
287
+ function E(e) {
280
288
  let { workspaceBaseUrl: t, globalBaseUrl: n, authToken: r, enableSubscriptions: i = !1, onAuthError: a, debug: o = !1 } = e;
281
- T = w({
289
+ w = C({
282
290
  gateway: "workspace",
283
291
  baseUrl: t,
284
292
  authToken: r,
285
293
  enableSubscriptions: i,
286
294
  onAuthError: a,
287
295
  debug: o
288
- }), E = w({
296
+ }), T = C({
289
297
  gateway: "global",
290
298
  baseUrl: n,
291
299
  authToken: r,
@@ -293,16 +301,16 @@ function D(e) {
293
301
  debug: o
294
302
  });
295
303
  }
304
+ function D() {
305
+ if (!w) throw Error("Workspace client not initialized. Call initializeAppClients first.");
306
+ return w;
307
+ }
296
308
  function O() {
297
- if (!T) throw Error("Workspace client not initialized. Call initializeAppClients first.");
309
+ if (!T) throw Error("Global client not initialized. Call initializeAppClients first.");
298
310
  return T;
299
311
  }
300
312
  function k() {
301
- if (!E) throw Error("Global client not initialized. Call initializeAppClients first.");
302
- return E;
303
- }
304
- function A() {
305
- T &&= (T.clearStore(), null), E &&= (E.clearStore(), null);
313
+ w &&= (w.clearStore(), null), T &&= (T.clearStore(), null);
306
314
  }
307
315
  //#endregion
308
- export { w as createGraphQLClient, k as getGlobalClient, O as getWorkspaceClient, D as initializeAppClients, A as resetAppClients };
316
+ export { C as createGraphQLClient, O as getGlobalClient, D as getWorkspaceClient, E as initializeAppClients, k as resetAppClients };
@@ -0,0 +1,133 @@
1
+ import { Gateway } from '../config';
2
+ export interface GraphQLFetchOptions {
3
+ /** Gateway to target */
4
+ gateway: Gateway;
5
+ /** GraphQL query / mutation string */
6
+ query: string;
7
+ /** Variables for the operation */
8
+ variables?: Record<string, unknown>;
9
+ /** Operation name (optional, helps with debugging) */
10
+ operationName?: string;
11
+ /** Override auth token (if not provided, reads from profile storage) */
12
+ authToken?: string;
13
+ /**
14
+ * Include workspace token in X-Workspace-Authorization header.
15
+ * For `gateway: "workspace"`, this defaults to `true` (auto-attach) unless explicitly set to `false`.
16
+ * Pass `true` to auto-read from profile storage, or pass the token string directly.
17
+ */
18
+ workspaceToken?: boolean | string;
19
+ /**
20
+ * Include workspace ID in x-workspace-id header.
21
+ * Pass `true` to auto-read from profile context storage, or pass the workspace ID string directly.
22
+ * This is the "context workspace" - the user's current working context.
23
+ * For "target workspace" (e.g., viewing a specific workspace), use GraphQL arguments instead.
24
+ */
25
+ workspaceId?: boolean | string;
26
+ /**
27
+ * Include organization ID in x-org-id header.
28
+ * Pass `true` to auto-read from profile context storage, or pass the org ID string directly.
29
+ */
30
+ organizationId?: boolean | string;
31
+ /**
32
+ * Include tenant ID in x-tenant-id header.
33
+ * Pass `true` to auto-read from profile context storage, or pass the tenant ID string directly.
34
+ */
35
+ tenantId?: boolean | string;
36
+ /** Override locale (if not provided, reads from profile storage) */
37
+ locale?: string;
38
+ /** Override base URL (if not provided, reads from GATEWAYS config) */
39
+ baseUrl?: string;
40
+ /** Additional headers to merge (overrides auto-detected values) */
41
+ extraHeaders?: Record<string, string>;
42
+ /** AbortSignal for cancellation */
43
+ signal?: AbortSignal;
44
+ }
45
+ export interface GraphQLResponse<T = unknown> {
46
+ data: T | null;
47
+ errors?: Array<{
48
+ message: string;
49
+ locations?: Array<{
50
+ line: number;
51
+ column: number;
52
+ }>;
53
+ path?: Array<string | number>;
54
+ extensions?: Record<string, unknown>;
55
+ }>;
56
+ }
57
+ /** Read the active profile's access token from profile-scoped storage */
58
+ export declare function getStoredAuthToken(): string | null;
59
+ /** Read the active profile's workspace token from profile-scoped storage */
60
+ export declare function getStoredWorkspaceToken(): string | null;
61
+ /** Read the active profile's geography from profile-scoped storage */
62
+ export declare function getStoredGeography(): {
63
+ country?: string;
64
+ currency?: string;
65
+ timezone?: string;
66
+ } | null;
67
+ /** Read the active profile's locale from profile-scoped storage */
68
+ export declare function getStoredLocale(): string;
69
+ /** Read the active profile's context (workspaceId, organizationId, tenantId, projectId) from profile-scoped storage */
70
+ export declare function getStoredContext(): {
71
+ workspaceId?: string;
72
+ organizationId?: string;
73
+ tenantId?: string;
74
+ projectId?: string;
75
+ } | null;
76
+ /** Read the active profile's workspace ID.
77
+ * Reads from profile-scoped context (bf-p-{profileId}-context) which
78
+ * ActiveContextProvider now writes to on every setWorkspace() call and on init.
79
+ * Falls back to the ?workspace= URL param for page loads where the context
80
+ * hasn't been hydrated yet (mirrors MultiGatewayProvider.getWorkspaceId). */
81
+ export declare function getStoredWorkspaceId(): string | null;
82
+ /** Read the active profile's organization ID from profile context storage */
83
+ export declare function getStoredOrganizationId(): string | null;
84
+ /** Read the active profile's tenant ID from profile context storage */
85
+ export declare function getStoredTenantId(): string | null;
86
+ /** Resolve full gateway GraphQL URL */
87
+ export declare function resolveGatewayUrl(gateway: Gateway, baseUrl?: string): string;
88
+ export interface EnqueueGraphQLFetchOptions {
89
+ batchMax?: number;
90
+ batchInterval?: number;
91
+ }
92
+ export declare function enqueueGraphQLFetch(url: string, headers: Record<string, string>, body: Record<string, unknown>, signal?: AbortSignal, options?: EnqueueGraphQLFetchOptions): Promise<unknown>;
93
+ /**
94
+ * Make a GraphQL request with automatic auth + locale headers.
95
+ *
96
+ * @example Basic query (global gateway)
97
+ * ```ts
98
+ * const result = await graphqlFetch<{ myWorkspaces: Workspace[] }>({
99
+ * gateway: 'global',
100
+ * query: `query { myWorkspaces { id name } }`,
101
+ * });
102
+ * ```
103
+ *
104
+ * @example Workspace query with context headers (auto-read from storage)
105
+ * ```ts
106
+ * const result = await graphqlFetch<{ workspaceResources: Resource[] }>({
107
+ * gateway: 'workspace',
108
+ * query: WORKSPACE_RESOURCES_QUERY,
109
+ * workspaceId: true, // auto-reads from profile context storage -> x-workspace-id header
110
+ * });
111
+ * ```
112
+ *
113
+ * @example Workspace query with explicit workspace ID
114
+ * ```ts
115
+ * const result = await graphqlFetch<{ workspaceMembers: MemberList }>({
116
+ * gateway: 'workspace',
117
+ * query: WORKSPACE_MEMBERS_QUERY,
118
+ * variables: { workspaceId: targetWorkspaceId }, // Target workspace in arguments
119
+ * workspaceId: contextWorkspaceId, // Context workspace in header (for RBAC)
120
+ * });
121
+ * ```
122
+ *
123
+ * @example With explicit tokens (e.g. right after login, before storage is updated)
124
+ * ```ts
125
+ * const result = await graphqlFetch({
126
+ * gateway: 'global',
127
+ * query: MY_WORKSPACES_QUERY,
128
+ * authToken: freshAccessToken,
129
+ * });
130
+ * ```
131
+ */
132
+ export declare function graphqlFetch<T = unknown>(options: GraphQLFetchOptions): Promise<GraphQLResponse<T>>;
133
+ //# sourceMappingURL=fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/fetch.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ export { createGraphQLClient, initializeAppClients, getWorkspaceClient, getGlobalClient, resetAppClients, type CreateClientOptions, type AppClientConfig, type Gateway, } from './client';
2
+ export { GatewayProvider, useGateway, useGatewayClient, useSafeGateway, useSafeGatewayClient, type GatewayContextValue, type GatewayProviderProps, } from './GatewayContext';
3
+ export { graphqlFetch, getStoredAuthToken, getStoredWorkspaceToken, getStoredWorkspaceId, getStoredLocale, getStoredOrganizationId, resolveGatewayUrl, type GraphQLFetchOptions, type GraphQLResponse, } from './fetch';
4
+ export { getWorkspaceTokenPayload, isWorkspaceTokenValidForContext, type WorkspaceTokenContext, type WorkspaceTokenPayload, } from './workspaceToken';
5
+ export { SSELink, type SSELinkOptions } from './links/sse-link';
6
+ export { ApolloClient, InMemoryCache, type NormalizedCacheObject } from '@apollo/client/core';
7
+ export { ApolloProvider, useQuery, useMutation, useLazyQuery, useSubscription, useApolloClient, } from '@apollo/client/react';
8
+ export { gql } from '@apollo/client/core';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,OAAO,GACb,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIhE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { ApolloLink, Observable, FetchResult, Operation } from '@apollo/client/core';
2
+ export interface SSELinkOptions {
3
+ /** SSE endpoint URL */
4
+ url: string;
5
+ /** Optional headers to include with requests */
6
+ headers?: Record<string, string>;
7
+ /** Enable debug logging */
8
+ debug?: boolean;
9
+ }
10
+ /**
11
+ * SSE Link for GraphQL Yoga subscriptions
12
+ *
13
+ * GraphQL Yoga uses Server-Sent Events (SSE) for subscriptions over HTTP.
14
+ * This is more compatible with serverless and edge deployments than WebSockets.
15
+ *
16
+ * SSE Format:
17
+ * - event: next\ndata: {...}\n\n - Subscription data
18
+ * - event: complete\n\n - Subscription ended
19
+ * - event: error\ndata: {...}\n\n - Error occurred
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * import { SSELink } from '@burdenoff/fe-libs/shared/graphql/links/sse-link';
24
+ *
25
+ * const sseLink = new SSELink({
26
+ * url: 'https://gw-wspace.local.burdenoff.com/workspaces/graphql/stream',
27
+ * headers: {
28
+ * authorization: `Bearer ${token}`,
29
+ * },
30
+ * });
31
+ * ```
32
+ */
33
+ export declare class SSELink extends ApolloLink {
34
+ private url;
35
+ private headers;
36
+ private debug;
37
+ constructor(options: SSELinkOptions);
38
+ /**
39
+ * Update headers (useful for token refresh)
40
+ */
41
+ setHeaders(headers: Record<string, string>): void;
42
+ /**
43
+ * Update the authorization header
44
+ */
45
+ setAuthToken(token: string | null): void;
46
+ request(operation: Operation): Observable<FetchResult>;
47
+ }
48
+ //# sourceMappingURL=sse-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sse-link.d.ts","sourceRoot":"","sources":["../../../../src/shared/graphql/links/sse-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGlE,MAAM,WAAW,cAAc;IAC7B,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,KAAK,CAAU;gBAEX,OAAO,EAAE,cAAc;IAOnC;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAIjD;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAQxC,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC,WAAW,CAAC;CAqJvD"}
@@ -0,0 +1,13 @@
1
+ type Geography = {
2
+ country?: string;
3
+ currency?: string;
4
+ timezone?: string;
5
+ };
6
+ export declare function getValidAccessTokenFromStorage(tokensRaw: string | null): string | null;
7
+ export declare function sanitizeGeography(input: Geography | null): Geography | null;
8
+ export declare function isSafeRedirectTarget(target: string, baseOrigin?: string): boolean;
9
+ export declare function redirectToSafeLocation(target: string, fallback?: string, baseOrigin?: string): boolean;
10
+ export declare function validateGatewayBaseUrl(value: string): string;
11
+ export declare function sanitizeExtraHeaders(headers?: Record<string, string>): Record<string, string> | undefined;
12
+ export {};
13
+ //# sourceMappingURL=security.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/security.ts"],"names":[],"mappings":"AAkBA,KAAK,SAAS,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAiBF,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAoBtF;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CA6B3E;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,MAA+B,GAC1C,OAAO,CAeT;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,MAAY,EACtB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAST;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAkB5D;AAED,wBAAgB,oBAAoB,CAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAMpC"}