@elevasis/ui 1.18.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 (612) 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-OCF63OXD.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-RYSPAQGW.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 +8 -175
  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-void.d.ts +12 -0
  567. package/dist/theme/presets/cyber-void.d.ts.map +1 -0
  568. package/dist/theme/presets/cyber-volt.d.ts +12 -0
  569. package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
  570. package/dist/theme/presets/default.d.ts +4 -0
  571. package/dist/theme/presets/default.d.ts.map +1 -0
  572. package/dist/theme/presets/ember.d.ts +12 -0
  573. package/dist/theme/presets/ember.d.ts.map +1 -0
  574. package/dist/theme/presets/helios.d.ts +3 -0
  575. package/dist/theme/presets/helios.d.ts.map +1 -0
  576. package/dist/theme/presets/honey.d.ts +12 -0
  577. package/dist/theme/presets/honey.d.ts.map +1 -0
  578. package/dist/theme/presets/index.d.ts +8 -0
  579. package/dist/theme/presets/index.d.ts.map +1 -0
  580. package/dist/theme/presets/midnight.d.ts +12 -0
  581. package/dist/theme/presets/midnight.d.ts.map +1 -0
  582. package/dist/theme/presets/nirvana.d.ts +16 -0
  583. package/dist/theme/presets/nirvana.d.ts.map +1 -0
  584. package/dist/theme/presets/obsidian.d.ts +3 -0
  585. package/dist/theme/presets/obsidian.d.ts.map +1 -0
  586. package/dist/theme/presets/regal.d.ts +8 -0
  587. package/dist/theme/presets/regal.d.ts.map +1 -0
  588. package/dist/theme/presets/rose-gold.d.ts +12 -0
  589. package/dist/theme/presets/rose-gold.d.ts.map +1 -0
  590. package/dist/theme/presets/slate.d.ts +3 -0
  591. package/dist/theme/presets/slate.d.ts.map +1 -0
  592. package/dist/theme/presets/synapse.d.ts +10 -0
  593. package/dist/theme/presets/synapse.d.ts.map +1 -0
  594. package/dist/theme/presets/tactical.d.ts +8 -0
  595. package/dist/theme/presets/tactical.d.ts.map +1 -0
  596. package/dist/theme/presets/types.d.ts +43 -0
  597. package/dist/theme/presets/types.d.ts.map +1 -0
  598. package/dist/theme/presets/verdant.d.ts +3 -0
  599. package/dist/theme/presets/verdant.d.ts.map +1 -0
  600. package/dist/theme/presets/wave.d.ts +14 -0
  601. package/dist/theme/presets/wave.d.ts.map +1 -0
  602. package/dist/theme/useAvailablePresets.d.ts +16 -0
  603. package/dist/theme/useAvailablePresets.d.ts.map +1 -0
  604. package/dist/types/index.d.ts +1 -1
  605. package/dist/utils/index.d.ts +12 -1
  606. package/dist/utils/index.js +1 -1
  607. package/dist/zustand/index.d.ts +80 -0
  608. package/dist/zustand/index.js +105 -0
  609. package/package.json +53 -2
  610. package/dist/chunk-UEYUPTAD.js +0 -1542
  611. package/dist/{chunk-DVKEEY5J.js → chunk-TUXTSEAF.js} +1 -1
  612. package/dist/{chunk-U2522LSW.js → chunk-V7XHGJQZ.js} +1 -1
