@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.
- package/README.md +14 -0
- package/dist/app/DashboardAppShell.d.ts +7 -0
- package/dist/app/DashboardProviders.d.ts +9 -0
- package/dist/app/InsforgeDashboard.d.ts +2 -0
- package/dist/app/createDashboardQueryClient.d.ts +2 -0
- package/dist/components/CodeEditor.d.ts +12 -0
- package/dist/components/ConnectCTA.d.ts +6 -0
- package/dist/components/DataGridEmptyState.d.ts +9 -0
- package/dist/components/DeleteActionButton.d.ts +8 -0
- package/dist/components/EmptyState.d.ts +14 -0
- package/dist/components/ErrorState.d.ts +8 -0
- package/dist/components/FeatureSidebar.d.ts +47 -0
- package/dist/components/JsonHighlight.d.ts +7 -0
- package/dist/components/LoadingState.d.ts +6 -0
- package/dist/components/PaginationControls.d.ts +11 -0
- package/dist/components/PromptDialog.d.ts +10 -0
- package/dist/components/SelectionClearButton.d.ts +7 -0
- package/dist/components/Stepper.d.ts +22 -0
- package/dist/components/TableHeader.d.ts +20 -0
- package/dist/components/ThemeSelect.d.ts +1 -0
- package/dist/components/TypeBadge.d.ts +6 -0
- package/dist/components/ZoomedVideo.d.ts +7 -0
- package/dist/components/datagrid/DataGrid.d.ts +51 -0
- package/dist/components/datagrid/DefaultCellRenderer.d.ts +12 -0
- package/dist/components/datagrid/IdCell.d.ts +4 -0
- package/dist/components/datagrid/SortableHeader.d.ts +9 -0
- package/dist/components/datagrid/cell-editors/BooleanCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/DateCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/JsonCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/TextCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/index.d.ts +5 -0
- package/dist/components/datagrid/cell-editors/types.d.ts +39 -0
- package/dist/components/datagrid/datagridTypes.d.ts +61 -0
- package/dist/components/datagrid/index.d.ts +8 -0
- package/dist/components/index.d.ts +20 -0
- package/dist/components/layout/AppHeader.d.ts +1 -0
- package/dist/components/layout/AppSidebar.d.ts +6 -0
- package/dist/components/layout/Layout.d.ts +6 -0
- package/dist/components/layout/index.d.ts +3 -0
- package/dist/components/radix/Alert.d.ts +8 -0
- package/dist/components/radix/Avatar.d.ts +6 -0
- package/dist/components/radix/Card.d.ts +8 -0
- package/dist/components/radix/Form.d.ts +23 -0
- package/dist/components/radix/Label.d.ts +5 -0
- package/dist/components/radix/Popover.d.ts +6 -0
- package/dist/components/radix/ScrollArea.d.ts +5 -0
- package/dist/components/radix/Separator.d.ts +4 -0
- package/dist/components/radix/Skeleton.d.ts +2 -0
- package/dist/components/radix/Textarea.d.ts +3 -0
- package/dist/components/radix/index.d.ts +10 -0
- package/dist/features/ai/components/AILayout.d.ts +1 -0
- package/dist/features/ai/components/GatewayConfigDialog.d.ts +6 -0
- package/dist/features/ai/components/ModelRow.d.ts +9 -0
- package/dist/features/ai/components/index.d.ts +2 -0
- package/dist/features/ai/helpers.d.ts +36 -0
- package/dist/features/ai/hooks/useAIConfigs.d.ts +43 -0
- package/dist/features/ai/hooks/useAIGatewayConfig.d.ts +15 -0
- package/dist/features/ai/hooks/useAIUsage.d.ts +63 -0
- package/dist/features/ai/pages/AIPage.d.ts +1 -0
- package/dist/features/ai/services/ai.service.d.ts +44 -0
- package/dist/features/auth/components/AuthSettingsMenuDialog.d.ts +6 -0
- package/dist/features/auth/components/AuthenticationLayout.d.ts +1 -0
- package/dist/features/auth/components/AuthenticationSidebar.d.ts +1 -0
- package/dist/features/auth/components/CustomOAuthConfigDialog.d.ts +9 -0
- package/dist/features/auth/components/OAuthConfigDialog.d.ts +9 -0
- package/dist/features/auth/components/OAuthEmptyState.d.ts +1 -0
- package/dist/features/auth/components/SecretInput.d.ts +8 -0
- package/dist/features/auth/components/UserFormDialog.d.ts +13 -0
- package/dist/features/auth/components/UsersDataGrid.d.ts +9 -0
- package/dist/features/auth/components/index.d.ts +6 -0
- package/dist/features/auth/helpers.d.ts +15 -0
- package/dist/features/auth/hooks/useAnonToken.d.ts +14 -0
- package/dist/features/auth/hooks/useAuthConfig.d.ts +57 -0
- package/dist/features/auth/hooks/useCustomOAuthConfig.d.ts +72 -0
- package/dist/features/auth/hooks/useOAuthConfig.d.ts +94 -0
- package/dist/features/auth/hooks/useUsers.d.ts +92 -0
- package/dist/features/auth/index.d.ts +5 -0
- package/dist/features/auth/pages/AuthMethodsPage.d.ts +1 -0
- package/dist/features/auth/pages/UsersPage.d.ts +1 -0
- package/dist/features/auth/services/anonToken.service.d.ts +7 -0
- package/dist/features/auth/services/config.service.d.ts +6 -0
- package/dist/features/auth/services/custom-oauth-config.service.d.ts +14 -0
- package/dist/features/auth/services/oauth-config.service.d.ts +14 -0
- package/dist/features/auth/services/user.service.d.ts +21 -0
- package/dist/features/dashboard/components/ConnectionSuccessBanner.d.ts +1 -0
- package/dist/features/dashboard/components/DashboardLayout.d.ts +1 -0
- package/dist/features/dashboard/components/ProjectSettingsMenuDialog.d.ts +1 -0
- package/dist/features/dashboard/components/PromptCard.d.ts +6 -0
- package/dist/features/dashboard/components/PromptDialog.d.ts +8 -0
- package/dist/features/dashboard/components/StatsCard.d.ts +11 -0
- package/dist/features/dashboard/components/connect/APIKeysSection.d.ts +9 -0
- package/dist/features/dashboard/components/connect/CLISection.d.ts +5 -0
- package/dist/features/dashboard/components/connect/ConnectDialog.d.ts +1 -0
- package/dist/features/dashboard/components/connect/ConnectionStringSection.d.ts +5 -0
- package/dist/features/dashboard/components/connect/MCPSection.d.ts +10 -0
- package/dist/features/dashboard/components/connect/ShowPasswordButton.d.ts +7 -0
- package/dist/features/dashboard/components/connect/VideoDemoModal.d.ts +5 -0
- package/dist/features/dashboard/components/connect/constants.d.ts +2 -0
- package/dist/features/dashboard/components/connect/index.d.ts +8 -0
- package/dist/features/dashboard/components/connect/mcp/CursorDeeplinkGenerator.d.ts +7 -0
- package/dist/features/dashboard/components/connect/mcp/QoderDeeplinkGenerator.d.ts +7 -0
- package/dist/features/dashboard/components/connect/mcp/helpers.d.ts +32 -0
- package/dist/features/dashboard/components/connect/mcp/index.d.ts +4 -0
- package/dist/features/dashboard/components/index.d.ts +5 -0
- package/dist/features/dashboard/pages/DashboardPage.d.ts +2 -0
- package/dist/features/dashboard/prompts/ai-chatbot.d.ts +6 -0
- package/dist/features/dashboard/prompts/crm-system.d.ts +6 -0
- package/dist/features/dashboard/prompts/ecommerce-platform.d.ts +6 -0
- package/dist/features/dashboard/prompts/index.d.ts +14 -0
- package/dist/features/dashboard/prompts/instagram-clone.d.ts +6 -0
- package/dist/features/dashboard/prompts/notion-clone.d.ts +6 -0
- package/dist/features/dashboard/prompts/reddit-clone.d.ts +6 -0
- package/dist/features/database/components/ColumnTypeSelect.d.ts +10 -0
- package/dist/features/database/components/DatabaseDataGrid.d.ts +12 -0
- package/dist/features/database/components/DatabaseLayout.d.ts +1 -0
- package/dist/features/database/components/DatabaseSidebar.d.ts +16 -0
- package/dist/features/database/components/ForeignKeyCell.d.ts +10 -0
- package/dist/features/database/components/ForeignKeyPopover.d.ts +13 -0
- package/dist/features/database/components/LinkRecordDialog.d.ts +10 -0
- package/dist/features/database/components/RecordFormDialog.d.ts +10 -0
- package/dist/features/database/components/RecordFormField.d.ts +10 -0
- package/dist/features/database/components/SQLEditorLayout.d.ts +1 -0
- package/dist/features/database/components/SQLModal.d.ts +13 -0
- package/dist/features/database/components/TableForm.d.ts +11 -0
- package/dist/features/database/components/TableFormColumn.d.ts +13 -0
- package/dist/features/database/components/TablesEmptyState.d.ts +8 -0
- package/dist/features/database/components/TemplateCard.d.ts +8 -0
- package/dist/features/database/components/TemplatePreview.d.ts +7 -0
- package/dist/features/database/constants.d.ts +15 -0
- package/dist/features/database/contexts/SQLEditorContext.d.ts +22 -0
- package/dist/features/database/helpers.d.ts +9 -0
- package/dist/features/database/hooks/useCSVImport.d.ts +19 -0
- package/dist/features/database/hooks/useDatabase.d.ts +90 -0
- package/dist/features/database/hooks/useRawSQL.d.ts +43 -0
- package/dist/features/database/hooks/useRecords.d.ts +39 -0
- package/dist/features/database/hooks/useTableColumnWidthsPreference.d.ts +5 -0
- package/dist/features/database/hooks/useTables.d.ts +72 -0
- package/dist/features/database/index.d.ts +2 -0
- package/dist/features/database/pages/FunctionsPage.d.ts +1 -0
- package/dist/features/database/pages/IndexesPage.d.ts +1 -0
- package/dist/features/database/pages/PoliciesPage.d.ts +1 -0
- package/dist/features/database/pages/SQLEditorPage.d.ts +1 -0
- package/dist/features/database/pages/TablesPage.d.ts +1 -0
- package/dist/features/database/pages/TemplatesPage.d.ts +1 -0
- package/dist/features/database/pages/TriggersPage.d.ts +1 -0
- package/dist/features/database/schema.d.ts +185 -0
- package/dist/features/database/services/advance.service.d.ts +13 -0
- package/dist/features/database/services/database.service.d.ts +24 -0
- package/dist/features/database/services/record.service.d.ts +57 -0
- package/dist/features/database/services/table.service.d.ts +9 -0
- package/dist/features/database/templates/ai-chatbot.d.ts +2 -0
- package/dist/features/database/templates/crm-system.d.ts +2 -0
- package/dist/features/database/templates/ecommerce-platform.d.ts +2 -0
- package/dist/features/database/templates/index.d.ts +17 -0
- package/dist/features/database/templates/instagram-clone.d.ts +2 -0
- package/dist/features/database/templates/notion-clone.d.ts +2 -0
- package/dist/features/database/templates/reddit-clone.d.ts +2 -0
- package/dist/features/deployments/components/DeploymentMetaDataDialog.d.ts +7 -0
- package/dist/features/deployments/components/DeploymentsEmptyState.d.ts +1 -0
- package/dist/features/deployments/components/DeploymentsLayout.d.ts +1 -0
- package/dist/features/deployments/components/DeploymentsSidebar.d.ts +1 -0
- package/dist/features/deployments/components/EnvVarDialog.d.ts +14 -0
- package/dist/features/deployments/components/EnvVarRow.d.ts +9 -0
- package/dist/features/deployments/components/EnvVarsEmptyState.d.ts +1 -0
- package/dist/features/deployments/helpers.d.ts +14 -0
- package/dist/features/deployments/hooks/useCustomDomains.d.ts +68 -0
- package/dist/features/deployments/hooks/useDeploymentEnvVars.d.ts +32 -0
- package/dist/features/deployments/hooks/useDeploymentMetadata.d.ts +13 -0
- package/dist/features/deployments/hooks/useDeploymentSlug.d.ts +9 -0
- package/dist/features/deployments/hooks/useDeployments.d.ts +85 -0
- package/dist/features/deployments/pages/DeploymentDomainsPage.d.ts +6 -0
- package/dist/features/deployments/pages/DeploymentEnvVarsPage.d.ts +1 -0
- package/dist/features/deployments/pages/DeploymentLogsPage.d.ts +1 -0
- package/dist/features/deployments/pages/DeploymentOverviewPage.d.ts +1 -0
- package/dist/features/deployments/services/deployments.service.d.ts +36 -0
- package/dist/features/functions/components/FunctionEmptyState.d.ts +1 -0
- package/dist/features/functions/components/FunctionRow.d.ts +9 -0
- package/dist/features/functions/components/FunctionsLayout.d.ts +1 -0
- package/dist/features/functions/components/FunctionsSidebar.d.ts +1 -0
- package/dist/features/functions/components/ScheduleEmptyState.d.ts +1 -0
- package/dist/features/functions/components/ScheduleFormDialog.d.ts +11 -0
- package/dist/features/functions/components/ScheduleLogs.d.ts +5 -0
- package/dist/features/functions/components/ScheduleRow.d.ts +12 -0
- package/dist/features/functions/components/SecretEmptyState.d.ts +5 -0
- package/dist/features/functions/components/SecretRow.d.ts +8 -0
- package/dist/features/functions/helpers.d.ts +5 -0
- package/dist/features/functions/hooks/useFunctions.d.ts +75 -0
- package/dist/features/functions/hooks/useSchedules.d.ts +90 -0
- package/dist/features/functions/hooks/useSecrets.d.ts +62 -0
- package/dist/features/functions/pages/FunctionsPage.d.ts +1 -0
- package/dist/features/functions/pages/SchedulesPage.d.ts +1 -0
- package/dist/features/functions/pages/SecretsPage.d.ts +1 -0
- package/dist/features/functions/services/function.service.d.ts +8 -0
- package/dist/features/functions/services/schedule.service.d.ts +10 -0
- package/dist/features/functions/services/secret.service.d.ts +8 -0
- package/dist/features/functions/types.d.ts +2 -0
- package/dist/features/login/pages/CloudLoginPage.d.ts +1 -0
- package/dist/features/login/pages/LoginPage.d.ts +1 -0
- package/dist/features/login/services/login.service.d.ts +16 -0
- package/dist/features/login/services/partnership.service.d.ts +18 -0
- package/dist/features/logs/components/BuildLogsView.d.ts +5 -0
- package/dist/features/logs/components/FunctionLogsTabs.d.ts +12 -0
- package/dist/features/logs/components/LogDetailPanel.d.ts +7 -0
- package/dist/features/logs/components/LogsDataGrid.d.ts +21 -0
- package/dist/features/logs/components/LogsLayout.d.ts +1 -0
- package/dist/features/logs/components/LogsSidebar.d.ts +1 -0
- package/dist/features/logs/components/SeverityBadge.d.ts +6 -0
- package/dist/features/logs/components/SeverityFilterDropdown.d.ts +6 -0
- package/dist/features/logs/components/index.d.ts +7 -0
- package/dist/features/logs/helpers.d.ts +38 -0
- package/dist/features/logs/hooks/useAuditLogs.d.ts +38 -0
- package/dist/features/logs/hooks/useLogSources.d.ts +41 -0
- package/dist/features/logs/hooks/useLogs.d.ts +51 -0
- package/dist/features/logs/hooks/useMcpUsage.d.ts +35 -0
- package/dist/features/logs/pages/AuditsPage.d.ts +1 -0
- package/dist/features/logs/pages/FunctionLogsPage.d.ts +1 -0
- package/dist/features/logs/pages/LogsPage.d.ts +1 -0
- package/dist/features/logs/pages/MCPLogsPage.d.ts +1 -0
- package/dist/features/logs/services/audit.service.d.ts +7 -0
- package/dist/features/logs/services/log.service.d.ts +22 -0
- package/dist/features/logs/services/usage.service.d.ts +16 -0
- package/dist/features/realtime/components/ChannelFormDialog.d.ts +13 -0
- package/dist/features/realtime/components/ChannelRow.d.ts +12 -0
- package/dist/features/realtime/components/MessageRow.d.ts +7 -0
- package/dist/features/realtime/components/RealtimeEmptyState.d.ts +6 -0
- package/dist/features/realtime/components/RealtimeLayout.d.ts +1 -0
- package/dist/features/realtime/components/RealtimeSettingsMenuDialog.d.ts +6 -0
- package/dist/features/realtime/components/RealtimeSidebar.d.ts +1 -0
- package/dist/features/realtime/hooks/useRealtimeChannels.d.ts +66 -0
- package/dist/features/realtime/hooks/useRealtimeConfig.d.ts +14 -0
- package/dist/features/realtime/hooks/useRealtimeMessages.d.ts +64 -0
- package/dist/features/realtime/hooks/useRealtimePermissions.d.ts +48 -0
- package/dist/features/realtime/pages/RealtimeChannelsPage.d.ts +1 -0
- package/dist/features/realtime/pages/RealtimeMessagesPage.d.ts +1 -0
- package/dist/features/realtime/pages/RealtimePermissionsPage.d.ts +1 -0
- package/dist/features/realtime/services/realtime.service.d.ts +15 -0
- package/dist/features/storage/components/BucketFormDialog.d.ts +10 -0
- package/dist/features/storage/components/FilePreviewDialog.d.ts +9 -0
- package/dist/features/storage/components/StorageDataGrid.d.ts +14 -0
- package/dist/features/storage/components/StorageLayout.d.ts +1 -0
- package/dist/features/storage/components/StorageSettingsMenuDialog.d.ts +8 -0
- package/dist/features/storage/components/StorageSidebar.d.ts +13 -0
- package/dist/features/storage/components/UploadToast.d.ts +9 -0
- package/dist/features/storage/hooks/useStorage.d.ts +77 -0
- package/dist/features/storage/hooks/useStorageConfig.d.ts +29 -0
- package/dist/features/storage/pages/BucketsPage.d.ts +1 -0
- package/dist/features/storage/services/storage-config.service.d.ts +9 -0
- package/dist/features/storage/services/storage.service.d.ts +26 -0
- package/dist/features/visualizer/components/AuthNode.d.ts +11 -0
- package/dist/features/visualizer/components/BucketNode.d.ts +8 -0
- package/dist/features/visualizer/components/SchemaVisualizer.d.ts +18 -0
- package/dist/features/visualizer/components/TableNode.d.ts +10 -0
- package/dist/features/visualizer/components/VisualizerLayout.d.ts +1 -0
- package/dist/features/visualizer/components/VisualizerSkeleton.d.ts +1 -0
- package/dist/features/visualizer/components/index.d.ts +5 -0
- package/dist/features/visualizer/pages/VisualizerPage.d.ts +2 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +83413 -0
- package/dist/layout/DashboardFrame.d.ts +15 -0
- package/dist/layout/DashboardOutletLayout.d.ts +1 -0
- package/dist/layout/DashboardSectionLayout.d.ts +7 -0
- package/dist/lib/analytics/posthog.d.ts +5 -0
- package/dist/lib/api/client.d.ts +20 -0
- package/dist/lib/config/DashboardHostContext.d.ts +3 -0
- package/dist/lib/config/runtime.d.ts +3 -0
- package/dist/lib/contexts/AuthContext.d.ts +18 -0
- package/dist/lib/contexts/ModalContext.d.ts +2 -0
- package/dist/lib/contexts/SocketContext.d.ts +42 -0
- package/dist/lib/contexts/ThemeContext.d.ts +17 -0
- package/dist/lib/hooks/useCloudProjectInfo.d.ts +19 -0
- package/dist/lib/hooks/useConfirm.d.ts +21 -0
- package/dist/lib/hooks/useHealth.d.ts +13 -0
- package/dist/lib/hooks/useInterval.d.ts +1 -0
- package/dist/lib/hooks/useMediaQuery.d.ts +6 -0
- package/dist/lib/hooks/useMetadata.d.ts +239 -0
- package/dist/lib/hooks/useModal.d.ts +1 -0
- package/dist/lib/hooks/usePageSize.d.ts +5 -0
- package/dist/lib/hooks/useTimeout.d.ts +1 -0
- package/dist/lib/hooks/useToast.d.ts +20 -0
- package/dist/lib/routing/AppRoutes.d.ts +1 -0
- package/dist/lib/routing/RequireAuth.d.ts +6 -0
- package/dist/lib/services/health.service.d.ts +8 -0
- package/dist/lib/services/metadata.service.d.ts +16 -0
- package/dist/lib/utils/__tests__/utils.test.d.ts +1 -0
- package/dist/lib/utils/cloudMessaging.d.ts +13 -0
- package/dist/lib/utils/constants.d.ts +17 -0
- package/dist/lib/utils/local-storage.d.ts +5 -0
- package/dist/lib/utils/menuItems.d.ts +22 -0
- package/dist/lib/utils/schemaValidations.d.ts +21 -0
- package/dist/lib/utils/utils.d.ts +46 -0
- package/dist/modals/DashboardModalContext.d.ts +16 -0
- package/dist/navigation/menuItems.d.ts +13 -0
- package/dist/router/DashboardHostRoutes.d.ts +7 -0
- package/dist/router/DashboardProtectedBoundary.d.ts +9 -0
- package/dist/router/DashboardRouter.d.ts +1 -0
- package/dist/router/index.d.ts +3 -0
- package/dist/router/paths.d.ts +5 -0
- package/dist/styles.css +1 -0
- package/dist/types/index.d.ts +80 -0
- package/package.json +78 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare function useRealtimePermissions(): {
|
|
2
|
+
permissions: {
|
|
3
|
+
subscribe: {
|
|
4
|
+
policies: {
|
|
5
|
+
tableName: string;
|
|
6
|
+
policyName: string;
|
|
7
|
+
roles: string[];
|
|
8
|
+
withCheck: string | null;
|
|
9
|
+
command: string;
|
|
10
|
+
using: string | null;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
publish: {
|
|
14
|
+
policies: {
|
|
15
|
+
tableName: string;
|
|
16
|
+
policyName: string;
|
|
17
|
+
roles: string[];
|
|
18
|
+
withCheck: string | null;
|
|
19
|
+
command: string;
|
|
20
|
+
using: string | null;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
} | undefined;
|
|
24
|
+
isLoadingPermissions: boolean;
|
|
25
|
+
permissionsError: Error | null;
|
|
26
|
+
refetchPermissions: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
27
|
+
subscribe: {
|
|
28
|
+
policies: {
|
|
29
|
+
tableName: string;
|
|
30
|
+
policyName: string;
|
|
31
|
+
roles: string[];
|
|
32
|
+
withCheck: string | null;
|
|
33
|
+
command: string;
|
|
34
|
+
using: string | null;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
publish: {
|
|
38
|
+
policies: {
|
|
39
|
+
tableName: string;
|
|
40
|
+
policyName: string;
|
|
41
|
+
roles: string[];
|
|
42
|
+
withCheck: string | null;
|
|
43
|
+
command: string;
|
|
44
|
+
using: string | null;
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
47
|
+
}, Error>>;
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RealtimeChannelsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RealtimeMessagesPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RealtimePermissionsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RealtimeChannel, RealtimeMessage, CreateChannelRequest, UpdateChannelRequest, ListMessagesRequest, MessageStatsResponse, GetRealtimeConfigResponse, RlsPolicy, RealtimePermissionsResponse, UpdateRealtimeConfigRequest } from '@insforge/shared-schemas';
|
|
2
|
+
export type { RealtimeChannel, RealtimeMessage, RlsPolicy, RealtimePermissionsResponse };
|
|
3
|
+
export declare class RealtimeService {
|
|
4
|
+
listChannels(): Promise<RealtimeChannel[]>;
|
|
5
|
+
getChannel(id: string): Promise<RealtimeChannel>;
|
|
6
|
+
createChannel(data: CreateChannelRequest): Promise<RealtimeChannel>;
|
|
7
|
+
updateChannel(id: string, data: UpdateChannelRequest): Promise<RealtimeChannel>;
|
|
8
|
+
deleteChannel(id: string): Promise<void>;
|
|
9
|
+
listMessages(params?: ListMessagesRequest): Promise<RealtimeMessage[]>;
|
|
10
|
+
getMessageStats(channelId?: string): Promise<MessageStatsResponse>;
|
|
11
|
+
getPermissions(): Promise<RealtimePermissionsResponse>;
|
|
12
|
+
getRealtimeConfig(): Promise<GetRealtimeConfigResponse>;
|
|
13
|
+
updateRealtimeConfig(data: UpdateRealtimeConfigRequest): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export declare const realtimeService: RealtimeService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface BucketFormDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
onSuccess: (bucketName?: string) => void;
|
|
5
|
+
mode: 'create' | 'edit';
|
|
6
|
+
initialBucketName?: string;
|
|
7
|
+
initialIsPublic?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function BucketFormDialog({ open, onOpenChange, onSuccess, mode, initialBucketName, initialIsPublic, }: BucketFormDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StorageFileSchema } from '@insforge/shared-schemas';
|
|
2
|
+
interface FilePreviewDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
file: StorageFileSchema | null;
|
|
6
|
+
bucket: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function FilePreviewDialog({ open, onOpenChange, file, bucket }: FilePreviewDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type DataGridColumn, type DataGridRowType } from '../../../components';
|
|
2
|
+
import { StorageFileSchema } from '@insforge/shared-schemas';
|
|
3
|
+
type StorageDataGridRow = StorageFileSchema & DataGridRowType;
|
|
4
|
+
export declare function createStorageColumns(onPreview?: (file: StorageFileSchema) => void, onDownload?: (file: StorageFileSchema) => void, onDelete?: (file: StorageFileSchema) => void, isDownloading?: (key: string) => boolean): DataGridColumn<StorageDataGridRow>[];
|
|
5
|
+
export interface StorageDataGridProps {
|
|
6
|
+
bucketName: string;
|
|
7
|
+
fileCount: number;
|
|
8
|
+
searchQuery: string;
|
|
9
|
+
selectedFiles: Set<string>;
|
|
10
|
+
onSelectedFilesChange: (selectedFiles: Set<string>) => void;
|
|
11
|
+
isRefreshing?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function StorageDataGrid({ bucketName, searchQuery, fileCount, selectedFiles, onSelectedFilesChange, isRefreshing, }: StorageDataGridProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function StorageLayout(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Props for the StorageSettingsMenuDialog component. */
|
|
2
|
+
interface StorageSettingsMenuDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
/** Admin dialog for viewing and editing the storage configuration (max upload size). */
|
|
7
|
+
export declare function StorageSettingsMenuDialog({ open, onOpenChange }: StorageSettingsMenuDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Props accepted by the StorageSidebar component. */
|
|
2
|
+
interface StorageSidebarProps {
|
|
3
|
+
buckets: string[];
|
|
4
|
+
selectedBucket?: string;
|
|
5
|
+
onBucketSelect: (bucketName: string) => void;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
onNewBucket?: () => void;
|
|
8
|
+
onEditBucket?: (bucketName: string) => void;
|
|
9
|
+
onDeleteBucket?: (bucketName: string) => void;
|
|
10
|
+
}
|
|
11
|
+
/** Sidebar listing storage buckets with create, edit, delete, and settings actions. */
|
|
12
|
+
export declare function StorageSidebar({ buckets, selectedBucket, onBucketSelect, loading, onNewBucket, onEditBucket, onDeleteBucket, }: StorageSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface UploadToastOptions {
|
|
2
|
+
onCancel?: () => void;
|
|
3
|
+
}
|
|
4
|
+
export declare function useUploadToast(): {
|
|
5
|
+
showUploadToast: (fileCount: number, options?: UploadToastOptions) => string;
|
|
6
|
+
updateUploadProgress: (toastId: string, progress: number) => void;
|
|
7
|
+
cancelUpload: (toastId: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type ListObjectsParams } from '../services/storage.service';
|
|
2
|
+
export declare function useStorage(): {
|
|
3
|
+
buckets: {
|
|
4
|
+
createdAt: string;
|
|
5
|
+
name: string;
|
|
6
|
+
public: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
bucketsCount: number;
|
|
9
|
+
isLoadingBuckets: boolean;
|
|
10
|
+
isUploadingObject: boolean;
|
|
11
|
+
isDeletingObject: boolean;
|
|
12
|
+
isCreatingBucket: boolean;
|
|
13
|
+
isDeletingBucket: boolean;
|
|
14
|
+
isEditingBucket: boolean;
|
|
15
|
+
bucketsError: Error | null;
|
|
16
|
+
uploadObject: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
17
|
+
url: string;
|
|
18
|
+
key: string;
|
|
19
|
+
bucket: string;
|
|
20
|
+
size: number;
|
|
21
|
+
uploadedAt: string;
|
|
22
|
+
mimeType?: string | undefined;
|
|
23
|
+
}, Error, {
|
|
24
|
+
bucket: string;
|
|
25
|
+
objectKey: string;
|
|
26
|
+
file: File;
|
|
27
|
+
}, unknown>;
|
|
28
|
+
deleteObjects: import("@tanstack/react-query").UseMutateFunction<{
|
|
29
|
+
success: string[];
|
|
30
|
+
failures: {
|
|
31
|
+
key: string;
|
|
32
|
+
error: Error;
|
|
33
|
+
}[];
|
|
34
|
+
}, Error, {
|
|
35
|
+
bucket: string;
|
|
36
|
+
keys: string[];
|
|
37
|
+
}, unknown>;
|
|
38
|
+
createBucket: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, {
|
|
39
|
+
bucketName: string;
|
|
40
|
+
isPublic: boolean;
|
|
41
|
+
}, unknown>;
|
|
42
|
+
deleteBucket: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, string, unknown>;
|
|
43
|
+
editBucket: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, {
|
|
44
|
+
bucketName: string;
|
|
45
|
+
config: {
|
|
46
|
+
isPublic: boolean;
|
|
47
|
+
};
|
|
48
|
+
}, unknown>;
|
|
49
|
+
refetchBuckets: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
50
|
+
createdAt: string;
|
|
51
|
+
name: string;
|
|
52
|
+
public: boolean;
|
|
53
|
+
}[], Error>>;
|
|
54
|
+
useListObjects: (bucketName: string, params?: ListObjectsParams, searchQuery?: string, enabled?: boolean) => import("@tanstack/react-query").UseQueryResult<{
|
|
55
|
+
pagination: {
|
|
56
|
+
total: number;
|
|
57
|
+
limit: number;
|
|
58
|
+
offset: number;
|
|
59
|
+
};
|
|
60
|
+
objects: {
|
|
61
|
+
url: string;
|
|
62
|
+
key: string;
|
|
63
|
+
bucket: string;
|
|
64
|
+
size: number;
|
|
65
|
+
uploadedAt: string;
|
|
66
|
+
mimeType?: string | undefined;
|
|
67
|
+
}[];
|
|
68
|
+
}, Error>;
|
|
69
|
+
useBucketStats: (enabled?: boolean) => import("@tanstack/react-query").UseQueryResult<Record<string, {
|
|
70
|
+
fileCount: number;
|
|
71
|
+
totalSize: number;
|
|
72
|
+
public: boolean;
|
|
73
|
+
createdAt?: string;
|
|
74
|
+
}>, Error>;
|
|
75
|
+
getDownloadUrl: (bucketName: string, objectKey: string) => string;
|
|
76
|
+
downloadObject: (bucketName: string, objectKey: string) => Promise<Blob>;
|
|
77
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Query hook for fetching and updating the storage configuration.
|
|
3
|
+
* Provides config data, loading/updating states, and a mutate function.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useStorageConfig(): {
|
|
6
|
+
config: {
|
|
7
|
+
id: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
maxFileSizeMb: number;
|
|
11
|
+
} | undefined;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
isUpdating: boolean;
|
|
14
|
+
error: Error | null;
|
|
15
|
+
updateConfig: import("@tanstack/react-query").UseMutateFunction<{
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
maxFileSizeMb: number;
|
|
20
|
+
}, Error, {
|
|
21
|
+
maxFileSizeMb: number;
|
|
22
|
+
}, unknown>;
|
|
23
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
maxFileSizeMb: number;
|
|
28
|
+
}, Error>>;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function BucketsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StorageConfigSchema, UpdateStorageConfigRequest } from '@insforge/shared-schemas';
|
|
2
|
+
/** Client-side service for interacting with the storage configuration API. */
|
|
3
|
+
export declare class StorageConfigService {
|
|
4
|
+
/** Fetches the current storage configuration from the server. */
|
|
5
|
+
getConfig(): Promise<StorageConfigSchema>;
|
|
6
|
+
/** Persists an updated storage configuration to the server. */
|
|
7
|
+
updateConfig(config: UpdateStorageConfigRequest): Promise<StorageConfigSchema>;
|
|
8
|
+
}
|
|
9
|
+
export declare const storageConfigService: StorageConfigService;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StorageFileSchema, StorageBucketSchema, ListObjectsResponseSchema } from '@insforge/shared-schemas';
|
|
2
|
+
export interface ListObjectsParams {
|
|
3
|
+
prefix?: string;
|
|
4
|
+
limit?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const storageService: {
|
|
8
|
+
listBuckets(): Promise<StorageBucketSchema[]>;
|
|
9
|
+
listObjects(bucketName: string, params?: ListObjectsParams, searchQuery?: string): Promise<ListObjectsResponseSchema>;
|
|
10
|
+
uploadObject(bucketName: string, objectKey: string, object: File): Promise<StorageFileSchema>;
|
|
11
|
+
getDownloadUrl(bucketName: string, objectKey: string): string;
|
|
12
|
+
downloadObject(bucketName: string, objectKey: string): Promise<Blob>;
|
|
13
|
+
deleteObject(bucketName: string, objectKey: string): Promise<void>;
|
|
14
|
+
deleteObjects(bucketName: string, objectKeys: string[]): Promise<{
|
|
15
|
+
success: string[];
|
|
16
|
+
failures: {
|
|
17
|
+
key: string;
|
|
18
|
+
error: Error;
|
|
19
|
+
}[];
|
|
20
|
+
}>;
|
|
21
|
+
createBucket(bucketName: string, isPublic?: boolean): Promise<void>;
|
|
22
|
+
deleteBucket(bucketName: string): Promise<void>;
|
|
23
|
+
editBucket(bucketName: string, config: {
|
|
24
|
+
isPublic: boolean;
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OAuthProvidersSchema } from '@insforge/shared-schemas';
|
|
2
|
+
interface AuthNodeProps {
|
|
3
|
+
data: {
|
|
4
|
+
providers: OAuthProvidersSchema[];
|
|
5
|
+
customProviders: string[];
|
|
6
|
+
userCount?: number;
|
|
7
|
+
isReferenced?: boolean;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function AuthNode({ data }: AuthNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '@xyflow/react/dist/style.css';
|
|
2
|
+
import { GetTableSchemaResponse, DatabaseMetadataSchema, StorageMetadataSchema, OAuthProvidersSchema } from '@insforge/shared-schemas';
|
|
3
|
+
interface SchemaVisualizerProps {
|
|
4
|
+
metadata: {
|
|
5
|
+
auth: {
|
|
6
|
+
providers: OAuthProvidersSchema[];
|
|
7
|
+
customProviders: string[];
|
|
8
|
+
};
|
|
9
|
+
database: DatabaseMetadataSchema;
|
|
10
|
+
storage: StorageMetadataSchema;
|
|
11
|
+
};
|
|
12
|
+
userCount?: number;
|
|
13
|
+
externalSchemas?: GetTableSchemaResponse[];
|
|
14
|
+
showControls?: boolean;
|
|
15
|
+
showMiniMap?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function SchemaVisualizer({ metadata, userCount, externalSchemas, showControls, showMiniMap, }: SchemaVisualizerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TableSchema } from '@insforge/shared-schemas';
|
|
2
|
+
interface TableNodeProps {
|
|
3
|
+
data: {
|
|
4
|
+
table: TableSchema;
|
|
5
|
+
referencedColumns?: string[];
|
|
6
|
+
showRecordCount?: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function TableNode({ data }: TableNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function VisualizerLayout(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function VisualizerSkeleton(): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { InsForgeDashboard } from './app/InsforgeDashboard';
|
|
2
|
+
export { DashboardAppShell } from './app/DashboardAppShell';
|
|
3
|
+
export { createDashboardQueryClient } from './app/createDashboardQueryClient';
|
|
4
|
+
export { DashboardFrame } from './layout/DashboardFrame';
|
|
5
|
+
export { DashboardOutletLayout } from './layout/DashboardOutletLayout';
|
|
6
|
+
export { DashboardSectionLayout } from './layout/DashboardSectionLayout';
|
|
7
|
+
export { DashboardModalProvider, useDashboardModal } from './modals/DashboardModalContext';
|
|
8
|
+
export { dashboardDeploymentsMenuItem, dashboardSettingsMenuItem, dashboardStaticMenuItems, } from './navigation/menuItems';
|
|
9
|
+
export { DashboardHostRoutes } from './router/DashboardHostRoutes';
|
|
10
|
+
export { DashboardProtectedBoundary } from './router/DashboardProtectedBoundary';
|
|
11
|
+
export { CLOUD_LOGIN_PATH, DASHBOARD_AUTH_USERS_PATH, DASHBOARD_DATABASE_TABLES_PATH, DASHBOARD_HOME_PATH, DASHBOARD_LOGIN_PATH, } from './router/paths';
|
|
12
|
+
export type { DashboardAuthConfig, DashboardCapabilities, CloudHostingDashboardProps, DashboardInstanceInfo, DashboardMode, DashboardProjectInfo, DashboardProps, DashboardRoute, DashboardSharedProps, InsForgeDashboardProps, SelfHostingDashboardProps, } from './types';
|
|
13
|
+
export type { DashboardAppShellProps } from './app/DashboardAppShell';
|
|
14
|
+
export type { DashboardFrameProps, DashboardFrameRenderProps } from './layout/DashboardFrame';
|
|
15
|
+
export type { DashboardSectionLayoutProps } from './layout/DashboardSectionLayout';
|
|
16
|
+
export type { DashboardPrimaryMenuItem } from './navigation/menuItems';
|
|
17
|
+
export type { DashboardSettingsTab } from './modals/DashboardModalContext';
|
|
18
|
+
export type { DashboardHostRoutesProps } from './router/DashboardHostRoutes';
|
|
19
|
+
export type { DashboardProtectedBoundaryProps } from './router/DashboardProtectedBoundary';
|