@elevasis/ui 1.19.0 → 1.20.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 (611) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/auth/guards/AdminGuard.d.ts +32 -0
  3. package/dist/auth/guards/AdminGuard.d.ts.map +1 -0
  4. package/dist/auth/guards/ProtectedRoute.d.ts +60 -0
  5. package/dist/auth/guards/ProtectedRoute.d.ts.map +1 -0
  6. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +12 -0
  7. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +1 -0
  8. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +14 -0
  9. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +1 -0
  10. package/dist/auth/index.d.ts +14 -174
  11. package/dist/auth/index.d.ts.map +1 -0
  12. package/dist/auth/index.js +3 -3
  13. package/dist/charts/index.css +14 -0
  14. package/dist/charts/index.js +8 -6
  15. package/dist/chunk-4SY4EQSK.js +68 -0
  16. package/dist/{chunk-7ATCF6UL.js → chunk-ACD2QA6E.js} +11 -4
  17. package/dist/{chunk-2Z7LYTIX.js → chunk-AQ5MQDSS.js} +30 -17
  18. package/dist/chunk-AWMZCYKH.js +639 -0
  19. package/dist/chunk-BX565EOK.js +2921 -0
  20. package/dist/{chunk-WAPZN2U3.js → chunk-EMN755L5.js} +7 -41
  21. package/dist/{chunk-LBY7FVFD.js → chunk-ERVB3QJQ.js} +31 -715
  22. package/dist/chunk-GBMNCNHX.js +105 -0
  23. package/dist/{chunk-BVNAC4SQ.js → chunk-GH7ZO4VD.js} +38 -48
  24. package/dist/{chunk-KNJKCD73.js → chunk-I6EVLOP3.js} +4 -4
  25. package/dist/{chunk-MBZDE6UT.js → chunk-IOKL7BKE.js} +9 -1
  26. package/dist/{chunk-35UWYH2A.js → chunk-JFRG2JJE.js} +8 -2
  27. package/dist/{chunk-NUULWBAD.js → chunk-JHMJKDVU.js} +1 -1
  28. package/dist/chunk-JZEXFQ6N.js +671 -0
  29. package/dist/chunk-LGKLC5MG.js +44 -0
  30. package/dist/chunk-MG3NF7QL.js +63 -0
  31. package/dist/{chunk-KBLGVZBD.js → chunk-NNKKBSJN.js} +2 -22
  32. package/dist/{chunk-JNBHUCKW.js → chunk-NVOCKXUQ.js} +1 -1
  33. package/dist/chunk-PDHTXPSF.js +12 -0
  34. package/dist/chunk-QJ2S46NI.js +23 -0
  35. package/dist/{chunk-UANJP5P7.js → chunk-R7WLWGPO.js} +5 -5
  36. package/dist/{chunk-CC3SDRIF.js → chunk-RWQIFKMJ.js} +1 -1
  37. package/dist/chunk-U4CHEPIL.js +2622 -0
  38. package/dist/chunk-UMFPUM7Q.js +1281 -0
  39. package/dist/chunk-WWEMNIHW.js +37 -0
  40. package/dist/{chunk-UTWJZEOJ.js → chunk-XOTN3X3Z.js} +3 -3
  41. package/dist/{chunk-ZFCG5SHW.js → chunk-Z2BXCFAG.js} +1 -1
  42. package/dist/components/charts/ActivityTrendChart.d.ts +13 -0
  43. package/dist/components/charts/ActivityTrendChart.d.ts.map +1 -0
  44. package/dist/components/charts/CombinedTrendChart.d.ts +22 -0
  45. package/dist/components/charts/CombinedTrendChart.d.ts.map +1 -0
  46. package/dist/components/charts/CostTrendChart.d.ts +13 -0
  47. package/dist/components/charts/CostTrendChart.d.ts.map +1 -0
  48. package/dist/components/charts/HeroStatsRow.d.ts +15 -0
  49. package/dist/components/charts/HeroStatsRow.d.ts.map +1 -0
  50. package/dist/components/charts/index.d.ts +9 -0
  51. package/dist/components/charts/index.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/PageNotFound.d.ts +2 -0
  57. package/dist/components/display/PageNotFound.d.ts.map +1 -0
  58. package/dist/components/display/index.d.ts +26 -0
  59. package/dist/components/display/index.d.ts.map +1 -0
  60. package/dist/components/execution/ExecutionStats.d.ts +16 -0
  61. package/dist/components/execution/ExecutionStats.d.ts.map +1 -0
  62. package/dist/components/execution/index.d.ts +18 -0
  63. package/dist/components/execution/index.d.ts.map +1 -0
  64. package/dist/components/index.css +14 -0
  65. package/dist/components/index.d.ts +22 -5674
  66. package/dist/components/index.d.ts.map +1 -0
  67. package/dist/components/index.js +564 -5023
  68. package/dist/components/layout/backgrounds/AuroraBackground.d.ts +16 -0
  69. package/dist/components/layout/backgrounds/AuroraBackground.d.ts.map +1 -0
  70. package/dist/components/layout/backgrounds/AuroraBackground.js +169 -0
  71. package/dist/components/layout/backgrounds/EmberBackground.d.ts +16 -0
  72. package/dist/components/layout/backgrounds/EmberBackground.d.ts.map +1 -0
  73. package/dist/components/layout/backgrounds/EmberBackground.js +169 -0
  74. package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts +16 -0
  75. package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts.map +1 -0
  76. package/dist/components/layout/backgrounds/RoseGoldBackground.js +169 -0
  77. package/dist/components/monitoring/ErrorBreakdownTable.d.ts +12 -0
  78. package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +1 -0
  79. package/dist/components/monitoring/ResourceHealthPanel.d.ts +8 -0
  80. package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +1 -0
  81. package/dist/components/monitoring/index.d.ts +16 -0
  82. package/dist/components/monitoring/index.d.ts.map +1 -0
  83. package/dist/components/navigation/index.js +2 -63
  84. package/dist/components/notifications/NotificationBell.d.ts +9 -0
  85. package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
  86. package/dist/components/notifications/NotificationItem.d.ts +9 -0
  87. package/dist/components/notifications/NotificationItem.d.ts.map +1 -0
  88. package/dist/components/notifications/NotificationList.d.ts +10 -0
  89. package/dist/components/notifications/NotificationList.d.ts.map +1 -0
  90. package/dist/components/notifications/NotificationPanel.d.ts +10 -0
  91. package/dist/components/notifications/NotificationPanel.d.ts.map +1 -0
  92. package/dist/components/notifications/index.d.ts +5 -0
  93. package/dist/components/notifications/index.d.ts.map +1 -0
  94. package/dist/components/operations/calibration/CreateProjectModal.d.ts +9 -0
  95. package/dist/components/operations/calibration/CreateProjectModal.d.ts.map +1 -0
  96. package/dist/components/operations/calibration/ProjectCard.d.ts +9 -0
  97. package/dist/components/operations/calibration/ProjectCard.d.ts.map +1 -0
  98. package/dist/components/operations/command-queue/index.d.ts +3 -0
  99. package/dist/components/operations/command-queue/index.d.ts.map +1 -0
  100. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +17 -0
  101. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +1 -0
  102. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +17 -0
  103. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +1 -0
  104. package/dist/components/operations/command-queue/sidebar/index.d.ts +5 -0
  105. package/dist/components/operations/command-queue/sidebar/index.d.ts.map +1 -0
  106. package/dist/components/operations/command-view/CommandViewGraph.d.ts +22 -0
  107. package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +1 -0
  108. package/dist/components/operations/command-view/index.d.ts +4 -0
  109. package/dist/components/operations/command-view/index.d.ts.map +1 -0
  110. package/dist/components/operations/executions/AgentExecutionLogs.d.ts +13 -0
  111. package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +1 -0
  112. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +13 -0
  113. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +1 -0
  114. package/dist/components/operations/executions/index.d.ts +4 -0
  115. package/dist/components/operations/executions/index.d.ts.map +1 -0
  116. package/dist/components/operations/index.d.ts +8 -0
  117. package/dist/components/operations/index.d.ts.map +1 -0
  118. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +14 -0
  119. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +1 -0
  120. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +16 -0
  121. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +1 -0
  122. package/dist/components/operations/knowledge-base/index.d.ts +3 -0
  123. package/dist/components/operations/knowledge-base/index.d.ts.map +1 -0
  124. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +16 -0
  125. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +1 -0
  126. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +12 -0
  127. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +1 -0
  128. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +12 -0
  129. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +1 -0
  130. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +7 -0
  131. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +1 -0
  132. package/dist/components/operations/shared/index.d.ts +5 -0
  133. package/dist/components/operations/shared/index.d.ts.map +1 -0
  134. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +11 -0
  135. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +1 -0
  136. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +8 -0
  137. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +1 -0
  138. package/dist/components/operations/shared/layouts/index.d.ts +4 -0
  139. package/dist/components/operations/shared/layouts/index.d.ts.map +1 -0
  140. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +7 -0
  141. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +1 -0
  142. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +2 -0
  143. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +1 -0
  144. package/dist/components/operations/task-scheduler/index.d.ts +11 -0
  145. package/dist/components/operations/task-scheduler/index.d.ts.map +1 -0
  146. package/dist/components/sdk-barrel.d.ts +26 -0
  147. package/dist/components/sdk-barrel.d.ts.map +1 -0
  148. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +9 -0
  149. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +1 -0
  150. package/dist/components/settings/api-keys/ApiKeyList.d.ts +8 -0
  151. package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +1 -0
  152. package/dist/components/settings/api-keys/ApiKeySettings.d.ts +2 -0
  153. package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +1 -0
  154. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +9 -0
  155. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +1 -0
  156. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +8 -0
  157. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +1 -0
  158. package/dist/components/settings/api-keys/index.d.ts +6 -0
  159. package/dist/components/settings/api-keys/index.d.ts.map +1 -0
  160. package/dist/components/settings/credentials/CreateCredentialModal.d.ts +9 -0
  161. package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +1 -0
  162. package/dist/components/settings/credentials/CredentialList.d.ts +10 -0
  163. package/dist/components/settings/credentials/CredentialList.d.ts.map +1 -0
  164. package/dist/components/settings/credentials/CredentialSettings.d.ts +7 -0
  165. package/dist/components/settings/credentials/CredentialSettings.d.ts.map +1 -0
  166. package/dist/components/settings/credentials/index.d.ts +5 -0
  167. package/dist/components/settings/credentials/index.d.ts.map +1 -0
  168. package/dist/components/settings/deployments/DeploymentList.d.ts +8 -0
  169. package/dist/components/settings/deployments/DeploymentList.d.ts.map +1 -0
  170. package/dist/components/settings/deployments/DeploymentSettings.d.ts +2 -0
  171. package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +1 -0
  172. package/dist/components/settings/deployments/index.d.ts +5 -0
  173. package/dist/components/settings/deployments/index.d.ts.map +1 -0
  174. package/dist/components/settings/index.d.ts +6 -0
  175. package/dist/components/settings/index.d.ts.map +1 -0
  176. package/dist/components/table/SortableHeader.d.ts +12 -0
  177. package/dist/components/table/SortableHeader.d.ts.map +1 -0
  178. package/dist/components/table/index.d.ts +4 -0
  179. package/dist/components/table/index.d.ts.map +1 -0
  180. package/dist/features/auth/AdminGuard.d.ts +38 -0
  181. package/dist/features/auth/AdminGuard.d.ts.map +1 -0
  182. package/dist/features/auth/FeatureGuard.d.ts +45 -0
  183. package/dist/features/auth/FeatureGuard.d.ts.map +1 -0
  184. package/dist/features/auth/ProtectedRoute.d.ts +43 -0
  185. package/dist/features/auth/ProtectedRoute.d.ts.map +1 -0
  186. package/dist/features/auth/index.css +579 -0
  187. package/dist/features/auth/index.d.ts +9 -0
  188. package/dist/features/auth/index.d.ts.map +1 -0
  189. package/dist/features/auth/index.js +125 -0
  190. package/dist/features/auth/useUserProfile.d.ts +10 -0
  191. package/dist/features/auth/useUserProfile.d.ts.map +1 -0
  192. package/dist/features/dashboard/Dashboard.d.ts +57 -0
  193. package/dist/features/dashboard/Dashboard.d.ts.map +1 -0
  194. package/dist/features/dashboard/RecentExecutionsByResource.d.ts +11 -0
  195. package/dist/features/dashboard/RecentExecutionsByResource.d.ts.map +1 -0
  196. package/dist/features/dashboard/ResourceOverview.d.ts +21 -0
  197. package/dist/features/dashboard/ResourceOverview.d.ts.map +1 -0
  198. package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts +7 -0
  199. package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts.map +1 -0
  200. package/dist/features/dashboard/index.css +579 -0
  201. package/dist/features/dashboard/index.d.ts +9 -0
  202. package/dist/features/dashboard/index.d.ts.map +1 -0
  203. package/dist/features/dashboard/index.js +650 -0
  204. package/dist/features/monitoring/ActivityFeed.d.ts +37 -0
  205. package/dist/features/monitoring/ActivityFeed.d.ts.map +1 -0
  206. package/dist/features/monitoring/ActivityLog.d.ts +8 -0
  207. package/dist/features/monitoring/ActivityLog.d.ts.map +1 -0
  208. package/dist/features/monitoring/CostAnalytics.d.ts +13 -0
  209. package/dist/features/monitoring/CostAnalytics.d.ts.map +1 -0
  210. package/dist/features/monitoring/ErrorDetailsModal.d.ts +13 -0
  211. package/dist/features/monitoring/ErrorDetailsModal.d.ts.map +1 -0
  212. package/dist/features/monitoring/ExecutionHealth.d.ts +9 -0
  213. package/dist/features/monitoring/ExecutionHealth.d.ts.map +1 -0
  214. package/dist/features/monitoring/ExecutionLogsPage.d.ts +20 -0
  215. package/dist/features/monitoring/ExecutionLogsPage.d.ts.map +1 -0
  216. package/dist/features/monitoring/NotificationCenter.d.ts +5 -0
  217. package/dist/features/monitoring/NotificationCenter.d.ts.map +1 -0
  218. package/dist/features/monitoring/index.css +579 -0
  219. package/dist/features/monitoring/index.d.ts +15 -0
  220. package/dist/features/monitoring/index.d.ts.map +1 -0
  221. package/dist/features/monitoring/index.js +538 -0
  222. package/dist/features/operations/CalibrationPage.d.ts +9 -0
  223. package/dist/features/operations/CalibrationPage.d.ts.map +1 -0
  224. package/dist/features/operations/CalibrationProjectDetailPage.d.ts +43 -0
  225. package/dist/features/operations/CalibrationProjectDetailPage.d.ts.map +1 -0
  226. package/dist/features/operations/CalibrationProjectsPage.d.ts +10 -0
  227. package/dist/features/operations/CalibrationProjectsPage.d.ts.map +1 -0
  228. package/dist/features/operations/CalibrationRunDetailPage.d.ts +35 -0
  229. package/dist/features/operations/CalibrationRunDetailPage.d.ts.map +1 -0
  230. package/dist/features/operations/CommandQueueDetailPage.d.ts +16 -0
  231. package/dist/features/operations/CommandQueueDetailPage.d.ts.map +1 -0
  232. package/dist/features/operations/CommandQueuePage.d.ts +13 -0
  233. package/dist/features/operations/CommandQueuePage.d.ts.map +1 -0
  234. package/dist/features/operations/CommandViewPage.d.ts +6 -0
  235. package/dist/features/operations/CommandViewPage.d.ts.map +1 -0
  236. package/dist/features/operations/CommandViewSidebarContent.d.ts +19 -0
  237. package/dist/features/operations/CommandViewSidebarContent.d.ts.map +1 -0
  238. package/dist/features/operations/ResourceDetailPage.d.ts +25 -0
  239. package/dist/features/operations/ResourceDetailPage.d.ts.map +1 -0
  240. package/dist/features/operations/ResourcesPage.d.ts +15 -0
  241. package/dist/features/operations/ResourcesPage.d.ts.map +1 -0
  242. package/dist/features/operations/ResourcesSidebar.d.ts +9 -0
  243. package/dist/features/operations/ResourcesSidebar.d.ts.map +1 -0
  244. package/dist/features/operations/calibration-components/ComparisonTable.d.ts +9 -0
  245. package/dist/features/operations/calibration-components/ComparisonTable.d.ts.map +1 -0
  246. package/dist/features/operations/executions/AgentExecutionPanel.d.ts +12 -0
  247. package/dist/features/operations/executions/AgentExecutionPanel.d.ts.map +1 -0
  248. package/dist/features/operations/executions/ExecutionPanel.d.ts +13 -0
  249. package/dist/features/operations/executions/ExecutionPanel.d.ts.map +1 -0
  250. package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts +12 -0
  251. package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts.map +1 -0
  252. package/dist/features/operations/executions/index.d.ts +7 -0
  253. package/dist/features/operations/executions/index.d.ts.map +1 -0
  254. package/dist/features/operations/index.css +14 -0
  255. package/dist/features/operations/index.d.ts +29 -98
  256. package/dist/features/operations/index.d.ts.map +1 -0
  257. package/dist/features/operations/index.js +2148 -28
  258. package/dist/features/operations/layouts/components/ResourceHeader.d.ts +11 -0
  259. package/dist/features/operations/layouts/components/ResourceHeader.d.ts.map +1 -0
  260. package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts +8 -0
  261. package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts.map +1 -0
  262. package/dist/features/operations/layouts/components/index.d.ts +4 -0
  263. package/dist/features/operations/layouts/components/index.d.ts.map +1 -0
  264. package/dist/features/settings/AccountSettings.d.ts +20 -0
  265. package/dist/features/settings/AccountSettings.d.ts.map +1 -0
  266. package/dist/features/settings/AppearanceSettings.d.ts +23 -0
  267. package/dist/features/settings/AppearanceSettings.d.ts.map +1 -0
  268. package/dist/features/settings/CreateWebhookEndpointModal.d.ts +8 -0
  269. package/dist/features/settings/CreateWebhookEndpointModal.d.ts.map +1 -0
  270. package/dist/features/settings/EditCredentialModal.d.ts +9 -0
  271. package/dist/features/settings/EditCredentialModal.d.ts.map +1 -0
  272. package/dist/features/settings/EditWebhookEndpointModal.d.ts +8 -0
  273. package/dist/features/settings/EditWebhookEndpointModal.d.ts.map +1 -0
  274. package/dist/features/settings/MemberConfigModal.d.ts +14 -0
  275. package/dist/features/settings/MemberConfigModal.d.ts.map +1 -0
  276. package/dist/features/settings/OAuthIntegrationsCard.d.ts +6 -0
  277. package/dist/features/settings/OAuthIntegrationsCard.d.ts.map +1 -0
  278. package/dist/features/settings/OrgMembersList.d.ts +5 -0
  279. package/dist/features/settings/OrgMembersList.d.ts.map +1 -0
  280. package/dist/features/settings/OrganizationSettings.d.ts +30 -0
  281. package/dist/features/settings/OrganizationSettings.d.ts.map +1 -0
  282. package/dist/features/settings/WebhookEndpointList.d.ts +9 -0
  283. package/dist/features/settings/WebhookEndpointList.d.ts.map +1 -0
  284. package/dist/features/settings/WebhookEndpointSettings.d.ts +6 -0
  285. package/dist/features/settings/WebhookEndpointSettings.d.ts.map +1 -0
  286. package/dist/features/settings/index.css +579 -0
  287. package/dist/features/settings/index.d.ts +23 -0
  288. package/dist/features/settings/index.d.ts.map +1 -0
  289. package/dist/features/settings/index.js +1437 -0
  290. package/dist/hooks/command-queue/index.d.ts +7 -0
  291. package/dist/hooks/command-queue/index.d.ts.map +1 -0
  292. package/dist/hooks/command-queue/useCommandQueue.d.ts +33 -0
  293. package/dist/hooks/command-queue/useCommandQueue.d.ts.map +1 -0
  294. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +17 -0
  295. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +1 -0
  296. package/dist/hooks/command-queue/useDeleteTask.d.ts +5 -0
  297. package/dist/hooks/command-queue/useDeleteTask.d.ts.map +1 -0
  298. package/dist/hooks/command-queue/usePatchTask.d.ts +6 -0
  299. package/dist/hooks/command-queue/usePatchTask.d.ts.map +1 -0
  300. package/dist/hooks/command-queue/useSubmitAction.d.ts +29 -0
  301. package/dist/hooks/command-queue/useSubmitAction.d.ts.map +1 -0
  302. package/dist/hooks/executions/index.d.ts +17 -0
  303. package/dist/hooks/executions/index.d.ts.map +1 -0
  304. package/dist/hooks/executions/useArchivedLogs.d.ts +14 -0
  305. package/dist/hooks/executions/useArchivedLogs.d.ts.map +1 -0
  306. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +15 -0
  307. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +1 -0
  308. package/dist/hooks/executions/useCancelExecution.d.ts +20 -0
  309. package/dist/hooks/executions/useCancelExecution.d.ts.map +1 -0
  310. package/dist/hooks/executions/useDeleteExecution.d.ts +13 -0
  311. package/dist/hooks/executions/useDeleteExecution.d.ts.map +1 -0
  312. package/dist/hooks/executions/useExecuteAsync.d.ts +21 -0
  313. package/dist/hooks/executions/useExecuteAsync.d.ts.map +1 -0
  314. package/dist/hooks/executions/useExecution.d.ts +10 -0
  315. package/dist/hooks/executions/useExecution.d.ts.map +1 -0
  316. package/dist/hooks/executions/useExecutions.d.ts +16 -0
  317. package/dist/hooks/executions/useExecutions.d.ts.map +1 -0
  318. package/dist/hooks/executions/useResourceDefinition.d.ts +9 -0
  319. package/dist/hooks/executions/useResourceDefinition.d.ts.map +1 -0
  320. package/dist/hooks/executions/useResources.d.ts +15 -0
  321. package/dist/hooks/executions/useResources.d.ts.map +1 -0
  322. package/dist/hooks/executions/useRetryExecution.d.ts +16 -0
  323. package/dist/hooks/executions/useRetryExecution.d.ts.map +1 -0
  324. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +41 -0
  325. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +1 -0
  326. package/dist/hooks/feature-access/index.d.ts +2 -0
  327. package/dist/hooks/feature-access/index.d.ts.map +1 -0
  328. package/dist/hooks/index.css +14 -0
  329. package/dist/hooks/index.d.ts +22 -6593
  330. package/dist/hooks/index.d.ts.map +1 -0
  331. package/dist/hooks/index.js +13 -13
  332. package/dist/hooks/monitoring/index.d.ts +11 -0
  333. package/dist/hooks/monitoring/index.d.ts.map +1 -0
  334. package/dist/hooks/monitoring/useActivities.d.ts +52 -0
  335. package/dist/hooks/monitoring/useActivities.d.ts.map +1 -0
  336. package/dist/hooks/monitoring/useCostSummary.d.ts +7 -0
  337. package/dist/hooks/monitoring/useCostSummary.d.ts.map +1 -0
  338. package/dist/hooks/monitoring/useExecutionHealth.d.ts +10 -0
  339. package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +1 -0
  340. package/dist/hooks/monitoring/useExecutionLogs.d.ts +56 -0
  341. package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +1 -0
  342. package/dist/hooks/monitoring/useNotificationCount.d.ts +26 -0
  343. package/dist/hooks/monitoring/useNotificationCount.d.ts.map +1 -0
  344. package/dist/hooks/monitoring/useNotifications.d.ts +11 -0
  345. package/dist/hooks/monitoring/useNotifications.d.ts.map +1 -0
  346. package/dist/hooks/notifications/index.d.ts +8 -0
  347. package/dist/hooks/notifications/index.d.ts.map +1 -0
  348. package/dist/hooks/notifications/useMarkAllAsRead.d.ts +2 -0
  349. package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +1 -0
  350. package/dist/hooks/notifications/useMarkAsRead.d.ts +2 -0
  351. package/dist/hooks/notifications/useMarkAsRead.d.ts.map +1 -0
  352. package/dist/hooks/notifications/useTestNotification.d.ts +16 -0
  353. package/dist/hooks/notifications/useTestNotification.d.ts.map +1 -0
  354. package/dist/hooks/observability/index.d.ts +25 -0
  355. package/dist/hooks/observability/index.d.ts.map +1 -0
  356. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +15 -0
  357. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +1 -0
  358. package/dist/hooks/observability/useBusinessImpact.d.ts +9 -0
  359. package/dist/hooks/observability/useBusinessImpact.d.ts.map +1 -0
  360. package/dist/hooks/observability/useCostBreakdown.d.ts +10 -0
  361. package/dist/hooks/observability/useCostBreakdown.d.ts.map +1 -0
  362. package/dist/hooks/observability/useCostByModel.d.ts +3 -0
  363. package/dist/hooks/observability/useCostByModel.d.ts.map +1 -0
  364. package/dist/hooks/observability/useCostTrends.d.ts +3 -0
  365. package/dist/hooks/observability/useCostTrends.d.ts.map +1 -0
  366. package/dist/hooks/observability/useDashboardMetrics.d.ts +3 -0
  367. package/dist/hooks/observability/useDashboardMetrics.d.ts.map +1 -0
  368. package/dist/hooks/observability/useErrorAnalysis.d.ts +7 -0
  369. package/dist/hooks/observability/useErrorAnalysis.d.ts.map +1 -0
  370. package/dist/hooks/observability/useErrorDetails.d.ts +20 -0
  371. package/dist/hooks/observability/useErrorDetails.d.ts.map +1 -0
  372. package/dist/hooks/observability/useErrorDistribution.d.ts +12 -0
  373. package/dist/hooks/observability/useErrorDistribution.d.ts.map +1 -0
  374. package/dist/hooks/observability/useErrorTrends.d.ts +12 -0
  375. package/dist/hooks/observability/useErrorTrends.d.ts.map +1 -0
  376. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +18 -0
  377. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +1 -0
  378. package/dist/hooks/observability/useResolveError.d.ts +17 -0
  379. package/dist/hooks/observability/useResolveError.d.ts.map +1 -0
  380. package/dist/hooks/observability/useResourcesHealth.d.ts +13 -0
  381. package/dist/hooks/observability/useResourcesHealth.d.ts.map +1 -0
  382. package/dist/hooks/observability/useTopFailingResources.d.ts +13 -0
  383. package/dist/hooks/observability/useTopFailingResources.d.ts.map +1 -0
  384. package/dist/hooks/observability/useUnresolvedErrors.d.ts +15 -0
  385. package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +1 -0
  386. package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts +24 -0
  387. package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts.map +1 -0
  388. package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts +3 -0
  389. package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts.map +1 -0
  390. package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts +35 -0
  391. package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts.map +1 -0
  392. package/dist/hooks/operations/command-view/index.d.ts +8 -0
  393. package/dist/hooks/operations/command-view/index.d.ts.map +1 -0
  394. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +24 -0
  395. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +1 -0
  396. package/dist/hooks/operations/command-view/useCommandViewData.d.ts +11 -0
  397. package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +1 -0
  398. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +12 -0
  399. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +1 -0
  400. package/dist/hooks/operations/command-view/useResourceErrors.d.ts +22 -0
  401. package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +1 -0
  402. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +22 -0
  403. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +1 -0
  404. package/dist/hooks/operations/index.d.ts +4 -0
  405. package/dist/hooks/operations/index.d.ts.map +1 -0
  406. package/dist/hooks/operations/knowledge-base/index.d.ts +3 -0
  407. package/dist/hooks/operations/knowledge-base/index.d.ts.map +1 -0
  408. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +27 -0
  409. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +1 -0
  410. package/dist/hooks/operations/settings/index.d.ts +4 -0
  411. package/dist/hooks/operations/settings/index.d.ts.map +1 -0
  412. package/dist/hooks/operations/settings/useOAuthFlow.d.ts +17 -0
  413. package/dist/hooks/operations/settings/useOAuthFlow.d.ts.map +1 -0
  414. package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts +17 -0
  415. package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts.map +1 -0
  416. package/dist/hooks/operations/shared/index.d.ts +6 -0
  417. package/dist/hooks/operations/shared/index.d.ts.map +1 -0
  418. package/dist/hooks/operations/shared/queryKeys.d.ts +23 -0
  419. package/dist/hooks/operations/shared/queryKeys.d.ts.map +1 -0
  420. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +11 -0
  421. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +1 -0
  422. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +46 -0
  423. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +1 -0
  424. package/dist/hooks/published.css +14 -0
  425. package/dist/hooks/published.d.ts +21 -6037
  426. package/dist/hooks/published.d.ts.map +1 -0
  427. package/dist/hooks/published.js +12 -12
  428. package/dist/hooks/scheduling/index.d.ts +7 -0
  429. package/dist/hooks/scheduling/index.d.ts.map +1 -0
  430. package/dist/hooks/scheduling/useScheduledTasks.d.ts +19 -0
  431. package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +1 -0
  432. package/dist/hooks/scheduling/useSchedules.d.ts +185 -0
  433. package/dist/hooks/scheduling/useSchedules.d.ts.map +1 -0
  434. package/dist/hooks/sessions/index.d.ts +8 -0
  435. package/dist/hooks/sessions/index.d.ts.map +1 -0
  436. package/dist/hooks/sessions/useSessionExecutions.d.ts +13 -0
  437. package/dist/hooks/sessions/useSessionExecutions.d.ts.map +1 -0
  438. package/dist/hooks/sessions/useSessionMessages.d.ts +7 -0
  439. package/dist/hooks/sessions/useSessionMessages.d.ts.map +1 -0
  440. package/dist/hooks/sessions/useSessions.d.ts +26 -0
  441. package/dist/hooks/sessions/useSessions.d.ts.map +1 -0
  442. package/dist/hooks/settings/api-keys/index.d.ts +7 -0
  443. package/dist/hooks/settings/api-keys/index.d.ts.map +1 -0
  444. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +3 -0
  445. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +1 -0
  446. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +2 -0
  447. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +1 -0
  448. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +2 -0
  449. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +1 -0
  450. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +5 -0
  451. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +1 -0
  452. package/dist/hooks/settings/credentials/index.d.ts +7 -0
  453. package/dist/hooks/settings/credentials/index.d.ts.map +1 -0
  454. package/dist/hooks/settings/credentials/useCreateCredential.d.ts +3 -0
  455. package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +1 -0
  456. package/dist/hooks/settings/credentials/useCredentials.d.ts +8 -0
  457. package/dist/hooks/settings/credentials/useCredentials.d.ts.map +1 -0
  458. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +2 -0
  459. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +1 -0
  460. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +10 -0
  461. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +1 -0
  462. package/dist/hooks/settings/deployments/index.d.ts +5 -0
  463. package/dist/hooks/settings/deployments/index.d.ts.map +1 -0
  464. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +4 -0
  465. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +1 -0
  466. package/dist/hooks/settings/deployments/useListDeployments.d.ts +2 -0
  467. package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +1 -0
  468. package/dist/hooks/settings/index.d.ts +6 -0
  469. package/dist/hooks/settings/index.d.ts.map +1 -0
  470. package/dist/hooks/settings/organization/index.d.ts +6 -0
  471. package/dist/hooks/settings/organization/index.d.ts.map +1 -0
  472. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +11 -0
  473. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +1 -0
  474. package/dist/hooks/settings/organization/useReactivateMembership.d.ts +11 -0
  475. package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +1 -0
  476. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +8 -0
  477. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +1 -0
  478. package/dist/hooks/settings/organization/useUserMemberships.d.ts +3 -0
  479. package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +1 -0
  480. package/dist/hooks/settings/webhooks/index.d.ts +7 -0
  481. package/dist/hooks/settings/webhooks/index.d.ts.map +1 -0
  482. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +18 -0
  483. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +1 -0
  484. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +2 -0
  485. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +1 -0
  486. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +14 -0
  487. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +1 -0
  488. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +18 -0
  489. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +1 -0
  490. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +27 -0
  491. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +1 -0
  492. package/dist/hooks/useOrganizationMembers.d.ts +18 -0
  493. package/dist/hooks/useOrganizationMembers.d.ts.map +1 -0
  494. package/dist/index.css +14 -0
  495. package/dist/index.d.ts +15 -8494
  496. package/dist/index.d.ts.map +1 -0
  497. package/dist/index.js +15 -15
  498. package/dist/initialization/InitializationProvider.d.ts +48 -0
  499. package/dist/initialization/InitializationProvider.d.ts.map +1 -0
  500. package/dist/initialization/hooks/useAppInitialization.d.ts +32 -0
  501. package/dist/initialization/hooks/useAppInitialization.d.ts.map +1 -0
  502. package/dist/initialization/index.d.ts +23 -2526
  503. package/dist/initialization/index.d.ts.map +1 -0
  504. package/dist/initialization/index.js +2 -2
  505. package/dist/layout/index.d.ts +7 -1
  506. package/dist/layout/index.js +7 -5
  507. package/dist/organization/context/OrganizationProvider.d.ts +24 -0
  508. package/dist/organization/context/OrganizationProvider.d.ts.map +1 -0
  509. package/dist/organization/hooks/useOrgInitialization.d.ts +56 -0
  510. package/dist/organization/hooks/useOrgInitialization.d.ts.map +1 -0
  511. package/dist/organization/index.d.ts +23 -274
  512. package/dist/organization/index.d.ts.map +1 -0
  513. package/dist/organization/index.js +2 -2
  514. package/dist/profile/context/ProfileProvider.d.ts +31 -0
  515. package/dist/profile/context/ProfileProvider.d.ts.map +1 -0
  516. package/dist/profile/hooks/useUserProfile.d.ts +38 -0
  517. package/dist/profile/hooks/useUserProfile.d.ts.map +1 -0
  518. package/dist/profile/index.d.ts +15 -2477
  519. package/dist/profile/index.d.ts.map +1 -0
  520. package/dist/provider/CoreAuthKitInner.d.ts +12 -0
  521. package/dist/provider/CoreAuthKitInner.d.ts.map +1 -0
  522. package/dist/provider/ElevasisCoreProvider.d.ts +25 -0
  523. package/dist/provider/ElevasisCoreProvider.d.ts.map +1 -0
  524. package/dist/provider/ElevasisServiceContext.d.ts +31 -0
  525. package/dist/provider/ElevasisServiceContext.d.ts.map +1 -0
  526. package/dist/provider/ElevasisUIProvider.d.ts +28 -0
  527. package/dist/provider/ElevasisUIProvider.d.ts.map +1 -0
  528. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +2 -0
  529. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +1 -0
  530. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +2 -0
  531. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +1 -0
  532. package/dist/provider/index.css +14 -0
  533. package/dist/provider/index.d.ts +11 -334
  534. package/dist/provider/index.d.ts.map +1 -0
  535. package/dist/provider/index.js +10 -10
  536. package/dist/provider/published.d.ts +11 -309
  537. package/dist/provider/published.d.ts.map +1 -0
  538. package/dist/provider/published.js +6 -6
  539. package/dist/provider/types.d.ts +151 -0
  540. package/dist/provider/types.d.ts.map +1 -0
  541. package/dist/sdk-barrel.d.ts +20 -0
  542. package/dist/sdk-barrel.d.ts.map +1 -0
  543. package/dist/theme/PresetsContext.d.ts +4 -0
  544. package/dist/theme/PresetsContext.d.ts.map +1 -0
  545. package/dist/theme/cssVariables.d.ts +12 -0
  546. package/dist/theme/cssVariables.d.ts.map +1 -0
  547. package/dist/theme/index.d.ts +10 -148
  548. package/dist/theme/index.d.ts.map +1 -0
  549. package/dist/theme/index.js +3 -3
  550. package/dist/theme/presets/__tests__/getPreset.test.d.ts +2 -0
  551. package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +1 -0
  552. package/dist/theme/presets/abyss.d.ts +3 -0
  553. package/dist/theme/presets/abyss.d.ts.map +1 -0
  554. package/dist/theme/presets/aurora.d.ts +12 -0
  555. package/dist/theme/presets/aurora.d.ts.map +1 -0
  556. package/dist/theme/presets/canopy.d.ts +12 -0
  557. package/dist/theme/presets/canopy.d.ts.map +1 -0
  558. package/dist/theme/presets/canyon.d.ts +11 -0
  559. package/dist/theme/presets/canyon.d.ts.map +1 -0
  560. package/dist/theme/presets/cortex.d.ts +3 -0
  561. package/dist/theme/presets/cortex.d.ts.map +1 -0
  562. package/dist/theme/presets/cyber-punk.d.ts +11 -0
  563. package/dist/theme/presets/cyber-punk.d.ts.map +1 -0
  564. package/dist/theme/presets/cyber-strike.d.ts +13 -0
  565. package/dist/theme/presets/cyber-strike.d.ts.map +1 -0
  566. package/dist/theme/presets/cyber-volt.d.ts +12 -0
  567. package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
  568. package/dist/theme/presets/default.d.ts +4 -0
  569. package/dist/theme/presets/default.d.ts.map +1 -0
  570. package/dist/theme/presets/ember.d.ts +12 -0
  571. package/dist/theme/presets/ember.d.ts.map +1 -0
  572. package/dist/theme/presets/helios.d.ts +3 -0
  573. package/dist/theme/presets/helios.d.ts.map +1 -0
  574. package/dist/theme/presets/honey.d.ts +12 -0
  575. package/dist/theme/presets/honey.d.ts.map +1 -0
  576. package/dist/theme/presets/index.d.ts +8 -0
  577. package/dist/theme/presets/index.d.ts.map +1 -0
  578. package/dist/theme/presets/midnight.d.ts +12 -0
  579. package/dist/theme/presets/midnight.d.ts.map +1 -0
  580. package/dist/theme/presets/nirvana.d.ts +16 -0
  581. package/dist/theme/presets/nirvana.d.ts.map +1 -0
  582. package/dist/theme/presets/obsidian.d.ts +3 -0
  583. package/dist/theme/presets/obsidian.d.ts.map +1 -0
  584. package/dist/theme/presets/regal.d.ts +8 -0
  585. package/dist/theme/presets/regal.d.ts.map +1 -0
  586. package/dist/theme/presets/rose-gold.d.ts +12 -0
  587. package/dist/theme/presets/rose-gold.d.ts.map +1 -0
  588. package/dist/theme/presets/slate.d.ts +3 -0
  589. package/dist/theme/presets/slate.d.ts.map +1 -0
  590. package/dist/theme/presets/synapse.d.ts +10 -0
  591. package/dist/theme/presets/synapse.d.ts.map +1 -0
  592. package/dist/theme/presets/tactical.d.ts +8 -0
  593. package/dist/theme/presets/tactical.d.ts.map +1 -0
  594. package/dist/theme/presets/types.d.ts +43 -0
  595. package/dist/theme/presets/types.d.ts.map +1 -0
  596. package/dist/theme/presets/verdant.d.ts +3 -0
  597. package/dist/theme/presets/verdant.d.ts.map +1 -0
  598. package/dist/theme/presets/wave.d.ts +14 -0
  599. package/dist/theme/presets/wave.d.ts.map +1 -0
  600. package/dist/theme/useAvailablePresets.d.ts +16 -0
  601. package/dist/theme/useAvailablePresets.d.ts.map +1 -0
  602. package/dist/types/index.d.ts +1 -1
  603. package/dist/utils/index.d.ts +12 -1
  604. package/dist/utils/index.js +1 -1
  605. package/dist/zustand/index.d.ts +80 -0
  606. package/dist/zustand/index.js +105 -0
  607. package/package.json +53 -2
  608. package/dist/chunk-2YW3LDFT.js +0 -1542
  609. package/dist/theme/presets/cyber-void.js +0 -75
  610. package/dist/{chunk-DVKEEY5J.js → chunk-TUXTSEAF.js} +1 -1
  611. package/dist/{chunk-U2522LSW.js → chunk-V7XHGJQZ.js} +1 -1