@@ -1,2538 +1,35 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
-
4
- type Json = string | number | boolean | null | {
5
- [key: string]: Json | undefined;
6
- } | Json[];
7
- type Database = {
8
- __InternalSupabase: {
9
- PostgrestVersion: "12.2.3 (519615d)";
10
- };
11
- public: {
12
- Tables: {
13
- acq_companies: {
14
- Row: {
15
- attio_company_id: string | null;
16
- batch_id: string | null;
17
- category: string | null;
18
- category_pain: string | null;
19
- created_at: string;
20
- domain: string | null;
21
- enrichment_data: Json | null;
22
- filter_reason: string | null;
23
- founded_year: number | null;
24
- id: string;
25
- linkedin_url: string | null;
26
- location_city: string | null;
27
- location_state: string | null;
28
- name: string;
29
- num_employees: number | null;
30
- organization_id: string;
31
- pipeline_status: Json;
32
- segment: string | null;
33
- source: string | null;
34
- status: string;
35
- updated_at: string;
36
- website: string | null;
37
- };
38
- Insert: {
39
- attio_company_id?: string | null;
40
- batch_id?: string | null;
41
- category?: string | null;
42
- category_pain?: string | null;
43
- created_at?: string;
44
- domain?: string | null;
45
- enrichment_data?: Json | null;
46
- filter_reason?: string | null;
47
- founded_year?: number | null;
48
- id?: string;
49
- linkedin_url?: string | null;
50
- location_city?: string | null;
51
- location_state?: string | null;
52
- name: string;
53
- num_employees?: number | null;
54
- organization_id: string;
55
- pipeline_status?: Json;
56
- segment?: string | null;
57
- source?: string | null;
58
- status?: string;
59
- updated_at?: string;
60
- website?: string | null;
61
- };
62
- Update: {
63
- attio_company_id?: string | null;
64
- batch_id?: string | null;
65
- category?: string | null;
66
- category_pain?: string | null;
67
- created_at?: string;
68
- domain?: string | null;
69
- enrichment_data?: Json | null;
70
- filter_reason?: string | null;
71
- founded_year?: number | null;
72
- id?: string;
73
- linkedin_url?: string | null;
74
- location_city?: string | null;
75
- location_state?: string | null;
76
- name?: string;
77
- num_employees?: number | null;
78
- organization_id?: string;
79
- pipeline_status?: Json;
80
- segment?: string | null;
81
- source?: string | null;
82
- status?: string;
83
- updated_at?: string;
84
- website?: string | null;
85
- };
86
- Relationships: [
87
- {
88
- foreignKeyName: "acq_companies_organization_id_fkey";
89
- columns: ["organization_id"];
90
- isOneToOne: false;
91
- referencedRelation: "organizations";
92
- referencedColumns: ["id"];
93
- }
94
- ];
95
- };
96
- acq_contacts: {
97
- Row: {
98
- attio_person_id: string | null;
99
- batch_id: string | null;
100
- brochure_first_viewed_at: string | null;
101
- brochure_view_count: number;
102
- company_id: string | null;
103
- created_at: string;
104
- email: string;
105
- email_valid: string | null;
106
- enrichment_data: Json;
107
- filter_reason: string | null;
108
- first_name: string | null;
109
- headline: string | null;
110
- id: string;
111
- last_name: string | null;
112
- linkedin_url: string | null;
113
- nurture: boolean;
114
- opening_line: string | null;
115
- organization_id: string;
116
- pipeline_status: Json;
117
- source: string | null;
118
- source_id: string | null;
119
- status: string;
120
- title: string | null;
121
- updated_at: string;
122
- };
123
- Insert: {
124
- attio_person_id?: string | null;
125
- batch_id?: string | null;
126
- brochure_first_viewed_at?: string | null;
127
- brochure_view_count?: number;
128
- company_id?: string | null;
129
- created_at?: string;
130
- email: string;
131
- email_valid?: string | null;
132
- enrichment_data?: Json;
133
- filter_reason?: string | null;
134
- first_name?: string | null;
135
- headline?: string | null;
136
- id?: string;
137
- last_name?: string | null;
138
- linkedin_url?: string | null;
139
- nurture?: boolean;
140
- opening_line?: string | null;
141
- organization_id: string;
142
- pipeline_status?: Json;
143
- source?: string | null;
144
- source_id?: string | null;
145
- status?: string;
146
- title?: string | null;
147
- updated_at?: string;
148
- };
149
- Update: {
150
- attio_person_id?: string | null;
151
- batch_id?: string | null;
152
- brochure_first_viewed_at?: string | null;
153
- brochure_view_count?: number;
154
- company_id?: string | null;
155
- created_at?: string;
156
- email?: string;
157
- email_valid?: string | null;
158
- enrichment_data?: Json;
159
- filter_reason?: string | null;
160
- first_name?: string | null;
161
- headline?: string | null;
162
- id?: string;
163
- last_name?: string | null;
164
- linkedin_url?: string | null;
165
- nurture?: boolean;
166
- opening_line?: string | null;
167
- organization_id?: string;
168
- pipeline_status?: Json;
169
- source?: string | null;
170
- source_id?: string | null;
171
- status?: string;
172
- title?: string | null;
173
- updated_at?: string;
174
- };
175
- Relationships: [
176
- {
177
- foreignKeyName: "acq_contacts_company_id_fkey";
178
- columns: ["company_id"];
179
- isOneToOne: false;
180
- referencedRelation: "acq_companies";
181
- referencedColumns: ["id"];
182
- },
183
- {
184
- foreignKeyName: "acq_contacts_organization_id_fkey";
185
- columns: ["organization_id"];
186
- isOneToOne: false;
187
- referencedRelation: "organizations";
188
- referencedColumns: ["id"];
189
- }
190
- ];
191
- };
192
- acq_content: {
193
- Row: {
194
- body: string | null;
195
- created_at: string;
196
- id: string;
197
- organization_id: string;
198
- pillar: string;
199
- status: string;
200
- title: string;
201
- updated_at: string;
202
- };
203
- Insert: {
204
- body?: string | null;
205
- created_at?: string;
206
- id?: string;
207
- organization_id: string;
208
- pillar: string;
209
- status?: string;
210
- title: string;
211
- updated_at?: string;
212
- };
213
- Update: {
214
- body?: string | null;
215
- created_at?: string;
216
- id?: string;
217
- organization_id?: string;
218
- pillar?: string;
219
- status?: string;
220
- title?: string;
221
- updated_at?: string;
222
- };
223
- Relationships: [
224
- {
225
- foreignKeyName: "acq_content_organization_id_fkey";
226
- columns: ["organization_id"];
227
- isOneToOne: false;
228
- referencedRelation: "organizations";
229
- referencedColumns: ["id"];
230
- }
231
- ];
232
- };
233
- acq_content_distributions: {
234
- Row: {
235
- adapted_body: string | null;
236
- checklist: Json | null;
237
- content_id: string;
238
- created_at: string;
239
- format: string;
240
- id: string;
241
- media_urls: Json;
242
- metrics: Json;
243
- metrics_updated_at: string | null;
244
- organization_id: string;
245
- platform: string;
246
- platform_content: Json | null;
247
- platform_post_id: string | null;
248
- platform_url: string | null;
249
- published_at: string | null;
250
- status: string;
251
- updated_at: string;
252
- };
253
- Insert: {
254
- adapted_body?: string | null;
255
- checklist?: Json | null;
256
- content_id: string;
257
- created_at?: string;
258
- format: string;
259
- id?: string;
260
- media_urls?: Json;
261
- metrics?: Json;
262
- metrics_updated_at?: string | null;
263
- organization_id: string;
264
- platform: string;
265
- platform_content?: Json | null;
266
- platform_post_id?: string | null;
267
- platform_url?: string | null;
268
- published_at?: string | null;
269
- status?: string;
270
- updated_at?: string;
271
- };
272
- Update: {
273
- adapted_body?: string | null;
274
- checklist?: Json | null;
275
- content_id?: string;
276
- created_at?: string;
277
- format?: string;
278
- id?: string;
279
- media_urls?: Json;
280
- metrics?: Json;
281
- metrics_updated_at?: string | null;
282
- organization_id?: string;
283
- platform?: string;
284
- platform_content?: Json | null;
285
- platform_post_id?: string | null;
286
- platform_url?: string | null;
287
- published_at?: string | null;
288
- status?: string;
289
- updated_at?: string;
290
- };
291
- Relationships: [
292
- {
293
- foreignKeyName: "acq_content_distributions_content_id_fkey";
294
- columns: ["content_id"];
295
- isOneToOne: false;
296
- referencedRelation: "acq_content";
297
- referencedColumns: ["id"];
298
- },
299
- {
300
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
301
- columns: ["organization_id"];
302
- isOneToOne: false;
303
- referencedRelation: "organizations";
304
- referencedColumns: ["id"];
305
- }
306
- ];
307
- };
308
- acq_deals: {
309
- Row: {
310
- activity_log: Json;
311
- attio_deal_id: string;
312
- cached_stage: string | null;
313
- closed_lost_at: string | null;
314
- closed_lost_reason: string | null;
315
- contact_email: string;
316
- contact_id: string | null;
317
- created_at: string;
318
- discovery_data: Json | null;
319
- discovery_submitted_at: string | null;
320
- discovery_submitted_by: string | null;
321
- id: string;
322
- initial_fee: number | null;
323
- monthly_fee: number | null;
324
- organization_id: string;
325
- payment_link_sent_at: string | null;
326
- payment_received_at: string | null;
327
- proposal_data: Json | null;
328
- proposal_generated_at: string | null;
329
- proposal_pdf_url: string | null;
330
- proposal_reviewed_at: string | null;
331
- proposal_reviewed_by: string | null;
332
- proposal_sent_at: string | null;
333
- proposal_signed_at: string | null;
334
- proposal_status: string | null;
335
- signature_envelope_id: string | null;
336
- source_list_id: string | null;
337
- source_type: string | null;
338
- stripe_payment_id: string | null;
339
- stripe_payment_link: string | null;
340
- stripe_payment_link_id: string | null;
341
- stripe_subscription_id: string | null;
342
- updated_at: string;
343
- };
344
- Insert: {
345
- activity_log?: Json;
346
- attio_deal_id: string;
347
- cached_stage?: string | null;
348
- closed_lost_at?: string | null;
349
- closed_lost_reason?: string | null;
350
- contact_email: string;
351
- contact_id?: string | null;
352
- created_at?: string;
353
- discovery_data?: Json | null;
354
- discovery_submitted_at?: string | null;
355
- discovery_submitted_by?: string | null;
356
- id?: string;
357
- initial_fee?: number | null;
358
- monthly_fee?: number | null;
359
- organization_id: string;
360
- payment_link_sent_at?: string | null;
361
- payment_received_at?: string | null;
362
- proposal_data?: Json | null;
363
- proposal_generated_at?: string | null;
364
- proposal_pdf_url?: string | null;
365
- proposal_reviewed_at?: string | null;
366
- proposal_reviewed_by?: string | null;
367
- proposal_sent_at?: string | null;
368
- proposal_signed_at?: string | null;
369
- proposal_status?: string | null;
370
- signature_envelope_id?: string | null;
371
- source_list_id?: string | null;
372
- source_type?: string | null;
373
- stripe_payment_id?: string | null;
374
- stripe_payment_link?: string | null;
375
- stripe_payment_link_id?: string | null;
376
- stripe_subscription_id?: string | null;
377
- updated_at?: string;
378
- };
379
- Update: {
380
- activity_log?: Json;
381
- attio_deal_id?: string;
382
- cached_stage?: string | null;
383
- closed_lost_at?: string | null;
384
- closed_lost_reason?: string | null;
385
- contact_email?: string;
386
- contact_id?: string | null;
387
- created_at?: string;
388
- discovery_data?: Json | null;
389
- discovery_submitted_at?: string | null;
390
- discovery_submitted_by?: string | null;
391
- id?: string;
392
- initial_fee?: number | null;
393
- monthly_fee?: number | null;
394
- organization_id?: string;
395
- payment_link_sent_at?: string | null;
396
- payment_received_at?: string | null;
397
- proposal_data?: Json | null;
398
- proposal_generated_at?: string | null;
399
- proposal_pdf_url?: string | null;
400
- proposal_reviewed_at?: string | null;
401
- proposal_reviewed_by?: string | null;
402
- proposal_sent_at?: string | null;
403
- proposal_signed_at?: string | null;
404
- proposal_status?: string | null;
405
- signature_envelope_id?: string | null;
406
- source_list_id?: string | null;
407
- source_type?: string | null;
408
- stripe_payment_id?: string | null;
409
- stripe_payment_link?: string | null;
410
- stripe_payment_link_id?: string | null;
411
- stripe_subscription_id?: string | null;
412
- updated_at?: string;
413
- };
414
- Relationships: [
415
- {
416
- foreignKeyName: "acq_deals_contact_id_fkey";
417
- columns: ["contact_id"];
418
- isOneToOne: false;
419
- referencedRelation: "acq_contacts";
420
- referencedColumns: ["id"];
421
- },
422
- {
423
- foreignKeyName: "acq_deals_organization_id_fkey";
424
- columns: ["organization_id"];
425
- isOneToOne: false;
426
- referencedRelation: "organizations";
427
- referencedColumns: ["id"];
428
- },
429
- {
430
- foreignKeyName: "acq_deals_source_list_id_fkey";
431
- columns: ["source_list_id"];
432
- isOneToOne: false;
433
- referencedRelation: "acq_lists";
434
- referencedColumns: ["id"];
435
- }
436
- ];
437
- };
438
- acq_list_members: {
439
- Row: {
440
- added_at: string;
441
- added_by: string | null;
442
- contact_id: string;
443
- id: string;
444
- list_id: string;
445
- };
446
- Insert: {
447
- added_at?: string;
448
- added_by?: string | null;
449
- contact_id: string;
450
- id?: string;
451
- list_id: string;
452
- };
453
- Update: {
454
- added_at?: string;
455
- added_by?: string | null;
456
- contact_id?: string;
457
- id?: string;
458
- list_id?: string;
459
- };
460
- Relationships: [
461
- {
462
- foreignKeyName: "acq_list_members_contact_id_fkey";
463
- columns: ["contact_id"];
464
- isOneToOne: false;
465
- referencedRelation: "acq_contacts";
466
- referencedColumns: ["id"];
467
- },
468
- {
469
- foreignKeyName: "acq_list_members_list_id_fkey";
470
- columns: ["list_id"];
471
- isOneToOne: false;
472
- referencedRelation: "acq_lists";
473
- referencedColumns: ["id"];
474
- }
475
- ];
476
- };
477
- acq_lists: {
478
- Row: {
479
- batch_ids: string[];
480
- completed_at: string | null;
481
- created_at: string;
482
- description: string | null;
483
- id: string;
484
- instantly_campaign_id: string | null;
485
- launched_at: string | null;
486
- metadata: Json;
487
- name: string;
488
- organization_id: string;
489
- status: string;
490
- type: string;
491
- };
492
- Insert: {
493
- batch_ids?: string[];
494
- completed_at?: string | null;
495
- created_at?: string;
496
- description?: string | null;
497
- id?: string;
498
- instantly_campaign_id?: string | null;
499
- launched_at?: string | null;
500
- metadata?: Json;
501
- name: string;
502
- organization_id: string;
503
- status?: string;
504
- type?: string;
505
- };
506
- Update: {
507
- batch_ids?: string[];
508
- completed_at?: string | null;
509
- created_at?: string;
510
- description?: string | null;
511
- id?: string;
512
- instantly_campaign_id?: string | null;
513
- launched_at?: string | null;
514
- metadata?: Json;
515
- name?: string;
516
- organization_id?: string;
517
- status?: string;
518
- type?: string;
519
- };
520
- Relationships: [
521
- {
522
- foreignKeyName: "acq_lists_organization_id_fkey";
523
- columns: ["organization_id"];
524
- isOneToOne: false;
525
- referencedRelation: "organizations";
526
- referencedColumns: ["id"];
527
- }
528
- ];
529
- };
530
- acq_seo_metrics: {
531
- Row: {
532
- ai_citations: Json | null;
533
- avg_position: number | null;
534
- clicks: number | null;
535
- created_at: string;
536
- cta_clicks: number | null;
537
- ctr: number | null;
538
- data_point_count: number | null;
539
- faq_count: number | null;
540
- form_submissions: number | null;
541
- id: string;
542
- impressions: number | null;
543
- organization_id: string;
544
- period: string;
545
- quality_score: number | null;
546
- readability: number | null;
547
- scroll_100: number | null;
548
- scroll_25: number | null;
549
- scroll_50: number | null;
550
- scroll_75: number | null;
551
- seo_page_id: string;
552
- word_count: number | null;
553
- };
554
- Insert: {
555
- ai_citations?: Json | null;
556
- avg_position?: number | null;
557
- clicks?: number | null;
558
- created_at?: string;
559
- cta_clicks?: number | null;
560
- ctr?: number | null;
561
- data_point_count?: number | null;
562
- faq_count?: number | null;
563
- form_submissions?: number | null;
564
- id?: string;
565
- impressions?: number | null;
566
- organization_id: string;
567
- period: string;
568
- quality_score?: number | null;
569
- readability?: number | null;
570
- scroll_100?: number | null;
571
- scroll_25?: number | null;
572
- scroll_50?: number | null;
573
- scroll_75?: number | null;
574
- seo_page_id: string;
575
- word_count?: number | null;
576
- };
577
- Update: {
578
- ai_citations?: Json | null;
579
- avg_position?: number | null;
580
- clicks?: number | null;
581
- created_at?: string;
582
- cta_clicks?: number | null;
583
- ctr?: number | null;
584
- data_point_count?: number | null;
585
- faq_count?: number | null;
586
- form_submissions?: number | null;
587
- id?: string;
588
- impressions?: number | null;
589
- organization_id?: string;
590
- period?: string;
591
- quality_score?: number | null;
592
- readability?: number | null;
593
- scroll_100?: number | null;
594
- scroll_25?: number | null;
595
- scroll_50?: number | null;
596
- scroll_75?: number | null;
597
- seo_page_id?: string;
598
- word_count?: number | null;
599
- };
600
- Relationships: [
601
- {
602
- foreignKeyName: "acq_seo_metrics_organization_id_fkey";
603
- columns: ["organization_id"];
604
- isOneToOne: false;
605
- referencedRelation: "organizations";
606
- referencedColumns: ["id"];
607
- },
608
- {
609
- foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
610
- columns: ["seo_page_id"];
611
- isOneToOne: false;
612
- referencedRelation: "acq_seo_pages";
613
- referencedColumns: ["id"];
614
- }
615
- ];
616
- };
617
- acq_seo_pages: {
618
- Row: {
619
- city: string | null;
620
- content: Json | null;
621
- created_at: string;
622
- faq_items: Json | null;
623
- hero_image_url: string | null;
624
- id: string;
625
- internal_links: Json | null;
626
- local_data: Json | null;
627
- meta_description: string | null;
628
- organization_id: string;
629
- page_type: string;
630
- published_at: string | null;
631
- refreshed_at: string | null;
632
- schema_markup: Json | null;
633
- slug: string;
634
- state: string | null;
635
- status: string;
636
- title: string;
637
- updated_at: string;
638
- use_case: string | null;
639
- vertical: string;
640
- };
641
- Insert: {
642
- city?: string | null;
643
- content?: Json | null;
644
- created_at?: string;
645
- faq_items?: Json | null;
646
- hero_image_url?: string | null;
647
- id?: string;
648
- internal_links?: Json | null;
649
- local_data?: Json | null;
650
- meta_description?: string | null;
651
- organization_id: string;
652
- page_type: string;
653
- published_at?: string | null;
654
- refreshed_at?: string | null;
655
- schema_markup?: Json | null;
656
- slug: string;
657
- state?: string | null;
658
- status?: string;
659
- title: string;
660
- updated_at?: string;
661
- use_case?: string | null;
662
- vertical: string;
663
- };
664
- Update: {
665
- city?: string | null;
666
- content?: Json | null;
667
- created_at?: string;
668
- faq_items?: Json | null;
669
- hero_image_url?: string | null;
670
- id?: string;
671
- internal_links?: Json | null;
672
- local_data?: Json | null;
673
- meta_description?: string | null;
674
- organization_id?: string;
675
- page_type?: string;
676
- published_at?: string | null;
677
- refreshed_at?: string | null;
678
- schema_markup?: Json | null;
679
- slug?: string;
680
- state?: string | null;
681
- status?: string;
682
- title?: string;
683
- updated_at?: string;
684
- use_case?: string | null;
685
- vertical?: string;
686
- };
687
- Relationships: [
688
- {
689
- foreignKeyName: "acq_seo_pages_organization_id_fkey";
690
- columns: ["organization_id"];
691
- isOneToOne: false;
692
- referencedRelation: "organizations";
693
- referencedColumns: ["id"];
694
- }
695
- ];
696
- };
697
- acq_social_posts: {
698
- Row: {
699
- author_name: string;
700
- author_url: string | null;
701
- comments_count: number;
702
- created_at: string;
703
- discovered_at: string;
704
- engagement_count: number;
705
- feedback: string | null;
706
- final_response: string | null;
707
- fully_reviewed: boolean;
708
- id: string;
709
- initial_draft: string | null;
710
- matched_keywords: string[];
711
- matched_query: string | null;
712
- metadata: Json;
713
- organization_id: string;
714
- platform: string;
715
- platform_post_id: string;
716
- post_text: string;
717
- post_title: string;
718
- post_url: string;
719
- posted_at: string;
720
- relevance_score: number;
721
- responded_at: string | null;
722
- reviewed_at: string | null;
723
- skip_reason: string | null;
724
- source_category: string | null;
725
- status: string;
726
- updated_at: string;
727
- };
728
- Insert: {
729
- author_name: string;
730
- author_url?: string | null;
731
- comments_count?: number;
732
- created_at?: string;
733
- discovered_at?: string;
734
- engagement_count?: number;
735
- feedback?: string | null;
736
- final_response?: string | null;
737
- fully_reviewed?: boolean;
738
- id?: string;
739
- initial_draft?: string | null;
740
- matched_keywords?: string[];
741
- matched_query?: string | null;
742
- metadata?: Json;
743
- organization_id: string;
744
- platform: string;
745
- platform_post_id: string;
746
- post_text: string;
747
- post_title: string;
748
- post_url: string;
749
- posted_at: string;
750
- relevance_score?: number;
751
- responded_at?: string | null;
752
- reviewed_at?: string | null;
753
- skip_reason?: string | null;
754
- source_category?: string | null;
755
- status?: string;
756
- updated_at?: string;
757
- };
758
- Update: {
759
- author_name?: string;
760
- author_url?: string | null;
761
- comments_count?: number;
762
- created_at?: string;
763
- discovered_at?: string;
764
- engagement_count?: number;
765
- feedback?: string | null;
766
- final_response?: string | null;
767
- fully_reviewed?: boolean;
768
- id?: string;
769
- initial_draft?: string | null;
770
- matched_keywords?: string[];
771
- matched_query?: string | null;
772
- metadata?: Json;
773
- organization_id?: string;
774
- platform?: string;
775
- platform_post_id?: string;
776
- post_text?: string;
777
- post_title?: string;
778
- post_url?: string;
779
- posted_at?: string;
780
- relevance_score?: number;
781
- responded_at?: string | null;
782
- reviewed_at?: string | null;
783
- skip_reason?: string | null;
784
- source_category?: string | null;
785
- status?: string;
786
- updated_at?: string;
787
- };
788
- Relationships: [
789
- {
790
- foreignKeyName: "acq_social_posts_organization_id_fkey";
791
- columns: ["organization_id"];
792
- isOneToOne: false;
793
- referencedRelation: "organizations";
794
- referencedColumns: ["id"];
795
- }
796
- ];
797
- };
798
- activities: {
799
- Row: {
800
- activity_type: string;
801
- actor_id: string | null;
802
- actor_type: string | null;
803
- created_at: string;
804
- description: string | null;
805
- entity_id: string;
806
- entity_name: string | null;
807
- entity_type: string;
808
- id: string;
809
- metadata: Json | null;
810
- occurred_at: string;
811
- organization_id: string;
812
- status: string;
813
- title: string;
814
- };
815
- Insert: {
816
- activity_type: string;
817
- actor_id?: string | null;
818
- actor_type?: string | null;
819
- created_at?: string;
820
- description?: string | null;
821
- entity_id: string;
822
- entity_name?: string | null;
823
- entity_type: string;
824
- id?: string;
825
- metadata?: Json | null;
826
- occurred_at?: string;
827
- organization_id: string;
828
- status: string;
829
- title: string;
830
- };
831
- Update: {
832
- activity_type?: string;
833
- actor_id?: string | null;
834
- actor_type?: string | null;
835
- created_at?: string;
836
- description?: string | null;
837
- entity_id?: string;
838
- entity_name?: string | null;
839
- entity_type?: string;
840
- id?: string;
841
- metadata?: Json | null;
842
- occurred_at?: string;
843
- organization_id?: string;
844
- status?: string;
845
- title?: string;
846
- };
847
- Relationships: [
848
- {
849
- foreignKeyName: "activities_organization_id_fkey";
850
- columns: ["organization_id"];
851
- isOneToOne: false;
852
- referencedRelation: "organizations";
853
- referencedColumns: ["id"];
854
- }
855
- ];
856
- };
857
- api_keys: {
858
- Row: {
859
- created_at: string | null;
860
- id: string;
861
- key_hash: string;
862
- last_used_at: string | null;
863
- name: string;
864
- organization_id: string;
865
- };
866
- Insert: {
867
- created_at?: string | null;
868
- id?: string;
869
- key_hash: string;
870
- last_used_at?: string | null;
871
- name: string;
872
- organization_id: string;
873
- };
874
- Update: {
875
- created_at?: string | null;
876
- id?: string;
877
- key_hash?: string;
878
- last_used_at?: string | null;
879
- name?: string;
880
- organization_id?: string;
881
- };
882
- Relationships: [
883
- {
884
- foreignKeyName: "api_keys_organization_id_fkey";
885
- columns: ["organization_id"];
886
- isOneToOne: false;
887
- referencedRelation: "organizations";
888
- referencedColumns: ["id"];
889
- }
890
- ];
891
- };
892
- calibration_projects: {
893
- Row: {
894
- created_at: string | null;
895
- description: string | null;
896
- id: string;
897
- name: string;
898
- organization_id: string;
899
- resource_id: string;
900
- resource_type: string;
901
- updated_at: string | null;
902
- };
903
- Insert: {
904
- created_at?: string | null;
905
- description?: string | null;
906
- id?: string;
907
- name: string;
908
- organization_id: string;
909
- resource_id: string;
910
- resource_type: string;
911
- updated_at?: string | null;
912
- };
913
- Update: {
914
- created_at?: string | null;
915
- description?: string | null;
916
- id?: string;
917
- name?: string;
918
- organization_id?: string;
919
- resource_id?: string;
920
- resource_type?: string;
921
- updated_at?: string | null;
922
- };
923
- Relationships: [
924
- {
925
- foreignKeyName: "calibration_projects_organization_id_fkey";
926
- columns: ["organization_id"];
927
- isOneToOne: false;
928
- referencedRelation: "organizations";
929
- referencedColumns: ["id"];
930
- }
931
- ];
932
- };
933
- calibration_runs: {
934
- Row: {
935
- completed_at: string | null;
936
- config_variants: Json;
937
- created_at: string | null;
938
- description: string | null;
939
- execution_mode: string;
940
- grader_model: string | null;
941
- grading_rubric: Json | null;
942
- id: string;
943
- name: string;
944
- organization_id: string;
945
- project_id: string;
946
- results: Json;
947
- status: string;
948
- test_inputs: Json;
949
- };
950
- Insert: {
951
- completed_at?: string | null;
952
- config_variants: Json;
953
- created_at?: string | null;
954
- description?: string | null;
955
- execution_mode?: string;
956
- grader_model?: string | null;
957
- grading_rubric?: Json | null;
958
- id?: string;
959
- name: string;
960
- organization_id: string;
961
- project_id: string;
962
- results?: Json;
963
- status?: string;
964
- test_inputs: Json;
965
- };
966
- Update: {
967
- completed_at?: string | null;
968
- config_variants?: Json;
969
- created_at?: string | null;
970
- description?: string | null;
971
- execution_mode?: string;
972
- grader_model?: string | null;
973
- grading_rubric?: Json | null;
974
- id?: string;
975
- name?: string;
976
- organization_id?: string;
977
- project_id?: string;
978
- results?: Json;
979
- status?: string;
980
- test_inputs?: Json;
981
- };
982
- Relationships: [
983
- {
984
- foreignKeyName: "calibration_runs_organization_id_fkey";
985
- columns: ["organization_id"];
986
- isOneToOne: false;
987
- referencedRelation: "organizations";
988
- referencedColumns: ["id"];
989
- },
990
- {
991
- foreignKeyName: "calibration_runs_project_id_fkey";
992
- columns: ["project_id"];
993
- isOneToOne: false;
994
- referencedRelation: "calibration_projects";
995
- referencedColumns: ["id"];
996
- }
997
- ];
998
- };
999
- command_queue: {
1000
- Row: {
1001
- action_payload: Json | null;
1002
- actions: Json;
1003
- completed_at: string | null;
1004
- completed_by: string | null;
1005
- context: Json;
1006
- created_at: string;
1007
- description: string | null;
1008
- expires_at: string | null;
1009
- human_checkpoint: string | null;
1010
- id: string;
1011
- idempotency_key: string | null;
1012
- metadata: Json | null;
1013
- organization_id: string;
1014
- origin_execution_id: string;
1015
- origin_resource_id: string;
1016
- origin_resource_type: string;
1017
- priority: number;
1018
- selected_action: string | null;
1019
- status: string;
1020
- target_execution_id: string | null;
1021
- target_resource_id: string | null;
1022
- target_resource_type: string | null;
1023
- };
1024
- Insert: {
1025
- action_payload?: Json | null;
1026
- actions: Json;
1027
- completed_at?: string | null;
1028
- completed_by?: string | null;
1029
- context: Json;
1030
- created_at?: string;
1031
- description?: string | null;
1032
- expires_at?: string | null;
1033
- human_checkpoint?: string | null;
1034
- id?: string;
1035
- idempotency_key?: string | null;
1036
- metadata?: Json | null;
1037
- organization_id: string;
1038
- origin_execution_id: string;
1039
- origin_resource_id: string;
1040
- origin_resource_type: string;
1041
- priority?: number;
1042
- selected_action?: string | null;
1043
- status?: string;
1044
- target_execution_id?: string | null;
1045
- target_resource_id?: string | null;
1046
- target_resource_type?: string | null;
1047
- };
1048
- Update: {
1049
- action_payload?: Json | null;
1050
- actions?: Json;
1051
- completed_at?: string | null;
1052
- completed_by?: string | null;
1053
- context?: Json;
1054
- created_at?: string;
1055
- description?: string | null;
1056
- expires_at?: string | null;
1057
- human_checkpoint?: string | null;
1058
- id?: string;
1059
- idempotency_key?: string | null;
1060
- metadata?: Json | null;
1061
- organization_id?: string;
1062
- origin_execution_id?: string;
1063
- origin_resource_id?: string;
1064
- origin_resource_type?: string;
1065
- priority?: number;
1066
- selected_action?: string | null;
1067
- status?: string;
1068
- target_execution_id?: string | null;
1069
- target_resource_id?: string | null;
1070
- target_resource_type?: string | null;
1071
- };
1072
- Relationships: [
1073
- {
1074
- foreignKeyName: "command_queue_completed_by_fkey";
1075
- columns: ["completed_by"];
1076
- isOneToOne: false;
1077
- referencedRelation: "users";
1078
- referencedColumns: ["id"];
1079
- },
1080
- {
1081
- foreignKeyName: "command_queue_organization_id_fkey";
1082
- columns: ["organization_id"];
1083
- isOneToOne: false;
1084
- referencedRelation: "organizations";
1085
- referencedColumns: ["id"];
1086
- },
1087
- {
1088
- foreignKeyName: "command_queue_target_execution_id_fkey";
1089
- columns: ["target_execution_id"];
1090
- isOneToOne: false;
1091
- referencedRelation: "execution_logs";
1092
- referencedColumns: ["execution_id"];
1093
- }
1094
- ];
1095
- };
1096
- credentials: {
1097
- Row: {
1098
- created_at: string;
1099
- created_by: string | null;
1100
- encrypted_value: string;
1101
- id: string;
1102
- name: string;
1103
- organization_id: string;
1104
- provider: string | null;
1105
- type: string;
1106
- updated_at: string;
1107
- };
1108
- Insert: {
1109
- created_at?: string;
1110
- created_by?: string | null;
1111
- encrypted_value: string;
1112
- id?: string;
1113
- name: string;
1114
- organization_id: string;
1115
- provider?: string | null;
1116
- type?: string;
1117
- updated_at?: string;
1118
- };
1119
- Update: {
1120
- created_at?: string;
1121
- created_by?: string | null;
1122
- encrypted_value?: string;
1123
- id?: string;
1124
- name?: string;
1125
- organization_id?: string;
1126
- provider?: string | null;
1127
- type?: string;
1128
- updated_at?: string;
1129
- };
1130
- Relationships: [
1131
- {
1132
- foreignKeyName: "credentials_created_by_fkey";
1133
- columns: ["created_by"];
1134
- isOneToOne: false;
1135
- referencedRelation: "users";
1136
- referencedColumns: ["id"];
1137
- },
1138
- {
1139
- foreignKeyName: "credentials_organization_id_fkey";
1140
- columns: ["organization_id"];
1141
- isOneToOne: false;
1142
- referencedRelation: "organizations";
1143
- referencedColumns: ["id"];
1144
- }
1145
- ];
1146
- };
1147
- deployments: {
1148
- Row: {
1149
- compiled_docs: Json | null;
1150
- created_at: string;
1151
- deployment_version: string | null;
1152
- documentation: Json | null;
1153
- error_message: string | null;
1154
- id: string;
1155
- organization_id: string;
1156
- pid: number | null;
1157
- port: number | null;
1158
- sdk_version: string;
1159
- status: string;
1160
- tarball_path: string | null;
1161
- updated_at: string;
1162
- };
1163
- Insert: {
1164
- compiled_docs?: Json | null;
1165
- created_at?: string;
1166
- deployment_version?: string | null;
1167
- documentation?: Json | null;
1168
- error_message?: string | null;
1169
- id?: string;
1170
- organization_id: string;
1171
- pid?: number | null;
1172
- port?: number | null;
1173
- sdk_version: string;
1174
- status?: string;
1175
- tarball_path?: string | null;
1176
- updated_at?: string;
1177
- };
1178
- Update: {
1179
- compiled_docs?: Json | null;
1180
- created_at?: string;
1181
- deployment_version?: string | null;
1182
- documentation?: Json | null;
1183
- error_message?: string | null;
1184
- id?: string;
1185
- organization_id?: string;
1186
- pid?: number | null;
1187
- port?: number | null;
1188
- sdk_version?: string;
1189
- status?: string;
1190
- tarball_path?: string | null;
1191
- updated_at?: string;
1192
- };
1193
- Relationships: [
1194
- {
1195
- foreignKeyName: "deployments_organization_id_fkey";
1196
- columns: ["organization_id"];
1197
- isOneToOne: false;
1198
- referencedRelation: "organizations";
1199
- referencedColumns: ["id"];
1200
- }
1201
- ];
1202
- };
1203
- execution_errors: {
1204
- Row: {
1205
- created_at: string | null;
1206
- error_category: string;
1207
- error_message: string;
1208
- error_severity: string;
1209
- error_stack_trace: string | null;
1210
- error_type: string;
1211
- execution_id: string;
1212
- id: string;
1213
- metadata: Json | null;
1214
- occurred_at: string;
1215
- organization_id: string;
1216
- resolved: boolean;
1217
- resolved_at: string | null;
1218
- resolved_by: string | null;
1219
- };
1220
- Insert: {
1221
- created_at?: string | null;
1222
- error_category: string;
1223
- error_message: string;
1224
- error_severity: string;
1225
- error_stack_trace?: string | null;
1226
- error_type: string;
1227
- execution_id: string;
1228
- id?: string;
1229
- metadata?: Json | null;
1230
- occurred_at?: string;
1231
- organization_id: string;
1232
- resolved?: boolean;
1233
- resolved_at?: string | null;
1234
- resolved_by?: string | null;
1235
- };
1236
- Update: {
1237
- created_at?: string | null;
1238
- error_category?: string;
1239
- error_message?: string;
1240
- error_severity?: string;
1241
- error_stack_trace?: string | null;
1242
- error_type?: string;
1243
- execution_id?: string;
1244
- id?: string;
1245
- metadata?: Json | null;
1246
- occurred_at?: string;
1247
- organization_id?: string;
1248
- resolved?: boolean;
1249
- resolved_at?: string | null;
1250
- resolved_by?: string | null;
1251
- };
1252
- Relationships: [
1253
- {
1254
- foreignKeyName: "execution_errors_execution_id_fkey";
1255
- columns: ["execution_id"];
1256
- isOneToOne: false;
1257
- referencedRelation: "execution_logs";
1258
- referencedColumns: ["execution_id"];
1259
- },
1260
- {
1261
- foreignKeyName: "execution_errors_organization_id_fkey";
1262
- columns: ["organization_id"];
1263
- isOneToOne: false;
1264
- referencedRelation: "organizations";
1265
- referencedColumns: ["id"];
1266
- },
1267
- {
1268
- foreignKeyName: "execution_errors_resolved_by_fkey";
1269
- columns: ["resolved_by"];
1270
- isOneToOne: false;
1271
- referencedRelation: "users";
1272
- referencedColumns: ["id"];
1273
- }
1274
- ];
1275
- };
1276
- execution_logs: {
1277
- Row: {
1278
- api_version: string | null;
1279
- completed_at: string | null;
1280
- created_at: string | null;
1281
- error: string | null;
1282
- execution_id: string;
1283
- input: Json | null;
1284
- last_heartbeat_at: string | null;
1285
- logs: Json | null;
1286
- organization_id: string;
1287
- origin_execution_id: string | null;
1288
- output: Json | null;
1289
- resource_id: string;
1290
- resource_status: string;
1291
- resource_type: string;
1292
- resource_version: string | null;
1293
- sdk_version: string | null;
1294
- session_id: string | null;
1295
- session_turn_number: number | null;
1296
- started_at: string;
1297
- status: string;
1298
- trigger_type: string | null;
1299
- updated_at: string | null;
1300
- user_id: string | null;
1301
- };
1302
- Insert: {
1303
- api_version?: string | null;
1304
- completed_at?: string | null;
1305
- created_at?: string | null;
1306
- error?: string | null;
1307
- execution_id?: string;
1308
- input?: Json | null;
1309
- last_heartbeat_at?: string | null;
1310
- logs?: Json | null;
1311
- organization_id: string;
1312
- origin_execution_id?: string | null;
1313
- output?: Json | null;
1314
- resource_id: string;
1315
- resource_status?: string;
1316
- resource_type?: string;
1317
- resource_version?: string | null;
1318
- sdk_version?: string | null;
1319
- session_id?: string | null;
1320
- session_turn_number?: number | null;
1321
- started_at?: string;
1322
- status: string;
1323
- trigger_type?: string | null;
1324
- updated_at?: string | null;
1325
- user_id?: string | null;
1326
- };
1327
- Update: {
1328
- api_version?: string | null;
1329
- completed_at?: string | null;
1330
- created_at?: string | null;
1331
- error?: string | null;
1332
- execution_id?: string;
1333
- input?: Json | null;
1334
- last_heartbeat_at?: string | null;
1335
- logs?: Json | null;
1336
- organization_id?: string;
1337
- origin_execution_id?: string | null;
1338
- output?: Json | null;
1339
- resource_id?: string;
1340
- resource_status?: string;
1341
- resource_type?: string;
1342
- resource_version?: string | null;
1343
- sdk_version?: string | null;
1344
- session_id?: string | null;
1345
- session_turn_number?: number | null;
1346
- started_at?: string;
1347
- status?: string;
1348
- trigger_type?: string | null;
1349
- updated_at?: string | null;
1350
- user_id?: string | null;
1351
- };
1352
- Relationships: [
1353
- {
1354
- foreignKeyName: "execution_history_organization_id_fkey";
1355
- columns: ["organization_id"];
1356
- isOneToOne: false;
1357
- referencedRelation: "organizations";
1358
- referencedColumns: ["id"];
1359
- },
1360
- {
1361
- foreignKeyName: "execution_logs_origin_execution_id_fkey";
1362
- columns: ["origin_execution_id"];
1363
- isOneToOne: false;
1364
- referencedRelation: "execution_logs";
1365
- referencedColumns: ["execution_id"];
1366
- },
1367
- {
1368
- foreignKeyName: "execution_logs_session_id_fkey";
1369
- columns: ["session_id"];
1370
- isOneToOne: false;
1371
- referencedRelation: "sessions";
1372
- referencedColumns: ["session_id"];
1373
- },
1374
- {
1375
- foreignKeyName: "execution_logs_user_id_fkey";
1376
- columns: ["user_id"];
1377
- isOneToOne: false;
1378
- referencedRelation: "users";
1379
- referencedColumns: ["id"];
1380
- }
1381
- ];
1382
- };
1383
- execution_metrics: {
1384
- Row: {
1385
- ai_call_count: number;
1386
- ai_calls: Json | null;
1387
- automation_savings_usd: number | null;
1388
- created_at: string | null;
1389
- duration_ms: number | null;
1390
- execution_id: string;
1391
- organization_id: string;
1392
- resource_id: string;
1393
- total_cost_usd: number;
1394
- total_input_tokens: number;
1395
- total_output_tokens: number;
1396
- };
1397
- Insert: {
1398
- ai_call_count: number;
1399
- ai_calls?: Json | null;
1400
- automation_savings_usd?: number | null;
1401
- created_at?: string | null;
1402
- duration_ms?: number | null;
1403
- execution_id: string;
1404
- organization_id: string;
1405
- resource_id: string;
1406
- total_cost_usd: number;
1407
- total_input_tokens: number;
1408
- total_output_tokens: number;
1409
- };
1410
- Update: {
1411
- ai_call_count?: number;
1412
- ai_calls?: Json | null;
1413
- automation_savings_usd?: number | null;
1414
- created_at?: string | null;
1415
- duration_ms?: number | null;
1416
- execution_id?: string;
1417
- organization_id?: string;
1418
- resource_id?: string;
1419
- total_cost_usd?: number;
1420
- total_input_tokens?: number;
1421
- total_output_tokens?: number;
1422
- };
1423
- Relationships: [
1424
- {
1425
- foreignKeyName: "execution_metrics_execution_id_fkey";
1426
- columns: ["execution_id"];
1427
- isOneToOne: true;
1428
- referencedRelation: "execution_logs";
1429
- referencedColumns: ["execution_id"];
1430
- },
1431
- {
1432
- foreignKeyName: "execution_metrics_organization_id_fkey";
1433
- columns: ["organization_id"];
1434
- isOneToOne: false;
1435
- referencedRelation: "organizations";
1436
- referencedColumns: ["id"];
1437
- }
1438
- ];
1439
- };
1440
- notifications: {
1441
- Row: {
1442
- action_url: string | null;
1443
- category: string;
1444
- created_at: string | null;
1445
- id: string;
1446
- message: string;
1447
- organization_id: string;
1448
- read: boolean | null;
1449
- read_at: string | null;
1450
- title: string;
1451
- user_id: string;
1452
- };
1453
- Insert: {
1454
- action_url?: string | null;
1455
- category: string;
1456
- created_at?: string | null;
1457
- id?: string;
1458
- message: string;
1459
- organization_id: string;
1460
- read?: boolean | null;
1461
- read_at?: string | null;
1462
- title: string;
1463
- user_id: string;
1464
- };
1465
- Update: {
1466
- action_url?: string | null;
1467
- category?: string;
1468
- created_at?: string | null;
1469
- id?: string;
1470
- message?: string;
1471
- organization_id?: string;
1472
- read?: boolean | null;
1473
- read_at?: string | null;
1474
- title?: string;
1475
- user_id?: string;
1476
- };
1477
- Relationships: [
1478
- {
1479
- foreignKeyName: "notifications_organization_id_fkey";
1480
- columns: ["organization_id"];
1481
- isOneToOne: false;
1482
- referencedRelation: "organizations";
1483
- referencedColumns: ["id"];
1484
- },
1485
- {
1486
- foreignKeyName: "notifications_user_id_fkey";
1487
- columns: ["user_id"];
1488
- isOneToOne: false;
1489
- referencedRelation: "users";
1490
- referencedColumns: ["id"];
1491
- }
1492
- ];
1493
- };
1494
- org_invitations: {
1495
- Row: {
1496
- accept_invitation_url: string | null;
1497
- accepted_at: string | null;
1498
- created_at: string | null;
1499
- email: string;
1500
- expires_at: string;
1501
- id: string;
1502
- invitation_state: string | null;
1503
- invitation_token: string | null;
1504
- inviter_user_id: string | null;
1505
- organization_id: string | null;
1506
- revoked_at: string | null;
1507
- role_slug: string | null;
1508
- updated_at: string | null;
1509
- workos_invitation_id: string;
1510
- };
1511
- Insert: {
1512
- accept_invitation_url?: string | null;
1513
- accepted_at?: string | null;
1514
- created_at?: string | null;
1515
- email: string;
1516
- expires_at: string;
1517
- id?: string;
1518
- invitation_state?: string | null;
1519
- invitation_token?: string | null;
1520
- inviter_user_id?: string | null;
1521
- organization_id?: string | null;
1522
- revoked_at?: string | null;
1523
- role_slug?: string | null;
1524
- updated_at?: string | null;
1525
- workos_invitation_id: string;
1526
- };
1527
- Update: {
1528
- accept_invitation_url?: string | null;
1529
- accepted_at?: string | null;
1530
- created_at?: string | null;
1531
- email?: string;
1532
- expires_at?: string;
1533
- id?: string;
1534
- invitation_state?: string | null;
1535
- invitation_token?: string | null;
1536
- inviter_user_id?: string | null;
1537
- organization_id?: string | null;
1538
- revoked_at?: string | null;
1539
- role_slug?: string | null;
1540
- updated_at?: string | null;
1541
- workos_invitation_id?: string;
1542
- };
1543
- Relationships: [
1544
- {
1545
- foreignKeyName: "org_invitations_inviter_user_id_fkey";
1546
- columns: ["inviter_user_id"];
1547
- isOneToOne: false;
1548
- referencedRelation: "users";
1549
- referencedColumns: ["id"];
1550
- },
1551
- {
1552
- foreignKeyName: "org_invitations_organization_id_fkey";
1553
- columns: ["organization_id"];
1554
- isOneToOne: false;
1555
- referencedRelation: "organizations";
1556
- referencedColumns: ["id"];
1557
- }
1558
- ];
1559
- };
1560
- org_memberships: {
1561
- Row: {
1562
- config: Json;
1563
- created_at: string | null;
1564
- id: string;
1565
- membership_status: string | null;
1566
- organization_id: string;
1567
- role_slug: string | null;
1568
- updated_at: string | null;
1569
- user_id: string;
1570
- workos_membership_id: string | null;
1571
- };
1572
- Insert: {
1573
- config?: Json;
1574
- created_at?: string | null;
1575
- id?: string;
1576
- membership_status?: string | null;
1577
- organization_id: string;
1578
- role_slug?: string | null;
1579
- updated_at?: string | null;
1580
- user_id: string;
1581
- workos_membership_id?: string | null;
1582
- };
1583
- Update: {
1584
- config?: Json;
1585
- created_at?: string | null;
1586
- id?: string;
1587
- membership_status?: string | null;
1588
- organization_id?: string;
1589
- role_slug?: string | null;
1590
- updated_at?: string | null;
1591
- user_id?: string;
1592
- workos_membership_id?: string | null;
1593
- };
1594
- Relationships: [
1595
- {
1596
- foreignKeyName: "org_memberships_organization_id_fkey";
1597
- columns: ["organization_id"];
1598
- isOneToOne: false;
1599
- referencedRelation: "organizations";
1600
- referencedColumns: ["id"];
1601
- },
1602
- {
1603
- foreignKeyName: "org_memberships_user_id_fkey";
1604
- columns: ["user_id"];
1605
- isOneToOne: false;
1606
- referencedRelation: "users";
1607
- referencedColumns: ["id"];
1608
- }
1609
- ];
1610
- };
1611
- organizations: {
1612
- Row: {
1613
- config: Json;
1614
- created_at: string;
1615
- id: string;
1616
- is_test: boolean;
1617
- metadata: Json;
1618
- name: string;
1619
- status: string;
1620
- updated_at: string;
1621
- workos_org_id: string;
1622
- };
1623
- Insert: {
1624
- config?: Json;
1625
- created_at?: string;
1626
- id?: string;
1627
- is_test?: boolean;
1628
- metadata?: Json;
1629
- name: string;
1630
- status?: string;
1631
- updated_at?: string;
1632
- workos_org_id: string;
1633
- };
1634
- Update: {
1635
- config?: Json;
1636
- created_at?: string;
1637
- id?: string;
1638
- is_test?: boolean;
1639
- metadata?: Json;
1640
- name?: string;
1641
- status?: string;
1642
- updated_at?: string;
1643
- workos_org_id?: string;
1644
- };
1645
- Relationships: [];
1646
- };
1647
- prj_milestones: {
1648
- Row: {
1649
- checklist: Json | null;
1650
- completed_at: string | null;
1651
- created_at: string;
1652
- description: string | null;
1653
- due_date: string | null;
1654
- id: string;
1655
- metadata: Json | null;
1656
- name: string;
1657
- organization_id: string;
1658
- project_id: string;
1659
- sequence: number;
1660
- status: string;
1661
- updated_at: string;
1662
- };
1663
- Insert: {
1664
- checklist?: Json | null;
1665
- completed_at?: string | null;
1666
- created_at?: string;
1667
- description?: string | null;
1668
- due_date?: string | null;
1669
- id?: string;
1670
- metadata?: Json | null;
1671
- name: string;
1672
- organization_id: string;
1673
- project_id: string;
1674
- sequence?: number;
1675
- status?: string;
1676
- updated_at?: string;
1677
- };
1678
- Update: {
1679
- checklist?: Json | null;
1680
- completed_at?: string | null;
1681
- created_at?: string;
1682
- description?: string | null;
1683
- due_date?: string | null;
1684
- id?: string;
1685
- metadata?: Json | null;
1686
- name?: string;
1687
- organization_id?: string;
1688
- project_id?: string;
1689
- sequence?: number;
1690
- status?: string;
1691
- updated_at?: string;
1692
- };
1693
- Relationships: [
1694
- {
1695
- foreignKeyName: "prj_milestones_organization_id_fkey";
1696
- columns: ["organization_id"];
1697
- isOneToOne: false;
1698
- referencedRelation: "organizations";
1699
- referencedColumns: ["id"];
1700
- },
1701
- {
1702
- foreignKeyName: "prj_milestones_project_id_fkey";
1703
- columns: ["project_id"];
1704
- isOneToOne: false;
1705
- referencedRelation: "prj_projects";
1706
- referencedColumns: ["id"];
1707
- }
1708
- ];
1709
- };
1710
- prj_notes: {
1711
- Row: {
1712
- content: string;
1713
- created_at: string;
1714
- created_by: string | null;
1715
- id: string;
1716
- metadata: Json | null;
1717
- milestone_id: string | null;
1718
- occurred_at: string;
1719
- organization_id: string;
1720
- project_id: string;
1721
- summary: string | null;
1722
- task_id: string | null;
1723
- type: string;
1724
- };
1725
- Insert: {
1726
- content: string;
1727
- created_at?: string;
1728
- created_by?: string | null;
1729
- id?: string;
1730
- metadata?: Json | null;
1731
- milestone_id?: string | null;
1732
- occurred_at?: string;
1733
- organization_id: string;
1734
- project_id: string;
1735
- summary?: string | null;
1736
- task_id?: string | null;
1737
- type?: string;
1738
- };
1739
- Update: {
1740
- content?: string;
1741
- created_at?: string;
1742
- created_by?: string | null;
1743
- id?: string;
1744
- metadata?: Json | null;
1745
- milestone_id?: string | null;
1746
- occurred_at?: string;
1747
- organization_id?: string;
1748
- project_id?: string;
1749
- summary?: string | null;
1750
- task_id?: string | null;
1751
- type?: string;
1752
- };
1753
- Relationships: [
1754
- {
1755
- foreignKeyName: "prj_notes_created_by_fkey";
1756
- columns: ["created_by"];
1757
- isOneToOne: false;
1758
- referencedRelation: "users";
1759
- referencedColumns: ["id"];
1760
- },
1761
- {
1762
- foreignKeyName: "prj_notes_milestone_id_fkey";
1763
- columns: ["milestone_id"];
1764
- isOneToOne: false;
1765
- referencedRelation: "prj_milestones";
1766
- referencedColumns: ["id"];
1767
- },
1768
- {
1769
- foreignKeyName: "prj_notes_organization_id_fkey";
1770
- columns: ["organization_id"];
1771
- isOneToOne: false;
1772
- referencedRelation: "organizations";
1773
- referencedColumns: ["id"];
1774
- },
1775
- {
1776
- foreignKeyName: "prj_notes_project_id_fkey";
1777
- columns: ["project_id"];
1778
- isOneToOne: false;
1779
- referencedRelation: "prj_projects";
1780
- referencedColumns: ["id"];
1781
- },
1782
- {
1783
- foreignKeyName: "prj_notes_task_id_fkey";
1784
- columns: ["task_id"];
1785
- isOneToOne: false;
1786
- referencedRelation: "prj_tasks";
1787
- referencedColumns: ["id"];
1788
- }
1789
- ];
1790
- };
1791
- prj_projects: {
1792
- Row: {
1793
- actual_end_date: string | null;
1794
- client_company_id: string | null;
1795
- contract_value: number | null;
1796
- created_at: string;
1797
- deal_id: string | null;
1798
- description: string | null;
1799
- id: string;
1800
- kind: string;
1801
- metadata: Json | null;
1802
- name: string;
1803
- organization_id: string;
1804
- start_date: string | null;
1805
- status: string;
1806
- target_end_date: string | null;
1807
- updated_at: string;
1808
- };
1809
- Insert: {
1810
- actual_end_date?: string | null;
1811
- client_company_id?: string | null;
1812
- contract_value?: number | null;
1813
- created_at?: string;
1814
- deal_id?: string | null;
1815
- description?: string | null;
1816
- id?: string;
1817
- kind?: string;
1818
- metadata?: Json | null;
1819
- name: string;
1820
- organization_id: string;
1821
- start_date?: string | null;
1822
- status?: string;
1823
- target_end_date?: string | null;
1824
- updated_at?: string;
1825
- };
1826
- Update: {
1827
- actual_end_date?: string | null;
1828
- client_company_id?: string | null;
1829
- contract_value?: number | null;
1830
- created_at?: string;
1831
- deal_id?: string | null;
1832
- description?: string | null;
1833
- id?: string;
1834
- kind?: string;
1835
- metadata?: Json | null;
1836
- name?: string;
1837
- organization_id?: string;
1838
- start_date?: string | null;
1839
- status?: string;
1840
- target_end_date?: string | null;
1841
- updated_at?: string;
1842
- };
1843
- Relationships: [
1844
- {
1845
- foreignKeyName: "prj_projects_client_company_id_fkey";
1846
- columns: ["client_company_id"];
1847
- isOneToOne: false;
1848
- referencedRelation: "acq_companies";
1849
- referencedColumns: ["id"];
1850
- },
1851
- {
1852
- foreignKeyName: "prj_projects_deal_id_fkey";
1853
- columns: ["deal_id"];
1854
- isOneToOne: false;
1855
- referencedRelation: "acq_deals";
1856
- referencedColumns: ["id"];
1857
- },
1858
- {
1859
- foreignKeyName: "prj_projects_organization_id_fkey";
1860
- columns: ["organization_id"];
1861
- isOneToOne: false;
1862
- referencedRelation: "organizations";
1863
- referencedColumns: ["id"];
1864
- }
1865
- ];
1866
- };
1867
- prj_tasks: {
1868
- Row: {
1869
- checklist: Json;
1870
- completed_at: string | null;
1871
- created_at: string;
1872
- description: string | null;
1873
- due_date: string | null;
1874
- file_url: string | null;
1875
- id: string;
1876
- metadata: Json | null;
1877
- milestone_id: string | null;
1878
- name: string;
1879
- organization_id: string;
1880
- parent_task_id: string | null;
1881
- project_id: string;
1882
- resume_context: Json | null;
1883
- status: string;
1884
- type: string;
1885
- updated_at: string;
1886
- };
1887
- Insert: {
1888
- checklist?: Json;
1889
- completed_at?: string | null;
1890
- created_at?: string;
1891
- description?: string | null;
1892
- due_date?: string | null;
1893
- file_url?: string | null;
1894
- id?: string;
1895
- metadata?: Json | null;
1896
- milestone_id?: string | null;
1897
- name: string;
1898
- organization_id: string;
1899
- parent_task_id?: string | null;
1900
- project_id: string;
1901
- resume_context?: Json | null;
1902
- status?: string;
1903
- type?: string;
1904
- updated_at?: string;
1905
- };
1906
- Update: {
1907
- checklist?: Json;
1908
- completed_at?: string | null;
1909
- created_at?: string;
1910
- description?: string | null;
1911
- due_date?: string | null;
1912
- file_url?: string | null;
1913
- id?: string;
1914
- metadata?: Json | null;
1915
- milestone_id?: string | null;
1916
- name?: string;
1917
- organization_id?: string;
1918
- parent_task_id?: string | null;
1919
- project_id?: string;
1920
- resume_context?: Json | null;
1921
- status?: string;
1922
- type?: string;
1923
- updated_at?: string;
1924
- };
1925
- Relationships: [
1926
- {
1927
- foreignKeyName: "prj_tasks_milestone_id_fkey";
1928
- columns: ["milestone_id"];
1929
- isOneToOne: false;
1930
- referencedRelation: "prj_milestones";
1931
- referencedColumns: ["id"];
1932
- },
1933
- {
1934
- foreignKeyName: "prj_tasks_organization_id_fkey";
1935
- columns: ["organization_id"];
1936
- isOneToOne: false;
1937
- referencedRelation: "organizations";
1938
- referencedColumns: ["id"];
1939
- },
1940
- {
1941
- foreignKeyName: "prj_tasks_parent_task_id_fkey";
1942
- columns: ["parent_task_id"];
1943
- isOneToOne: false;
1944
- referencedRelation: "prj_tasks";
1945
- referencedColumns: ["id"];
1946
- },
1947
- {
1948
- foreignKeyName: "prj_tasks_project_id_fkey";
1949
- columns: ["project_id"];
1950
- isOneToOne: false;
1951
- referencedRelation: "prj_projects";
1952
- referencedColumns: ["id"];
1953
- }
1954
- ];
1955
- };
1956
- session_messages: {
1957
- Row: {
1958
- created_at: string | null;
1959
- id: string;
1960
- message: string;
1961
- message_index: number | null;
1962
- message_type: string | null;
1963
- metadata: Json | null;
1964
- role: string;
1965
- session_id: string;
1966
- session_turn_number: number;
1967
- };
1968
- Insert: {
1969
- created_at?: string | null;
1970
- id: string;
1971
- message: string;
1972
- message_index?: number | null;
1973
- message_type?: string | null;
1974
- metadata?: Json | null;
1975
- role: string;
1976
- session_id: string;
1977
- session_turn_number: number;
1978
- };
1979
- Update: {
1980
- created_at?: string | null;
1981
- id?: string;
1982
- message?: string;
1983
- message_index?: number | null;
1984
- message_type?: string | null;
1985
- metadata?: Json | null;
1986
- role?: string;
1987
- session_id?: string;
1988
- session_turn_number?: number;
1989
- };
1990
- Relationships: [
1991
- {
1992
- foreignKeyName: "session_messages_session_id_fkey";
1993
- columns: ["session_id"];
1994
- isOneToOne: false;
1995
- referencedRelation: "sessions";
1996
- referencedColumns: ["session_id"];
1997
- }
1998
- ];
1999
- };
2000
- sessions: {
2001
- Row: {
2002
- context_window_size: number;
2003
- created_at: string | null;
2004
- cumulative_input_tokens: number;
2005
- cumulative_output_tokens: number;
2006
- deleted_at: string | null;
2007
- ended_at: string | null;
2008
- memory_snapshot: Json;
2009
- metadata: Json | null;
2010
- organization_id: string;
2011
- resource_id: string;
2012
- session_id: string;
2013
- session_total_turns: number | null;
2014
- updated_at: string | null;
2015
- user_id: string | null;
2016
- };
2017
- Insert: {
2018
- context_window_size?: number;
2019
- created_at?: string | null;
2020
- cumulative_input_tokens?: number;
2021
- cumulative_output_tokens?: number;
2022
- deleted_at?: string | null;
2023
- ended_at?: string | null;
2024
- memory_snapshot: Json;
2025
- metadata?: Json | null;
2026
- organization_id: string;
2027
- resource_id: string;
2028
- session_id?: string;
2029
- session_total_turns?: number | null;
2030
- updated_at?: string | null;
2031
- user_id?: string | null;
2032
- };
2033
- Update: {
2034
- context_window_size?: number;
2035
- created_at?: string | null;
2036
- cumulative_input_tokens?: number;
2037
- cumulative_output_tokens?: number;
2038
- deleted_at?: string | null;
2039
- ended_at?: string | null;
2040
- memory_snapshot?: Json;
2041
- metadata?: Json | null;
2042
- organization_id?: string;
2043
- resource_id?: string;
2044
- session_id?: string;
2045
- session_total_turns?: number | null;
2046
- updated_at?: string | null;
2047
- user_id?: string | null;
2048
- };
2049
- Relationships: [
2050
- {
2051
- foreignKeyName: "fk_organization";
2052
- columns: ["organization_id"];
2053
- isOneToOne: false;
2054
- referencedRelation: "organizations";
2055
- referencedColumns: ["id"];
2056
- },
2057
- {
2058
- foreignKeyName: "fk_user";
2059
- columns: ["user_id"];
2060
- isOneToOne: false;
2061
- referencedRelation: "users";
2062
- referencedColumns: ["id"];
2063
- }
2064
- ];
2065
- };
2066
- task_schedules: {
2067
- Row: {
2068
- created_at: string;
2069
- current_step: number;
2070
- description: string | null;
2071
- id: string;
2072
- idempotency_key: string | null;
2073
- last_execution_id: string | null;
2074
- last_run_at: string | null;
2075
- max_retries: number;
2076
- metadata: Json | null;
2077
- name: string;
2078
- next_run_at: string | null;
2079
- organization_id: string;
2080
- origin_execution_id: string | null;
2081
- origin_resource_id: string | null;
2082
- origin_resource_type: string | null;
2083
- retry_count: number;
2084
- schedule_config: Json;
2085
- status: string;
2086
- target_resource_id: string;
2087
- target_resource_type: string;
2088
- updated_at: string;
2089
- };
2090
- Insert: {
2091
- created_at?: string;
2092
- current_step?: number;
2093
- description?: string | null;
2094
- id?: string;
2095
- idempotency_key?: string | null;
2096
- last_execution_id?: string | null;
2097
- last_run_at?: string | null;
2098
- max_retries?: number;
2099
- metadata?: Json | null;
2100
- name: string;
2101
- next_run_at?: string | null;
2102
- organization_id: string;
2103
- origin_execution_id?: string | null;
2104
- origin_resource_id?: string | null;
2105
- origin_resource_type?: string | null;
2106
- retry_count?: number;
2107
- schedule_config: Json;
2108
- status?: string;
2109
- target_resource_id: string;
2110
- target_resource_type: string;
2111
- updated_at?: string;
2112
- };
2113
- Update: {
2114
- created_at?: string;
2115
- current_step?: number;
2116
- description?: string | null;
2117
- id?: string;
2118
- idempotency_key?: string | null;
2119
- last_execution_id?: string | null;
2120
- last_run_at?: string | null;
2121
- max_retries?: number;
2122
- metadata?: Json | null;
2123
- name?: string;
2124
- next_run_at?: string | null;
2125
- organization_id?: string;
2126
- origin_execution_id?: string | null;
2127
- origin_resource_id?: string | null;
2128
- origin_resource_type?: string | null;
2129
- retry_count?: number;
2130
- schedule_config?: Json;
2131
- status?: string;
2132
- target_resource_id?: string;
2133
- target_resource_type?: string;
2134
- updated_at?: string;
2135
- };
2136
- Relationships: [
2137
- {
2138
- foreignKeyName: "task_schedules_organization_id_fkey";
2139
- columns: ["organization_id"];
2140
- isOneToOne: false;
2141
- referencedRelation: "organizations";
2142
- referencedColumns: ["id"];
2143
- }
2144
- ];
2145
- };
2146
- users: {
2147
- Row: {
2148
- config: Json;
2149
- created_at: string;
2150
- display_name: string | null;
2151
- email: string;
2152
- first_name: string | null;
2153
- id: string;
2154
- is_active: boolean;
2155
- is_platform_admin: boolean | null;
2156
- last_login_at: string | null;
2157
- last_name: string | null;
2158
- last_visited_org: string | null;
2159
- profile_picture_url: string | null;
2160
- updated_at: string;
2161
- workos_user_id: string | null;
2162
- };
2163
- Insert: {
2164
- config?: Json;
2165
- created_at?: string;
2166
- display_name?: string | null;
2167
- email: string;
2168
- first_name?: string | null;
2169
- id?: string;
2170
- is_active?: boolean;
2171
- is_platform_admin?: boolean | null;
2172
- last_login_at?: string | null;
2173
- last_name?: string | null;
2174
- last_visited_org?: string | null;
2175
- profile_picture_url?: string | null;
2176
- updated_at?: string;
2177
- workos_user_id?: string | null;
2178
- };
2179
- Update: {
2180
- config?: Json;
2181
- created_at?: string;
2182
- display_name?: string | null;
2183
- email?: string;
2184
- first_name?: string | null;
2185
- id?: string;
2186
- is_active?: boolean;
2187
- is_platform_admin?: boolean | null;
2188
- last_login_at?: string | null;
2189
- last_name?: string | null;
2190
- last_visited_org?: string | null;
2191
- profile_picture_url?: string | null;
2192
- updated_at?: string;
2193
- workos_user_id?: string | null;
2194
- };
2195
- Relationships: [
2196
- {
2197
- foreignKeyName: "user_profiles_last_visited_org_fkey";
2198
- columns: ["last_visited_org"];
2199
- isOneToOne: false;
2200
- referencedRelation: "organizations";
2201
- referencedColumns: ["id"];
2202
- }
2203
- ];
2204
- };
2205
- webhook_endpoints: {
2206
- Row: {
2207
- created_at: string;
2208
- description: string | null;
2209
- id: string;
2210
- key: string;
2211
- last_triggered_at: string | null;
2212
- name: string;
2213
- organization_id: string;
2214
- request_count: number;
2215
- resource_id: string | null;
2216
- status: string;
2217
- updated_at: string;
2218
- };
2219
- Insert: {
2220
- created_at?: string;
2221
- description?: string | null;
2222
- id?: string;
2223
- key: string;
2224
- last_triggered_at?: string | null;
2225
- name: string;
2226
- organization_id: string;
2227
- request_count?: number;
2228
- resource_id?: string | null;
2229
- status?: string;
2230
- updated_at?: string;
2231
- };
2232
- Update: {
2233
- created_at?: string;
2234
- description?: string | null;
2235
- id?: string;
2236
- key?: string;
2237
- last_triggered_at?: string | null;
2238
- name?: string;
2239
- organization_id?: string;
2240
- request_count?: number;
2241
- resource_id?: string | null;
2242
- status?: string;
2243
- updated_at?: string;
2244
- };
2245
- Relationships: [
2246
- {
2247
- foreignKeyName: "webhook_endpoints_organization_id_fkey";
2248
- columns: ["organization_id"];
2249
- isOneToOne: false;
2250
- referencedRelation: "organizations";
2251
- referencedColumns: ["id"];
2252
- }
2253
- ];
2254
- };
2255
- };
2256
- Views: {
2257
- [_ in never]: never;
2258
- };
2259
- Functions: {
2260
- acq_default_checklist: {
2261
- Args: {
2262
- p_platform: string;
2263
- };
2264
- Returns: Json;
2265
- };
2266
- append_deal_activity: {
2267
- Args: {
2268
- p_activity: Json;
2269
- p_deal_id: string;
2270
- p_organization_id: string;
2271
- };
2272
- Returns: undefined;
2273
- };
2274
- auth_jwt_claims: {
2275
- Args: never;
2276
- Returns: Json;
2277
- };
2278
- auth_uid_safe: {
2279
- Args: never;
2280
- Returns: string;
2281
- };
2282
- current_user_is_platform_admin: {
2283
- Args: never;
2284
- Returns: boolean;
2285
- };
2286
- current_user_supabase_id: {
2287
- Args: never;
2288
- Returns: string;
2289
- };
2290
- detect_stalled_executions: {
2291
- Args: never;
2292
- Returns: undefined;
2293
- };
2294
- execute_session_turn: {
2295
- Args: {
2296
- p_session_id: string;
2297
- };
2298
- Returns: {
2299
- created_at: string;
2300
- ended_at: string;
2301
- memory_snapshot: Json;
2302
- metadata: Json;
2303
- organization_id: string;
2304
- resource_id: string;
2305
- session_id: string;
2306
- session_total_turns: number;
2307
- updated_at: string;
2308
- user_id: string;
2309
- }[];
2310
- };
2311
- get_storage_org_id: {
2312
- Args: {
2313
- file_path: string;
2314
- };
2315
- Returns: string;
2316
- };
2317
- get_workos_user_id: {
2318
- Args: never;
2319
- Returns: string;
2320
- };
2321
- is_org_admin: {
2322
- Args: {
2323
- org_id: string;
2324
- };
2325
- Returns: boolean;
2326
- };
2327
- is_org_member: {
2328
- Args: {
2329
- org_id: string;
2330
- };
2331
- Returns: boolean;
2332
- };
2333
- link_workos_membership_on_accept: {
2334
- Args: {
2335
- p_email: string;
2336
- p_organization_id: string;
2337
- p_workos_membership_id: string;
2338
- };
2339
- Returns: boolean;
2340
- };
2341
- pre_provision_invited_user: {
2342
- Args: {
2343
- p_email: string;
2344
- p_organization_id: string;
2345
- p_role_slug?: string;
2346
- };
2347
- Returns: Json;
2348
- };
2349
- process_due_schedules: {
2350
- Args: never;
2351
- Returns: Json;
2352
- };
2353
- upsert_user_profile: {
2354
- Args: never;
2355
- Returns: {
2356
- profile_display_name: string;
2357
- profile_email: string;
2358
- profile_id: string;
2359
- profile_workos_user_id: string;
2360
- }[];
2361
- };
2362
- };
2363
- Enums: {
2364
- [_ in never]: never;
2365
- };
2366
- CompositeTypes: {
2367
- [_ in never]: never;
2368
- };
2369
- };
2370
- };
2371
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
2372
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
2373
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
2374
- schema: keyof DatabaseWithoutInternals;
2375
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
2376
- schema: keyof DatabaseWithoutInternals;
2377
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
2378
- schema: keyof DatabaseWithoutInternals;
2379
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
2380
- Row: infer R;
2381
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
2382
- Row: infer R;
2383
- } ? R : never : never;
2384
-
2385
- type SupabaseUserProfile = Tables<'users'>;
2386
-
2387
1
  /**
2388
- * Multi-tenancy configuration types
2
+ * Initialization module - Coordination layer
2389
3
  *
2390
- * Config is stored in dedicated `config` columns (NOT nested in metadata):
2391
- * - organizations.config: Org-level config (no feature toggles -- all features available by default)
2392
- * - org_memberships.config: Per-user-per-org feature overrides
2393
- * - users.config: User-global config
2394
- */
2395
- /**
2396
- * Per-user-per-org config (stored in org_memberships.config)
2397
- * Controls which features a specific member can access within their org
2398
- * Valid feature keys: operations, monitoring, acquisition, calibration, seo
2399
- */
2400
- interface MembershipFeatureConfig {
2401
- features?: {
2402
- operations?: boolean;
2403
- monitoring?: boolean;
2404
- acquisition?: boolean;
2405
- calibration?: boolean;
2406
- seo?: boolean;
2407
- };
2408
- }
2409
-
2410
- /**
2411
- * Organization Membership types based on WorkOS API
2412
- */
2413
- interface OrganizationMembership {
2414
- object: 'organization_membership';
2415
- id: string;
2416
- userId: string;
2417
- organizationId: string;
2418
- role: {
2419
- slug: string;
2420
- };
2421
- status: 'active' | 'inactive';
2422
- createdAt: string;
2423
- updatedAt: string;
2424
- }
2425
- /**
2426
- * Extended membership with user and organization details for UI
2427
- */
2428
- interface MembershipWithDetails extends OrganizationMembership {
2429
- user?: {
2430
- id: string;
2431
- email: string;
2432
- firstName?: string;
2433
- lastName?: string;
2434
- profilePictureUrl?: string;
2435
- };
2436
- organization?: {
2437
- id: string;
2438
- name: string;
2439
- workos_org_id: string;
2440
- primaryDomain?: string;
2441
- is_test?: boolean;
2442
- status?: string;
2443
- metadata?: Record<string, unknown>;
2444
- config?: Record<string, unknown>;
2445
- };
2446
- config?: MembershipFeatureConfig;
2447
- }
2448
-
2449
- /**
2450
- * Return type for useOrgInitialization hook
2451
- */
2452
- interface UseOrgInitializationReturn {
2453
- memberships: MembershipWithDetails[];
2454
- isInitializing: boolean;
2455
- isLoading: boolean;
2456
- isInitialized: boolean;
2457
- error: string | null;
2458
- currentOrganization: MembershipWithDetails['organization'] | null;
2459
- retry: () => Promise<void>;
2460
- }
2461
-
2462
- interface InitializationError {
2463
- layer: 'auth' | 'profile' | 'organization';
2464
- message: string;
2465
- originalError?: Error;
2466
- }
2467
- interface AppInitializationState {
2468
- userReady: boolean;
2469
- organizationReady: boolean;
2470
- allReady: boolean;
2471
- isInitializing: boolean;
2472
- error: InitializationError | null;
2473
- retry: () => void;
2474
- profile: SupabaseUserProfile | null;
2475
- }
2476
- /**
2477
- * Factory function to create a useAppInitialization hook for your app.
4
+ * Preferred usage (zero-config provider):
5
+ * ```typescript
6
+ * import { InitializationProvider, useInitialization } from '@repo/ui/initialization'
7
+ *
8
+ * // In your provider composition (inside OrganizationProvider):
9
+ * <InitializationProvider>
10
+ * <App />
11
+ * </InitializationProvider>
2478
12
  *
2479
- * Usage in app:
13
+ * // In your components:
14
+ * const { organizationReady, error, retry } = useInitialization()
15
+ * ```
16
+ *
17
+ * Legacy usage (factory pattern — deprecated):
2480
18
  * ```typescript
2481
19
  * import { createUseAppInitialization } from '@repo/ui/initialization'
2482
20
  * import { useOrgInitialization } from './organization/hooks/useOrgInitialization'
2483
21
  *
2484
22
  * export const useAppInitialization = createUseAppInitialization(useOrgInitialization)
2485
23
  * ```
2486
- *
2487
- * This pattern allows the shared package to provide the hook logic
2488
- * while each app provides its own hook instances.
2489
- */
2490
- declare function createUseAppInitialization(useOrgInitialization: () => UseOrgInitializationReturn): () => AppInitializationState;
2491
-
2492
- declare const InitializationContext: react.Context<AppInitializationState | null>;
2493
- /**
2494
- * Consumes the nearest InitializationProvider.
2495
- *
2496
- * @throws {Error} If called outside of an InitializationProvider tree.
2497
24
  */
