@elevasis/ui 1.15.2 → 1.17.0

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 (723) hide show
  1. package/dist/api/hooks/__tests__/useApiClient.test.d.ts +11 -0
  2. package/dist/api/hooks/__tests__/useApiClient.test.d.ts.map +1 -0
  3. package/dist/api/hooks/useApiClient.d.ts +28 -0
  4. package/dist/api/hooks/useApiClient.d.ts.map +1 -0
  5. package/dist/api/index.d.ts +11 -91
  6. package/dist/api/index.d.ts.map +1 -0
  7. package/dist/auth/guards/AdminGuard.d.ts +32 -0
  8. package/dist/auth/guards/AdminGuard.d.ts.map +1 -0
  9. package/dist/auth/guards/ProtectedRoute.d.ts +60 -0
  10. package/dist/auth/guards/ProtectedRoute.d.ts.map +1 -0
  11. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +12 -0
  12. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +1 -0
  13. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +14 -0
  14. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +1 -0
  15. package/dist/auth/index.d.ts +14 -174
  16. package/dist/auth/index.d.ts.map +1 -0
  17. package/dist/auth/index.js +3 -3
  18. package/dist/charts/index.d.ts +25 -2
  19. package/dist/charts/index.js +6 -6
  20. package/dist/{chunk-K6DYEZHC.js → chunk-4AKGF454.js} +76 -773
  21. package/dist/{chunk-YCOTIVEZ.js → chunk-53GNREDV.js} +3 -3
  22. package/dist/{chunk-GIQPDIG5.js → chunk-7ATCF6UL.js} +339 -11
  23. package/dist/{chunk-VOSLYTTR.js → chunk-7S5FS7WW.js} +36 -5
  24. package/dist/chunk-ADSSLKKP.js +10 -0
  25. package/dist/{chunk-V5GGPIDD.js → chunk-CC3SDRIF.js} +1 -1
  26. package/dist/{chunk-3VTC7OWU.js → chunk-DVKEEY5J.js} +1 -1
  27. package/dist/{chunk-5H6OPZQB.js → chunk-IVHJRJFK.js} +3 -3
  28. package/dist/{chunk-GU46QC4Z.js → chunk-L4XXM55J.js} +105 -2
  29. package/dist/{chunk-EQNXEBGZ.js → chunk-LXHZYSMQ.js} +1 -1
  30. package/dist/chunk-MHW43EOH.js +47 -0
  31. package/dist/{chunk-GATPOCUD.js → chunk-NUULWBAD.js} +1 -1
  32. package/dist/{chunk-HR5X6NGA.js → chunk-QCEUL5QG.js} +16 -10
  33. package/dist/{chunk-BK4EIWNU.js → chunk-QEPXAWE2.js} +7 -1
  34. package/dist/{chunk-CKFTPEBC.js → chunk-SLVC5OJ2.js} +1 -1
  35. package/dist/{chunk-NOGBWAGU.js → chunk-TRVSTJTK.js} +3 -3
  36. package/dist/{chunk-4J3GVBB7.js → chunk-U2522LSW.js} +1 -1
  37. package/dist/{chunk-CWCX2HCP.js → chunk-UUXXUPOC.js} +1 -1
  38. package/dist/{chunk-PMSLNXUS.js → chunk-XGVD76EL.js} +4 -4
  39. package/dist/chunk-ZGK6XZVY.js +1208 -0
  40. package/dist/components/charts/ActivityTrendChart.d.ts +13 -0
  41. package/dist/components/charts/ActivityTrendChart.d.ts.map +1 -0
  42. package/dist/components/charts/CombinedTrendChart.d.ts +22 -0
  43. package/dist/components/charts/CombinedTrendChart.d.ts.map +1 -0
  44. package/dist/components/charts/CostTrendChart.d.ts +13 -0
  45. package/dist/components/charts/CostTrendChart.d.ts.map +1 -0
  46. package/dist/components/charts/HeroStatsRow.d.ts +15 -0
  47. package/dist/components/charts/HeroStatsRow.d.ts.map +1 -0
  48. package/dist/components/charts/index.d.ts +9 -0
  49. package/dist/components/charts/index.d.ts.map +1 -0
  50. package/dist/components/command-queue/ActionModal.d.ts +19 -0
  51. package/dist/components/command-queue/ActionModal.d.ts.map +1 -0
  52. package/dist/components/command-queue/TaskCard.d.ts +18 -0
  53. package/dist/components/command-queue/TaskCard.d.ts.map +1 -0
  54. package/dist/components/command-queue/index.d.ts +5 -0
  55. package/dist/components/command-queue/index.d.ts.map +1 -0
  56. package/dist/components/display/APIErrorAlert.d.ts +56 -0
  57. package/dist/components/display/APIErrorAlert.d.ts.map +1 -0
  58. package/dist/components/display/PageNotFound.d.ts +2 -0
  59. package/dist/components/display/PageNotFound.d.ts.map +1 -0
  60. package/dist/components/display/ResourceCard.d.ts +22 -0
  61. package/dist/components/display/ResourceCard.d.ts.map +1 -0
  62. package/dist/components/display/ResourceCardAdapters.d.ts +24 -0
  63. package/dist/components/display/ResourceCardAdapters.d.ts.map +1 -0
  64. package/dist/components/display/TimeRangeSelector.d.ts +9 -0
  65. package/dist/components/display/TimeRangeSelector.d.ts.map +1 -0
  66. package/dist/components/display/index.d.ts +26 -0
  67. package/dist/components/display/index.d.ts.map +1 -0
  68. package/dist/components/execution/AgentExecutionTimeline.d.ts +14 -0
  69. package/dist/components/execution/AgentExecutionTimeline.d.ts.map +1 -0
  70. package/dist/components/execution/AgentExecutionVisualizer.d.ts +13 -0
  71. package/dist/components/execution/AgentExecutionVisualizer.d.ts.map +1 -0
  72. package/dist/components/execution/AgentIterationEdge.d.ts +8 -0
  73. package/dist/components/execution/AgentIterationEdge.d.ts.map +1 -0
  74. package/dist/components/execution/AgentIterationNode.d.ts +8 -0
  75. package/dist/components/execution/AgentIterationNode.d.ts.map +1 -0
  76. package/dist/components/execution/ExecutionStats.d.ts +16 -0
  77. package/dist/components/execution/ExecutionStats.d.ts.map +1 -0
  78. package/dist/components/execution/ExecutionStatusBadge.d.ts +33 -0
  79. package/dist/components/execution/ExecutionStatusBadge.d.ts.map +1 -0
  80. package/dist/components/execution/TimelineAxis.d.ts +12 -0
  81. package/dist/components/execution/TimelineAxis.d.ts.map +1 -0
  82. package/dist/components/execution/TimelineBar.d.ts +9 -0
  83. package/dist/components/execution/TimelineBar.d.ts.map +1 -0
  84. package/dist/components/execution/TimelineContainer.d.ts +9 -0
  85. package/dist/components/execution/TimelineContainer.d.ts.map +1 -0
  86. package/dist/components/execution/TimelineRow.d.ts +9 -0
  87. package/dist/components/execution/TimelineRow.d.ts.map +1 -0
  88. package/dist/components/execution/UnifiedWorkflowEdge.d.ts +9 -0
  89. package/dist/components/execution/UnifiedWorkflowEdge.d.ts.map +1 -0
  90. package/dist/components/execution/UnifiedWorkflowGraph.d.ts +21 -0
  91. package/dist/components/execution/UnifiedWorkflowGraph.d.ts.map +1 -0
  92. package/dist/components/execution/UnifiedWorkflowNode.d.ts +9 -0
  93. package/dist/components/execution/UnifiedWorkflowNode.d.ts.map +1 -0
  94. package/dist/components/execution/WorkflowExecutionTimeline.d.ts +14 -0
  95. package/dist/components/execution/WorkflowExecutionTimeline.d.ts.map +1 -0
  96. package/dist/components/execution/index.d.ts +18 -0
  97. package/dist/components/execution/index.d.ts.map +1 -0
  98. package/dist/components/forms/FormFieldRenderer.d.ts +15 -0
  99. package/dist/components/forms/FormFieldRenderer.d.ts.map +1 -0
  100. package/dist/components/forms/index.d.ts +2 -0
  101. package/dist/components/forms/index.d.ts.map +1 -0
  102. package/dist/components/graph/BaseNode.d.ts +29 -0
  103. package/dist/components/graph/BaseNode.d.ts.map +1 -0
  104. package/dist/components/graph/index.d.ts +12 -0
  105. package/dist/components/graph/index.d.ts.map +1 -0
  106. package/dist/components/graph/useGraphTheme.d.ts +9 -0
  107. package/dist/components/graph/useGraphTheme.d.ts.map +1 -0
  108. package/dist/components/index.d.ts +19 -5651
  109. package/dist/components/index.d.ts.map +1 -0
  110. package/dist/components/index.js +39 -1232
  111. package/dist/components/layout/backgrounds/CyberBackground.d.ts +26 -0
  112. package/dist/components/layout/backgrounds/CyberBackground.d.ts.map +1 -0
  113. package/dist/components/layout/backgrounds/CyberParticles.d.ts +30 -0
  114. package/dist/components/layout/backgrounds/CyberParticles.d.ts.map +1 -0
  115. package/dist/components/layout/backgrounds/CyberParticles.js +182 -0
  116. package/dist/components/layout/backgrounds/index.d.ts +10 -0
  117. package/dist/components/layout/backgrounds/index.d.ts.map +1 -0
  118. package/dist/components/layout/index.d.ts +7 -0
  119. package/dist/components/layout/index.d.ts.map +1 -0
  120. package/dist/components/monitoring/ActivityCard.d.ts +7 -0
  121. package/dist/components/monitoring/ActivityCard.d.ts.map +1 -0
  122. package/dist/components/monitoring/ActivityFilters.d.ts +8 -0
  123. package/dist/components/monitoring/ActivityFilters.d.ts.map +1 -0
  124. package/dist/components/monitoring/ActivityTable.d.ts +8 -0
  125. package/dist/components/monitoring/ActivityTable.d.ts.map +1 -0
  126. package/dist/components/monitoring/BusinessImpactCard.d.ts +18 -0
  127. package/dist/components/monitoring/BusinessImpactCard.d.ts.map +1 -0
  128. package/dist/components/monitoring/CostBreakdownCard.d.ts +17 -0
  129. package/dist/components/monitoring/CostBreakdownCard.d.ts.map +1 -0
  130. package/dist/components/monitoring/CostByModelTable.d.ts +12 -0
  131. package/dist/components/monitoring/CostByModelTable.d.ts.map +1 -0
  132. package/dist/components/monitoring/CostMetricsCard.d.ts +17 -0
  133. package/dist/components/monitoring/CostMetricsCard.d.ts.map +1 -0
  134. package/dist/components/monitoring/ErrorAnalysisCard.d.ts +12 -0
  135. package/dist/components/monitoring/ErrorAnalysisCard.d.ts.map +1 -0
  136. package/dist/components/monitoring/ErrorBreakdownTable.d.ts +12 -0
  137. package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +1 -0
  138. package/dist/components/monitoring/ExecutionBreakdownTable.d.ts +8 -0
  139. package/dist/components/monitoring/ExecutionBreakdownTable.d.ts.map +1 -0
  140. package/dist/components/monitoring/ExecutionHealthCard.d.ts +8 -0
  141. package/dist/components/monitoring/ExecutionHealthCard.d.ts.map +1 -0
  142. package/dist/components/monitoring/ExecutionLogsFilters.d.ts +8 -0
  143. package/dist/components/monitoring/ExecutionLogsFilters.d.ts.map +1 -0
  144. package/dist/components/monitoring/ExecutionLogsTable.d.ts +30 -0
  145. package/dist/components/monitoring/ExecutionLogsTable.d.ts.map +1 -0
  146. package/dist/components/monitoring/ResourceHealthChart.d.ts +17 -0
  147. package/dist/components/monitoring/ResourceHealthChart.d.ts.map +1 -0
  148. package/dist/components/monitoring/ResourceHealthPanel.d.ts +8 -0
  149. package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +1 -0
  150. package/dist/components/monitoring/index.d.ts +16 -0
  151. package/dist/components/monitoring/index.d.ts.map +1 -0
  152. package/dist/components/notifications/NotificationBell.d.ts +9 -0
  153. package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
  154. package/dist/components/notifications/NotificationItem.d.ts +9 -0
  155. package/dist/components/notifications/NotificationItem.d.ts.map +1 -0
  156. package/dist/components/notifications/NotificationList.d.ts +10 -0
  157. package/dist/components/notifications/NotificationList.d.ts.map +1 -0
  158. package/dist/components/notifications/NotificationPanel.d.ts +10 -0
  159. package/dist/components/notifications/NotificationPanel.d.ts.map +1 -0
  160. package/dist/components/notifications/index.d.ts +5 -0
  161. package/dist/components/notifications/index.d.ts.map +1 -0
  162. package/dist/components/notify.d.ts +21 -0
  163. package/dist/components/notify.d.ts.map +1 -0
  164. package/dist/components/operations/command-queue/CommandQueueTaskRow.d.ts +9 -0
  165. package/dist/components/operations/command-queue/CommandQueueTaskRow.d.ts.map +1 -0
  166. package/dist/components/operations/command-queue/index.d.ts +3 -0
  167. package/dist/components/operations/command-queue/index.d.ts.map +1 -0
  168. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +17 -0
  169. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +1 -0
  170. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +17 -0
  171. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +1 -0
  172. package/dist/components/operations/command-queue/sidebar/index.d.ts +5 -0
  173. package/dist/components/operations/command-queue/sidebar/index.d.ts.map +1 -0
  174. package/dist/components/operations/command-view/CommandViewGraph.d.ts +22 -0
  175. package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +1 -0
  176. package/dist/components/operations/command-view/edges/CommandViewEdge.d.ts +23 -0
  177. package/dist/components/operations/command-view/edges/CommandViewEdge.d.ts.map +1 -0
  178. package/dist/components/operations/command-view/edges/index.d.ts +2 -0
  179. package/dist/components/operations/command-view/edges/index.d.ts.map +1 -0
  180. package/dist/components/operations/command-view/index.d.ts +4 -0
  181. package/dist/components/operations/command-view/index.d.ts.map +1 -0
  182. package/dist/components/operations/command-view/nodes/CommandViewNode.d.ts +12 -0
  183. package/dist/components/operations/command-view/nodes/CommandViewNode.d.ts.map +1 -0
  184. package/dist/components/operations/command-view/nodes/index.d.ts +2 -0
  185. package/dist/components/operations/command-view/nodes/index.d.ts.map +1 -0
  186. package/dist/components/operations/executions/AgentExecutionLogs.d.ts +13 -0
  187. package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +1 -0
  188. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +13 -0
  189. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +1 -0
  190. package/dist/components/operations/executions/index.d.ts +4 -0
  191. package/dist/components/operations/executions/index.d.ts.map +1 -0
  192. package/dist/components/operations/executions/logConstants.d.ts +72 -0
  193. package/dist/components/operations/executions/logConstants.d.ts.map +1 -0
  194. package/dist/components/operations/index.d.ts +8 -0
  195. package/dist/components/operations/index.d.ts.map +1 -0
  196. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +14 -0
  197. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +1 -0
  198. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +16 -0
  199. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +1 -0
  200. package/dist/components/operations/knowledge-base/index.d.ts +3 -0
  201. package/dist/components/operations/knowledge-base/index.d.ts.map +1 -0
  202. package/dist/components/operations/sessions/SessionMemory.d.ts +11 -0
  203. package/dist/components/operations/sessions/SessionMemory.d.ts.map +1 -0
  204. package/dist/components/operations/sessions/index.d.ts +3 -0
  205. package/dist/components/operations/sessions/index.d.ts.map +1 -0
  206. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +16 -0
  207. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +1 -0
  208. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +12 -0
  209. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +1 -0
  210. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsStates.d.ts +9 -0
  211. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsStates.d.ts.map +1 -0
  212. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +12 -0
  213. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +1 -0
  214. package/dist/components/operations/shared/BaseExecutionLogs/LogEntry.d.ts +2 -0
  215. package/dist/components/operations/shared/BaseExecutionLogs/LogEntry.d.ts.map +1 -0
  216. package/dist/components/operations/shared/BaseExecutionLogs/LogGroup.d.ts +16 -0
  217. package/dist/components/operations/shared/BaseExecutionLogs/LogGroup.d.ts.map +1 -0
  218. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +7 -0
  219. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +1 -0
  220. package/dist/components/operations/shared/LogEntry.d.ts +8 -0
  221. package/dist/components/operations/shared/LogEntry.d.ts.map +1 -0
  222. package/dist/components/operations/shared/index.d.ts +5 -0
  223. package/dist/components/operations/shared/index.d.ts.map +1 -0
  224. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +11 -0
  225. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +1 -0
  226. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +8 -0
  227. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +1 -0
  228. package/dist/components/operations/shared/layouts/index.d.ts +4 -0
  229. package/dist/components/operations/shared/layouts/index.d.ts.map +1 -0
  230. package/dist/components/operations/task-scheduler/AbsoluteScheduleForm.d.ts +9 -0
  231. package/dist/components/operations/task-scheduler/AbsoluteScheduleForm.d.ts.map +1 -0
  232. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +7 -0
  233. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +1 -0
  234. package/dist/components/operations/task-scheduler/DeleteScheduleModal.d.ts +11 -0
  235. package/dist/components/operations/task-scheduler/DeleteScheduleModal.d.ts.map +1 -0
  236. package/dist/components/operations/task-scheduler/RecurringScheduleForm.d.ts +9 -0
  237. package/dist/components/operations/task-scheduler/RecurringScheduleForm.d.ts.map +1 -0
  238. package/dist/components/operations/task-scheduler/RelativeScheduleForm.d.ts +9 -0
  239. package/dist/components/operations/task-scheduler/RelativeScheduleForm.d.ts.map +1 -0
  240. package/dist/components/operations/task-scheduler/ScheduleCard.d.ts +15 -0
  241. package/dist/components/operations/task-scheduler/ScheduleCard.d.ts.map +1 -0
  242. package/dist/components/operations/task-scheduler/ScheduleDetailModal.d.ts +11 -0
  243. package/dist/components/operations/task-scheduler/ScheduleDetailModal.d.ts.map +1 -0
  244. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +2 -0
  245. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +1 -0
  246. package/dist/components/operations/task-scheduler/index.d.ts +11 -0
  247. package/dist/components/operations/task-scheduler/index.d.ts.map +1 -0
  248. package/dist/components/resource-definition/AgentDefinitionDisplay.d.ts +8 -0
  249. package/dist/components/resource-definition/AgentDefinitionDisplay.d.ts.map +1 -0
  250. package/dist/components/resource-definition/NewKnowledgeMapEdge.d.ts +6 -0
  251. package/dist/components/resource-definition/NewKnowledgeMapEdge.d.ts.map +1 -0
  252. package/dist/components/resource-definition/NewKnowledgeMapGraph.d.ts +11 -0
  253. package/dist/components/resource-definition/NewKnowledgeMapGraph.d.ts.map +1 -0
  254. package/dist/components/resource-definition/NewKnowledgeMapNode.d.ts +6 -0
  255. package/dist/components/resource-definition/NewKnowledgeMapNode.d.ts.map +1 -0
  256. package/dist/components/resource-definition/ResourceDefinitionSection.d.ts +8 -0
  257. package/dist/components/resource-definition/ResourceDefinitionSection.d.ts.map +1 -0
  258. package/dist/components/resource-definition/WorkflowDefinitionDisplay.d.ts +8 -0
  259. package/dist/components/resource-definition/WorkflowDefinitionDisplay.d.ts.map +1 -0
  260. package/dist/components/resource-definition/index.d.ts +13 -0
  261. package/dist/components/resource-definition/index.d.ts.map +1 -0
  262. package/dist/components/sdk-barrel.d.ts +23 -0
  263. package/dist/components/sdk-barrel.d.ts.map +1 -0
  264. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +9 -0
  265. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +1 -0
  266. package/dist/components/settings/api-keys/ApiKeyList.d.ts +8 -0
  267. package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +1 -0
  268. package/dist/components/settings/api-keys/ApiKeySettings.d.ts +2 -0
  269. package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +1 -0
  270. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +9 -0
  271. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +1 -0
  272. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +8 -0
  273. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +1 -0
  274. package/dist/components/settings/api-keys/index.d.ts +6 -0
  275. package/dist/components/settings/api-keys/index.d.ts.map +1 -0
  276. package/dist/components/settings/credentials/CreateCredentialModal.d.ts +9 -0
  277. package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +1 -0
  278. package/dist/components/settings/credentials/CredentialList.d.ts +10 -0
  279. package/dist/components/settings/credentials/CredentialList.d.ts.map +1 -0
  280. package/dist/components/settings/credentials/CredentialSettings.d.ts +7 -0
  281. package/dist/components/settings/credentials/CredentialSettings.d.ts.map +1 -0
  282. package/dist/components/settings/credentials/OAuthConnectModal.d.ts +12 -0
  283. package/dist/components/settings/credentials/OAuthConnectModal.d.ts.map +1 -0
  284. package/dist/components/settings/credentials/index.d.ts +5 -0
  285. package/dist/components/settings/credentials/index.d.ts.map +1 -0
  286. package/dist/components/settings/deployments/DeploymentDetailModal.d.ts +9 -0
  287. package/dist/components/settings/deployments/DeploymentDetailModal.d.ts.map +1 -0
  288. package/dist/components/settings/deployments/DeploymentList.d.ts +8 -0
  289. package/dist/components/settings/deployments/DeploymentList.d.ts.map +1 -0
  290. package/dist/components/settings/deployments/DeploymentSettings.d.ts +2 -0
  291. package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +1 -0
  292. package/dist/components/settings/deployments/DeploymentStatusBadge.d.ts +7 -0
  293. package/dist/components/settings/deployments/DeploymentStatusBadge.d.ts.map +1 -0
  294. package/dist/components/settings/deployments/index.d.ts +5 -0
  295. package/dist/components/settings/deployments/index.d.ts.map +1 -0
  296. package/dist/components/settings/index.d.ts +6 -0
  297. package/dist/components/settings/index.d.ts.map +1 -0
  298. package/dist/components/settings/organization/MembershipFeaturePanel.d.ts +9 -0
  299. package/dist/components/settings/organization/MembershipFeaturePanel.d.ts.map +1 -0
  300. package/dist/components/settings/organization/MembershipStatusBadge.d.ts +9 -0
  301. package/dist/components/settings/organization/MembershipStatusBadge.d.ts.map +1 -0
  302. package/dist/components/settings/organization/OrganizationMembershipsList.d.ts +11 -0
  303. package/dist/components/settings/organization/OrganizationMembershipsList.d.ts.map +1 -0
  304. package/dist/components/settings/organization/index.d.ts +4 -0
  305. package/dist/components/settings/organization/index.d.ts.map +1 -0
  306. package/dist/components/table/SortableHeader.d.ts +12 -0
  307. package/dist/components/table/SortableHeader.d.ts.map +1 -0
  308. package/dist/components/table/index.d.ts +4 -0
  309. package/dist/components/table/index.d.ts.map +1 -0
  310. package/dist/execution/hooks/index.d.ts +8 -0
  311. package/dist/execution/hooks/index.d.ts.map +1 -0
  312. package/dist/execution/hooks/useAgentIterationData.d.ts +3 -0
  313. package/dist/execution/hooks/useAgentIterationData.d.ts.map +1 -0
  314. package/dist/execution/hooks/useExecutionPath.d.ts +29 -0
  315. package/dist/execution/hooks/useExecutionPath.d.ts.map +1 -0
  316. package/dist/execution/hooks/useMergedExecution.d.ts +11 -0
  317. package/dist/execution/hooks/useMergedExecution.d.ts.map +1 -0
  318. package/dist/execution/hooks/useReactFlowAgent.d.ts +12 -0
  319. package/dist/execution/hooks/useReactFlowAgent.d.ts.map +1 -0
  320. package/dist/execution/hooks/useTimelineData.d.ts +6 -0
  321. package/dist/execution/hooks/useTimelineData.d.ts.map +1 -0
  322. package/dist/execution/hooks/useUnifiedWorkflowLayout.d.ts +19 -0
  323. package/dist/execution/hooks/useUnifiedWorkflowLayout.d.ts.map +1 -0
  324. package/dist/execution/hooks/useWorkflowStepsLayout.d.ts +49 -0
  325. package/dist/execution/hooks/useWorkflowStepsLayout.d.ts.map +1 -0
  326. package/dist/execution/index.d.ts +5 -936
  327. package/dist/execution/index.d.ts.map +1 -0
  328. package/dist/execution/types.d.ts +129 -0
  329. package/dist/execution/types.d.ts.map +1 -0
  330. package/dist/execution/utils/edgeUtils.d.ts +22 -0
  331. package/dist/execution/utils/edgeUtils.d.ts.map +1 -0
  332. package/dist/execution/utils/getResourceStatusColor.d.ts +8 -0
  333. package/dist/execution/utils/getResourceStatusColor.d.ts.map +1 -0
  334. package/dist/execution/utils/getStatusIcon.d.ts +19 -0
  335. package/dist/execution/utils/getStatusIcon.d.ts.map +1 -0
  336. package/dist/execution/utils/index.d.ts +7 -0
  337. package/dist/execution/utils/index.d.ts.map +1 -0
  338. package/dist/execution/utils/statusColors.d.ts +20 -0
  339. package/dist/execution/utils/statusColors.d.ts.map +1 -0
  340. package/dist/features/operations/ResourcesPage.d.ts +15 -0
  341. package/dist/features/operations/ResourcesPage.d.ts.map +1 -0
  342. package/dist/features/operations/index.css +565 -0
  343. package/dist/features/operations/index.d.ts +3 -0
  344. package/dist/features/operations/index.d.ts.map +1 -0
  345. package/dist/features/operations/index.js +241 -0
  346. package/dist/graph/hooks/index.d.ts +9 -0
  347. package/dist/graph/hooks/index.d.ts.map +1 -0
  348. package/dist/graph/index.d.ts +9 -226
  349. package/dist/graph/index.d.ts.map +1 -0
  350. package/dist/graph/types.d.ts +28 -0
  351. package/dist/graph/types.d.ts.map +1 -0
  352. package/dist/hooks/command-queue/index.d.ts +7 -0
  353. package/dist/hooks/command-queue/index.d.ts.map +1 -0
  354. package/dist/hooks/command-queue/useCommandQueue.d.ts +33 -0
  355. package/dist/hooks/command-queue/useCommandQueue.d.ts.map +1 -0
  356. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +17 -0
  357. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +1 -0
  358. package/dist/hooks/command-queue/useDeleteTask.d.ts +5 -0
  359. package/dist/hooks/command-queue/useDeleteTask.d.ts.map +1 -0
  360. package/dist/hooks/command-queue/usePatchTask.d.ts +6 -0
  361. package/dist/hooks/command-queue/usePatchTask.d.ts.map +1 -0
  362. package/dist/hooks/command-queue/useSubmitAction.d.ts +29 -0
  363. package/dist/hooks/command-queue/useSubmitAction.d.ts.map +1 -0
  364. package/dist/hooks/executions/index.d.ts +17 -0
  365. package/dist/hooks/executions/index.d.ts.map +1 -0
  366. package/dist/hooks/executions/useArchivedLogs.d.ts +14 -0
  367. package/dist/hooks/executions/useArchivedLogs.d.ts.map +1 -0
  368. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +15 -0
  369. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +1 -0
  370. package/dist/hooks/executions/useCancelExecution.d.ts +20 -0
  371. package/dist/hooks/executions/useCancelExecution.d.ts.map +1 -0
  372. package/dist/hooks/executions/useDeleteExecution.d.ts +13 -0
  373. package/dist/hooks/executions/useDeleteExecution.d.ts.map +1 -0
  374. package/dist/hooks/executions/useExecuteAsync.d.ts +21 -0
  375. package/dist/hooks/executions/useExecuteAsync.d.ts.map +1 -0
  376. package/dist/hooks/executions/useExecution.d.ts +10 -0
  377. package/dist/hooks/executions/useExecution.d.ts.map +1 -0
  378. package/dist/hooks/executions/useExecutions.d.ts +16 -0
  379. package/dist/hooks/executions/useExecutions.d.ts.map +1 -0
  380. package/dist/hooks/executions/useResourceDefinition.d.ts +9 -0
  381. package/dist/hooks/executions/useResourceDefinition.d.ts.map +1 -0
  382. package/dist/hooks/executions/useResources.d.ts +15 -0
  383. package/dist/hooks/executions/useResources.d.ts.map +1 -0
  384. package/dist/hooks/executions/useRetryExecution.d.ts +16 -0
  385. package/dist/hooks/executions/useRetryExecution.d.ts.map +1 -0
  386. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +41 -0
  387. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +1 -0
  388. package/dist/hooks/feature-access/index.d.ts +2 -0
  389. package/dist/hooks/feature-access/index.d.ts.map +1 -0
  390. package/dist/hooks/index.d.ts +22 -6572
  391. package/dist/hooks/index.d.ts.map +1 -0
  392. package/dist/hooks/index.js +12 -12
  393. package/dist/hooks/monitoring/index.d.ts +9 -0
  394. package/dist/hooks/monitoring/index.d.ts.map +1 -0
  395. package/dist/hooks/monitoring/useActivities.d.ts +52 -0
  396. package/dist/hooks/monitoring/useActivities.d.ts.map +1 -0
  397. package/dist/hooks/monitoring/useCostSummary.d.ts +7 -0
  398. package/dist/hooks/monitoring/useCostSummary.d.ts.map +1 -0
  399. package/dist/hooks/monitoring/useExecutionHealth.d.ts +10 -0
  400. package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +1 -0
  401. package/dist/hooks/monitoring/useExecutionLogs.d.ts +56 -0
  402. package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +1 -0
  403. package/dist/hooks/monitoring/useNotifications.d.ts +11 -0
  404. package/dist/hooks/monitoring/useNotifications.d.ts.map +1 -0
  405. package/dist/hooks/notifications/index.d.ts +9 -0
  406. package/dist/hooks/notifications/index.d.ts.map +1 -0
  407. package/dist/hooks/notifications/useBatchDelete.d.ts +8 -0
  408. package/dist/hooks/notifications/useBatchDelete.d.ts.map +1 -0
  409. package/dist/hooks/notifications/useErrorNotification.d.ts +17 -0
  410. package/dist/hooks/notifications/useErrorNotification.d.ts.map +1 -0
  411. package/dist/hooks/notifications/useMarkAllAsRead.d.ts +2 -0
  412. package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +1 -0
  413. package/dist/hooks/notifications/useMarkAsRead.d.ts +2 -0
  414. package/dist/hooks/notifications/useMarkAsRead.d.ts.map +1 -0
  415. package/dist/hooks/notifications/useNotificationCount.d.ts +8 -0
  416. package/dist/hooks/notifications/useNotificationCount.d.ts.map +1 -0
  417. package/dist/hooks/notifications/useSuccessNotification.d.ts +6 -0
  418. package/dist/hooks/notifications/useSuccessNotification.d.ts.map +1 -0
  419. package/dist/hooks/notifications/useTestNotification.d.ts +16 -0
  420. package/dist/hooks/notifications/useTestNotification.d.ts.map +1 -0
  421. package/dist/hooks/notifications/useWarningNotification.d.ts +6 -0
  422. package/dist/hooks/notifications/useWarningNotification.d.ts.map +1 -0
  423. package/dist/hooks/observability/index.d.ts +25 -0
  424. package/dist/hooks/observability/index.d.ts.map +1 -0
  425. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +15 -0
  426. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +1 -0
  427. package/dist/hooks/observability/useBusinessImpact.d.ts +9 -0
  428. package/dist/hooks/observability/useBusinessImpact.d.ts.map +1 -0
  429. package/dist/hooks/observability/useCostBreakdown.d.ts +10 -0
  430. package/dist/hooks/observability/useCostBreakdown.d.ts.map +1 -0
  431. package/dist/hooks/observability/useCostByModel.d.ts +3 -0
  432. package/dist/hooks/observability/useCostByModel.d.ts.map +1 -0
  433. package/dist/hooks/observability/useCostTrends.d.ts +3 -0
  434. package/dist/hooks/observability/useCostTrends.d.ts.map +1 -0
  435. package/dist/hooks/observability/useDashboardMetrics.d.ts +3 -0
  436. package/dist/hooks/observability/useDashboardMetrics.d.ts.map +1 -0
  437. package/dist/hooks/observability/useErrorAnalysis.d.ts +7 -0
  438. package/dist/hooks/observability/useErrorAnalysis.d.ts.map +1 -0
  439. package/dist/hooks/observability/useErrorDetails.d.ts +20 -0
  440. package/dist/hooks/observability/useErrorDetails.d.ts.map +1 -0
  441. package/dist/hooks/observability/useErrorDistribution.d.ts +12 -0
  442. package/dist/hooks/observability/useErrorDistribution.d.ts.map +1 -0
  443. package/dist/hooks/observability/useErrorTrends.d.ts +12 -0
  444. package/dist/hooks/observability/useErrorTrends.d.ts.map +1 -0
  445. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +18 -0
  446. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +1 -0
  447. package/dist/hooks/observability/useResolveError.d.ts +17 -0
  448. package/dist/hooks/observability/useResolveError.d.ts.map +1 -0
  449. package/dist/hooks/observability/useResourcesHealth.d.ts +13 -0
  450. package/dist/hooks/observability/useResourcesHealth.d.ts.map +1 -0
  451. package/dist/hooks/observability/useTopFailingResources.d.ts +13 -0
  452. package/dist/hooks/observability/useTopFailingResources.d.ts.map +1 -0
  453. package/dist/hooks/observability/useUnresolvedErrors.d.ts +15 -0
  454. package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +1 -0
  455. package/dist/hooks/operations/command-view/index.d.ts +8 -0
  456. package/dist/hooks/operations/command-view/index.d.ts.map +1 -0
  457. package/dist/hooks/operations/command-view/types.d.ts +123 -0
  458. package/dist/hooks/operations/command-view/types.d.ts.map +1 -0
  459. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +24 -0
  460. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +1 -0
  461. package/dist/hooks/operations/command-view/useCommandViewData.d.ts +11 -0
  462. package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +1 -0
  463. package/dist/hooks/operations/command-view/useCommandViewLayout.d.ts +44 -0
  464. package/dist/hooks/operations/command-view/useCommandViewLayout.d.ts.map +1 -0
  465. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +12 -0
  466. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +1 -0
  467. package/dist/hooks/operations/command-view/useCommandViewStore.d.ts +39 -0
  468. package/dist/hooks/operations/command-view/useCommandViewStore.d.ts.map +1 -0
  469. package/dist/hooks/operations/command-view/useResourceErrors.d.ts +22 -0
  470. package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +1 -0
  471. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +22 -0
  472. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +1 -0
  473. package/dist/hooks/operations/command-view/utils/filterCommandViewData.d.ts +30 -0
  474. package/dist/hooks/operations/command-view/utils/filterCommandViewData.d.ts.map +1 -0
  475. package/dist/hooks/operations/command-view/utils/index.d.ts +6 -0
  476. package/dist/hooks/operations/command-view/utils/index.d.ts.map +1 -0
  477. package/dist/hooks/operations/command-view/utils/mergeStatsWithTopology.d.ts +19 -0
  478. package/dist/hooks/operations/command-view/utils/mergeStatsWithTopology.d.ts.map +1 -0
  479. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +15 -0
  480. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts.map +1 -0
  481. package/dist/hooks/operations/index.d.ts +4 -0
  482. package/dist/hooks/operations/index.d.ts.map +1 -0
  483. package/dist/hooks/operations/knowledge-base/index.d.ts +3 -0
  484. package/dist/hooks/operations/knowledge-base/index.d.ts.map +1 -0
  485. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +27 -0
  486. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +1 -0
  487. package/dist/hooks/operations/shared/index.d.ts +6 -0
  488. package/dist/hooks/operations/shared/index.d.ts.map +1 -0
  489. package/dist/hooks/operations/shared/queryKeys.d.ts +23 -0
  490. package/dist/hooks/operations/shared/queryKeys.d.ts.map +1 -0
  491. package/dist/hooks/operations/shared/resourceDefinitionUtils.d.ts +10 -0
  492. package/dist/hooks/operations/shared/resourceDefinitionUtils.d.ts.map +1 -0
  493. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +11 -0
  494. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +1 -0
  495. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +46 -0
  496. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +1 -0
  497. package/dist/hooks/published.d.ts +21 -6016
  498. package/dist/hooks/published.d.ts.map +1 -0
  499. package/dist/hooks/published.js +11 -11
  500. package/dist/hooks/scheduling/index.d.ts +7 -0
  501. package/dist/hooks/scheduling/index.d.ts.map +1 -0
  502. package/dist/hooks/scheduling/useScheduledTasks.d.ts +19 -0
  503. package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +1 -0
  504. package/dist/hooks/scheduling/useSchedules.d.ts +185 -0
  505. package/dist/hooks/scheduling/useSchedules.d.ts.map +1 -0
  506. package/dist/hooks/services/OperationsService.d.ts +73 -0
  507. package/dist/hooks/services/OperationsService.d.ts.map +1 -0
  508. package/dist/hooks/services/index.d.ts +2 -0
  509. package/dist/hooks/services/index.d.ts.map +1 -0
  510. package/dist/hooks/sessions/index.d.ts +8 -0
  511. package/dist/hooks/sessions/index.d.ts.map +1 -0
  512. package/dist/hooks/sessions/types.d.ts +33 -0
  513. package/dist/hooks/sessions/types.d.ts.map +1 -0
  514. package/dist/hooks/sessions/useSessionExecutions.d.ts +13 -0
  515. package/dist/hooks/sessions/useSessionExecutions.d.ts.map +1 -0
  516. package/dist/hooks/sessions/useSessionMessages.d.ts +7 -0
  517. package/dist/hooks/sessions/useSessionMessages.d.ts.map +1 -0
  518. package/dist/hooks/sessions/useSessionWebSocket.d.ts +19 -0
  519. package/dist/hooks/sessions/useSessionWebSocket.d.ts.map +1 -0
  520. package/dist/hooks/sessions/useSessions.d.ts +26 -0
  521. package/dist/hooks/sessions/useSessions.d.ts.map +1 -0
  522. package/dist/hooks/settings/api-keys/apiKeyService.d.ts +37 -0
  523. package/dist/hooks/settings/api-keys/apiKeyService.d.ts.map +1 -0
  524. package/dist/hooks/settings/api-keys/index.d.ts +7 -0
  525. package/dist/hooks/settings/api-keys/index.d.ts.map +1 -0
  526. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +3 -0
  527. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +1 -0
  528. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +2 -0
  529. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +1 -0
  530. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +2 -0
  531. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +1 -0
  532. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +5 -0
  533. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +1 -0
  534. package/dist/hooks/settings/credentials/index.d.ts +7 -0
  535. package/dist/hooks/settings/credentials/index.d.ts.map +1 -0
  536. package/dist/hooks/settings/credentials/useCreateCredential.d.ts +3 -0
  537. package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +1 -0
  538. package/dist/hooks/settings/credentials/useCredentials.d.ts +8 -0
  539. package/dist/hooks/settings/credentials/useCredentials.d.ts.map +1 -0
  540. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +2 -0
  541. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +1 -0
  542. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +10 -0
  543. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +1 -0
  544. package/dist/hooks/settings/deployments/deploymentService.d.ts +13 -0
  545. package/dist/hooks/settings/deployments/deploymentService.d.ts.map +1 -0
  546. package/dist/hooks/settings/deployments/index.d.ts +5 -0
  547. package/dist/hooks/settings/deployments/index.d.ts.map +1 -0
  548. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +4 -0
  549. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +1 -0
  550. package/dist/hooks/settings/deployments/useListDeployments.d.ts +2 -0
  551. package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +1 -0
  552. package/dist/hooks/settings/index.d.ts +6 -0
  553. package/dist/hooks/settings/index.d.ts.map +1 -0
  554. package/dist/hooks/settings/organization/index.d.ts +6 -0
  555. package/dist/hooks/settings/organization/index.d.ts.map +1 -0
  556. package/dist/hooks/settings/organization/organizationMembershipService.d.ts +44 -0
  557. package/dist/hooks/settings/organization/organizationMembershipService.d.ts.map +1 -0
  558. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +11 -0
  559. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +1 -0
  560. package/dist/hooks/settings/organization/useReactivateMembership.d.ts +11 -0
  561. package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +1 -0
  562. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +8 -0
  563. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +1 -0
  564. package/dist/hooks/settings/organization/useUserMemberships.d.ts +3 -0
  565. package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +1 -0
  566. package/dist/hooks/settings/webhooks/index.d.ts +7 -0
  567. package/dist/hooks/settings/webhooks/index.d.ts.map +1 -0
  568. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +18 -0
  569. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +1 -0
  570. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +2 -0
  571. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +1 -0
  572. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +14 -0
  573. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +1 -0
  574. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +18 -0
  575. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +1 -0
  576. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +27 -0
  577. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +1 -0
  578. package/dist/hooks/useActivityFilters.d.ts +18 -0
  579. package/dist/hooks/useActivityFilters.d.ts.map +1 -0
  580. package/dist/hooks/useDomainFilters.d.ts +36 -0
  581. package/dist/hooks/useDomainFilters.d.ts.map +1 -0
  582. package/dist/hooks/useExecutionLogsFilters.d.ts +28 -0
  583. package/dist/hooks/useExecutionLogsFilters.d.ts.map +1 -0
  584. package/dist/hooks/useOrganizationMembers.d.ts +18 -0
  585. package/dist/hooks/useOrganizationMembers.d.ts.map +1 -0
  586. package/dist/hooks/useTimeRangeDates.d.ts +10 -0
  587. package/dist/hooks/useTimeRangeDates.d.ts.map +1 -0
  588. package/dist/index.d.ts +15 -8453
  589. package/dist/index.d.ts.map +1 -0
  590. package/dist/index.js +16 -16
  591. package/dist/initialization/InitializationProvider.d.ts +48 -0
  592. package/dist/initialization/InitializationProvider.d.ts.map +1 -0
  593. package/dist/initialization/hooks/useAppInitialization.d.ts +32 -0
  594. package/dist/initialization/hooks/useAppInitialization.d.ts.map +1 -0
  595. package/dist/initialization/index.d.ts +23 -2505
  596. package/dist/initialization/index.d.ts.map +1 -0
  597. package/dist/initialization/index.js +3 -3
  598. package/dist/layout/index.d.ts +193 -3
  599. package/dist/layout/index.js +5 -4
  600. package/dist/organization/components/OrganizationSwitcher.d.ts +11 -0
  601. package/dist/organization/components/OrganizationSwitcher.d.ts.map +1 -0
  602. package/dist/organization/context/OrganizationContext.d.ts +41 -0
  603. package/dist/organization/context/OrganizationContext.d.ts.map +1 -0
  604. package/dist/organization/context/OrganizationProvider.d.ts +24 -0
  605. package/dist/organization/context/OrganizationProvider.d.ts.map +1 -0
  606. package/dist/organization/hooks/useOrgInitialization.d.ts +56 -0
  607. package/dist/organization/hooks/useOrgInitialization.d.ts.map +1 -0
  608. package/dist/organization/hooks/useOrganizations.d.ts +31 -0
  609. package/dist/organization/hooks/useOrganizations.d.ts.map +1 -0
  610. package/dist/organization/index.d.ts +23 -264
  611. package/dist/organization/index.d.ts.map +1 -0
  612. package/dist/organization/index.js +3 -3
  613. package/dist/organization/store/organizationsSlice.d.ts +40 -0
  614. package/dist/organization/store/organizationsSlice.d.ts.map +1 -0
  615. package/dist/organization/store/types.d.ts +20 -0
  616. package/dist/organization/store/types.d.ts.map +1 -0
  617. package/dist/profile/context/ProfileProvider.d.ts +31 -0
  618. package/dist/profile/context/ProfileProvider.d.ts.map +1 -0
  619. package/dist/profile/hooks/useUserProfile.d.ts +38 -0
  620. package/dist/profile/hooks/useUserProfile.d.ts.map +1 -0
  621. package/dist/profile/index.d.ts +15 -2456
  622. package/dist/profile/index.d.ts.map +1 -0
  623. package/dist/profile/index.js +1 -1
  624. package/dist/profile/services/UserProfileService.d.ts +29 -0
  625. package/dist/profile/services/UserProfileService.d.ts.map +1 -0
  626. package/dist/provider/CoreAuthKitInner.d.ts +12 -0
  627. package/dist/provider/CoreAuthKitInner.d.ts.map +1 -0
  628. package/dist/provider/ElevasisCoreProvider.d.ts +25 -0
  629. package/dist/provider/ElevasisCoreProvider.d.ts.map +1 -0
  630. package/dist/provider/ElevasisServiceContext.d.ts +31 -0
  631. package/dist/provider/ElevasisServiceContext.d.ts.map +1 -0
  632. package/dist/provider/ElevasisUIProvider.d.ts +28 -0
  633. package/dist/provider/ElevasisUIProvider.d.ts.map +1 -0
  634. package/dist/provider/NotificationContext.d.ts +49 -0
  635. package/dist/provider/NotificationContext.d.ts.map +1 -0
  636. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +2 -0
  637. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +1 -0
  638. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +2 -0
  639. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +1 -0
  640. package/dist/provider/index.d.ts +11 -334
  641. package/dist/provider/index.d.ts.map +1 -0
  642. package/dist/provider/index.js +8 -8
  643. package/dist/provider/published.d.ts +11 -309
  644. package/dist/provider/published.d.ts.map +1 -0
  645. package/dist/provider/published.js +4 -4
  646. package/dist/provider/types.d.ts +151 -0
  647. package/dist/provider/types.d.ts.map +1 -0
  648. package/dist/router/index.d.ts +12 -1
  649. package/dist/router/index.js +1 -1
  650. package/dist/sdk-barrel.d.ts +20 -0
  651. package/dist/sdk-barrel.d.ts.map +1 -0
  652. package/dist/supabase/client.d.ts +2265 -0
  653. package/dist/supabase/client.d.ts.map +1 -0
  654. package/dist/supabase/index.d.ts +2 -4595
  655. package/dist/supabase/index.d.ts.map +1 -0
  656. package/dist/theme/PresetsContext.d.ts +4 -0
  657. package/dist/theme/PresetsContext.d.ts.map +1 -0
  658. package/dist/theme/cssVariables.d.ts +12 -0
  659. package/dist/theme/cssVariables.d.ts.map +1 -0
  660. package/dist/theme/index.d.ts +10 -148
  661. package/dist/theme/index.d.ts.map +1 -0
  662. package/dist/theme/index.js +3 -3
  663. package/dist/theme/presets/__tests__/getPreset.test.d.ts +2 -0
  664. package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +1 -0
  665. package/dist/theme/presets/__tests__/getPreset.test.js +88 -0
  666. package/dist/theme/presets/abyss.d.ts +3 -0
  667. package/dist/theme/presets/abyss.d.ts.map +1 -0
  668. package/dist/theme/presets/aurora.d.ts +8 -0
  669. package/dist/theme/presets/aurora.d.ts.map +1 -0
  670. package/dist/theme/presets/canopy.d.ts +12 -0
  671. package/dist/theme/presets/canopy.d.ts.map +1 -0
  672. package/dist/theme/presets/cyber-punk.d.ts +11 -0
  673. package/dist/theme/presets/cyber-punk.d.ts.map +1 -0
  674. package/dist/theme/presets/cyber-punk.js +78 -0
  675. package/dist/theme/presets/cyber-strike.d.ts +13 -0
  676. package/dist/theme/presets/cyber-strike.d.ts.map +1 -0
  677. package/dist/theme/presets/cyber-void.d.ts +12 -0
  678. package/dist/theme/presets/cyber-void.d.ts.map +1 -0
  679. package/dist/theme/presets/cyber-volt.d.ts +12 -0
  680. package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
  681. package/dist/theme/presets/default.d.ts +4 -0
  682. package/dist/theme/presets/default.d.ts.map +1 -0
  683. package/dist/theme/presets/ember.d.ts +8 -0
  684. package/dist/theme/presets/ember.d.ts.map +1 -0
  685. package/dist/theme/presets/honey.d.ts +12 -0
  686. package/dist/theme/presets/honey.d.ts.map +1 -0
  687. package/dist/theme/presets/index.d.ts +8 -0
  688. package/dist/theme/presets/index.d.ts.map +1 -0
  689. package/dist/theme/presets/index.js +136 -0
  690. package/dist/theme/presets/midnight.d.ts +8 -0
  691. package/dist/theme/presets/midnight.d.ts.map +1 -0
  692. package/dist/theme/presets/nirvana.d.ts +16 -0
  693. package/dist/theme/presets/nirvana.d.ts.map +1 -0
  694. package/dist/theme/presets/obsidian.d.ts +3 -0
  695. package/dist/theme/presets/obsidian.d.ts.map +1 -0
  696. package/dist/theme/presets/regal.d.ts +8 -0
  697. package/dist/theme/presets/regal.d.ts.map +1 -0
  698. package/dist/theme/presets/rose-gold.d.ts +8 -0
  699. package/dist/theme/presets/rose-gold.d.ts.map +1 -0
  700. package/dist/theme/presets/slate.d.ts +3 -0
  701. package/dist/theme/presets/slate.d.ts.map +1 -0
  702. package/dist/theme/presets/tactical.d.ts +8 -0
  703. package/dist/theme/presets/tactical.d.ts.map +1 -0
  704. package/dist/theme/presets/types.d.ts +43 -0
  705. package/dist/theme/presets/types.d.ts.map +1 -0
  706. package/dist/theme/presets/types.js +3 -0
  707. package/dist/theme/presets/wave.d.ts +14 -0
  708. package/dist/theme/presets/wave.d.ts.map +1 -0
  709. package/dist/theme/useAvailablePresets.d.ts +16 -0
  710. package/dist/theme/useAvailablePresets.d.ts.map +1 -0
  711. package/dist/theme/useAvailablePresets.js +36 -0
  712. package/dist/types/index.d.ts +42 -7124
  713. package/dist/types/index.d.ts.map +1 -0
  714. package/dist/utils/error-utils.d.ts +38 -0
  715. package/dist/utils/error-utils.d.ts.map +1 -0
  716. package/dist/utils/index.d.ts +8 -265
  717. package/dist/utils/index.d.ts.map +1 -0
  718. package/dist/utils/resource-icons.d.ts +18 -0
  719. package/dist/utils/resource-icons.d.ts.map +1 -0
  720. package/dist/utils/setup-test-utils.d.ts +2 -0
  721. package/dist/utils/setup-test-utils.d.ts.map +1 -0
  722. package/package.json +7 -3
  723. package/dist/chunk-LHQTTUL2.js +0 -27
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Unit tests for useApiClient - API request timeout behavior
3
+ *
4
+ * Tests:
5
+ * 1. Successful requests complete normally with timeout signal attached
6
+ * 2. Requests abort after 30s timeout
7
+ * 3. Caller-provided signal is merged with timeout signal
8
+ * 4. Unauthenticated fallback path also has timeout
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=useApiClient.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApiClient.test.d.ts","sourceRoot":"","sources":["../../../../src/api/hooks/__tests__/useApiClient.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Hook that returns apiRequest and deferredApiRequest bound to the current
3
+ * ApiClientContext. apiUrl is the only parameter because org ID is resolved
4
+ * at call time via getOrganizationId() from context.
5
+ *
6
+ * When OrganizationProvider is present in the tree, isOrganizationReady and
7
+ * isInitializing reflect the live org state (currentWorkOSOrganizationId,
8
+ * isInitializing, isOrgRefreshing). When OrganizationProvider is absent
9
+ * (e.g. theme-only mode, testing), the hook falls back to the values from
10
+ * ApiClientContext.
11
+ *
12
+ * Usage:
13
+ * ```typescript
14
+ * import { useApiClient } from '@repo/ui/api'
15
+ * import { API_URL } from '@/lib/constants/api'
16
+ *
17
+ * function useMyClient() {
18
+ * return useApiClient(API_URL)
19
+ * }
20
+ * ```
21
+ */
22
+ export declare function useApiClient(apiUrl: string): {
23
+ apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
24
+ deferredApiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
25
+ isOrganizationReady: boolean;
26
+ isInitializing: boolean;
27
+ };
28
+ //# sourceMappingURL=useApiClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApiClient.d.ts","sourceRoot":"","sources":["../../../src/api/hooks/useApiClient.ts"],"names":[],"mappings":"AAiGA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM;iBAsCtC,CAAC,YAAY,MAAM,YAAW,WAAW,KAAQ,OAAO,CAAC,CAAC,CAAC;yBAMrD,CAAC,YAAY,MAAM,YAAW,WAAW,KAAQ,OAAO,CAAC,CAAC,CAAC;;;EAkBrE"}
@@ -1,100 +1,20 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
1
  /**
4
- * API module types
5
- */
6
- interface ApiClientContextValue {
7
- getAccessToken: () => Promise<string | undefined>;
8
- /** @deprecated Read via getOrganizationId() instead. Kept for downstream context consumers during migration. */
9
- organizationId: string | null;
10
- isOrganizationReady: boolean;
11
- getOrganizationId: () => string | null;
12
- onError?: (endpoint: string, error: Error, details?: ApiErrorDetails) => void;
13
- }
14
- interface ApiErrorDetails {
15
- method: string;
16
- statusCode: number;
17
- requestId?: string;
18
- }
19
- interface ApiClientProviderProps {
20
- children: React.ReactNode;
21
- getAccessToken: () => Promise<string | undefined>;
22
- /**
23
- * Static org ID. Used when org ID is stable at render time.
24
- * Cannot reflect org switches without re-rendering the provider.
25
- * Prefer getOrganizationId for dynamic org context.
26
- * @deprecated Pass getOrganizationId instead for dynamic org resolution.
27
- */
28
- organizationId?: string | null;
29
- /**
30
- * Callback invoked on every request to read the current org ID.
31
- * Takes precedence over organizationId when provided.
32
- * Allows org switching without re-rendering the provider tree.
33
- */
34
- getOrganizationId?: () => string | null;
35
- isOrganizationReady: boolean;
36
- onError?: (endpoint: string, error: Error, details?: ApiErrorDetails) => void;
37
- }
38
-
39
- /**
40
- * Hook to access the API client context
41
- * Must be used within an ApiClientProvider
42
- */
43
- declare function useApiClientContext(): ApiClientContextValue;
44
- /**
45
- * Provider component that configures the API client context
46
- *
47
- * Configure this at your app root with auth and organization dependencies.
48
- * All components using useApiClient will automatically get the configured values.
49
- *
50
- * @example
51
- * ```tsx
52
- * function App() {
53
- * const { getAccessToken } = useAuth()
54
- * const { currentWorkOSOrganizationId, currentMembership } = useOrganizations()
55
- *
56
- * return (
57
- * <ApiClientProvider
58
- * getAccessToken={getAccessToken}
59
- * organizationId={currentWorkOSOrganizationId}
60
- * isOrganizationReady={!!currentMembership}
61
- * onError={(endpoint, error, details) => logError(endpoint, error, details)}
62
- * >
63
- * <YourApp />
64
- * </ApiClientProvider>
65
- * )
66
- * }
67
- * ```
68
- */
69
- declare function ApiClientProvider({ children, getAccessToken, organizationId, getOrganizationId: getOrganizationIdProp, isOrganizationReady, onError }: ApiClientProviderProps): react_jsx_runtime.JSX.Element;
70
-
71
- /**
72
- * Hook that returns apiRequest and deferredApiRequest bound to the current
73
- * ApiClientContext. apiUrl is the only parameter because org ID is resolved
74
- * at call time via getOrganizationId() from context.
2
+ * API module - HTTP client with Provider pattern
75
3
  *
76
- * When OrganizationProvider is present in the tree, isOrganizationReady and
77
- * isInitializing reflect the live org state (currentWorkOSOrganizationId,
78
- * isInitializing, isOrgRefreshing). When OrganizationProvider is absent
79
- * (e.g. theme-only mode, testing), the hook falls back to the values from
80
- * ApiClientContext.
4
+ * Exports:
5
+ * - ApiClientProvider: Configure API client at app root
6
+ * - useApiClientContext: Hook to access API client context directly
7
+ * - useApiClient: Org-aware hook that reads OrganizationContext for readiness
8
+ * - Types for API client configuration
81
9
  *
82
10
  * Usage:
83
11
  * ```typescript
84
12
  * import { useApiClient } from '@repo/ui/api'
85
- * import { API_URL } from '@/lib/constants/api'
86
13
  *
87
- * function useMyClient() {
88
- * return useApiClient(API_URL)
89
- * }
14
+ * const { apiRequest, isOrganizationReady } = useApiClient(API_URL)
90
15
  * ```
91
16
  */
