@elevasis/ui 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (709) hide show
  1. package/dist/api/index.d.ts +91 -11
  2. package/dist/api/index.js +2 -2
  3. package/dist/auth/index.d.ts +174 -14
  4. package/dist/charts/index.js +2 -2
  5. package/dist/{chunk-TRVSTJTK.js → chunk-2Z7LYTIX.js} +3 -3
  6. package/dist/chunk-35UWYH2A.js +41 -0
  7. package/dist/{chunk-ZGK6XZVY.js → chunk-BVNAC4SQ.js} +1 -1
  8. package/dist/{chunk-RULQSZYX.js → chunk-JNBHUCKW.js} +1 -1
  9. package/dist/{chunk-7S5FS7WW.js → chunk-LBY7FVFD.js} +1 -1
  10. package/dist/{chunk-FCFLBMVI.js → chunk-MBZDE6UT.js} +121 -1
  11. package/dist/{chunk-IVHJRJFK.js → chunk-OCF63OXD.js} +3 -3
  12. package/dist/{chunk-UUXXUPOC.js → chunk-RYSPAQGW.js} +2 -2
  13. package/dist/{chunk-53GNREDV.js → chunk-UANJP5P7.js} +2 -2
  14. package/dist/{chunk-4AKGF454.js → chunk-UEYUPTAD.js} +6 -6
  15. package/dist/{chunk-XGVD76EL.js → chunk-UTWJZEOJ.js} +3 -3
  16. package/dist/{chunk-QCEUL5QG.js → chunk-WAPZN2U3.js} +1 -32
  17. package/dist/components/index.d.ts +5674 -19
  18. package/dist/components/index.js +14 -14
  19. package/dist/execution/index.d.ts +936 -5
  20. package/dist/features/operations/index.d.ts +98 -3
  21. package/dist/features/operations/index.js +299 -14
  22. package/dist/graph/index.d.ts +226 -9
  23. package/dist/hooks/index.d.ts +6593 -22
  24. package/dist/hooks/index.js +7 -7
  25. package/dist/hooks/published.d.ts +6037 -21
  26. package/dist/hooks/published.js +6 -6
  27. package/dist/index.d.ts +8494 -15
  28. package/dist/index.js +8 -8
  29. package/dist/initialization/index.d.ts +2526 -23
  30. package/dist/layout/index.d.ts +3 -3
  31. package/dist/layout/index.js +2 -2
  32. package/dist/organization/index.d.ts +274 -23
  33. package/dist/profile/index.d.ts +2477 -15
  34. package/dist/provider/index.d.ts +334 -11
  35. package/dist/provider/index.js +5 -5
  36. package/dist/provider/published.d.ts +309 -11
  37. package/dist/provider/published.js +3 -3
  38. package/dist/supabase/index.d.ts +4634 -2
  39. package/dist/theme/index.d.ts +148 -10
  40. package/dist/theme/index.js +2 -2
  41. package/dist/types/index.d.ts +7145 -42
  42. package/dist/utils/index.d.ts +265 -8
  43. package/dist/utils/index.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/api/hooks/__tests__/useApiClient.test.d.ts +0 -11
  46. package/dist/api/hooks/__tests__/useApiClient.test.d.ts.map +0 -1
  47. package/dist/api/hooks/useApiClient.d.ts +0 -28
  48. package/dist/api/hooks/useApiClient.d.ts.map +0 -1
  49. package/dist/api/index.d.ts.map +0 -1
  50. package/dist/auth/guards/AdminGuard.d.ts +0 -32
  51. package/dist/auth/guards/AdminGuard.d.ts.map +0 -1
  52. package/dist/auth/guards/ProtectedRoute.d.ts +0 -60
  53. package/dist/auth/guards/ProtectedRoute.d.ts.map +0 -1
  54. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +0 -12
  55. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +0 -1
  56. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +0 -14
  57. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +0 -1
  58. package/dist/auth/index.d.ts.map +0 -1
  59. package/dist/chunk-ADSSLKKP.js +0 -10
  60. package/dist/components/charts/ActivityTrendChart.d.ts +0 -13
  61. package/dist/components/charts/ActivityTrendChart.d.ts.map +0 -1
  62. package/dist/components/charts/CombinedTrendChart.d.ts +0 -22
  63. package/dist/components/charts/CombinedTrendChart.d.ts.map +0 -1
  64. package/dist/components/charts/CostTrendChart.d.ts +0 -13
  65. package/dist/components/charts/CostTrendChart.d.ts.map +0 -1
  66. package/dist/components/charts/HeroStatsRow.d.ts +0 -15
  67. package/dist/components/charts/HeroStatsRow.d.ts.map +0 -1
  68. package/dist/components/charts/index.d.ts +0 -9
  69. package/dist/components/charts/index.d.ts.map +0 -1
  70. package/dist/components/command-queue/ActionModal.d.ts +0 -19
  71. package/dist/components/command-queue/ActionModal.d.ts.map +0 -1
  72. package/dist/components/command-queue/TaskCard.d.ts +0 -18
  73. package/dist/components/command-queue/TaskCard.d.ts.map +0 -1
  74. package/dist/components/command-queue/index.d.ts +0 -5
  75. package/dist/components/command-queue/index.d.ts.map +0 -1
  76. package/dist/components/display/APIErrorAlert.d.ts +0 -56
  77. package/dist/components/display/APIErrorAlert.d.ts.map +0 -1
  78. package/dist/components/display/PageNotFound.d.ts +0 -2
  79. package/dist/components/display/PageNotFound.d.ts.map +0 -1
  80. package/dist/components/display/ResourceCard.d.ts +0 -22
  81. package/dist/components/display/ResourceCard.d.ts.map +0 -1
  82. package/dist/components/display/ResourceCardAdapters.d.ts +0 -24
  83. package/dist/components/display/ResourceCardAdapters.d.ts.map +0 -1
  84. package/dist/components/display/TimeRangeSelector.d.ts +0 -9
  85. package/dist/components/display/TimeRangeSelector.d.ts.map +0 -1
  86. package/dist/components/display/index.d.ts +0 -26
  87. package/dist/components/display/index.d.ts.map +0 -1
  88. package/dist/components/execution/AgentExecutionTimeline.d.ts +0 -14
  89. package/dist/components/execution/AgentExecutionTimeline.d.ts.map +0 -1
  90. package/dist/components/execution/AgentExecutionVisualizer.d.ts +0 -13
  91. package/dist/components/execution/AgentExecutionVisualizer.d.ts.map +0 -1
  92. package/dist/components/execution/AgentIterationEdge.d.ts +0 -8
  93. package/dist/components/execution/AgentIterationEdge.d.ts.map +0 -1
  94. package/dist/components/execution/AgentIterationNode.d.ts +0 -8
  95. package/dist/components/execution/AgentIterationNode.d.ts.map +0 -1
  96. package/dist/components/execution/ExecutionStats.d.ts +0 -16
  97. package/dist/components/execution/ExecutionStats.d.ts.map +0 -1
  98. package/dist/components/execution/ExecutionStatusBadge.d.ts +0 -33
  99. package/dist/components/execution/ExecutionStatusBadge.d.ts.map +0 -1
  100. package/dist/components/execution/TimelineAxis.d.ts +0 -12
  101. package/dist/components/execution/TimelineAxis.d.ts.map +0 -1
  102. package/dist/components/execution/TimelineBar.d.ts +0 -9
  103. package/dist/components/execution/TimelineBar.d.ts.map +0 -1
  104. package/dist/components/execution/TimelineContainer.d.ts +0 -9
  105. package/dist/components/execution/TimelineContainer.d.ts.map +0 -1
  106. package/dist/components/execution/TimelineRow.d.ts +0 -9
  107. package/dist/components/execution/TimelineRow.d.ts.map +0 -1
  108. package/dist/components/execution/UnifiedWorkflowEdge.d.ts +0 -9
  109. package/dist/components/execution/UnifiedWorkflowEdge.d.ts.map +0 -1
  110. package/dist/components/execution/UnifiedWorkflowGraph.d.ts +0 -21
  111. package/dist/components/execution/UnifiedWorkflowGraph.d.ts.map +0 -1
  112. package/dist/components/execution/UnifiedWorkflowNode.d.ts +0 -9
  113. package/dist/components/execution/UnifiedWorkflowNode.d.ts.map +0 -1
  114. package/dist/components/execution/WorkflowExecutionTimeline.d.ts +0 -14
  115. package/dist/components/execution/WorkflowExecutionTimeline.d.ts.map +0 -1
  116. package/dist/components/execution/index.d.ts +0 -18
  117. package/dist/components/execution/index.d.ts.map +0 -1
  118. package/dist/components/forms/FormFieldRenderer.d.ts +0 -15
  119. package/dist/components/forms/FormFieldRenderer.d.ts.map +0 -1
  120. package/dist/components/forms/index.d.ts +0 -2
  121. package/dist/components/forms/index.d.ts.map +0 -1
  122. package/dist/components/graph/BaseNode.d.ts +0 -29
  123. package/dist/components/graph/BaseNode.d.ts.map +0 -1
  124. package/dist/components/graph/index.d.ts +0 -12
  125. package/dist/components/graph/index.d.ts.map +0 -1
  126. package/dist/components/graph/useGraphTheme.d.ts +0 -9
  127. package/dist/components/graph/useGraphTheme.d.ts.map +0 -1
  128. package/dist/components/index.d.ts.map +0 -1
  129. package/dist/components/layout/backgrounds/CyberBackground.d.ts +0 -26
  130. package/dist/components/layout/backgrounds/CyberBackground.d.ts.map +0 -1
  131. package/dist/components/layout/backgrounds/CyberParticles.d.ts +0 -30
  132. package/dist/components/layout/backgrounds/CyberParticles.d.ts.map +0 -1
  133. package/dist/components/layout/backgrounds/CyberParticles.js +0 -182
  134. package/dist/components/layout/backgrounds/index.d.ts +0 -10
  135. package/dist/components/layout/backgrounds/index.d.ts.map +0 -1
  136. package/dist/components/layout/index.d.ts +0 -7
  137. package/dist/components/layout/index.d.ts.map +0 -1
  138. package/dist/components/monitoring/ActivityCard.d.ts +0 -7
  139. package/dist/components/monitoring/ActivityCard.d.ts.map +0 -1
  140. package/dist/components/monitoring/ActivityFilters.d.ts +0 -8
  141. package/dist/components/monitoring/ActivityFilters.d.ts.map +0 -1
  142. package/dist/components/monitoring/ActivityTable.d.ts +0 -8
  143. package/dist/components/monitoring/ActivityTable.d.ts.map +0 -1
  144. package/dist/components/monitoring/BusinessImpactCard.d.ts +0 -18
  145. package/dist/components/monitoring/BusinessImpactCard.d.ts.map +0 -1
  146. package/dist/components/monitoring/CostBreakdownCard.d.ts +0 -17
  147. package/dist/components/monitoring/CostBreakdownCard.d.ts.map +0 -1
  148. package/dist/components/monitoring/CostByModelTable.d.ts +0 -12
  149. package/dist/components/monitoring/CostByModelTable.d.ts.map +0 -1
  150. package/dist/components/monitoring/CostMetricsCard.d.ts +0 -17
  151. package/dist/components/monitoring/CostMetricsCard.d.ts.map +0 -1
  152. package/dist/components/monitoring/ErrorAnalysisCard.d.ts +0 -12
  153. package/dist/components/monitoring/ErrorAnalysisCard.d.ts.map +0 -1
  154. package/dist/components/monitoring/ErrorBreakdownTable.d.ts +0 -12
  155. package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +0 -1
  156. package/dist/components/monitoring/ExecutionBreakdownTable.d.ts +0 -8
  157. package/dist/components/monitoring/ExecutionBreakdownTable.d.ts.map +0 -1
  158. package/dist/components/monitoring/ExecutionHealthCard.d.ts +0 -8
  159. package/dist/components/monitoring/ExecutionHealthCard.d.ts.map +0 -1
  160. package/dist/components/monitoring/ExecutionLogsFilters.d.ts +0 -8
  161. package/dist/components/monitoring/ExecutionLogsFilters.d.ts.map +0 -1
  162. package/dist/components/monitoring/ExecutionLogsTable.d.ts +0 -30
  163. package/dist/components/monitoring/ExecutionLogsTable.d.ts.map +0 -1
  164. package/dist/components/monitoring/ResourceHealthChart.d.ts +0 -17
  165. package/dist/components/monitoring/ResourceHealthChart.d.ts.map +0 -1
  166. package/dist/components/monitoring/ResourceHealthPanel.d.ts +0 -8
  167. package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +0 -1
  168. package/dist/components/monitoring/index.d.ts +0 -16
  169. package/dist/components/monitoring/index.d.ts.map +0 -1
  170. package/dist/components/notifications/NotificationBell.d.ts +0 -9
  171. package/dist/components/notifications/NotificationBell.d.ts.map +0 -1
  172. package/dist/components/notifications/NotificationItem.d.ts +0 -9
  173. package/dist/components/notifications/NotificationItem.d.ts.map +0 -1
  174. package/dist/components/notifications/NotificationList.d.ts +0 -10
  175. package/dist/components/notifications/NotificationList.d.ts.map +0 -1
  176. package/dist/components/notifications/NotificationPanel.d.ts +0 -10
  177. package/dist/components/notifications/NotificationPanel.d.ts.map +0 -1
  178. package/dist/components/notifications/index.d.ts +0 -5
  179. package/dist/components/notifications/index.d.ts.map +0 -1
  180. package/dist/components/notify.d.ts +0 -21
  181. package/dist/components/notify.d.ts.map +0 -1
  182. package/dist/components/operations/command-queue/CommandQueueTaskRow.d.ts +0 -9
  183. package/dist/components/operations/command-queue/CommandQueueTaskRow.d.ts.map +0 -1
  184. package/dist/components/operations/command-queue/index.d.ts +0 -3
  185. package/dist/components/operations/command-queue/index.d.ts.map +0 -1
  186. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +0 -17
  187. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +0 -1
  188. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +0 -17
  189. package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +0 -1
  190. package/dist/components/operations/command-queue/sidebar/index.d.ts +0 -5
  191. package/dist/components/operations/command-queue/sidebar/index.d.ts.map +0 -1
  192. package/dist/components/operations/command-view/CommandViewGraph.d.ts +0 -22
  193. package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +0 -1
  194. package/dist/components/operations/command-view/edges/CommandViewEdge.d.ts +0 -23
  195. package/dist/components/operations/command-view/edges/CommandViewEdge.d.ts.map +0 -1
  196. package/dist/components/operations/command-view/edges/index.d.ts +0 -2
  197. package/dist/components/operations/command-view/edges/index.d.ts.map +0 -1
  198. package/dist/components/operations/command-view/index.d.ts +0 -4
  199. package/dist/components/operations/command-view/index.d.ts.map +0 -1
  200. package/dist/components/operations/command-view/nodes/CommandViewNode.d.ts +0 -12
  201. package/dist/components/operations/command-view/nodes/CommandViewNode.d.ts.map +0 -1
  202. package/dist/components/operations/command-view/nodes/index.d.ts +0 -2
  203. package/dist/components/operations/command-view/nodes/index.d.ts.map +0 -1
  204. package/dist/components/operations/executions/AgentExecutionLogs.d.ts +0 -13
  205. package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +0 -1
  206. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +0 -13
  207. package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +0 -1
  208. package/dist/components/operations/executions/index.d.ts +0 -4
  209. package/dist/components/operations/executions/index.d.ts.map +0 -1
  210. package/dist/components/operations/executions/logConstants.d.ts +0 -72
  211. package/dist/components/operations/executions/logConstants.d.ts.map +0 -1
  212. package/dist/components/operations/index.d.ts +0 -8
  213. package/dist/components/operations/index.d.ts.map +0 -1
  214. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +0 -14
  215. package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +0 -1
  216. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +0 -16
  217. package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +0 -1
  218. package/dist/components/operations/knowledge-base/index.d.ts +0 -3
  219. package/dist/components/operations/knowledge-base/index.d.ts.map +0 -1
  220. package/dist/components/operations/sessions/SessionMemory.d.ts +0 -11
  221. package/dist/components/operations/sessions/SessionMemory.d.ts.map +0 -1
  222. package/dist/components/operations/sessions/index.d.ts +0 -3
  223. package/dist/components/operations/sessions/index.d.ts.map +0 -1
  224. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +0 -16
  225. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +0 -1
  226. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +0 -12
  227. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +0 -1
  228. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsStates.d.ts +0 -9
  229. package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsStates.d.ts.map +0 -1
  230. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +0 -12
  231. package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +0 -1
  232. package/dist/components/operations/shared/BaseExecutionLogs/LogEntry.d.ts +0 -2
  233. package/dist/components/operations/shared/BaseExecutionLogs/LogEntry.d.ts.map +0 -1
  234. package/dist/components/operations/shared/BaseExecutionLogs/LogGroup.d.ts +0 -16
  235. package/dist/components/operations/shared/BaseExecutionLogs/LogGroup.d.ts.map +0 -1
  236. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +0 -7
  237. package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +0 -1
  238. package/dist/components/operations/shared/LogEntry.d.ts +0 -8
  239. package/dist/components/operations/shared/LogEntry.d.ts.map +0 -1
  240. package/dist/components/operations/shared/index.d.ts +0 -5
  241. package/dist/components/operations/shared/index.d.ts.map +0 -1
  242. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +0 -11
  243. package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +0 -1
  244. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +0 -8
  245. package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +0 -1
  246. package/dist/components/operations/shared/layouts/index.d.ts +0 -4
  247. package/dist/components/operations/shared/layouts/index.d.ts.map +0 -1
  248. package/dist/components/operations/task-scheduler/AbsoluteScheduleForm.d.ts +0 -9
  249. package/dist/components/operations/task-scheduler/AbsoluteScheduleForm.d.ts.map +0 -1
  250. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +0 -7
  251. package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +0 -1
  252. package/dist/components/operations/task-scheduler/DeleteScheduleModal.d.ts +0 -11
  253. package/dist/components/operations/task-scheduler/DeleteScheduleModal.d.ts.map +0 -1
  254. package/dist/components/operations/task-scheduler/RecurringScheduleForm.d.ts +0 -9
  255. package/dist/components/operations/task-scheduler/RecurringScheduleForm.d.ts.map +0 -1
  256. package/dist/components/operations/task-scheduler/RelativeScheduleForm.d.ts +0 -9
  257. package/dist/components/operations/task-scheduler/RelativeScheduleForm.d.ts.map +0 -1
  258. package/dist/components/operations/task-scheduler/ScheduleCard.d.ts +0 -15
  259. package/dist/components/operations/task-scheduler/ScheduleCard.d.ts.map +0 -1
  260. package/dist/components/operations/task-scheduler/ScheduleDetailModal.d.ts +0 -11
  261. package/dist/components/operations/task-scheduler/ScheduleDetailModal.d.ts.map +0 -1
  262. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +0 -2
  263. package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +0 -1
  264. package/dist/components/operations/task-scheduler/index.d.ts +0 -11
  265. package/dist/components/operations/task-scheduler/index.d.ts.map +0 -1
  266. package/dist/components/resource-definition/AgentDefinitionDisplay.d.ts +0 -8
  267. package/dist/components/resource-definition/AgentDefinitionDisplay.d.ts.map +0 -1
  268. package/dist/components/resource-definition/NewKnowledgeMapEdge.d.ts +0 -6
  269. package/dist/components/resource-definition/NewKnowledgeMapEdge.d.ts.map +0 -1
  270. package/dist/components/resource-definition/NewKnowledgeMapGraph.d.ts +0 -11
  271. package/dist/components/resource-definition/NewKnowledgeMapGraph.d.ts.map +0 -1
  272. package/dist/components/resource-definition/NewKnowledgeMapNode.d.ts +0 -6
  273. package/dist/components/resource-definition/NewKnowledgeMapNode.d.ts.map +0 -1
  274. package/dist/components/resource-definition/ResourceDefinitionSection.d.ts +0 -8
  275. package/dist/components/resource-definition/ResourceDefinitionSection.d.ts.map +0 -1
  276. package/dist/components/resource-definition/WorkflowDefinitionDisplay.d.ts +0 -8
  277. package/dist/components/resource-definition/WorkflowDefinitionDisplay.d.ts.map +0 -1
  278. package/dist/components/resource-definition/index.d.ts +0 -13
  279. package/dist/components/resource-definition/index.d.ts.map +0 -1
  280. package/dist/components/sdk-barrel.d.ts +0 -23
  281. package/dist/components/sdk-barrel.d.ts.map +0 -1
  282. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +0 -9
  283. package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +0 -1
  284. package/dist/components/settings/api-keys/ApiKeyList.d.ts +0 -8
  285. package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +0 -1
  286. package/dist/components/settings/api-keys/ApiKeySettings.d.ts +0 -2
  287. package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +0 -1
  288. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +0 -9
  289. package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +0 -1
  290. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +0 -8
  291. package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +0 -1
  292. package/dist/components/settings/api-keys/index.d.ts +0 -6
  293. package/dist/components/settings/api-keys/index.d.ts.map +0 -1
  294. package/dist/components/settings/credentials/CreateCredentialModal.d.ts +0 -9
  295. package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +0 -1
  296. package/dist/components/settings/credentials/CredentialList.d.ts +0 -10
  297. package/dist/components/settings/credentials/CredentialList.d.ts.map +0 -1
  298. package/dist/components/settings/credentials/CredentialSettings.d.ts +0 -7
  299. package/dist/components/settings/credentials/CredentialSettings.d.ts.map +0 -1
  300. package/dist/components/settings/credentials/OAuthConnectModal.d.ts +0 -12
  301. package/dist/components/settings/credentials/OAuthConnectModal.d.ts.map +0 -1
  302. package/dist/components/settings/credentials/index.d.ts +0 -5
  303. package/dist/components/settings/credentials/index.d.ts.map +0 -1
  304. package/dist/components/settings/deployments/DeploymentDetailModal.d.ts +0 -9
  305. package/dist/components/settings/deployments/DeploymentDetailModal.d.ts.map +0 -1
  306. package/dist/components/settings/deployments/DeploymentList.d.ts +0 -8
  307. package/dist/components/settings/deployments/DeploymentList.d.ts.map +0 -1
  308. package/dist/components/settings/deployments/DeploymentSettings.d.ts +0 -2
  309. package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +0 -1
  310. package/dist/components/settings/deployments/DeploymentStatusBadge.d.ts +0 -7
  311. package/dist/components/settings/deployments/DeploymentStatusBadge.d.ts.map +0 -1
  312. package/dist/components/settings/deployments/index.d.ts +0 -5
  313. package/dist/components/settings/deployments/index.d.ts.map +0 -1
  314. package/dist/components/settings/index.d.ts +0 -6
  315. package/dist/components/settings/index.d.ts.map +0 -1
  316. package/dist/components/settings/organization/MembershipFeaturePanel.d.ts +0 -9
  317. package/dist/components/settings/organization/MembershipFeaturePanel.d.ts.map +0 -1
  318. package/dist/components/settings/organization/MembershipStatusBadge.d.ts +0 -9
  319. package/dist/components/settings/organization/MembershipStatusBadge.d.ts.map +0 -1
  320. package/dist/components/settings/organization/OrganizationMembershipsList.d.ts +0 -11
  321. package/dist/components/settings/organization/OrganizationMembershipsList.d.ts.map +0 -1
  322. package/dist/components/settings/organization/index.d.ts +0 -4
  323. package/dist/components/settings/organization/index.d.ts.map +0 -1
  324. package/dist/components/table/SortableHeader.d.ts +0 -12
  325. package/dist/components/table/SortableHeader.d.ts.map +0 -1
  326. package/dist/components/table/index.d.ts +0 -4
  327. package/dist/components/table/index.d.ts.map +0 -1
  328. package/dist/execution/hooks/index.d.ts +0 -8
  329. package/dist/execution/hooks/index.d.ts.map +0 -1
  330. package/dist/execution/hooks/useAgentIterationData.d.ts +0 -3
  331. package/dist/execution/hooks/useAgentIterationData.d.ts.map +0 -1
  332. package/dist/execution/hooks/useExecutionPath.d.ts +0 -29
  333. package/dist/execution/hooks/useExecutionPath.d.ts.map +0 -1
  334. package/dist/execution/hooks/useMergedExecution.d.ts +0 -11
  335. package/dist/execution/hooks/useMergedExecution.d.ts.map +0 -1
  336. package/dist/execution/hooks/useReactFlowAgent.d.ts +0 -12
  337. package/dist/execution/hooks/useReactFlowAgent.d.ts.map +0 -1
  338. package/dist/execution/hooks/useTimelineData.d.ts +0 -6
  339. package/dist/execution/hooks/useTimelineData.d.ts.map +0 -1
  340. package/dist/execution/hooks/useUnifiedWorkflowLayout.d.ts +0 -19
  341. package/dist/execution/hooks/useUnifiedWorkflowLayout.d.ts.map +0 -1
  342. package/dist/execution/hooks/useWorkflowStepsLayout.d.ts +0 -49
  343. package/dist/execution/hooks/useWorkflowStepsLayout.d.ts.map +0 -1
  344. package/dist/execution/index.d.ts.map +0 -1
  345. package/dist/execution/types.d.ts +0 -129
  346. package/dist/execution/types.d.ts.map +0 -1
  347. package/dist/execution/utils/edgeUtils.d.ts +0 -22
  348. package/dist/execution/utils/edgeUtils.d.ts.map +0 -1
  349. package/dist/execution/utils/getResourceStatusColor.d.ts +0 -8
  350. package/dist/execution/utils/getResourceStatusColor.d.ts.map +0 -1
  351. package/dist/execution/utils/getStatusIcon.d.ts +0 -19
  352. package/dist/execution/utils/getStatusIcon.d.ts.map +0 -1
  353. package/dist/execution/utils/index.d.ts +0 -7
  354. package/dist/execution/utils/index.d.ts.map +0 -1
  355. package/dist/execution/utils/statusColors.d.ts +0 -20
  356. package/dist/execution/utils/statusColors.d.ts.map +0 -1
  357. package/dist/features/operations/ResourcesPage.d.ts +0 -15
  358. package/dist/features/operations/ResourcesPage.d.ts.map +0 -1
  359. package/dist/features/operations/index.d.ts.map +0 -1
  360. package/dist/graph/hooks/index.d.ts +0 -9
  361. package/dist/graph/hooks/index.d.ts.map +0 -1
  362. package/dist/graph/index.d.ts.map +0 -1
  363. package/dist/graph/types.d.ts +0 -28
  364. package/dist/graph/types.d.ts.map +0 -1
  365. package/dist/hooks/command-queue/index.d.ts +0 -7
  366. package/dist/hooks/command-queue/index.d.ts.map +0 -1
  367. package/dist/hooks/command-queue/useCommandQueue.d.ts +0 -33
  368. package/dist/hooks/command-queue/useCommandQueue.d.ts.map +0 -1
  369. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +0 -17
  370. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +0 -1
  371. package/dist/hooks/command-queue/useDeleteTask.d.ts +0 -5
  372. package/dist/hooks/command-queue/useDeleteTask.d.ts.map +0 -1
  373. package/dist/hooks/command-queue/usePatchTask.d.ts +0 -6
  374. package/dist/hooks/command-queue/usePatchTask.d.ts.map +0 -1
  375. package/dist/hooks/command-queue/useSubmitAction.d.ts +0 -29
  376. package/dist/hooks/command-queue/useSubmitAction.d.ts.map +0 -1
  377. package/dist/hooks/executions/index.d.ts +0 -17
  378. package/dist/hooks/executions/index.d.ts.map +0 -1
  379. package/dist/hooks/executions/useArchivedLogs.d.ts +0 -14
  380. package/dist/hooks/executions/useArchivedLogs.d.ts.map +0 -1
  381. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +0 -15
  382. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +0 -1
  383. package/dist/hooks/executions/useCancelExecution.d.ts +0 -20
  384. package/dist/hooks/executions/useCancelExecution.d.ts.map +0 -1
  385. package/dist/hooks/executions/useDeleteExecution.d.ts +0 -13
  386. package/dist/hooks/executions/useDeleteExecution.d.ts.map +0 -1
  387. package/dist/hooks/executions/useExecuteAsync.d.ts +0 -21
  388. package/dist/hooks/executions/useExecuteAsync.d.ts.map +0 -1
  389. package/dist/hooks/executions/useExecution.d.ts +0 -10
  390. package/dist/hooks/executions/useExecution.d.ts.map +0 -1
  391. package/dist/hooks/executions/useExecutions.d.ts +0 -16
  392. package/dist/hooks/executions/useExecutions.d.ts.map +0 -1
  393. package/dist/hooks/executions/useResourceDefinition.d.ts +0 -9
  394. package/dist/hooks/executions/useResourceDefinition.d.ts.map +0 -1
  395. package/dist/hooks/executions/useResources.d.ts +0 -15
  396. package/dist/hooks/executions/useResources.d.ts.map +0 -1
  397. package/dist/hooks/executions/useRetryExecution.d.ts +0 -16
  398. package/dist/hooks/executions/useRetryExecution.d.ts.map +0 -1
  399. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +0 -41
  400. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +0 -1
  401. package/dist/hooks/feature-access/index.d.ts +0 -2
  402. package/dist/hooks/feature-access/index.d.ts.map +0 -1
  403. package/dist/hooks/index.d.ts.map +0 -1
  404. package/dist/hooks/monitoring/index.d.ts +0 -9
  405. package/dist/hooks/monitoring/index.d.ts.map +0 -1
  406. package/dist/hooks/monitoring/useActivities.d.ts +0 -52
  407. package/dist/hooks/monitoring/useActivities.d.ts.map +0 -1
  408. package/dist/hooks/monitoring/useCostSummary.d.ts +0 -7
  409. package/dist/hooks/monitoring/useCostSummary.d.ts.map +0 -1
  410. package/dist/hooks/monitoring/useExecutionHealth.d.ts +0 -10
  411. package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +0 -1
  412. package/dist/hooks/monitoring/useExecutionLogs.d.ts +0 -56
  413. package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +0 -1
  414. package/dist/hooks/monitoring/useNotifications.d.ts +0 -11
  415. package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
  416. package/dist/hooks/notifications/index.d.ts +0 -9
  417. package/dist/hooks/notifications/index.d.ts.map +0 -1
  418. package/dist/hooks/notifications/useBatchDelete.d.ts +0 -8
  419. package/dist/hooks/notifications/useBatchDelete.d.ts.map +0 -1
  420. package/dist/hooks/notifications/useErrorNotification.d.ts +0 -17
  421. package/dist/hooks/notifications/useErrorNotification.d.ts.map +0 -1
  422. package/dist/hooks/notifications/useMarkAllAsRead.d.ts +0 -2
  423. package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +0 -1
  424. package/dist/hooks/notifications/useMarkAsRead.d.ts +0 -2
  425. package/dist/hooks/notifications/useMarkAsRead.d.ts.map +0 -1
  426. package/dist/hooks/notifications/useNotificationCount.d.ts +0 -8
  427. package/dist/hooks/notifications/useNotificationCount.d.ts.map +0 -1
  428. package/dist/hooks/notifications/useSuccessNotification.d.ts +0 -6
  429. package/dist/hooks/notifications/useSuccessNotification.d.ts.map +0 -1
  430. package/dist/hooks/notifications/useTestNotification.d.ts +0 -16
  431. package/dist/hooks/notifications/useTestNotification.d.ts.map +0 -1
  432. package/dist/hooks/notifications/useWarningNotification.d.ts +0 -6
  433. package/dist/hooks/notifications/useWarningNotification.d.ts.map +0 -1
  434. package/dist/hooks/observability/index.d.ts +0 -25
  435. package/dist/hooks/observability/index.d.ts.map +0 -1
  436. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +0 -15
  437. package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +0 -1
  438. package/dist/hooks/observability/useBusinessImpact.d.ts +0 -9
  439. package/dist/hooks/observability/useBusinessImpact.d.ts.map +0 -1
  440. package/dist/hooks/observability/useCostBreakdown.d.ts +0 -10
  441. package/dist/hooks/observability/useCostBreakdown.d.ts.map +0 -1
  442. package/dist/hooks/observability/useCostByModel.d.ts +0 -3
  443. package/dist/hooks/observability/useCostByModel.d.ts.map +0 -1
  444. package/dist/hooks/observability/useCostTrends.d.ts +0 -3
  445. package/dist/hooks/observability/useCostTrends.d.ts.map +0 -1
  446. package/dist/hooks/observability/useDashboardMetrics.d.ts +0 -3
  447. package/dist/hooks/observability/useDashboardMetrics.d.ts.map +0 -1
  448. package/dist/hooks/observability/useErrorAnalysis.d.ts +0 -7
  449. package/dist/hooks/observability/useErrorAnalysis.d.ts.map +0 -1
  450. package/dist/hooks/observability/useErrorDetails.d.ts +0 -20
  451. package/dist/hooks/observability/useErrorDetails.d.ts.map +0 -1
  452. package/dist/hooks/observability/useErrorDistribution.d.ts +0 -12
  453. package/dist/hooks/observability/useErrorDistribution.d.ts.map +0 -1
  454. package/dist/hooks/observability/useErrorTrends.d.ts +0 -12
  455. package/dist/hooks/observability/useErrorTrends.d.ts.map +0 -1
  456. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +0 -18
  457. package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +0 -1
  458. package/dist/hooks/observability/useResolveError.d.ts +0 -17
  459. package/dist/hooks/observability/useResolveError.d.ts.map +0 -1
  460. package/dist/hooks/observability/useResourcesHealth.d.ts +0 -13
  461. package/dist/hooks/observability/useResourcesHealth.d.ts.map +0 -1
  462. package/dist/hooks/observability/useTopFailingResources.d.ts +0 -13
  463. package/dist/hooks/observability/useTopFailingResources.d.ts.map +0 -1
  464. package/dist/hooks/observability/useUnresolvedErrors.d.ts +0 -15
  465. package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +0 -1
  466. package/dist/hooks/operations/command-view/index.d.ts +0 -8
  467. package/dist/hooks/operations/command-view/index.d.ts.map +0 -1
  468. package/dist/hooks/operations/command-view/types.d.ts +0 -123
  469. package/dist/hooks/operations/command-view/types.d.ts.map +0 -1
  470. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +0 -24
  471. package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +0 -1
  472. package/dist/hooks/operations/command-view/useCommandViewData.d.ts +0 -11
  473. package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +0 -1
  474. package/dist/hooks/operations/command-view/useCommandViewLayout.d.ts +0 -44
  475. package/dist/hooks/operations/command-view/useCommandViewLayout.d.ts.map +0 -1
  476. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +0 -12
  477. package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +0 -1
  478. package/dist/hooks/operations/command-view/useCommandViewStore.d.ts +0 -39
  479. package/dist/hooks/operations/command-view/useCommandViewStore.d.ts.map +0 -1
  480. package/dist/hooks/operations/command-view/useResourceErrors.d.ts +0 -22
  481. package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +0 -1
  482. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +0 -22
  483. package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +0 -1
  484. package/dist/hooks/operations/command-view/utils/filterCommandViewData.d.ts +0 -30
  485. package/dist/hooks/operations/command-view/utils/filterCommandViewData.d.ts.map +0 -1
  486. package/dist/hooks/operations/command-view/utils/index.d.ts +0 -6
  487. package/dist/hooks/operations/command-view/utils/index.d.ts.map +0 -1
  488. package/dist/hooks/operations/command-view/utils/mergeStatsWithTopology.d.ts +0 -19
  489. package/dist/hooks/operations/command-view/utils/mergeStatsWithTopology.d.ts.map +0 -1
  490. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -15
  491. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts.map +0 -1
  492. package/dist/hooks/operations/index.d.ts +0 -4
  493. package/dist/hooks/operations/index.d.ts.map +0 -1
  494. package/dist/hooks/operations/knowledge-base/index.d.ts +0 -3
  495. package/dist/hooks/operations/knowledge-base/index.d.ts.map +0 -1
  496. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +0 -27
  497. package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +0 -1
  498. package/dist/hooks/operations/shared/index.d.ts +0 -6
  499. package/dist/hooks/operations/shared/index.d.ts.map +0 -1
  500. package/dist/hooks/operations/shared/queryKeys.d.ts +0 -23
  501. package/dist/hooks/operations/shared/queryKeys.d.ts.map +0 -1
  502. package/dist/hooks/operations/shared/resourceDefinitionUtils.d.ts +0 -10
  503. package/dist/hooks/operations/shared/resourceDefinitionUtils.d.ts.map +0 -1
  504. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +0 -11
  505. package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +0 -1
  506. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +0 -46
  507. package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +0 -1
  508. package/dist/hooks/published.d.ts.map +0 -1
  509. package/dist/hooks/scheduling/index.d.ts +0 -7
  510. package/dist/hooks/scheduling/index.d.ts.map +0 -1
  511. package/dist/hooks/scheduling/useScheduledTasks.d.ts +0 -19
  512. package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +0 -1
  513. package/dist/hooks/scheduling/useSchedules.d.ts +0 -185
  514. package/dist/hooks/scheduling/useSchedules.d.ts.map +0 -1
  515. package/dist/hooks/services/OperationsService.d.ts +0 -73
  516. package/dist/hooks/services/OperationsService.d.ts.map +0 -1
  517. package/dist/hooks/services/index.d.ts +0 -2
  518. package/dist/hooks/services/index.d.ts.map +0 -1
  519. package/dist/hooks/sessions/index.d.ts +0 -8
  520. package/dist/hooks/sessions/index.d.ts.map +0 -1
  521. package/dist/hooks/sessions/types.d.ts +0 -33
  522. package/dist/hooks/sessions/types.d.ts.map +0 -1
  523. package/dist/hooks/sessions/useSessionExecutions.d.ts +0 -13
  524. package/dist/hooks/sessions/useSessionExecutions.d.ts.map +0 -1
  525. package/dist/hooks/sessions/useSessionMessages.d.ts +0 -7
  526. package/dist/hooks/sessions/useSessionMessages.d.ts.map +0 -1
  527. package/dist/hooks/sessions/useSessionWebSocket.d.ts +0 -19
  528. package/dist/hooks/sessions/useSessionWebSocket.d.ts.map +0 -1
  529. package/dist/hooks/sessions/useSessions.d.ts +0 -26
  530. package/dist/hooks/sessions/useSessions.d.ts.map +0 -1
  531. package/dist/hooks/settings/api-keys/apiKeyService.d.ts +0 -37
  532. package/dist/hooks/settings/api-keys/apiKeyService.d.ts.map +0 -1
  533. package/dist/hooks/settings/api-keys/index.d.ts +0 -7
  534. package/dist/hooks/settings/api-keys/index.d.ts.map +0 -1
  535. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +0 -3
  536. package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +0 -1
  537. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +0 -2
  538. package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +0 -1
  539. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +0 -2
  540. package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +0 -1
  541. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +0 -5
  542. package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +0 -1
  543. package/dist/hooks/settings/credentials/index.d.ts +0 -7
  544. package/dist/hooks/settings/credentials/index.d.ts.map +0 -1
  545. package/dist/hooks/settings/credentials/useCreateCredential.d.ts +0 -3
  546. package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +0 -1
  547. package/dist/hooks/settings/credentials/useCredentials.d.ts +0 -8
  548. package/dist/hooks/settings/credentials/useCredentials.d.ts.map +0 -1
  549. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +0 -2
  550. package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +0 -1
  551. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +0 -10
  552. package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +0 -1
  553. package/dist/hooks/settings/deployments/deploymentService.d.ts +0 -13
  554. package/dist/hooks/settings/deployments/deploymentService.d.ts.map +0 -1
  555. package/dist/hooks/settings/deployments/index.d.ts +0 -5
  556. package/dist/hooks/settings/deployments/index.d.ts.map +0 -1
  557. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +0 -4
  558. package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +0 -1
  559. package/dist/hooks/settings/deployments/useListDeployments.d.ts +0 -2
  560. package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +0 -1
  561. package/dist/hooks/settings/index.d.ts +0 -6
  562. package/dist/hooks/settings/index.d.ts.map +0 -1
  563. package/dist/hooks/settings/organization/index.d.ts +0 -6
  564. package/dist/hooks/settings/organization/index.d.ts.map +0 -1
  565. package/dist/hooks/settings/organization/organizationMembershipService.d.ts +0 -44
  566. package/dist/hooks/settings/organization/organizationMembershipService.d.ts.map +0 -1
  567. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +0 -11
  568. package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +0 -1
  569. package/dist/hooks/settings/organization/useReactivateMembership.d.ts +0 -11
  570. package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +0 -1
  571. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +0 -8
  572. package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +0 -1
  573. package/dist/hooks/settings/organization/useUserMemberships.d.ts +0 -3
  574. package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +0 -1
  575. package/dist/hooks/settings/webhooks/index.d.ts +0 -7
  576. package/dist/hooks/settings/webhooks/index.d.ts.map +0 -1
  577. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +0 -18
  578. package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +0 -1
  579. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +0 -2
  580. package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +0 -1
  581. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +0 -14
  582. package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +0 -1
  583. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +0 -18
  584. package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +0 -1
  585. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +0 -27
  586. package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +0 -1
  587. package/dist/hooks/useActivityFilters.d.ts +0 -18
  588. package/dist/hooks/useActivityFilters.d.ts.map +0 -1
  589. package/dist/hooks/useDomainFilters.d.ts +0 -36
  590. package/dist/hooks/useDomainFilters.d.ts.map +0 -1
  591. package/dist/hooks/useExecutionLogsFilters.d.ts +0 -28
  592. package/dist/hooks/useExecutionLogsFilters.d.ts.map +0 -1
  593. package/dist/hooks/useOrganizationMembers.d.ts +0 -18
  594. package/dist/hooks/useOrganizationMembers.d.ts.map +0 -1
  595. package/dist/hooks/useTimeRangeDates.d.ts +0 -10
  596. package/dist/hooks/useTimeRangeDates.d.ts.map +0 -1
  597. package/dist/index.d.ts.map +0 -1
  598. package/dist/initialization/InitializationProvider.d.ts +0 -48
  599. package/dist/initialization/InitializationProvider.d.ts.map +0 -1
  600. package/dist/initialization/hooks/useAppInitialization.d.ts +0 -32
  601. package/dist/initialization/hooks/useAppInitialization.d.ts.map +0 -1
  602. package/dist/initialization/index.d.ts.map +0 -1
  603. package/dist/organization/components/OrganizationSwitcher.d.ts +0 -11
  604. package/dist/organization/components/OrganizationSwitcher.d.ts.map +0 -1
  605. package/dist/organization/context/OrganizationContext.d.ts +0 -41
  606. package/dist/organization/context/OrganizationContext.d.ts.map +0 -1
  607. package/dist/organization/context/OrganizationProvider.d.ts +0 -24
  608. package/dist/organization/context/OrganizationProvider.d.ts.map +0 -1
  609. package/dist/organization/hooks/useOrgInitialization.d.ts +0 -56
  610. package/dist/organization/hooks/useOrgInitialization.d.ts.map +0 -1
  611. package/dist/organization/hooks/useOrganizations.d.ts +0 -31
  612. package/dist/organization/hooks/useOrganizations.d.ts.map +0 -1
  613. package/dist/organization/index.d.ts.map +0 -1
  614. package/dist/organization/store/organizationsSlice.d.ts +0 -40
  615. package/dist/organization/store/organizationsSlice.d.ts.map +0 -1
  616. package/dist/organization/store/types.d.ts +0 -20
  617. package/dist/organization/store/types.d.ts.map +0 -1
  618. package/dist/profile/context/ProfileProvider.d.ts +0 -31
  619. package/dist/profile/context/ProfileProvider.d.ts.map +0 -1
  620. package/dist/profile/hooks/useUserProfile.d.ts +0 -38
  621. package/dist/profile/hooks/useUserProfile.d.ts.map +0 -1
  622. package/dist/profile/index.d.ts.map +0 -1
  623. package/dist/profile/services/UserProfileService.d.ts +0 -29
  624. package/dist/profile/services/UserProfileService.d.ts.map +0 -1
  625. package/dist/provider/CoreAuthKitInner.d.ts +0 -12
  626. package/dist/provider/CoreAuthKitInner.d.ts.map +0 -1
  627. package/dist/provider/ElevasisCoreProvider.d.ts +0 -25
  628. package/dist/provider/ElevasisCoreProvider.d.ts.map +0 -1
  629. package/dist/provider/ElevasisServiceContext.d.ts +0 -31
  630. package/dist/provider/ElevasisServiceContext.d.ts.map +0 -1
  631. package/dist/provider/ElevasisUIProvider.d.ts +0 -28
  632. package/dist/provider/ElevasisUIProvider.d.ts.map +0 -1
  633. package/dist/provider/NotificationContext.d.ts +0 -49
  634. package/dist/provider/NotificationContext.d.ts.map +0 -1
  635. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +0 -2
  636. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +0 -1
  637. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +0 -2
  638. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +0 -1
  639. package/dist/provider/index.d.ts.map +0 -1
  640. package/dist/provider/published.d.ts.map +0 -1
  641. package/dist/provider/types.d.ts +0 -151
  642. package/dist/provider/types.d.ts.map +0 -1
  643. package/dist/sdk-barrel.d.ts +0 -20
  644. package/dist/sdk-barrel.d.ts.map +0 -1
  645. package/dist/supabase/client.d.ts +0 -2265
  646. package/dist/supabase/client.d.ts.map +0 -1
  647. package/dist/supabase/index.d.ts.map +0 -1
  648. package/dist/theme/PresetsContext.d.ts +0 -4
  649. package/dist/theme/PresetsContext.d.ts.map +0 -1
  650. package/dist/theme/cssVariables.d.ts +0 -12
  651. package/dist/theme/cssVariables.d.ts.map +0 -1
  652. package/dist/theme/index.d.ts.map +0 -1
  653. package/dist/theme/presets/__tests__/getPreset.test.d.ts +0 -2
  654. package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +0 -1
  655. package/dist/theme/presets/__tests__/getPreset.test.js +0 -88
  656. package/dist/theme/presets/abyss.d.ts +0 -3
  657. package/dist/theme/presets/abyss.d.ts.map +0 -1
  658. package/dist/theme/presets/aurora.d.ts +0 -8
  659. package/dist/theme/presets/aurora.d.ts.map +0 -1
  660. package/dist/theme/presets/canopy.d.ts +0 -12
  661. package/dist/theme/presets/canopy.d.ts.map +0 -1
  662. package/dist/theme/presets/cyber-punk.d.ts +0 -11
  663. package/dist/theme/presets/cyber-punk.d.ts.map +0 -1
  664. package/dist/theme/presets/cyber-punk.js +0 -78
  665. package/dist/theme/presets/cyber-strike.d.ts +0 -13
  666. package/dist/theme/presets/cyber-strike.d.ts.map +0 -1
  667. package/dist/theme/presets/cyber-void.d.ts +0 -12
  668. package/dist/theme/presets/cyber-void.d.ts.map +0 -1
  669. package/dist/theme/presets/cyber-volt.d.ts +0 -12
  670. package/dist/theme/presets/cyber-volt.d.ts.map +0 -1
  671. package/dist/theme/presets/default.d.ts +0 -4
  672. package/dist/theme/presets/default.d.ts.map +0 -1
  673. package/dist/theme/presets/ember.d.ts +0 -8
  674. package/dist/theme/presets/ember.d.ts.map +0 -1
  675. package/dist/theme/presets/honey.d.ts +0 -12
  676. package/dist/theme/presets/honey.d.ts.map +0 -1
  677. package/dist/theme/presets/index.d.ts +0 -8
  678. package/dist/theme/presets/index.d.ts.map +0 -1
  679. package/dist/theme/presets/index.js +0 -136
  680. package/dist/theme/presets/midnight.d.ts +0 -8
  681. package/dist/theme/presets/midnight.d.ts.map +0 -1
  682. package/dist/theme/presets/nirvana.d.ts +0 -16
  683. package/dist/theme/presets/nirvana.d.ts.map +0 -1
  684. package/dist/theme/presets/obsidian.d.ts +0 -3
  685. package/dist/theme/presets/obsidian.d.ts.map +0 -1
  686. package/dist/theme/presets/regal.d.ts +0 -8
  687. package/dist/theme/presets/regal.d.ts.map +0 -1
  688. package/dist/theme/presets/rose-gold.d.ts +0 -8
  689. package/dist/theme/presets/rose-gold.d.ts.map +0 -1
  690. package/dist/theme/presets/slate.d.ts +0 -3
  691. package/dist/theme/presets/slate.d.ts.map +0 -1
  692. package/dist/theme/presets/tactical.d.ts +0 -8
  693. package/dist/theme/presets/tactical.d.ts.map +0 -1
  694. package/dist/theme/presets/types.d.ts +0 -43
  695. package/dist/theme/presets/types.d.ts.map +0 -1
  696. package/dist/theme/presets/types.js +0 -3
  697. package/dist/theme/presets/wave.d.ts +0 -14
  698. package/dist/theme/presets/wave.d.ts.map +0 -1
  699. package/dist/theme/useAvailablePresets.d.ts +0 -16
  700. package/dist/theme/useAvailablePresets.d.ts.map +0 -1
  701. package/dist/theme/useAvailablePresets.js +0 -36
  702. package/dist/types/index.d.ts.map +0 -1
  703. package/dist/utils/error-utils.d.ts +0 -38
  704. package/dist/utils/error-utils.d.ts.map +0 -1
  705. package/dist/utils/index.d.ts.map +0 -1
  706. package/dist/utils/resource-icons.d.ts +0 -18
  707. package/dist/utils/resource-icons.d.ts.map +0 -1
  708. package/dist/utils/setup-test-utils.d.ts +0 -2
  709. package/dist/utils/setup-test-utils.d.ts.map +0 -1
