nucleus-core-ts 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +48 -0
- package/README.md +177 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +1 -0
- package/dist/dist/index-0yyw12k6.d.ts +8 -0
- package/dist/dist/index-tv67j5qd.d.ts +488 -0
- package/dist/dist/index.d.ts +40 -0
- package/dist/fe/components/AbstractAnimatedBackground/index.d.ts +7 -0
- package/dist/fe/components/AuthorizationPage/components/AuthorizationPage.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/ClaimList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleClaimEditor.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/index.d.ts +9 -0
- package/dist/fe/components/AuthorizationPage/store/index.d.ts +47 -0
- package/dist/fe/components/AuthorizationPage/theme/index.d.ts +82 -0
- package/dist/fe/components/AuthorizationPage/types/index.d.ts +64 -0
- package/dist/fe/components/Button/components/Button.d.ts +3 -0
- package/dist/fe/components/Button/components/ButtonSpinner.d.ts +3 -0
- package/dist/fe/components/Button/index.d.ts +6 -0
- package/dist/fe/components/Button/theme/index.d.ts +183 -0
- package/dist/fe/components/Button/types/index.d.ts +24 -0
- package/dist/fe/components/Button/utils/cn.d.ts +3 -0
- package/dist/fe/components/Captcha/components/Captcha.d.ts +4 -0
- package/dist/fe/components/Captcha/index.d.ts +4 -0
- package/dist/fe/components/Captcha/theme.d.ts +53 -0
- package/dist/fe/components/Captcha/types.d.ts +60 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordForm.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordHeader.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordPage.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ChangePasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/ChangePasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ChangePasswordPage/types/index.d.ts +56 -0
- package/dist/fe/components/Checkbox/components/Checkbox.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/CheckboxIcon.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/SwitchTrack.d.ts +3 -0
- package/dist/fe/components/Checkbox/index.d.ts +7 -0
- package/dist/fe/components/Checkbox/theme/index.d.ts +218 -0
- package/dist/fe/components/Checkbox/types/index.d.ts +39 -0
- package/dist/fe/components/Checkbox/utils/cn.d.ts +3 -0
- package/dist/fe/components/DataTable/DataTable.d.ts +3 -0
- package/dist/fe/components/DataTable/components/ActionCell.d.ts +10 -0
- package/dist/fe/components/DataTable/components/DataCell.d.ts +18 -0
- package/dist/fe/components/DataTable/components/EditableCell.d.ts +14 -0
- package/dist/fe/components/DataTable/components/EmptyState.d.ts +8 -0
- package/dist/fe/components/DataTable/components/HeaderCell.d.ts +16 -0
- package/dist/fe/components/DataTable/components/InfiniteScrollTrigger.d.ts +11 -0
- package/dist/fe/components/DataTable/components/LoadingSpinner.d.ts +7 -0
- package/dist/fe/components/DataTable/components/ResizeHandle.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SelectionCell.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonRow.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonTable.d.ts +10 -0
- package/dist/fe/components/DataTable/components/SortIcon.d.ts +9 -0
- package/dist/fe/components/DataTable/components/TableHeader.d.ts +20 -0
- package/dist/fe/components/DataTable/components/TableRow.d.ts +20 -0
- package/dist/fe/components/DataTable/components/index.d.ts +15 -0
- package/dist/fe/components/DataTable/hooks/index.d.ts +3 -0
- package/dist/fe/components/DataTable/hooks/useAutoFitColumn.d.ts +8 -0
- package/dist/fe/components/DataTable/hooks/useResizeColumn.d.ts +12 -0
- package/dist/fe/components/DataTable/index.d.ts +6 -0
- package/dist/fe/components/DataTable/store/index.d.ts +52 -0
- package/dist/fe/components/DataTable/theme/index.d.ts +131 -0
- package/dist/fe/components/DataTable/types/index.d.ts +151 -0
- package/dist/fe/components/DataTable/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarGrid.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarHeader.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/DatePicker.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/MonthYearSelector.d.ts +10 -0
- package/dist/fe/components/DatePicker/index.d.ts +10 -0
- package/dist/fe/components/DatePicker/locales/index.d.ts +5 -0
- package/dist/fe/components/DatePicker/theme/index.d.ts +312 -0
- package/dist/fe/components/DatePicker/types/index.d.ts +88 -0
- package/dist/fe/components/DatePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/utils/date.d.ts +21 -0
- package/dist/fe/components/DevicesPage/components/DeviceCard.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesHeader.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesPage.d.ts +4 -0
- package/dist/fe/components/DevicesPage/index.d.ts +8 -0
- package/dist/fe/components/DevicesPage/store/index.d.ts +20 -0
- package/dist/fe/components/DevicesPage/theme/index.d.ts +92 -0
- package/dist/fe/components/DevicesPage/types/index.d.ts +147 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordForm.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordPage.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ForgotPasswordPage/store/index.d.ts +14 -0
- package/dist/fe/components/ForgotPasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ForgotPasswordPage/types/index.d.ts +48 -0
- package/dist/fe/components/FormBuilder/components/FormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/components/FormField.d.ts +3 -0
- package/dist/fe/components/FormBuilder/hooks/useFormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/index.d.ts +6 -0
- package/dist/fe/components/FormBuilder/theme/index.d.ts +136 -0
- package/dist/fe/components/FormBuilder/types/index.d.ts +150 -0
- package/dist/fe/components/FormBuilder/utils/cn.d.ts +3 -0
- package/dist/fe/components/FormBuilder/utils/fieldMapping.d.ts +12 -0
- package/dist/fe/components/FormBuilder/utils/validation.d.ts +11 -0
- package/dist/fe/components/LoginPage/components/LoginForm.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginHeader.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginPage.d.ts +4 -0
- package/dist/fe/components/LoginPage/index.d.ts +8 -0
- package/dist/fe/components/LoginPage/store/index.d.ts +22 -0
- package/dist/fe/components/LoginPage/theme/index.d.ts +55 -0
- package/dist/fe/components/LoginPage/types/index.d.ts +129 -0
- package/dist/fe/components/MagicLinkVerifyPage/components/MagicLinkVerifyPage.d.ts +4 -0
- package/dist/fe/components/MagicLinkVerifyPage/index.d.ts +5 -0
- package/dist/fe/components/MagicLinkVerifyPage/store.d.ts +15 -0
- package/dist/fe/components/MagicLinkVerifyPage/theme.d.ts +37 -0
- package/dist/fe/components/MagicLinkVerifyPage/types.d.ts +35 -0
- package/dist/fe/components/NucleusEntityShowcase.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/FloatingLabel.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/InputIcons.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/NucleusTextInput.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/PasswordStrengthIndicator.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/TypewriterText.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/index.d.ts +11 -0
- package/dist/fe/components/NucleusTextInput/theme/index.d.ts +108 -0
- package/dist/fe/components/NucleusTextInput/types/index.d.ts +65 -0
- package/dist/fe/components/NucleusTextInput/utils/cn.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/utils/format.d.ts +8 -0
- package/dist/fe/components/NucleusTextInput/utils/validation.d.ts +23 -0
- package/dist/fe/components/ProfilePage/components/AddressCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/PhoneCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfileHeader.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfilePage.d.ts +4 -0
- package/dist/fe/components/ProfilePage/index.d.ts +10 -0
- package/dist/fe/components/ProfilePage/store/index.d.ts +37 -0
- package/dist/fe/components/ProfilePage/theme/index.d.ts +101 -0
- package/dist/fe/components/ProfilePage/types/index.d.ts +150 -0
- package/dist/fe/components/RangePicker/components/RangePicker.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeThumb.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTooltip.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTrack.d.ts +3 -0
- package/dist/fe/components/RangePicker/index.d.ts +8 -0
- package/dist/fe/components/RangePicker/theme/index.d.ts +90 -0
- package/dist/fe/components/RangePicker/types/index.d.ts +66 -0
- package/dist/fe/components/RangePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/RegisterPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/RegisterPage/components/RegisterForm.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterHeader.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterPage.d.ts +4 -0
- package/dist/fe/components/RegisterPage/index.d.ts +9 -0
- package/dist/fe/components/RegisterPage/store/index.d.ts +19 -0
- package/dist/fe/components/RegisterPage/theme/index.d.ts +81 -0
- package/dist/fe/components/RegisterPage/types/index.d.ts +141 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordForm.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordPage.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ResetPasswordPage/store/index.d.ts +15 -0
- package/dist/fe/components/ResetPasswordPage/theme/index.d.ts +56 -0
- package/dist/fe/components/ResetPasswordPage/types/index.d.ts +50 -0
- package/dist/fe/components/SearchBox/components/SearchBox.d.ts +3 -0
- package/dist/fe/components/SearchBox/components/SearchBoxDropdown.d.ts +3 -0
- package/dist/fe/components/SearchBox/index.d.ts +8 -0
- package/dist/fe/components/SearchBox/theme/index.d.ts +141 -0
- package/dist/fe/components/SearchBox/types/index.d.ts +47 -0
- package/dist/fe/components/SearchBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SearchBox/utils/debounce.d.ts +5 -0
- package/dist/fe/components/SearchBox/utils/sanitize.d.ts +9 -0
- package/dist/fe/components/SelectBox/components/SelectBox.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectDropdown.d.ts +6 -0
- package/dist/fe/components/SelectBox/components/SelectOptionItem.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectTrigger.d.ts +5 -0
- package/dist/fe/components/SelectBox/index.d.ts +8 -0
- package/dist/fe/components/SelectBox/theme/index.d.ts +100 -0
- package/dist/fe/components/SelectBox/types/index.d.ts +66 -0
- package/dist/fe/components/SelectBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SetPasswordPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordForm.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordPage.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/index.d.ts +9 -0
- package/dist/fe/components/SetPasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/SetPasswordPage/theme/index.d.ts +95 -0
- package/dist/fe/components/SetPasswordPage/types/index.d.ts +137 -0
- package/dist/fe/components/UsersPage/components/InviteUserModal.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/Pagination.d.ts +13 -0
- package/dist/fe/components/UsersPage/components/RoleAssignmentModal.d.ts +12 -0
- package/dist/fe/components/UsersPage/components/StatsCards.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/UserDetailDrawer.d.ts +24 -0
- package/dist/fe/components/UsersPage/components/UserFilters.d.ts +18 -0
- package/dist/fe/components/UsersPage/components/UserListItem.d.ts +11 -0
- package/dist/fe/components/UsersPage/components/UserListSkeleton.d.ts +7 -0
- package/dist/fe/components/UsersPage/components/UsersPage.d.ts +8 -0
- package/dist/fe/components/UsersPage/index.d.ts +13 -0
- package/dist/fe/components/UsersPage/store/index.d.ts +51 -0
- package/dist/fe/components/UsersPage/theme/index.d.ts +180 -0
- package/dist/fe/components/UsersPage/types/index.d.ts +73 -0
- package/dist/fe/components/VerifyEmailPage/components/VerifyEmailPage.d.ts +4 -0
- package/dist/fe/components/VerifyEmailPage/index.d.ts +5 -0
- package/dist/fe/components/VerifyEmailPage/store/index.d.ts +18 -0
- package/dist/fe/components/VerifyEmailPage/theme/index.d.ts +49 -0
- package/dist/fe/components/VerifyEmailPage/types/index.d.ts +84 -0
- package/dist/fe/hooks/useNucleusEntity.d.ts +3 -0
- package/dist/fe/index.d.ts +42 -0
- package/dist/fe/index.js +1 -0
- package/dist/fe/types/index.d.ts +233 -0
- package/dist/fe/utils/cn.d.ts +3 -0
- package/dist/fe/utils/columnUtils.d.ts +63 -0
- package/dist/fe/utils/endpointKeys.d.ts +9 -0
- package/dist/index-0yyw12k6.js +1 -0
- package/dist/index-tv67j5qd.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/nucleus.config.d.ts +95 -0
- package/dist/public/components/CTA.d.ts +2 -0
- package/dist/public/components/Capabilities.d.ts +9 -0
- package/dist/public/components/Features.d.ts +9 -0
- package/dist/public/components/Footer.d.ts +2 -0
- package/dist/public/components/Hero.d.ts +2 -0
- package/dist/public/components/Managers.d.ts +7 -0
- package/dist/public/components/Nav.d.ts +2 -0
- package/dist/public/components/Stack.d.ts +7 -0
- package/dist/public/components/docs/Docs.d.ts +2 -0
- package/dist/public/components/docs/DocsContent.d.ts +19 -0
- package/dist/public/components/docs/DocsRightSidebar.d.ts +9 -0
- package/dist/public/components/docs/DocsSidebar.d.ts +8 -0
- package/dist/public/components/docs/content/authentication.d.ts +3 -0
- package/dist/public/components/docs/content/gettingStarted.d.ts +3 -0
- package/dist/public/components/docs/docsData.d.ts +18 -0
- package/dist/public/components/docs/index.d.ts +7 -0
- package/dist/public/components/index.d.ts +10 -0
- package/dist/public/index.d.ts +3 -0
- package/dist/public/store.d.ts +20 -0
- package/dist/scripts/build.d.ts +7 -0
- package/dist/scripts/generate-schema.d.ts +3 -0
- package/dist/scripts/generate-system-tables-types.d.ts +2 -0
- package/dist/scripts/generate-types-schema.d.ts +7 -0
- package/dist/scripts/publish.d.ts +7 -0
- package/dist/scripts/version.d.ts +7 -0
- package/dist/src/Client/ApiCaller/client.d.ts +5 -0
- package/dist/src/Client/ApiCaller/examples/usage.example.d.ts +8 -0
- package/dist/src/Client/ApiCaller/generator.d.ts +10 -0
- package/dist/src/Client/ApiCaller/index.d.ts +7 -0
- package/dist/src/Client/ApiCaller/server.d.ts +4 -0
- package/dist/src/Client/ApiCaller/system-tables.d.ts +1215 -0
- package/dist/src/Client/ApiCaller/types.d.ts +907 -0
- package/dist/src/Client/Proxy/httpProxy.d.ts +5 -0
- package/dist/src/Client/Proxy/index.d.ts +6 -0
- package/dist/src/Client/Proxy/index.js +1 -0
- package/dist/src/Client/Proxy/server.d.ts +5 -0
- package/dist/src/Client/Proxy/types.d.ts +69 -0
- package/dist/src/Client/Proxy/utils.d.ts +12 -0
- package/dist/src/Client/Proxy/wsProxy.d.ts +20 -0
- package/dist/src/Client/ServerFetch/index.d.ts +19 -0
- package/dist/src/Client/ServerFetch/types.d.ts +34 -0
- package/dist/src/Client/index.d.ts +4 -0
- package/dist/src/ElysiaPlugin/index.d.ts +12 -0
- package/dist/src/ElysiaPlugin/publicRoutes.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/captcha/index.d.ts +46 -0
- package/dist/src/ElysiaPlugin/routes/auth/emailVerification/index.d.ts +38 -0
- package/dist/src/ElysiaPlugin/routes/auth/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/invite/index.d.ts +43 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/types.d.ts +22 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/utils.d.ts +19 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/types.d.ts +6 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/index.d.ts +41 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/types.d.ts +23 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/utils.d.ts +4 -0
- package/dist/src/ElysiaPlugin/routes/auth/me/index.d.ts +40 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/types.d.ts +12 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/index.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/types.d.ts +16 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/utils.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/index.d.ts +47 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/types.d.ts +18 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/utils.d.ts +8 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/types.d.ts +67 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/utils.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/types.d.ts +153 -0
- package/dist/src/ElysiaPlugin/routes/entity/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/entity/types.d.ts +50 -0
- package/dist/src/ElysiaPlugin/routes/entity/utils.d.ts +11 -0
- package/dist/src/ElysiaPlugin/routes/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/monitoring/index.d.ts +58 -0
- package/dist/src/ElysiaPlugin/routes/storage/cdn.d.ts +51 -0
- package/dist/src/ElysiaPlugin/routes/storage/helpers.d.ts +53 -0
- package/dist/src/ElysiaPlugin/routes/storage/index.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/verification/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/swagger.d.ts +28 -0
- package/dist/src/ElysiaPlugin/utils.d.ts +70 -0
- package/dist/src/Managers/Dapr/clients/binding-client.d.ts +15 -0
- package/dist/src/Managers/Dapr/clients/config-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/crypto-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/invoke-client.d.ts +32 -0
- package/dist/src/Managers/Dapr/clients/lock-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/pubsub-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/secret-client.d.ts +19 -0
- package/dist/src/Managers/Dapr/clients/state-client.d.ts +55 -0
- package/dist/src/Managers/Dapr/clients/workflow-client.d.ts +39 -0
- package/dist/src/Managers/Dapr/connection-manager.d.ts +51 -0
- package/dist/src/Managers/Dapr/constants.d.ts +49 -0
- package/dist/src/Managers/Dapr/dapr-manager.d.ts +160 -0
- package/dist/src/Managers/Dapr/error-handling.d.ts +29 -0
- package/dist/src/Managers/Dapr/index.d.ts +102 -0
- package/dist/src/Managers/Dapr/types.d.ts +121 -0
- package/dist/src/Managers/Dapr/utils.d.ts +44 -0
- package/dist/src/Managers/File/atomic.d.ts +64 -0
- package/dist/src/Managers/File/core.d.ts +188 -0
- package/dist/src/Managers/File/index.d.ts +18 -0
- package/dist/src/Managers/File/permissions.d.ts +72 -0
- package/dist/src/Managers/File/streaming.d.ts +30 -0
- package/dist/src/Managers/File/types.d.ts +146 -0
- package/dist/src/Managers/File/utils.d.ts +112 -0
- package/dist/src/Managers/Postgre/index.d.ts +25 -0
- package/dist/src/Managers/Redis/index.d.ts +33 -0
- package/dist/src/Managers/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/types.d.ts +20 -0
- package/dist/src/Services/Auth/Fingerprint/utils.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Decode/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Sign/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Verify/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/index.d.ts +5 -0
- package/dist/src/Services/Auth/JWT/types.d.ts +38 -0
- package/dist/src/Services/Auth/JWT/utils.d.ts +10 -0
- package/dist/src/Services/Auth/Password/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/index.d.ts +2 -0
- package/dist/src/Services/Auth/Password/types.d.ts +16 -0
- package/dist/src/Services/Auth/RefreshToken/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/RefreshToken/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Read/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Validate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/index.d.ts +5 -0
- package/dist/src/Services/Auth/RefreshToken/types.d.ts +27 -0
- package/dist/src/Services/Auth/RefreshToken/utils.d.ts +6 -0
- package/dist/src/Services/Auth/Session/Issue/index.d.ts +9 -0
- package/dist/src/Services/Auth/Session/index.d.ts +2 -0
- package/dist/src/Services/Auth/Session/types.d.ts +13 -0
- package/dist/src/Services/Auth/SessionStore/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/SessionStore/Read/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Update/index.d.ts +24 -0
- package/dist/src/Services/Auth/SessionStore/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/index.d.ts +7 -0
- package/dist/src/Services/Auth/SessionStore/types.d.ts +59 -0
- package/dist/src/Services/Auth/SessionStore/utils.d.ts +6 -0
- package/dist/src/Services/Auth/index.d.ts +7 -0
- package/dist/src/Services/Authorization/ClaimSeeder/index.d.ts +6 -0
- package/dist/src/Services/Authorization/GodminSetup/index.d.ts +10 -0
- package/dist/src/Services/Authorization/Middleware/index.d.ts +21 -0
- package/dist/src/Services/Authorization/index.d.ts +5 -0
- package/dist/src/Services/Authorization/types.d.ts +68 -0
- package/dist/src/Services/Captcha/index.d.ts +15 -0
- package/dist/src/Services/Captcha/types.d.ts +69 -0
- package/dist/src/Services/Gmail/index.d.ts +62 -0
- package/dist/src/Services/Logger/Logger.d.ts +77 -0
- package/dist/src/Services/Logger/index.d.ts +5 -0
- package/dist/src/Services/Logger/transports.d.ts +54 -0
- package/dist/src/Services/Logger/types.d.ts +88 -0
- package/dist/src/Services/Logger/utils.d.ts +8 -0
- package/dist/src/Services/Monitoring/AlertService.d.ts +29 -0
- package/dist/src/Services/Monitoring/collectors/ApplicationCollector.d.ts +30 -0
- package/dist/src/Services/Monitoring/collectors/SystemCollector.d.ts +13 -0
- package/dist/src/Services/Monitoring/collectors/index.d.ts +3 -0
- package/dist/src/Services/Monitoring/index.d.ts +109 -0
- package/dist/src/Services/Monitoring/types.d.ts +163 -0
- package/dist/src/Services/Notification/index.d.ts +31 -0
- package/dist/src/Services/Notification/types.d.ts +59 -0
- package/dist/src/Services/RateLimiter/index.d.ts +99 -0
- package/dist/src/Services/Verification/index.d.ts +23 -0
- package/dist/src/Services/Verification/types.d.ts +135 -0
- package/dist/src/Services/index.d.ts +10 -0
- package/dist/src/types.d.ts +588 -0
- package/package.json +99 -0
- package/public/components/CTA.tsx +25 -0
- package/public/components/Capabilities.tsx +69 -0
- package/public/components/Features.tsx +107 -0
- package/public/components/Footer.tsx +60 -0
- package/public/components/Hero.tsx +53 -0
- package/public/components/Managers.tsx +60 -0
- package/public/components/Nav.tsx +107 -0
- package/public/components/Stack.tsx +36 -0
- package/public/components/docs/Docs.tsx +62 -0
- package/public/components/docs/DocsContent.tsx +203 -0
- package/public/components/docs/DocsRightSidebar.tsx +53 -0
- package/public/components/docs/DocsSidebar.tsx +62 -0
- package/public/components/docs/content/authentication.ts +1670 -0
- package/public/components/docs/content/gettingStarted.ts +627 -0
- package/public/components/docs/docsData.ts +36 -0
- package/public/components/docs/index.ts +6 -0
- package/public/components/index.ts +9 -0
- package/public/docs.css +633 -0
- package/public/index.html +81 -0
- package/public/index.tsx +52 -0
- package/public/store.ts +79 -0
- package/public/styles.css +877 -0
- package/schemas/bckp/config.nucleus.json +1488 -0
- package/schemas/bckp/nucleus.tables.schema.json +24 -0
- package/schemas/bckp/table.schema.json +472 -0
- package/schemas/config.nucleus.json +1010 -0
- package/schemas/nucleus.tables.schema.json +19 -0
- package/schemas/table.schema.json +498 -0
- package/scripts/build.ts +197 -0
- package/scripts/generate-schema.ts +556 -0
- package/scripts/generate-system-tables-types.ts +18 -0
- package/scripts/generate-types-schema.ts +962 -0
- package/scripts/publish.ts +210 -0
- package/scripts/version.ts +125 -0
- package/src/system.tables.json +1590 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export interface MonitoringConfig {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
system?: {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
collectInterval?: string;
|
|
6
|
+
metrics?: {
|
|
7
|
+
cpu?: boolean;
|
|
8
|
+
memory?: boolean;
|
|
9
|
+
disk?: boolean;
|
|
10
|
+
network?: boolean;
|
|
11
|
+
process?: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
application?: {
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
metrics?: {
|
|
17
|
+
requests?: boolean;
|
|
18
|
+
responseTime?: boolean;
|
|
19
|
+
errors?: boolean;
|
|
20
|
+
rateLimits?: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
database?: {
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
metrics?: {
|
|
26
|
+
connections?: boolean;
|
|
27
|
+
queryTime?: boolean;
|
|
28
|
+
slowQueryThreshold?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
redis?: {
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
};
|
|
34
|
+
persistence?: {
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
flushInterval?: string;
|
|
37
|
+
retentionDays?: number;
|
|
38
|
+
};
|
|
39
|
+
alerts?: {
|
|
40
|
+
enabled?: boolean;
|
|
41
|
+
email?: {
|
|
42
|
+
enabled?: boolean;
|
|
43
|
+
recipients?: string[];
|
|
44
|
+
};
|
|
45
|
+
thresholds?: {
|
|
46
|
+
cpuPercent?: number;
|
|
47
|
+
memoryPercent?: number;
|
|
48
|
+
diskPercent?: number;
|
|
49
|
+
errorRatePercent?: number;
|
|
50
|
+
responseTimeMs?: number;
|
|
51
|
+
rateLimitBlocksPerMinute?: number;
|
|
52
|
+
};
|
|
53
|
+
cooldown?: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export interface MetricPoint {
|
|
57
|
+
timestamp: number;
|
|
58
|
+
metricType: MetricType;
|
|
59
|
+
metricName: string;
|
|
60
|
+
value: number;
|
|
61
|
+
tags?: Record<string, string>;
|
|
62
|
+
}
|
|
63
|
+
export type MetricType = "system" | "application" | "database" | "redis";
|
|
64
|
+
export interface SystemMetrics {
|
|
65
|
+
cpu: {
|
|
66
|
+
usage: number;
|
|
67
|
+
cores: number;
|
|
68
|
+
};
|
|
69
|
+
memory: {
|
|
70
|
+
total: number;
|
|
71
|
+
used: number;
|
|
72
|
+
free: number;
|
|
73
|
+
usagePercent: number;
|
|
74
|
+
heapUsed: number;
|
|
75
|
+
heapTotal: number;
|
|
76
|
+
};
|
|
77
|
+
disk: {
|
|
78
|
+
total: number;
|
|
79
|
+
used: number;
|
|
80
|
+
free: number;
|
|
81
|
+
usagePercent: number;
|
|
82
|
+
};
|
|
83
|
+
network: {
|
|
84
|
+
bytesIn: number;
|
|
85
|
+
bytesOut: number;
|
|
86
|
+
};
|
|
87
|
+
process: {
|
|
88
|
+
uptime: number;
|
|
89
|
+
pid: number;
|
|
90
|
+
eventLoopLag: number;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface ApplicationMetrics {
|
|
94
|
+
requests: {
|
|
95
|
+
total: number;
|
|
96
|
+
perMinute: number;
|
|
97
|
+
byEndpoint: Record<string, number>;
|
|
98
|
+
byMethod: Record<string, number>;
|
|
99
|
+
byStatus: Record<string, number>;
|
|
100
|
+
};
|
|
101
|
+
responseTime: {
|
|
102
|
+
avg: number;
|
|
103
|
+
min: number;
|
|
104
|
+
max: number;
|
|
105
|
+
p50: number;
|
|
106
|
+
p95: number;
|
|
107
|
+
p99: number;
|
|
108
|
+
};
|
|
109
|
+
errors: {
|
|
110
|
+
total: number;
|
|
111
|
+
rate: number;
|
|
112
|
+
byType: Record<string, number>;
|
|
113
|
+
};
|
|
114
|
+
rateLimits: {
|
|
115
|
+
blocked: number;
|
|
116
|
+
blockedPerMinute: number;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface DatabaseMetrics {
|
|
120
|
+
connections: {
|
|
121
|
+
active: number;
|
|
122
|
+
idle: number;
|
|
123
|
+
total: number;
|
|
124
|
+
};
|
|
125
|
+
queries: {
|
|
126
|
+
total: number;
|
|
127
|
+
avgTime: number;
|
|
128
|
+
slowQueries: number;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export interface RedisMetrics {
|
|
132
|
+
memory: {
|
|
133
|
+
used: number;
|
|
134
|
+
peak: number;
|
|
135
|
+
};
|
|
136
|
+
connections: {
|
|
137
|
+
connected: number;
|
|
138
|
+
};
|
|
139
|
+
operations: {
|
|
140
|
+
totalCommands: number;
|
|
141
|
+
opsPerSec: number;
|
|
142
|
+
};
|
|
143
|
+
hitRate: number;
|
|
144
|
+
}
|
|
145
|
+
export interface AlertEvent {
|
|
146
|
+
id: string;
|
|
147
|
+
type: AlertType;
|
|
148
|
+
severity: "warning" | "critical";
|
|
149
|
+
message: string;
|
|
150
|
+
value: number;
|
|
151
|
+
threshold: number;
|
|
152
|
+
timestamp: number;
|
|
153
|
+
acknowledged: boolean;
|
|
154
|
+
}
|
|
155
|
+
export type AlertType = "cpu_high" | "memory_high" | "disk_high" | "error_rate_high" | "response_time_high" | "rate_limit_blocks_high";
|
|
156
|
+
export interface MonitoringSnapshot {
|
|
157
|
+
timestamp: number;
|
|
158
|
+
system?: SystemMetrics;
|
|
159
|
+
application?: ApplicationMetrics;
|
|
160
|
+
database?: DatabaseMetrics;
|
|
161
|
+
redis?: RedisMetrics;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
2
|
+
import type { GmailService } from "../Gmail";
|
|
3
|
+
import type { Logger } from "../Logger";
|
|
4
|
+
import type { NotificationConfig, SendNotificationParams, TriggerNotificationParams } from "./types";
|
|
5
|
+
export * from "./types";
|
|
6
|
+
export interface NotificationServiceConfig {
|
|
7
|
+
db: NodePgDatabase;
|
|
8
|
+
schemaTables: Record<string, unknown>;
|
|
9
|
+
config: NotificationConfig;
|
|
10
|
+
logger: Logger;
|
|
11
|
+
gmailService?: GmailService;
|
|
12
|
+
}
|
|
13
|
+
export declare class NotificationService {
|
|
14
|
+
private db;
|
|
15
|
+
private schemaTables;
|
|
16
|
+
private config;
|
|
17
|
+
private logger;
|
|
18
|
+
private gmailService?;
|
|
19
|
+
constructor(serviceConfig: NotificationServiceConfig);
|
|
20
|
+
private getTable;
|
|
21
|
+
private getCol;
|
|
22
|
+
private interpolateTemplate;
|
|
23
|
+
triggerNotifications(params: TriggerNotificationParams): Promise<void>;
|
|
24
|
+
private resolveRecipients;
|
|
25
|
+
send(params: SendNotificationParams): Promise<void>;
|
|
26
|
+
private sendPortalNotification;
|
|
27
|
+
private sendEmailNotification;
|
|
28
|
+
markAsSeen(notificationId: string, userId: string): Promise<boolean>;
|
|
29
|
+
markAllAsSeen(userId: string): Promise<number>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface NotificationConfig {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
portalEnabled?: boolean;
|
|
4
|
+
emailEnabled?: boolean;
|
|
5
|
+
defaultChannel?: "portal" | "email" | "both";
|
|
6
|
+
templateVariables?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_NOTIFICATION_CONFIG: Required<NotificationConfig>;
|
|
9
|
+
export type NotificationChannel = "portal" | "email" | "both";
|
|
10
|
+
export type NotificationTrigger = "on_flow_started" | "on_step_reached" | "on_approved" | "on_rejected" | "on_flow_completed";
|
|
11
|
+
export interface NotificationRule {
|
|
12
|
+
id: string;
|
|
13
|
+
flow_id: string;
|
|
14
|
+
step_node_id?: string;
|
|
15
|
+
trigger: NotificationTrigger;
|
|
16
|
+
channel: NotificationChannel;
|
|
17
|
+
title_template?: string;
|
|
18
|
+
body_template?: string;
|
|
19
|
+
starts_at?: Date;
|
|
20
|
+
expires_at?: Date;
|
|
21
|
+
}
|
|
22
|
+
export interface NotificationRecipient {
|
|
23
|
+
id: string;
|
|
24
|
+
rule_id: string;
|
|
25
|
+
recipient_type: "user" | "role" | "all_verifiers" | "step_verifier";
|
|
26
|
+
recipient_user_id?: string;
|
|
27
|
+
recipient_role_id?: string;
|
|
28
|
+
channel: NotificationChannel;
|
|
29
|
+
}
|
|
30
|
+
export interface Notification {
|
|
31
|
+
id: string;
|
|
32
|
+
user_id: string;
|
|
33
|
+
title: string;
|
|
34
|
+
body?: string;
|
|
35
|
+
entity_name?: string;
|
|
36
|
+
entity_id?: string;
|
|
37
|
+
is_seen: boolean;
|
|
38
|
+
seen_at?: Date;
|
|
39
|
+
created_at: Date;
|
|
40
|
+
}
|
|
41
|
+
export interface TriggerNotificationParams {
|
|
42
|
+
trigger: NotificationTrigger;
|
|
43
|
+
flow_id: string;
|
|
44
|
+
entity_name: string;
|
|
45
|
+
entity_id: string;
|
|
46
|
+
step_node_id?: string;
|
|
47
|
+
verifier_id?: string;
|
|
48
|
+
decision?: "approved" | "rejected";
|
|
49
|
+
context?: Record<string, unknown>;
|
|
50
|
+
}
|
|
51
|
+
export interface SendNotificationParams {
|
|
52
|
+
user_id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
body?: string;
|
|
55
|
+
entity_name?: string;
|
|
56
|
+
entity_id?: string;
|
|
57
|
+
channel: NotificationChannel;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { RedisManager } from "../../Managers/Redis";
|
|
2
|
+
import type { Logger } from "../Logger";
|
|
3
|
+
export interface RateLimitConfig {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
strategy?: "sliding-window" | "fixed-window" | "token-bucket";
|
|
6
|
+
keyPrefix?: string;
|
|
7
|
+
authRoutes?: {
|
|
8
|
+
window?: string;
|
|
9
|
+
max?: number;
|
|
10
|
+
login?: {
|
|
11
|
+
window?: string;
|
|
12
|
+
max?: number;
|
|
13
|
+
blockDuration?: string;
|
|
14
|
+
};
|
|
15
|
+
register?: {
|
|
16
|
+
window?: string;
|
|
17
|
+
max?: number;
|
|
18
|
+
blockDuration?: string;
|
|
19
|
+
};
|
|
20
|
+
passwordReset?: {
|
|
21
|
+
window?: string;
|
|
22
|
+
max?: number;
|
|
23
|
+
blockDuration?: string;
|
|
24
|
+
};
|
|
25
|
+
magicLink?: {
|
|
26
|
+
window?: string;
|
|
27
|
+
max?: number;
|
|
28
|
+
blockDuration?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
publicRoutes?: {
|
|
32
|
+
window?: string;
|
|
33
|
+
max?: number;
|
|
34
|
+
};
|
|
35
|
+
privateRoutes?: {
|
|
36
|
+
window?: string;
|
|
37
|
+
max?: number;
|
|
38
|
+
};
|
|
39
|
+
byIp?: boolean;
|
|
40
|
+
byUserId?: boolean;
|
|
41
|
+
byEndpoint?: boolean;
|
|
42
|
+
skipSuccessfulRequests?: boolean;
|
|
43
|
+
headers?: {
|
|
44
|
+
remaining?: string;
|
|
45
|
+
reset?: string;
|
|
46
|
+
limit?: string;
|
|
47
|
+
};
|
|
48
|
+
whitelist?: string[];
|
|
49
|
+
blacklist?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface RateLimitResult {
|
|
52
|
+
allowed: boolean;
|
|
53
|
+
remaining: number;
|
|
54
|
+
resetAt: number;
|
|
55
|
+
limit: number;
|
|
56
|
+
retryAfter?: number;
|
|
57
|
+
}
|
|
58
|
+
export type RouteCategory = "auth" | "public" | "private";
|
|
59
|
+
export type AuthRouteType = "login" | "register" | "passwordReset" | "magicLink" | "other";
|
|
60
|
+
interface RateLimiterDeps {
|
|
61
|
+
redis: RedisManager;
|
|
62
|
+
logger: Logger;
|
|
63
|
+
config: RateLimitConfig;
|
|
64
|
+
}
|
|
65
|
+
export declare class RateLimiter {
|
|
66
|
+
private redis;
|
|
67
|
+
private logger;
|
|
68
|
+
private config;
|
|
69
|
+
constructor(deps: RateLimiterDeps);
|
|
70
|
+
private mergeConfig;
|
|
71
|
+
private parseTimeToMs;
|
|
72
|
+
private buildKey;
|
|
73
|
+
private getLimits;
|
|
74
|
+
isWhitelisted(ip: string): boolean;
|
|
75
|
+
isBlacklisted(ip: string): boolean;
|
|
76
|
+
private readRedis;
|
|
77
|
+
check(params: {
|
|
78
|
+
ip: string;
|
|
79
|
+
userId?: string;
|
|
80
|
+
endpoint: string;
|
|
81
|
+
category: RouteCategory;
|
|
82
|
+
authType?: AuthRouteType;
|
|
83
|
+
}): Promise<RateLimitResult>;
|
|
84
|
+
private slidingWindowCheck;
|
|
85
|
+
private fixedWindowCheck;
|
|
86
|
+
private tokenBucketCheck;
|
|
87
|
+
decrement(params: {
|
|
88
|
+
ip: string;
|
|
89
|
+
userId?: string;
|
|
90
|
+
endpoint: string;
|
|
91
|
+
category: RouteCategory;
|
|
92
|
+
authType?: AuthRouteType;
|
|
93
|
+
}): Promise<void>;
|
|
94
|
+
getHeaders(result: RateLimitResult): Record<string, string>;
|
|
95
|
+
isEnabled(): boolean;
|
|
96
|
+
}
|
|
97
|
+
export declare function createRateLimiter(deps: RateLimiterDeps): RateLimiter;
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
2
|
+
import type { Logger } from "../Logger";
|
|
3
|
+
import type { DecideParams, DecideResult, PendingVerification, VerificationConfig, VerificationStatus } from "./types";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export interface VerificationServiceConfig {
|
|
6
|
+
db: NodePgDatabase;
|
|
7
|
+
schemaTables: Record<string, unknown>;
|
|
8
|
+
config: VerificationConfig;
|
|
9
|
+
logger: Logger;
|
|
10
|
+
}
|
|
11
|
+
export declare class VerificationService {
|
|
12
|
+
private db;
|
|
13
|
+
private schemaTables;
|
|
14
|
+
private config;
|
|
15
|
+
private logger;
|
|
16
|
+
constructor(serviceConfig: VerificationServiceConfig);
|
|
17
|
+
private getTable;
|
|
18
|
+
private getCol;
|
|
19
|
+
getStatus(entityName: string, entityId: string): Promise<VerificationStatus>;
|
|
20
|
+
decide(params: DecideParams): Promise<DecideResult>;
|
|
21
|
+
getPending(userId: string): Promise<PendingVerification[]>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export interface VerificationConfig {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
autoResetOnRejection?: boolean;
|
|
4
|
+
requireSignatureByDefault?: boolean;
|
|
5
|
+
diffTrackingEnabled?: boolean;
|
|
6
|
+
endpoints?: {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
basePath?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const DEFAULT_VERIFICATION_CONFIG: Required<VerificationConfig>;
|
|
12
|
+
export type VerificationDecision = "approved" | "rejected" | "pending";
|
|
13
|
+
export type VerificationTrigger = "on_flow_started" | "on_step_reached" | "on_approved" | "on_rejected" | "on_flow_completed";
|
|
14
|
+
export type FlowTriggerOn = "create" | "update" | "delete" | "manual";
|
|
15
|
+
export type NodeType = "start" | "step" | "condition" | "notification" | "end";
|
|
16
|
+
export type EdgeType = "default" | "conditional" | "success" | "failure";
|
|
17
|
+
export interface VerificationFlow {
|
|
18
|
+
id: string;
|
|
19
|
+
entity_name: string;
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
trigger_on: FlowTriggerOn;
|
|
23
|
+
trigger_fields?: string[];
|
|
24
|
+
is_draft: boolean;
|
|
25
|
+
published_at?: Date;
|
|
26
|
+
viewport?: {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
zoom: number;
|
|
30
|
+
};
|
|
31
|
+
created_at: Date;
|
|
32
|
+
updated_at: Date;
|
|
33
|
+
}
|
|
34
|
+
export interface VerificationStep {
|
|
35
|
+
id: string;
|
|
36
|
+
flow_id: string;
|
|
37
|
+
entity_name: string;
|
|
38
|
+
node_id: string;
|
|
39
|
+
node_type: NodeType;
|
|
40
|
+
step_order: number;
|
|
41
|
+
name?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
position_x: number;
|
|
44
|
+
position_y: number;
|
|
45
|
+
width?: number;
|
|
46
|
+
height?: number;
|
|
47
|
+
style?: Record<string, unknown>;
|
|
48
|
+
data?: Record<string, unknown>;
|
|
49
|
+
}
|
|
50
|
+
export interface VerificationEdge {
|
|
51
|
+
id: string;
|
|
52
|
+
flow_id: string;
|
|
53
|
+
edge_id: string;
|
|
54
|
+
source_node_id: string;
|
|
55
|
+
target_node_id: string;
|
|
56
|
+
source_handle?: string;
|
|
57
|
+
target_handle?: string;
|
|
58
|
+
edge_type: EdgeType;
|
|
59
|
+
label?: string;
|
|
60
|
+
condition?: Record<string, unknown>;
|
|
61
|
+
style?: Record<string, unknown>;
|
|
62
|
+
animated: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface Verification {
|
|
65
|
+
id: string;
|
|
66
|
+
requirement_id: string;
|
|
67
|
+
verifier_id: string;
|
|
68
|
+
signature_id?: string;
|
|
69
|
+
entity_name: string;
|
|
70
|
+
entity_id: string;
|
|
71
|
+
step_order: number;
|
|
72
|
+
decision: VerificationDecision;
|
|
73
|
+
reason?: string;
|
|
74
|
+
diff?: Record<string, unknown>;
|
|
75
|
+
created_at: Date;
|
|
76
|
+
updated_at: Date;
|
|
77
|
+
}
|
|
78
|
+
export interface VerificationRequirement {
|
|
79
|
+
id: string;
|
|
80
|
+
entity_id?: string;
|
|
81
|
+
entity_name?: string;
|
|
82
|
+
verifier_type: "user" | "role" | "entity_creator";
|
|
83
|
+
verifier_id?: string;
|
|
84
|
+
verifier_role?: string;
|
|
85
|
+
is_signature_mandatory: boolean;
|
|
86
|
+
step_order: number;
|
|
87
|
+
is_all_required: boolean;
|
|
88
|
+
connected_from_step_order?: number;
|
|
89
|
+
position_x?: number;
|
|
90
|
+
position_y?: number;
|
|
91
|
+
}
|
|
92
|
+
export interface VerificationStatus {
|
|
93
|
+
entity_name: string;
|
|
94
|
+
entity_id: string;
|
|
95
|
+
flow: VerificationFlow | null;
|
|
96
|
+
current_step: number;
|
|
97
|
+
total_steps: number;
|
|
98
|
+
is_completed: boolean;
|
|
99
|
+
is_rejected: boolean;
|
|
100
|
+
verifications: Verification[];
|
|
101
|
+
pending_verifiers: {
|
|
102
|
+
step_order: number;
|
|
103
|
+
verifier_type: string;
|
|
104
|
+
verifier_id?: string;
|
|
105
|
+
verifier_role?: string;
|
|
106
|
+
is_signature_mandatory: boolean;
|
|
107
|
+
}[];
|
|
108
|
+
}
|
|
109
|
+
export interface DecideParams {
|
|
110
|
+
entity_name: string;
|
|
111
|
+
entity_id: string;
|
|
112
|
+
user_id: string;
|
|
113
|
+
decision: "approved" | "rejected";
|
|
114
|
+
reason?: string;
|
|
115
|
+
signature_id?: string;
|
|
116
|
+
diff?: Record<string, unknown>;
|
|
117
|
+
}
|
|
118
|
+
export interface DecideResult {
|
|
119
|
+
success: boolean;
|
|
120
|
+
message: string;
|
|
121
|
+
verification?: Verification;
|
|
122
|
+
flow_completed?: boolean;
|
|
123
|
+
next_step?: number;
|
|
124
|
+
}
|
|
125
|
+
export interface PendingVerification {
|
|
126
|
+
entity_name: string;
|
|
127
|
+
entity_id: string;
|
|
128
|
+
flow_name: string;
|
|
129
|
+
step_order: number;
|
|
130
|
+
step_name?: string;
|
|
131
|
+
is_signature_mandatory: boolean;
|
|
132
|
+
created_at: Date;
|
|
133
|
+
diff?: Record<string, unknown>;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./Auth";
|
|
2
|
+
export * from "./Authorization";
|
|
3
|
+
export * from "./Captcha";
|
|
4
|
+
export * from "./Gmail";
|
|
5
|
+
export * from "./Logger";
|
|
6
|
+
export * from "./Monitoring";
|
|
7
|
+
export * from "./Notification";
|
|
8
|
+
export * from "./RateLimiter";
|
|
9
|
+
export * from "./Verification";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|