@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 @@
|
|
|
1
|
+
export default function SecretsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FunctionSchema, ListFunctionsResponse, UpdateFunctionRequest, FunctionResponse } from '@insforge/shared-schemas';
|
|
2
|
+
export declare class FunctionService {
|
|
3
|
+
listFunctions(): Promise<ListFunctionsResponse>;
|
|
4
|
+
getFunctionBySlug(slug: string): Promise<FunctionSchema>;
|
|
5
|
+
updateFunction(slug: string, updates: UpdateFunctionRequest): Promise<FunctionResponse>;
|
|
6
|
+
deleteFunction(slug: string): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const functionService: FunctionService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScheduleSchema, ListExecutionLogsResponse, CreateScheduleRequest, CreateScheduleResponse, UpdateScheduleRequest, UpdateScheduleResponse, DeleteScheduleResponse } from '@insforge/shared-schemas';
|
|
2
|
+
export declare class ScheduleService {
|
|
3
|
+
listSchedules(): Promise<ScheduleSchema[]>;
|
|
4
|
+
getSchedule(id: string): Promise<ScheduleSchema | null>;
|
|
5
|
+
createSchedule(payload: CreateScheduleRequest): Promise<CreateScheduleResponse>;
|
|
6
|
+
updateSchedule(scheduleId: string, payload: UpdateScheduleRequest): Promise<UpdateScheduleResponse>;
|
|
7
|
+
deleteSchedule(scheduleId: string): Promise<DeleteScheduleResponse>;
|
|
8
|
+
listExecutionLogs(scheduleId: string, limit?: number, offset?: number): Promise<ListExecutionLogsResponse>;
|
|
9
|
+
}
|
|
10
|
+
export declare const scheduleService: ScheduleService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SecretSchema, CreateSecretRequest, CreateSecretResponse, DeleteSecretResponse, GetSecretValueResponse } from '@insforge/shared-schemas';
|
|
2
|
+
export declare class SecretService {
|
|
3
|
+
listSecrets(): Promise<SecretSchema[]>;
|
|
4
|
+
createSecret(input: CreateSecretRequest): Promise<CreateSecretResponse>;
|
|
5
|
+
deleteSecret(key: string): Promise<DeleteSecretResponse>;
|
|
6
|
+
getSecretValue(key: string): Promise<GetSecretValueResponse>;
|
|
7
|
+
}
|
|
8
|
+
export declare const secretService: SecretService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CloudLoginPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function LoginPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UserSchema } from '@insforge/shared-schemas';
|
|
2
|
+
interface LoginResult {
|
|
3
|
+
user: UserSchema;
|
|
4
|
+
accessToken: string;
|
|
5
|
+
csrfToken?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class LoginService {
|
|
8
|
+
loginWithPassword(email: string, password: string): Promise<LoginResult>;
|
|
9
|
+
loginWithAuthorizationCode(code: string): Promise<LoginResult>;
|
|
10
|
+
logout(): Promise<void>;
|
|
11
|
+
getCurrentUser(): Promise<UserSchema | null>;
|
|
12
|
+
refreshAccessToken(): Promise<boolean>;
|
|
13
|
+
setAuthErrorHandler(handler?: () => void): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const loginService: LoginService;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface PartnershipConfig {
|
|
2
|
+
partner_sites: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare class PartnershipService {
|
|
5
|
+
private configCache;
|
|
6
|
+
private fetchPromise;
|
|
7
|
+
private readonly CONFIG_URL;
|
|
8
|
+
/**
|
|
9
|
+
* Fetches the partnership configuration from S3
|
|
10
|
+
* Uses caching to avoid repeated fetches
|
|
11
|
+
*/
|
|
12
|
+
fetchConfig(): Promise<PartnershipConfig | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Clears the cached configuration (useful for testing or forcing refresh)
|
|
15
|
+
*/
|
|
16
|
+
clearCache(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const partnershipService: PartnershipService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type FunctionLogType = 'runtime' | 'build';
|
|
2
|
+
export interface FunctionLogTab {
|
|
3
|
+
id: FunctionLogType;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface FunctionLogsTabsProps {
|
|
7
|
+
value: FunctionLogType;
|
|
8
|
+
onChange: (value: FunctionLogType) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function FunctionLogsTabs({ value, onChange, className }: FunctionLogsTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LogSchema } from '@insforge/shared-schemas';
|
|
2
|
+
interface LogDetailPanelProps {
|
|
3
|
+
log: LogSchema | null;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function LogDetailPanel({ log, onClose }: LogDetailPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type DataGridProps, type RenderCellProps, type RenderHeaderCellProps, type DataGridColumn, type DataGridRowType } from '../../../components/datagrid';
|
|
2
|
+
export interface LogsColumnDef {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
sortable?: boolean;
|
|
9
|
+
renderCell?: (props: RenderCellProps<DataGridRowType>) => React.ReactNode;
|
|
10
|
+
renderHeaderCell?: (props: RenderHeaderCellProps<DataGridRowType>) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function createLogsColumns(columnDefs: LogsColumnDef[]): DataGridColumn<DataGridRowType>[];
|
|
13
|
+
export interface LogsDataGridProps<T = Record<string, unknown>> extends Omit<DataGridProps<DataGridRowType>, 'columns' | 'data'> {
|
|
14
|
+
columnDefs: LogsColumnDef[];
|
|
15
|
+
data: T[];
|
|
16
|
+
noPadding?: boolean;
|
|
17
|
+
selectedRowId?: string | null;
|
|
18
|
+
onRowClick?: (row: T) => void;
|
|
19
|
+
rightPanel?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function LogsDataGrid<T = Record<string, unknown>>({ columnDefs, data, noPadding, selectedRowId, onRowClick, rightPanel, ...restProps }: LogsDataGridProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function LogsLayout(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LogsSidebar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { LogsDataGrid, createLogsColumns, type LogsColumnDef } from './LogsDataGrid';
|
|
2
|
+
export { SeverityBadge } from './SeverityBadge';
|
|
3
|
+
export { SeverityFilterDropdown } from './SeverityFilterDropdown';
|
|
4
|
+
export { LogDetailPanel } from './LogDetailPanel';
|
|
5
|
+
export { FunctionLogsTabs, type FunctionLogType } from './FunctionLogsTabs';
|
|
6
|
+
export { BuildLogsView } from './BuildLogsView';
|
|
7
|
+
export { LogsSidebar } from './LogsSidebar';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Severity options for log filtering
|
|
3
|
+
*/
|
|
4
|
+
export declare const SEVERITY_OPTIONS: readonly [{
|
|
5
|
+
readonly value: "error";
|
|
6
|
+
readonly label: "Error";
|
|
7
|
+
readonly color: "text-red-500";
|
|
8
|
+
}, {
|
|
9
|
+
readonly value: "warning";
|
|
10
|
+
readonly label: "Warning";
|
|
11
|
+
readonly color: "text-yellow-500";
|
|
12
|
+
}, {
|
|
13
|
+
readonly value: "informational";
|
|
14
|
+
readonly label: "Info";
|
|
15
|
+
readonly color: "text-gray-500";
|
|
16
|
+
}];
|
|
17
|
+
/**
|
|
18
|
+
* Severity configuration for badges
|
|
19
|
+
*/
|
|
20
|
+
export declare const SEVERITY_CONFIG: {
|
|
21
|
+
readonly error: {
|
|
22
|
+
readonly color: "#EF4444";
|
|
23
|
+
readonly label: "Error";
|
|
24
|
+
};
|
|
25
|
+
readonly warning: {
|
|
26
|
+
readonly color: "#FCD34D";
|
|
27
|
+
readonly label: "Warning";
|
|
28
|
+
};
|
|
29
|
+
readonly informational: {
|
|
30
|
+
readonly color: "#A3A3A3";
|
|
31
|
+
readonly label: "Info";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type SeverityType = keyof typeof SEVERITY_CONFIG;
|
|
35
|
+
/**
|
|
36
|
+
* Default page size for logs pagination
|
|
37
|
+
*/
|
|
38
|
+
export declare const LOGS_PAGE_SIZE = 50;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { GetAuditLogsRequest } from '@insforge/shared-schemas';
|
|
2
|
+
export declare const useAuditLogs: (filters?: Partial<GetAuditLogsRequest>) => import("@tanstack/react-query").UseQueryResult<{
|
|
3
|
+
data: {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
actor: string;
|
|
8
|
+
action: string;
|
|
9
|
+
module: string;
|
|
10
|
+
details: Record<string, unknown> | null;
|
|
11
|
+
ipAddress: string | null;
|
|
12
|
+
}[];
|
|
13
|
+
pagination: {
|
|
14
|
+
total: number;
|
|
15
|
+
limit: number;
|
|
16
|
+
offset: number;
|
|
17
|
+
};
|
|
18
|
+
}, Error>;
|
|
19
|
+
export declare const useAuditLogStats: (days?: number) => import("@tanstack/react-query").UseQueryResult<{
|
|
20
|
+
totalLogs: number;
|
|
21
|
+
uniqueActors: number;
|
|
22
|
+
uniqueModules: number;
|
|
23
|
+
actionsByModule: Record<string, number>;
|
|
24
|
+
recentActivity: {
|
|
25
|
+
id: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
actor: string;
|
|
29
|
+
action: string;
|
|
30
|
+
module: string;
|
|
31
|
+
details: Record<string, unknown> | null;
|
|
32
|
+
ipAddress: string | null;
|
|
33
|
+
}[];
|
|
34
|
+
}, Error>;
|
|
35
|
+
export declare const useClearAuditLogs: () => import("@tanstack/react-query").UseMutationResult<{
|
|
36
|
+
message: string;
|
|
37
|
+
deleted: number;
|
|
38
|
+
}, Error, number | undefined, unknown>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FeatureSidebarListItem } from '../../../components';
|
|
2
|
+
import type { LogSourceSchema } from '@insforge/shared-schemas';
|
|
3
|
+
export declare function useLogSources(): {
|
|
4
|
+
sources: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
token: string;
|
|
8
|
+
}[];
|
|
9
|
+
sourceNames: string[];
|
|
10
|
+
sourcesCount: number;
|
|
11
|
+
selectedSource: string | null;
|
|
12
|
+
stats: {
|
|
13
|
+
count: number;
|
|
14
|
+
source: string;
|
|
15
|
+
lastActivity: string;
|
|
16
|
+
}[];
|
|
17
|
+
menuItems: FeatureSidebarListItem[];
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
isLoadingStats: boolean;
|
|
20
|
+
error: Error | null;
|
|
21
|
+
statsError: Error | null;
|
|
22
|
+
selectSource: (sourceName: string) => void;
|
|
23
|
+
clearSelection: () => void;
|
|
24
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
token: string;
|
|
28
|
+
}[], Error>>;
|
|
29
|
+
refetchStats: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
30
|
+
count: number;
|
|
31
|
+
source: string;
|
|
32
|
+
lastActivity: string;
|
|
33
|
+
}[], Error>>;
|
|
34
|
+
refreshAll: () => Promise<void>;
|
|
35
|
+
getSourceByName: (name: string) => LogSourceSchema | undefined;
|
|
36
|
+
getStatsForSource: (sourceName: string) => {
|
|
37
|
+
count: number;
|
|
38
|
+
source: string;
|
|
39
|
+
lastActivity: string;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { LogSchema } from '@insforge/shared-schemas';
|
|
2
|
+
import { SeverityType } from '../helpers';
|
|
3
|
+
export declare function useLogs(source: string, pageSize?: number): {
|
|
4
|
+
logs: {
|
|
5
|
+
id: string;
|
|
6
|
+
timestamp: string;
|
|
7
|
+
eventMessage: string;
|
|
8
|
+
body: Record<string, unknown>;
|
|
9
|
+
source?: string | undefined;
|
|
10
|
+
}[];
|
|
11
|
+
allLogs: {
|
|
12
|
+
id: string;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
eventMessage: string;
|
|
15
|
+
body: Record<string, unknown>;
|
|
16
|
+
source?: string | undefined;
|
|
17
|
+
}[];
|
|
18
|
+
filteredLogs: {
|
|
19
|
+
id: string;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
eventMessage: string;
|
|
22
|
+
body: Record<string, unknown>;
|
|
23
|
+
source?: string | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
totalLogs: number;
|
|
26
|
+
searchQuery: string;
|
|
27
|
+
setSearchQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
28
|
+
severityFilter: string[];
|
|
29
|
+
setSeverityFilter: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
30
|
+
currentPage: number;
|
|
31
|
+
setCurrentPage: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
32
|
+
totalPages: number;
|
|
33
|
+
startIndex: number;
|
|
34
|
+
endIndex: number;
|
|
35
|
+
isLoading: boolean;
|
|
36
|
+
isLoadingMore: boolean;
|
|
37
|
+
hasMore: boolean;
|
|
38
|
+
error: Error | null;
|
|
39
|
+
loadMoreLogs: () => Promise<void>;
|
|
40
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
41
|
+
logs: {
|
|
42
|
+
id: string;
|
|
43
|
+
timestamp: string;
|
|
44
|
+
eventMessage: string;
|
|
45
|
+
body: Record<string, unknown>;
|
|
46
|
+
source?: string | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
total: number;
|
|
49
|
+
}, Error>>;
|
|
50
|
+
getSeverity: (log: LogSchema) => SeverityType;
|
|
51
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { McpUsageRecord } from '../services/usage.service';
|
|
2
|
+
interface UseMcpUsageOptions {
|
|
3
|
+
successFilter?: boolean | null;
|
|
4
|
+
limit?: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Hook to manage MCP usage data
|
|
9
|
+
*
|
|
10
|
+
* Features:
|
|
11
|
+
* - Fetches MCP logs from backend
|
|
12
|
+
* - Provides helper functions for data access
|
|
13
|
+
* - Handles initial parent window notification for onboarding (if in iframe)
|
|
14
|
+
* - Supports search and pagination
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare function useMcpUsage(options?: UseMcpUsageOptions): {
|
|
18
|
+
records: McpUsageRecord[];
|
|
19
|
+
allRecords: McpUsageRecord[];
|
|
20
|
+
filteredRecords: McpUsageRecord[];
|
|
21
|
+
hasCompletedOnboarding: boolean;
|
|
22
|
+
latestRecord: McpUsageRecord;
|
|
23
|
+
recordsCount: number;
|
|
24
|
+
filteredRecordsCount: number;
|
|
25
|
+
searchQuery: string;
|
|
26
|
+
setSearchQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
27
|
+
currentPage: number;
|
|
28
|
+
setCurrentPage: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
29
|
+
totalPages: number;
|
|
30
|
+
pageSize: number;
|
|
31
|
+
isLoading: boolean;
|
|
32
|
+
error: Error | null;
|
|
33
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<McpUsageRecord[], Error>>;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AuditsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FunctionLogsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function LogsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MCPLogsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetAuditLogsResponse, ClearAuditLogsResponse, GetAuditLogsRequest, GetAuditLogStatsResponse } from '@insforge/shared-schemas';
|
|
2
|
+
export declare class AuditService {
|
|
3
|
+
getAuditLogs({ limit, offset, ...filters }: GetAuditLogsRequest): Promise<GetAuditLogsResponse>;
|
|
4
|
+
getAuditLogStats(days?: number): Promise<GetAuditLogStatsResponse>;
|
|
5
|
+
clearAuditLogs(daysToKeep?: number): Promise<ClearAuditLogsResponse>;
|
|
6
|
+
}
|
|
7
|
+
export declare const auditService: AuditService;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LogSourceSchema, LogSchema, GetLogsResponse, LogStatsSchema } from '@insforge/shared-schemas';
|
|
2
|
+
export interface BuildLogEntry {
|
|
3
|
+
level: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GetBuildLogsResponse {
|
|
7
|
+
deploymentId: string;
|
|
8
|
+
status: 'pending' | 'success' | 'failed';
|
|
9
|
+
logs: BuildLogEntry[];
|
|
10
|
+
createdAt: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class LogService {
|
|
13
|
+
getLogSources(): Promise<LogSourceSchema[]>;
|
|
14
|
+
getLogSourceStats(): Promise<LogStatsSchema[]>;
|
|
15
|
+
getLogsBySource(sourceName: string, limit?: number, beforeTimestamp?: string): Promise<GetLogsResponse>;
|
|
16
|
+
searchLogs(query: string, sourceName?: string, limit?: number, offset?: number): Promise<{
|
|
17
|
+
records: LogSchema[];
|
|
18
|
+
total: number;
|
|
19
|
+
}>;
|
|
20
|
+
getFunctionBuildLogs(deploymentId?: string): Promise<GetBuildLogsResponse | null>;
|
|
21
|
+
}
|
|
22
|
+
export declare const logService: LogService;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface McpUsageRecord {
|
|
2
|
+
id?: string;
|
|
3
|
+
tool_name: string;
|
|
4
|
+
success: boolean;
|
|
5
|
+
created_at: string;
|
|
6
|
+
}
|
|
7
|
+
export interface McpUsageResponse {
|
|
8
|
+
records: McpUsageRecord[];
|
|
9
|
+
}
|
|
10
|
+
export declare class UsageService {
|
|
11
|
+
/**
|
|
12
|
+
* Get MCP usage records
|
|
13
|
+
*/
|
|
14
|
+
getMcpUsage(success?: boolean | null, limit?: number): Promise<McpUsageRecord[]>;
|
|
15
|
+
}
|
|
16
|
+
export declare const usageService: UsageService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type CreateChannelRequest, type UpdateChannelRequest } from '@insforge/shared-schemas';
|
|
2
|
+
import type { RealtimeChannel } from '../services/realtime.service';
|
|
3
|
+
interface ChannelFormDialogProps {
|
|
4
|
+
mode: 'create' | 'edit';
|
|
5
|
+
channel?: RealtimeChannel | null;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
onSave?: (id: string, data: UpdateChannelRequest) => void;
|
|
9
|
+
onCreate?: (data: CreateChannelRequest) => void;
|
|
10
|
+
isUpdating?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function ChannelFormDialog({ mode, channel, open, onOpenChange, onSave, onCreate, isUpdating, }: ChannelFormDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RealtimeChannel } from '../services/realtime.service';
|
|
2
|
+
interface ChannelRowProps {
|
|
3
|
+
channel: RealtimeChannel;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
onToggleEnabled: (enabled: boolean) => void;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
isUpdating?: boolean;
|
|
8
|
+
isDeleting?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function ChannelRow({ channel, onClick, onToggleEnabled, onDelete, isUpdating, isDeleting, className, }: ChannelRowProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RealtimeMessage } from '../services/realtime.service';
|
|
2
|
+
interface MessageRowProps {
|
|
3
|
+
message: RealtimeMessage;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function MessageRow({ message, className }: MessageRowProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RealtimeLayout(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface RealtimeSettingsMenuDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function RealtimeSettingsMenuDialog({ open, onOpenChange, }: RealtimeSettingsMenuDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RealtimeSidebar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type RealtimeChannel } from '../services/realtime.service';
|
|
2
|
+
import type { UpdateChannelRequest } from '@insforge/shared-schemas';
|
|
3
|
+
export declare function useRealtimeChannels(): {
|
|
4
|
+
channels: {
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
pattern: string;
|
|
11
|
+
webhookUrls: string[] | null;
|
|
12
|
+
}[];
|
|
13
|
+
channelsCount: number;
|
|
14
|
+
selectedChannel: {
|
|
15
|
+
id: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
pattern: string;
|
|
21
|
+
webhookUrls: string[] | null;
|
|
22
|
+
} | null;
|
|
23
|
+
isLoadingChannels: boolean;
|
|
24
|
+
channelsError: Error | null;
|
|
25
|
+
refetchChannels: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
26
|
+
id: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
description: string | null;
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
pattern: string;
|
|
32
|
+
webhookUrls: string[] | null;
|
|
33
|
+
}[], Error>>;
|
|
34
|
+
selectChannel: (channel: RealtimeChannel | null) => void;
|
|
35
|
+
clearSelection: () => void;
|
|
36
|
+
createChannel: import("@tanstack/react-query").UseMutateFunction<{
|
|
37
|
+
id: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
description: string | null;
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
updatedAt: string;
|
|
42
|
+
pattern: string;
|
|
43
|
+
webhookUrls: string[] | null;
|
|
44
|
+
}, Error, {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
pattern: string;
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
webhookUrls?: string[] | undefined;
|
|
49
|
+
}, unknown>;
|
|
50
|
+
updateChannel: import("@tanstack/react-query").UseMutateFunction<{
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
description: string | null;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
pattern: string;
|
|
57
|
+
webhookUrls: string[] | null;
|
|
58
|
+
}, Error, {
|
|
59
|
+
id: string;
|
|
60
|
+
data: UpdateChannelRequest;
|
|
61
|
+
}, unknown>;
|
|
62
|
+
deleteChannel: import("@tanstack/react-query").UseMutateFunction<void, Error, string, unknown>;
|
|
63
|
+
isCreating: boolean;
|
|
64
|
+
isUpdating: boolean;
|
|
65
|
+
isDeleting: boolean;
|
|
66
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function useRealtimeConfig(): {
|
|
2
|
+
config: {
|
|
3
|
+
retentionDays: number | null;
|
|
4
|
+
} | undefined;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isUpdating: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
updateConfig: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, {
|
|
9
|
+
retentionDays: number | null;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
12
|
+
retentionDays: number | null;
|
|
13
|
+
}, Error>>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ListMessagesRequest } from '@insforge/shared-schemas';
|
|
2
|
+
export declare function useRealtimeMessages(): {
|
|
3
|
+
messages: {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
eventName: string;
|
|
7
|
+
channelId: string | null;
|
|
8
|
+
channelName: string;
|
|
9
|
+
payload: Record<string, unknown>;
|
|
10
|
+
senderType: "user" | "system";
|
|
11
|
+
senderId: string | null;
|
|
12
|
+
wsAudienceCount: number;
|
|
13
|
+
whAudienceCount: number;
|
|
14
|
+
whDeliveredCount: number;
|
|
15
|
+
}[];
|
|
16
|
+
messagesCount: number;
|
|
17
|
+
messagesParams: {
|
|
18
|
+
limit: number;
|
|
19
|
+
offset: number;
|
|
20
|
+
eventName?: string | undefined;
|
|
21
|
+
channelId?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
isLoadingMessages: boolean;
|
|
24
|
+
messagesError: Error | null;
|
|
25
|
+
stats: {
|
|
26
|
+
retentionDays: number | null;
|
|
27
|
+
totalMessages: number;
|
|
28
|
+
whDeliveryRate: number;
|
|
29
|
+
topEvents: {
|
|
30
|
+
count: number;
|
|
31
|
+
eventName: string;
|
|
32
|
+
}[];
|
|
33
|
+
} | undefined;
|
|
34
|
+
isLoadingStats: boolean;
|
|
35
|
+
messagesPageSize: number;
|
|
36
|
+
messagesCurrentPage: number;
|
|
37
|
+
messagesTotalCount: number;
|
|
38
|
+
messagesTotalPages: number;
|
|
39
|
+
setMessagesPage: (page: number) => void;
|
|
40
|
+
filterMessages: (params: Partial<ListMessagesRequest>) => void;
|
|
41
|
+
refetchMessages: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
42
|
+
id: string;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
eventName: string;
|
|
45
|
+
channelId: string | null;
|
|
46
|
+
channelName: string;
|
|
47
|
+
payload: Record<string, unknown>;
|
|
48
|
+
senderType: "user" | "system";
|
|
49
|
+
senderId: string | null;
|
|
50
|
+
wsAudienceCount: number;
|
|
51
|
+
whAudienceCount: number;
|
|
52
|
+
whDeliveredCount: number;
|
|
53
|
+
}[], Error>>;
|
|
54
|
+
refetchStats: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
55
|
+
retentionDays: number | null;
|
|
56
|
+
totalMessages: number;
|
|
57
|
+
whDeliveryRate: number;
|
|
58
|
+
topEvents: {
|
|
59
|
+
count: number;
|
|
60
|
+
eventName: string;
|
|
61
|
+
}[];
|
|
62
|
+
}, Error>>;
|
|
63
|
+
refetch: () => void;
|
|
64
|
+
};
|