@@ -0,0 +1,671 @@
1
+ import { FilterBar } from './chunk-PDHTXPSF.js';
2
+ import { CustomModal } from './chunk-GBMNCNHX.js';
3
+ import { ListSkeleton, EmptyState, PageTitleCaption, CardHeader, APIErrorAlert } from './chunk-AWMZCYKH.js';
4
+ import { AppShellLoader } from './chunk-WWEMNIHW.js';
5
+ import { useDeleteCredential, useCreateCredential, useCredentials, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, CredentialSchemas } from './chunk-XOTN3X3Z.js';
6
+ import { formatDateTime } from './chunk-IOKL7BKE.js';
7
+ import { useInitialization } from './chunk-TUXTSEAF.js';
8
+ import { useState, useEffect } from 'react';
9
+ import { Table, Group, Text, Tooltip, ActionIcon, Stack, Title, Button, Select, TextInput, Alert, PasswordInput, Anchor, Paper, Card, Switch, Badge, Center, Loader, Box, Code, CopyButton } from '@mantine/core';
10
+ import { IconKey, IconCalendar, IconPencil, IconTrash, IconAlertTriangle, IconInfoCircle, IconExclamationMark, IconPlus, IconAlertCircle, IconUsers, IconSearch, IconBuilding, IconEdit, IconUserX, IconUserCheck, IconWebhook, IconCheck, IconCopy } from '@tabler/icons-react';
11
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
12
+ import { useForm } from '@mantine/form';
13
+ import { z } from 'zod';
14
+
15
+ function CredentialList({ credentials, isLoading, onEdit }) {
16
+ const [deleteCredential, setDeleteCredential] = useState(null);
17
+ const deleteMutation = useDeleteCredential();
18
+ const handleDelete = () => {
19
+ if (deleteCredential) {
20
+ deleteMutation.mutate(deleteCredential.id);
21
+ setDeleteCredential(null);
22
+ }
23
+ };
24
+ const handleCloseDelete = () => {
25
+ if (!deleteMutation.isPending) {
26
+ setDeleteCredential(null);
27
+ }
28
+ };
29
+ if (isLoading) {
30
+ return /* @__PURE__ */ jsx(ListSkeleton, { rows: 3, rowHeight: 60 });
31
+ }
32
+ if (credentials.length === 0) {
33
+ return /* @__PURE__ */ jsx(
34
+ EmptyState,
35
+ {
36
+ icon: IconKey,
37
+ title: "No credentials yet",
38
+ description: "Create your first credential to enable external service integrations"
39
+ }
40
+ );
41
+ }
42
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ /* @__PURE__ */ jsxs(Table, { children: [
44
+ /* @__PURE__ */ jsx(Table.Thead, { children: /* @__PURE__ */ jsxs(Table.Tr, { children: [
45
+ /* @__PURE__ */ jsx(Table.Th, { children: "Name" }),
46
+ /* @__PURE__ */ jsx(Table.Th, { children: "Created" }),
47
+ /* @__PURE__ */ jsx(Table.Th, { w: 100 })
48
+ ] }) }),
49
+ /* @__PURE__ */ jsx(Table.Tbody, { children: credentials.map((credential) => /* @__PURE__ */ jsxs(Table.Tr, { children: [
50
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
51
+ /* @__PURE__ */ jsx(IconKey, { size: 16, style: { opacity: 0.6 } }),
52
+ /* @__PURE__ */ jsx(Text, { fw: 500, children: credential.name })
53
+ ] }) }),
54
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsxs(Group, { gap: 4, children: [
55
+ /* @__PURE__ */ jsx(IconCalendar, { size: 14, style: { opacity: 0.5 } }),
56
+ /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: formatDateTime(credential.createdAt) })
57
+ ] }) }),
58
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsxs(Group, { gap: "xs", justify: "flex-end", children: [
59
+ onEdit && /* @__PURE__ */ jsx(Tooltip, { label: "Edit credential", children: /* @__PURE__ */ jsx(
60
+ ActionIcon,
61
+ {
62
+ variant: "subtle",
63
+ color: "gray",
64
+ onClick: () => onEdit(credential),
65
+ disabled: deleteMutation.isPending,
66
+ children: /* @__PURE__ */ jsx(IconPencil, { size: 16 })
67
+ }
68
+ ) }),
69
+ /* @__PURE__ */ jsx(Tooltip, { label: "Delete credential", position: "left", children: /* @__PURE__ */ jsx(
70
+ ActionIcon,
71
+ {
72
+ variant: "subtle",
73
+ color: "red",
74
+ onClick: () => setDeleteCredential(credential),
75
+ disabled: deleteMutation.isPending,
76
+ children: /* @__PURE__ */ jsx(IconTrash, { size: 16 })
77
+ }
78
+ ) })
79
+ ] }) })
80
+ ] }, credential.id)) })
81
+ ] }),
82
+ /* @__PURE__ */ jsx(CustomModal, { opened: !!deleteCredential, onClose: handleCloseDelete, size: "md", loading: deleteMutation.isPending, children: /* @__PURE__ */ jsxs(Stack, { children: [
83
+ /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
84
+ /* @__PURE__ */ jsx(IconAlertTriangle, { size: 24, color: "var(--color-error)" }),
85
+ /* @__PURE__ */ jsx(Title, { order: 3, children: "Delete Credential" })
86
+ ] }),
87
+ /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
88
+ "Are you sure you want to delete",
89
+ " ",
90
+ /* @__PURE__ */ jsxs(Text, { span: true, fw: 600, children: [
91
+ '"',
92
+ deleteCredential?.name,
93
+ '"'
94
+ ] }),
95
+ "?"
96
+ ] }),
97
+ /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "This action cannot be undone. Any agents or tools using this credential will stop working immediately." }),
98
+ /* @__PURE__ */ jsxs(Group, { justify: "space-between", gap: "sm", children: [
99
+ /* @__PURE__ */ jsx(Button, { variant: "light", onClick: handleCloseDelete, disabled: deleteMutation.isPending, children: "Cancel" }),
100
+ /* @__PURE__ */ jsx(
101
+ Button,
102
+ {
103
+ color: "red",
104
+ onClick: handleDelete,
105
+ loading: deleteMutation.isPending,
106
+ leftSection: /* @__PURE__ */ jsx(IconTrash, { size: 16 }),
107
+ children: "Delete Credential"
108
+ }
109
+ )
110
+ ] })
111
+ ] }) })
112
+ ] });
113
+ }
114
+ var CredentialFieldSchema = z.object({
115
+ key: z.string(),
116
+ label: z.string(),
117
+ type: z.enum(["password", "text"]),
118
+ required: z.boolean(),
119
+ placeholder: z.string().optional(),
120
+ description: z.string().optional()
121
+ });
122
+ var CredentialSchemaZod = z.object({
123
+ type: z.string(),
124
+ label: z.string(),
125
+ description: z.string(),
126
+ fields: z.array(CredentialFieldSchema).optional(),
127
+ docsUrl: z.string().url().optional(),
128
+ nameSuggestions: z.array(z.string()),
129
+ oauthProvider: z.string().optional()
130
+ });
131
+ var CREDENTIAL_SCHEMAS = {
132
+ "google-sheets": {
133
+ type: "oauth",
134
+ label: "Google Sheets",
135
+ description: "Google Sheets OAuth integration",
136
+ oauthProvider: "google-sheets",
137
+ nameSuggestions: ["google-sheets-prod", "google-sheets-dev", "sheets-workspace"]
138
+ },
139
+ dropbox: {
140
+ type: "oauth",
141
+ label: "Dropbox",
142
+ description: "Dropbox OAuth integration",
143
+ oauthProvider: "dropbox",
144
+ nameSuggestions: ["dropbox-prod", "dropbox-dev", "elevasis-dropbox"]
145
+ },
146
+ oauth: {
147
+ type: "oauth",
148
+ label: "OAuth",
149
+ description: "Generic OAuth credential",
150
+ nameSuggestions: []
151
+ },
152
+ "api-key": {
153
+ type: "single_field",
154
+ label: "API Key",
155
+ description: "Single-field API key credential",
156
+ fields: [
157
+ {
158
+ key: "apiKey",
159
+ label: "API Key",
160
+ type: "password",
161
+ required: true,
162
+ placeholder: "Enter your API key",
163
+ description: "API key for the service"
164
+ }
165
+ ],
166
+ nameSuggestions: ["service-prod", "service-dev", "api-key"]
167
+ },
168
+ "webhook-secret": {
169
+ type: "single_field",
170
+ label: "Webhook Secret",
171
+ description: "Webhook signing secret for signature validation",
172
+ fields: [
173
+ {
174
+ key: "signingSecret",
175
+ label: "Signing Secret",
176
+ type: "password",
177
+ required: true,
178
+ placeholder: "whsec_...",
179
+ description: "Webhook signing secret from provider dashboard"
180
+ }
181
+ ],
182
+ nameSuggestions: ["my-org-cal-com-webhook", "my-org-stripe-webhook", "my-org-signature-api-webhook"]
183
+ },
184
+ "api-key-secret": {
185
+ type: "api-key-secret",
186
+ label: "API Key + Secret",
187
+ description: "API key and secret pair authentication",
188
+ fields: [
189
+ {
190
+ key: "apiKey",
191
+ label: "API Key",
192
+ type: "password",
193
+ required: true
194
+ },
195
+ {
196
+ key: "apiSecret",
197
+ label: "API Secret",
198
+ type: "password",
199
+ required: true
200
+ }
201
+ ],
202
+ nameSuggestions: []
203
+ }
204
+ };
205
+ function getCredentialSchema(type) {
206
+ const schema = CREDENTIAL_SCHEMAS[type] || CREDENTIAL_SCHEMAS["api-key"];
207
+ return CredentialSchemaZod.parse(schema);
208
+ }
209
+
210
+ // ../core/src/integrations/credentials/utils.ts
211
+ function buildCredentialValue(type, formValues) {
212
+ const schema = getCredentialSchema(type);
213
+ if (schema.type === "oauth") {
214
+ throw new Error(`buildCredentialValue should not be used for OAuth type: ${type}`);
215
+ }
216
+ const value = {};
217
+ if (schema.fields) {
218
+ for (const field of schema.fields) {
219
+ const fieldValue = formValues[field.key];
220
+ if (fieldValue !== void 0 && fieldValue !== null) {
221
+ value[field.key] = fieldValue.trim();
222
+ }
223
+ }
224
+ }
225
+ return value;
226
+ }
227
+ function CreateCredentialModal({ opened, onClose, onSuccess }) {
228
+ const createCredential = useCreateCredential();
229
+ const [selectedType, setSelectedType] = useState("api-key");
230
+ const [schema, setSchema] = useState(getCredentialSchema("api-key"));
231
+ useEffect(() => {
232
+ setSchema(getCredentialSchema(selectedType));
233
+ }, [selectedType]);
234
+ const getInitialValues = (currentSchema) => {
235
+ const values = { name: "" };
236
+ if (currentSchema.fields) {
237
+ currentSchema.fields.forEach((field) => {
238
+ values[field.key] = "";
239
+ });
240
+ }
241
+ return values;
242
+ };
243
+ const getValidation = (currentSchema) => {
244
+ const validation = {
245
+ name: (value) => {
246
+ const result = CredentialSchemas.CreateRequest.shape.name.safeParse(value);
247
+ return result.success ? null : result.error.issues[0]?.message || "Invalid credential name";
248
+ }
249
+ };
250
+ if (currentSchema.fields) {
251
+ currentSchema.fields.forEach((field) => {
252
+ if (field.required) {
253
+ validation[field.key] = (value) => !value.trim() ? `${field.label} is required` : null;
254
+ }
255
+ });
256
+ }
257
+ return validation;
258
+ };
259
+ const form = useForm({
260
+ initialValues: getInitialValues(schema),
261
+ validate: getValidation(schema)
262
+ });
263
+ useEffect(() => {
264
+ const newValues = getInitialValues(schema);
265
+ form.setValues(newValues);
266
+ form.setFieldValue("name", form.values.name || "");
267
+ form.resetDirty();
268
+ }, [selectedType]);
269
+ const handleSubmit = async (values) => {
270
+ if (schema.type === "oauth") {
271
+ console.error("OAuth credentials cannot be created via this modal");
272
+ return;
273
+ }
274
+ const data = {
275
+ name: values.name.trim(),
276
+ type: selectedType,
277
+ value: buildCredentialValue(selectedType, values)
278
+ };
279
+ const validationResult = CredentialSchemas.CreateRequest.safeParse(data);
280
+ if (!validationResult.success) {
281
+ console.error("Validation failed:", validationResult.error);
282
+ return;
283
+ }
284
+ try {
285
+ const result = await createCredential.mutateAsync(data);
286
+ form.reset();
287
+ setSelectedType("api-key");
288
+ onSuccess(result);
289
+ } catch (error) {
290
+ console.error("Failed to create credential:", error);
291
+ }
292
+ };
293
+ const handleClose = () => {
294
+ if (!createCredential.isPending) {
295
+ form.reset();
296
+ setSelectedType("api-key");
297
+ onClose();
298
+ }
299
+ };
300
+ return /* @__PURE__ */ jsx(CustomModal, { opened, onClose: handleClose, size: "lg", loading: createCredential.isPending, children: /* @__PURE__ */ jsx("form", { onSubmit: form.onSubmit(handleSubmit), children: /* @__PURE__ */ jsxs(Stack, { children: [
301
+ /* @__PURE__ */ jsx(Title, { order: 3, children: "Create New Credential" }),
302
+ /* @__PURE__ */ jsx(
303
+ Select,
304
+ {
305
+ label: "Credential Type",
306
+ description: "Select the integration type",
307
+ placeholder: "Select credential type",
308
+ data: Object.entries(CREDENTIAL_SCHEMAS).filter(([_, s]) => s.type !== "oauth").map(([key, s]) => ({ value: key, label: s.label })),
309
+ value: selectedType,
310
+ onChange: (value) => setSelectedType(value || "api-key"),
311
+ required: true,
312
+ disabled: createCredential.isPending
313
+ }
314
+ ),
315
+ /* @__PURE__ */ jsx(
316
+ TextInput,
317
+ {
318
+ label: "Credential Name",
319
+ description: schema.nameSuggestions.length > 0 ? `Suggested: ${schema.nameSuggestions.join(", ")}` : "Lowercase letters, numbers, and hyphens only (e.g., service-dev, service-prod)",
320
+ placeholder: schema.nameSuggestions[0] || "e.g., service-prod",
321
+ leftSection: /* @__PURE__ */ jsx(IconKey, { size: 16 }),
322
+ maxLength: 100,
323
+ required: true,
324
+ ...form.getInputProps("name"),
325
+ disabled: createCredential.isPending
326
+ }
327
+ ),
328
+ schema.type === "oauth" ? /* @__PURE__ */ jsxs(Alert, { icon: /* @__PURE__ */ jsx(IconInfoCircle, { size: 16 }), color: "blue", children: [
329
+ schema.label,
330
+ " uses OAuth authentication. Please go to the OAuth Integrations page to connect your",
331
+ " ",
332
+ schema.label,
333
+ " account."
334
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
335
+ schema.fields?.map((field) => /* @__PURE__ */ jsx(
336
+ PasswordInput,
337
+ {
338
+ label: field.label,
339
+ description: field.description,
340
+ placeholder: field.placeholder,
341
+ required: field.required,
342
+ value: form.values[field.key] || "",
343
+ onChange: (e) => form.setFieldValue(field.key, e.target.value),
344
+ error: form.errors[field.key],
345
+ disabled: createCredential.isPending
346
+ },
347
+ field.key
348
+ )),
349
+ schema.docsUrl && /* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
350
+ "Get credentials from",
351
+ " ",
352
+ /* @__PURE__ */ jsx(Anchor, { href: schema.docsUrl, target: "_blank", rel: "noopener noreferrer", children: schema.docsUrl })
353
+ ] })
354
+ ] }),
355
+ createCredential.error && /* @__PURE__ */ jsx(Alert, { icon: /* @__PURE__ */ jsx(IconExclamationMark, { size: 16 }), color: "red", children: createCredential.error instanceof Error ? createCredential.error.message : "An error occurred while creating the credential" }),
356
+ /* @__PURE__ */ jsxs(Group, { justify: "flex-end", gap: "sm", children: [
357
+ /* @__PURE__ */ jsx(Button, { variant: "subtle", onClick: handleClose, disabled: createCredential.isPending, children: "Cancel" }),
358
+ /* @__PURE__ */ jsx(Button, { type: "submit", loading: createCredential.isPending, leftSection: /* @__PURE__ */ jsx(IconKey, { size: 16 }), children: "Create Credential" })
359
+ ] })
360
+ ] }) }) });
361
+ }
362
+ function CredentialSettings({ oauthSection }) {
363
+ const { organizationReady } = useInitialization();
364
+ const [showCreateModal, setShowCreateModal] = useState(false);
365
+ const { data: credentials = [], isLoading } = useCredentials();
366
+ if (!organizationReady) return /* @__PURE__ */ jsx(AppShellLoader, {});
367
+ const handleCredentialCreated = (result) => {
368
+ console.log("Credential created:", result);
369
+ setShowCreateModal(false);
370
+ };
371
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
372
+ /* @__PURE__ */ jsx(
373
+ PageTitleCaption,
374
+ {
375
+ title: "Organization Credentials",
376
+ caption: "Manage encrypted credentials for third-party service integrations"
377
+ }
378
+ ),
379
+ oauthSection,
380
+ /* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
381
+ /* @__PURE__ */ jsx(
382
+ CardHeader,
383
+ {
384
+ icon: /* @__PURE__ */ jsx(IconKey, { size: 18 }),
385
+ title: "Credentials",
386
+ subtitle: "Configured API keys and credentials",
387
+ rightSection: /* @__PURE__ */ jsx(Button, { leftSection: /* @__PURE__ */ jsx(IconPlus, { size: 16 }), onClick: () => setShowCreateModal(true), variant: "light", children: "Create Credential" })
388
+ }
389
+ ),
390
+ /* @__PURE__ */ jsx(CredentialList, { credentials, isLoading })
391
+ ] }),
392
+ /* @__PURE__ */ jsx(
393
+ CreateCredentialModal,
394
+ {
395
+ opened: showCreateModal,
396
+ onClose: () => setShowCreateModal(false),
397
+ onSuccess: handleCredentialCreated
398
+ }
399
+ )
400
+ ] });
401
+ }
402
+ function OAuthConnectModal({ opened, onClose, provider, onConnect, error, isLoading }) {
403
+ const [credentialName, setCredentialName] = useState("");
404
+ useEffect(() => {
405
+ if (opened && provider) {
406
+ setCredentialName(`${provider.id}-prod`);
407
+ }
408
+ }, [opened, provider]);
409
+ useEffect(() => {
410
+ if (!opened) {
411
+ setCredentialName("");
412
+ }
413
+ }, [opened]);
414
+ const handleConnect = async () => {
415
+ if (!credentialName.trim() || !provider) return;
416
+ await onConnect(credentialName);
417
+ };
418
+ const handleClose = () => {
419
+ if (!isLoading) {
420
+ onClose();
421
+ }
422
+ };
423
+ return /* @__PURE__ */ jsx(CustomModal, { opened: opened && !!provider, onClose: handleClose, size: "md", loading: isLoading, children: provider && /* @__PURE__ */ jsxs(Stack, { children: [
424
+ /* @__PURE__ */ jsxs(Title, { order: 3, children: [
425
+ "Connect ",
426
+ provider.name
427
+ ] }),
428
+ /* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
429
+ "Authorize Elevasis to access your ",
430
+ provider.name,
431
+ " account"
432
+ ] }),
433
+ provider.scopes && provider.scopes.length > 0 && /* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
434
+ "Permissions requested: ",
435
+ provider.scopes.join(", ")
436
+ ] }),
437
+ error && /* @__PURE__ */ jsx(Alert, { icon: /* @__PURE__ */ jsx(IconAlertCircle, { size: 16 }), color: "red", title: "Connection Failed", children: error }),
438
+ /* @__PURE__ */ jsx(
439
+ TextInput,
440
+ {
441
+ label: "Credential Name",
442
+ placeholder: `${provider.id}-prod`,
443
+ value: credentialName,
444
+ onChange: (e) => setCredentialName(e.target.value),
445
+ required: true,
446
+ disabled: isLoading,
447
+ description: "Use naming convention to indicate environment (e.g., notion-dev, slack-prod)"
448
+ }
449
+ ),
450
+ /* @__PURE__ */ jsxs(Group, { justify: "space-between", mt: "md", children: [
451
+ /* @__PURE__ */ jsx(Button, { variant: "light", onClick: handleClose, disabled: isLoading, children: "Cancel" }),
452
+ /* @__PURE__ */ jsxs(Button, { onClick: handleConnect, loading: isLoading, disabled: !credentialName.trim(), children: [
453
+ "Connect ",
454
+ provider.name
455
+ ] })
456
+ ] })
457
+ ] }) });
458
+ }
459
+ var FEATURES = [
460
+ { key: "acquisition", label: "Acquisition" },
461
+ { key: "calibration", label: "Calibration" },
462
+ { key: "seo", label: "SEO" }
463
+ ];
464
+ function MembershipFeaturePanel({
465
+ currentConfig,
466
+ onConfigChange,
467
+ disabled = false
468
+ }) {
469
+ const handleFeatureToggle = (featureKey, enabled) => {
470
+ const newConfig = {
471
+ ...currentConfig,
472
+ features: {
473
+ ...currentConfig?.features,
474
+ [featureKey]: enabled
475
+ }
476
+ };
477
+ onConfigChange(newConfig);
478
+ };
479
+ return /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
480
+ /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "Toggle features this member can access." }),
481
+ FEATURES.map(({ key, label }) => {
482
+ const isEnabled = currentConfig?.features?.[key] !== false;
483
+ return /* @__PURE__ */ jsxs(Group, { justify: "space-between", wrap: "nowrap", children: [
484
+ /* @__PURE__ */ jsx(Text, { size: "sm", children: label }),
485
+ /* @__PURE__ */ jsx(
486
+ Switch,
487
+ {
488
+ checked: isEnabled,
489
+ onChange: (e) => handleFeatureToggle(key, e.currentTarget.checked),
490
+ disabled,
491
+ size: "md"
492
+ }
493
+ )
494
+ ] }, key);
495
+ })
496
+ ] }) });
497
+ }
498
+ function MembershipStatusBadge({ status, size = "sm", variant = "light" }) {
499
+ const getStatusLabel = (status2) => {
500
+ switch (status2) {
501
+ case "active":
502
+ return "Active";
503
+ case "inactive":
504
+ return "Inactive";
505
+ default:
506
+ return status2;
507
+ }
508
+ };
509
+ return /* @__PURE__ */ jsx(Badge, { color: MEMBERSHIP_STATUS_COLORS[status], size, variant, children: getStatusLabel(status) });
510
+ }
511
+ function OrganizationMembershipsList({
512
+ memberships,
513
+ loading,
514
+ error,
515
+ onEditRole,
516
+ onLeaveOrganization
517
+ }) {
518
+ const [searchTerm, setSearchTerm] = useState("");
519
+ const [statusFilter, setStatusFilter] = useState("");
520
+ const tableRows = memberships?.map(transformMembershipToTableRow) || [];
521
+ const filteredRows = tableRows.filter((row) => {
522
+ const matchesSearch = row.organizationName.toLowerCase().includes(searchTerm.toLowerCase()) || row.role.toLowerCase().includes(searchTerm.toLowerCase());
523
+ const matchesStatus = !statusFilter || row.status === statusFilter;
524
+ return matchesSearch && matchesStatus;
525
+ });
526
+ if (error) {
527
+ return /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(APIErrorAlert, { error, title: "Failed to load memberships" }) });
528
+ }
529
+ return /* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
530
+ /* @__PURE__ */ jsx(
531
+ CardHeader,
532
+ {
533
+ icon: /* @__PURE__ */ jsx(IconUsers, { size: 18 }),
534
+ title: `Your Organizations (${loading ? "..." : filteredRows.length})`,
535
+ subtitle: loading ? "Loading memberships..." : `Showing ${filteredRows.length} ${filteredRows.length === 1 ? "membership" : "memberships"}`
536
+ }
537
+ ),
538
+ /* @__PURE__ */ jsxs(FilterBar, { children: [
539
+ /* @__PURE__ */ jsx(
540
+ TextInput,
541
+ {
542
+ placeholder: "Search organizations or roles...",
543
+ leftSection: /* @__PURE__ */ jsx(IconSearch, { size: 16 }),
544
+ value: searchTerm,
545
+ onChange: (event) => setSearchTerm(event.currentTarget.value),
546
+ style: { flex: 1 },
547
+ disabled: loading
548
+ }
549
+ ),
550
+ /* @__PURE__ */ jsx(
551
+ Select,
552
+ {
553
+ placeholder: "Filter by status",
554
+ value: statusFilter,
555
+ onChange: (value) => setStatusFilter(value),
556
+ data: [
557
+ { value: "", label: "All Statuses" },
558
+ { value: "active", label: "Active" },
559
+ { value: "inactive", label: "Inactive" }
560
+ ],
561
+ style: { minWidth: 150 },
562
+ clearable: true,
563
+ disabled: loading
564
+ }
565
+ )
566
+ ] }),
567
+ /* @__PURE__ */ jsx(Table.ScrollContainer, { minWidth: 700, children: /* @__PURE__ */ jsxs(Table, { children: [
568
+ /* @__PURE__ */ jsx(Table.Thead, { children: /* @__PURE__ */ jsxs(Table.Tr, { children: [
569
+ /* @__PURE__ */ jsx(Table.Th, { children: "Organization" }),
570
+ /* @__PURE__ */ jsx(Table.Th, { children: "Role" }),
571
+ /* @__PURE__ */ jsx(Table.Th, { children: "Status" }),
572
+ /* @__PURE__ */ jsx(Table.Th, { children: "Joined" }),
573
+ /* @__PURE__ */ jsx(Table.Th, { align: "right", children: "Actions" })
574
+ ] }) }),
575
+ /* @__PURE__ */ jsx(Table.Tbody, { children: loading ? /* @__PURE__ */ jsx(Table.Tr, { children: /* @__PURE__ */ jsx(Table.Td, { colSpan: 5, children: /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Loader, {}) }) }) }) : filteredRows.length === 0 ? /* @__PURE__ */ jsx(Table.Tr, { children: /* @__PURE__ */ jsx(Table.Td, { colSpan: 5, children: /* @__PURE__ */ jsx(
576
+ EmptyState,
577
+ {
578
+ icon: IconBuilding,
579
+ title: "No memberships found",
580
+ description: searchTerm || statusFilter ? "Try adjusting your search or filter criteria" : "You are not a member of any organizations yet"
581
+ }
582
+ ) }) }) : filteredRows.map((row) => /* @__PURE__ */ jsxs(Table.Tr, { children: [
583
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsxs(Group, { gap: "sm", children: [
584
+ /* @__PURE__ */ jsx(IconBuilding, { size: 16 }),
585
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text, { fw: 500, size: "sm", children: row.organizationName }) })
586
+ ] }) }),
587
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Badge, { variant: "light", color: "blue", size: "sm", children: row.role }) }),
588
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(MembershipStatusBadge, { status: row.status }) }),
589
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: row.joinedAt.toLocaleDateString() }) }),
590
+ /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
591
+ row.canEdit && onEditRole && /* @__PURE__ */ jsx(
592
+ ActionIcon,
593
+ {
594
+ variant: "subtle",
595
+ size: "sm",
596
+ color: "blue",
597
+ onClick: () => onEditRole(row.id),
598
+ disabled: row.status !== "active",
599
+ children: /* @__PURE__ */ jsx(IconEdit, { size: 16 })
600
+ }
601
+ ),
602
+ row.canRemove && onLeaveOrganization && row.status === "active" && /* @__PURE__ */ jsx(ActionIcon, { variant: "subtle", size: "sm", color: "red", onClick: () => onLeaveOrganization(row.id), children: /* @__PURE__ */ jsx(IconUserX, { size: 16 }) }),
603
+ row.status === "inactive" && /* @__PURE__ */ jsx(
604
+ ActionIcon,
605
+ {
606
+ variant: "subtle",
607
+ size: "sm",
608
+ color: "green",
609
+ disabled: true,
610
+ title: "Contact admin to reactivate",
611
+ children: /* @__PURE__ */ jsx(IconUserCheck, { size: 16 })
612
+ }
613
+ )
614
+ ] }) })
615
+ ] }, row.id)) })
616
+ ] }) })
617
+ ] });
618
+ }
619
+ function WebhookUrlDisplayModal({ opened, endpoint, webhookUrl, onClose }) {
620
+ return /* @__PURE__ */ jsx(CustomModal, { opened, onClose, size: "lg", loading: false, children: /* @__PURE__ */ jsxs(Stack, { children: [
621
+ /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
622
+ /* @__PURE__ */ jsx(IconWebhook, { size: 24, color: "var(--color-success)" }),
623
+ /* @__PURE__ */ jsx(Title, { order: 3, children: "Webhook Endpoint Created" })
624
+ ] }),
625
+ /* @__PURE__ */ jsxs(Alert, { icon: /* @__PURE__ */ jsx(IconAlertCircle, {}), color: "yellow", variant: "light", children: [
626
+ /* @__PURE__ */ jsx(Text, { fw: 600, size: "sm", style: { fontFamily: "var(--mantine-font-family-headings)" }, children: "Save this URL \u2014 it contains your secret key." }),
627
+ /* @__PURE__ */ jsx(Text, { size: "sm", mt: 4, children: "The URL includes a unique key that acts as the credential for this endpoint. Treat it like a password. You can always copy it again from the Webhooks settings page." })
628
+ ] }),
629
+ /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
630
+ /* @__PURE__ */ jsxs(Text, { size: "sm", fw: 500, children: [
631
+ "Webhook URL for ",
632
+ /* @__PURE__ */ jsx("strong", { children: endpoint.name }),
633
+ ":"
634
+ ] }),
635
+ /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
636
+ /* @__PURE__ */ jsx(IconWebhook, { size: 16, style: { opacity: 0.6, flexShrink: 0 } }),
637
+ /* @__PURE__ */ jsx(
638
+ Code,
639
+ {
640
+ block: true,
641
+ style: {
642
+ fontSize: "13px",
643
+ wordBreak: "break-all",
644
+ backgroundColor: "transparent",
645
+ padding: 0,
646
+ flex: 1
647
+ },
648
+ children: webhookUrl
649
+ }
650
+ ),
651
+ /* @__PURE__ */ jsx(CopyButton, { value: webhookUrl, timeout: 2e3, children: ({ copied, copy }) => /* @__PURE__ */ jsx(
652
+ ActionIcon,
653
+ {
654
+ color: copied ? "teal" : "gray",
655
+ variant: copied ? "filled" : "subtle",
656
+ onClick: copy,
657
+ size: "lg",
658
+ children: copied ? /* @__PURE__ */ jsx(IconCheck, { size: 18 }) : /* @__PURE__ */ jsx(IconCopy, { size: 18 })
659
+ }
660
+ ) })
661
+ ] }) })
662
+ ] }),
663
+ endpoint.resourceId && /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
664
+ /* @__PURE__ */ jsx(Text, { size: "sm", fw: 500, children: "Target resource:" }),
665
+ /* @__PURE__ */ jsx(Code, { block: true, style: { fontSize: "13px", backgroundColor: "transparent", padding: "8px" }, children: endpoint.resourceId })
666
+ ] }),
667
+ /* @__PURE__ */ jsx(Group, { justify: "right", children: /* @__PURE__ */ jsx(Button, { onClick: onClose, size: "sm", leftSection: /* @__PURE__ */ jsx(IconCheck, { size: 16 }), children: "Done" }) })
668
+ ] }) });
669
+ }
670
+
671
+ export { CreateCredentialModal, CredentialList, CredentialSettings, MembershipFeaturePanel, MembershipStatusBadge, OAuthConnectModal, OrganizationMembershipsList, WebhookUrlDisplayModal, buildCredentialValue, getCredentialSchema };