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,153 @@
|
|
|
1
|
+
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
2
|
+
import type { Logger } from "src/Services";
|
|
3
|
+
export interface AuthRouteConfig {
|
|
4
|
+
db: NodePgDatabase | null;
|
|
5
|
+
logger: Logger;
|
|
6
|
+
authentication?: {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
accessToken?: {
|
|
9
|
+
secret?: string;
|
|
10
|
+
expiresIn?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
};
|
|
13
|
+
refreshToken?: {
|
|
14
|
+
secret?: string;
|
|
15
|
+
expiresIn?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
sessionToken?: {
|
|
19
|
+
secret?: string;
|
|
20
|
+
expiresIn?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
usersTable: ReturnType<typeof import("drizzle-orm/pg-core").pgTable> | null;
|
|
25
|
+
sessionsTable?: ReturnType<typeof import("drizzle-orm/pg-core").pgTable> | null;
|
|
26
|
+
}
|
|
27
|
+
export interface LoginConfig {
|
|
28
|
+
route?: string;
|
|
29
|
+
rememberMe: boolean;
|
|
30
|
+
isPublic: boolean;
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface EmailVerificationConfig {
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
provider?: "gmail";
|
|
36
|
+
tokenExpiresIn?: string;
|
|
37
|
+
redirectUrl?: string;
|
|
38
|
+
resendCooldown?: string;
|
|
39
|
+
maxResendAttempts?: number;
|
|
40
|
+
templates?: {
|
|
41
|
+
verification?: {
|
|
42
|
+
subject?: string;
|
|
43
|
+
htmlTemplatePath?: string;
|
|
44
|
+
};
|
|
45
|
+
welcome?: {
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
subject?: string;
|
|
48
|
+
htmlTemplatePath?: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface RegisterConfig {
|
|
53
|
+
route?: string;
|
|
54
|
+
isPublic: boolean;
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
emailVerification?: EmailVerificationConfig;
|
|
57
|
+
}
|
|
58
|
+
export interface LogoutConfig {
|
|
59
|
+
route?: string;
|
|
60
|
+
isPublic: boolean;
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface RefreshConfig {
|
|
64
|
+
route?: string;
|
|
65
|
+
isPublic: boolean;
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface PasswordResetConfig {
|
|
69
|
+
route?: string;
|
|
70
|
+
isPublic: boolean;
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface PasswordChangeConfig {
|
|
74
|
+
route?: string;
|
|
75
|
+
isPublic: boolean;
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface PasswordSetConfig {
|
|
79
|
+
route?: string;
|
|
80
|
+
isPublic: boolean;
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface SessionsConfig {
|
|
84
|
+
route?: string;
|
|
85
|
+
isPublic: boolean;
|
|
86
|
+
enabled: boolean;
|
|
87
|
+
maxActiveSessions?: number;
|
|
88
|
+
inactivityTimeout?: string;
|
|
89
|
+
allowMultipleDevices?: boolean;
|
|
90
|
+
trustNewDevices?: boolean;
|
|
91
|
+
notifyOnNewDevice?: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface MagicLinkConfig {
|
|
94
|
+
route?: string;
|
|
95
|
+
verifyRoute?: string;
|
|
96
|
+
isPublic: boolean;
|
|
97
|
+
enabled: boolean;
|
|
98
|
+
expiresIn?: string;
|
|
99
|
+
redirectUrl?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface MeConfig {
|
|
102
|
+
route?: string;
|
|
103
|
+
isPublic?: boolean;
|
|
104
|
+
enabled?: boolean;
|
|
105
|
+
includeProfile?: boolean;
|
|
106
|
+
includeAddresses?: boolean;
|
|
107
|
+
includePhones?: boolean;
|
|
108
|
+
includeFiles?: boolean;
|
|
109
|
+
}
|
|
110
|
+
export interface InviteConfig {
|
|
111
|
+
route?: string;
|
|
112
|
+
isPublic?: boolean;
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
tokenExpiresIn?: string;
|
|
115
|
+
redirectUrl?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface CaptchaConfig {
|
|
118
|
+
route?: string;
|
|
119
|
+
isPublic?: boolean;
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
type?: "math" | "image" | "puzzle" | "text";
|
|
122
|
+
difficulty?: "easy" | "medium" | "hard";
|
|
123
|
+
expiresIn?: string;
|
|
124
|
+
maxAttempts?: number;
|
|
125
|
+
caseSensitive?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface AuthFeatureConfigs {
|
|
128
|
+
login?: LoginConfig;
|
|
129
|
+
register?: RegisterConfig;
|
|
130
|
+
logout?: LogoutConfig;
|
|
131
|
+
refresh?: RefreshConfig;
|
|
132
|
+
passwordReset?: PasswordResetConfig;
|
|
133
|
+
passwordChange?: PasswordChangeConfig;
|
|
134
|
+
passwordSet?: PasswordSetConfig;
|
|
135
|
+
sessions?: SessionsConfig;
|
|
136
|
+
magicLink?: MagicLinkConfig;
|
|
137
|
+
me?: MeConfig;
|
|
138
|
+
invite?: InviteConfig;
|
|
139
|
+
captcha?: CaptchaConfig;
|
|
140
|
+
}
|
|
141
|
+
export interface TokenPayload {
|
|
142
|
+
sub: string;
|
|
143
|
+
iat: number;
|
|
144
|
+
exp: number;
|
|
145
|
+
type: "access" | "refresh";
|
|
146
|
+
}
|
|
147
|
+
export interface SessionData {
|
|
148
|
+
userId: string;
|
|
149
|
+
email?: string;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
expiresAt: string;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { EntityRouteConfig } from "./types";
|
|
3
|
+
export type { EntityRouteConfig } from "./types";
|
|
4
|
+
export declare function createEntityRoutes<T extends Elysia>(app: T, config: EntityRouteConfig): T;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { NucleusTable } from "@types";
|
|
2
|
+
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
3
|
+
import type { Logger } from "src/Services";
|
|
4
|
+
export interface EntityRouteConfig {
|
|
5
|
+
db: NodePgDatabase | null;
|
|
6
|
+
schemaTables: Record<string, unknown>;
|
|
7
|
+
schemaRelations: Record<string, unknown>;
|
|
8
|
+
entities: NucleusTable[];
|
|
9
|
+
logger: Logger;
|
|
10
|
+
databaseUrl?: string;
|
|
11
|
+
storage?: {
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
basePath?: string;
|
|
14
|
+
maxFileSizeBytes?: number;
|
|
15
|
+
allowedMimeTypes?: string[];
|
|
16
|
+
blockedMimeTypes?: string[];
|
|
17
|
+
formData?: {
|
|
18
|
+
filesField?: string;
|
|
19
|
+
dataField?: string;
|
|
20
|
+
maxFiles?: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
authorization?: {
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
skipTables?: string[];
|
|
26
|
+
skipColumns?: string[];
|
|
27
|
+
};
|
|
28
|
+
emailServiceAvailable?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface QueryParams {
|
|
31
|
+
page?: number;
|
|
32
|
+
limit?: number;
|
|
33
|
+
offset?: number;
|
|
34
|
+
search?: string;
|
|
35
|
+
searchFields?: string[];
|
|
36
|
+
sort?: {
|
|
37
|
+
field: string;
|
|
38
|
+
direction: "asc" | "desc";
|
|
39
|
+
}[];
|
|
40
|
+
filters?: {
|
|
41
|
+
field: string;
|
|
42
|
+
operator: string;
|
|
43
|
+
value: unknown;
|
|
44
|
+
}[];
|
|
45
|
+
with?: {
|
|
46
|
+
name: string;
|
|
47
|
+
limit?: number;
|
|
48
|
+
}[];
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NucleusTable } from "@types";
|
|
2
|
+
import { type TSchema } from "elysia";
|
|
3
|
+
export declare function buildBodySchemaFromEntityColumns(entityColumns: NucleusTable["columns"]): TSchema;
|
|
4
|
+
export declare function createBulkUpdateSchema(entityColumns: NucleusTable["columns"]): TSchema;
|
|
5
|
+
export declare function buildResponseSchemaFromEntityColumns(entityColumns: NucleusTable["columns"], drizzleTable?: Record<string, unknown>): TSchema;
|
|
6
|
+
export declare function buildListResponseSchema(entityColumns: NucleusTable["columns"], drizzleTable?: Record<string, unknown>): TSchema;
|
|
7
|
+
export declare function buildSingleResponseSchema(entityColumns: NucleusTable["columns"], drizzleTable?: Record<string, unknown>): TSchema;
|
|
8
|
+
export declare function buildErrorResponseSchema(): TSchema;
|
|
9
|
+
export declare function buildBulkResponseSchema(entityColumns: NucleusTable["columns"], drizzleTable?: Record<string, unknown>): TSchema;
|
|
10
|
+
export declare function buildDeleteResponseSchema(): TSchema;
|
|
11
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { AuthFeatureConfigs, AuthRouteConfig, AuthRoutesConfig, LoginConfig, LogoutConfig, PasswordChangeConfig, PasswordResetConfig, RefreshConfig, RegisterConfig, } from "./auth";
|
|
2
|
+
export { createAuthRoutes } from "./auth";
|
|
3
|
+
export type { EntityRouteConfig } from "./entity";
|
|
4
|
+
export { createEntityRoutes } from "./entity";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Elysia from "elysia";
|
|
2
|
+
import type { Logger } from "../../../Services/Logger";
|
|
3
|
+
import type { MonitoringService } from "../../../Services/Monitoring";
|
|
4
|
+
export interface MonitoringRoutesConfig {
|
|
5
|
+
monitoringService: MonitoringService;
|
|
6
|
+
logger: Logger;
|
|
7
|
+
endpoints: {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
basePath: string;
|
|
10
|
+
stream: {
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
path: string;
|
|
13
|
+
interval: string;
|
|
14
|
+
};
|
|
15
|
+
snapshot: {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
history: {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
path: string;
|
|
22
|
+
maxMinutes: number;
|
|
23
|
+
};
|
|
24
|
+
alerts: {
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
path: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export declare function createMonitoringRoutes(config: MonitoringRoutesConfig): Elysia<string, {
|
|
31
|
+
decorator: {};
|
|
32
|
+
store: {};
|
|
33
|
+
derive: {};
|
|
34
|
+
resolve: {};
|
|
35
|
+
}, {
|
|
36
|
+
typebox: {};
|
|
37
|
+
error: {};
|
|
38
|
+
}, {
|
|
39
|
+
schema: {};
|
|
40
|
+
standaloneSchema: {};
|
|
41
|
+
macro: {};
|
|
42
|
+
macroFn: {};
|
|
43
|
+
parser: {};
|
|
44
|
+
response: {};
|
|
45
|
+
}, {}, {
|
|
46
|
+
derive: {};
|
|
47
|
+
resolve: {};
|
|
48
|
+
schema: {};
|
|
49
|
+
standaloneSchema: {};
|
|
50
|
+
response: {};
|
|
51
|
+
}, {
|
|
52
|
+
derive: {};
|
|
53
|
+
resolve: {};
|
|
54
|
+
schema: {};
|
|
55
|
+
standaloneSchema: {};
|
|
56
|
+
response: {};
|
|
57
|
+
}>;
|
|
58
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import Elysia from "elysia";
|
|
2
|
+
import type { Logger } from "../../../Services/Logger";
|
|
3
|
+
export interface CdnConfig {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
basePath: string;
|
|
6
|
+
cacheMaxAge: number;
|
|
7
|
+
enableRangeRequests: boolean;
|
|
8
|
+
enableEtag: boolean;
|
|
9
|
+
corsOrigins: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface CdnRoutesConfig {
|
|
12
|
+
cdn: CdnConfig;
|
|
13
|
+
storagePath: string;
|
|
14
|
+
logger: Logger;
|
|
15
|
+
getFileRecord?: (id: string, schemaName?: string) => Promise<{
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
path: string;
|
|
19
|
+
mime_type: string;
|
|
20
|
+
} | null>;
|
|
21
|
+
}
|
|
22
|
+
export declare function mergeCdnConfig(config?: Partial<CdnConfig>): CdnConfig;
|
|
23
|
+
export declare function createCdnRoutes(config: CdnRoutesConfig): Elysia<string, {
|
|
24
|
+
decorator: {};
|
|
25
|
+
store: {};
|
|
26
|
+
derive: {};
|
|
27
|
+
resolve: {};
|
|
28
|
+
}, {
|
|
29
|
+
typebox: {};
|
|
30
|
+
error: {};
|
|
31
|
+
}, {
|
|
32
|
+
schema: {};
|
|
33
|
+
standaloneSchema: {};
|
|
34
|
+
macro: {};
|
|
35
|
+
macroFn: {};
|
|
36
|
+
parser: {};
|
|
37
|
+
response: {};
|
|
38
|
+
}, {}, {
|
|
39
|
+
derive: {};
|
|
40
|
+
resolve: {};
|
|
41
|
+
schema: {};
|
|
42
|
+
standaloneSchema: {};
|
|
43
|
+
response: {};
|
|
44
|
+
}, {
|
|
45
|
+
derive: {};
|
|
46
|
+
resolve: {};
|
|
47
|
+
schema: {};
|
|
48
|
+
standaloneSchema: {};
|
|
49
|
+
response: {};
|
|
50
|
+
}>;
|
|
51
|
+
//# sourceMappingURL=cdn.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface StorageConfig {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
basePath: string;
|
|
4
|
+
maxFileSizeBytes: number;
|
|
5
|
+
allowedMimeTypes: string[];
|
|
6
|
+
blockedMimeTypes: string[];
|
|
7
|
+
formData: {
|
|
8
|
+
filesField: string;
|
|
9
|
+
dataField: string;
|
|
10
|
+
maxFiles: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface StorageConfigInput {
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
basePath?: string;
|
|
16
|
+
maxFileSizeBytes?: number;
|
|
17
|
+
allowedMimeTypes?: string[];
|
|
18
|
+
blockedMimeTypes?: string[];
|
|
19
|
+
formData?: {
|
|
20
|
+
filesField?: string;
|
|
21
|
+
dataField?: string;
|
|
22
|
+
maxFiles?: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface FileUploadResult {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
originalName: string;
|
|
29
|
+
path: string;
|
|
30
|
+
mimeType: string;
|
|
31
|
+
size: number;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
}
|
|
34
|
+
export interface FormDataParseResult {
|
|
35
|
+
data: Record<string, unknown>;
|
|
36
|
+
files: File[];
|
|
37
|
+
}
|
|
38
|
+
export declare function mergeStorageConfig(config?: StorageConfigInput): StorageConfig;
|
|
39
|
+
export declare function parseFormDataBody(body: unknown, config: StorageConfig): FormDataParseResult;
|
|
40
|
+
export declare function validateFile(file: File, config: StorageConfig): {
|
|
41
|
+
valid: boolean;
|
|
42
|
+
error?: string;
|
|
43
|
+
};
|
|
44
|
+
export declare function uploadFile(file: File, config: StorageConfig, subFolder?: string): Promise<FileUploadResult>;
|
|
45
|
+
export declare function uploadFiles(files: File[], config: StorageConfig, subFolder?: string): Promise<{
|
|
46
|
+
success: FileUploadResult[];
|
|
47
|
+
failed: {
|
|
48
|
+
file: string;
|
|
49
|
+
error: string;
|
|
50
|
+
}[];
|
|
51
|
+
}>;
|
|
52
|
+
export declare function deleteFile(filePath: string, fileName: string): Promise<boolean>;
|
|
53
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { type CdnConfig, type CdnRoutesConfig, createCdnRoutes, mergeCdnConfig, } from "./cdn";
|
|
2
|
+
export { deleteFile, type FileUploadResult, type FormDataParseResult, mergeStorageConfig, parseFormDataBody, type StorageConfig, type StorageConfigInput, uploadFile, uploadFiles, validateFile, } from "./helpers";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
2
|
+
import { Elysia } from "elysia";
|
|
3
|
+
import type { Logger } from "src/Services/Logger";
|
|
4
|
+
import { type VerificationConfig } from "src/Services/Verification";
|
|
5
|
+
export interface VerificationRoutesConfig {
|
|
6
|
+
db: NodePgDatabase;
|
|
7
|
+
schemaTables: Record<string, unknown>;
|
|
8
|
+
config: VerificationConfig;
|
|
9
|
+
logger: Logger;
|
|
10
|
+
}
|
|
11
|
+
export declare function createVerificationRoutes(routeConfig: VerificationRoutesConfig): Elysia<string, {
|
|
12
|
+
decorator: {};
|
|
13
|
+
store: {};
|
|
14
|
+
derive: {};
|
|
15
|
+
resolve: {};
|
|
16
|
+
}, {
|
|
17
|
+
typebox: {};
|
|
18
|
+
error: {};
|
|
19
|
+
}, {
|
|
20
|
+
schema: {};
|
|
21
|
+
standaloneSchema: {};
|
|
22
|
+
macro: {};
|
|
23
|
+
macroFn: {};
|
|
24
|
+
parser: {};
|
|
25
|
+
response: {};
|
|
26
|
+
}, {}, {
|
|
27
|
+
derive: {};
|
|
28
|
+
resolve: {};
|
|
29
|
+
schema: {};
|
|
30
|
+
standaloneSchema: {};
|
|
31
|
+
response: {};
|
|
32
|
+
}, {
|
|
33
|
+
derive: {};
|
|
34
|
+
resolve: {};
|
|
35
|
+
schema: {};
|
|
36
|
+
standaloneSchema: {};
|
|
37
|
+
response: {};
|
|
38
|
+
}>;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { NucleusSwaggerConfig } from "@types";
|
|
2
|
+
export type { NucleusSwaggerConfig } from "@types";
|
|
3
|
+
export declare function createSwaggerPlugin(config?: NucleusSwaggerConfig): import("elysia").default<"", {
|
|
4
|
+
decorator: {};
|
|
5
|
+
store: {};
|
|
6
|
+
derive: {};
|
|
7
|
+
resolve: {};
|
|
8
|
+
}, {
|
|
9
|
+
typebox: {};
|
|
10
|
+
error: {};
|
|
11
|
+
}, {
|
|
12
|
+
schema: {};
|
|
13
|
+
standaloneSchema: {};
|
|
14
|
+
macro: {};
|
|
15
|
+
macroFn: {};
|
|
16
|
+
parser: {};
|
|
17
|
+
}, {}, {
|
|
18
|
+
derive: {};
|
|
19
|
+
resolve: {};
|
|
20
|
+
schema: {};
|
|
21
|
+
standaloneSchema: {};
|
|
22
|
+
}, {
|
|
23
|
+
derive: {};
|
|
24
|
+
resolve: {};
|
|
25
|
+
schema: {};
|
|
26
|
+
standaloneSchema: {};
|
|
27
|
+
}> | null;
|
|
28
|
+
//# sourceMappingURL=swagger.d.ts.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { RedisManager } from "@managers";
|
|
2
|
+
import type { AuditPayload, NucleusColumn, NucleusConfigOptions, TokenNames, TokenValues } from "@types";
|
|
3
|
+
import type { SessionRecord } from "src/Services/Auth/SessionStore/types";
|
|
4
|
+
export declare function parseTokenValuesFromHeaders(headers: Headers, tokenNames: TokenNames): TokenValues;
|
|
5
|
+
export declare function initiateRedisManager(config: NucleusConfigOptions): void;
|
|
6
|
+
export declare function getRedisManager(): RedisManager | null;
|
|
7
|
+
export declare function parseTimeToSeconds(timeString: string | number): number;
|
|
8
|
+
export declare function signNewAccessToken({ sessionData, options, refreshTokenId, }: {
|
|
9
|
+
sessionData: SessionRecord;
|
|
10
|
+
options: NucleusConfigOptions;
|
|
11
|
+
refreshTokenId: string;
|
|
12
|
+
}): string;
|
|
13
|
+
export declare function toAudit(payload: AuditPayload | null, summary: string): {
|
|
14
|
+
entityName: string;
|
|
15
|
+
entityId: string | null;
|
|
16
|
+
operation: string;
|
|
17
|
+
userId: string | null;
|
|
18
|
+
summary: string;
|
|
19
|
+
ipAddress: string;
|
|
20
|
+
userAgent: string;
|
|
21
|
+
path: string;
|
|
22
|
+
query: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
import type { PaginationMeta, StandardQueryParams } from "@types";
|
|
25
|
+
export declare function parseQueryParams(query: Record<string, unknown>): StandardQueryParams;
|
|
26
|
+
export declare function buildPaginationMeta(page: number, limit: number, offset: number, totalItems: number): PaginationMeta;
|
|
27
|
+
export interface ValidationError {
|
|
28
|
+
field: string;
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ValidationResult {
|
|
32
|
+
valid: boolean;
|
|
33
|
+
errors: ValidationError[];
|
|
34
|
+
}
|
|
35
|
+
export declare function validatePayload(payload: Record<string, unknown>, columns: NucleusColumn[], isPartial?: boolean): ValidationResult;
|
|
36
|
+
export declare function sanitizePayload(payload: Record<string, unknown>, columns: NucleusColumn[]): Record<string, unknown>;
|
|
37
|
+
export interface AuditLogEntry {
|
|
38
|
+
user_id: string;
|
|
39
|
+
entity_name: string;
|
|
40
|
+
entity_id: string | null;
|
|
41
|
+
operation: "CREATE" | "UPDATE" | "DELETE";
|
|
42
|
+
old_data?: Record<string, unknown> | null;
|
|
43
|
+
new_data?: Record<string, unknown> | null;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function createAuditLog(db: unknown, auditTable: unknown, entry: Omit<AuditLogEntry, "timestamp">): void;
|
|
47
|
+
export interface RefreshTokenResult {
|
|
48
|
+
success: boolean;
|
|
49
|
+
accessToken?: string;
|
|
50
|
+
fromCache?: boolean;
|
|
51
|
+
error?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare function refreshAccessTokenWithLock(userId: string, sessionId: string, generateToken: () => string): Promise<RefreshTokenResult>;
|
|
54
|
+
export interface EnvValidationError {
|
|
55
|
+
field: string;
|
|
56
|
+
envName: string;
|
|
57
|
+
message: string;
|
|
58
|
+
}
|
|
59
|
+
export declare function validateEnvVariables(config: NucleusConfigOptions): {
|
|
60
|
+
valid: boolean;
|
|
61
|
+
errors: EnvValidationError[];
|
|
62
|
+
resolved: {
|
|
63
|
+
databaseUrl?: string;
|
|
64
|
+
redisUrl?: string;
|
|
65
|
+
accessTokenSecret?: string;
|
|
66
|
+
refreshTokenSecret?: string;
|
|
67
|
+
sessionTokenSecret?: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Binding client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { BindingOptions, DaprLogger } from "../types";
|
|
6
|
+
export declare class DaprBindingClient {
|
|
7
|
+
private client;
|
|
8
|
+
private logger;
|
|
9
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
10
|
+
/**
|
|
11
|
+
* Invoke an output binding
|
|
12
|
+
*/
|
|
13
|
+
invoke<TData = unknown, TResponse = unknown>(name: string, operation: string, data?: TData, options?: BindingOptions): Promise<TResponse>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=binding-client.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { ConfigItem, ConfigSubscription, ConfigSubscriptionCallback, DaprLogger } from "../types";
|
|
6
|
+
export declare class DaprConfigClient {
|
|
7
|
+
private client;
|
|
8
|
+
private logger;
|
|
9
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
10
|
+
/**
|
|
11
|
+
* Get configuration items by keys
|
|
12
|
+
*/
|
|
13
|
+
get(keys: string[], storeName?: string): Promise<Record<string, ConfigItem>>;
|
|
14
|
+
/**
|
|
15
|
+
* Subscribe to configuration updates for specific keys
|
|
16
|
+
*/
|
|
17
|
+
subscribeWithKeys(keys: string[], callback: ConfigSubscriptionCallback, storeName?: string): Promise<ConfigSubscription>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a single configuration value by key
|
|
20
|
+
*/
|
|
21
|
+
getValue(key: string, storeName?: string): Promise<string | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Get multiple configuration values as a simple key-value object
|
|
24
|
+
*/
|
|
25
|
+
getValues(keys: string[], storeName?: string): Promise<Record<string, string>>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=config-client.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cryptography client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { CryptoOptions, DaprLogger } from "../types";
|
|
6
|
+
export declare class DaprCryptoClient {
|
|
7
|
+
private client;
|
|
8
|
+
private logger;
|
|
9
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
10
|
+
/**
|
|
11
|
+
* Encrypt data using a Dapr crypto component
|
|
12
|
+
*/
|
|
13
|
+
encrypt(data: Buffer | string, options: CryptoOptions): Promise<Buffer>;
|
|
14
|
+
/**
|
|
15
|
+
* Decrypt data using a Dapr crypto component
|
|
16
|
+
*/
|
|
17
|
+
decrypt(data: Buffer | string, options: CryptoOptions): Promise<Buffer>;
|
|
18
|
+
/**
|
|
19
|
+
* Encrypt a string and return a base64 encoded string
|
|
20
|
+
*/
|
|
21
|
+
encryptString(plaintext: string, options: CryptoOptions): Promise<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Decrypt a base64 encoded string and return the original string
|
|
24
|
+
*/
|
|
25
|
+
decryptString(ciphertext: string, options: CryptoOptions): Promise<string>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=crypto-client.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service invocation client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import { HttpMethod } from "@dapr/dapr";
|
|
6
|
+
import type { DaprLogger, InvokeOptions } from "../types";
|
|
7
|
+
export declare class DaprInvokeClient {
|
|
8
|
+
private client;
|
|
9
|
+
private logger;
|
|
10
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
11
|
+
/**
|
|
12
|
+
* Invoke a service method
|
|
13
|
+
*/
|
|
14
|
+
invoke<TRequest extends object = object, TResponse = unknown>(appId: string, methodName: string, httpMethod?: HttpMethod, data?: TRequest, options?: InvokeOptions): Promise<TResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Invoke a service with GET method (convenience method)
|
|
17
|
+
*/
|
|
18
|
+
get<TResponse = unknown>(appId: string, methodName: string, options?: InvokeOptions): Promise<TResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Invoke a service with POST method (convenience method)
|
|
21
|
+
*/
|
|
22
|
+
post<TRequest extends object = Record<string, unknown>, TResponse = unknown>(appId: string, methodName: string, data?: TRequest, options?: InvokeOptions): Promise<TResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Invoke a service with PUT method (convenience method)
|
|
25
|
+
*/
|
|
26
|
+
put<TRequest extends object = Record<string, unknown>, TResponse = unknown>(appId: string, methodName: string, data?: TRequest, options?: InvokeOptions): Promise<TResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Invoke a service with DELETE method (convenience method)
|
|
29
|
+
*/
|
|
30
|
+
delete<TResponse = unknown>(appId: string, methodName: string, options?: InvokeOptions): Promise<TResponse>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=invoke-client.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Distributed lock client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { DaprLogger, LockOptions, LockResponse, UnlockResponse } from "../types";
|
|
6
|
+
export declare class DaprLockClient {
|
|
7
|
+
private client;
|
|
8
|
+
private logger;
|
|
9
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
10
|
+
/**
|
|
11
|
+
* Try to acquire a lock
|
|
12
|
+
*/
|
|
13
|
+
lock(storeName: string, resourceId: string, lockOwner: string, options: LockOptions): Promise<LockResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Release a previously acquired lock
|
|
16
|
+
*/
|
|
17
|
+
unlock(storeName: string, resourceId: string, lockOwner: string): Promise<UnlockResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a readable name for a lock status code
|
|
20
|
+
*/
|
|
21
|
+
private getLockStatusName;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=lock-client.d.ts.map
|