92
- declare function useApiClient(apiUrl: string): {
93
- apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
94
- deferredApiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
95
- isOrganizationReady: boolean;
96
- isInitializing: boolean;
97
- };
98
-
99
- export { ApiClientProvider, useApiClient, useApiClientContext };
100
- export type { ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails };
17
+ export { ApiClientProvider, useApiClientContext } from './context/ApiClientProvider';
18
+ export { useApiClient } from './hooks/useApiClient';
19
+ export type { ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails } from './types';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAGpF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface AdminGuardProps {
3
+ children: ReactNode;
4
+ /**
5
+ * Path to redirect non-admin users to.
6
+ * @default '/'
7
+ */
8
+ redirectTo?: string;
9
+ /**
10
+ * Rendered while user readiness is being determined.
11
+ * When not provided, nothing is rendered during initialization.
12
+ */
13
+ fallback?: ReactNode;
14
+ }
15
+ /**
16
+ * Headless route guard for platform admin pages.
17
+ *
18
+ * Reads `profile.is_platform_admin` from the nearest InitializationProvider.
19
+ * Non-admin users are redirected to `redirectTo` (default: '/').
20
+ *
21
+ * Must be nested inside a ProtectedRoute (or equivalent) so that
22
+ * `userReady` is guaranteed to be true when this guard runs.
23
+ *
24
+ * @example
25
+ * <ProtectedRoute>
26
+ * <AdminGuard fallback={<AppShellLoader />}>
27
+ * <AdminDashboard />
28
+ * </AdminGuard>
29
+ * </ProtectedRoute>
30
+ */
31
+ export declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): import("react/jsx-runtime").JSX.Element | null;
32
+ //# sourceMappingURL=AdminGuard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminGuard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/AdminGuard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAgB,EAAE,QAAe,EAAE,EAAE,eAAe,kDA0B1F"}
@@ -0,0 +1,60 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { InitializationError } from '../../initialization/hooks/useAppInitialization';
3
+ export interface ProtectedRouteProps {
4
+ children: ReactNode;
5
+ /**
6
+ * Path to redirect to when user is unauthenticated and the auth adapter
7
+ * does not provide a `signIn` function.
8
+ * @default '/login'
9
+ */
10
+ redirectTo?: string;
11
+ /**
12
+ * Rendered while initialization is in progress.
13
+ * When not provided, nothing is rendered during initialization.
14
+ */
15
+ fallback?: ReactNode;
16
+ /**
17
+ * Rendered when initialization fails with a non-organization error.
18
+ * Receives the error and a retry callback.
19
+ * When not provided, the error is silently swallowed (children not rendered).
20
+ */
21
+ errorFallback?: (error: InitializationError, retry: () => void) => ReactNode;
22
+ /**
23
+ * When true (default), waits for both user AND organization to be ready
24
+ * before rendering children. When false, only waits for user readiness.
25
+ * @default true
26
+ */
27
+ waitForOrganization?: boolean;
28
+ }
29
+ /**
30
+ * Headless route guard for authenticated pages.
31
+ *
32
+ * Reads initialization state from the nearest InitializationProvider.
33
+ *
34
+ * When `canRecover()` returns true (refresh token exists), unauthenticated users
35
+ * are sent directly to WorkOS AuthKit via `signIn()`. WorkOS checks its
36
+ * server-side session and either signs the user in immediately (page-reload case)
37
+ * or shows a login form (logged-out case). Explicit logout destroys the
38
+ * server-side session, so the next auto-signIn correctly presents a login form
39
+ * rather than looping.
40
+ *
41
+ * When `canRecover()` returns false, falls back to navigating to `redirectTo`
42
+ * (default: '/login') with a `returnTo` search param.
43
+ *
44
+ * Organization-layer errors are allowed through -- routes like /invitations
45
+ * must be accessible even when the user has no org membership.
46
+ *
47
+ * @example
48
+ * // With custom fallback (your Mantine loader):
49
+ * <ProtectedRoute fallback={<AppShellLoader />}>
50
+ * <DashboardPage />
51
+ * </ProtectedRoute>
52
+ *
53
+ * @example
54
+ * // Wait only for user, not org (e.g. /invitations route):
55
+ * <ProtectedRoute waitForOrganization={false}>
56
+ * <InvitationsPage />
57
+ * </ProtectedRoute>
58
+ */
59
+ export declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): import("react/jsx-runtime").JSX.Element | null;
60
+ //# sourceMappingURL=ProtectedRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProtectedRoute.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/ProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAA;AAE1F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IAC5E;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,UAAqB,EACrB,QAAe,EACf,aAAa,EACb,mBAA0B,EAC3B,EAAE,mBAAmB,kDAyDrB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * AdminGuard Tests (shared @repo/ui guard)
3
+ *
4
+ * Tests role-based access control for platform admin pages:
5
+ * - Shows fallback while user is not ready
6
+ * - Renders children for platform admin users
7
+ * - Redirects non-admin users to redirectTo (default: '/')
8
+ * - Handles missing profile gracefully
9
+ * - Supports custom redirectTo
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=AdminGuard.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdminGuard.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/AdminGuard.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ProtectedRoute Tests (shared @repo/ui guard)
3
+ *
4
+ * Tests headless authentication guard behavior:
5
+ * - Shows fallback while initializing
6
+ * - Redirects unauthenticated users to login with returnTo
7
+ * - Renders children when user is ready
8
+ * - Renders children when org error (allows /invitations route pattern)
9
+ * - Shows errorFallback for non-organization errors
10
+ * - Waits for org readiness when waitForOrganization=true (default)
11
+ * - Renders after user ready when waitForOrganization=false
12
+ */
13
+ export {};
14
+ //# sourceMappingURL=ProtectedRoute.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProtectedRoute.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/ProtectedRoute.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -1,176 +1,16 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
-
5
- interface AuthContextValue {
6
- user: {
7
- id: string;
8
- } | null;
9
- isLoading: boolean;
10
- getAccessToken: () => Promise<string>;
11
- organizationId?: string | null;
12
- /**
13
- * Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
14
- * Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
15
- */
16
- signIn: (options?: {
17
- state?: {
18
- returnTo?: string;
19
- };
20
- }) => void;
21
- /**
22
- * Returns true when a previous session can be recovered (refresh token
23
- * exists in storage). ProtectedRoute calls `signIn()` only when this returns
24
- * true; otherwise it navigates to the login page.
25
- *
26
- * Explicit logout clears the stored token, so canRecover() returns false
27
- * and the user sees the login page as expected.
28
- */
29
- canRecover: () => boolean;
30
- }
31
- declare function useAuthContext(): AuthContextValue;
32
- declare function AuthProvider({ value, children }: {
33
- value: AuthContextValue;
34
- children: ReactNode;
35
- }): react.FunctionComponentElement<react.ProviderProps<AuthContextValue | null>>;
36
-
37
1
  /**
38
- * Returns a stable reference to getAccessToken that won't change between renders
39
- *
40
- * This prevents SSE connections from reconnecting unnecessarily when the
41
- * WorkOS useAuth hook returns a new getAccessToken function reference
42
- *
43
- * @example
44
- * ```tsx
45
- * const getAccessToken = useStableAccessToken()
46
- *
47
- * useEffect(() => {
48
- * fetchEventSourceWithTokenRefresh({
49
- * getToken: getAccessToken,
50
- * // ...
51
- * })
52
- * }, [getAccessToken]) // Won't re-run on every render
53
- * ```
54
- */
55
- declare function useStableAccessToken(): () => Promise<string>;
56
-
57
- /**
58
- * Checks WorkOS session validity when window/tab regains focus
59
- *
60
- * When window or tab becomes visible after inactivity, validates session
61
- * by attempting to get access token. If session expired (WorkOS inactivity
62
- * timeout exceeded), signs out user and redirects to login.
63
- *
64
- * How it works:
65
- * 1. Window/tab regains focus after inactivity
66
- * 2. Cancel all pending queries to prevent 401 error cascade
67
- * 3. Attempt to get access token from WorkOS
68
- * 4. If successful: Resume queries with fresh token
69
- * 5. If failed (session expired): Sign out and redirect to login
70
- *
71
- * @example
72
- * // In __root.tsx
73
- * export function RootLayoutComponent() {
74
- * useSessionCheck()
75
- * return <YourApp />
76
- * }
77
- */
78
- declare function useSessionCheck(): void;
79
-
80
- interface InitializationError {
81
- layer: 'auth' | 'profile' | 'organization';
82
- message: string;
83
- originalError?: Error;
84
- }
85
-
86
- interface ProtectedRouteProps {
87
- children: ReactNode;
88
- /**
89
- * Path to redirect to when user is unauthenticated and the auth adapter
90
- * does not provide a `signIn` function.
91
- * @default '/login'
92
- */
93
- redirectTo?: string;
94
- /**
95
- * Rendered while initialization is in progress.
96
- * When not provided, nothing is rendered during initialization.
97
- */
98
- fallback?: ReactNode;
99
- /**
100
- * Rendered when initialization fails with a non-organization error.
101
- * Receives the error and a retry callback.
102
- * When not provided, the error is silently swallowed (children not rendered).
103
- */
104
- errorFallback?: (error: InitializationError, retry: () => void) => ReactNode;
105
- /**
106
- * When true (default), waits for both user AND organization to be ready
107
- * before rendering children. When false, only waits for user readiness.
108
- * @default true
109
- */
110
- waitForOrganization?: boolean;
111
- }
112
- /**
113
- * Headless route guard for authenticated pages.
114
- *
115
- * Reads initialization state from the nearest InitializationProvider.
116
- *
117
- * When `canRecover()` returns true (refresh token exists), unauthenticated users
118
- * are sent directly to WorkOS AuthKit via `signIn()`. WorkOS checks its
119
- * server-side session and either signs the user in immediately (page-reload case)
120
- * or shows a login form (logged-out case). Explicit logout destroys the
121
- * server-side session, so the next auto-signIn correctly presents a login form
122
- * rather than looping.
123
- *
124
- * When `canRecover()` returns false, falls back to navigating to `redirectTo`
125
- * (default: '/login') with a `returnTo` search param.
126
- *
127
- * Organization-layer errors are allowed through -- routes like /invitations
128
- * must be accessible even when the user has no org membership.
129
- *
130
- * @example
131
- * // With custom fallback (your Mantine loader):
132
- * <ProtectedRoute fallback={<AppShellLoader />}>
133
- * <DashboardPage />
134
- * </ProtectedRoute>
135
- *
136
- * @example
137
- * // Wait only for user, not org (e.g. /invitations route):
138
- * <ProtectedRoute waitForOrganization={false}>
139
- * <InvitationsPage />
140
- * </ProtectedRoute>
141
- */
142
- declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): react_jsx_runtime.JSX.Element | null;
143
-
144
- interface AdminGuardProps {
145
- children: ReactNode;
146
- /**
147
- * Path to redirect non-admin users to.
148
- * @default '/'
149
- */
150
- redirectTo?: string;
151
- /**
152
- * Rendered while user readiness is being determined.
153
- * When not provided, nothing is rendered during initialization.
154
- */
155
- fallback?: ReactNode;
156
- }
157
- /**
158
- * Headless route guard for platform admin pages.
159
- *
160
- * Reads `profile.is_platform_admin` from the nearest InitializationProvider.
161
- * Non-admin users are redirected to `redirectTo` (default: '/').
162
- *
163
- * Must be nested inside a ProtectedRoute (or equivalent) so that
164
- * `userReady` is guaranteed to be true when this guard runs.
165
- *
166
- * @example
167
- * <ProtectedRoute>
168
- * <AdminGuard fallback={<AppShellLoader />}>
169
- * <AdminDashboard />
170
- * </AdminGuard>
171
- * </ProtectedRoute>
2
+ * Auth module - Pure authentication concerns
3
+ *
4
+ * Exports:
5
+ * - AuthContextValue: Interface for auth state (user, isLoading, getAccessToken, organizationId, signIn, canRecover)
6
+ * - AuthProvider: React context provider for AuthContextValue
7
+ * - useAuthContext: Hook to consume AuthContextValue from context
8
+ * - useStableAccessToken: Stable reference to getAccessToken for SSE connections
9
+ * - useSessionCheck: Validates session on tab refocus
172
10
  */
