@elevasis/ui 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (561) hide show
  1. package/dist/auth/index.d.ts +174 -14
  2. package/dist/{chunk-ACD2QA6E.js → chunk-3DIU726S.js} +2 -2
  3. package/dist/{chunk-GH7ZO4VD.js → chunk-C7AD6N23.js} +1 -1
  4. package/dist/{chunk-Z2BXCFAG.js → chunk-COTI2QPO.js} +1 -1
  5. package/dist/{chunk-U4CHEPIL.js → chunk-JIABC3AE.js} +1 -1
  6. package/dist/{chunk-BX565EOK.js → chunk-OFAXUZPZ.js} +298 -808
  7. package/dist/{chunk-JHMJKDVU.js → chunk-R3R367QY.js} +1 -1
  8. package/dist/{chunk-I6EVLOP3.js → chunk-VLTVZXP6.js} +2 -2
  9. package/dist/components/index.d.ts +5708 -22
  10. package/dist/components/index.js +6 -6
  11. package/dist/features/auth/index.d.ts +2557 -9
  12. package/dist/features/dashboard/index.d.ts +244 -9
  13. package/dist/features/dashboard/index.js +5 -5
  14. package/dist/features/monitoring/index.d.ts +121 -15
  15. package/dist/features/monitoring/index.js +4 -4
  16. package/dist/features/operations/index.d.ts +1771 -29
  17. package/dist/features/operations/index.js +6 -6
  18. package/dist/features/settings/index.d.ts +2589 -23
  19. package/dist/features/settings/index.js +5 -5
  20. package/dist/hooks/index.d.ts +6611 -22
  21. package/dist/hooks/index.js +4 -4
  22. package/dist/hooks/published.d.ts +6055 -21
  23. package/dist/hooks/published.js +4 -4
  24. package/dist/index.d.ts +8523 -15
  25. package/dist/index.js +5 -5
  26. package/dist/initialization/index.d.ts +2526 -23
  27. package/dist/layout/index.js +2 -2
  28. package/dist/organization/index.d.ts +274 -23
  29. package/dist/profile/index.d.ts +2477 -15
  30. package/dist/provider/index.d.ts +334 -11
  31. package/dist/provider/index.js +4 -4
  32. package/dist/provider/published.d.ts +309 -11
  33. package/dist/theme/index.d.ts +148 -10
  34. package/dist/theme/index.js +3 -3
  35. package/dist/theme/presets/__tests__/getPreset.test.js +92 -0
  36. package/dist/theme/presets/cyber-volt.js +70 -0
  37. package/dist/theme/presets/regal.js +69 -0
  38. package/dist/theme/presets/rose-gold.js +76 -0
  39. package/dist/types/index.d.ts +1 -1
  40. package/package.json +3 -3
  41. package/dist/auth/guards/AdminGuard.d.ts +0 -32
  42. package/dist/auth/guards/AdminGuard.d.ts.map +0 -1
  43. package/dist/auth/guards/ProtectedRoute.d.ts +0 -60
  44. package/dist/auth/guards/ProtectedRoute.d.ts.map +0 -1
  45. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +0 -12
  46. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +0 -1
  47. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +0 -14
  48. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +0 -1
  49. package/dist/auth/index.d.ts.map +0 -1
  50. package/dist/components/charts/ActivityTrendChart.d.ts +0 -13
  51. package/dist/components/charts/ActivityTrendChart.d.ts.map +0 -1
  52. package/dist/components/charts/CombinedTrendChart.d.ts +0 -22
  53. package/dist/components/charts/CombinedTrendChart.d.ts.map +0 -1
  54. package/dist/components/charts/CostTrendChart.d.ts +0 -13
  55. package/dist/components/charts/CostTrendChart.d.ts.map +0 -1
  56. package/dist/components/charts/HeroStatsRow.d.ts +0 -15
  57. package/dist/components/charts/HeroStatsRow.d.ts.map +0 -1
  58. package/dist/components/charts/index.d.ts +0 -9
  59. package/dist/components/charts/index.d.ts.map +0 -1
  60. package/dist/components/command-queue/TaskCard.d.ts +0 -18
  61. package/dist/components/command-queue/TaskCard.d.ts.map +0 -1
  62. package/dist/components/command-queue/index.d.ts +0 -5
  63. package/dist/components/command-queue/index.d.ts.map +0 -1
  64. package/dist/components/display/PageNotFound.d.ts +0 -2
  65. package/dist/components/display/PageNotFound.d.ts.map +0 -1
  66. package/dist/components/display/index.d.ts +0 -26
  67. package/dist/components/display/index.d.ts.map +0 -1
  68. package/dist/components/execution/ExecutionStats.d.ts +0 -16
  69. package/dist/components/execution/ExecutionStats.d.ts.map +0 -1
  70. package/dist/components/execution/index.d.ts +0 -18
  71. package/dist/components/execution/index.d.ts.map +0 -1
  72. package/dist/components/index.d.ts.map +0 -1
  73. package/dist/components/layout/backgrounds/AuroraBackground.d.ts +0 -16
  74. package/dist/components/layout/backgrounds/AuroraBackground.d.ts.map +0 -1
  75. package/dist/components/layout/backgrounds/AuroraBackground.js +0 -169
  76. package/dist/components/layout/backgrounds/EmberBackground.d.ts +0 -16
  77. package/dist/components/layout/backgrounds/EmberBackground.d.ts.map +0 -1
  78. package/dist/components/layout/backgrounds/EmberBackground.js +0 -169
  79. package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts +0 -16
  80. package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts.map +0 -1
  81. package/dist/components/layout/backgrounds/RoseGoldBackground.js +0 -169
  82. package/dist/components/monitoring/ErrorBreakdownTable.d.ts +0 -12
  83. package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +0 -1
  84. package/dist/components/monitoring/ResourceHealthPanel.d.ts +0 -8
  85. package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +0 -1
  86. package/dist/components/monitoring/index.d.ts +0 -16
  87. package/dist/components/monitoring/index.d.ts.map +0 -1
  88. package/dist/components/notifications/NotificationBell.d.ts +0 -9
  89. package/dist/components/notifications/NotificationBell.d.ts.map +0 -1
  90. package/dist/components/notifications/NotificationItem.d.ts +0 -9
  91. package/dist/components/notifications/NotificationItem.d.ts.map +0 -1
  92. package/dist/components/notifications/NotificationList.d.ts +0 -10
  93. package/dist/components/notifications/NotificationList.d.ts.map +0 -1
  94. package/dist/components/notifications/NotificationPanel.d.ts +0 -10
  95. package/dist/components/notifications/NotificationPanel.d.ts.map +0 -1
  96. package/dist/components/notifications/index.d.ts +0 -5
  97. package/dist/components/notifications/index.d.ts.map +0 -1
  98. package/dist/components/operations/calibration/CreateProjectModal.d.ts +0 -9
  99. package/dist/components/operations/calibration/CreateProjectModal.d.ts.map +0 -1
  100. package/dist/components/operations/calibration/ProjectCard.d.ts +0 -9
  101. package/dist/components/operations/calibration/ProjectCard.d.ts.map +0 -1
  102. package/dist/components/operations/command-queue/index.d.ts +0 -3
  103. package/dist/components/operations/command-queue/index.d.ts.map +0 -1
  104. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +0 -17
  105. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +0 -1
  106. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +0 -17
  107. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +0 -1
  108. package/dist/components/operations/command-queue/sidebar/index.d.ts +0 -5
  109. package/dist/components/operations/command-queue/sidebar/index.d.ts.map +0 -1
  110. package/dist/components/operations/command-view/CommandViewGraph.d.ts +0 -22
  111. package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +0 -1
  112. package/dist/components/operations/command-view/index.d.ts +0 -4
  113. package/dist/components/operations/command-view/index.d.ts.map +0 -1
  114. package/dist/components/operations/executions/AgentExecutionLogs.d.ts +0 -13
  115. package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +0 -1
  116. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +0 -13
  117. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +0 -1
  118. package/dist/components/operations/executions/index.d.ts +0 -4
  119. package/dist/components/operations/executions/index.d.ts.map +0 -1
  120. package/dist/components/operations/index.d.ts +0 -8
  121. package/dist/components/operations/index.d.ts.map +0 -1
  122. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +0 -14
  123. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +0 -1
  124. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +0 -16
  125. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +0 -1
  126. package/dist/components/operations/knowledge-base/index.d.ts +0 -3
  127. package/dist/components/operations/knowledge-base/index.d.ts.map +0 -1
  128. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +0 -16
  129. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +0 -1
  130. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +0 -12
  131. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +0 -1
  132. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +0 -12
  133. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +0 -1
  134. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +0 -7
  135. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +0 -1
  136. package/dist/components/operations/shared/index.d.ts +0 -5
  137. package/dist/components/operations/shared/index.d.ts.map +0 -1
  138. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +0 -11
  139. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +0 -1
  140. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +0 -8
  141. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +0 -1
  142. package/dist/components/operations/shared/layouts/index.d.ts +0 -4
  143. package/dist/components/operations/shared/layouts/index.d.ts.map +0 -1
  144. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +0 -7
  145. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +0 -1
  146. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +0 -2
  147. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +0 -1
  148. package/dist/components/operations/task-scheduler/index.d.ts +0 -11
  149. package/dist/components/operations/task-scheduler/index.d.ts.map +0 -1
  150. package/dist/components/sdk-barrel.d.ts +0 -26
  151. package/dist/components/sdk-barrel.d.ts.map +0 -1
  152. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +0 -9
  153. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +0 -1
  154. package/dist/components/settings/api-keys/ApiKeyList.d.ts +0 -8
  155. package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +0 -1
  156. package/dist/components/settings/api-keys/ApiKeySettings.d.ts +0 -2
  157. package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +0 -1
  158. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +0 -9
  159. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +0 -1
  160. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +0 -8
  161. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +0 -1
  162. package/dist/components/settings/api-keys/index.d.ts +0 -6
  163. package/dist/components/settings/api-keys/index.d.ts.map +0 -1
  164. package/dist/components/settings/credentials/CreateCredentialModal.d.ts +0 -9
  165. package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +0 -1
  166. package/dist/components/settings/credentials/CredentialList.d.ts +0 -10
  167. package/dist/components/settings/credentials/CredentialList.d.ts.map +0 -1
  168. package/dist/components/settings/credentials/CredentialSettings.d.ts +0 -7
  169. package/dist/components/settings/credentials/CredentialSettings.d.ts.map +0 -1
  170. package/dist/components/settings/credentials/index.d.ts +0 -5
  171. package/dist/components/settings/credentials/index.d.ts.map +0 -1
  172. package/dist/components/settings/deployments/DeploymentList.d.ts +0 -8
  173. package/dist/components/settings/deployments/DeploymentList.d.ts.map +0 -1
  174. package/dist/components/settings/deployments/DeploymentSettings.d.ts +0 -2
  175. package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +0 -1
  176. package/dist/components/settings/deployments/index.d.ts +0 -5
  177. package/dist/components/settings/deployments/index.d.ts.map +0 -1
  178. package/dist/components/settings/index.d.ts +0 -6
  179. package/dist/components/settings/index.d.ts.map +0 -1
  180. package/dist/components/table/SortableHeader.d.ts +0 -12
  181. package/dist/components/table/SortableHeader.d.ts.map +0 -1
  182. package/dist/components/table/index.d.ts +0 -4
  183. package/dist/components/table/index.d.ts.map +0 -1
  184. package/dist/features/auth/AdminGuard.d.ts +0 -38
  185. package/dist/features/auth/AdminGuard.d.ts.map +0 -1
  186. package/dist/features/auth/FeatureGuard.d.ts +0 -45
  187. package/dist/features/auth/FeatureGuard.d.ts.map +0 -1
  188. package/dist/features/auth/ProtectedRoute.d.ts +0 -43
  189. package/dist/features/auth/ProtectedRoute.d.ts.map +0 -1
  190. package/dist/features/auth/index.d.ts.map +0 -1
  191. package/dist/features/auth/useUserProfile.d.ts +0 -10
  192. package/dist/features/auth/useUserProfile.d.ts.map +0 -1
  193. package/dist/features/dashboard/Dashboard.d.ts +0 -57
  194. package/dist/features/dashboard/Dashboard.d.ts.map +0 -1
  195. package/dist/features/dashboard/RecentExecutionsByResource.d.ts +0 -11
  196. package/dist/features/dashboard/RecentExecutionsByResource.d.ts.map +0 -1
  197. package/dist/features/dashboard/ResourceOverview.d.ts +0 -21
  198. package/dist/features/dashboard/ResourceOverview.d.ts.map +0 -1
  199. package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts +0 -7
  200. package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts.map +0 -1
  201. package/dist/features/dashboard/index.d.ts.map +0 -1
  202. package/dist/features/monitoring/ActivityFeed.d.ts +0 -37
  203. package/dist/features/monitoring/ActivityFeed.d.ts.map +0 -1
  204. package/dist/features/monitoring/ActivityLog.d.ts +0 -8
  205. package/dist/features/monitoring/ActivityLog.d.ts.map +0 -1
  206. package/dist/features/monitoring/CostAnalytics.d.ts +0 -13
  207. package/dist/features/monitoring/CostAnalytics.d.ts.map +0 -1
  208. package/dist/features/monitoring/ErrorDetailsModal.d.ts +0 -13
  209. package/dist/features/monitoring/ErrorDetailsModal.d.ts.map +0 -1
  210. package/dist/features/monitoring/ExecutionHealth.d.ts +0 -9
  211. package/dist/features/monitoring/ExecutionHealth.d.ts.map +0 -1
  212. package/dist/features/monitoring/ExecutionLogsPage.d.ts +0 -20
  213. package/dist/features/monitoring/ExecutionLogsPage.d.ts.map +0 -1
  214. package/dist/features/monitoring/NotificationCenter.d.ts +0 -5
  215. package/dist/features/monitoring/NotificationCenter.d.ts.map +0 -1
  216. package/dist/features/monitoring/index.d.ts.map +0 -1
  217. package/dist/features/operations/CalibrationPage.d.ts +0 -9
  218. package/dist/features/operations/CalibrationPage.d.ts.map +0 -1
  219. package/dist/features/operations/CalibrationProjectDetailPage.d.ts +0 -43
  220. package/dist/features/operations/CalibrationProjectDetailPage.d.ts.map +0 -1
  221. package/dist/features/operations/CalibrationProjectsPage.d.ts +0 -10
  222. package/dist/features/operations/CalibrationProjectsPage.d.ts.map +0 -1
  223. package/dist/features/operations/CalibrationRunDetailPage.d.ts +0 -35
  224. package/dist/features/operations/CalibrationRunDetailPage.d.ts.map +0 -1
  225. package/dist/features/operations/CommandQueueDetailPage.d.ts +0 -16
  226. package/dist/features/operations/CommandQueueDetailPage.d.ts.map +0 -1
  227. package/dist/features/operations/CommandQueuePage.d.ts +0 -13
  228. package/dist/features/operations/CommandQueuePage.d.ts.map +0 -1
  229. package/dist/features/operations/CommandViewPage.d.ts +0 -6
  230. package/dist/features/operations/CommandViewPage.d.ts.map +0 -1
  231. package/dist/features/operations/CommandViewSidebarContent.d.ts +0 -19
  232. package/dist/features/operations/CommandViewSidebarContent.d.ts.map +0 -1
  233. package/dist/features/operations/ResourceDetailPage.d.ts +0 -25
  234. package/dist/features/operations/ResourceDetailPage.d.ts.map +0 -1
  235. package/dist/features/operations/ResourcesPage.d.ts +0 -15
  236. package/dist/features/operations/ResourcesPage.d.ts.map +0 -1
  237. package/dist/features/operations/ResourcesSidebar.d.ts +0 -9
  238. package/dist/features/operations/ResourcesSidebar.d.ts.map +0 -1
  239. package/dist/features/operations/calibration-components/ComparisonTable.d.ts +0 -9
  240. package/dist/features/operations/calibration-components/ComparisonTable.d.ts.map +0 -1
  241. package/dist/features/operations/executions/AgentExecutionPanel.d.ts +0 -12
  242. package/dist/features/operations/executions/AgentExecutionPanel.d.ts.map +0 -1
  243. package/dist/features/operations/executions/ExecutionPanel.d.ts +0 -13
  244. package/dist/features/operations/executions/ExecutionPanel.d.ts.map +0 -1
  245. package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts +0 -12
  246. package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts.map +0 -1
  247. package/dist/features/operations/executions/index.d.ts +0 -7
  248. package/dist/features/operations/executions/index.d.ts.map +0 -1
  249. package/dist/features/operations/index.d.ts.map +0 -1
  250. package/dist/features/operations/layouts/components/ResourceHeader.d.ts +0 -11
  251. package/dist/features/operations/layouts/components/ResourceHeader.d.ts.map +0 -1
  252. package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts +0 -8
  253. package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts.map +0 -1
  254. package/dist/features/operations/layouts/components/index.d.ts +0 -4
  255. package/dist/features/operations/layouts/components/index.d.ts.map +0 -1
  256. package/dist/features/settings/AccountSettings.d.ts +0 -20
  257. package/dist/features/settings/AccountSettings.d.ts.map +0 -1
  258. package/dist/features/settings/AppearanceSettings.d.ts +0 -23
  259. package/dist/features/settings/AppearanceSettings.d.ts.map +0 -1
  260. package/dist/features/settings/CreateWebhookEndpointModal.d.ts +0 -8
  261. package/dist/features/settings/CreateWebhookEndpointModal.d.ts.map +0 -1
  262. package/dist/features/settings/EditCredentialModal.d.ts +0 -9
  263. package/dist/features/settings/EditCredentialModal.d.ts.map +0 -1
  264. package/dist/features/settings/EditWebhookEndpointModal.d.ts +0 -8
  265. package/dist/features/settings/EditWebhookEndpointModal.d.ts.map +0 -1
  266. package/dist/features/settings/MemberConfigModal.d.ts +0 -14
  267. package/dist/features/settings/MemberConfigModal.d.ts.map +0 -1
  268. package/dist/features/settings/OAuthIntegrationsCard.d.ts +0 -6
  269. package/dist/features/settings/OAuthIntegrationsCard.d.ts.map +0 -1
  270. package/dist/features/settings/OrgMembersList.d.ts +0 -5
  271. package/dist/features/settings/OrgMembersList.d.ts.map +0 -1
  272. package/dist/features/settings/OrganizationSettings.d.ts +0 -30
  273. package/dist/features/settings/OrganizationSettings.d.ts.map +0 -1
  274. package/dist/features/settings/WebhookEndpointList.d.ts +0 -9
  275. package/dist/features/settings/WebhookEndpointList.d.ts.map +0 -1
  276. package/dist/features/settings/WebhookEndpointSettings.d.ts +0 -6
  277. package/dist/features/settings/WebhookEndpointSettings.d.ts.map +0 -1
  278. package/dist/features/settings/index.d.ts.map +0 -1
  279. package/dist/hooks/command-queue/index.d.ts +0 -7
  280. package/dist/hooks/command-queue/index.d.ts.map +0 -1
  281. package/dist/hooks/command-queue/useCommandQueue.d.ts +0 -33
  282. package/dist/hooks/command-queue/useCommandQueue.d.ts.map +0 -1
  283. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +0 -17
  284. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +0 -1
  285. package/dist/hooks/command-queue/useDeleteTask.d.ts +0 -5
  286. package/dist/hooks/command-queue/useDeleteTask.d.ts.map +0 -1
  287. package/dist/hooks/command-queue/usePatchTask.d.ts +0 -6
  288. package/dist/hooks/command-queue/usePatchTask.d.ts.map +0 -1
  289. package/dist/hooks/command-queue/useSubmitAction.d.ts +0 -29
  290. package/dist/hooks/command-queue/useSubmitAction.d.ts.map +0 -1
  291. package/dist/hooks/executions/index.d.ts +0 -17
  292. package/dist/hooks/executions/index.d.ts.map +0 -1
  293. package/dist/hooks/executions/useArchivedLogs.d.ts +0 -14
  294. package/dist/hooks/executions/useArchivedLogs.d.ts.map +0 -1
  295. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +0 -15
  296. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +0 -1
  297. package/dist/hooks/executions/useCancelExecution.d.ts +0 -20
  298. package/dist/hooks/executions/useCancelExecution.d.ts.map +0 -1
  299. package/dist/hooks/executions/useDeleteExecution.d.ts +0 -13
  300. package/dist/hooks/executions/useDeleteExecution.d.ts.map +0 -1
  301. package/dist/hooks/executions/useExecuteAsync.d.ts +0 -21
  302. package/dist/hooks/executions/useExecuteAsync.d.ts.map +0 -1
  303. package/dist/hooks/executions/useExecution.d.ts +0 -10
  304. package/dist/hooks/executions/useExecution.d.ts.map +0 -1
  305. package/dist/hooks/executions/useExecutions.d.ts +0 -16
  306. package/dist/hooks/executions/useExecutions.d.ts.map +0 -1
  307. package/dist/hooks/executions/useResourceDefinition.d.ts +0 -9
  308. package/dist/hooks/executions/useResourceDefinition.d.ts.map +0 -1
  309. package/dist/hooks/executions/useResources.d.ts +0 -15
  310. package/dist/hooks/executions/useResources.d.ts.map +0 -1
  311. package/dist/hooks/executions/useRetryExecution.d.ts +0 -16
  312. package/dist/hooks/executions/useRetryExecution.d.ts.map +0 -1
  313. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +0 -41
  314. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +0 -1
  315. package/dist/hooks/feature-access/index.d.ts +0 -2
  316. package/dist/hooks/feature-access/index.d.ts.map +0 -1
  317. package/dist/hooks/index.d.ts.map +0 -1
  318. package/dist/hooks/monitoring/index.d.ts +0 -11
  319. package/dist/hooks/monitoring/index.d.ts.map +0 -1
  320. package/dist/hooks/monitoring/useActivities.d.ts +0 -52
  321. package/dist/hooks/monitoring/useActivities.d.ts.map +0 -1
  322. package/dist/hooks/monitoring/useCostSummary.d.ts +0 -7
  323. package/dist/hooks/monitoring/useCostSummary.d.ts.map +0 -1
  324. package/dist/hooks/monitoring/useExecutionHealth.d.ts +0 -10
  325. package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +0 -1
  326. package/dist/hooks/monitoring/useExecutionLogs.d.ts +0 -56
  327. package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +0 -1
  328. package/dist/hooks/monitoring/useNotificationCount.d.ts +0 -26
  329. package/dist/hooks/monitoring/useNotificationCount.d.ts.map +0 -1
  330. package/dist/hooks/monitoring/useNotifications.d.ts +0 -11
  331. package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
  332. package/dist/hooks/notifications/index.d.ts +0 -8
  333. package/dist/hooks/notifications/index.d.ts.map +0 -1
  334. package/dist/hooks/notifications/useMarkAllAsRead.d.ts +0 -2
  335. package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +0 -1
  336. package/dist/hooks/notifications/useMarkAsRead.d.ts +0 -2
  337. package/dist/hooks/notifications/useMarkAsRead.d.ts.map +0 -1
  338. package/dist/hooks/notifications/useTestNotification.d.ts +0 -16
  339. package/dist/hooks/notifications/useTestNotification.d.ts.map +0 -1
  340. package/dist/hooks/observability/index.d.ts +0 -25
  341. package/dist/hooks/observability/index.d.ts.map +0 -1
  342. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +0 -15
  343. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +0 -1
  344. package/dist/hooks/observability/useBusinessImpact.d.ts +0 -9
  345. package/dist/hooks/observability/useBusinessImpact.d.ts.map +0 -1
  346. package/dist/hooks/observability/useCostBreakdown.d.ts +0 -10
  347. package/dist/hooks/observability/useCostBreakdown.d.ts.map +0 -1
  348. package/dist/hooks/observability/useCostByModel.d.ts +0 -3
  349. package/dist/hooks/observability/useCostByModel.d.ts.map +0 -1
  350. package/dist/hooks/observability/useCostTrends.d.ts +0 -3
  351. package/dist/hooks/observability/useCostTrends.d.ts.map +0 -1
  352. package/dist/hooks/observability/useDashboardMetrics.d.ts +0 -3
  353. package/dist/hooks/observability/useDashboardMetrics.d.ts.map +0 -1
  354. package/dist/hooks/observability/useErrorAnalysis.d.ts +0 -7
  355. package/dist/hooks/observability/useErrorAnalysis.d.ts.map +0 -1
  356. package/dist/hooks/observability/useErrorDetails.d.ts +0 -20
  357. package/dist/hooks/observability/useErrorDetails.d.ts.map +0 -1
  358. package/dist/hooks/observability/useErrorDistribution.d.ts +0 -12
  359. package/dist/hooks/observability/useErrorDistribution.d.ts.map +0 -1
  360. package/dist/hooks/observability/useErrorTrends.d.ts +0 -12
  361. package/dist/hooks/observability/useErrorTrends.d.ts.map +0 -1
  362. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +0 -18
  363. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +0 -1
  364. package/dist/hooks/observability/useResolveError.d.ts +0 -17
  365. package/dist/hooks/observability/useResolveError.d.ts.map +0 -1
  366. package/dist/hooks/observability/useResourcesHealth.d.ts +0 -13
  367. package/dist/hooks/observability/useResourcesHealth.d.ts.map +0 -1
  368. package/dist/hooks/observability/useTopFailingResources.d.ts +0 -13
  369. package/dist/hooks/observability/useTopFailingResources.d.ts.map +0 -1
  370. package/dist/hooks/observability/useUnresolvedErrors.d.ts +0 -15
  371. package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +0 -1
  372. package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts +0 -24
  373. package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts.map +0 -1
  374. package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts +0 -3
  375. package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts.map +0 -1
  376. package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts +0 -35
  377. package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts.map +0 -1
  378. package/dist/hooks/operations/command-view/index.d.ts +0 -8
  379. package/dist/hooks/operations/command-view/index.d.ts.map +0 -1
  380. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +0 -24
  381. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +0 -1
  382. package/dist/hooks/operations/command-view/useCommandViewData.d.ts +0 -11
  383. package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +0 -1
  384. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +0 -12
  385. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +0 -1
  386. package/dist/hooks/operations/command-view/useResourceErrors.d.ts +0 -22
  387. package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +0 -1
  388. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +0 -22
  389. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +0 -1
  390. package/dist/hooks/operations/index.d.ts +0 -4
  391. package/dist/hooks/operations/index.d.ts.map +0 -1
  392. package/dist/hooks/operations/knowledge-base/index.d.ts +0 -3
  393. package/dist/hooks/operations/knowledge-base/index.d.ts.map +0 -1
  394. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +0 -27
  395. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +0 -1
  396. package/dist/hooks/operations/settings/index.d.ts +0 -4
  397. package/dist/hooks/operations/settings/index.d.ts.map +0 -1
  398. package/dist/hooks/operations/settings/useOAuthFlow.d.ts +0 -17
  399. package/dist/hooks/operations/settings/useOAuthFlow.d.ts.map +0 -1
  400. package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts +0 -17
  401. package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts.map +0 -1
  402. package/dist/hooks/operations/shared/index.d.ts +0 -6
  403. package/dist/hooks/operations/shared/index.d.ts.map +0 -1
  404. package/dist/hooks/operations/shared/queryKeys.d.ts +0 -23
  405. package/dist/hooks/operations/shared/queryKeys.d.ts.map +0 -1
  406. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +0 -11
  407. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +0 -1
  408. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +0 -46
  409. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +0 -1
  410. package/dist/hooks/published.d.ts.map +0 -1
  411. package/dist/hooks/scheduling/index.d.ts +0 -7
  412. package/dist/hooks/scheduling/index.d.ts.map +0 -1
  413. package/dist/hooks/scheduling/useScheduledTasks.d.ts +0 -19
  414. package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +0 -1
  415. package/dist/hooks/scheduling/useSchedules.d.ts +0 -185
  416. package/dist/hooks/scheduling/useSchedules.d.ts.map +0 -1
  417. package/dist/hooks/sessions/index.d.ts +0 -8
  418. package/dist/hooks/sessions/index.d.ts.map +0 -1
  419. package/dist/hooks/sessions/useSessionExecutions.d.ts +0 -13
  420. package/dist/hooks/sessions/useSessionExecutions.d.ts.map +0 -1
  421. package/dist/hooks/sessions/useSessionMessages.d.ts +0 -7
  422. package/dist/hooks/sessions/useSessionMessages.d.ts.map +0 -1
  423. package/dist/hooks/sessions/useSessions.d.ts +0 -26
  424. package/dist/hooks/sessions/useSessions.d.ts.map +0 -1
  425. package/dist/hooks/settings/api-keys/index.d.ts +0 -7
  426. package/dist/hooks/settings/api-keys/index.d.ts.map +0 -1
  427. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +0 -3
  428. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +0 -1
  429. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +0 -2
  430. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +0 -1
  431. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +0 -2
  432. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +0 -1
  433. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +0 -5
  434. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +0 -1
  435. package/dist/hooks/settings/credentials/index.d.ts +0 -7
  436. package/dist/hooks/settings/credentials/index.d.ts.map +0 -1
  437. package/dist/hooks/settings/credentials/useCreateCredential.d.ts +0 -3
  438. package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +0 -1
  439. package/dist/hooks/settings/credentials/useCredentials.d.ts +0 -8
  440. package/dist/hooks/settings/credentials/useCredentials.d.ts.map +0 -1
  441. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +0 -2
  442. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +0 -1
  443. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +0 -10
  444. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +0 -1
  445. package/dist/hooks/settings/deployments/index.d.ts +0 -5
  446. package/dist/hooks/settings/deployments/index.d.ts.map +0 -1
  447. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +0 -4
  448. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +0 -1
  449. package/dist/hooks/settings/deployments/useListDeployments.d.ts +0 -2
  450. package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +0 -1
  451. package/dist/hooks/settings/index.d.ts +0 -6
  452. package/dist/hooks/settings/index.d.ts.map +0 -1
  453. package/dist/hooks/settings/organization/index.d.ts +0 -6
  454. package/dist/hooks/settings/organization/index.d.ts.map +0 -1
  455. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +0 -11
  456. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +0 -1
  457. package/dist/hooks/settings/organization/useReactivateMembership.d.ts +0 -11
  458. package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +0 -1
  459. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +0 -8
  460. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +0 -1
  461. package/dist/hooks/settings/organization/useUserMemberships.d.ts +0 -3
  462. package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +0 -1
  463. package/dist/hooks/settings/webhooks/index.d.ts +0 -7
  464. package/dist/hooks/settings/webhooks/index.d.ts.map +0 -1
  465. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +0 -18
  466. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +0 -1
  467. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +0 -2
  468. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +0 -1
  469. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +0 -14
  470. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +0 -1
  471. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +0 -18
  472. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +0 -1
  473. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +0 -27
  474. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +0 -1
  475. package/dist/hooks/useOrganizationMembers.d.ts +0 -18
  476. package/dist/hooks/useOrganizationMembers.d.ts.map +0 -1
  477. package/dist/index.d.ts.map +0 -1
  478. package/dist/initialization/InitializationProvider.d.ts +0 -48
  479. package/dist/initialization/InitializationProvider.d.ts.map +0 -1
  480. package/dist/initialization/hooks/useAppInitialization.d.ts +0 -32
  481. package/dist/initialization/hooks/useAppInitialization.d.ts.map +0 -1
  482. package/dist/initialization/index.d.ts.map +0 -1
  483. package/dist/organization/context/OrganizationProvider.d.ts +0 -24
  484. package/dist/organization/context/OrganizationProvider.d.ts.map +0 -1
  485. package/dist/organization/hooks/useOrgInitialization.d.ts +0 -56
  486. package/dist/organization/hooks/useOrgInitialization.d.ts.map +0 -1
  487. package/dist/organization/index.d.ts.map +0 -1
  488. package/dist/profile/context/ProfileProvider.d.ts +0 -31
  489. package/dist/profile/context/ProfileProvider.d.ts.map +0 -1
  490. package/dist/profile/hooks/useUserProfile.d.ts +0 -38
  491. package/dist/profile/hooks/useUserProfile.d.ts.map +0 -1
  492. package/dist/profile/index.d.ts.map +0 -1
  493. package/dist/provider/CoreAuthKitInner.d.ts +0 -12
  494. package/dist/provider/CoreAuthKitInner.d.ts.map +0 -1
  495. package/dist/provider/ElevasisCoreProvider.d.ts +0 -25
  496. package/dist/provider/ElevasisCoreProvider.d.ts.map +0 -1
  497. package/dist/provider/ElevasisServiceContext.d.ts +0 -31
  498. package/dist/provider/ElevasisServiceContext.d.ts.map +0 -1
  499. package/dist/provider/ElevasisUIProvider.d.ts +0 -28
  500. package/dist/provider/ElevasisUIProvider.d.ts.map +0 -1
  501. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +0 -2
  502. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +0 -1
  503. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +0 -2
  504. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +0 -1
  505. package/dist/provider/index.d.ts.map +0 -1
  506. package/dist/provider/published.d.ts.map +0 -1
  507. package/dist/provider/types.d.ts +0 -151
  508. package/dist/provider/types.d.ts.map +0 -1
  509. package/dist/sdk-barrel.d.ts +0 -20
  510. package/dist/sdk-barrel.d.ts.map +0 -1
  511. package/dist/theme/PresetsContext.d.ts +0 -4
  512. package/dist/theme/PresetsContext.d.ts.map +0 -1
  513. package/dist/theme/cssVariables.d.ts +0 -12
  514. package/dist/theme/cssVariables.d.ts.map +0 -1
  515. package/dist/theme/index.d.ts.map +0 -1
  516. package/dist/theme/presets/abyss.d.ts +0 -3
  517. package/dist/theme/presets/abyss.d.ts.map +0 -1
  518. package/dist/theme/presets/aurora.d.ts +0 -12
  519. package/dist/theme/presets/aurora.d.ts.map +0 -1
  520. package/dist/theme/presets/canopy.d.ts +0 -12
  521. package/dist/theme/presets/canopy.d.ts.map +0 -1
  522. package/dist/theme/presets/canyon.d.ts +0 -11
  523. package/dist/theme/presets/canyon.d.ts.map +0 -1
  524. package/dist/theme/presets/cortex.d.ts +0 -3
  525. package/dist/theme/presets/cortex.d.ts.map +0 -1
  526. package/dist/theme/presets/cyber-punk.d.ts +0 -11
  527. package/dist/theme/presets/cyber-punk.d.ts.map +0 -1
  528. package/dist/theme/presets/cyber-strike.d.ts +0 -13
  529. package/dist/theme/presets/cyber-strike.d.ts.map +0 -1
  530. package/dist/theme/presets/cyber-void.d.ts +0 -12
  531. package/dist/theme/presets/cyber-void.d.ts.map +0 -1
  532. package/dist/theme/presets/default.d.ts +0 -4
  533. package/dist/theme/presets/default.d.ts.map +0 -1
  534. package/dist/theme/presets/ember.d.ts +0 -12
  535. package/dist/theme/presets/ember.d.ts.map +0 -1
  536. package/dist/theme/presets/helios.d.ts +0 -3
  537. package/dist/theme/presets/helios.d.ts.map +0 -1
  538. package/dist/theme/presets/honey.d.ts +0 -12
  539. package/dist/theme/presets/honey.d.ts.map +0 -1
  540. package/dist/theme/presets/index.d.ts +0 -8
  541. package/dist/theme/presets/index.d.ts.map +0 -1
  542. package/dist/theme/presets/midnight.d.ts +0 -12
  543. package/dist/theme/presets/midnight.d.ts.map +0 -1
  544. package/dist/theme/presets/nirvana.d.ts +0 -16
  545. package/dist/theme/presets/nirvana.d.ts.map +0 -1
  546. package/dist/theme/presets/obsidian.d.ts +0 -3
  547. package/dist/theme/presets/obsidian.d.ts.map +0 -1
  548. package/dist/theme/presets/slate.d.ts +0 -3
  549. package/dist/theme/presets/slate.d.ts.map +0 -1
  550. package/dist/theme/presets/synapse.d.ts +0 -10
  551. package/dist/theme/presets/synapse.d.ts.map +0 -1
  552. package/dist/theme/presets/tactical.d.ts +0 -8
  553. package/dist/theme/presets/tactical.d.ts.map +0 -1
  554. package/dist/theme/presets/types.d.ts +0 -43
  555. package/dist/theme/presets/types.d.ts.map +0 -1
  556. package/dist/theme/presets/verdant.d.ts +0 -3
  557. package/dist/theme/presets/verdant.d.ts.map +0 -1
  558. package/dist/theme/presets/wave.d.ts +0 -14
  559. package/dist/theme/presets/wave.d.ts.map +0 -1
  560. package/dist/theme/useAvailablePresets.d.ts +0 -16
  561. package/dist/theme/useAvailablePresets.d.ts.map +0 -1
