@insforge/dashboard 0.0.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +14 -0
  2. package/dist/app/DashboardAppShell.d.ts +7 -0
  3. package/dist/app/DashboardProviders.d.ts +9 -0
  4. package/dist/app/InsforgeDashboard.d.ts +2 -0
  5. package/dist/app/createDashboardQueryClient.d.ts +2 -0
  6. package/dist/components/CodeEditor.d.ts +12 -0
  7. package/dist/components/ConnectCTA.d.ts +6 -0
  8. package/dist/components/DataGridEmptyState.d.ts +9 -0
  9. package/dist/components/DeleteActionButton.d.ts +8 -0
  10. package/dist/components/EmptyState.d.ts +14 -0
  11. package/dist/components/ErrorState.d.ts +8 -0
  12. package/dist/components/FeatureSidebar.d.ts +47 -0
  13. package/dist/components/JsonHighlight.d.ts +7 -0
  14. package/dist/components/LoadingState.d.ts +6 -0
  15. package/dist/components/PaginationControls.d.ts +11 -0
  16. package/dist/components/PromptDialog.d.ts +10 -0
  17. package/dist/components/SelectionClearButton.d.ts +7 -0
  18. package/dist/components/Stepper.d.ts +22 -0
  19. package/dist/components/TableHeader.d.ts +20 -0
  20. package/dist/components/ThemeSelect.d.ts +1 -0
  21. package/dist/components/TypeBadge.d.ts +6 -0
  22. package/dist/components/ZoomedVideo.d.ts +7 -0
  23. package/dist/components/datagrid/DataGrid.d.ts +51 -0
  24. package/dist/components/datagrid/DefaultCellRenderer.d.ts +12 -0
  25. package/dist/components/datagrid/IdCell.d.ts +4 -0
  26. package/dist/components/datagrid/SortableHeader.d.ts +9 -0
  27. package/dist/components/datagrid/cell-editors/BooleanCellEditor.d.ts +2 -0
  28. package/dist/components/datagrid/cell-editors/DateCellEditor.d.ts +2 -0
  29. package/dist/components/datagrid/cell-editors/JsonCellEditor.d.ts +2 -0
  30. package/dist/components/datagrid/cell-editors/TextCellEditor.d.ts +2 -0
  31. package/dist/components/datagrid/cell-editors/index.d.ts +5 -0
  32. package/dist/components/datagrid/cell-editors/types.d.ts +39 -0
  33. package/dist/components/datagrid/datagridTypes.d.ts +61 -0
  34. package/dist/components/datagrid/index.d.ts +8 -0
  35. package/dist/components/index.d.ts +20 -0
  36. package/dist/components/layout/AppHeader.d.ts +1 -0
  37. package/dist/components/layout/AppSidebar.d.ts +6 -0
  38. package/dist/components/layout/Layout.d.ts +6 -0
  39. package/dist/components/layout/index.d.ts +3 -0
  40. package/dist/components/radix/Alert.d.ts +8 -0
  41. package/dist/components/radix/Avatar.d.ts +6 -0
  42. package/dist/components/radix/Card.d.ts +8 -0
  43. package/dist/components/radix/Form.d.ts +23 -0
  44. package/dist/components/radix/Label.d.ts +5 -0
  45. package/dist/components/radix/Popover.d.ts +6 -0
  46. package/dist/components/radix/ScrollArea.d.ts +5 -0
  47. package/dist/components/radix/Separator.d.ts +4 -0
  48. package/dist/components/radix/Skeleton.d.ts +2 -0
  49. package/dist/components/radix/Textarea.d.ts +3 -0
  50. package/dist/components/radix/index.d.ts +10 -0
  51. package/dist/features/ai/components/AILayout.d.ts +1 -0
  52. package/dist/features/ai/components/GatewayConfigDialog.d.ts +6 -0
  53. package/dist/features/ai/components/ModelRow.d.ts +9 -0
  54. package/dist/features/ai/components/index.d.ts +2 -0
  55. package/dist/features/ai/helpers.d.ts +36 -0
  56. package/dist/features/ai/hooks/useAIConfigs.d.ts +43 -0
  57. package/dist/features/ai/hooks/useAIGatewayConfig.d.ts +15 -0
  58. package/dist/features/ai/hooks/useAIUsage.d.ts +63 -0
  59. package/dist/features/ai/pages/AIPage.d.ts +1 -0
  60. package/dist/features/ai/services/ai.service.d.ts +44 -0
  61. package/dist/features/auth/components/AuthSettingsMenuDialog.d.ts +6 -0
  62. package/dist/features/auth/components/AuthenticationLayout.d.ts +1 -0
  63. package/dist/features/auth/components/AuthenticationSidebar.d.ts +1 -0
  64. package/dist/features/auth/components/CustomOAuthConfigDialog.d.ts +9 -0
  65. package/dist/features/auth/components/OAuthConfigDialog.d.ts +9 -0
  66. package/dist/features/auth/components/OAuthEmptyState.d.ts +1 -0
  67. package/dist/features/auth/components/SecretInput.d.ts +8 -0
  68. package/dist/features/auth/components/UserFormDialog.d.ts +13 -0
  69. package/dist/features/auth/components/UsersDataGrid.d.ts +9 -0
  70. package/dist/features/auth/components/index.d.ts +6 -0
  71. package/dist/features/auth/helpers.d.ts +15 -0
  72. package/dist/features/auth/hooks/useAnonToken.d.ts +14 -0
  73. package/dist/features/auth/hooks/useAuthConfig.d.ts +57 -0
  74. package/dist/features/auth/hooks/useCustomOAuthConfig.d.ts +72 -0
  75. package/dist/features/auth/hooks/useOAuthConfig.d.ts +94 -0
  76. package/dist/features/auth/hooks/useUsers.d.ts +92 -0
  77. package/dist/features/auth/index.d.ts +5 -0
  78. package/dist/features/auth/pages/AuthMethodsPage.d.ts +1 -0
  79. package/dist/features/auth/pages/UsersPage.d.ts +1 -0
  80. package/dist/features/auth/services/anonToken.service.d.ts +7 -0
  81. package/dist/features/auth/services/config.service.d.ts +6 -0
  82. package/dist/features/auth/services/custom-oauth-config.service.d.ts +14 -0
  83. package/dist/features/auth/services/oauth-config.service.d.ts +14 -0
  84. package/dist/features/auth/services/user.service.d.ts +21 -0
  85. package/dist/features/dashboard/components/ConnectionSuccessBanner.d.ts +1 -0
  86. package/dist/features/dashboard/components/DashboardLayout.d.ts +1 -0
  87. package/dist/features/dashboard/components/ProjectSettingsMenuDialog.d.ts +1 -0
  88. package/dist/features/dashboard/components/PromptCard.d.ts +6 -0
  89. package/dist/features/dashboard/components/PromptDialog.d.ts +8 -0
  90. package/dist/features/dashboard/components/StatsCard.d.ts +11 -0
  91. package/dist/features/dashboard/components/connect/APIKeysSection.d.ts +9 -0
  92. package/dist/features/dashboard/components/connect/CLISection.d.ts +5 -0
  93. package/dist/features/dashboard/components/connect/ConnectDialog.d.ts +1 -0
  94. package/dist/features/dashboard/components/connect/ConnectionStringSection.d.ts +5 -0
  95. package/dist/features/dashboard/components/connect/MCPSection.d.ts +10 -0
  96. package/dist/features/dashboard/components/connect/ShowPasswordButton.d.ts +7 -0
  97. package/dist/features/dashboard/components/connect/VideoDemoModal.d.ts +5 -0
  98. package/dist/features/dashboard/components/connect/constants.d.ts +2 -0
  99. package/dist/features/dashboard/components/connect/index.d.ts +8 -0
  100. package/dist/features/dashboard/components/connect/mcp/CursorDeeplinkGenerator.d.ts +7 -0
  101. package/dist/features/dashboard/components/connect/mcp/QoderDeeplinkGenerator.d.ts +7 -0
  102. package/dist/features/dashboard/components/connect/mcp/helpers.d.ts +32 -0
  103. package/dist/features/dashboard/components/connect/mcp/index.d.ts +4 -0
  104. package/dist/features/dashboard/components/index.d.ts +5 -0
  105. package/dist/features/dashboard/pages/DashboardPage.d.ts +2 -0
  106. package/dist/features/dashboard/prompts/ai-chatbot.d.ts +6 -0
  107. package/dist/features/dashboard/prompts/crm-system.d.ts +6 -0
  108. package/dist/features/dashboard/prompts/ecommerce-platform.d.ts +6 -0
  109. package/dist/features/dashboard/prompts/index.d.ts +14 -0
  110. package/dist/features/dashboard/prompts/instagram-clone.d.ts +6 -0
  111. package/dist/features/dashboard/prompts/notion-clone.d.ts +6 -0
  112. package/dist/features/dashboard/prompts/reddit-clone.d.ts +6 -0
  113. package/dist/features/database/components/ColumnTypeSelect.d.ts +10 -0
  114. package/dist/features/database/components/DatabaseDataGrid.d.ts +12 -0
  115. package/dist/features/database/components/DatabaseLayout.d.ts +1 -0
  116. package/dist/features/database/components/DatabaseSidebar.d.ts +16 -0
  117. package/dist/features/database/components/ForeignKeyCell.d.ts +10 -0
  118. package/dist/features/database/components/ForeignKeyPopover.d.ts +13 -0
  119. package/dist/features/database/components/LinkRecordDialog.d.ts +10 -0
  120. package/dist/features/database/components/RecordFormDialog.d.ts +10 -0
  121. package/dist/features/database/components/RecordFormField.d.ts +10 -0
  122. package/dist/features/database/components/SQLEditorLayout.d.ts +1 -0
  123. package/dist/features/database/components/SQLModal.d.ts +13 -0
  124. package/dist/features/database/components/TableForm.d.ts +11 -0
  125. package/dist/features/database/components/TableFormColumn.d.ts +13 -0
  126. package/dist/features/database/components/TablesEmptyState.d.ts +8 -0
  127. package/dist/features/database/components/TemplateCard.d.ts +8 -0
  128. package/dist/features/database/components/TemplatePreview.d.ts +7 -0
  129. package/dist/features/database/constants.d.ts +15 -0
  130. package/dist/features/database/contexts/SQLEditorContext.d.ts +22 -0
  131. package/dist/features/database/helpers.d.ts +9 -0
  132. package/dist/features/database/hooks/useCSVImport.d.ts +19 -0
  133. package/dist/features/database/hooks/useDatabase.d.ts +90 -0
  134. package/dist/features/database/hooks/useRawSQL.d.ts +43 -0
  135. package/dist/features/database/hooks/useRecords.d.ts +39 -0
  136. package/dist/features/database/hooks/useTableColumnWidthsPreference.d.ts +5 -0
  137. package/dist/features/database/hooks/useTables.d.ts +72 -0
  138. package/dist/features/database/index.d.ts +2 -0
  139. package/dist/features/database/pages/FunctionsPage.d.ts +1 -0
  140. package/dist/features/database/pages/IndexesPage.d.ts +1 -0
  141. package/dist/features/database/pages/PoliciesPage.d.ts +1 -0
  142. package/dist/features/database/pages/SQLEditorPage.d.ts +1 -0
  143. package/dist/features/database/pages/TablesPage.d.ts +1 -0
  144. package/dist/features/database/pages/TemplatesPage.d.ts +1 -0
  145. package/dist/features/database/pages/TriggersPage.d.ts +1 -0
  146. package/dist/features/database/schema.d.ts +185 -0
  147. package/dist/features/database/services/advance.service.d.ts +13 -0
  148. package/dist/features/database/services/database.service.d.ts +24 -0
  149. package/dist/features/database/services/record.service.d.ts +57 -0
  150. package/dist/features/database/services/table.service.d.ts +9 -0
  151. package/dist/features/database/templates/ai-chatbot.d.ts +2 -0
  152. package/dist/features/database/templates/crm-system.d.ts +2 -0
  153. package/dist/features/database/templates/ecommerce-platform.d.ts +2 -0
  154. package/dist/features/database/templates/index.d.ts +17 -0
  155. package/dist/features/database/templates/instagram-clone.d.ts +2 -0
  156. package/dist/features/database/templates/notion-clone.d.ts +2 -0
  157. package/dist/features/database/templates/reddit-clone.d.ts +2 -0
  158. package/dist/features/deployments/components/DeploymentMetaDataDialog.d.ts +7 -0
  159. package/dist/features/deployments/components/DeploymentsEmptyState.d.ts +1 -0
  160. package/dist/features/deployments/components/DeploymentsLayout.d.ts +1 -0
  161. package/dist/features/deployments/components/DeploymentsSidebar.d.ts +1 -0
  162. package/dist/features/deployments/components/EnvVarDialog.d.ts +14 -0
  163. package/dist/features/deployments/components/EnvVarRow.d.ts +9 -0
  164. package/dist/features/deployments/components/EnvVarsEmptyState.d.ts +1 -0
  165. package/dist/features/deployments/helpers.d.ts +14 -0
  166. package/dist/features/deployments/hooks/useCustomDomains.d.ts +68 -0
  167. package/dist/features/deployments/hooks/useDeploymentEnvVars.d.ts +32 -0
  168. package/dist/features/deployments/hooks/useDeploymentMetadata.d.ts +13 -0
  169. package/dist/features/deployments/hooks/useDeploymentSlug.d.ts +9 -0
  170. package/dist/features/deployments/hooks/useDeployments.d.ts +85 -0
  171. package/dist/features/deployments/pages/DeploymentDomainsPage.d.ts +6 -0
  172. package/dist/features/deployments/pages/DeploymentEnvVarsPage.d.ts +1 -0
  173. package/dist/features/deployments/pages/DeploymentLogsPage.d.ts +1 -0
  174. package/dist/features/deployments/pages/DeploymentOverviewPage.d.ts +1 -0
  175. package/dist/features/deployments/services/deployments.service.d.ts +36 -0
  176. package/dist/features/functions/components/FunctionEmptyState.d.ts +1 -0
  177. package/dist/features/functions/components/FunctionRow.d.ts +9 -0
  178. package/dist/features/functions/components/FunctionsLayout.d.ts +1 -0
  179. package/dist/features/functions/components/FunctionsSidebar.d.ts +1 -0
  180. package/dist/features/functions/components/ScheduleEmptyState.d.ts +1 -0
  181. package/dist/features/functions/components/ScheduleFormDialog.d.ts +11 -0
  182. package/dist/features/functions/components/ScheduleLogs.d.ts +5 -0
  183. package/dist/features/functions/components/ScheduleRow.d.ts +12 -0
  184. package/dist/features/functions/components/SecretEmptyState.d.ts +5 -0
  185. package/dist/features/functions/components/SecretRow.d.ts +8 -0
  186. package/dist/features/functions/helpers.d.ts +5 -0
  187. package/dist/features/functions/hooks/useFunctions.d.ts +75 -0
  188. package/dist/features/functions/hooks/useSchedules.d.ts +90 -0
  189. package/dist/features/functions/hooks/useSecrets.d.ts +62 -0
  190. package/dist/features/functions/pages/FunctionsPage.d.ts +1 -0
  191. package/dist/features/functions/pages/SchedulesPage.d.ts +1 -0
  192. package/dist/features/functions/pages/SecretsPage.d.ts +1 -0
  193. package/dist/features/functions/services/function.service.d.ts +8 -0
  194. package/dist/features/functions/services/schedule.service.d.ts +10 -0
  195. package/dist/features/functions/services/secret.service.d.ts +8 -0
  196. package/dist/features/functions/types.d.ts +2 -0
  197. package/dist/features/login/pages/CloudLoginPage.d.ts +1 -0
  198. package/dist/features/login/pages/LoginPage.d.ts +1 -0
  199. package/dist/features/login/services/login.service.d.ts +16 -0
  200. package/dist/features/login/services/partnership.service.d.ts +18 -0
  201. package/dist/features/logs/components/BuildLogsView.d.ts +5 -0
  202. package/dist/features/logs/components/FunctionLogsTabs.d.ts +12 -0
  203. package/dist/features/logs/components/LogDetailPanel.d.ts +7 -0
  204. package/dist/features/logs/components/LogsDataGrid.d.ts +21 -0
  205. package/dist/features/logs/components/LogsLayout.d.ts +1 -0
  206. package/dist/features/logs/components/LogsSidebar.d.ts +1 -0
  207. package/dist/features/logs/components/SeverityBadge.d.ts +6 -0
  208. package/dist/features/logs/components/SeverityFilterDropdown.d.ts +6 -0
  209. package/dist/features/logs/components/index.d.ts +7 -0
  210. package/dist/features/logs/helpers.d.ts +38 -0
  211. package/dist/features/logs/hooks/useAuditLogs.d.ts +38 -0
  212. package/dist/features/logs/hooks/useLogSources.d.ts +41 -0
  213. package/dist/features/logs/hooks/useLogs.d.ts +51 -0
  214. package/dist/features/logs/hooks/useMcpUsage.d.ts +35 -0
  215. package/dist/features/logs/pages/AuditsPage.d.ts +1 -0
  216. package/dist/features/logs/pages/FunctionLogsPage.d.ts +1 -0
  217. package/dist/features/logs/pages/LogsPage.d.ts +1 -0
  218. package/dist/features/logs/pages/MCPLogsPage.d.ts +1 -0
  219. package/dist/features/logs/services/audit.service.d.ts +7 -0
  220. package/dist/features/logs/services/log.service.d.ts +22 -0
  221. package/dist/features/logs/services/usage.service.d.ts +16 -0
  222. package/dist/features/realtime/components/ChannelFormDialog.d.ts +13 -0
  223. package/dist/features/realtime/components/ChannelRow.d.ts +12 -0
  224. package/dist/features/realtime/components/MessageRow.d.ts +7 -0
  225. package/dist/features/realtime/components/RealtimeEmptyState.d.ts +6 -0
  226. package/dist/features/realtime/components/RealtimeLayout.d.ts +1 -0
  227. package/dist/features/realtime/components/RealtimeSettingsMenuDialog.d.ts +6 -0
  228. package/dist/features/realtime/components/RealtimeSidebar.d.ts +1 -0
  229. package/dist/features/realtime/hooks/useRealtimeChannels.d.ts +66 -0
  230. package/dist/features/realtime/hooks/useRealtimeConfig.d.ts +14 -0
  231. package/dist/features/realtime/hooks/useRealtimeMessages.d.ts +64 -0
  232. package/dist/features/realtime/hooks/useRealtimePermissions.d.ts +48 -0
  233. package/dist/features/realtime/pages/RealtimeChannelsPage.d.ts +1 -0
  234. package/dist/features/realtime/pages/RealtimeMessagesPage.d.ts +1 -0
  235. package/dist/features/realtime/pages/RealtimePermissionsPage.d.ts +1 -0
  236. package/dist/features/realtime/services/realtime.service.d.ts +15 -0
  237. package/dist/features/storage/components/BucketFormDialog.d.ts +10 -0
  238. package/dist/features/storage/components/FilePreviewDialog.d.ts +9 -0
  239. package/dist/features/storage/components/StorageDataGrid.d.ts +14 -0
  240. package/dist/features/storage/components/StorageLayout.d.ts +1 -0
  241. package/dist/features/storage/components/StorageSettingsMenuDialog.d.ts +8 -0
  242. package/dist/features/storage/components/StorageSidebar.d.ts +13 -0
  243. package/dist/features/storage/components/UploadToast.d.ts +9 -0
  244. package/dist/features/storage/hooks/useStorage.d.ts +77 -0
  245. package/dist/features/storage/hooks/useStorageConfig.d.ts +29 -0
  246. package/dist/features/storage/pages/BucketsPage.d.ts +1 -0
  247. package/dist/features/storage/services/storage-config.service.d.ts +9 -0
  248. package/dist/features/storage/services/storage.service.d.ts +26 -0
  249. package/dist/features/visualizer/components/AuthNode.d.ts +11 -0
  250. package/dist/features/visualizer/components/BucketNode.d.ts +8 -0
  251. package/dist/features/visualizer/components/SchemaVisualizer.d.ts +18 -0
  252. package/dist/features/visualizer/components/TableNode.d.ts +10 -0
  253. package/dist/features/visualizer/components/VisualizerLayout.d.ts +1 -0
  254. package/dist/features/visualizer/components/VisualizerSkeleton.d.ts +1 -0
  255. package/dist/features/visualizer/components/index.d.ts +5 -0
  256. package/dist/features/visualizer/pages/VisualizerPage.d.ts +2 -0
  257. package/dist/index.d.ts +19 -0
  258. package/dist/index.js +83413 -0
  259. package/dist/layout/DashboardFrame.d.ts +15 -0
  260. package/dist/layout/DashboardOutletLayout.d.ts +1 -0
  261. package/dist/layout/DashboardSectionLayout.d.ts +7 -0
  262. package/dist/lib/analytics/posthog.d.ts +5 -0
  263. package/dist/lib/api/client.d.ts +20 -0
  264. package/dist/lib/config/DashboardHostContext.d.ts +3 -0
  265. package/dist/lib/config/runtime.d.ts +3 -0
  266. package/dist/lib/contexts/AuthContext.d.ts +18 -0
  267. package/dist/lib/contexts/ModalContext.d.ts +2 -0
  268. package/dist/lib/contexts/SocketContext.d.ts +42 -0
  269. package/dist/lib/contexts/ThemeContext.d.ts +17 -0
  270. package/dist/lib/hooks/useCloudProjectInfo.d.ts +19 -0
  271. package/dist/lib/hooks/useConfirm.d.ts +21 -0
  272. package/dist/lib/hooks/useHealth.d.ts +13 -0
  273. package/dist/lib/hooks/useInterval.d.ts +1 -0
  274. package/dist/lib/hooks/useMediaQuery.d.ts +6 -0
  275. package/dist/lib/hooks/useMetadata.d.ts +239 -0
  276. package/dist/lib/hooks/useModal.d.ts +1 -0
  277. package/dist/lib/hooks/usePageSize.d.ts +5 -0
  278. package/dist/lib/hooks/useTimeout.d.ts +1 -0
  279. package/dist/lib/hooks/useToast.d.ts +20 -0
  280. package/dist/lib/routing/AppRoutes.d.ts +1 -0
  281. package/dist/lib/routing/RequireAuth.d.ts +6 -0
  282. package/dist/lib/services/health.service.d.ts +8 -0
  283. package/dist/lib/services/metadata.service.d.ts +16 -0
  284. package/dist/lib/utils/__tests__/utils.test.d.ts +1 -0
  285. package/dist/lib/utils/cloudMessaging.d.ts +13 -0
  286. package/dist/lib/utils/constants.d.ts +17 -0
  287. package/dist/lib/utils/local-storage.d.ts +5 -0
  288. package/dist/lib/utils/menuItems.d.ts +22 -0
  289. package/dist/lib/utils/schemaValidations.d.ts +21 -0
  290. package/dist/lib/utils/utils.d.ts +46 -0
  291. package/dist/modals/DashboardModalContext.d.ts +16 -0
  292. package/dist/navigation/menuItems.d.ts +13 -0
  293. package/dist/router/DashboardHostRoutes.d.ts +7 -0
  294. package/dist/router/DashboardProtectedBoundary.d.ts +9 -0
  295. package/dist/router/DashboardRouter.d.ts +1 -0
  296. package/dist/router/index.d.ts +3 -0
  297. package/dist/router/paths.d.ts +5 -0
  298. package/dist/styles.css +1 -0
  299. package/dist/types/index.d.ts +80 -0
  300. package/package.json +78 -0
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface DashboardFrameRenderProps {
3
+ isSidebarCollapsed: boolean;
4
+ toggleSidebar: () => void;
5
+ }
6
+ export interface DashboardFrameProps {
7
+ showHeader?: boolean;
8
+ header?: ReactNode;
9
+ sidebar: (props: DashboardFrameRenderProps) => ReactNode;
10
+ children: ReactNode;
11
+ overlays?: ReactNode;
12
+ className?: string;
13
+ contentClassName?: string;
14
+ }
15
+ export declare function DashboardFrame({ showHeader, header, sidebar, children, overlays, className, contentClassName, }: DashboardFrameProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function DashboardOutletLayout(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface DashboardSectionLayoutProps {
3
+ sidebar?: ReactNode;
4
+ children: ReactNode;
5
+ className?: string;
6
+ }
7
+ export declare function DashboardSectionLayout({ sidebar, children, className, }: DashboardSectionLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const PostHogAnalyticsProvider: ({ children }: {
2
+ children: React.ReactNode;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const trackPostHog: (eventName: string, properties?: Record<string, unknown>) => void;
5
+ export declare const getFeatureFlag: (featureFlag: string) => string | boolean | undefined;
@@ -0,0 +1,20 @@
1
+ export declare class ApiClient {
2
+ private accessToken;
3
+ private onAuthError?;
4
+ private onRefreshAccessToken?;
5
+ private refreshPromise;
6
+ setAccessToken(token: string): void;
7
+ setCsrfToken(csrfToken: string): void;
8
+ clearTokens(): void;
9
+ getAccessToken(): string | null;
10
+ getCsrfToken(): string | null;
11
+ setAuthErrorHandler(handler?: () => void): void;
12
+ setRefreshAccessTokenHandler(handler?: () => Promise<boolean>): void;
13
+ request(endpoint: string, options?: RequestInit & {
14
+ returnFullResponse?: boolean;
15
+ skipAuth?: boolean;
16
+ skipRefresh?: boolean;
17
+ }): Promise<any>;
18
+ withAccessToken(headers?: Record<string, string>): Record<string, string>;
19
+ }
20
+ export declare const apiClient: ApiClient;
@@ -0,0 +1,3 @@
1
+ import type { DashboardProps } from '../../types';
2
+ export declare const DashboardHostProvider: import("react").Provider<DashboardProps | null>;
3
+ export declare function useDashboardHost(): DashboardProps;
@@ -0,0 +1,3 @@
1
+ export declare function setDashboardBackendUrl(url: string): void;
2
+ export declare function getDashboardBackendUrl(): string;
3
+ export declare function getDashboardApiBaseUrl(): string;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import type { UserSchema } from '@insforge/shared-schemas';
3
+ interface AuthContextType {
4
+ user: UserSchema | null;
5
+ isAuthenticated: boolean;
6
+ isLoading: boolean;
7
+ loginWithPassword: (email: string, password: string) => Promise<boolean>;
8
+ loginWithAuthorizationCode: (code: string) => Promise<boolean>;
9
+ logout: () => Promise<void>;
10
+ refreshAuth: () => Promise<void>;
11
+ error: Error | null;
12
+ }
13
+ export declare const useAuth: () => AuthContextType;
14
+ interface AuthProviderProps {
15
+ children: React.ReactNode;
16
+ }
17
+ export declare const AuthProvider: React.FC<AuthProviderProps>;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ export { DashboardModalProvider as ModalProvider, useDashboardModal as useModal, } from '../../modals/DashboardModalContext';
2
+ export type { DashboardSettingsTab as SettingsTab } from '../../modals/DashboardModalContext';
@@ -0,0 +1,42 @@
1
+ import { ReactNode } from 'react';
2
+ import { Socket } from 'socket.io-client';
3
+ /**
4
+ * Server-to-client event types
5
+ */
6
+ export declare enum ServerEvents {
7
+ NOTIFICATION = "notification",
8
+ DATA_UPDATE = "data:update",
9
+ MCP_CONNECTED = "mcp:connected"
10
+ }
11
+ export declare enum DataUpdateResourceType {
12
+ DATABASE = "database",
13
+ USERS = "users",
14
+ BUCKETS = "buckets",
15
+ FUNCTIONS = "functions",
16
+ REALTIME = "realtime"
17
+ }
18
+ export interface DatabaseResourceUpdate {
19
+ type: 'tables' | 'table' | 'records' | 'index' | 'trigger' | 'policy' | 'function' | 'extension';
20
+ name?: string;
21
+ }
22
+ interface SocketState {
23
+ isConnected: boolean;
24
+ connectionError: string | null;
25
+ socketId: string | null;
26
+ }
27
+ interface SocketActions {
28
+ connect: (token: string | null) => void;
29
+ disconnect: () => void;
30
+ }
31
+ interface SocketContextValue extends SocketState, SocketActions {
32
+ socket: Socket | null;
33
+ }
34
+ interface SocketProviderProps {
35
+ children: ReactNode;
36
+ }
37
+ /**
38
+ * Socket.IO Provider - Manages WebSocket connection for the entire application
39
+ */
40
+ export declare function SocketProvider({ children }: SocketProviderProps): import("react/jsx-runtime").JSX.Element;
41
+ export declare function useSocket(): SocketContextValue;
42
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ type Theme = 'light' | 'dark' | 'system';
3
+ type ResolvedTheme = 'light' | 'dark';
4
+ interface ThemeContextType {
5
+ theme: Theme;
6
+ resolvedTheme: ResolvedTheme;
7
+ setTheme: (theme: Theme) => void;
8
+ toggleTheme: () => void;
9
+ }
10
+ interface ThemeProviderProps {
11
+ children: React.ReactNode;
12
+ forcedTheme?: ResolvedTheme;
13
+ storageKey?: string;
14
+ }
15
+ export declare function ThemeProvider({ children, forcedTheme, storageKey, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function useTheme(): ThemeContextType;
17
+ export {};
@@ -0,0 +1,19 @@
1
+ export interface CloudProjectInfo {
2
+ name?: string;
3
+ latestVersion?: string;
4
+ instanceType?: string;
5
+ region?: string;
6
+ }
7
+ interface UseCloudProjectInfoOptions {
8
+ enabled?: boolean;
9
+ staleTime?: number;
10
+ timeoutMs?: number;
11
+ }
12
+ export declare const CLOUD_PROJECT_INFO_QUERY_KEY: string[];
13
+ export declare function useCloudProjectInfo(options?: UseCloudProjectInfoOptions): {
14
+ projectInfo: CloudProjectInfo;
15
+ isLoading: boolean;
16
+ error: Error | null;
17
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<CloudProjectInfo, Error>>;
18
+ };
19
+ export {};
@@ -0,0 +1,21 @@
1
+ interface ConfirmOptions {
2
+ title: string;
3
+ description: string;
4
+ confirmText?: string;
5
+ cancelText?: string;
6
+ destructive?: boolean;
7
+ }
8
+ export declare function useConfirm(): {
9
+ confirm: (confirmOptions: ConfirmOptions) => Promise<boolean>;
10
+ confirmDialogProps: {
11
+ open: boolean;
12
+ onOpenChange: (open: boolean) => void;
13
+ title: string;
14
+ description: string;
15
+ confirmText: string | undefined;
16
+ cancelText: string | undefined;
17
+ destructive: boolean | undefined;
18
+ onConfirm: () => void;
19
+ };
20
+ };
21
+ export {};
@@ -0,0 +1,13 @@
1
+ interface UseHealthOptions {
2
+ enabled?: boolean;
3
+ staleTime?: number;
4
+ }
5
+ export declare function useHealth(options?: UseHealthOptions): {
6
+ health: import("../services/health.service").HealthResponse | undefined;
7
+ version: string | undefined;
8
+ status: string | undefined;
9
+ isLoading: boolean;
10
+ error: Error | null;
11
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../services/health.service").HealthResponse, Error>>;
12
+ };
13
+ export {};
@@ -0,0 +1 @@
1
+ export declare function useInterval(callback: () => void, delay: number | null): void;
@@ -0,0 +1,6 @@
1
+ type UseMediaQueryOptions = {
2
+ defaultValue?: boolean;
3
+ initializeWithValue?: boolean;
4
+ };
5
+ export declare function useMediaQuery(query: string, { defaultValue, initializeWithValue }?: UseMediaQueryOptions): boolean;
6
+ export {};
@@ -0,0 +1,239 @@
1
+ interface UseMetadataOptions {
2
+ enabled?: boolean;
3
+ staleTime?: number;
4
+ }
5
+ export declare function useMetadata(options?: UseMetadataOptions): {
6
+ metadata: {
7
+ functions: {
8
+ status: string;
9
+ name: string;
10
+ description: string | null;
11
+ slug: string;
12
+ }[];
13
+ storage: {
14
+ totalSizeInGB: number;
15
+ buckets: {
16
+ createdAt: string;
17
+ name: string;
18
+ public: boolean;
19
+ objectCount?: number | undefined;
20
+ }[];
21
+ };
22
+ auth: {
23
+ requireEmailVerification: boolean;
24
+ passwordMinLength: number;
25
+ requireNumber: boolean;
26
+ requireLowercase: boolean;
27
+ requireUppercase: boolean;
28
+ requireSpecialChar: boolean;
29
+ verifyEmailMethod: "code" | "link";
30
+ resetPasswordMethod: "code" | "link";
31
+ oAuthProviders: ("google" | "github" | "discord" | "linkedin" | "facebook" | "instagram" | "tiktok" | "apple" | "x" | "spotify" | "microsoft")[];
32
+ customOAuthProviders: string[];
33
+ };
34
+ database: {
35
+ tables: {
36
+ tableName: string;
37
+ recordCount: number;
38
+ }[];
39
+ totalSizeInGB: number;
40
+ hint?: string | undefined;
41
+ };
42
+ realtime?: {
43
+ channels: {
44
+ id: string;
45
+ createdAt: string;
46
+ description: string | null;
47
+ enabled: boolean;
48
+ updatedAt: string;
49
+ pattern: string;
50
+ webhookUrls: string[] | null;
51
+ }[];
52
+ permissions: {
53
+ subscribe: {
54
+ policies: {
55
+ tableName: string;
56
+ policyName: string;
57
+ roles: string[];
58
+ withCheck: string | null;
59
+ command: string;
60
+ using: string | null;
61
+ }[];
62
+ };
63
+ publish: {
64
+ policies: {
65
+ tableName: string;
66
+ policyName: string;
67
+ roles: string[];
68
+ withCheck: string | null;
69
+ command: string;
70
+ using: string | null;
71
+ }[];
72
+ };
73
+ };
74
+ } | undefined;
75
+ aiIntegration?: {
76
+ models: {
77
+ inputModality: string[];
78
+ outputModality: string[];
79
+ modelId: string;
80
+ }[];
81
+ } | undefined;
82
+ version?: string | undefined;
83
+ } | undefined;
84
+ auth: {
85
+ requireEmailVerification: boolean;
86
+ passwordMinLength: number;
87
+ requireNumber: boolean;
88
+ requireLowercase: boolean;
89
+ requireUppercase: boolean;
90
+ requireSpecialChar: boolean;
91
+ verifyEmailMethod: "code" | "link";
92
+ resetPasswordMethod: "code" | "link";
93
+ oAuthProviders: ("google" | "github" | "discord" | "linkedin" | "facebook" | "instagram" | "tiktok" | "apple" | "x" | "spotify" | "microsoft")[];
94
+ customOAuthProviders: string[];
95
+ } | undefined;
96
+ tables: {
97
+ tableName: string;
98
+ recordCount: number;
99
+ }[] | undefined;
100
+ storage: {
101
+ totalSizeInGB: number;
102
+ buckets: {
103
+ createdAt: string;
104
+ name: string;
105
+ public: boolean;
106
+ objectCount?: number | undefined;
107
+ }[];
108
+ } | undefined;
109
+ version: string;
110
+ isLoading: boolean;
111
+ error: Error | null;
112
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
113
+ functions: {
114
+ status: string;
115
+ name: string;
116
+ description: string | null;
117
+ slug: string;
118
+ }[];
119
+ storage: {
120
+ totalSizeInGB: number;
121
+ buckets: {
122
+ createdAt: string;
123
+ name: string;
124
+ public: boolean;
125
+ objectCount?: number | undefined;
126
+ }[];
127
+ };
128
+ auth: {
129
+ requireEmailVerification: boolean;
130
+ passwordMinLength: number;
131
+ requireNumber: boolean;
132
+ requireLowercase: boolean;
133
+ requireUppercase: boolean;
134
+ requireSpecialChar: boolean;
135
+ verifyEmailMethod: "code" | "link";
136
+ resetPasswordMethod: "code" | "link";
137
+ oAuthProviders: ("google" | "github" | "discord" | "linkedin" | "facebook" | "instagram" | "tiktok" | "apple" | "x" | "spotify" | "microsoft")[];
138
+ customOAuthProviders: string[];
139
+ };
140
+ database: {
141
+ tables: {
142
+ tableName: string;
143
+ recordCount: number;
144
+ }[];
145
+ totalSizeInGB: number;
146
+ hint?: string | undefined;
147
+ };
148
+ realtime?: {
149
+ channels: {
150
+ id: string;
151
+ createdAt: string;
152
+ description: string | null;
153
+ enabled: boolean;
154
+ updatedAt: string;
155
+ pattern: string;
156
+ webhookUrls: string[] | null;
157
+ }[];
158
+ permissions: {
159
+ subscribe: {
160
+ policies: {
161
+ tableName: string;
162
+ policyName: string;
163
+ roles: string[];
164
+ withCheck: string | null;
165
+ command: string;
166
+ using: string | null;
167
+ }[];
168
+ };
169
+ publish: {
170
+ policies: {
171
+ tableName: string;
172
+ policyName: string;
173
+ roles: string[];
174
+ withCheck: string | null;
175
+ command: string;
176
+ using: string | null;
177
+ }[];
178
+ };
179
+ };
180
+ } | undefined;
181
+ aiIntegration?: {
182
+ models: {
183
+ inputModality: string[];
184
+ outputModality: string[];
185
+ modelId: string;
186
+ }[];
187
+ } | undefined;
188
+ version?: string | undefined;
189
+ }, Error>>;
190
+ };
191
+ export declare function useApiKey(options?: UseMetadataOptions): {
192
+ apiKey: string | undefined;
193
+ isLoading: boolean;
194
+ error: Error | null;
195
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<string, Error>>;
196
+ };
197
+ export declare function useProjectId(options?: UseMetadataOptions): {
198
+ projectId: string | null | undefined;
199
+ isLoading: boolean;
200
+ error: Error | null;
201
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<string | null, Error>>;
202
+ };
203
+ export declare function useDatabaseConnectionString(options?: UseMetadataOptions): {
204
+ connectionData: {
205
+ parameters: {
206
+ user: string;
207
+ password: string;
208
+ database: string;
209
+ host: string;
210
+ port: number;
211
+ sslmode: string;
212
+ };
213
+ connectionURL: string;
214
+ } | undefined;
215
+ isLoading: boolean;
216
+ error: Error | null;
217
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
218
+ parameters: {
219
+ user: string;
220
+ password: string;
221
+ database: string;
222
+ host: string;
223
+ port: number;
224
+ sslmode: string;
225
+ };
226
+ connectionURL: string;
227
+ }, Error>>;
228
+ };
229
+ export declare function useDatabasePassword(options?: UseMetadataOptions): {
230
+ passwordData: {
231
+ databasePassword: string;
232
+ } | undefined;
233
+ isLoading: boolean;
234
+ error: Error | null;
235
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
236
+ databasePassword: string;
237
+ }, Error>>;
238
+ };
239
+ export {};
@@ -0,0 +1 @@
1
+ export { useModal } from '../contexts/ModalContext';
@@ -0,0 +1,5 @@
1
+ export declare function usePageSize(scope: string): {
2
+ pageSize: number;
3
+ pageSizeOptions: number[];
4
+ onPageSizeChange: (newPageSize: number) => void;
5
+ };
@@ -0,0 +1 @@
1
+ export declare function useTimeout(callback: () => void, delay: number | null): void;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ interface Toast {
3
+ id: string;
4
+ message: string;
5
+ type?: 'success' | 'error' | 'info' | 'warn' | 'upload';
6
+ customIcon?: React.ReactNode;
7
+ duration: number;
8
+ progress?: number;
9
+ onCancel?: () => void;
10
+ }
11
+ interface ToastContextType {
12
+ showToast: (message: string, type?: 'success' | 'error' | 'info' | 'warn' | 'upload', customIcon?: React.ReactNode, duration?: number) => string;
13
+ updateToast: (id: string, updates: Partial<Toast>) => void;
14
+ removeToast: (id: string) => void;
15
+ }
16
+ export declare function ToastProvider({ children }: {
17
+ children: React.ReactNode;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function useToast(): ToastContextType;
20
+ export {};
@@ -0,0 +1 @@
1
+ export declare function AppRoutes(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ interface RequireAuthProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const RequireAuth: ({ children }: RequireAuthProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface HealthResponse {
2
+ version: string;
3
+ status?: string;
4
+ }
5
+ export declare class HealthService {
6
+ getHealth(): Promise<HealthResponse>;
7
+ }
8
+ export declare const healthService: HealthService;
@@ -0,0 +1,16 @@
1
+ import { AppMetadataSchema, DatabaseConnectionInfo, DatabasePasswordInfo } from '@insforge/shared-schemas';
2
+ export interface RotateApiKeyResponse {
3
+ success: boolean;
4
+ message: string;
5
+ apiKey: string;
6
+ oldKeyExpiresAt: string;
7
+ }
8
+ export declare class MetadataService {
9
+ fetchApiKey(): Promise<string>;
10
+ fetchProjectId(): Promise<string | null>;
11
+ getFullMetadata(): Promise<AppMetadataSchema>;
12
+ getDatabaseConnectionString(): Promise<DatabaseConnectionInfo>;
13
+ getDatabasePassword(): Promise<DatabasePasswordInfo>;
14
+ rotateApiKey(gracePeriodHours?: number): Promise<RotateApiKeyResponse>;
15
+ }
16
+ export declare const metadataService: MetadataService;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import { CloudEvent } from '@insforge/shared-schemas';
2
+ export declare function postMessageToParent(evt: Record<string, unknown>, targetOrigin?: string): void;
3
+ /**
4
+ * Parses and validates an unknown value as a CloudEvent.
5
+ * @param value - The value to validate
6
+ * @returns A discriminated union: { ok: true; data: CloudEvent } on success, { ok: false } on failure
7
+ */
8
+ export declare function parseCloudEvent(value: unknown): {
9
+ ok: true;
10
+ data: CloudEvent;
11
+ } | {
12
+ ok: false;
13
+ };
@@ -0,0 +1,17 @@
1
+ export declare const BREAKPOINTS: {
2
+ readonly xs: 475;
3
+ readonly sm: 640;
4
+ readonly md: 768;
5
+ readonly lg: 1024;
6
+ readonly xl: 1280;
7
+ };
8
+ export declare const LOCAL_STORAGE_KEYS: {
9
+ readonly theme: "insforge-theme";
10
+ readonly selectedLogSource: "selectedLogSource";
11
+ readonly sqlEditorTabs: "sql-editor-tabs";
12
+ readonly sqlEditorActiveTab: "sql-editor-active-tab";
13
+ readonly databaseTablePreferences: "insforge.database.tables.preferences.v1";
14
+ };
15
+ export declare const LOCAL_STORAGE_KEY_PREFIXES: {
16
+ readonly pageSize: "insforge-page-size";
17
+ };
@@ -0,0 +1,5 @@
1
+ export declare function getLocalStorageItem(key: string): string | null;
2
+ export declare function setLocalStorageItem(key: string, value: string): boolean;
3
+ export declare function removeLocalStorageItem(key: string): boolean;
4
+ export declare function getLocalStorageJSON<T>(key: string): T | null;
5
+ export declare function setLocalStorageJSON(key: string, value: unknown): boolean;
@@ -0,0 +1,22 @@
1
+ import { type LucideIcon } from 'lucide-react';
2
+ export interface PrimaryMenuItem {
3
+ id: string;
4
+ label: string;
5
+ href: string;
6
+ icon: LucideIcon;
7
+ onClick?: () => void;
8
+ external?: boolean;
9
+ sectionEnd?: boolean;
10
+ }
11
+ /**
12
+ * Static menu items configuration
13
+ * Primary menu items appear in the app sidebar
14
+ */
15
+ export declare const staticMenuItems: PrimaryMenuItem[];
16
+ /**
17
+ * Bottom menu items that may be conditionally shown
18
+ */
19
+ export declare const documentationMenuItem: PrimaryMenuItem;
20
+ export declare const usageMenuItem: PrimaryMenuItem;
21
+ export declare const settingsMenuItem: PrimaryMenuItem;
22
+ export declare const deploymentsMenuItem: PrimaryMenuItem;
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const uuidSchema: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodLiteral<"">, null, "">]>, z.ZodNull]>;
3
+ export declare const integerSchema: z.ZodCatch<z.ZodUnion<[z.ZodEffects<z.ZodString, number, string>, z.ZodNumber, z.ZodEffects<z.ZodLiteral<"">, null, "">, z.ZodNull]>>;
4
+ export declare const floatSchema: z.ZodCatch<z.ZodUnion<[z.ZodEffects<z.ZodString, number, string>, z.ZodNumber, z.ZodEffects<z.ZodLiteral<"">, null, "">, z.ZodNull]>>;
5
+ export declare const booleanSchema: z.ZodCatch<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean | null, string>, z.ZodEffects<z.ZodLiteral<"">, null, "">, z.ZodNull]>>;
6
+ export declare const dateSchema: z.ZodCatch<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodLiteral<"">, null, "">, z.ZodNull]>>;
7
+ export declare const dateTimeSchema: z.ZodCatch<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodLiteral<"">, null, "">, z.ZodNull]>>;
8
+ export declare const jsonSchema: z.ZodCatch<z.ZodUnion<[z.ZodEffects<z.ZodString, any, string>, z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodUnknown, "many">, z.ZodNull]>>;
9
+ export declare const stringSchema: z.ZodUnion<[z.ZodString, z.ZodNull]>;
10
+ export declare const emailSchema: z.ZodString;
11
+ export declare const loginFormSchema: z.ZodObject<{
12
+ email: z.ZodString;
13
+ password: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ email: string;
16
+ password: string;
17
+ }, {
18
+ email: string;
19
+ password: string;
20
+ }>;
21
+ export type LoginForm = z.infer<typeof loginFormSchema>;