2498
- declare function useInitialization(): AppInitializationState;
25
+ export type { SupabaseUserProfile } from '@repo/core';
26
+ export { InitializationProvider, useInitialization, InitializationContext } from './InitializationProvider';
2499
27
  /**
2500
- * Aggregates auth, profile, and organization state into a single initialization context.
2501
- *
2502
- * Must be rendered inside:
2503
- * - An AuthProvider (needs useAuthContext)
2504
- * - A ProfileProvider (needs useProfile)
2505
- * - An OrganizationProvider (needs useOrganization)
2506
- *
2507
- * Initialization Layers (Sequential):
2508
- * 1. WorkOS Auth (useAuthContext)
2509
- * 2. User Profile Sync (useProfile)
2510
- * 3. Organization Context (useOrganization)
2511
- *
2512
- * @example
2513
- * // Org-scoped pages with data queries (most common)
2514
- * const { organizationReady } = useInitialization()
2515
- * const { data, isLoading } = useResources()
2516
- * if (!organizationReady || isLoading) return <SubshellLoader />
2517
- *
2518
- * @example
2519
- * // Pages accessible without org (invitations, pending)
2520
- * const { userReady, error } = useInitialization()
2521
- * if (!userReady) return <SubshellLoader />
2522
- * if (error?.layer === 'organization') {
2523
- * return <PendingInvitationPage message={error.message} />
2524
- * }
2525
- *
2526
- * @example
2527
- * // Pages with error handling
2528
- * const { organizationReady, error, retry } = useInitialization()
2529
- * if (error?.layer === 'organization') return <NoOrgError error={error} />
2530
- * if (error) return <ErrorCard error={error} onRetry={retry} />
2531
- * if (!organizationReady) return <SubshellLoader />
28
+ * @deprecated Use `InitializationProvider` and `useInitialization` instead.
29
+ * `createUseAppInitialization` requires a factory hook parameter and does not
30
+ * integrate with the shared OrganizationProvider context. The zero-config
31
+ * `InitializationProvider` reads from all parent contexts automatically.
2532
32
  */
2533
- declare function InitializationProvider({ children }: {
2534
- children: ReactNode;
2535
- }): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
2536
-
2537
- export { InitializationContext, InitializationProvider, createUseAppInitialization, useInitialization };
2538
- export type { AppInitializationState, InitializationError, SupabaseUserProfile };
33
+ export { createUseAppInitialization } from './hooks/useAppInitialization';
34
+ export type { InitializationError, AppInitializationState } from './hooks/useAppInitialization';
35
+ //# sourceMappingURL=index.d.ts.map