@@ -1,18 +1,2480 @@
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
+ type ApiRequestFn$1 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
2388
+ interface ProfileContextValue {
2389
+ profile: SupabaseUserProfile | null;
2390
+ loading: boolean;
2391
+ error: Error | null;
2392
+ refetch: () => Promise<void>;
2393
+ }
1
2394
  /**
2
- * Profile module - User profile management
2395
+ * Consumes the nearest ProfileProvider.
3
2396
  *
4
- * Exports:
5
- * - ProfileProvider: Context provider that shares one profile state instance
6
- * - useProfile: Hook for consuming ProfileProvider context
7
- * - ProfileContextValue: Value type exposed by ProfileProvider
8
- * - useUserProfile: Hook for user profile sync and access (standalone)
9
- * - UseUserProfileReturn: Return type for useUserProfile hook
10
- * - UserProfileService: Service for profile operations
2397
+ * @throws {Error} If called outside of a ProfileProvider tree.
11
2398
  */
12
- export type { SupabaseUserProfile } from '@repo/core';
13
- export { ProfileProvider, useProfile } from './context/ProfileProvider';
14
- export type { ProfileContextValue } from './context/ProfileProvider';
15
- export { useUserProfile } from './hooks/useUserProfile';
16
- export type { UseUserProfileReturn } from './hooks/useUserProfile';
17
- export { UserProfileService } from './services/UserProfileService';
18
- //# sourceMappingURL=index.d.ts.map
2399
+ declare function useProfile(): ProfileContextValue;
2400
+ /**
2401
+ * Provides shared profile state to its subtree via React Context.
2402
+ *
2403
+ * Wraps useUserProfile so that all consumers share one profile fetch
2404
+ * instead of each triggering an independent sync call.
2405
+ *
2406
+ * Must be rendered inside the auth provider layer so that the underlying
2407
+ * hook can access useAuthContext. Receives apiRequest as a prop so it
2408
+ * can mount before ElevasisServiceProvider.
2409
+ */
2410
+ declare function ProfileProvider({ apiRequest, children }: {
2411
+ apiRequest: ApiRequestFn$1;
2412
+ children: ReactNode;
2413
+ }): react.FunctionComponentElement<react.ProviderProps<ProfileContextValue | null>>;
2414
+
2415
+ type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
2416
+ interface UseUserProfileOptions {
2417
+ /**
2418
+ * Optional error handler for profile sync failures
2419
+ * If not provided, errors are logged to console
2420
+ */
2421
+ onError?: (context: {
2422
+ phase: 'profile-sync';
2423
+ userId?: string;
2424
+ }, error: Error) => void;
2425
+ /**
2426
+ * Pre-built apiRequest function. When provided, used directly instead of
2427
+ * reading from ElevasisServiceContext. Required when calling from ProfileProvider
2428
+ * (which mounts before ElevasisServiceProvider).
2429
+ */
2430
+ apiRequest?: ApiRequestFn;
2431
+ }
2432
+ interface UseUserProfileReturn {
2433
+ profile: SupabaseUserProfile | null;
2434
+ loading: boolean;
2435
+ error: Error | null;
2436
+ refetch: () => Promise<void>;
2437
+ }
2438
+ /**
2439
+ * Hook for managing user profile data with automatic WorkOS -> Supabase sync
2440
+ *
2441
+ * This hook:
2442
+ * 1. Automatically syncs WorkOS user data to Supabase on authentication
2443
+ * 2. Provides access to the user's Supabase profile data
2444
+ * 3. Handles loading states and errors
2445
+ * 4. Includes a refetch function for manual updates
2446
+ *
2447
+ * @param options - Optional configuration including error handler and apiRequest
2448
+ */
2449
+ declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
2450
+
2451
+ declare class UserProfileService {
2452
+ private apiRequest;
2453
+ constructor(apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>);
2454
+ /**
2455
+ * Sync WorkOS user data to Supabase users table
2456
+ * This creates or updates the user profile with latest WorkOS data
2457
+ */
2458
+ syncUserProfile(): Promise<SupabaseUserProfile | null>;
2459
+ /**
2460
+ * Get user profile from API
2461
+ * Server identifies user from JWT (no user ID needed)
2462
+ */
2463
+ getUserProfile(): Promise<SupabaseUserProfile | null>;
2464
+ /**
2465
+ * Update last visited organization for the user
2466
+ * @param organizationId - The Supabase organization ID
2467
+ */
2468
+ updateLastVisitedOrg(organizationId: string): Promise<void>;
2469
+ /**
2470
+ * Update user profile data
2471
+ */
2472
+ updateUserProfile(updates: Partial<{
2473
+ firstName: string;
2474
+ lastName: string;
2475
+ profilePictureUrl: string;
2476
+ }>): Promise<SupabaseUserProfile | null>;
2477
+ }
2478
+
2479
+ export { ProfileProvider, UserProfileService, useProfile, useUserProfile };
2480
+ export type { ProfileContextValue, SupabaseUserProfile, UseUserProfileReturn };