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,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PubSub client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { BulkPublishMessage, BulkPublishResponse, DaprLogger, PublishOptions } from "../types";
|
|
6
|
+
export declare class DaprPubSubClient {
|
|
7
|
+
private client;
|
|
8
|
+
private logger;
|
|
9
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
10
|
+
/**
|
|
11
|
+
* Publish a message to a topic
|
|
12
|
+
*/
|
|
13
|
+
publish<T extends object | string>(topic: string, data: T, options?: PublishOptions, pubsubName?: string): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Publish multiple messages to a topic in a single request
|
|
16
|
+
*/
|
|
17
|
+
publishBulk<T extends object | string>(topic: string, messages: T[] | BulkPublishMessage<T>[], pubsubName?: string): Promise<BulkPublishResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create a bulk publish message with proper structure
|
|
20
|
+
*/
|
|
21
|
+
createBulkPublishMessage<T = unknown>(event: T, entryId: string, contentType?: string, metadata?: Record<string, string>): BulkPublishMessage<T>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=pubsub-client.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secret client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { DaprLogger, SecretOptions } from "../types";
|
|
6
|
+
export declare class DaprSecretClient {
|
|
7
|
+
private client;
|
|
8
|
+
private logger;
|
|
9
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
10
|
+
/**
|
|
11
|
+
* Get a secret by key
|
|
12
|
+
*/
|
|
13
|
+
get<T = string>(key: string, options?: SecretOptions, storeName?: string): Promise<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Get all secrets in the store
|
|
16
|
+
*/
|
|
17
|
+
getBulk<T = Record<string, string>>(_options?: SecretOptions, storeName?: string): Promise<T>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=secret-client.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* State management client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
type StateQueryType = {
|
|
6
|
+
filter: Record<string, unknown>;
|
|
7
|
+
sort: {
|
|
8
|
+
key: string;
|
|
9
|
+
order?: "ASC" | "DESC";
|
|
10
|
+
}[];
|
|
11
|
+
page: {
|
|
12
|
+
limit: number;
|
|
13
|
+
token?: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
import type { DaprLogger, StateItem, StateOperation, StateSaveOptions } from "../types";
|
|
17
|
+
export declare class DaprStateClient {
|
|
18
|
+
private client;
|
|
19
|
+
private logger;
|
|
20
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
21
|
+
/**
|
|
22
|
+
* Save state items
|
|
23
|
+
*/
|
|
24
|
+
save<T = unknown>(stateItems: StateItem<T>[], options?: StateSaveOptions, storeName?: string): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a state item by key
|
|
27
|
+
*/
|
|
28
|
+
get<T = unknown>(key: string, storeName?: string): Promise<T | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Get multiple state items by keys
|
|
31
|
+
*/
|
|
32
|
+
getBulk<T = unknown>(keys: string[], storeName?: string): Promise<Record<string, T>>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete a state item by key
|
|
35
|
+
*/
|
|
36
|
+
delete(key: string, etag?: string, metadata?: Record<string, string>, storeName?: string): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Execute state transactions
|
|
39
|
+
*/
|
|
40
|
+
transaction<T = unknown>(operations: StateOperation<T>[], storeName?: string): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Query state store
|
|
43
|
+
*/
|
|
44
|
+
query<T = unknown>(query: StateQueryType, storeName?: string): Promise<T[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Save a single state item (convenience method)
|
|
47
|
+
*/
|
|
48
|
+
saveItem<T = unknown>(key: string, value: T, options?: StateSaveOptions, storeName?: string): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Update a state item if it exists, otherwise create it
|
|
51
|
+
*/
|
|
52
|
+
upsert<T = unknown>(key: string, value: T, options?: StateSaveOptions, storeName?: string): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=state-client.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow client for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { DaprLogger, WorkflowInstance, WorkflowOptions } from "../types";
|
|
6
|
+
export declare class DaprWorkflowClient {
|
|
7
|
+
private client;
|
|
8
|
+
private logger;
|
|
9
|
+
constructor(clientProvider: () => Promise<DaprClient>, logger: DaprLogger);
|
|
10
|
+
/**
|
|
11
|
+
* Start a new workflow instance
|
|
12
|
+
*/
|
|
13
|
+
start<T = unknown>(workflowName: string, input?: T, options?: WorkflowOptions): Promise<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Get a workflow instance by ID
|
|
16
|
+
*/
|
|
17
|
+
get(instanceId: string): Promise<WorkflowInstance>;
|
|
18
|
+
/**
|
|
19
|
+
* Terminate a workflow instance
|
|
20
|
+
*/
|
|
21
|
+
terminate(instanceId: string): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Pause a workflow instance
|
|
24
|
+
*/
|
|
25
|
+
pause(instanceId: string): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Resume a paused workflow instance
|
|
28
|
+
*/
|
|
29
|
+
resume(instanceId: string): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Purge a workflow instance
|
|
32
|
+
*/
|
|
33
|
+
purge(instanceId: string): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Raise an event for a workflow instance
|
|
36
|
+
*/
|
|
37
|
+
raiseEvent<T = unknown>(instanceId: string, eventName: string, eventData?: T): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=workflow-client.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connection manager for Dapr
|
|
3
|
+
*/
|
|
4
|
+
import { DaprClient } from "@dapr/dapr";
|
|
5
|
+
import type { DaprConnectionOptions, HealthStatus } from "./types";
|
|
6
|
+
export declare class DaprConnectionManager {
|
|
7
|
+
private client;
|
|
8
|
+
private daprHost;
|
|
9
|
+
private daprPort;
|
|
10
|
+
private communicationProtocol;
|
|
11
|
+
private maxBodySizeMb;
|
|
12
|
+
private daprApiToken?;
|
|
13
|
+
private logger;
|
|
14
|
+
private connectionStatus;
|
|
15
|
+
private connectionPromise;
|
|
16
|
+
constructor(options?: DaprConnectionOptions);
|
|
17
|
+
/**
|
|
18
|
+
* Get the current Dapr client instance
|
|
19
|
+
* If not connected, it will connect automatically
|
|
20
|
+
*/
|
|
21
|
+
getClient(): Promise<DaprClient>;
|
|
22
|
+
/**
|
|
23
|
+
* Connect to Dapr sidecar
|
|
24
|
+
*/
|
|
25
|
+
connect(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Establish connection to Dapr sidecar
|
|
28
|
+
*/
|
|
29
|
+
private establishConnection;
|
|
30
|
+
/**
|
|
31
|
+
* Disconnect from Dapr sidecar
|
|
32
|
+
*/
|
|
33
|
+
disconnect(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Check if connected to Dapr sidecar
|
|
36
|
+
*/
|
|
37
|
+
isConnected(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Get connection status
|
|
40
|
+
*/
|
|
41
|
+
getConnectionStatus(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Perform a health check on the Dapr sidecar
|
|
44
|
+
*/
|
|
45
|
+
healthCheck(): Promise<HealthStatus>;
|
|
46
|
+
/**
|
|
47
|
+
* Get the Dapr client configuration
|
|
48
|
+
*/
|
|
49
|
+
getClientConfig(): Record<string, any>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=connection-manager.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants for the Dapr manager
|
|
3
|
+
*/
|
|
4
|
+
export declare const DEFAULT_DAPR_HOST = "127.0.0.1";
|
|
5
|
+
export declare const DEFAULT_DAPR_PORT = "3500";
|
|
6
|
+
export declare const DEFAULT_DAPR_GRPC_PORT = "50001";
|
|
7
|
+
export declare const DEFAULT_MAX_BODY_SIZE_MB = 4;
|
|
8
|
+
export declare const DEFAULT_STATE_STORE = "statestore-redis";
|
|
9
|
+
export declare const DEFAULT_PUBSUB_NAME = "pubsub-rabbitmq";
|
|
10
|
+
export declare const DEFAULT_SECRET_STORE = "secretstore";
|
|
11
|
+
export declare const DEFAULT_CONFIG_STORE = "configstore-redis";
|
|
12
|
+
export declare const ENV_DAPR_HOST = "DAPR_HOST";
|
|
13
|
+
export declare const ENV_DAPR_HTTP_PORT = "DAPR_HTTP_PORT";
|
|
14
|
+
export declare const ENV_DAPR_GRPC_PORT = "DAPR_GRPC_PORT";
|
|
15
|
+
export declare const ENV_DAPR_HTTP_ENDPOINT = "DAPR_HTTP_ENDPOINT";
|
|
16
|
+
export declare const ENV_DAPR_GRPC_ENDPOINT = "DAPR_GRPC_ENDPOINT";
|
|
17
|
+
export declare const ENV_DAPR_API_TOKEN = "DAPR_API_TOKEN";
|
|
18
|
+
export declare const DEFAULT_RETRY_COUNT = 3;
|
|
19
|
+
export declare const DEFAULT_RETRY_DELAY_MS = 500;
|
|
20
|
+
export declare const DEFAULT_RETRY_MAX_DELAY_MS = 5000;
|
|
21
|
+
export declare const DEFAULT_RETRY_JITTER = 0.1;
|
|
22
|
+
export declare const DEFAULT_OPERATION_TIMEOUT_MS = 30000;
|
|
23
|
+
export declare const DEFAULT_CONNECTION_TIMEOUT_MS = 10000;
|
|
24
|
+
export declare const DEFAULT_HEALTH_CHECK_TIMEOUT_MS = 5000;
|
|
25
|
+
export declare const CONNECTION_STATUS: {
|
|
26
|
+
readonly CONNECTED: "connected";
|
|
27
|
+
readonly DISCONNECTED: "disconnected";
|
|
28
|
+
readonly CONNECTING: "connecting";
|
|
29
|
+
readonly ERROR: "error";
|
|
30
|
+
};
|
|
31
|
+
export declare const HEALTH_STATUS: {
|
|
32
|
+
readonly HEALTHY: "healthy";
|
|
33
|
+
readonly UNHEALTHY: "unhealthy";
|
|
34
|
+
};
|
|
35
|
+
export declare const ERROR_CODES: {
|
|
36
|
+
readonly CONNECTION_ERROR: "DAPR_CONNECTION_ERROR";
|
|
37
|
+
readonly TIMEOUT_ERROR: "DAPR_TIMEOUT_ERROR";
|
|
38
|
+
readonly STATE_ERROR: "DAPR_STATE_ERROR";
|
|
39
|
+
readonly PUBSUB_ERROR: "DAPR_PUBSUB_ERROR";
|
|
40
|
+
readonly BINDING_ERROR: "DAPR_BINDING_ERROR";
|
|
41
|
+
readonly SECRET_ERROR: "DAPR_SECRET_ERROR";
|
|
42
|
+
readonly CONFIG_ERROR: "DAPR_CONFIG_ERROR";
|
|
43
|
+
readonly INVOKE_ERROR: "DAPR_INVOKE_ERROR";
|
|
44
|
+
readonly CRYPTO_ERROR: "DAPR_CRYPTO_ERROR";
|
|
45
|
+
readonly LOCK_ERROR: "DAPR_LOCK_ERROR";
|
|
46
|
+
readonly WORKFLOW_ERROR: "DAPR_WORKFLOW_ERROR";
|
|
47
|
+
readonly VALIDATION_ERROR: "DAPR_VALIDATION_ERROR";
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/** biome-ignore-all lint/suspicious/noExplicitAny: <> */
|
|
2
|
+
import { HttpMethod } from "@dapr/dapr";
|
|
3
|
+
type StateQueryType = {
|
|
4
|
+
filter: any;
|
|
5
|
+
sort: {
|
|
6
|
+
key: string;
|
|
7
|
+
order?: "ASC" | "DESC";
|
|
8
|
+
}[];
|
|
9
|
+
page: {
|
|
10
|
+
limit: number;
|
|
11
|
+
token?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare class DaprConnectionManager {
|
|
15
|
+
private client;
|
|
16
|
+
private daprHost;
|
|
17
|
+
private daprPort;
|
|
18
|
+
constructor();
|
|
19
|
+
/**
|
|
20
|
+
* Connect to Dapr (reinitialize client)
|
|
21
|
+
*/
|
|
22
|
+
connect(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Disconnect from Dapr
|
|
25
|
+
*/
|
|
26
|
+
disconnect(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Check if connected to Dapr
|
|
29
|
+
*/
|
|
30
|
+
isConnected(): Promise<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Save state
|
|
33
|
+
*/
|
|
34
|
+
addState(key: string, value: any, storeName?: string): Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* Update state (alias for addState since Dapr treats them the same)
|
|
37
|
+
*/
|
|
38
|
+
updateState(key: string, value: any, storeName?: string): Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* Get state by key
|
|
41
|
+
*/
|
|
42
|
+
getState(key: string, storeName?: string): Promise<any>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete state
|
|
45
|
+
*/
|
|
46
|
+
deleteState(key: string, storeName?: string): Promise<any>;
|
|
47
|
+
/**
|
|
48
|
+
* Query states
|
|
49
|
+
*/
|
|
50
|
+
queryStates(query: StateQueryType, storeName?: string): Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Get multiple states
|
|
53
|
+
*/
|
|
54
|
+
getBulkState(keys: string[], storeName?: string): Promise<any>;
|
|
55
|
+
/**
|
|
56
|
+
* Execute state transaction
|
|
57
|
+
*/
|
|
58
|
+
stateTransaction(operations: any[], storeName?: string): Promise<any>;
|
|
59
|
+
/**
|
|
60
|
+
* Get configuration
|
|
61
|
+
*/
|
|
62
|
+
getConfig(keys: string[], storeName?: string): Promise<any>;
|
|
63
|
+
/**
|
|
64
|
+
* Publish message
|
|
65
|
+
*/
|
|
66
|
+
publishMessage(pubsubName: string, topicName: string, data: any, options?: {
|
|
67
|
+
contentType?: string;
|
|
68
|
+
metadata?: Record<string, string>;
|
|
69
|
+
}): Promise<any>;
|
|
70
|
+
/**
|
|
71
|
+
* Invoke another service
|
|
72
|
+
*/
|
|
73
|
+
invokeService(appId: string, methodName: string, httpMethod?: HttpMethod, data?: any, options?: {
|
|
74
|
+
headers?: Record<string, string>;
|
|
75
|
+
}): Promise<any>;
|
|
76
|
+
/**
|
|
77
|
+
* Get secret
|
|
78
|
+
*/
|
|
79
|
+
getSecret(storeName: string, key: string, metadata?: Record<string, string>): Promise<any>;
|
|
80
|
+
/**
|
|
81
|
+
* Get bulk secrets
|
|
82
|
+
*/
|
|
83
|
+
getBulkSecrets(storeName: string, _metadata?: Record<string, string>): Promise<any>;
|
|
84
|
+
/**
|
|
85
|
+
* Invoke binding
|
|
86
|
+
*/
|
|
87
|
+
invokeBinding(name: string, operation: string, data?: any, metadata?: Record<string, string>): Promise<any>;
|
|
88
|
+
/**
|
|
89
|
+
* Perform health check by making a simple state call
|
|
90
|
+
*/
|
|
91
|
+
healthCheck(): Promise<{
|
|
92
|
+
status: string;
|
|
93
|
+
timestamp: string;
|
|
94
|
+
}>;
|
|
95
|
+
/**
|
|
96
|
+
* Test connection with comprehensive checks
|
|
97
|
+
* Performs multiple operations to verify Dapr functionality
|
|
98
|
+
*/
|
|
99
|
+
testConnection(): Promise<{
|
|
100
|
+
success: boolean;
|
|
101
|
+
operations: Record<string, boolean>;
|
|
102
|
+
error?: string;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* Try to acquire a lock
|
|
106
|
+
*/
|
|
107
|
+
tryLock(storeName: string, resourceId: string, lockOwner: string, expiryInSeconds?: number): Promise<{
|
|
108
|
+
success: boolean;
|
|
109
|
+
}>;
|
|
110
|
+
/**
|
|
111
|
+
* Release a lock
|
|
112
|
+
*/
|
|
113
|
+
unlock(storeName: string, resourceId: string, lockOwner: string): Promise<{
|
|
114
|
+
success: boolean;
|
|
115
|
+
}>;
|
|
116
|
+
/**
|
|
117
|
+
* Encrypt data using Dapr crypto
|
|
118
|
+
*/
|
|
119
|
+
encrypt(componentName: string, keyName: string, data: Uint8Array): Promise<Uint8Array>;
|
|
120
|
+
/**
|
|
121
|
+
* Decrypt data using Dapr crypto
|
|
122
|
+
*/
|
|
123
|
+
decrypt(componentName: string, keyName: string, ciphertext: Uint8Array): Promise<Uint8Array>;
|
|
124
|
+
/**
|
|
125
|
+
* Start a new workflow
|
|
126
|
+
*/
|
|
127
|
+
startWorkflow(workflowComponent: string, workflowName: string, options?: {
|
|
128
|
+
instanceID?: string;
|
|
129
|
+
input?: any;
|
|
130
|
+
}): Promise<{
|
|
131
|
+
instanceID: string;
|
|
132
|
+
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Get workflow metadata
|
|
135
|
+
*/
|
|
136
|
+
getWorkflow(workflowComponent: string): Promise<any>;
|
|
137
|
+
/**
|
|
138
|
+
* Terminate a workflow
|
|
139
|
+
*/
|
|
140
|
+
terminateWorkflow(workflowComponent: string): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Pause a workflow
|
|
143
|
+
*/
|
|
144
|
+
pauseWorkflow(workflowComponent: string): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Resume a workflow
|
|
147
|
+
*/
|
|
148
|
+
resumeWorkflow(workflowComponent: string): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Raise a workflow event
|
|
151
|
+
*/
|
|
152
|
+
raiseWorkflowEvent(_workflowComponent: string, instanceID: string, eventName: string, eventData?: any): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* Purge workflow
|
|
155
|
+
*/
|
|
156
|
+
purgeWorkflow(workflowComponent: string): Promise<void>;
|
|
157
|
+
}
|
|
158
|
+
export declare const daprService: DaprConnectionManager;
|
|
159
|
+
export {};
|
|
160
|
+
//# sourceMappingURL=dapr-manager.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error handling utilities for the Dapr manager
|
|
3
|
+
*/
|
|
4
|
+
import type { DaprError } from "./types";
|
|
5
|
+
export declare class DaprManagerError extends Error {
|
|
6
|
+
code: string;
|
|
7
|
+
details?: unknown;
|
|
8
|
+
constructor(code: string, message: string, details?: unknown);
|
|
9
|
+
toJSON(): DaprError;
|
|
10
|
+
}
|
|
11
|
+
export declare const createConnectionError: (message: string, details?: unknown) => DaprManagerError;
|
|
12
|
+
export declare const createTimeoutError: (message: string, details?: unknown) => DaprManagerError;
|
|
13
|
+
export declare const createStateError: (message: string, details?: unknown) => DaprManagerError;
|
|
14
|
+
export declare const createPubSubError: (message: string, details?: unknown) => DaprManagerError;
|
|
15
|
+
export declare const createBindingError: (message: string, details?: unknown) => DaprManagerError;
|
|
16
|
+
export declare const createSecretError: (message: string, details?: unknown) => DaprManagerError;
|
|
17
|
+
export declare const createConfigError: (message: string, details?: unknown) => DaprManagerError;
|
|
18
|
+
export declare const createInvokeError: (message: string, details?: unknown) => DaprManagerError;
|
|
19
|
+
export declare const createCryptoError: (message: string, details?: unknown) => DaprManagerError;
|
|
20
|
+
export declare const createLockError: (message: string, details?: unknown) => DaprManagerError;
|
|
21
|
+
export declare const createWorkflowError: (message: string, details?: unknown) => DaprManagerError;
|
|
22
|
+
export declare const createValidationError: (message: string, details?: unknown) => DaprManagerError;
|
|
23
|
+
/**
|
|
24
|
+
* Safely handle errors from Dapr client operations
|
|
25
|
+
* @param operation - Function to execute
|
|
26
|
+
* @param errorCreator - Function to create an error if the operation fails
|
|
27
|
+
*/
|
|
28
|
+
export declare const safeExecute: <T>(operation: () => Promise<T>, errorCreator: (message: string, details?: unknown) => DaprManagerError) => Promise<T>;
|
|
29
|
+
//# sourceMappingURL=error-handling.d.ts.map
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main Dapr manager that integrates all clients
|
|
3
|
+
*/
|
|
4
|
+
/** biome-ignore-all lint/correctness/noUnusedPrivateClassMembers: <> */
|
|
5
|
+
import { DaprBindingClient } from "./clients/binding-client";
|
|
6
|
+
import { DaprConfigClient } from "./clients/config-client";
|
|
7
|
+
import { DaprCryptoClient } from "./clients/crypto-client";
|
|
8
|
+
import { DaprInvokeClient } from "./clients/invoke-client";
|
|
9
|
+
import { DaprLockClient } from "./clients/lock-client";
|
|
10
|
+
import { DaprPubSubClient } from "./clients/pubsub-client";
|
|
11
|
+
import { DaprSecretClient } from "./clients/secret-client";
|
|
12
|
+
import { DaprStateClient } from "./clients/state-client";
|
|
13
|
+
import { DaprWorkflowClient } from "./clients/workflow-client";
|
|
14
|
+
import type { DaprConnectionOptions, HealthStatus } from "./types";
|
|
15
|
+
export declare class DaprManager {
|
|
16
|
+
private connectionManager;
|
|
17
|
+
private logger;
|
|
18
|
+
private _state;
|
|
19
|
+
private _pubsub;
|
|
20
|
+
private _binding;
|
|
21
|
+
private _secret;
|
|
22
|
+
private _config;
|
|
23
|
+
private _invoke;
|
|
24
|
+
private _lock;
|
|
25
|
+
private _crypto;
|
|
26
|
+
private _workflow;
|
|
27
|
+
constructor(options?: DaprConnectionOptions);
|
|
28
|
+
/**
|
|
29
|
+
* Connect to Dapr sidecar
|
|
30
|
+
*/
|
|
31
|
+
connect(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Disconnect from Dapr sidecar
|
|
34
|
+
*/
|
|
35
|
+
disconnect(): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Check if connected to Dapr sidecar
|
|
38
|
+
*/
|
|
39
|
+
isConnected(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Get connection status
|
|
42
|
+
*/
|
|
43
|
+
getConnectionStatus(): string;
|
|
44
|
+
/**
|
|
45
|
+
* Perform a health check on the Dapr sidecar
|
|
46
|
+
*/
|
|
47
|
+
healthCheck(): Promise<HealthStatus>;
|
|
48
|
+
/**
|
|
49
|
+
* Get the Dapr client configuration
|
|
50
|
+
*/
|
|
51
|
+
getClientConfig(): Record<string, any>;
|
|
52
|
+
/**
|
|
53
|
+
* Access the state management client
|
|
54
|
+
*/
|
|
55
|
+
get state(): DaprStateClient;
|
|
56
|
+
/**
|
|
57
|
+
* Access the pubsub client
|
|
58
|
+
*/
|
|
59
|
+
get pubsub(): DaprPubSubClient;
|
|
60
|
+
/**
|
|
61
|
+
* Access the binding client
|
|
62
|
+
*/
|
|
63
|
+
get binding(): DaprBindingClient;
|
|
64
|
+
/**
|
|
65
|
+
* Access the secret client
|
|
66
|
+
*/
|
|
67
|
+
get secret(): DaprSecretClient;
|
|
68
|
+
/**
|
|
69
|
+
* Access the configuration client
|
|
70
|
+
*/
|
|
71
|
+
get config(): DaprConfigClient;
|
|
72
|
+
/**
|
|
73
|
+
* Access the service invocation client
|
|
74
|
+
*/
|
|
75
|
+
get invoke(): DaprInvokeClient;
|
|
76
|
+
/**
|
|
77
|
+
* Access the distributed lock client
|
|
78
|
+
*/
|
|
79
|
+
get lock(): DaprLockClient;
|
|
80
|
+
/**
|
|
81
|
+
* Access the cryptography client
|
|
82
|
+
*/
|
|
83
|
+
get crypto(): DaprCryptoClient;
|
|
84
|
+
/**
|
|
85
|
+
* Access the workflow client
|
|
86
|
+
*/
|
|
87
|
+
get workflow(): DaprWorkflowClient;
|
|
88
|
+
}
|
|
89
|
+
export declare const daprManager: DaprManager;
|
|
90
|
+
export { DaprBindingClient } from "./clients/binding-client";
|
|
91
|
+
export { DaprConfigClient } from "./clients/config-client";
|
|
92
|
+
export { DaprCryptoClient } from "./clients/crypto-client";
|
|
93
|
+
export { DaprInvokeClient } from "./clients/invoke-client";
|
|
94
|
+
export { DaprLockClient } from "./clients/lock-client";
|
|
95
|
+
export { DaprPubSubClient } from "./clients/pubsub-client";
|
|
96
|
+
export { DaprSecretClient } from "./clients/secret-client";
|
|
97
|
+
export { DaprStateClient } from "./clients/state-client";
|
|
98
|
+
export { DaprWorkflowClient } from "./clients/workflow-client";
|
|
99
|
+
export * from "./constants";
|
|
100
|
+
export * from "./error-handling";
|
|
101
|
+
export * from "./types";
|
|
102
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for the Dapr manager
|
|
3
|
+
*/
|
|
4
|
+
import type { CommunicationProtocolEnum } from "@dapr/dapr";
|
|
5
|
+
export declare enum LockStatus {
|
|
6
|
+
Success = 0,
|
|
7
|
+
LockDoesNotExist = 1,
|
|
8
|
+
LockBelongsToOthers = 2,
|
|
9
|
+
InternalError = 3
|
|
10
|
+
}
|
|
11
|
+
export type DaprConnectionOptions = {
|
|
12
|
+
daprHost?: string;
|
|
13
|
+
daprPort?: string;
|
|
14
|
+
communicationProtocol?: CommunicationProtocolEnum;
|
|
15
|
+
maxBodySizeMb?: number;
|
|
16
|
+
daprApiToken?: string;
|
|
17
|
+
logger?: DaprLogger;
|
|
18
|
+
};
|
|
19
|
+
export type LogLevel = "debug" | "info" | "warn" | "error";
|
|
20
|
+
export type DaprLogger = {
|
|
21
|
+
debug: (message: string, ...meta: unknown[]) => void;
|
|
22
|
+
info: (message: string, ...meta: unknown[]) => void;
|
|
23
|
+
warn: (message: string, ...meta: unknown[]) => void;
|
|
24
|
+
error: (message: string, ...meta: unknown[]) => void;
|
|
25
|
+
};
|
|
26
|
+
export type StateItem<T = unknown> = {
|
|
27
|
+
key: string;
|
|
28
|
+
value: T;
|
|
29
|
+
etag?: string;
|
|
30
|
+
metadata?: Record<string, string>;
|
|
31
|
+
};
|
|
32
|
+
export type StateSaveOptions = {
|
|
33
|
+
concurrency?: "first-write" | "last-write";
|
|
34
|
+
consistency?: "eventual" | "strong";
|
|
35
|
+
metadata?: Record<string, string>;
|
|
36
|
+
};
|
|
37
|
+
export type StateOperation<T = unknown> = {
|
|
38
|
+
operation: "upsert" | "delete";
|
|
39
|
+
request: {
|
|
40
|
+
key: string;
|
|
41
|
+
value?: T;
|
|
42
|
+
etag?: string;
|
|
43
|
+
metadata?: Record<string, string>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export type PublishOptions = {
|
|
47
|
+
contentType?: string;
|
|
48
|
+
metadata?: Record<string, string>;
|
|
49
|
+
};
|
|
50
|
+
export type BulkPublishMessage<T = unknown> = {
|
|
51
|
+
entryId: string;
|
|
52
|
+
contentType?: string;
|
|
53
|
+
event: T;
|
|
54
|
+
metadata?: Record<string, string>;
|
|
55
|
+
};
|
|
56
|
+
export type BulkPublishResponse = {
|
|
57
|
+
failedEntries: Array<{
|
|
58
|
+
entryId: string;
|
|
59
|
+
error: string;
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
export type InvokeOptions = {
|
|
63
|
+
headers?: Record<string, string>;
|
|
64
|
+
queryParams?: Record<string, string>;
|
|
65
|
+
timeout?: number;
|
|
66
|
+
};
|
|
67
|
+
export type BindingOptions = {
|
|
68
|
+
metadata?: Record<string, string>;
|
|
69
|
+
};
|
|
70
|
+
export type SecretOptions = {
|
|
71
|
+
metadata?: Record<string, string>;
|
|
72
|
+
};
|
|
73
|
+
export type ConfigItem = {
|
|
74
|
+
key: string;
|
|
75
|
+
value: string;
|
|
76
|
+
version: string;
|
|
77
|
+
metadata: Record<string, string>;
|
|
78
|
+
};
|
|
79
|
+
export type ConfigResponse = {
|
|
80
|
+
items: Record<string, ConfigItem>;
|
|
81
|
+
};
|
|
82
|
+
export type ConfigSubscriptionCallback = (data: ConfigResponse) => Promise<void> | void;
|
|
83
|
+
export type ConfigSubscription = {
|
|
84
|
+
stop: () => void;
|
|
85
|
+
};
|
|
86
|
+
export type CryptoOptions = {
|
|
87
|
+
componentName: string;
|
|
88
|
+
keyName?: string;
|
|
89
|
+
keyWrapAlgorithm?: string;
|
|
90
|
+
};
|
|
91
|
+
export type LockOptions = {
|
|
92
|
+
expiryInSeconds: number;
|
|
93
|
+
};
|
|
94
|
+
export type LockResponse = {
|
|
95
|
+
success: boolean;
|
|
96
|
+
};
|
|
97
|
+
export type UnlockResponse = {
|
|
98
|
+
status: LockStatus;
|
|
99
|
+
};
|
|
100
|
+
export type WorkflowOptions = {
|
|
101
|
+
instanceId?: string;
|
|
102
|
+
workflowComponent?: string;
|
|
103
|
+
};
|
|
104
|
+
export type WorkflowInstance = {
|
|
105
|
+
instanceId: string;
|
|
106
|
+
workflowName: string;
|
|
107
|
+
createdAt: Date;
|
|
108
|
+
lastUpdatedAt: Date;
|
|
109
|
+
runtimeStatus: string;
|
|
110
|
+
properties: Record<string, string>;
|
|
111
|
+
};
|
|
112
|
+
export type HealthStatus = {
|
|
113
|
+
status: string;
|
|
114
|
+
version: string;
|
|
115
|
+
};
|
|
116
|
+
export type DaprError = {
|
|
117
|
+
code: string;
|
|
118
|
+
message: string;
|
|
119
|
+
details?: unknown;
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=types.d.ts.map
|