173
- declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): react_jsx_runtime.JSX.Element | null;
174
-
175
- export { AdminGuard, AuthProvider, ProtectedRoute, useAuthContext, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken };
176
- export type { AdminGuardProps, AuthContextValue, ProtectedRouteProps };
11
+ export { AuthProvider, useAuthContext, type AuthContextValue } from './context';
12
+ export * from './hooks/useStableAccessToken';
13
+ export * from './hooks/useSessionCheck';
14
+ export { ProtectedRoute, type ProtectedRouteProps } from './guards/ProtectedRoute';
15
+ export { AdminGuard, type AdminGuardProps } from './guards/AdminGuard';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC/E,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,6 +1,6 @@
1
- export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from '../chunk-V5GGPIDD.js';
1
+ export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from '../chunk-CC3SDRIF.js';
2
2
  export { useStableAccessToken } from '../chunk-ALA56RGZ.js';
3
- import '../chunk-3VTC7OWU.js';
4
- import '../chunk-BK4EIWNU.js';
3
+ import '../chunk-DVKEEY5J.js';
4
+ import '../chunk-QEPXAWE2.js';
5
5
  import '../chunk-DD3CCMCZ.js';
6
6
  export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
@@ -1,6 +1,29 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ /**
5
+ * ChartFrame decouples chart width from live parent width changes by debouncing
6
+ * ResizeObserver callbacks. Prevents Recharts (under @mantine/charts) from firing
7
+ * dozens of full re-renders during the sidebar collapse/expand animation.
8
+ *
9
+ * How it works: the outer div observes its real container width. The inner div
10
+ * is given a fixed pixel width from React state, which Recharts' own
11
+ * ResponsiveContainer reads. State only updates after `debounceMs` of quiet, so
12
+ * the chart doesn't re-render on every frame of the sidebar transition.
13
+ *
14
+ * @repo/ui context: used wherever a @mantine/charts component renders inside
15
+ * a layout that has a CSS-transitioned collapsible sidebar. Without this wrapper,
16
+ * every frame of the sidebar animation fires ResizeObserver → Recharts scale
17
+ * recomputation → React reconciliation → SVG regeneration, saturating the main
18
+ * thread and causing animation jitter.
19
+ */
20
+ interface ChartFrameProps {
21
+ h: number;
22
+ debounceMs?: number;
23
+ children: ReactNode;
24
+ }
25
+ declare function ChartFrame({ h, debounceMs, children }: ChartFrameProps): react_jsx_runtime.JSX.Element;
26
+
4
27
  /**
5
28
  * CyberAreaChart — Reusable area chart with cyber/high-tech aesthetic.
6
29
  *
@@ -307,5 +330,5 @@ interface CombinedTrendChartProps {
307
330
  }
308
331
  declare function CombinedTrendChart({ healthData, errorData: _errorData, isLoading, error, timeRange, navigationAction }: CombinedTrendChartProps): react_jsx_runtime.JSX.Element;
309
332
 
310
- export { ActivityTrendChart, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors };
311
- export type { ActivityTrendChartProps, CombinedTrendChartProps, CostTrendChartProps, CyberAreaChartProps, CyberColors, CyberDonutProps, CyberDonutSegment, CyberSeries, HeroStatsRowProps };
333
+ export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors };
334
+ export type { ActivityTrendChartProps, ChartFrameProps, CombinedTrendChartProps, CostTrendChartProps, CyberAreaChartProps, CyberColors, CyberDonutProps, CyberDonutSegment, CyberSeries, HeroStatsRowProps };
@@ -1,14 +1,14 @@
1
- export { ActivityTrendChart, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-VOSLYTTR.js';
1
+ export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-7S5FS7WW.js';
2
2
  import '../chunk-KBLGVZBD.js';
3
- import '../chunk-EQNXEBGZ.js';
4
- import '../chunk-LHQTTUL2.js';
3
+ import '../chunk-LXHZYSMQ.js';
4
+ import '../chunk-MHW43EOH.js';
5
5
  import '../chunk-ELJIFLCB.js';
6
6
  import '../chunk-SZHARWKU.js';
7
7
  import '../chunk-FCFLBMVI.js';
8
- import '../chunk-V5GGPIDD.js';
8
+ import '../chunk-CC3SDRIF.js';
9
9
  import '../chunk-ALA56RGZ.js';
10
- import '../chunk-3VTC7OWU.js';
11
- import '../chunk-BK4EIWNU.js';
10
+ import '../chunk-DVKEEY5J.js';
11
+ import '../chunk-QEPXAWE2.js';
12
12
  import '../chunk-DD3CCMCZ.js';
13
13
  import '../chunk-BRJ3QZ4E.js';
14
14
  import '../chunk-Q7DJKLEN.js';