@@ -1,2 +1,4634 @@
1
- export * from './client';
2
- //# sourceMappingURL=index.d.ts.map
1
+ import { SupabaseClient } from '@supabase/supabase-js';
2
+
3
+ type Json = string | number | boolean | null | {
4
+ [key: string]: Json | undefined;
5
+ } | Json[];
6
+ type Database = {
7
+ __InternalSupabase: {
8
+ PostgrestVersion: "12.2.3 (519615d)";
9
+ };
10
+ public: {
11
+ Tables: {
12
+ acq_companies: {
13
+ Row: {
14
+ attio_company_id: string | null;
15
+ batch_id: string | null;
16
+ category: string | null;
17
+ category_pain: string | null;
18
+ created_at: string;
19
+ domain: string | null;
20
+ enrichment_data: Json | null;
21
+ filter_reason: string | null;
22
+ founded_year: number | null;
23
+ id: string;
24
+ linkedin_url: string | null;
25
+ location_city: string | null;
26
+ location_state: string | null;
27
+ name: string;
28
+ num_employees: number | null;
29
+ organization_id: string;
30
+ pipeline_status: Json;
31
+ segment: string | null;
32
+ source: string | null;
33
+ status: string;
34
+ updated_at: string;
35
+ website: string | null;
36
+ };
37
+ Insert: {
38
+ attio_company_id?: string | null;
39
+ batch_id?: string | null;
40
+ category?: string | null;
41
+ category_pain?: string | null;
42
+ created_at?: string;
43
+ domain?: string | null;
44
+ enrichment_data?: Json | null;
45
+ filter_reason?: string | null;
46
+ founded_year?: number | null;
47
+ id?: string;
48
+ linkedin_url?: string | null;
49
+ location_city?: string | null;
50
+ location_state?: string | null;
51
+ name: string;
52
+ num_employees?: number | null;
53
+ organization_id: string;
54
+ pipeline_status?: Json;
55
+ segment?: string | null;
56
+ source?: string | null;
57
+ status?: string;
58
+ updated_at?: string;
59
+ website?: string | null;
60
+ };
61
+ Update: {
62
+ attio_company_id?: string | null;
63
+ batch_id?: string | null;
64
+ category?: string | null;
65
+ category_pain?: string | null;
66
+ created_at?: string;
67
+ domain?: string | null;
68
+ enrichment_data?: Json | null;
69
+ filter_reason?: string | null;
70
+ founded_year?: number | null;
71
+ id?: string;
72
+ linkedin_url?: string | null;
73
+ location_city?: string | null;
74
+ location_state?: string | null;
75
+ name?: string;
76
+ num_employees?: number | null;
77
+ organization_id?: string;
78
+ pipeline_status?: Json;
79
+ segment?: string | null;
80
+ source?: string | null;
81
+ status?: string;
82
+ updated_at?: string;
83
+ website?: string | null;
84
+ };
85
+ Relationships: [
86
+ {
87
+ foreignKeyName: "acq_companies_organization_id_fkey";
88
+ columns: ["organization_id"];
89
+ isOneToOne: false;
90
+ referencedRelation: "organizations";
91
+ referencedColumns: ["id"];
92
+ }
93
+ ];
94
+ };
95
+ acq_contacts: {
96
+ Row: {
97
+ attio_person_id: string | null;
98
+ batch_id: string | null;
99
+ brochure_first_viewed_at: string | null;
100
+ brochure_view_count: number;
101
+ company_id: string | null;
102
+ created_at: string;
103
+ email: string;
104
+ email_valid: string | null;
105
+ enrichment_data: Json;
106
+ filter_reason: string | null;
107
+ first_name: string | null;
108
+ headline: string | null;
109
+ id: string;
110
+ last_name: string | null;
111
+ linkedin_url: string | null;
112
+ nurture: boolean;
113
+ opening_line: string | null;
114
+ organization_id: string;
115
+ pipeline_status: Json;
116
+ source: string | null;
117
+ source_id: string | null;
118
+ status: string;
119
+ title: string | null;
120
+ updated_at: string;
121
+ };
122
+ Insert: {
123
+ attio_person_id?: string | null;
124
+ batch_id?: string | null;
125
+ brochure_first_viewed_at?: string | null;
126
+ brochure_view_count?: number;
127
+ company_id?: string | null;
128
+ created_at?: string;
129
+ email: string;
130
+ email_valid?: string | null;
131
+ enrichment_data?: Json;
132
+ filter_reason?: string | null;
133
+ first_name?: string | null;
134
+ headline?: string | null;
135
+ id?: string;
136
+ last_name?: string | null;
137
+ linkedin_url?: string | null;
138
+ nurture?: boolean;
139
+ opening_line?: string | null;
140
+ organization_id: string;
141
+ pipeline_status?: Json;
142
+ source?: string | null;
143
+ source_id?: string | null;
144
+ status?: string;
145
+ title?: string | null;
146
+ updated_at?: string;
147
+ };
148
+ Update: {
149
+ attio_person_id?: string | null;
150
+ batch_id?: string | null;
151
+ brochure_first_viewed_at?: string | null;
152
+ brochure_view_count?: number;
153
+ company_id?: string | null;
154
+ created_at?: string;
155
+ email?: string;
156
+ email_valid?: string | null;
157
+ enrichment_data?: Json;
158
+ filter_reason?: string | null;
159
+ first_name?: string | null;
160
+ headline?: string | null;
161
+ id?: string;
162
+ last_name?: string | null;
163
+ linkedin_url?: string | null;
164
+ nurture?: boolean;
165
+ opening_line?: string | null;
166
+ organization_id?: string;
167
+ pipeline_status?: Json;
168
+ source?: string | null;
169
+ source_id?: string | null;
170
+ status?: string;
171
+ title?: string | null;
172
+ updated_at?: string;
173
+ };
174
+ Relationships: [
175
+ {
176
+ foreignKeyName: "acq_contacts_company_id_fkey";
177
+ columns: ["company_id"];
178
+ isOneToOne: false;
179
+ referencedRelation: "acq_companies";
180
+ referencedColumns: ["id"];
181
+ },
182
+ {
183
+ foreignKeyName: "acq_contacts_organization_id_fkey";
184
+ columns: ["organization_id"];
185
+ isOneToOne: false;
186
+ referencedRelation: "organizations";
187
+ referencedColumns: ["id"];
188
+ }
189
+ ];
190
+ };
191
+ acq_content: {
192
+ Row: {
193
+ body: string | null;
194
+ created_at: string;
195
+ id: string;
196
+ organization_id: string;
197
+ pillar: string;
198
+ status: string;
199
+ title: string;
200
+ updated_at: string;
201
+ };
202
+ Insert: {
203
+ body?: string | null;
204
+ created_at?: string;
205
+ id?: string;
206
+ organization_id: string;
207
+ pillar: string;
208
+ status?: string;
209
+ title: string;
210
+ updated_at?: string;
211
+ };
212
+ Update: {
213
+ body?: string | null;
214
+ created_at?: string;
215
+ id?: string;
216
+ organization_id?: string;
217
+ pillar?: string;
218
+ status?: string;
219
+ title?: string;
220
+ updated_at?: string;
221
+ };
222
+ Relationships: [
223
+ {
224
+ foreignKeyName: "acq_content_organization_id_fkey";
225
+ columns: ["organization_id"];
226
+ isOneToOne: false;
227
+ referencedRelation: "organizations";
228
+ referencedColumns: ["id"];
229
+ }
230
+ ];
231
+ };
232
+ acq_content_distributions: {
233
+ Row: {
234
+ adapted_body: string | null;
235
+ checklist: Json | null;
236
+ content_id: string;
237
+ created_at: string;
238
+ format: string;
239
+ id: string;
240
+ media_urls: Json;
241
+ metrics: Json;
242
+ metrics_updated_at: string | null;
243
+ organization_id: string;
244
+ platform: string;
245
+ platform_content: Json | null;
246
+ platform_post_id: string | null;
247
+ platform_url: string | null;
248
+ published_at: string | null;
249
+ status: string;
250
+ updated_at: string;
251
+ };
252
+ Insert: {
253
+ adapted_body?: string | null;
254
+ checklist?: Json | null;
255
+ content_id: string;
256
+ created_at?: string;
257
+ format: string;
258
+ id?: string;
259
+ media_urls?: Json;
260
+ metrics?: Json;
261
+ metrics_updated_at?: string | null;
262
+ organization_id: string;
263
+ platform: string;
264
+ platform_content?: Json | null;
265
+ platform_post_id?: string | null;
266
+ platform_url?: string | null;
267
+ published_at?: string | null;
268
+ status?: string;
269
+ updated_at?: string;
270
+ };
271
+ Update: {
272
+ adapted_body?: string | null;
273
+ checklist?: Json | null;
274
+ content_id?: string;
275
+ created_at?: string;
276
+ format?: string;
277
+ id?: string;
278
+ media_urls?: Json;
279
+ metrics?: Json;
280
+ metrics_updated_at?: string | null;
281
+ organization_id?: string;
282
+ platform?: string;
283
+ platform_content?: Json | null;
284
+ platform_post_id?: string | null;
285
+ platform_url?: string | null;
286
+ published_at?: string | null;
287
+ status?: string;
288
+ updated_at?: string;
289
+ };
290
+ Relationships: [
291
+ {
292
+ foreignKeyName: "acq_content_distributions_content_id_fkey";
293
+ columns: ["content_id"];
294
+ isOneToOne: false;
295
+ referencedRelation: "acq_content";
296
+ referencedColumns: ["id"];
297
+ },
298
+ {
299
+ foreignKeyName: "acq_content_distributions_organization_id_fkey";
300
+ columns: ["organization_id"];
301
+ isOneToOne: false;
302
+ referencedRelation: "organizations";
303
+ referencedColumns: ["id"];
304
+ }
305
+ ];
306
+ };
307
+ acq_deals: {
308
+ Row: {
309
+ activity_log: Json;
310
+ attio_deal_id: string;
311
+ cached_stage: string | null;
312
+ closed_lost_at: string | null;
313
+ closed_lost_reason: string | null;
314
+ contact_email: string;
315
+ contact_id: string | null;
316
+ created_at: string;
317
+ discovery_data: Json | null;
318
+ discovery_submitted_at: string | null;
319
+ discovery_submitted_by: string | null;
320
+ id: string;
321
+ initial_fee: number | null;
322
+ monthly_fee: number | null;
323
+ organization_id: string;
324
+ payment_link_sent_at: string | null;
325
+ payment_received_at: string | null;
326
+ proposal_data: Json | null;
327
+ proposal_generated_at: string | null;
328
+ proposal_pdf_url: string | null;
329
+ proposal_reviewed_at: string | null;
330
+ proposal_reviewed_by: string | null;
331
+ proposal_sent_at: string | null;
332
+ proposal_signed_at: string | null;
333
+ proposal_status: string | null;
334
+ signature_envelope_id: string | null;
335
+ source_list_id: string | null;
336
+ source_type: string | null;
337
+ stripe_payment_id: string | null;
338
+ stripe_payment_link: string | null;
339
+ stripe_payment_link_id: string | null;
340
+ stripe_subscription_id: string | null;
341
+ updated_at: string;
342
+ };
343
+ Insert: {
344
+ activity_log?: Json;
345
+ attio_deal_id: string;
346
+ cached_stage?: string | null;
347
+ closed_lost_at?: string | null;
348
+ closed_lost_reason?: string | null;
349
+ contact_email: string;
350
+ contact_id?: string | null;
351
+ created_at?: string;
352
+ discovery_data?: Json | null;
353
+ discovery_submitted_at?: string | null;
354
+ discovery_submitted_by?: string | null;
355
+ id?: string;
356
+ initial_fee?: number | null;
357
+ monthly_fee?: number | null;
358
+ organization_id: string;
359
+ payment_link_sent_at?: string | null;
360
+ payment_received_at?: string | null;
361
+ proposal_data?: Json | null;
362
+ proposal_generated_at?: string | null;
363
+ proposal_pdf_url?: string | null;
364
+ proposal_reviewed_at?: string | null;
365
+ proposal_reviewed_by?: string | null;
366
+ proposal_sent_at?: string | null;
367
+ proposal_signed_at?: string | null;
368
+ proposal_status?: string | null;
369
+ signature_envelope_id?: string | null;
370
+ source_list_id?: string | null;
371
+ source_type?: string | null;
372
+ stripe_payment_id?: string | null;
373
+ stripe_payment_link?: string | null;
374
+ stripe_payment_link_id?: string | null;
375
+ stripe_subscription_id?: string | null;
376
+ updated_at?: string;
377
+ };
378
+ Update: {
379
+ activity_log?: Json;
380
+ attio_deal_id?: string;
381
+ cached_stage?: string | null;
382
+ closed_lost_at?: string | null;
383
+ closed_lost_reason?: string | null;
384
+ contact_email?: string;
385
+ contact_id?: string | null;
386
+ created_at?: string;
387
+ discovery_data?: Json | null;
388
+ discovery_submitted_at?: string | null;
389
+ discovery_submitted_by?: string | null;
390
+ id?: string;
391
+ initial_fee?: number | null;
392
+ monthly_fee?: number | null;
393
+ organization_id?: string;
394
+ payment_link_sent_at?: string | null;
395
+ payment_received_at?: string | null;
396
+ proposal_data?: Json | null;
397
+ proposal_generated_at?: string | null;
398
+ proposal_pdf_url?: string | null;
399
+ proposal_reviewed_at?: string | null;
400
+ proposal_reviewed_by?: string | null;
401
+ proposal_sent_at?: string | null;
402
+ proposal_signed_at?: string | null;
403
+ proposal_status?: string | null;
404
+ signature_envelope_id?: string | null;
405
+ source_list_id?: string | null;
406
+ source_type?: string | null;
407
+ stripe_payment_id?: string | null;
408
+ stripe_payment_link?: string | null;
409
+ stripe_payment_link_id?: string | null;
410
+ stripe_subscription_id?: string | null;
411
+ updated_at?: string;
412
+ };
413
+ Relationships: [
414
+ {
415
+ foreignKeyName: "acq_deals_contact_id_fkey";
416
+ columns: ["contact_id"];
417
+ isOneToOne: false;
418
+ referencedRelation: "acq_contacts";
419
+ referencedColumns: ["id"];
420
+ },
421
+ {
422
+ foreignKeyName: "acq_deals_organization_id_fkey";
423
+ columns: ["organization_id"];
424
+ isOneToOne: false;
425
+ referencedRelation: "organizations";
426
+ referencedColumns: ["id"];
427
+ },
428
+ {
429
+ foreignKeyName: "acq_deals_source_list_id_fkey";
430
+ columns: ["source_list_id"];
431
+ isOneToOne: false;
432
+ referencedRelation: "acq_lists";
433
+ referencedColumns: ["id"];
434
+ }
435
+ ];
436
+ };
437
+ acq_list_members: {
438
+ Row: {
439
+ added_at: string;
440
+ added_by: string | null;
441
+ contact_id: string;
442
+ id: string;
443
+ list_id: string;
444
+ };
445
+ Insert: {
446
+ added_at?: string;
447
+ added_by?: string | null;
448
+ contact_id: string;
449
+ id?: string;
450
+ list_id: string;
451
+ };
452
+ Update: {
453
+ added_at?: string;
454
+ added_by?: string | null;
455
+ contact_id?: string;
456
+ id?: string;
457
+ list_id?: string;
458
+ };
459
+ Relationships: [
460
+ {
461
+ foreignKeyName: "acq_list_members_contact_id_fkey";
462
+ columns: ["contact_id"];
463
+ isOneToOne: false;
464
+ referencedRelation: "acq_contacts";
465
+ referencedColumns: ["id"];
466
+ },
467
+ {
468
+ foreignKeyName: "acq_list_members_list_id_fkey";
469
+ columns: ["list_id"];
470
+ isOneToOne: false;
471
+ referencedRelation: "acq_lists";
472
+ referencedColumns: ["id"];
473
+ }
474
+ ];
475
+ };
476
+ acq_lists: {
477
+ Row: {
478
+ batch_ids: string[];
479
+ completed_at: string | null;
480
+ created_at: string;
481
+ description: string | null;
482
+ id: string;
483
+ instantly_campaign_id: string | null;
484
+ launched_at: string | null;
485
+ metadata: Json;
486
+ name: string;
487
+ organization_id: string;
488
+ status: string;
489
+ type: string;
490
+ };
491
+ Insert: {
492
+ batch_ids?: string[];
493
+ completed_at?: string | null;
494
+ created_at?: string;
495
+ description?: string | null;
496
+ id?: string;
497
+ instantly_campaign_id?: string | null;
498
+ launched_at?: string | null;
499
+ metadata?: Json;
500
+ name: string;
501
+ organization_id: string;
502
+ status?: string;
503
+ type?: string;
504
+ };
505
+ Update: {
506
+ batch_ids?: string[];
507
+ completed_at?: string | null;
508
+ created_at?: string;
509
+ description?: string | null;
510
+ id?: string;
511
+ instantly_campaign_id?: string | null;
512
+ launched_at?: string | null;
513
+ metadata?: Json;
514
+ name?: string;
515
+ organization_id?: string;
516
+ status?: string;
517
+ type?: string;
518
+ };
519
+ Relationships: [
520
+ {
521
+ foreignKeyName: "acq_lists_organization_id_fkey";
522
+ columns: ["organization_id"];
523
+ isOneToOne: false;
524
+ referencedRelation: "organizations";
525
+ referencedColumns: ["id"];
526
+ }
527
+ ];
528
+ };
529
+ acq_seo_metrics: {
530
+ Row: {
531
+ ai_citations: Json | null;
532
+ avg_position: number | null;
533
+ clicks: number | null;
534
+ created_at: string;
535
+ cta_clicks: number | null;
536
+ ctr: number | null;
537
+ data_point_count: number | null;
538
+ faq_count: number | null;
539
+ form_submissions: number | null;
540
+ id: string;
541
+ impressions: number | null;
542
+ organization_id: string;
543
+ period: string;
544
+ quality_score: number | null;
545
+ readability: number | null;
546
+ scroll_100: number | null;
547
+ scroll_25: number | null;
548
+ scroll_50: number | null;
549
+ scroll_75: number | null;
550
+ seo_page_id: string;
551
+ word_count: number | null;
552
+ };
553
+ Insert: {
554
+ ai_citations?: Json | null;
555
+ avg_position?: number | null;
556
+ clicks?: number | null;
557
+ created_at?: string;
558
+ cta_clicks?: number | null;
559
+ ctr?: number | null;
560
+ data_point_count?: number | null;
561
+ faq_count?: number | null;
562
+ form_submissions?: number | null;
563
+ id?: string;
564
+ impressions?: number | null;
565
+ organization_id: string;
566
+ period: string;
567
+ quality_score?: number | null;
568
+ readability?: number | null;
569
+ scroll_100?: number | null;
570
+ scroll_25?: number | null;
571
+ scroll_50?: number | null;
572
+ scroll_75?: number | null;
573
+ seo_page_id: string;
574
+ word_count?: number | null;
575
+ };
576
+ Update: {
577
+ ai_citations?: Json | null;
578
+ avg_position?: number | null;
579
+ clicks?: number | null;
580
+ created_at?: string;
581
+ cta_clicks?: number | null;
582
+ ctr?: number | null;
583
+ data_point_count?: number | null;
584
+ faq_count?: number | null;
585
+ form_submissions?: number | null;
586
+ id?: string;
587
+ impressions?: number | null;
588
+ organization_id?: string;
589
+ period?: string;
590
+ quality_score?: number | null;
591
+ readability?: number | null;
592
+ scroll_100?: number | null;
593
+ scroll_25?: number | null;
594
+ scroll_50?: number | null;
595
+ scroll_75?: number | null;
596
+ seo_page_id?: string;
597
+ word_count?: number | null;
598
+ };
599
+ Relationships: [
600
+ {
601
+ foreignKeyName: "acq_seo_metrics_organization_id_fkey";
602
+ columns: ["organization_id"];
603
+ isOneToOne: false;
604
+ referencedRelation: "organizations";
605
+ referencedColumns: ["id"];
606
+ },
607
+ {
608
+ foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
609
+ columns: ["seo_page_id"];
610
+ isOneToOne: false;
611
+ referencedRelation: "acq_seo_pages";
612
+ referencedColumns: ["id"];
613
+ }
614
+ ];
615
+ };
616
+ acq_seo_pages: {
617
+ Row: {
618
+ city: string | null;
619
+ content: Json | null;
620
+ created_at: string;
621
+ faq_items: Json | null;
622
+ hero_image_url: string | null;
623
+ id: string;
624
+ internal_links: Json | null;
625
+ local_data: Json | null;
626
+ meta_description: string | null;
627
+ organization_id: string;
628
+ page_type: string;
629
+ published_at: string | null;
630
+ refreshed_at: string | null;
631
+ schema_markup: Json | null;
632
+ slug: string;
633
+ state: string | null;
634
+ status: string;
635
+ title: string;
636
+ updated_at: string;
637
+ use_case: string | null;
638
+ vertical: string;
639
+ };
640
+ Insert: {
641
+ city?: string | null;
642
+ content?: Json | null;
643
+ created_at?: string;
644
+ faq_items?: Json | null;
645
+ hero_image_url?: string | null;
646
+ id?: string;
647
+ internal_links?: Json | null;
648
+ local_data?: Json | null;
649
+ meta_description?: string | null;
650
+ organization_id: string;
651
+ page_type: string;
652
+ published_at?: string | null;
653
+ refreshed_at?: string | null;
654
+ schema_markup?: Json | null;
655
+ slug: string;
656
+ state?: string | null;
657
+ status?: string;
658
+ title: string;
659
+ updated_at?: string;
660
+ use_case?: string | null;
661
+ vertical: string;
662
+ };
663
+ Update: {
664
+ city?: string | null;
665
+ content?: Json | null;
666
+ created_at?: string;
667
+ faq_items?: Json | null;
668
+ hero_image_url?: string | null;
669
+ id?: string;
670
+ internal_links?: Json | null;
671
+ local_data?: Json | null;
672
+ meta_description?: string | null;
673
+ organization_id?: string;
674
+ page_type?: string;
675
+ published_at?: string | null;
676
+ refreshed_at?: string | null;
677
+ schema_markup?: Json | null;
678
+ slug?: string;
679
+ state?: string | null;
680
+ status?: string;
681
+ title?: string;
682
+ updated_at?: string;
683
+ use_case?: string | null;
684
+ vertical?: string;
685
+ };
686
+ Relationships: [
687
+ {
688
+ foreignKeyName: "acq_seo_pages_organization_id_fkey";
689
+ columns: ["organization_id"];
690
+ isOneToOne: false;
691
+ referencedRelation: "organizations";
692
+ referencedColumns: ["id"];
693
+ }
694
+ ];
695
+ };
696
+ acq_social_posts: {
697
+ Row: {
698
+ author_name: string;
699
+ author_url: string | null;
700
+ comments_count: number;
701
+ created_at: string;
702
+ discovered_at: string;
703
+ engagement_count: number;
704
+ feedback: string | null;
705
+ final_response: string | null;
706
+ fully_reviewed: boolean;
707
+ id: string;
708
+ initial_draft: string | null;
709
+ matched_keywords: string[];
710
+ matched_query: string | null;
711
+ metadata: Json;
712
+ organization_id: string;
713
+ platform: string;
714
+ platform_post_id: string;
715
+ post_text: string;
716
+ post_title: string;
717
+ post_url: string;
718
+ posted_at: string;
719
+ relevance_score: number;
720
+ responded_at: string | null;
721
+ reviewed_at: string | null;
722
+ skip_reason: string | null;
723
+ source_category: string | null;
724
+ status: string;
725
+ updated_at: string;
726
+ };
727
+ Insert: {
728
+ author_name: string;
729
+ author_url?: string | null;
730
+ comments_count?: number;
731
+ created_at?: string;
732
+ discovered_at?: string;
733
+ engagement_count?: number;
734
+ feedback?: string | null;
735
+ final_response?: string | null;
736
+ fully_reviewed?: boolean;
737
+ id?: string;
738
+ initial_draft?: string | null;
739
+ matched_keywords?: string[];
740
+ matched_query?: string | null;
741
+ metadata?: Json;
742
+ organization_id: string;
743
+ platform: string;
744
+ platform_post_id: string;
745
+ post_text: string;
746
+ post_title: string;
747
+ post_url: string;
748
+ posted_at: string;
749
+ relevance_score?: number;
750
+ responded_at?: string | null;
751
+ reviewed_at?: string | null;
752
+ skip_reason?: string | null;
753
+ source_category?: string | null;
754
+ status?: string;
755
+ updated_at?: string;
756
+ };
757
+ Update: {
758
+ author_name?: string;
759
+ author_url?: string | null;
760
+ comments_count?: number;
761
+ created_at?: string;
762
+ discovered_at?: string;
763
+ engagement_count?: number;
764
+ feedback?: string | null;
765
+ final_response?: string | null;
766
+ fully_reviewed?: boolean;
767
+ id?: string;
768
+ initial_draft?: string | null;
769
+ matched_keywords?: string[];
770
+ matched_query?: string | null;
771
+ metadata?: Json;
772
+ organization_id?: string;
773
+ platform?: string;
774
+ platform_post_id?: string;
775
+ post_text?: string;
776
+ post_title?: string;
777
+ post_url?: string;
778
+ posted_at?: string;
779
+ relevance_score?: number;
780
+ responded_at?: string | null;
781
+ reviewed_at?: string | null;
782
+ skip_reason?: string | null;
783
+ source_category?: string | null;
784
+ status?: string;
785
+ updated_at?: string;
786
+ };
787
+ Relationships: [
788
+ {
789
+ foreignKeyName: "acq_social_posts_organization_id_fkey";
790
+ columns: ["organization_id"];
791
+ isOneToOne: false;
792
+ referencedRelation: "organizations";
793
+ referencedColumns: ["id"];
794
+ }
795
+ ];
796
+ };
797
+ activities: {
798
+ Row: {
799
+ activity_type: string;
800
+ actor_id: string | null;
801
+ actor_type: string | null;
802
+ created_at: string;
803
+ description: string | null;
804
+ entity_id: string;
805
+ entity_name: string | null;
806
+ entity_type: string;
807
+ id: string;
808
+ metadata: Json | null;
809
+ occurred_at: string;
810
+ organization_id: string;
811
+ status: string;
812
+ title: string;
813
+ };
814
+ Insert: {
815
+ activity_type: string;
816
+ actor_id?: string | null;
817
+ actor_type?: string | null;
818
+ created_at?: string;
819
+ description?: string | null;
820
+ entity_id: string;
821
+ entity_name?: string | null;
822
+ entity_type: string;
823
+ id?: string;
824
+ metadata?: Json | null;
825
+ occurred_at?: string;
826
+ organization_id: string;
827
+ status: string;
828
+ title: string;
829
+ };
830
+ Update: {
831
+ activity_type?: string;
832
+ actor_id?: string | null;
833
+ actor_type?: string | null;
834
+ created_at?: string;
835
+ description?: string | null;
836
+ entity_id?: string;
837
+ entity_name?: string | null;
838
+ entity_type?: string;
839
+ id?: string;
840
+ metadata?: Json | null;
841
+ occurred_at?: string;
842
+ organization_id?: string;
843
+ status?: string;
844
+ title?: string;
845
+ };
846
+ Relationships: [
847
+ {
848
+ foreignKeyName: "activities_organization_id_fkey";
849
+ columns: ["organization_id"];
850
+ isOneToOne: false;
851
+ referencedRelation: "organizations";
852
+ referencedColumns: ["id"];
853
+ }
854
+ ];
855
+ };
856
+ api_keys: {
857
+ Row: {
858
+ created_at: string | null;
859
+ id: string;
860
+ key_hash: string;
861
+ last_used_at: string | null;
862
+ name: string;
863
+ organization_id: string;
864
+ };
865
+ Insert: {
866
+ created_at?: string | null;
867
+ id?: string;
868
+ key_hash: string;
869
+ last_used_at?: string | null;
870
+ name: string;
871
+ organization_id: string;
872
+ };
873
+ Update: {
874
+ created_at?: string | null;
875
+ id?: string;
876
+ key_hash?: string;
877
+ last_used_at?: string | null;
878
+ name?: string;
879
+ organization_id?: string;
880
+ };
881
+ Relationships: [
882
+ {
883
+ foreignKeyName: "api_keys_organization_id_fkey";
884
+ columns: ["organization_id"];
885
+ isOneToOne: false;
886
+ referencedRelation: "organizations";
887
+ referencedColumns: ["id"];
888
+ }
889
+ ];
890
+ };
891
+ calibration_projects: {
892
+ Row: {
893
+ created_at: string | null;
894
+ description: string | null;
895
+ id: string;
896
+ name: string;
897
+ organization_id: string;
898
+ resource_id: string;
899
+ resource_type: string;
900
+ updated_at: string | null;
901
+ };
902
+ Insert: {
903
+ created_at?: string | null;
904
+ description?: string | null;
905
+ id?: string;
906
+ name: string;
907
+ organization_id: string;
908
+ resource_id: string;
909
+ resource_type: string;
910
+ updated_at?: string | null;
911
+ };
912
+ Update: {
913
+ created_at?: string | null;
914
+ description?: string | null;
915
+ id?: string;
916
+ name?: string;
917
+ organization_id?: string;
918
+ resource_id?: string;
919
+ resource_type?: string;
920
+ updated_at?: string | null;
921
+ };
922
+ Relationships: [
923
+ {
924
+ foreignKeyName: "calibration_projects_organization_id_fkey";
925
+ columns: ["organization_id"];
926
+ isOneToOne: false;
927
+ referencedRelation: "organizations";
928
+ referencedColumns: ["id"];
929
+ }
930
+ ];
931
+ };
932
+ calibration_runs: {
933
+ Row: {
934
+ completed_at: string | null;
935
+ config_variants: Json;
936
+ created_at: string | null;
937
+ description: string | null;
938
+ execution_mode: string;
939
+ grader_model: string | null;
940
+ grading_rubric: Json | null;
941
+ id: string;
942
+ name: string;
943
+ organization_id: string;
944
+ project_id: string;
945
+ results: Json;
946
+ status: string;
947
+ test_inputs: Json;
948
+ };
949
+ Insert: {
950
+ completed_at?: string | null;
951
+ config_variants: Json;
952
+ created_at?: string | null;
953
+ description?: string | null;
954
+ execution_mode?: string;
955
+ grader_model?: string | null;
956
+ grading_rubric?: Json | null;
957
+ id?: string;
958
+ name: string;
959
+ organization_id: string;
960
+ project_id: string;
961
+ results?: Json;
962
+ status?: string;
963
+ test_inputs: Json;
964
+ };
965
+ Update: {
966
+ completed_at?: string | null;
967
+ config_variants?: Json;
968
+ created_at?: string | null;
969
+ description?: string | null;
970
+ execution_mode?: string;
971
+ grader_model?: string | null;
972
+ grading_rubric?: Json | null;
973
+ id?: string;
974
+ name?: string;
975
+ organization_id?: string;
976
+ project_id?: string;
977
+ results?: Json;
978
+ status?: string;
979
+ test_inputs?: Json;
980
+ };
981
+ Relationships: [
982
+ {
983
+ foreignKeyName: "calibration_runs_organization_id_fkey";
984
+ columns: ["organization_id"];
985
+ isOneToOne: false;
986
+ referencedRelation: "organizations";
987
+ referencedColumns: ["id"];
988
+ },
989
+ {
990
+ foreignKeyName: "calibration_runs_project_id_fkey";
991
+ columns: ["project_id"];
992
+ isOneToOne: false;
993
+ referencedRelation: "calibration_projects";
994
+ referencedColumns: ["id"];
995
+ }
996
+ ];
997
+ };
998
+ command_queue: {
999
+ Row: {
1000
+ action_payload: Json | null;
1001
+ actions: Json;
1002
+ completed_at: string | null;
1003
+ completed_by: string | null;
1004
+ context: Json;
1005
+ created_at: string;
1006
+ description: string | null;
1007
+ expires_at: string | null;
1008
+ human_checkpoint: string | null;
1009
+ id: string;
1010
+ idempotency_key: string | null;
1011
+ metadata: Json | null;
1012
+ organization_id: string;
1013
+ origin_execution_id: string;
1014
+ origin_resource_id: string;
1015
+ origin_resource_type: string;
1016
+ priority: number;
1017
+ selected_action: string | null;
1018
+ status: string;
1019
+ target_execution_id: string | null;
1020
+ target_resource_id: string | null;
1021
+ target_resource_type: string | null;
1022
+ };
1023
+ Insert: {
1024
+ action_payload?: Json | null;
1025
+ actions: Json;
1026
+ completed_at?: string | null;
1027
+ completed_by?: string | null;
1028
+ context: Json;
1029
+ created_at?: string;
1030
+ description?: string | null;
1031
+ expires_at?: string | null;
1032
+ human_checkpoint?: string | null;
1033
+ id?: string;
1034
+ idempotency_key?: string | null;
1035
+ metadata?: Json | null;
1036
+ organization_id: string;
1037
+ origin_execution_id: string;
1038
+ origin_resource_id: string;
1039
+ origin_resource_type: string;
1040
+ priority?: number;
1041
+ selected_action?: string | null;
1042
+ status?: string;
1043
+ target_execution_id?: string | null;
1044
+ target_resource_id?: string | null;
1045
+ target_resource_type?: string | null;
1046
+ };
1047
+ Update: {
1048
+ action_payload?: Json | null;
1049
+ actions?: Json;
1050
+ completed_at?: string | null;
1051
+ completed_by?: string | null;
1052
+ context?: Json;
1053
+ created_at?: string;
1054
+ description?: string | null;
1055
+ expires_at?: string | null;
1056
+ human_checkpoint?: string | null;
1057
+ id?: string;
1058
+ idempotency_key?: string | null;
1059
+ metadata?: Json | null;
1060
+ organization_id?: string;
1061
+ origin_execution_id?: string;
1062
+ origin_resource_id?: string;
1063
+ origin_resource_type?: string;
1064
+ priority?: number;
1065
+ selected_action?: string | null;
1066
+ status?: string;
1067
+ target_execution_id?: string | null;
1068
+ target_resource_id?: string | null;
1069
+ target_resource_type?: string | null;
1070
+ };
1071
+ Relationships: [
1072
+ {
1073
+ foreignKeyName: "command_queue_completed_by_fkey";
1074
+ columns: ["completed_by"];
1075
+ isOneToOne: false;
1076
+ referencedRelation: "users";
1077
+ referencedColumns: ["id"];
1078
+ },
1079
+ {
1080
+ foreignKeyName: "command_queue_organization_id_fkey";
1081
+ columns: ["organization_id"];
1082
+ isOneToOne: false;
1083
+ referencedRelation: "organizations";
1084
+ referencedColumns: ["id"];
1085
+ },
1086
+ {
1087
+ foreignKeyName: "command_queue_target_execution_id_fkey";
1088
+ columns: ["target_execution_id"];
1089
+ isOneToOne: false;
1090
+ referencedRelation: "execution_logs";
1091
+ referencedColumns: ["execution_id"];
1092
+ }
1093
+ ];
1094
+ };
1095
+ credentials: {
1096
+ Row: {
1097
+ created_at: string;
1098
+ created_by: string | null;
1099
+ encrypted_value: string;
1100
+ id: string;
1101
+ name: string;
1102
+ organization_id: string;
1103
+ provider: string | null;
1104
+ type: string;
1105
+ updated_at: string;
1106
+ };
1107
+ Insert: {
1108
+ created_at?: string;
1109
+ created_by?: string | null;
1110
+ encrypted_value: string;
1111
+ id?: string;
1112
+ name: string;
1113
+ organization_id: string;
1114
+ provider?: string | null;
1115
+ type?: string;
1116
+ updated_at?: string;
1117
+ };
1118
+ Update: {
1119
+ created_at?: string;
1120
+ created_by?: string | null;
1121
+ encrypted_value?: string;
1122
+ id?: string;
1123
+ name?: string;
1124
+ organization_id?: string;
1125
+ provider?: string | null;
1126
+ type?: string;
1127
+ updated_at?: string;
1128
+ };
1129
+ Relationships: [
1130
+ {
1131
+ foreignKeyName: "credentials_created_by_fkey";
1132
+ columns: ["created_by"];
1133
+ isOneToOne: false;
1134
+ referencedRelation: "users";
1135
+ referencedColumns: ["id"];
1136
+ },
1137
+ {
1138
+ foreignKeyName: "credentials_organization_id_fkey";
1139
+ columns: ["organization_id"];
1140
+ isOneToOne: false;
1141
+ referencedRelation: "organizations";
1142
+ referencedColumns: ["id"];
1143
+ }
1144
+ ];
1145
+ };
1146
+ deployments: {
1147
+ Row: {
1148
+ compiled_docs: Json | null;
1149
+ created_at: string;
1150
+ deployment_version: string | null;
1151
+ documentation: Json | null;
1152
+ error_message: string | null;
1153
+ id: string;
1154
+ organization_id: string;
1155
+ pid: number | null;
1156
+ port: number | null;
1157
+ sdk_version: string;
1158
+ status: string;
1159
+ tarball_path: string | null;
1160
+ updated_at: string;
1161
+ };
1162
+ Insert: {
1163
+ compiled_docs?: Json | null;
1164
+ created_at?: string;
1165
+ deployment_version?: string | null;
1166
+ documentation?: Json | null;
1167
+ error_message?: string | null;
1168
+ id?: string;
1169
+ organization_id: string;
1170
+ pid?: number | null;
1171
+ port?: number | null;
1172
+ sdk_version: string;
1173
+ status?: string;
1174
+ tarball_path?: string | null;
1175
+ updated_at?: string;
1176
+ };
1177
+ Update: {
1178
+ compiled_docs?: Json | null;
1179
+ created_at?: string;
1180
+ deployment_version?: string | null;
1181
+ documentation?: Json | null;
1182
+ error_message?: string | null;
1183
+ id?: string;
1184
+ organization_id?: string;
1185
+ pid?: number | null;
1186
+ port?: number | null;
1187
+ sdk_version?: string;
1188
+ status?: string;
1189
+ tarball_path?: string | null;
1190
+ updated_at?: string;
1191
+ };
1192
+ Relationships: [
1193
+ {
1194
+ foreignKeyName: "deployments_organization_id_fkey";
1195
+ columns: ["organization_id"];
1196
+ isOneToOne: false;
1197
+ referencedRelation: "organizations";
1198
+ referencedColumns: ["id"];
1199
+ }
1200
+ ];
1201
+ };
1202
+ execution_errors: {
1203
+ Row: {
1204
+ created_at: string | null;
1205
+ error_category: string;
1206
+ error_message: string;
1207
+ error_severity: string;
1208
+ error_stack_trace: string | null;
1209
+ error_type: string;
1210
+ execution_id: string;
1211
+ id: string;
1212
+ metadata: Json | null;
1213
+ occurred_at: string;
1214
+ organization_id: string;
1215
+ resolved: boolean;
1216
+ resolved_at: string | null;
1217
+ resolved_by: string | null;
1218
+ };
1219
+ Insert: {
1220
+ created_at?: string | null;
1221
+ error_category: string;
1222
+ error_message: string;
1223
+ error_severity: string;
1224
+ error_stack_trace?: string | null;
1225
+ error_type: string;
1226
+ execution_id: string;
1227
+ id?: string;
1228
+ metadata?: Json | null;
1229
+ occurred_at?: string;
1230
+ organization_id: string;
1231
+ resolved?: boolean;
1232
+ resolved_at?: string | null;
1233
+ resolved_by?: string | null;
1234
+ };
1235
+ Update: {
1236
+ created_at?: string | null;
1237
+ error_category?: string;
1238
+ error_message?: string;
1239
+ error_severity?: string;
1240
+ error_stack_trace?: string | null;
1241
+ error_type?: string;
1242
+ execution_id?: string;
1243
+ id?: string;
1244
+ metadata?: Json | null;
1245
+ occurred_at?: string;
1246
+ organization_id?: string;
1247
+ resolved?: boolean;
1248
+ resolved_at?: string | null;
1249
+ resolved_by?: string | null;
1250
+ };
1251
+ Relationships: [
1252
+ {
1253
+ foreignKeyName: "execution_errors_execution_id_fkey";
1254
+ columns: ["execution_id"];
1255
+ isOneToOne: false;
1256
+ referencedRelation: "execution_logs";
1257
+ referencedColumns: ["execution_id"];
1258
+ },
1259
+ {
1260
+ foreignKeyName: "execution_errors_organization_id_fkey";
1261
+ columns: ["organization_id"];
1262
+ isOneToOne: false;
1263
+ referencedRelation: "organizations";
1264
+ referencedColumns: ["id"];
1265
+ },
1266
+ {
1267
+ foreignKeyName: "execution_errors_resolved_by_fkey";
1268
+ columns: ["resolved_by"];
1269
+ isOneToOne: false;
1270
+ referencedRelation: "users";
1271
+ referencedColumns: ["id"];
1272
+ }
1273
+ ];
1274
+ };
1275
+ execution_logs: {
1276
+ Row: {
1277
+ api_version: string | null;
1278
+ completed_at: string | null;
1279
+ created_at: string | null;
1280
+ error: string | null;
1281
+ execution_id: string;
1282
+ input: Json | null;
1283
+ last_heartbeat_at: string | null;
1284
+ logs: Json | null;
1285
+ organization_id: string;
1286
+ origin_execution_id: string | null;
1287
+ output: Json | null;
1288
+ resource_id: string;
1289
+ resource_status: string;
1290
+ resource_type: string;
1291
+ resource_version: string | null;
1292
+ sdk_version: string | null;
1293
+ session_id: string | null;
1294
+ session_turn_number: number | null;
1295
+ started_at: string;
1296
+ status: string;
1297
+ trigger_type: string | null;
1298
+ updated_at: string | null;
1299
+ user_id: string | null;
1300
+ };
1301
+ Insert: {
1302
+ api_version?: string | null;
1303
+ completed_at?: string | null;
1304
+ created_at?: string | null;
1305
+ error?: string | null;
1306
+ execution_id?: string;
1307
+ input?: Json | null;
1308
+ last_heartbeat_at?: string | null;
1309
+ logs?: Json | null;
1310
+ organization_id: string;
1311
+ origin_execution_id?: string | null;
1312
+ output?: Json | null;
1313
+ resource_id: string;
1314
+ resource_status?: string;
1315
+ resource_type?: string;
1316
+ resource_version?: string | null;
1317
+ sdk_version?: string | null;
1318
+ session_id?: string | null;
1319
+ session_turn_number?: number | null;
1320
+ started_at?: string;
1321
+ status: string;
1322
+ trigger_type?: string | null;
1323
+ updated_at?: string | null;
1324
+ user_id?: string | null;
1325
+ };
1326
+ Update: {
1327
+ api_version?: string | null;
1328
+ completed_at?: string | null;
1329
+ created_at?: string | null;
1330
+ error?: string | null;
1331
+ execution_id?: string;
1332
+ input?: Json | null;
1333
+ last_heartbeat_at?: string | null;
1334
+ logs?: Json | null;
1335
+ organization_id?: string;
1336
+ origin_execution_id?: string | null;
1337
+ output?: Json | null;
1338
+ resource_id?: string;
1339
+ resource_status?: string;
1340
+ resource_type?: string;
1341
+ resource_version?: string | null;
1342
+ sdk_version?: string | null;
1343
+ session_id?: string | null;
1344
+ session_turn_number?: number | null;
1345
+ started_at?: string;
1346
+ status?: string;
1347
+ trigger_type?: string | null;
1348
+ updated_at?: string | null;
1349
+ user_id?: string | null;
1350
+ };
1351
+ Relationships: [
1352
+ {
1353
+ foreignKeyName: "execution_history_organization_id_fkey";
1354
+ columns: ["organization_id"];
1355
+ isOneToOne: false;
1356
+ referencedRelation: "organizations";
1357
+ referencedColumns: ["id"];
1358
+ },
1359
+ {
1360
+ foreignKeyName: "execution_logs_origin_execution_id_fkey";
1361
+ columns: ["origin_execution_id"];
1362
+ isOneToOne: false;
1363
+ referencedRelation: "execution_logs";
1364
+ referencedColumns: ["execution_id"];
1365
+ },
1366
+ {
1367
+ foreignKeyName: "execution_logs_session_id_fkey";
1368
+ columns: ["session_id"];
1369
+ isOneToOne: false;
1370
+ referencedRelation: "sessions";
1371
+ referencedColumns: ["session_id"];
1372
+ },
1373
+ {
1374
+ foreignKeyName: "execution_logs_user_id_fkey";
1375
+ columns: ["user_id"];
1376
+ isOneToOne: false;
1377
+ referencedRelation: "users";
1378
+ referencedColumns: ["id"];
1379
+ }
1380
+ ];
1381
+ };
1382
+ execution_metrics: {
1383
+ Row: {
1384
+ ai_call_count: number;
1385
+ ai_calls: Json | null;
1386
+ automation_savings_usd: number | null;
1387
+ created_at: string | null;
1388
+ duration_ms: number | null;
1389
+ execution_id: string;
1390
+ organization_id: string;
1391
+ resource_id: string;
1392
+ total_cost_usd: number;
1393
+ total_input_tokens: number;
1394
+ total_output_tokens: number;
1395
+ };
1396
+ Insert: {
1397
+ ai_call_count: number;
1398
+ ai_calls?: Json | null;
1399
+ automation_savings_usd?: number | null;
1400
+ created_at?: string | null;
1401
+ duration_ms?: number | null;
1402
+ execution_id: string;
1403
+ organization_id: string;
1404
+ resource_id: string;
1405
+ total_cost_usd: number;
1406
+ total_input_tokens: number;
1407
+ total_output_tokens: number;
1408
+ };
1409
+ Update: {
1410
+ ai_call_count?: number;
1411
+ ai_calls?: Json | null;
1412
+ automation_savings_usd?: number | null;
1413
+ created_at?: string | null;
1414
+ duration_ms?: number | null;
1415
+ execution_id?: string;
1416
+ organization_id?: string;
1417
+ resource_id?: string;
1418
+ total_cost_usd?: number;
1419
+ total_input_tokens?: number;
1420
+ total_output_tokens?: number;
1421
+ };
1422
+ Relationships: [
1423
+ {
1424
+ foreignKeyName: "execution_metrics_execution_id_fkey";
1425
+ columns: ["execution_id"];
1426
+ isOneToOne: true;
1427
+ referencedRelation: "execution_logs";
1428
+ referencedColumns: ["execution_id"];
1429
+ },
1430
+ {
1431
+ foreignKeyName: "execution_metrics_organization_id_fkey";
1432
+ columns: ["organization_id"];
1433
+ isOneToOne: false;
1434
+ referencedRelation: "organizations";
1435
+ referencedColumns: ["id"];
1436
+ }
1437
+ ];
1438
+ };
1439
+ notifications: {
1440
+ Row: {
1441
+ action_url: string | null;
1442
+ category: string;
1443
+ created_at: string | null;
1444
+ id: string;
1445
+ message: string;
1446
+ organization_id: string;
1447
+ read: boolean | null;
1448
+ read_at: string | null;
1449
+ title: string;
1450
+ user_id: string;
1451
+ };
1452
+ Insert: {
1453
+ action_url?: string | null;
1454
+ category: string;
1455
+ created_at?: string | null;
1456
+ id?: string;
1457
+ message: string;
1458
+ organization_id: string;
1459
+ read?: boolean | null;
1460
+ read_at?: string | null;
1461
+ title: string;
1462
+ user_id: string;
1463
+ };
1464
+ Update: {
1465
+ action_url?: string | null;
1466
+ category?: string;
1467
+ created_at?: string | null;
1468
+ id?: string;
1469
+ message?: string;
1470
+ organization_id?: string;
1471
+ read?: boolean | null;
1472
+ read_at?: string | null;
1473
+ title?: string;
1474
+ user_id?: string;
1475
+ };
1476
+ Relationships: [
1477
+ {
1478
+ foreignKeyName: "notifications_organization_id_fkey";
1479
+ columns: ["organization_id"];
1480
+ isOneToOne: false;
1481
+ referencedRelation: "organizations";
1482
+ referencedColumns: ["id"];
1483
+ },
1484
+ {
1485
+ foreignKeyName: "notifications_user_id_fkey";
1486
+ columns: ["user_id"];
1487
+ isOneToOne: false;
1488
+ referencedRelation: "users";
1489
+ referencedColumns: ["id"];
1490
+ }
1491
+ ];
1492
+ };
1493
+ org_invitations: {
1494
+ Row: {
1495
+ accept_invitation_url: string | null;
1496
+ accepted_at: string | null;
1497
+ created_at: string | null;
1498
+ email: string;
1499
+ expires_at: string;
1500
+ id: string;
1501
+ invitation_state: string | null;
1502
+ invitation_token: string | null;
1503
+ inviter_user_id: string | null;
1504
+ organization_id: string | null;
1505
+ revoked_at: string | null;
1506
+ role_slug: string | null;
1507
+ updated_at: string | null;
1508
+ workos_invitation_id: string;
1509
+ };
1510
+ Insert: {
1511
+ accept_invitation_url?: string | null;
1512
+ accepted_at?: string | null;
1513
+ created_at?: string | null;
1514
+ email: string;
1515
+ expires_at: string;
1516
+ id?: string;
1517
+ invitation_state?: string | null;
1518
+ invitation_token?: string | null;
1519
+ inviter_user_id?: string | null;
1520
+ organization_id?: string | null;
1521
+ revoked_at?: string | null;
1522
+ role_slug?: string | null;
1523
+ updated_at?: string | null;
1524
+ workos_invitation_id: string;
1525
+ };
1526
+ Update: {
1527
+ accept_invitation_url?: string | null;
1528
+ accepted_at?: string | null;
1529
+ created_at?: string | null;
1530
+ email?: string;
1531
+ expires_at?: string;
1532
+ id?: string;
1533
+ invitation_state?: string | null;
1534
+ invitation_token?: string | null;
1535
+ inviter_user_id?: string | null;
1536
+ organization_id?: string | null;
1537
+ revoked_at?: string | null;
1538
+ role_slug?: string | null;
1539
+ updated_at?: string | null;
1540
+ workos_invitation_id?: string;
1541
+ };
1542
+ Relationships: [
1543
+ {
1544
+ foreignKeyName: "org_invitations_inviter_user_id_fkey";
1545
+ columns: ["inviter_user_id"];
1546
+ isOneToOne: false;
1547
+ referencedRelation: "users";
1548
+ referencedColumns: ["id"];
1549
+ },
1550
+ {
1551
+ foreignKeyName: "org_invitations_organization_id_fkey";
1552
+ columns: ["organization_id"];
1553
+ isOneToOne: false;
1554
+ referencedRelation: "organizations";
1555
+ referencedColumns: ["id"];
1556
+ }
1557
+ ];
1558
+ };
1559
+ org_memberships: {
1560
+ Row: {
1561
+ config: Json;
1562
+ created_at: string | null;
1563
+ id: string;
1564
+ membership_status: string | null;
1565
+ organization_id: string;
1566
+ role_slug: string | null;
1567
+ updated_at: string | null;
1568
+ user_id: string;
1569
+ workos_membership_id: string | null;
1570
+ };
1571
+ Insert: {
1572
+ config?: Json;
1573
+ created_at?: string | null;
1574
+ id?: string;
1575
+ membership_status?: string | null;
1576
+ organization_id: string;
1577
+ role_slug?: string | null;
1578
+ updated_at?: string | null;
1579
+ user_id: string;
1580
+ workos_membership_id?: string | null;
1581
+ };
1582
+ Update: {
1583
+ config?: Json;
1584
+ created_at?: string | null;
1585
+ id?: string;
1586
+ membership_status?: string | null;
1587
+ organization_id?: string;
1588
+ role_slug?: string | null;
1589
+ updated_at?: string | null;
1590
+ user_id?: string;
1591
+ workos_membership_id?: string | null;
1592
+ };
1593
+ Relationships: [
1594
+ {
1595
+ foreignKeyName: "org_memberships_organization_id_fkey";
1596
+ columns: ["organization_id"];
1597
+ isOneToOne: false;
1598
+ referencedRelation: "organizations";
1599
+ referencedColumns: ["id"];
1600
+ },
1601
+ {
1602
+ foreignKeyName: "org_memberships_user_id_fkey";
1603
+ columns: ["user_id"];
1604
+ isOneToOne: false;
1605
+ referencedRelation: "users";
1606
+ referencedColumns: ["id"];
1607
+ }
1608
+ ];
1609
+ };
1610
+ organizations: {
1611
+ Row: {
1612
+ config: Json;
1613
+ created_at: string;
1614
+ id: string;
1615
+ is_test: boolean;
1616
+ metadata: Json;
1617
+ name: string;
1618
+ status: string;
1619
+ updated_at: string;
1620
+ workos_org_id: string;
1621
+ };
1622
+ Insert: {
1623
+ config?: Json;
1624
+ created_at?: string;
1625
+ id?: string;
1626
+ is_test?: boolean;
1627
+ metadata?: Json;
1628
+ name: string;
1629
+ status?: string;
1630
+ updated_at?: string;
1631
+ workos_org_id: string;
1632
+ };
1633
+ Update: {
1634
+ config?: Json;
1635
+ created_at?: string;
1636
+ id?: string;
1637
+ is_test?: boolean;
1638
+ metadata?: Json;
1639
+ name?: string;
1640
+ status?: string;
1641
+ updated_at?: string;
1642
+ workos_org_id?: string;
1643
+ };
1644
+ Relationships: [];
1645
+ };
1646
+ prj_milestones: {
1647
+ Row: {
1648
+ checklist: Json | null;
1649
+ completed_at: string | null;
1650
+ created_at: string;
1651
+ description: string | null;
1652
+ due_date: string | null;
1653
+ id: string;
1654
+ metadata: Json | null;
1655
+ name: string;
1656
+ organization_id: string;
1657
+ project_id: string;
1658
+ sequence: number;
1659
+ status: string;
1660
+ updated_at: string;
1661
+ };
1662
+ Insert: {
1663
+ checklist?: Json | null;
1664
+ completed_at?: string | null;
1665
+ created_at?: string;
1666
+ description?: string | null;
1667
+ due_date?: string | null;
1668
+ id?: string;
1669
+ metadata?: Json | null;
1670
+ name: string;
1671
+ organization_id: string;
1672
+ project_id: string;
1673
+ sequence?: number;
1674
+ status?: string;
1675
+ updated_at?: string;
1676
+ };
1677
+ Update: {
1678
+ checklist?: Json | null;
1679
+ completed_at?: string | null;
1680
+ created_at?: string;
1681
+ description?: string | null;
1682
+ due_date?: string | null;
1683
+ id?: string;
1684
+ metadata?: Json | null;
1685
+ name?: string;
1686
+ organization_id?: string;
1687
+ project_id?: string;
1688
+ sequence?: number;
1689
+ status?: string;
1690
+ updated_at?: string;
1691
+ };
1692
+ Relationships: [
1693
+ {
1694
+ foreignKeyName: "prj_milestones_organization_id_fkey";
1695
+ columns: ["organization_id"];
1696
+ isOneToOne: false;
1697
+ referencedRelation: "organizations";
1698
+ referencedColumns: ["id"];
1699
+ },
1700
+ {
1701
+ foreignKeyName: "prj_milestones_project_id_fkey";
1702
+ columns: ["project_id"];
1703
+ isOneToOne: false;
1704
+ referencedRelation: "prj_projects";
1705
+ referencedColumns: ["id"];
1706
+ }
1707
+ ];
1708
+ };
1709
+ prj_notes: {
1710
+ Row: {
1711
+ content: string;
1712
+ created_at: string;
1713
+ created_by: string | null;
1714
+ id: string;
1715
+ metadata: Json | null;
1716
+ milestone_id: string | null;
1717
+ occurred_at: string;
1718
+ organization_id: string;
1719
+ project_id: string;
1720
+ summary: string | null;
1721
+ task_id: string | null;
1722
+ type: string;
1723
+ };
1724
+ Insert: {
1725
+ content: string;
1726
+ created_at?: string;
1727
+ created_by?: string | null;
1728
+ id?: string;
1729
+ metadata?: Json | null;
1730
+ milestone_id?: string | null;
1731
+ occurred_at?: string;
1732
+ organization_id: string;
1733
+ project_id: string;
1734
+ summary?: string | null;
1735
+ task_id?: string | null;
1736
+ type?: string;
1737
+ };
1738
+ Update: {
1739
+ content?: string;
1740
+ created_at?: string;
1741
+ created_by?: string | null;
1742
+ id?: string;
1743
+ metadata?: Json | null;
1744
+ milestone_id?: string | null;
1745
+ occurred_at?: string;
1746
+ organization_id?: string;
1747
+ project_id?: string;
1748
+ summary?: string | null;
1749
+ task_id?: string | null;
1750
+ type?: string;
1751
+ };
1752
+ Relationships: [
1753
+ {
1754
+ foreignKeyName: "prj_notes_created_by_fkey";
1755
+ columns: ["created_by"];
1756
+ isOneToOne: false;
1757
+ referencedRelation: "users";
1758
+ referencedColumns: ["id"];
1759
+ },
1760
+ {
1761
+ foreignKeyName: "prj_notes_milestone_id_fkey";
1762
+ columns: ["milestone_id"];
1763
+ isOneToOne: false;
1764
+ referencedRelation: "prj_milestones";
1765
+ referencedColumns: ["id"];
1766
+ },
1767
+ {
1768
+ foreignKeyName: "prj_notes_organization_id_fkey";
1769
+ columns: ["organization_id"];
1770
+ isOneToOne: false;
1771
+ referencedRelation: "organizations";
1772
+ referencedColumns: ["id"];
1773
+ },
1774
+ {
1775
+ foreignKeyName: "prj_notes_project_id_fkey";
1776
+ columns: ["project_id"];
1777
+ isOneToOne: false;
1778
+ referencedRelation: "prj_projects";
1779
+ referencedColumns: ["id"];
1780
+ },
1781
+ {
1782
+ foreignKeyName: "prj_notes_task_id_fkey";
1783
+ columns: ["task_id"];
1784
+ isOneToOne: false;
1785
+ referencedRelation: "prj_tasks";
1786
+ referencedColumns: ["id"];
1787
+ }
1788
+ ];
1789
+ };
1790
+ prj_projects: {
1791
+ Row: {
1792
+ actual_end_date: string | null;
1793
+ client_company_id: string | null;
1794
+ contract_value: number | null;
1795
+ created_at: string;
1796
+ deal_id: string | null;
1797
+ description: string | null;
1798
+ id: string;
1799
+ kind: string;
1800
+ metadata: Json | null;
1801
+ name: string;
1802
+ organization_id: string;
1803
+ start_date: string | null;
1804
+ status: string;
1805
+ target_end_date: string | null;
1806
+ updated_at: string;
1807
+ };
1808
+ Insert: {
1809
+ actual_end_date?: string | null;
1810
+ client_company_id?: string | null;
1811
+ contract_value?: number | null;
1812
+ created_at?: string;
1813
+ deal_id?: string | null;
1814
+ description?: string | null;
1815
+ id?: string;
1816
+ kind?: string;
1817
+ metadata?: Json | null;
1818
+ name: string;
1819
+ organization_id: string;
1820
+ start_date?: string | null;
1821
+ status?: string;
1822
+ target_end_date?: string | null;
1823
+ updated_at?: string;
1824
+ };
1825
+ Update: {
1826
+ actual_end_date?: string | null;
1827
+ client_company_id?: string | null;
1828
+ contract_value?: number | null;
1829
+ created_at?: string;
1830
+ deal_id?: string | null;
1831
+ description?: string | null;
1832
+ id?: string;
1833
+ kind?: string;
1834
+ metadata?: Json | null;
1835
+ name?: string;
1836
+ organization_id?: string;
1837
+ start_date?: string | null;
1838
+ status?: string;
1839
+ target_end_date?: string | null;
1840
+ updated_at?: string;
1841
+ };
1842
+ Relationships: [
1843
+ {
1844
+ foreignKeyName: "prj_projects_client_company_id_fkey";
1845
+ columns: ["client_company_id"];
1846
+ isOneToOne: false;
1847
+ referencedRelation: "acq_companies";
1848
+ referencedColumns: ["id"];
1849
+ },
1850
+ {
1851
+ foreignKeyName: "prj_projects_deal_id_fkey";
1852
+ columns: ["deal_id"];
1853
+ isOneToOne: false;
1854
+ referencedRelation: "acq_deals";
1855
+ referencedColumns: ["id"];
1856
+ },
1857
+ {
1858
+ foreignKeyName: "prj_projects_organization_id_fkey";
1859
+ columns: ["organization_id"];
1860
+ isOneToOne: false;
1861
+ referencedRelation: "organizations";
1862
+ referencedColumns: ["id"];
1863
+ }
1864
+ ];
1865
+ };
1866
+ prj_tasks: {
1867
+ Row: {
1868
+ checklist: Json;
1869
+ completed_at: string | null;
1870
+ created_at: string;
1871
+ description: string | null;
1872
+ due_date: string | null;
1873
+ file_url: string | null;
1874
+ id: string;
1875
+ metadata: Json | null;
1876
+ milestone_id: string | null;
1877
+ name: string;
1878
+ organization_id: string;
1879
+ parent_task_id: string | null;
1880
+ project_id: string;
1881
+ resume_context: Json | null;
1882
+ status: string;
1883
+ type: string;
1884
+ updated_at: string;
1885
+ };
1886
+ Insert: {
1887
+ checklist?: Json;
1888
+ completed_at?: string | null;
1889
+ created_at?: string;
1890
+ description?: string | null;
1891
+ due_date?: string | null;
1892
+ file_url?: string | null;
1893
+ id?: string;
1894
+ metadata?: Json | null;
1895
+ milestone_id?: string | null;
1896
+ name: string;
1897
+ organization_id: string;
1898
+ parent_task_id?: string | null;
1899
+ project_id: string;
1900
+ resume_context?: Json | null;
1901
+ status?: string;
1902
+ type?: string;
1903
+ updated_at?: string;
1904
+ };
1905
+ Update: {
1906
+ checklist?: Json;
1907
+ completed_at?: string | null;
1908
+ created_at?: string;
1909
+ description?: string | null;
1910
+ due_date?: string | null;
1911
+ file_url?: string | null;
1912
+ id?: string;
1913
+ metadata?: Json | null;
1914
+ milestone_id?: string | null;
1915
+ name?: string;
1916
+ organization_id?: string;
1917
+ parent_task_id?: string | null;
1918
+ project_id?: string;
1919
+ resume_context?: Json | null;
1920
+ status?: string;
1921
+ type?: string;
1922
+ updated_at?: string;
1923
+ };
1924
+ Relationships: [
1925
+ {
1926
+ foreignKeyName: "prj_tasks_milestone_id_fkey";
1927
+ columns: ["milestone_id"];
1928
+ isOneToOne: false;
1929
+ referencedRelation: "prj_milestones";
1930
+ referencedColumns: ["id"];
1931
+ },
1932
+ {
1933
+ foreignKeyName: "prj_tasks_organization_id_fkey";
1934
+ columns: ["organization_id"];
1935
+ isOneToOne: false;
1936
+ referencedRelation: "organizations";
1937
+ referencedColumns: ["id"];
1938
+ },
1939
+ {
1940
+ foreignKeyName: "prj_tasks_parent_task_id_fkey";
1941
+ columns: ["parent_task_id"];
1942
+ isOneToOne: false;
1943
+ referencedRelation: "prj_tasks";
1944
+ referencedColumns: ["id"];
1945
+ },
1946
+ {
1947
+ foreignKeyName: "prj_tasks_project_id_fkey";
1948
+ columns: ["project_id"];
1949
+ isOneToOne: false;
1950
+ referencedRelation: "prj_projects";
1951
+ referencedColumns: ["id"];
1952
+ }
1953
+ ];
1954
+ };
1955
+ session_messages: {
1956
+ Row: {
1957
+ created_at: string | null;
1958
+ id: string;
1959
+ message: string;
1960
+ message_index: number | null;
1961
+ message_type: string | null;
1962
+ metadata: Json | null;
1963
+ role: string;
1964
+ session_id: string;
1965
+ session_turn_number: number;
1966
+ };
1967
+ Insert: {
1968
+ created_at?: string | null;
1969
+ id: string;
1970
+ message: string;
1971
+ message_index?: number | null;
1972
+ message_type?: string | null;
1973
+ metadata?: Json | null;
1974
+ role: string;
1975
+ session_id: string;
1976
+ session_turn_number: number;
1977
+ };
1978
+ Update: {
1979
+ created_at?: string | null;
1980
+ id?: string;
1981
+ message?: string;
1982
+ message_index?: number | null;
1983
+ message_type?: string | null;
1984
+ metadata?: Json | null;
1985
+ role?: string;
1986
+ session_id?: string;
1987
+ session_turn_number?: number;
1988
+ };
1989
+ Relationships: [
1990
+ {
1991
+ foreignKeyName: "session_messages_session_id_fkey";
1992
+ columns: ["session_id"];
1993
+ isOneToOne: false;
1994
+ referencedRelation: "sessions";
1995
+ referencedColumns: ["session_id"];
1996
+ }
1997
+ ];
1998
+ };
1999
+ sessions: {
2000
+ Row: {
2001
+ context_window_size: number;
2002
+ created_at: string | null;
2003
+ cumulative_input_tokens: number;
2004
+ cumulative_output_tokens: number;
2005
+ deleted_at: string | null;
2006
+ ended_at: string | null;
2007
+ memory_snapshot: Json;
2008
+ metadata: Json | null;
2009
+ organization_id: string;
2010
+ resource_id: string;
2011
+ session_id: string;
2012
+ session_total_turns: number | null;
2013
+ updated_at: string | null;
2014
+ user_id: string | null;
2015
+ };
2016
+ Insert: {
2017
+ context_window_size?: number;
2018
+ created_at?: string | null;
2019
+ cumulative_input_tokens?: number;
2020
+ cumulative_output_tokens?: number;
2021
+ deleted_at?: string | null;
2022
+ ended_at?: string | null;
2023
+ memory_snapshot: Json;
2024
+ metadata?: Json | null;
2025
+ organization_id: string;
2026
+ resource_id: string;
2027
+ session_id?: string;
2028
+ session_total_turns?: number | null;
2029
+ updated_at?: string | null;
2030
+ user_id?: string | null;
2031
+ };
2032
+ Update: {
2033
+ context_window_size?: number;
2034
+ created_at?: string | null;
2035
+ cumulative_input_tokens?: number;
2036
+ cumulative_output_tokens?: number;
2037
+ deleted_at?: string | null;
2038
+ ended_at?: string | null;
2039
+ memory_snapshot?: Json;
2040
+ metadata?: Json | null;
2041
+ organization_id?: string;
2042
+ resource_id?: string;
2043
+ session_id?: string;
2044
+ session_total_turns?: number | null;
2045
+ updated_at?: string | null;
2046
+ user_id?: string | null;
2047
+ };
2048
+ Relationships: [
2049
+ {
2050
+ foreignKeyName: "fk_organization";
2051
+ columns: ["organization_id"];
2052
+ isOneToOne: false;
2053
+ referencedRelation: "organizations";
2054
+ referencedColumns: ["id"];
2055
+ },
2056
+ {
2057
+ foreignKeyName: "fk_user";
2058
+ columns: ["user_id"];
2059
+ isOneToOne: false;
2060
+ referencedRelation: "users";
2061
+ referencedColumns: ["id"];
2062
+ }
2063
+ ];
2064
+ };
2065
+ task_schedules: {
2066
+ Row: {
2067
+ created_at: string;
2068
+ current_step: number;
2069
+ description: string | null;
2070
+ id: string;
2071
+ idempotency_key: string | null;
2072
+ last_execution_id: string | null;
2073
+ last_run_at: string | null;
2074
+ max_retries: number;
2075
+ metadata: Json | null;
2076
+ name: string;
2077
+ next_run_at: string | null;
2078
+ organization_id: string;
2079
+ origin_execution_id: string | null;
2080
+ origin_resource_id: string | null;
2081
+ origin_resource_type: string | null;
2082
+ retry_count: number;
2083
+ schedule_config: Json;
2084
+ status: string;
2085
+ target_resource_id: string;
2086
+ target_resource_type: string;
2087
+ updated_at: string;
2088
+ };
2089
+ Insert: {
2090
+ created_at?: string;
2091
+ current_step?: number;
2092
+ description?: string | null;
2093
+ id?: string;
2094
+ idempotency_key?: string | null;
2095
+ last_execution_id?: string | null;
2096
+ last_run_at?: string | null;
2097
+ max_retries?: number;
2098
+ metadata?: Json | null;
2099
+ name: string;
2100
+ next_run_at?: string | null;
2101
+ organization_id: string;
2102
+ origin_execution_id?: string | null;
2103
+ origin_resource_id?: string | null;
2104
+ origin_resource_type?: string | null;
2105
+ retry_count?: number;
2106
+ schedule_config: Json;
2107
+ status?: string;
2108
+ target_resource_id: string;
2109
+ target_resource_type: string;
2110
+ updated_at?: string;
2111
+ };
2112
+ Update: {
2113
+ created_at?: string;
2114
+ current_step?: number;
2115
+ description?: string | null;
2116
+ id?: string;
2117
+ idempotency_key?: string | null;
2118
+ last_execution_id?: string | null;
2119
+ last_run_at?: string | null;
2120
+ max_retries?: number;
2121
+ metadata?: Json | null;
2122
+ name?: string;
2123
+ next_run_at?: string | null;
2124
+ organization_id?: string;
2125
+ origin_execution_id?: string | null;
2126
+ origin_resource_id?: string | null;
2127
+ origin_resource_type?: string | null;
2128
+ retry_count?: number;
2129
+ schedule_config?: Json;
2130
+ status?: string;
2131
+ target_resource_id?: string;
2132
+ target_resource_type?: string;
2133
+ updated_at?: string;
2134
+ };
2135
+ Relationships: [
2136
+ {
2137
+ foreignKeyName: "task_schedules_organization_id_fkey";
2138
+ columns: ["organization_id"];
2139
+ isOneToOne: false;
2140
+ referencedRelation: "organizations";
2141
+ referencedColumns: ["id"];
2142
+ }
2143
+ ];
2144
+ };
2145
+ users: {
2146
+ Row: {
2147
+ config: Json;
2148
+ created_at: string;
2149
+ display_name: string | null;
2150
+ email: string;
2151
+ first_name: string | null;
2152
+ id: string;
2153
+ is_active: boolean;
2154
+ is_platform_admin: boolean | null;
2155
+ last_login_at: string | null;
2156
+ last_name: string | null;
2157
+ last_visited_org: string | null;
2158
+ profile_picture_url: string | null;
2159
+ updated_at: string;
2160
+ workos_user_id: string | null;
2161
+ };
2162
+ Insert: {
2163
+ config?: Json;
2164
+ created_at?: string;
2165
+ display_name?: string | null;
2166
+ email: string;
2167
+ first_name?: string | null;
2168
+ id?: string;
2169
+ is_active?: boolean;
2170
+ is_platform_admin?: boolean | null;
2171
+ last_login_at?: string | null;
2172
+ last_name?: string | null;
2173
+ last_visited_org?: string | null;
2174
+ profile_picture_url?: string | null;
2175
+ updated_at?: string;
2176
+ workos_user_id?: string | null;
2177
+ };
2178
+ Update: {
2179
+ config?: Json;
2180
+ created_at?: string;
2181
+ display_name?: string | null;
2182
+ email?: string;
2183
+ first_name?: string | null;
2184
+ id?: string;
2185
+ is_active?: boolean;
2186
+ is_platform_admin?: boolean | null;
2187
+ last_login_at?: string | null;
2188
+ last_name?: string | null;
2189
+ last_visited_org?: string | null;
2190
+ profile_picture_url?: string | null;
2191
+ updated_at?: string;
2192
+ workos_user_id?: string | null;
2193
+ };
2194
+ Relationships: [
2195
+ {
2196
+ foreignKeyName: "user_profiles_last_visited_org_fkey";
2197
+ columns: ["last_visited_org"];
2198
+ isOneToOne: false;
2199
+ referencedRelation: "organizations";
2200
+ referencedColumns: ["id"];
2201
+ }
2202
+ ];
2203
+ };
2204
+ webhook_endpoints: {
2205
+ Row: {
2206
+ created_at: string;
2207
+ description: string | null;
2208
+ id: string;
2209
+ key: string;
2210
+ last_triggered_at: string | null;
2211
+ name: string;
2212
+ organization_id: string;
2213
+ request_count: number;
2214
+ resource_id: string | null;
2215
+ status: string;
2216
+ updated_at: string;
2217
+ };
2218
+ Insert: {
2219
+ created_at?: string;
2220
+ description?: string | null;
2221
+ id?: string;
2222
+ key: string;
2223
+ last_triggered_at?: string | null;
2224
+ name: string;
2225
+ organization_id: string;
2226
+ request_count?: number;
2227
+ resource_id?: string | null;
2228
+ status?: string;
2229
+ updated_at?: string;
2230
+ };
2231
+ Update: {
2232
+ created_at?: string;
2233
+ description?: string | null;
2234
+ id?: string;
2235
+ key?: string;
2236
+ last_triggered_at?: string | null;
2237
+ name?: string;
2238
+ organization_id?: string;
2239
+ request_count?: number;
2240
+ resource_id?: string | null;
2241
+ status?: string;
2242
+ updated_at?: string;
2243
+ };
2244
+ Relationships: [
2245
+ {
2246
+ foreignKeyName: "webhook_endpoints_organization_id_fkey";
2247
+ columns: ["organization_id"];
2248
+ isOneToOne: false;
2249
+ referencedRelation: "organizations";
2250
+ referencedColumns: ["id"];
2251
+ }
2252
+ ];
2253
+ };
2254
+ };
2255
+ Views: {
2256
+ [_ in never]: never;
2257
+ };
2258
+ Functions: {
2259
+ acq_default_checklist: {
2260
+ Args: {
2261
+ p_platform: string;
2262
+ };
2263
+ Returns: Json;
2264
+ };
2265
+ append_deal_activity: {
2266
+ Args: {
2267
+ p_activity: Json;
2268
+ p_deal_id: string;
2269
+ p_organization_id: string;
2270
+ };
2271
+ Returns: undefined;
2272
+ };
2273
+ auth_jwt_claims: {
2274
+ Args: never;
2275
+ Returns: Json;
2276
+ };
2277
+ auth_uid_safe: {
2278
+ Args: never;
2279
+ Returns: string;
2280
+ };
2281
+ current_user_is_platform_admin: {
2282
+ Args: never;
2283
+ Returns: boolean;
2284
+ };
2285
+ current_user_supabase_id: {
2286
+ Args: never;
2287
+ Returns: string;
2288
+ };
2289
+ detect_stalled_executions: {
2290
+ Args: never;
2291
+ Returns: undefined;
2292
+ };
2293
+ execute_session_turn: {
2294
+ Args: {
2295
+ p_session_id: string;
2296
+ };
2297
+ Returns: {
2298
+ created_at: string;
2299
+ ended_at: string;
2300
+ memory_snapshot: Json;
2301
+ metadata: Json;
2302
+ organization_id: string;
2303
+ resource_id: string;
2304
+ session_id: string;
2305
+ session_total_turns: number;
2306
+ updated_at: string;
2307
+ user_id: string;
2308
+ }[];
2309
+ };
2310
+ get_storage_org_id: {
2311
+ Args: {
2312
+ file_path: string;
2313
+ };
2314
+ Returns: string;
2315
+ };
2316
+ get_workos_user_id: {
2317
+ Args: never;
2318
+ Returns: string;
2319
+ };
2320
+ is_org_admin: {
2321
+ Args: {
2322
+ org_id: string;
2323
+ };
2324
+ Returns: boolean;
2325
+ };
2326
+ is_org_member: {
2327
+ Args: {
2328
+ org_id: string;
2329
+ };
2330
+ Returns: boolean;
2331
+ };
2332
+ link_workos_membership_on_accept: {
2333
+ Args: {
2334
+ p_email: string;
2335
+ p_organization_id: string;
2336
+ p_workos_membership_id: string;
2337
+ };
2338
+ Returns: boolean;
2339
+ };
2340
+ pre_provision_invited_user: {
2341
+ Args: {
2342
+ p_email: string;
2343
+ p_organization_id: string;
2344
+ p_role_slug?: string;
2345
+ };
2346
+ Returns: Json;
2347
+ };
2348
+ process_due_schedules: {
2349
+ Args: never;
2350
+ Returns: Json;
2351
+ };
2352
+ upsert_user_profile: {
2353
+ Args: never;
2354
+ Returns: {
2355
+ profile_display_name: string;
2356
+ profile_email: string;
2357
+ profile_id: string;
2358
+ profile_workos_user_id: string;
2359
+ }[];
2360
+ };
2361
+ };
2362
+ Enums: {
2363
+ [_ in never]: never;
2364
+ };
2365
+ CompositeTypes: {
2366
+ [_ in never]: never;
2367
+ };
2368
+ };
2369
+ };
2370
+
2371
+ declare function getSupabaseClient(): SupabaseClient<Database>;
2372
+ declare const useSupabase: () => SupabaseClient<Database, "public", "public", {
2373
+ Tables: {
2374
+ acq_companies: {
2375
+ Row: {
2376
+ attio_company_id: string | null;
2377
+ batch_id: string | null;
2378
+ category: string | null;
2379
+ category_pain: string | null;
2380
+ created_at: string;
2381
+ domain: string | null;
2382
+ enrichment_data: Json | null;
2383
+ filter_reason: string | null;
2384
+ founded_year: number | null;
2385
+ id: string;
2386
+ linkedin_url: string | null;
2387
+ location_city: string | null;
2388
+ location_state: string | null;
2389
+ name: string;
2390
+ num_employees: number | null;
2391
+ organization_id: string;
2392
+ pipeline_status: Json;
2393
+ segment: string | null;
2394
+ source: string | null;
2395
+ status: string;
2396
+ updated_at: string;
2397
+ website: string | null;
2398
+ };
2399
+ Insert: {
2400
+ attio_company_id?: string | null;
2401
+ batch_id?: string | null;
2402
+ category?: string | null;
2403
+ category_pain?: string | null;
2404
+ created_at?: string;
2405
+ domain?: string | null;
2406
+ enrichment_data?: Json | null;
2407
+ filter_reason?: string | null;
2408
+ founded_year?: number | null;
2409
+ id?: string;
2410
+ linkedin_url?: string | null;
2411
+ location_city?: string | null;
2412
+ location_state?: string | null;
2413
+ name: string;
2414
+ num_employees?: number | null;
2415
+ organization_id: string;
2416
+ pipeline_status?: Json;
2417
+ segment?: string | null;
2418
+ source?: string | null;
2419
+ status?: string;
2420
+ updated_at?: string;
2421
+ website?: string | null;
2422
+ };
2423
+ Update: {
2424
+ attio_company_id?: string | null;
2425
+ batch_id?: string | null;
2426
+ category?: string | null;
2427
+ category_pain?: string | null;
2428
+ created_at?: string;
2429
+ domain?: string | null;
2430
+ enrichment_data?: Json | null;
2431
+ filter_reason?: string | null;
2432
+ founded_year?: number | null;
2433
+ id?: string;
2434
+ linkedin_url?: string | null;
2435
+ location_city?: string | null;
2436
+ location_state?: string | null;
2437
+ name?: string;
2438
+ num_employees?: number | null;
2439
+ organization_id?: string;
2440
+ pipeline_status?: Json;
2441
+ segment?: string | null;
2442
+ source?: string | null;
2443
+ status?: string;
2444
+ updated_at?: string;
2445
+ website?: string | null;
2446
+ };
2447
+ Relationships: [{
2448
+ foreignKeyName: "acq_companies_organization_id_fkey";
2449
+ columns: ["organization_id"];
2450
+ isOneToOne: false;
2451
+ referencedRelation: "organizations";
2452
+ referencedColumns: ["id"];
2453
+ }];
2454
+ };
2455
+ acq_contacts: {
2456
+ Row: {
2457
+ attio_person_id: string | null;
2458
+ batch_id: string | null;
2459
+ brochure_first_viewed_at: string | null;
2460
+ brochure_view_count: number;
2461
+ company_id: string | null;
2462
+ created_at: string;
2463
+ email: string;
2464
+ email_valid: string | null;
2465
+ enrichment_data: Json;
2466
+ filter_reason: string | null;
2467
+ first_name: string | null;
2468
+ headline: string | null;
2469
+ id: string;
2470
+ last_name: string | null;
2471
+ linkedin_url: string | null;
2472
+ nurture: boolean;
2473
+ opening_line: string | null;
2474
+ organization_id: string;
2475
+ pipeline_status: Json;
2476
+ source: string | null;
2477
+ source_id: string | null;
2478
+ status: string;
2479
+ title: string | null;
2480
+ updated_at: string;
2481
+ };
2482
+ Insert: {
2483
+ attio_person_id?: string | null;
2484
+ batch_id?: string | null;
2485
+ brochure_first_viewed_at?: string | null;
2486
+ brochure_view_count?: number;
2487
+ company_id?: string | null;
2488
+ created_at?: string;
2489
+ email: string;
2490
+ email_valid?: string | null;
2491
+ enrichment_data?: Json;
2492
+ filter_reason?: string | null;
2493
+ first_name?: string | null;
2494
+ headline?: string | null;
2495
+ id?: string;
2496
+ last_name?: string | null;
2497
+ linkedin_url?: string | null;
2498
+ nurture?: boolean;
2499
+ opening_line?: string | null;
2500
+ organization_id: string;
2501
+ pipeline_status?: Json;
2502
+ source?: string | null;
2503
+ source_id?: string | null;
2504
+ status?: string;
2505
+ title?: string | null;
2506
+ updated_at?: string;
2507
+ };
2508
+ Update: {
2509
+ attio_person_id?: string | null;
2510
+ batch_id?: string | null;
2511
+ brochure_first_viewed_at?: string | null;
2512
+ brochure_view_count?: number;
2513
+ company_id?: string | null;
2514
+ created_at?: string;
2515
+ email?: string;
2516
+ email_valid?: string | null;
2517
+ enrichment_data?: Json;
2518
+ filter_reason?: string | null;
2519
+ first_name?: string | null;
2520
+ headline?: string | null;
2521
+ id?: string;
2522
+ last_name?: string | null;
2523
+ linkedin_url?: string | null;
2524
+ nurture?: boolean;
2525
+ opening_line?: string | null;
2526
+ organization_id?: string;
2527
+ pipeline_status?: Json;
2528
+ source?: string | null;
2529
+ source_id?: string | null;
2530
+ status?: string;
2531
+ title?: string | null;
2532
+ updated_at?: string;
2533
+ };
2534
+ Relationships: [{
2535
+ foreignKeyName: "acq_contacts_company_id_fkey";
2536
+ columns: ["company_id"];
2537
+ isOneToOne: false;
2538
+ referencedRelation: "acq_companies";
2539
+ referencedColumns: ["id"];
2540
+ }, {
2541
+ foreignKeyName: "acq_contacts_organization_id_fkey";
2542
+ columns: ["organization_id"];
2543
+ isOneToOne: false;
2544
+ referencedRelation: "organizations";
2545
+ referencedColumns: ["id"];
2546
+ }];
2547
+ };
2548
+ acq_content: {
2549
+ Row: {
2550
+ body: string | null;
2551
+ created_at: string;
2552
+ id: string;
2553
+ organization_id: string;
2554
+ pillar: string;
2555
+ status: string;
2556
+ title: string;
2557
+ updated_at: string;
2558
+ };
2559
+ Insert: {
2560
+ body?: string | null;
2561
+ created_at?: string;
2562
+ id?: string;
2563
+ organization_id: string;
2564
+ pillar: string;
2565
+ status?: string;
2566
+ title: string;
2567
+ updated_at?: string;
2568
+ };
2569
+ Update: {
2570
+ body?: string | null;
2571
+ created_at?: string;
2572
+ id?: string;
2573
+ organization_id?: string;
2574
+ pillar?: string;
2575
+ status?: string;
2576
+ title?: string;
2577
+ updated_at?: string;
2578
+ };
2579
+ Relationships: [{
2580
+ foreignKeyName: "acq_content_organization_id_fkey";
2581
+ columns: ["organization_id"];
2582
+ isOneToOne: false;
2583
+ referencedRelation: "organizations";
2584
+ referencedColumns: ["id"];
2585
+ }];
2586
+ };
2587
+ acq_content_distributions: {
2588
+ Row: {
2589
+ adapted_body: string | null;
2590
+ checklist: Json | null;
2591
+ content_id: string;
2592
+ created_at: string;
2593
+ format: string;
2594
+ id: string;
2595
+ media_urls: Json;
2596
+ metrics: Json;
2597
+ metrics_updated_at: string | null;
2598
+ organization_id: string;
2599
+ platform: string;
2600
+ platform_content: Json | null;
2601
+ platform_post_id: string | null;
2602
+ platform_url: string | null;
2603
+ published_at: string | null;
2604
+ status: string;
2605
+ updated_at: string;
2606
+ };
2607
+ Insert: {
2608
+ adapted_body?: string | null;
2609
+ checklist?: Json | null;
2610
+ content_id: string;
2611
+ created_at?: string;
2612
+ format: string;
2613
+ id?: string;
2614
+ media_urls?: Json;
2615
+ metrics?: Json;
2616
+ metrics_updated_at?: string | null;
2617
+ organization_id: string;
2618
+ platform: string;
2619
+ platform_content?: Json | null;
2620
+ platform_post_id?: string | null;
2621
+ platform_url?: string | null;
2622
+ published_at?: string | null;
2623
+ status?: string;
2624
+ updated_at?: string;
2625
+ };
2626
+ Update: {
2627
+ adapted_body?: string | null;
2628
+ checklist?: Json | null;
2629
+ content_id?: string;
2630
+ created_at?: string;
2631
+ format?: string;
2632
+ id?: string;
2633
+ media_urls?: Json;
2634
+ metrics?: Json;
2635
+ metrics_updated_at?: string | null;
2636
+ organization_id?: string;
2637
+ platform?: string;
2638
+ platform_content?: Json | null;
2639
+ platform_post_id?: string | null;
2640
+ platform_url?: string | null;
2641
+ published_at?: string | null;
2642
+ status?: string;
2643
+ updated_at?: string;
2644
+ };
2645
+ Relationships: [{
2646
+ foreignKeyName: "acq_content_distributions_content_id_fkey";
2647
+ columns: ["content_id"];
2648
+ isOneToOne: false;
2649
+ referencedRelation: "acq_content";
2650
+ referencedColumns: ["id"];
2651
+ }, {
2652
+ foreignKeyName: "acq_content_distributions_organization_id_fkey";
2653
+ columns: ["organization_id"];
2654
+ isOneToOne: false;
2655
+ referencedRelation: "organizations";
2656
+ referencedColumns: ["id"];
2657
+ }];
2658
+ };
2659
+ acq_deals: {
2660
+ Row: {
2661
+ activity_log: Json;
2662
+ attio_deal_id: string;
2663
+ cached_stage: string | null;
2664
+ closed_lost_at: string | null;
2665
+ closed_lost_reason: string | null;
2666
+ contact_email: string;
2667
+ contact_id: string | null;
2668
+ created_at: string;
2669
+ discovery_data: Json | null;
2670
+ discovery_submitted_at: string | null;
2671
+ discovery_submitted_by: string | null;
2672
+ id: string;
2673
+ initial_fee: number | null;
2674
+ monthly_fee: number | null;
2675
+ organization_id: string;
2676
+ payment_link_sent_at: string | null;
2677
+ payment_received_at: string | null;
2678
+ proposal_data: Json | null;
2679
+ proposal_generated_at: string | null;
2680
+ proposal_pdf_url: string | null;
2681
+ proposal_reviewed_at: string | null;
2682
+ proposal_reviewed_by: string | null;
2683
+ proposal_sent_at: string | null;
2684
+ proposal_signed_at: string | null;
2685
+ proposal_status: string | null;
2686
+ signature_envelope_id: string | null;
2687
+ source_list_id: string | null;
2688
+ source_type: string | null;
2689
+ stripe_payment_id: string | null;
2690
+ stripe_payment_link: string | null;
2691
+ stripe_payment_link_id: string | null;
2692
+ stripe_subscription_id: string | null;
2693
+ updated_at: string;
2694
+ };
2695
+ Insert: {
2696
+ activity_log?: Json;
2697
+ attio_deal_id: string;
2698
+ cached_stage?: string | null;
2699
+ closed_lost_at?: string | null;
2700
+ closed_lost_reason?: string | null;
2701
+ contact_email: string;
2702
+ contact_id?: string | null;
2703
+ created_at?: string;
2704
+ discovery_data?: Json | null;
2705
+ discovery_submitted_at?: string | null;
2706
+ discovery_submitted_by?: string | null;
2707
+ id?: string;
2708
+ initial_fee?: number | null;
2709
+ monthly_fee?: number | null;
2710
+ organization_id: string;
2711
+ payment_link_sent_at?: string | null;
2712
+ payment_received_at?: string | null;
2713
+ proposal_data?: Json | null;
2714
+ proposal_generated_at?: string | null;
2715
+ proposal_pdf_url?: string | null;
2716
+ proposal_reviewed_at?: string | null;
2717
+ proposal_reviewed_by?: string | null;
2718
+ proposal_sent_at?: string | null;
2719
+ proposal_signed_at?: string | null;
2720
+ proposal_status?: string | null;
2721
+ signature_envelope_id?: string | null;
2722
+ source_list_id?: string | null;
2723
+ source_type?: string | null;
2724
+ stripe_payment_id?: string | null;
2725
+ stripe_payment_link?: string | null;
2726
+ stripe_payment_link_id?: string | null;
2727
+ stripe_subscription_id?: string | null;
2728
+ updated_at?: string;
2729
+ };
2730
+ Update: {
2731
+ activity_log?: Json;
2732
+ attio_deal_id?: string;
2733
+ cached_stage?: string | null;
2734
+ closed_lost_at?: string | null;
2735
+ closed_lost_reason?: string | null;
2736
+ contact_email?: string;
2737
+ contact_id?: string | null;
2738
+ created_at?: string;
2739
+ discovery_data?: Json | null;
2740
+ discovery_submitted_at?: string | null;
2741
+ discovery_submitted_by?: string | null;
2742
+ id?: string;
2743
+ initial_fee?: number | null;
2744
+ monthly_fee?: number | null;
2745
+ organization_id?: string;
2746
+ payment_link_sent_at?: string | null;
2747
+ payment_received_at?: string | null;
2748
+ proposal_data?: Json | null;
2749
+ proposal_generated_at?: string | null;
2750
+ proposal_pdf_url?: string | null;
2751
+ proposal_reviewed_at?: string | null;
2752
+ proposal_reviewed_by?: string | null;
2753
+ proposal_sent_at?: string | null;
2754
+ proposal_signed_at?: string | null;
2755
+ proposal_status?: string | null;
2756
+ signature_envelope_id?: string | null;
2757
+ source_list_id?: string | null;
2758
+ source_type?: string | null;
2759
+ stripe_payment_id?: string | null;
2760
+ stripe_payment_link?: string | null;
2761
+ stripe_payment_link_id?: string | null;
2762
+ stripe_subscription_id?: string | null;
2763
+ updated_at?: string;
2764
+ };
2765
+ Relationships: [{
2766
+ foreignKeyName: "acq_deals_contact_id_fkey";
2767
+ columns: ["contact_id"];
2768
+ isOneToOne: false;
2769
+ referencedRelation: "acq_contacts";
2770
+ referencedColumns: ["id"];
2771
+ }, {
2772
+ foreignKeyName: "acq_deals_organization_id_fkey";
2773
+ columns: ["organization_id"];
2774
+ isOneToOne: false;
2775
+ referencedRelation: "organizations";
2776
+ referencedColumns: ["id"];
2777
+ }, {
2778
+ foreignKeyName: "acq_deals_source_list_id_fkey";
2779
+ columns: ["source_list_id"];
2780
+ isOneToOne: false;
2781
+ referencedRelation: "acq_lists";
2782
+ referencedColumns: ["id"];
2783
+ }];
2784
+ };
2785
+ acq_list_members: {
2786
+ Row: {
2787
+ added_at: string;
2788
+ added_by: string | null;
2789
+ contact_id: string;
2790
+ id: string;
2791
+ list_id: string;
2792
+ };
2793
+ Insert: {
2794
+ added_at?: string;
2795
+ added_by?: string | null;
2796
+ contact_id: string;
2797
+ id?: string;
2798
+ list_id: string;
2799
+ };
2800
+ Update: {
2801
+ added_at?: string;
2802
+ added_by?: string | null;
2803
+ contact_id?: string;
2804
+ id?: string;
2805
+ list_id?: string;
2806
+ };
2807
+ Relationships: [{
2808
+ foreignKeyName: "acq_list_members_contact_id_fkey";
2809
+ columns: ["contact_id"];
2810
+ isOneToOne: false;
2811
+ referencedRelation: "acq_contacts";
2812
+ referencedColumns: ["id"];
2813
+ }, {
2814
+ foreignKeyName: "acq_list_members_list_id_fkey";
2815
+ columns: ["list_id"];
2816
+ isOneToOne: false;
2817
+ referencedRelation: "acq_lists";
2818
+ referencedColumns: ["id"];
2819
+ }];
2820
+ };
2821
+ acq_lists: {
2822
+ Row: {
2823
+ batch_ids: string[];
2824
+ completed_at: string | null;
2825
+ created_at: string;
2826
+ description: string | null;
2827
+ id: string;
2828
+ instantly_campaign_id: string | null;
2829
+ launched_at: string | null;
2830
+ metadata: Json;
2831
+ name: string;
2832
+ organization_id: string;
2833
+ status: string;
2834
+ type: string;
2835
+ };
2836
+ Insert: {
2837
+ batch_ids?: string[];
2838
+ completed_at?: string | null;
2839
+ created_at?: string;
2840
+ description?: string | null;
2841
+ id?: string;
2842
+ instantly_campaign_id?: string | null;
2843
+ launched_at?: string | null;
2844
+ metadata?: Json;
2845
+ name: string;
2846
+ organization_id: string;
2847
+ status?: string;
2848
+ type?: string;
2849
+ };
2850
+ Update: {
2851
+ batch_ids?: string[];
2852
+ completed_at?: string | null;
2853
+ created_at?: string;
2854
+ description?: string | null;
2855
+ id?: string;
2856
+ instantly_campaign_id?: string | null;
2857
+ launched_at?: string | null;
2858
+ metadata?: Json;
2859
+ name?: string;
2860
+ organization_id?: string;
2861
+ status?: string;
2862
+ type?: string;
2863
+ };
2864
+ Relationships: [{
2865
+ foreignKeyName: "acq_lists_organization_id_fkey";
2866
+ columns: ["organization_id"];
2867
+ isOneToOne: false;
2868
+ referencedRelation: "organizations";
2869
+ referencedColumns: ["id"];
2870
+ }];
2871
+ };
2872
+ acq_seo_metrics: {
2873
+ Row: {
2874
+ ai_citations: Json | null;
2875
+ avg_position: number | null;
2876
+ clicks: number | null;
2877
+ created_at: string;
2878
+ cta_clicks: number | null;
2879
+ ctr: number | null;
2880
+ data_point_count: number | null;
2881
+ faq_count: number | null;
2882
+ form_submissions: number | null;
2883
+ id: string;
2884
+ impressions: number | null;
2885
+ organization_id: string;
2886
+ period: string;
2887
+ quality_score: number | null;
2888
+ readability: number | null;
2889
+ scroll_100: number | null;
2890
+ scroll_25: number | null;
2891
+ scroll_50: number | null;
2892
+ scroll_75: number | null;
2893
+ seo_page_id: string;
2894
+ word_count: number | null;
2895
+ };
2896
+ Insert: {
2897
+ ai_citations?: Json | null;
2898
+ avg_position?: number | null;
2899
+ clicks?: number | null;
2900
+ created_at?: string;
2901
+ cta_clicks?: number | null;
2902
+ ctr?: number | null;
2903
+ data_point_count?: number | null;
2904
+ faq_count?: number | null;
2905
+ form_submissions?: number | null;
2906
+ id?: string;
2907
+ impressions?: number | null;
2908
+ organization_id: string;
2909
+ period: string;
2910
+ quality_score?: number | null;
2911
+ readability?: number | null;
2912
+ scroll_100?: number | null;
2913
+ scroll_25?: number | null;
2914
+ scroll_50?: number | null;
2915
+ scroll_75?: number | null;
2916
+ seo_page_id: string;
2917
+ word_count?: number | null;
2918
+ };
2919
+ Update: {
2920
+ ai_citations?: Json | null;
2921
+ avg_position?: number | null;
2922
+ clicks?: number | null;
2923
+ created_at?: string;
2924
+ cta_clicks?: number | null;
2925
+ ctr?: number | null;
2926
+ data_point_count?: number | null;
2927
+ faq_count?: number | null;
2928
+ form_submissions?: number | null;
2929
+ id?: string;
2930
+ impressions?: number | null;
2931
+ organization_id?: string;
2932
+ period?: string;
2933
+ quality_score?: number | null;
2934
+ readability?: number | null;
2935
+ scroll_100?: number | null;
2936
+ scroll_25?: number | null;
2937
+ scroll_50?: number | null;
2938
+ scroll_75?: number | null;
2939
+ seo_page_id?: string;
2940
+ word_count?: number | null;
2941
+ };
2942
+ Relationships: [{
2943
+ foreignKeyName: "acq_seo_metrics_organization_id_fkey";
2944
+ columns: ["organization_id"];
2945
+ isOneToOne: false;
2946
+ referencedRelation: "organizations";
2947
+ referencedColumns: ["id"];
2948
+ }, {
2949
+ foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
2950
+ columns: ["seo_page_id"];
2951
+ isOneToOne: false;
2952
+ referencedRelation: "acq_seo_pages";
2953
+ referencedColumns: ["id"];
2954
+ }];
2955
+ };
2956
+ acq_seo_pages: {
2957
+ Row: {
2958
+ city: string | null;
2959
+ content: Json | null;
2960
+ created_at: string;
2961
+ faq_items: Json | null;
2962
+ hero_image_url: string | null;
2963
+ id: string;
2964
+ internal_links: Json | null;
2965
+ local_data: Json | null;
2966
+ meta_description: string | null;
2967
+ organization_id: string;
2968
+ page_type: string;
2969
+ published_at: string | null;
2970
+ refreshed_at: string | null;
2971
+ schema_markup: Json | null;
2972
+ slug: string;
2973
+ state: string | null;
2974
+ status: string;
2975
+ title: string;
2976
+ updated_at: string;
2977
+ use_case: string | null;
2978
+ vertical: string;
2979
+ };
2980
+ Insert: {
2981
+ city?: string | null;
2982
+ content?: Json | null;
2983
+ created_at?: string;
2984
+ faq_items?: Json | null;
2985
+ hero_image_url?: string | null;
2986
+ id?: string;
2987
+ internal_links?: Json | null;
2988
+ local_data?: Json | null;
2989
+ meta_description?: string | null;
2990
+ organization_id: string;
2991
+ page_type: string;
2992
+ published_at?: string | null;
2993
+ refreshed_at?: string | null;
2994
+ schema_markup?: Json | null;
2995
+ slug: string;
2996
+ state?: string | null;
2997
+ status?: string;
2998
+ title: string;
2999
+ updated_at?: string;
3000
+ use_case?: string | null;
3001
+ vertical: string;
3002
+ };
3003
+ Update: {
3004
+ city?: string | null;
3005
+ content?: Json | null;
3006
+ created_at?: string;
3007
+ faq_items?: Json | null;
3008
+ hero_image_url?: string | null;
3009
+ id?: string;
3010
+ internal_links?: Json | null;
3011
+ local_data?: Json | null;
3012
+ meta_description?: string | null;
3013
+ organization_id?: string;
3014
+ page_type?: string;
3015
+ published_at?: string | null;
3016
+ refreshed_at?: string | null;
3017
+ schema_markup?: Json | null;
3018
+ slug?: string;
3019
+ state?: string | null;
3020
+ status?: string;
3021
+ title?: string;
3022
+ updated_at?: string;
3023
+ use_case?: string | null;
3024
+ vertical?: string;
3025
+ };
3026
+ Relationships: [{
3027
+ foreignKeyName: "acq_seo_pages_organization_id_fkey";
3028
+ columns: ["organization_id"];
3029
+ isOneToOne: false;
3030
+ referencedRelation: "organizations";
3031
+ referencedColumns: ["id"];
3032
+ }];
3033
+ };
3034
+ acq_social_posts: {
3035
+ Row: {
3036
+ author_name: string;
3037
+ author_url: string | null;
3038
+ comments_count: number;
3039
+ created_at: string;
3040
+ discovered_at: string;
3041
+ engagement_count: number;
3042
+ feedback: string | null;
3043
+ final_response: string | null;
3044
+ fully_reviewed: boolean;
3045
+ id: string;
3046
+ initial_draft: string | null;
3047
+ matched_keywords: string[];
3048
+ matched_query: string | null;
3049
+ metadata: Json;
3050
+ organization_id: string;
3051
+ platform: string;
3052
+ platform_post_id: string;
3053
+ post_text: string;
3054
+ post_title: string;
3055
+ post_url: string;
3056
+ posted_at: string;
3057
+ relevance_score: number;
3058
+ responded_at: string | null;
3059
+ reviewed_at: string | null;
3060
+ skip_reason: string | null;
3061
+ source_category: string | null;
3062
+ status: string;
3063
+ updated_at: string;
3064
+ };
3065
+ Insert: {
3066
+ author_name: string;
3067
+ author_url?: string | null;
3068
+ comments_count?: number;
3069
+ created_at?: string;
3070
+ discovered_at?: string;
3071
+ engagement_count?: number;
3072
+ feedback?: string | null;
3073
+ final_response?: string | null;
3074
+ fully_reviewed?: boolean;
3075
+ id?: string;
3076
+ initial_draft?: string | null;
3077
+ matched_keywords?: string[];
3078
+ matched_query?: string | null;
3079
+ metadata?: Json;
3080
+ organization_id: string;
3081
+ platform: string;
3082
+ platform_post_id: string;
3083
+ post_text: string;
3084
+ post_title: string;
3085
+ post_url: string;
3086
+ posted_at: string;
3087
+ relevance_score?: number;
3088
+ responded_at?: string | null;
3089
+ reviewed_at?: string | null;
3090
+ skip_reason?: string | null;
3091
+ source_category?: string | null;
3092
+ status?: string;
3093
+ updated_at?: string;
3094
+ };
3095
+ Update: {
3096
+ author_name?: string;
3097
+ author_url?: string | null;
3098
+ comments_count?: number;
3099
+ created_at?: string;
3100
+ discovered_at?: string;
3101
+ engagement_count?: number;
3102
+ feedback?: string | null;
3103
+ final_response?: string | null;
3104
+ fully_reviewed?: boolean;
3105
+ id?: string;
3106
+ initial_draft?: string | null;
3107
+ matched_keywords?: string[];
3108
+ matched_query?: string | null;
3109
+ metadata?: Json;
3110
+ organization_id?: string;
3111
+ platform?: string;
3112
+ platform_post_id?: string;
3113
+ post_text?: string;
3114
+ post_title?: string;
3115
+ post_url?: string;
3116
+ posted_at?: string;
3117
+ relevance_score?: number;
3118
+ responded_at?: string | null;
3119
+ reviewed_at?: string | null;
3120
+ skip_reason?: string | null;
3121
+ source_category?: string | null;
3122
+ status?: string;
3123
+ updated_at?: string;
3124
+ };
3125
+ Relationships: [{
3126
+ foreignKeyName: "acq_social_posts_organization_id_fkey";
3127
+ columns: ["organization_id"];
3128
+ isOneToOne: false;
3129
+ referencedRelation: "organizations";
3130
+ referencedColumns: ["id"];
3131
+ }];
3132
+ };
3133
+ activities: {
3134
+ Row: {
3135
+ activity_type: string;
3136
+ actor_id: string | null;
3137
+ actor_type: string | null;
3138
+ created_at: string;
3139
+ description: string | null;
3140
+ entity_id: string;
3141
+ entity_name: string | null;
3142
+ entity_type: string;
3143
+ id: string;
3144
+ metadata: Json | null;
3145
+ occurred_at: string;
3146
+ organization_id: string;
3147
+ status: string;
3148
+ title: string;
3149
+ };
3150
+ Insert: {
3151
+ activity_type: string;
3152
+ actor_id?: string | null;
3153
+ actor_type?: string | null;
3154
+ created_at?: string;
3155
+ description?: string | null;
3156
+ entity_id: string;
3157
+ entity_name?: string | null;
3158
+ entity_type: string;
3159
+ id?: string;
3160
+ metadata?: Json | null;
3161
+ occurred_at?: string;
3162
+ organization_id: string;
3163
+ status: string;
3164
+ title: string;
3165
+ };
3166
+ Update: {
3167
+ activity_type?: string;
3168
+ actor_id?: string | null;
3169
+ actor_type?: string | null;
3170
+ created_at?: string;
3171
+ description?: string | null;
3172
+ entity_id?: string;
3173
+ entity_name?: string | null;
3174
+ entity_type?: string;
3175
+ id?: string;
3176
+ metadata?: Json | null;
3177
+ occurred_at?: string;
3178
+ organization_id?: string;
3179
+ status?: string;
3180
+ title?: string;
3181
+ };
3182
+ Relationships: [{
3183
+ foreignKeyName: "activities_organization_id_fkey";
3184
+ columns: ["organization_id"];
3185
+ isOneToOne: false;
3186
+ referencedRelation: "organizations";
3187
+ referencedColumns: ["id"];
3188
+ }];
3189
+ };
3190
+ api_keys: {
3191
+ Row: {
3192
+ created_at: string | null;
3193
+ id: string;
3194
+ key_hash: string;
3195
+ last_used_at: string | null;
3196
+ name: string;
3197
+ organization_id: string;
3198
+ };
3199
+ Insert: {
3200
+ created_at?: string | null;
3201
+ id?: string;
3202
+ key_hash: string;
3203
+ last_used_at?: string | null;
3204
+ name: string;
3205
+ organization_id: string;
3206
+ };
3207
+ Update: {
3208
+ created_at?: string | null;
3209
+ id?: string;
3210
+ key_hash?: string;
3211
+ last_used_at?: string | null;
3212
+ name?: string;
3213
+ organization_id?: string;
3214
+ };
3215
+ Relationships: [{
3216
+ foreignKeyName: "api_keys_organization_id_fkey";
3217
+ columns: ["organization_id"];
3218
+ isOneToOne: false;
3219
+ referencedRelation: "organizations";
3220
+ referencedColumns: ["id"];
3221
+ }];
3222
+ };
3223
+ calibration_projects: {
3224
+ Row: {
3225
+ created_at: string | null;
3226
+ description: string | null;
3227
+ id: string;
3228
+ name: string;
3229
+ organization_id: string;
3230
+ resource_id: string;
3231
+ resource_type: string;
3232
+ updated_at: string | null;
3233
+ };
3234
+ Insert: {
3235
+ created_at?: string | null;
3236
+ description?: string | null;
3237
+ id?: string;
3238
+ name: string;
3239
+ organization_id: string;
3240
+ resource_id: string;
3241
+ resource_type: string;
3242
+ updated_at?: string | null;
3243
+ };
3244
+ Update: {
3245
+ created_at?: string | null;
3246
+ description?: string | null;
3247
+ id?: string;
3248
+ name?: string;
3249
+ organization_id?: string;
3250
+ resource_id?: string;
3251
+ resource_type?: string;
3252
+ updated_at?: string | null;
3253
+ };
3254
+ Relationships: [{
3255
+ foreignKeyName: "calibration_projects_organization_id_fkey";
3256
+ columns: ["organization_id"];
3257
+ isOneToOne: false;
3258
+ referencedRelation: "organizations";
3259
+ referencedColumns: ["id"];
3260
+ }];
3261
+ };
3262
+ calibration_runs: {
3263
+ Row: {
3264
+ completed_at: string | null;
3265
+ config_variants: Json;
3266
+ created_at: string | null;
3267
+ description: string | null;
3268
+ execution_mode: string;
3269
+ grader_model: string | null;
3270
+ grading_rubric: Json | null;
3271
+ id: string;
3272
+ name: string;
3273
+ organization_id: string;
3274
+ project_id: string;
3275
+ results: Json;
3276
+ status: string;
3277
+ test_inputs: Json;
3278
+ };
3279
+ Insert: {
3280
+ completed_at?: string | null;
3281
+ config_variants: Json;
3282
+ created_at?: string | null;
3283
+ description?: string | null;
3284
+ execution_mode?: string;
3285
+ grader_model?: string | null;
3286
+ grading_rubric?: Json | null;
3287
+ id?: string;
3288
+ name: string;
3289
+ organization_id: string;
3290
+ project_id: string;
3291
+ results?: Json;
3292
+ status?: string;
3293
+ test_inputs: Json;
3294
+ };
3295
+ Update: {
3296
+ completed_at?: string | null;
3297
+ config_variants?: Json;
3298
+ created_at?: string | null;
3299
+ description?: string | null;
3300
+ execution_mode?: string;
3301
+ grader_model?: string | null;
3302
+ grading_rubric?: Json | null;
3303
+ id?: string;
3304
+ name?: string;
3305
+ organization_id?: string;
3306
+ project_id?: string;
3307
+ results?: Json;
3308
+ status?: string;
3309
+ test_inputs?: Json;
3310
+ };
3311
+ Relationships: [{
3312
+ foreignKeyName: "calibration_runs_organization_id_fkey";
3313
+ columns: ["organization_id"];
3314
+ isOneToOne: false;
3315
+ referencedRelation: "organizations";
3316
+ referencedColumns: ["id"];
3317
+ }, {
3318
+ foreignKeyName: "calibration_runs_project_id_fkey";
3319
+ columns: ["project_id"];
3320
+ isOneToOne: false;
3321
+ referencedRelation: "calibration_projects";
3322
+ referencedColumns: ["id"];
3323
+ }];
3324
+ };
3325
+ command_queue: {
3326
+ Row: {
3327
+ action_payload: Json | null;
3328
+ actions: Json;
3329
+ completed_at: string | null;
3330
+ completed_by: string | null;
3331
+ context: Json;
3332
+ created_at: string;
3333
+ description: string | null;
3334
+ expires_at: string | null;
3335
+ human_checkpoint: string | null;
3336
+ id: string;
3337
+ idempotency_key: string | null;
3338
+ metadata: Json | null;
3339
+ organization_id: string;
3340
+ origin_execution_id: string;
3341
+ origin_resource_id: string;
3342
+ origin_resource_type: string;
3343
+ priority: number;
3344
+ selected_action: string | null;
3345
+ status: string;
3346
+ target_execution_id: string | null;
3347
+ target_resource_id: string | null;
3348
+ target_resource_type: string | null;
3349
+ };
3350
+ Insert: {
3351
+ action_payload?: Json | null;
3352
+ actions: Json;
3353
+ completed_at?: string | null;
3354
+ completed_by?: string | null;
3355
+ context: Json;
3356
+ created_at?: string;
3357
+ description?: string | null;
3358
+ expires_at?: string | null;
3359
+ human_checkpoint?: string | null;
3360
+ id?: string;
3361
+ idempotency_key?: string | null;
3362
+ metadata?: Json | null;
3363
+ organization_id: string;
3364
+ origin_execution_id: string;
3365
+ origin_resource_id: string;
3366
+ origin_resource_type: string;
3367
+ priority?: number;
3368
+ selected_action?: string | null;
3369
+ status?: string;
3370
+ target_execution_id?: string | null;
3371
+ target_resource_id?: string | null;
3372
+ target_resource_type?: string | null;
3373
+ };
3374
+ Update: {
3375
+ action_payload?: Json | null;
3376
+ actions?: Json;
3377
+ completed_at?: string | null;
3378
+ completed_by?: string | null;
3379
+ context?: Json;
3380
+ created_at?: string;
3381
+ description?: string | null;
3382
+ expires_at?: string | null;
3383
+ human_checkpoint?: string | null;
3384
+ id?: string;
3385
+ idempotency_key?: string | null;
3386
+ metadata?: Json | null;
3387
+ organization_id?: string;
3388
+ origin_execution_id?: string;
3389
+ origin_resource_id?: string;
3390
+ origin_resource_type?: string;
3391
+ priority?: number;
3392
+ selected_action?: string | null;
3393
+ status?: string;
3394
+ target_execution_id?: string | null;
3395
+ target_resource_id?: string | null;
3396
+ target_resource_type?: string | null;
3397
+ };
3398
+ Relationships: [{
3399
+ foreignKeyName: "command_queue_completed_by_fkey";
3400
+ columns: ["completed_by"];
3401
+ isOneToOne: false;
3402
+ referencedRelation: "users";
3403
+ referencedColumns: ["id"];
3404
+ }, {
3405
+ foreignKeyName: "command_queue_organization_id_fkey";
3406
+ columns: ["organization_id"];
3407
+ isOneToOne: false;
3408
+ referencedRelation: "organizations";
3409
+ referencedColumns: ["id"];
3410
+ }, {
3411
+ foreignKeyName: "command_queue_target_execution_id_fkey";
3412
+ columns: ["target_execution_id"];
3413
+ isOneToOne: false;
3414
+ referencedRelation: "execution_logs";
3415
+ referencedColumns: ["execution_id"];
3416
+ }];
3417
+ };
3418
+ credentials: {
3419
+ Row: {
3420
+ created_at: string;
3421
+ created_by: string | null;
3422
+ encrypted_value: string;
3423
+ id: string;
3424
+ name: string;
3425
+ organization_id: string;
3426
+ provider: string | null;
3427
+ type: string;
3428
+ updated_at: string;
3429
+ };
3430
+ Insert: {
3431
+ created_at?: string;
3432
+ created_by?: string | null;
3433
+ encrypted_value: string;
3434
+ id?: string;
3435
+ name: string;
3436
+ organization_id: string;
3437
+ provider?: string | null;
3438
+ type?: string;
3439
+ updated_at?: string;
3440
+ };
3441
+ Update: {
3442
+ created_at?: string;
3443
+ created_by?: string | null;
3444
+ encrypted_value?: string;
3445
+ id?: string;
3446
+ name?: string;
3447
+ organization_id?: string;
3448
+ provider?: string | null;
3449
+ type?: string;
3450
+ updated_at?: string;
3451
+ };
3452
+ Relationships: [{
3453
+ foreignKeyName: "credentials_created_by_fkey";
3454
+ columns: ["created_by"];
3455
+ isOneToOne: false;
3456
+ referencedRelation: "users";
3457
+ referencedColumns: ["id"];
3458
+ }, {
3459
+ foreignKeyName: "credentials_organization_id_fkey";
3460
+ columns: ["organization_id"];
3461
+ isOneToOne: false;
3462
+ referencedRelation: "organizations";
3463
+ referencedColumns: ["id"];
3464
+ }];
3465
+ };
3466
+ deployments: {
3467
+ Row: {
3468
+ compiled_docs: Json | null;
3469
+ created_at: string;
3470
+ deployment_version: string | null;
3471
+ documentation: Json | null;
3472
+ error_message: string | null;
3473
+ id: string;
3474
+ organization_id: string;
3475
+ pid: number | null;
3476
+ port: number | null;
3477
+ sdk_version: string;
3478
+ status: string;
3479
+ tarball_path: string | null;
3480
+ updated_at: string;
3481
+ };
3482
+ Insert: {
3483
+ compiled_docs?: Json | null;
3484
+ created_at?: string;
3485
+ deployment_version?: string | null;
3486
+ documentation?: Json | null;
3487
+ error_message?: string | null;
3488
+ id?: string;
3489
+ organization_id: string;
3490
+ pid?: number | null;
3491
+ port?: number | null;
3492
+ sdk_version: string;
3493
+ status?: string;
3494
+ tarball_path?: string | null;
3495
+ updated_at?: string;
3496
+ };
3497
+ Update: {
3498
+ compiled_docs?: Json | null;
3499
+ created_at?: string;
3500
+ deployment_version?: string | null;
3501
+ documentation?: Json | null;
3502
+ error_message?: string | null;
3503
+ id?: string;
3504
+ organization_id?: string;
3505
+ pid?: number | null;
3506
+ port?: number | null;
3507
+ sdk_version?: string;
3508
+ status?: string;
3509
+ tarball_path?: string | null;
3510
+ updated_at?: string;
3511
+ };
3512
+ Relationships: [{
3513
+ foreignKeyName: "deployments_organization_id_fkey";
3514
+ columns: ["organization_id"];
3515
+ isOneToOne: false;
3516
+ referencedRelation: "organizations";
3517
+ referencedColumns: ["id"];
3518
+ }];
3519
+ };
3520
+ execution_errors: {
3521
+ Row: {
3522
+ created_at: string | null;
3523
+ error_category: string;
3524
+ error_message: string;
3525
+ error_severity: string;
3526
+ error_stack_trace: string | null;
3527
+ error_type: string;
3528
+ execution_id: string;
3529
+ id: string;
3530
+ metadata: Json | null;
3531
+ occurred_at: string;
3532
+ organization_id: string;
3533
+ resolved: boolean;
3534
+ resolved_at: string | null;
3535
+ resolved_by: string | null;
3536
+ };
3537
+ Insert: {
3538
+ created_at?: string | null;
3539
+ error_category: string;
3540
+ error_message: string;
3541
+ error_severity: string;
3542
+ error_stack_trace?: string | null;
3543
+ error_type: string;
3544
+ execution_id: string;
3545
+ id?: string;
3546
+ metadata?: Json | null;
3547
+ occurred_at?: string;
3548
+ organization_id: string;
3549
+ resolved?: boolean;
3550
+ resolved_at?: string | null;
3551
+ resolved_by?: string | null;
3552
+ };
3553
+ Update: {
3554
+ created_at?: string | null;
3555
+ error_category?: string;
3556
+ error_message?: string;
3557
+ error_severity?: string;
3558
+ error_stack_trace?: string | null;
3559
+ error_type?: string;
3560
+ execution_id?: string;
3561
+ id?: string;
3562
+ metadata?: Json | null;
3563
+ occurred_at?: string;
3564
+ organization_id?: string;
3565
+ resolved?: boolean;
3566
+ resolved_at?: string | null;
3567
+ resolved_by?: string | null;
3568
+ };
3569
+ Relationships: [{
3570
+ foreignKeyName: "execution_errors_execution_id_fkey";
3571
+ columns: ["execution_id"];
3572
+ isOneToOne: false;
3573
+ referencedRelation: "execution_logs";
3574
+ referencedColumns: ["execution_id"];
3575
+ }, {
3576
+ foreignKeyName: "execution_errors_organization_id_fkey";
3577
+ columns: ["organization_id"];
3578
+ isOneToOne: false;
3579
+ referencedRelation: "organizations";
3580
+ referencedColumns: ["id"];
3581
+ }, {
3582
+ foreignKeyName: "execution_errors_resolved_by_fkey";
3583
+ columns: ["resolved_by"];
3584
+ isOneToOne: false;
3585
+ referencedRelation: "users";
3586
+ referencedColumns: ["id"];
3587
+ }];
3588
+ };
3589
+ execution_logs: {
3590
+ Row: {
3591
+ api_version: string | null;
3592
+ completed_at: string | null;
3593
+ created_at: string | null;
3594
+ error: string | null;
3595
+ execution_id: string;
3596
+ input: Json | null;
3597
+ last_heartbeat_at: string | null;
3598
+ logs: Json | null;
3599
+ organization_id: string;
3600
+ origin_execution_id: string | null;
3601
+ output: Json | null;
3602
+ resource_id: string;
3603
+ resource_status: string;
3604
+ resource_type: string;
3605
+ resource_version: string | null;
3606
+ sdk_version: string | null;
3607
+ session_id: string | null;
3608
+ session_turn_number: number | null;
3609
+ started_at: string;
3610
+ status: string;
3611
+ trigger_type: string | null;
3612
+ updated_at: string | null;
3613
+ user_id: string | null;
3614
+ };
3615
+ Insert: {
3616
+ api_version?: string | null;
3617
+ completed_at?: string | null;
3618
+ created_at?: string | null;
3619
+ error?: string | null;
3620
+ execution_id?: string;
3621
+ input?: Json | null;
3622
+ last_heartbeat_at?: string | null;
3623
+ logs?: Json | null;
3624
+ organization_id: string;
3625
+ origin_execution_id?: string | null;
3626
+ output?: Json | null;
3627
+ resource_id: string;
3628
+ resource_status?: string;
3629
+ resource_type?: string;
3630
+ resource_version?: string | null;
3631
+ sdk_version?: string | null;
3632
+ session_id?: string | null;
3633
+ session_turn_number?: number | null;
3634
+ started_at?: string;
3635
+ status: string;
3636
+ trigger_type?: string | null;
3637
+ updated_at?: string | null;
3638
+ user_id?: string | null;
3639
+ };
3640
+ Update: {
3641
+ api_version?: string | null;
3642
+ completed_at?: string | null;
3643
+ created_at?: string | null;
3644
+ error?: string | null;
3645
+ execution_id?: string;
3646
+ input?: Json | null;
3647
+ last_heartbeat_at?: string | null;
3648
+ logs?: Json | null;
3649
+ organization_id?: string;
3650
+ origin_execution_id?: string | null;
3651
+ output?: Json | null;
3652
+ resource_id?: string;
3653
+ resource_status?: string;
3654
+ resource_type?: string;
3655
+ resource_version?: string | null;
3656
+ sdk_version?: string | null;
3657
+ session_id?: string | null;
3658
+ session_turn_number?: number | null;
3659
+ started_at?: string;
3660
+ status?: string;
3661
+ trigger_type?: string | null;
3662
+ updated_at?: string | null;
3663
+ user_id?: string | null;
3664
+ };
3665
+ Relationships: [{
3666
+ foreignKeyName: "execution_history_organization_id_fkey";
3667
+ columns: ["organization_id"];
3668
+ isOneToOne: false;
3669
+ referencedRelation: "organizations";
3670
+ referencedColumns: ["id"];
3671
+ }, {
3672
+ foreignKeyName: "execution_logs_origin_execution_id_fkey";
3673
+ columns: ["origin_execution_id"];
3674
+ isOneToOne: false;
3675
+ referencedRelation: "execution_logs";
3676
+ referencedColumns: ["execution_id"];
3677
+ }, {
3678
+ foreignKeyName: "execution_logs_session_id_fkey";
3679
+ columns: ["session_id"];
3680
+ isOneToOne: false;
3681
+ referencedRelation: "sessions";
3682
+ referencedColumns: ["session_id"];
3683
+ }, {
3684
+ foreignKeyName: "execution_logs_user_id_fkey";
3685
+ columns: ["user_id"];
3686
+ isOneToOne: false;
3687
+ referencedRelation: "users";
3688
+ referencedColumns: ["id"];
3689
+ }];
3690
+ };
3691
+ execution_metrics: {
3692
+ Row: {
3693
+ ai_call_count: number;
3694
+ ai_calls: Json | null;
3695
+ automation_savings_usd: number | null;
3696
+ created_at: string | null;
3697
+ duration_ms: number | null;
3698
+ execution_id: string;
3699
+ organization_id: string;
3700
+ resource_id: string;
3701
+ total_cost_usd: number;
3702
+ total_input_tokens: number;
3703
+ total_output_tokens: number;
3704
+ };
3705
+ Insert: {
3706
+ ai_call_count: number;
3707
+ ai_calls?: Json | null;
3708
+ automation_savings_usd?: number | null;
3709
+ created_at?: string | null;
3710
+ duration_ms?: number | null;
3711
+ execution_id: string;
3712
+ organization_id: string;
3713
+ resource_id: string;
3714
+ total_cost_usd: number;
3715
+ total_input_tokens: number;
3716
+ total_output_tokens: number;
3717
+ };
3718
+ Update: {
3719
+ ai_call_count?: number;
3720
+ ai_calls?: Json | null;
3721
+ automation_savings_usd?: number | null;
3722
+ created_at?: string | null;
3723
+ duration_ms?: number | null;
3724
+ execution_id?: string;
3725
+ organization_id?: string;
3726
+ resource_id?: string;
3727
+ total_cost_usd?: number;
3728
+ total_input_tokens?: number;
3729
+ total_output_tokens?: number;
3730
+ };
3731
+ Relationships: [{
3732
+ foreignKeyName: "execution_metrics_execution_id_fkey";
3733
+ columns: ["execution_id"];
3734
+ isOneToOne: true;
3735
+ referencedRelation: "execution_logs";
3736
+ referencedColumns: ["execution_id"];
3737
+ }, {
3738
+ foreignKeyName: "execution_metrics_organization_id_fkey";
3739
+ columns: ["organization_id"];
3740
+ isOneToOne: false;
3741
+ referencedRelation: "organizations";
3742
+ referencedColumns: ["id"];
3743
+ }];
3744
+ };
3745
+ notifications: {
3746
+ Row: {
3747
+ action_url: string | null;
3748
+ category: string;
3749
+ created_at: string | null;
3750
+ id: string;
3751
+ message: string;
3752
+ organization_id: string;
3753
+ read: boolean | null;
3754
+ read_at: string | null;
3755
+ title: string;
3756
+ user_id: string;
3757
+ };
3758
+ Insert: {
3759
+ action_url?: string | null;
3760
+ category: string;
3761
+ created_at?: string | null;
3762
+ id?: string;
3763
+ message: string;
3764
+ organization_id: string;
3765
+ read?: boolean | null;
3766
+ read_at?: string | null;
3767
+ title: string;
3768
+ user_id: string;
3769
+ };
3770
+ Update: {
3771
+ action_url?: string | null;
3772
+ category?: string;
3773
+ created_at?: string | null;
3774
+ id?: string;
3775
+ message?: string;
3776
+ organization_id?: string;
3777
+ read?: boolean | null;
3778
+ read_at?: string | null;
3779
+ title?: string;
3780
+ user_id?: string;
3781
+ };
3782
+ Relationships: [{
3783
+ foreignKeyName: "notifications_organization_id_fkey";
3784
+ columns: ["organization_id"];
3785
+ isOneToOne: false;
3786
+ referencedRelation: "organizations";
3787
+ referencedColumns: ["id"];
3788
+ }, {
3789
+ foreignKeyName: "notifications_user_id_fkey";
3790
+ columns: ["user_id"];
3791
+ isOneToOne: false;
3792
+ referencedRelation: "users";
3793
+ referencedColumns: ["id"];
3794
+ }];
3795
+ };
3796
+ org_invitations: {
3797
+ Row: {
3798
+ accept_invitation_url: string | null;
3799
+ accepted_at: string | null;
3800
+ created_at: string | null;
3801
+ email: string;
3802
+ expires_at: string;
3803
+ id: string;
3804
+ invitation_state: string | null;
3805
+ invitation_token: string | null;
3806
+ inviter_user_id: string | null;
3807
+ organization_id: string | null;
3808
+ revoked_at: string | null;
3809
+ role_slug: string | null;
3810
+ updated_at: string | null;
3811
+ workos_invitation_id: string;
3812
+ };
3813
+ Insert: {
3814
+ accept_invitation_url?: string | null;
3815
+ accepted_at?: string | null;
3816
+ created_at?: string | null;
3817
+ email: string;
3818
+ expires_at: string;
3819
+ id?: string;
3820
+ invitation_state?: string | null;
3821
+ invitation_token?: string | null;
3822
+ inviter_user_id?: string | null;
3823
+ organization_id?: string | null;
3824
+ revoked_at?: string | null;
3825
+ role_slug?: string | null;
3826
+ updated_at?: string | null;
3827
+ workos_invitation_id: string;
3828
+ };
3829
+ Update: {
3830
+ accept_invitation_url?: string | null;
3831
+ accepted_at?: string | null;
3832
+ created_at?: string | null;
3833
+ email?: string;
3834
+ expires_at?: string;
3835
+ id?: string;
3836
+ invitation_state?: string | null;
3837
+ invitation_token?: string | null;
3838
+ inviter_user_id?: string | null;
3839
+ organization_id?: string | null;
3840
+ revoked_at?: string | null;
3841
+ role_slug?: string | null;
3842
+ updated_at?: string | null;
3843
+ workos_invitation_id?: string;
3844
+ };
3845
+ Relationships: [{
3846
+ foreignKeyName: "org_invitations_inviter_user_id_fkey";
3847
+ columns: ["inviter_user_id"];
3848
+ isOneToOne: false;
3849
+ referencedRelation: "users";
3850
+ referencedColumns: ["id"];
3851
+ }, {
3852
+ foreignKeyName: "org_invitations_organization_id_fkey";
3853
+ columns: ["organization_id"];
3854
+ isOneToOne: false;
3855
+ referencedRelation: "organizations";
3856
+ referencedColumns: ["id"];
3857
+ }];
3858
+ };
3859
+ org_memberships: {
3860
+ Row: {
3861
+ config: Json;
3862
+ created_at: string | null;
3863
+ id: string;
3864
+ membership_status: string | null;
3865
+ organization_id: string;
3866
+ role_slug: string | null;
3867
+ updated_at: string | null;
3868
+ user_id: string;
3869
+ workos_membership_id: string | null;
3870
+ };
3871
+ Insert: {
3872
+ config?: Json;
3873
+ created_at?: string | null;
3874
+ id?: string;
3875
+ membership_status?: string | null;
3876
+ organization_id: string;
3877
+ role_slug?: string | null;
3878
+ updated_at?: string | null;
3879
+ user_id: string;
3880
+ workos_membership_id?: string | null;
3881
+ };
3882
+ Update: {
3883
+ config?: Json;
3884
+ created_at?: string | null;
3885
+ id?: string;
3886
+ membership_status?: string | null;
3887
+ organization_id?: string;
3888
+ role_slug?: string | null;
3889
+ updated_at?: string | null;
3890
+ user_id?: string;
3891
+ workos_membership_id?: string | null;
3892
+ };
3893
+ Relationships: [{
3894
+ foreignKeyName: "org_memberships_organization_id_fkey";
3895
+ columns: ["organization_id"];
3896
+ isOneToOne: false;
3897
+ referencedRelation: "organizations";
3898
+ referencedColumns: ["id"];
3899
+ }, {
3900
+ foreignKeyName: "org_memberships_user_id_fkey";
3901
+ columns: ["user_id"];
3902
+ isOneToOne: false;
3903
+ referencedRelation: "users";
3904
+ referencedColumns: ["id"];
3905
+ }];
3906
+ };
3907
+ organizations: {
3908
+ Row: {
3909
+ config: Json;
3910
+ created_at: string;
3911
+ id: string;
3912
+ is_test: boolean;
3913
+ metadata: Json;
3914
+ name: string;
3915
+ status: string;
3916
+ updated_at: string;
3917
+ workos_org_id: string;
3918
+ };
3919
+ Insert: {
3920
+ config?: Json;
3921
+ created_at?: string;
3922
+ id?: string;
3923
+ is_test?: boolean;
3924
+ metadata?: Json;
3925
+ name: string;
3926
+ status?: string;
3927
+ updated_at?: string;
3928
+ workos_org_id: string;
3929
+ };
3930
+ Update: {
3931
+ config?: Json;
3932
+ created_at?: string;
3933
+ id?: string;
3934
+ is_test?: boolean;
3935
+ metadata?: Json;
3936
+ name?: string;
3937
+ status?: string;
3938
+ updated_at?: string;
3939
+ workos_org_id?: string;
3940
+ };
3941
+ Relationships: [];
3942
+ };
3943
+ prj_milestones: {
3944
+ Row: {
3945
+ checklist: Json | null;
3946
+ completed_at: string | null;
3947
+ created_at: string;
3948
+ description: string | null;
3949
+ due_date: string | null;
3950
+ id: string;
3951
+ metadata: Json | null;
3952
+ name: string;
3953
+ organization_id: string;
3954
+ project_id: string;
3955
+ sequence: number;
3956
+ status: string;
3957
+ updated_at: string;
3958
+ };
3959
+ Insert: {
3960
+ checklist?: Json | null;
3961
+ completed_at?: string | null;
3962
+ created_at?: string;
3963
+ description?: string | null;
3964
+ due_date?: string | null;
3965
+ id?: string;
3966
+ metadata?: Json | null;
3967
+ name: string;
3968
+ organization_id: string;
3969
+ project_id: string;
3970
+ sequence?: number;
3971
+ status?: string;
3972
+ updated_at?: string;
3973
+ };
3974
+ Update: {
3975
+ checklist?: Json | null;
3976
+ completed_at?: string | null;
3977
+ created_at?: string;
3978
+ description?: string | null;
3979
+ due_date?: string | null;
3980
+ id?: string;
3981
+ metadata?: Json | null;
3982
+ name?: string;
3983
+ organization_id?: string;
3984
+ project_id?: string;
3985
+ sequence?: number;
3986
+ status?: string;
3987
+ updated_at?: string;
3988
+ };
3989
+ Relationships: [{
3990
+ foreignKeyName: "prj_milestones_organization_id_fkey";
3991
+ columns: ["organization_id"];
3992
+ isOneToOne: false;
3993
+ referencedRelation: "organizations";
3994
+ referencedColumns: ["id"];
3995
+ }, {
3996
+ foreignKeyName: "prj_milestones_project_id_fkey";
3997
+ columns: ["project_id"];
3998
+ isOneToOne: false;
3999
+ referencedRelation: "prj_projects";
4000
+ referencedColumns: ["id"];
4001
+ }];
4002
+ };
4003
+ prj_notes: {
4004
+ Row: {
4005
+ content: string;
4006
+ created_at: string;
4007
+ created_by: string | null;
4008
+ id: string;
4009
+ metadata: Json | null;
4010
+ milestone_id: string | null;
4011
+ occurred_at: string;
4012
+ organization_id: string;
4013
+ project_id: string;
4014
+ summary: string | null;
4015
+ task_id: string | null;
4016
+ type: string;
4017
+ };
4018
+ Insert: {
4019
+ content: string;
4020
+ created_at?: string;
4021
+ created_by?: string | null;
4022
+ id?: string;
4023
+ metadata?: Json | null;
4024
+ milestone_id?: string | null;
4025
+ occurred_at?: string;
4026
+ organization_id: string;
4027
+ project_id: string;
4028
+ summary?: string | null;
4029
+ task_id?: string | null;
4030
+ type?: string;
4031
+ };
4032
+ Update: {
4033
+ content?: string;
4034
+ created_at?: string;
4035
+ created_by?: string | null;
4036
+ id?: string;
4037
+ metadata?: Json | null;
4038
+ milestone_id?: string | null;
4039
+ occurred_at?: string;
4040
+ organization_id?: string;
4041
+ project_id?: string;
4042
+ summary?: string | null;
4043
+ task_id?: string | null;
4044
+ type?: string;
4045
+ };
4046
+ Relationships: [{
4047
+ foreignKeyName: "prj_notes_created_by_fkey";
4048
+ columns: ["created_by"];
4049
+ isOneToOne: false;
4050
+ referencedRelation: "users";
4051
+ referencedColumns: ["id"];
4052
+ }, {
4053
+ foreignKeyName: "prj_notes_milestone_id_fkey";
4054
+ columns: ["milestone_id"];
4055
+ isOneToOne: false;
4056
+ referencedRelation: "prj_milestones";
4057
+ referencedColumns: ["id"];
4058
+ }, {
4059
+ foreignKeyName: "prj_notes_organization_id_fkey";
4060
+ columns: ["organization_id"];
4061
+ isOneToOne: false;
4062
+ referencedRelation: "organizations";
4063
+ referencedColumns: ["id"];
4064
+ }, {
4065
+ foreignKeyName: "prj_notes_project_id_fkey";
4066
+ columns: ["project_id"];
4067
+ isOneToOne: false;
4068
+ referencedRelation: "prj_projects";
4069
+ referencedColumns: ["id"];
4070
+ }, {
4071
+ foreignKeyName: "prj_notes_task_id_fkey";
4072
+ columns: ["task_id"];
4073
+ isOneToOne: false;
4074
+ referencedRelation: "prj_tasks";
4075
+ referencedColumns: ["id"];
4076
+ }];
4077
+ };
4078
+ prj_projects: {
4079
+ Row: {
4080
+ actual_end_date: string | null;
4081
+ client_company_id: string | null;
4082
+ contract_value: number | null;
4083
+ created_at: string;
4084
+ deal_id: string | null;
4085
+ description: string | null;
4086
+ id: string;
4087
+ kind: string;
4088
+ metadata: Json | null;
4089
+ name: string;
4090
+ organization_id: string;
4091
+ start_date: string | null;
4092
+ status: string;
4093
+ target_end_date: string | null;
4094
+ updated_at: string;
4095
+ };
4096
+ Insert: {
4097
+ actual_end_date?: string | null;
4098
+ client_company_id?: string | null;
4099
+ contract_value?: number | null;
4100
+ created_at?: string;
4101
+ deal_id?: string | null;
4102
+ description?: string | null;
4103
+ id?: string;
4104
+ kind?: string;
4105
+ metadata?: Json | null;
4106
+ name: string;
4107
+ organization_id: string;
4108
+ start_date?: string | null;
4109
+ status?: string;
4110
+ target_end_date?: string | null;
4111
+ updated_at?: string;
4112
+ };
4113
+ Update: {
4114
+ actual_end_date?: string | null;
4115
+ client_company_id?: string | null;
4116
+ contract_value?: number | null;
4117
+ created_at?: string;
4118
+ deal_id?: string | null;
4119
+ description?: string | null;
4120
+ id?: string;
4121
+ kind?: string;
4122
+ metadata?: Json | null;
4123
+ name?: string;
4124
+ organization_id?: string;
4125
+ start_date?: string | null;
4126
+ status?: string;
4127
+ target_end_date?: string | null;
4128
+ updated_at?: string;
4129
+ };
4130
+ Relationships: [{
4131
+ foreignKeyName: "prj_projects_client_company_id_fkey";
4132
+ columns: ["client_company_id"];
4133
+ isOneToOne: false;
4134
+ referencedRelation: "acq_companies";
4135
+ referencedColumns: ["id"];
4136
+ }, {
4137
+ foreignKeyName: "prj_projects_deal_id_fkey";
4138
+ columns: ["deal_id"];
4139
+ isOneToOne: false;
4140
+ referencedRelation: "acq_deals";
4141
+ referencedColumns: ["id"];
4142
+ }, {
4143
+ foreignKeyName: "prj_projects_organization_id_fkey";
4144
+ columns: ["organization_id"];
4145
+ isOneToOne: false;
4146
+ referencedRelation: "organizations";
4147
+ referencedColumns: ["id"];
4148
+ }];
4149
+ };
4150
+ prj_tasks: {
4151
+ Row: {
4152
+ checklist: Json;
4153
+ completed_at: string | null;
4154
+ created_at: string;
4155
+ description: string | null;
4156
+ due_date: string | null;
4157
+ file_url: string | null;
4158
+ id: string;
4159
+ metadata: Json | null;
4160
+ milestone_id: string | null;
4161
+ name: string;
4162
+ organization_id: string;
4163
+ parent_task_id: string | null;
4164
+ project_id: string;
4165
+ resume_context: Json | null;
4166
+ status: string;
4167
+ type: string;
4168
+ updated_at: string;
4169
+ };
4170
+ Insert: {
4171
+ checklist?: Json;
4172
+ completed_at?: string | null;
4173
+ created_at?: string;
4174
+ description?: string | null;
4175
+ due_date?: string | null;
4176
+ file_url?: string | null;
4177
+ id?: string;
4178
+ metadata?: Json | null;
4179
+ milestone_id?: string | null;
4180
+ name: string;
4181
+ organization_id: string;
4182
+ parent_task_id?: string | null;
4183
+ project_id: string;
4184
+ resume_context?: Json | null;
4185
+ status?: string;
4186
+ type?: string;
4187
+ updated_at?: string;
4188
+ };
4189
+ Update: {
4190
+ checklist?: Json;
4191
+ completed_at?: string | null;
4192
+ created_at?: string;
4193
+ description?: string | null;
4194
+ due_date?: string | null;
4195
+ file_url?: string | null;
4196
+ id?: string;
4197
+ metadata?: Json | null;
4198
+ milestone_id?: string | null;
4199
+ name?: string;
4200
+ organization_id?: string;
4201
+ parent_task_id?: string | null;
4202
+ project_id?: string;
4203
+ resume_context?: Json | null;
4204
+ status?: string;
4205
+ type?: string;
4206
+ updated_at?: string;
4207
+ };
4208
+ Relationships: [{
4209
+ foreignKeyName: "prj_tasks_milestone_id_fkey";
4210
+ columns: ["milestone_id"];
4211
+ isOneToOne: false;
4212
+ referencedRelation: "prj_milestones";
4213
+ referencedColumns: ["id"];
4214
+ }, {
4215
+ foreignKeyName: "prj_tasks_organization_id_fkey";
4216
+ columns: ["organization_id"];
4217
+ isOneToOne: false;
4218
+ referencedRelation: "organizations";
4219
+ referencedColumns: ["id"];
4220
+ }, {
4221
+ foreignKeyName: "prj_tasks_parent_task_id_fkey";
4222
+ columns: ["parent_task_id"];
4223
+ isOneToOne: false;
4224
+ referencedRelation: "prj_tasks";
4225
+ referencedColumns: ["id"];
4226
+ }, {
4227
+ foreignKeyName: "prj_tasks_project_id_fkey";
4228
+ columns: ["project_id"];
4229
+ isOneToOne: false;
4230
+ referencedRelation: "prj_projects";
4231
+ referencedColumns: ["id"];
4232
+ }];
4233
+ };
4234
+ session_messages: {
4235
+ Row: {
4236
+ created_at: string | null;
4237
+ id: string;
4238
+ message: string;
4239
+ message_index: number | null;
4240
+ message_type: string | null;
4241
+ metadata: Json | null;
4242
+ role: string;
4243
+ session_id: string;
4244
+ session_turn_number: number;
4245
+ };
4246
+ Insert: {
4247
+ created_at?: string | null;
4248
+ id: string;
4249
+ message: string;
4250
+ message_index?: number | null;
4251
+ message_type?: string | null;
4252
+ metadata?: Json | null;
4253
+ role: string;
4254
+ session_id: string;
4255
+ session_turn_number: number;
4256
+ };
4257
+ Update: {
4258
+ created_at?: string | null;
4259
+ id?: string;
4260
+ message?: string;
4261
+ message_index?: number | null;
4262
+ message_type?: string | null;
4263
+ metadata?: Json | null;
4264
+ role?: string;
4265
+ session_id?: string;
4266
+ session_turn_number?: number;
4267
+ };
4268
+ Relationships: [{
4269
+ foreignKeyName: "session_messages_session_id_fkey";
4270
+ columns: ["session_id"];
4271
+ isOneToOne: false;
4272
+ referencedRelation: "sessions";
4273
+ referencedColumns: ["session_id"];
4274
+ }];
4275
+ };
4276
+ sessions: {
4277
+ Row: {
4278
+ context_window_size: number;
4279
+ created_at: string | null;
4280
+ cumulative_input_tokens: number;
4281
+ cumulative_output_tokens: number;
4282
+ deleted_at: string | null;
4283
+ ended_at: string | null;
4284
+ memory_snapshot: Json;
4285
+ metadata: Json | null;
4286
+ organization_id: string;
4287
+ resource_id: string;
4288
+ session_id: string;
4289
+ session_total_turns: number | null;
4290
+ updated_at: string | null;
4291
+ user_id: string | null;
4292
+ };
4293
+ Insert: {
4294
+ context_window_size?: number;
4295
+ created_at?: string | null;
4296
+ cumulative_input_tokens?: number;
4297
+ cumulative_output_tokens?: number;
4298
+ deleted_at?: string | null;
4299
+ ended_at?: string | null;
4300
+ memory_snapshot: Json;
4301
+ metadata?: Json | null;
4302
+ organization_id: string;
4303
+ resource_id: string;
4304
+ session_id?: string;
4305
+ session_total_turns?: number | null;
4306
+ updated_at?: string | null;
4307
+ user_id?: string | null;
4308
+ };
4309
+ Update: {
4310
+ context_window_size?: number;
4311
+ created_at?: string | null;
4312
+ cumulative_input_tokens?: number;
4313
+ cumulative_output_tokens?: number;
4314
+ deleted_at?: string | null;
4315
+ ended_at?: string | null;
4316
+ memory_snapshot?: Json;
4317
+ metadata?: Json | null;
4318
+ organization_id?: string;
4319
+ resource_id?: string;
4320
+ session_id?: string;
4321
+ session_total_turns?: number | null;
4322
+ updated_at?: string | null;
4323
+ user_id?: string | null;
4324
+ };
4325
+ Relationships: [{
4326
+ foreignKeyName: "fk_organization";
4327
+ columns: ["organization_id"];
4328
+ isOneToOne: false;
4329
+ referencedRelation: "organizations";
4330
+ referencedColumns: ["id"];
4331
+ }, {
4332
+ foreignKeyName: "fk_user";
4333
+ columns: ["user_id"];
4334
+ isOneToOne: false;
4335
+ referencedRelation: "users";
4336
+ referencedColumns: ["id"];
4337
+ }];
4338
+ };
4339
+ task_schedules: {
4340
+ Row: {
4341
+ created_at: string;
4342
+ current_step: number;
4343
+ description: string | null;
4344
+ id: string;
4345
+ idempotency_key: string | null;
4346
+ last_execution_id: string | null;
4347
+ last_run_at: string | null;
4348
+ max_retries: number;
4349
+ metadata: Json | null;
4350
+ name: string;
4351
+ next_run_at: string | null;
4352
+ organization_id: string;
4353
+ origin_execution_id: string | null;
4354
+ origin_resource_id: string | null;
4355
+ origin_resource_type: string | null;
4356
+ retry_count: number;
4357
+ schedule_config: Json;
4358
+ status: string;
4359
+ target_resource_id: string;
4360
+ target_resource_type: string;
4361
+ updated_at: string;
4362
+ };
4363
+ Insert: {
4364
+ created_at?: string;
4365
+ current_step?: number;
4366
+ description?: string | null;
4367
+ id?: string;
4368
+ idempotency_key?: string | null;
4369
+ last_execution_id?: string | null;
4370
+ last_run_at?: string | null;
4371
+ max_retries?: number;
4372
+ metadata?: Json | null;
4373
+ name: string;
4374
+ next_run_at?: string | null;
4375
+ organization_id: string;
4376
+ origin_execution_id?: string | null;
4377
+ origin_resource_id?: string | null;
4378
+ origin_resource_type?: string | null;
4379
+ retry_count?: number;
4380
+ schedule_config: Json;
4381
+ status?: string;
4382
+ target_resource_id: string;
4383
+ target_resource_type: string;
4384
+ updated_at?: string;
4385
+ };
4386
+ Update: {
4387
+ created_at?: string;
4388
+ current_step?: number;
4389
+ description?: string | null;
4390
+ id?: string;
4391
+ idempotency_key?: string | null;
4392
+ last_execution_id?: string | null;
4393
+ last_run_at?: string | null;
4394
+ max_retries?: number;
4395
+ metadata?: Json | null;
4396
+ name?: string;
4397
+ next_run_at?: string | null;
4398
+ organization_id?: string;
4399
+ origin_execution_id?: string | null;
4400
+ origin_resource_id?: string | null;
4401
+ origin_resource_type?: string | null;
4402
+ retry_count?: number;
4403
+ schedule_config?: Json;
4404
+ status?: string;
4405
+ target_resource_id?: string;
4406
+ target_resource_type?: string;
4407
+ updated_at?: string;
4408
+ };
4409
+ Relationships: [{
4410
+ foreignKeyName: "task_schedules_organization_id_fkey";
4411
+ columns: ["organization_id"];
4412
+ isOneToOne: false;
4413
+ referencedRelation: "organizations";
4414
+ referencedColumns: ["id"];
4415
+ }];
4416
+ };
4417
+ users: {
4418
+ Row: {
4419
+ config: Json;
4420
+ created_at: string;
4421
+ display_name: string | null;
4422
+ email: string;
4423
+ first_name: string | null;
4424
+ id: string;
4425
+ is_active: boolean;
4426
+ is_platform_admin: boolean | null;
4427
+ last_login_at: string | null;
4428
+ last_name: string | null;
4429
+ last_visited_org: string | null;
4430
+ profile_picture_url: string | null;
4431
+ updated_at: string;
4432
+ workos_user_id: string | null;
4433
+ };
4434
+ Insert: {
4435
+ config?: Json;
4436
+ created_at?: string;
4437
+ display_name?: string | null;
4438
+ email: string;
4439
+ first_name?: string | null;
4440
+ id?: string;
4441
+ is_active?: boolean;
4442
+ is_platform_admin?: boolean | null;
4443
+ last_login_at?: string | null;
4444
+ last_name?: string | null;
4445
+ last_visited_org?: string | null;
4446
+ profile_picture_url?: string | null;
4447
+ updated_at?: string;
4448
+ workos_user_id?: string | null;
4449
+ };
4450
+ Update: {
4451
+ config?: Json;
4452
+ created_at?: string;
4453
+ display_name?: string | null;
4454
+ email?: string;
4455
+ first_name?: string | null;
4456
+ id?: string;
4457
+ is_active?: boolean;
4458
+ is_platform_admin?: boolean | null;
4459
+ last_login_at?: string | null;
4460
+ last_name?: string | null;
4461
+ last_visited_org?: string | null;
4462
+ profile_picture_url?: string | null;
4463
+ updated_at?: string;
4464
+ workos_user_id?: string | null;
4465
+ };
4466
+ Relationships: [{
4467
+ foreignKeyName: "user_profiles_last_visited_org_fkey";
4468
+ columns: ["last_visited_org"];
4469
+ isOneToOne: false;
4470
+ referencedRelation: "organizations";
4471
+ referencedColumns: ["id"];
4472
+ }];
4473
+ };
4474
+ webhook_endpoints: {
4475
+ Row: {
4476
+ created_at: string;
4477
+ description: string | null;
4478
+ id: string;
4479
+ key: string;
4480
+ last_triggered_at: string | null;
4481
+ name: string;
4482
+ organization_id: string;
4483
+ request_count: number;
4484
+ resource_id: string | null;
4485
+ status: string;
4486
+ updated_at: string;
4487
+ };
4488
+ Insert: {
4489
+ created_at?: string;
4490
+ description?: string | null;
4491
+ id?: string;
4492
+ key: string;
4493
+ last_triggered_at?: string | null;
4494
+ name: string;
4495
+ organization_id: string;
4496
+ request_count?: number;
4497
+ resource_id?: string | null;
4498
+ status?: string;
4499
+ updated_at?: string;
4500
+ };
4501
+ Update: {
4502
+ created_at?: string;
4503
+ description?: string | null;
4504
+ id?: string;
4505
+ key?: string;
4506
+ last_triggered_at?: string | null;
4507
+ name?: string;
4508
+ organization_id?: string;
4509
+ request_count?: number;
4510
+ resource_id?: string | null;
4511
+ status?: string;
4512
+ updated_at?: string;
4513
+ };
4514
+ Relationships: [{
4515
+ foreignKeyName: "webhook_endpoints_organization_id_fkey";
4516
+ columns: ["organization_id"];
4517
+ isOneToOne: false;
4518
+ referencedRelation: "organizations";
4519
+ referencedColumns: ["id"];
4520
+ }];
4521
+ };
4522
+ };
4523
+ Views: { [_ in never]: never; };
4524
+ Functions: {
4525
+ acq_default_checklist: {
4526
+ Args: {
4527
+ p_platform: string;
4528
+ };
4529
+ Returns: Json;
4530
+ };
4531
+ append_deal_activity: {
4532
+ Args: {
4533
+ p_activity: Json;
4534
+ p_deal_id: string;
4535
+ p_organization_id: string;
4536
+ };
4537
+ Returns: undefined;
4538
+ };
4539
+ auth_jwt_claims: {
4540
+ Args: never;
4541
+ Returns: Json;
4542
+ };
4543
+ auth_uid_safe: {
4544
+ Args: never;
4545
+ Returns: string;
4546
+ };
4547
+ current_user_is_platform_admin: {
4548
+ Args: never;
4549
+ Returns: boolean;
4550
+ };
4551
+ current_user_supabase_id: {
4552
+ Args: never;
4553
+ Returns: string;
4554
+ };
4555
+ detect_stalled_executions: {
4556
+ Args: never;
4557
+ Returns: undefined;
4558
+ };
4559
+ execute_session_turn: {
4560
+ Args: {
4561
+ p_session_id: string;
4562
+ };
4563
+ Returns: {
4564
+ created_at: string;
4565
+ ended_at: string;
4566
+ memory_snapshot: Json;
4567
+ metadata: Json;
4568
+ organization_id: string;
4569
+ resource_id: string;
4570
+ session_id: string;
4571
+ session_total_turns: number;
4572
+ updated_at: string;
4573
+ user_id: string;
4574
+ }[];
4575
+ };
4576
+ get_storage_org_id: {
4577
+ Args: {
4578
+ file_path: string;
4579
+ };
4580
+ Returns: string;
4581
+ };
4582
+ get_workos_user_id: {
4583
+ Args: never;
4584
+ Returns: string;
4585
+ };
4586
+ is_org_admin: {
4587
+ Args: {
4588
+ org_id: string;
4589
+ };
4590
+ Returns: boolean;
4591
+ };
4592
+ is_org_member: {
4593
+ Args: {
4594
+ org_id: string;
4595
+ };
4596
+ Returns: boolean;
4597
+ };
4598
+ link_workos_membership_on_accept: {
4599
+ Args: {
4600
+ p_email: string;
4601
+ p_organization_id: string;
4602
+ p_workos_membership_id: string;
4603
+ };
4604
+ Returns: boolean;
4605
+ };
4606
+ pre_provision_invited_user: {
4607
+ Args: {
4608
+ p_email: string;
4609
+ p_organization_id: string;
4610
+ p_role_slug?: string;
4611
+ };
4612
+ Returns: Json;
4613
+ };
4614
+ process_due_schedules: {
4615
+ Args: never;
4616
+ Returns: Json;
4617
+ };
4618
+ upsert_user_profile: {
4619
+ Args: never;
4620
+ Returns: {
4621
+ profile_display_name: string;
4622
+ profile_email: string;
4623
+ profile_id: string;
4624
+ profile_workos_user_id: string;
4625
+ }[];
4626
+ };
4627
+ };
4628
+ Enums: { [_ in never]: never; };
4629
+ CompositeTypes: { [_ in never]: never; };
4630
+ }, {
4631
+ PostgrestVersion: "12.2.3 (519615d)";
4632
+ }>;
4633
+
4634
+ export { getSupabaseClient, useSupabase };