@skyapp-labs/blueprint-backend-core 1.0.9
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/CHANGELOG.md +6 -0
- package/README.md +954 -0
- package/dist/common/base/base.entity.d.ts +12 -0
- package/dist/common/base/base.entity.d.ts.map +1 -0
- package/dist/common/base/base.entity.js +48 -0
- package/dist/common/base/base.entity.js.map +1 -0
- package/dist/common/base/base.repository.d.ts +26 -0
- package/dist/common/base/base.repository.d.ts.map +1 -0
- package/dist/common/base/base.repository.js +61 -0
- package/dist/common/base/base.repository.js.map +1 -0
- package/dist/common/constants/index.d.ts +9 -0
- package/dist/common/constants/index.d.ts.map +1 -0
- package/dist/common/constants/index.js +13 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/decorators/auth-method-aware.decorator.d.ts +3 -0
- package/dist/common/decorators/auth-method-aware.decorator.d.ts.map +1 -0
- package/dist/common/decorators/auth-method-aware.decorator.js +8 -0
- package/dist/common/decorators/auth-method-aware.decorator.js.map +1 -0
- package/dist/common/decorators/index.d.ts +8 -0
- package/dist/common/decorators/index.d.ts.map +1 -0
- package/dist/common/decorators/index.js +24 -0
- package/dist/common/decorators/index.js.map +1 -0
- package/dist/common/dto/index.d.ts +2 -0
- package/dist/common/dto/index.d.ts.map +1 -0
- package/dist/common/dto/index.js +18 -0
- package/dist/common/dto/index.js.map +1 -0
- package/dist/common/dto/pagination.dto.d.ts +6 -0
- package/dist/common/dto/pagination.dto.d.ts.map +1 -0
- package/dist/common/dto/pagination.dto.js +45 -0
- package/dist/common/dto/pagination.dto.js.map +1 -0
- package/dist/common/filters/http-exception.filter.d.ts +9 -0
- package/dist/common/filters/http-exception.filter.d.ts.map +1 -0
- package/dist/common/filters/http-exception.filter.js +71 -0
- package/dist/common/filters/http-exception.filter.js.map +1 -0
- package/dist/common/filters/index.d.ts +2 -0
- package/dist/common/filters/index.d.ts.map +1 -0
- package/dist/common/filters/index.js +18 -0
- package/dist/common/filters/index.js.map +1 -0
- package/dist/common/guards/auth.guard.d.ts +11 -0
- package/dist/common/guards/auth.guard.d.ts.map +1 -0
- package/dist/common/guards/auth.guard.js +42 -0
- package/dist/common/guards/auth.guard.js.map +1 -0
- package/dist/common/guards/index.d.ts +5 -0
- package/dist/common/guards/index.d.ts.map +1 -0
- package/dist/common/guards/index.js +21 -0
- package/dist/common/guards/index.js.map +1 -0
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts +12 -0
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/login-ip-rate-limit.guard.js +70 -0
- package/dist/common/guards/login-ip-rate-limit.guard.js.map +1 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts +12 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.js +70 -0
- package/dist/common/guards/otp-ip-rate-limit.guard.js.map +1 -0
- package/dist/common/guards/permissions.guard.d.ts +8 -0
- package/dist/common/guards/permissions.guard.d.ts.map +1 -0
- package/dist/common/guards/permissions.guard.js +41 -0
- package/dist/common/guards/permissions.guard.js.map +1 -0
- package/dist/common/index.d.ts +13 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +33 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interceptors/index.d.ts +2 -0
- package/dist/common/interceptors/index.d.ts.map +1 -0
- package/dist/common/interceptors/index.js +18 -0
- package/dist/common/interceptors/index.js.map +1 -0
- package/dist/common/interceptors/logging.interceptor.d.ts +10 -0
- package/dist/common/interceptors/logging.interceptor.d.ts.map +1 -0
- package/dist/common/interceptors/logging.interceptor.js +50 -0
- package/dist/common/interceptors/logging.interceptor.js.map +1 -0
- package/dist/common/interfaces/index.d.ts +2 -0
- package/dist/common/interfaces/index.d.ts.map +1 -0
- package/dist/common/interfaces/index.js +18 -0
- package/dist/common/interfaces/index.js.map +1 -0
- package/dist/common/interfaces/request-user.interface.d.ts +5 -0
- package/dist/common/interfaces/request-user.interface.d.ts.map +1 -0
- package/dist/common/interfaces/request-user.interface.js +3 -0
- package/dist/common/interfaces/request-user.interface.js.map +1 -0
- package/dist/common/middlewares/index.d.ts +6 -0
- package/dist/common/middlewares/index.d.ts.map +1 -0
- package/dist/common/middlewares/index.js +23 -0
- package/dist/common/middlewares/index.js.map +1 -0
- package/dist/common/pipes/config-aware-validation.pipe.d.ts +9 -0
- package/dist/common/pipes/config-aware-validation.pipe.d.ts.map +1 -0
- package/dist/common/pipes/config-aware-validation.pipe.js +38 -0
- package/dist/common/pipes/config-aware-validation.pipe.js.map +1 -0
- package/dist/common/pipes/index.d.ts +14 -0
- package/dist/common/pipes/index.d.ts.map +1 -0
- package/dist/common/pipes/index.js +62 -0
- package/dist/common/pipes/index.js.map +1 -0
- package/dist/common/utils/index.d.ts +8 -0
- package/dist/common/utils/index.d.ts.map +1 -0
- package/dist/common/utils/index.js +33 -0
- package/dist/common/utils/index.js.map +1 -0
- package/dist/common/utils/request.utils.d.ts +7 -0
- package/dist/common/utils/request.utils.d.ts.map +1 -0
- package/dist/common/utils/request.utils.js +12 -0
- package/dist/common/utils/request.utils.js.map +1 -0
- package/dist/config/app.config.d.ts +66 -0
- package/dist/config/app.config.d.ts.map +1 -0
- package/dist/config/app.config.js +43 -0
- package/dist/config/app.config.js.map +1 -0
- package/dist/config/database.config.d.ts +16 -0
- package/dist/config/database.config.d.ts.map +1 -0
- package/dist/config/database.config.js +13 -0
- package/dist/config/database.config.js.map +1 -0
- package/dist/config/env.validation.d.ts +34 -0
- package/dist/config/env.validation.d.ts.map +1 -0
- package/dist/config/env.validation.js +172 -0
- package/dist/config/env.validation.js.map +1 -0
- package/dist/config/firebase.module.d.ts +5 -0
- package/dist/config/firebase.module.d.ts.map +1 -0
- package/dist/config/firebase.module.js +21 -0
- package/dist/config/firebase.module.js.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +17 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/keycloak.module.d.ts +6 -0
- package/dist/config/keycloak.module.d.ts.map +1 -0
- package/dist/config/keycloak.module.js +92 -0
- package/dist/config/keycloak.module.js.map +1 -0
- package/dist/config/redis.module.d.ts +10 -0
- package/dist/config/redis.module.d.ts.map +1 -0
- package/dist/config/redis.module.js +111 -0
- package/dist/config/redis.module.js.map +1 -0
- package/dist/core.module.d.ts +12 -0
- package/dist/core.module.d.ts.map +1 -0
- package/dist/core.module.js +53 -0
- package/dist/core.module.js.map +1 -0
- package/dist/database/data-source.d.ts +5 -0
- package/dist/database/data-source.d.ts.map +1 -0
- package/dist/database/data-source.js +56 -0
- package/dist/database/data-source.js.map +1 -0
- package/dist/database/migrations/1775258543167-full-schema.d.ts +7 -0
- package/dist/database/migrations/1775258543167-full-schema.d.ts.map +1 -0
- package/dist/database/migrations/1775258543167-full-schema.js +100 -0
- package/dist/database/migrations/1775258543167-full-schema.js.map +1 -0
- package/dist/database/seeds/roles.seed.d.ts +11 -0
- package/dist/database/seeds/roles.seed.d.ts.map +1 -0
- package/dist/database/seeds/roles.seed.js +66 -0
- package/dist/database/seeds/roles.seed.js.map +1 -0
- package/dist/database/seeds/run-seed.d.ts +2 -0
- package/dist/database/seeds/run-seed.d.ts.map +1 -0
- package/dist/database/seeds/run-seed.js +32 -0
- package/dist/database/seeds/run-seed.js.map +1 -0
- package/dist/database/seeds/settings.seed.d.ts +9 -0
- package/dist/database/seeds/settings.seed.d.ts.map +1 -0
- package/dist/database/seeds/settings.seed.js +450 -0
- package/dist/database/seeds/settings.seed.js.map +1 -0
- package/dist/database/seeds/user.seed.d.ts +9 -0
- package/dist/database/seeds/user.seed.d.ts.map +1 -0
- package/dist/database/seeds/user.seed.js +90 -0
- package/dist/database/seeds/user.seed.js.map +1 -0
- package/dist/database/typeorm.service.d.ts +13 -0
- package/dist/database/typeorm.service.d.ts.map +1 -0
- package/dist/database/typeorm.service.js +52 -0
- package/dist/database/typeorm.service.js.map +1 -0
- package/dist/health/health.controller.d.ts +29 -0
- package/dist/health/health.controller.d.ts.map +1 -0
- package/dist/health/health.controller.js +182 -0
- package/dist/health/health.controller.js.map +1 -0
- package/dist/health/health.module.d.ts +3 -0
- package/dist/health/health.module.d.ts.map +1 -0
- package/dist/health/health.module.js +50 -0
- package/dist/health/health.module.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -0
- package/dist/jobs/index.d.ts +6 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +10 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/jobs/jobs.module.d.ts +6 -0
- package/dist/jobs/jobs.module.d.ts.map +1 -0
- package/dist/jobs/jobs.module.js +63 -0
- package/dist/jobs/jobs.module.js.map +1 -0
- package/dist/jobs/processors/jobs.processor.d.ts +24 -0
- package/dist/jobs/processors/jobs.processor.d.ts.map +1 -0
- package/dist/jobs/processors/jobs.processor.js +164 -0
- package/dist/jobs/processors/jobs.processor.js.map +1 -0
- package/dist/jobs/queues/jobs.queue.d.ts +25 -0
- package/dist/jobs/queues/jobs.queue.d.ts.map +1 -0
- package/dist/jobs/queues/jobs.queue.js +55 -0
- package/dist/jobs/queues/jobs.queue.js.map +1 -0
- package/dist/jobs/queues/queue-names.d.ts +5 -0
- package/dist/jobs/queues/queue-names.d.ts.map +1 -0
- package/dist/jobs/queues/queue-names.js +7 -0
- package/dist/jobs/queues/queue-names.js.map +1 -0
- package/dist/modules/admin/admin.module.d.ts +3 -0
- package/dist/modules/admin/admin.module.d.ts.map +1 -0
- package/dist/modules/admin/admin.module.js +24 -0
- package/dist/modules/admin/admin.module.js.map +1 -0
- package/dist/modules/admin/controllers/admin.controller.d.ts +27 -0
- package/dist/modules/admin/controllers/admin.controller.d.ts.map +1 -0
- package/dist/modules/admin/controllers/admin.controller.js +110 -0
- package/dist/modules/admin/controllers/admin.controller.js.map +1 -0
- package/dist/modules/admin/dto/admin-log.dto.d.ts +17 -0
- package/dist/modules/admin/dto/admin-log.dto.d.ts.map +1 -0
- package/dist/modules/admin/dto/admin-log.dto.js +57 -0
- package/dist/modules/admin/dto/admin-log.dto.js.map +1 -0
- package/dist/modules/admin/entities/admin-log.entity.d.ts +12 -0
- package/dist/modules/admin/entities/admin-log.entity.d.ts.map +1 -0
- package/dist/modules/admin/entities/admin-log.entity.js +53 -0
- package/dist/modules/admin/entities/admin-log.entity.js.map +1 -0
- package/dist/modules/admin/services/admin-log.service.d.ts +11 -0
- package/dist/modules/admin/services/admin-log.service.d.ts.map +1 -0
- package/dist/modules/admin/services/admin-log.service.js +60 -0
- package/dist/modules/admin/services/admin-log.service.js.map +1 -0
- package/dist/modules/auth/auth-core/auth-core.module.d.ts +3 -0
- package/dist/modules/auth/auth-core/auth-core.module.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/auth-core.module.js +40 -0
- package/dist/modules/auth/auth-core/auth-core.module.js.map +1 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts +18 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js +45 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js.map +1 -0
- package/dist/modules/auth/auth.manifest.d.ts +9 -0
- package/dist/modules/auth/auth.manifest.d.ts.map +1 -0
- package/dist/modules/auth/auth.manifest.js +29 -0
- package/dist/modules/auth/auth.manifest.js.map +1 -0
- package/dist/modules/auth/auth.module.d.ts +3 -0
- package/dist/modules/auth/auth.module.d.ts.map +1 -0
- package/dist/modules/auth/auth.module.js +67 -0
- package/dist/modules/auth/auth.module.js.map +1 -0
- package/dist/modules/auth/controllers/account.controller.d.ts +42 -0
- package/dist/modules/auth/controllers/account.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/account.controller.js +206 -0
- package/dist/modules/auth/controllers/account.controller.js.map +1 -0
- package/dist/modules/auth/controllers/auth.controller.d.ts +32 -0
- package/dist/modules/auth/controllers/auth.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/auth.controller.js +206 -0
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -0
- package/dist/modules/auth/controllers/otp.controller.d.ts +10 -0
- package/dist/modules/auth/controllers/otp.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/otp.controller.js +156 -0
- package/dist/modules/auth/controllers/otp.controller.js.map +1 -0
- package/dist/modules/auth/dto/index.d.ts +7 -0
- package/dist/modules/auth/dto/index.d.ts.map +1 -0
- package/dist/modules/auth/dto/index.js +23 -0
- package/dist/modules/auth/dto/index.js.map +1 -0
- package/dist/modules/auth/dto/invite.dto.d.ts +7 -0
- package/dist/modules/auth/dto/invite.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/invite.dto.js +39 -0
- package/dist/modules/auth/dto/invite.dto.js.map +1 -0
- package/dist/modules/auth/dto/login.dto.d.ts +7 -0
- package/dist/modules/auth/dto/login.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/login.dto.js +48 -0
- package/dist/modules/auth/dto/login.dto.js.map +1 -0
- package/dist/modules/auth/dto/otp.dto.d.ts +15 -0
- package/dist/modules/auth/dto/otp.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/otp.dto.js +83 -0
- package/dist/modules/auth/dto/otp.dto.js.map +1 -0
- package/dist/modules/auth/dto/password.dto.d.ts +25 -0
- package/dist/modules/auth/dto/password.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/password.dto.js +122 -0
- package/dist/modules/auth/dto/password.dto.js.map +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts +19 -0
- package/dist/modules/auth/dto/register.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/register.dto.js +132 -0
- package/dist/modules/auth/dto/register.dto.js.map +1 -0
- package/dist/modules/auth/dto/token.dto.d.ts +15 -0
- package/dist/modules/auth/dto/token.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/token.dto.js +24 -0
- package/dist/modules/auth/dto/token.dto.js.map +1 -0
- package/dist/modules/auth/entities/index.d.ts +2 -0
- package/dist/modules/auth/entities/index.d.ts.map +1 -0
- package/dist/modules/auth/entities/index.js +18 -0
- package/dist/modules/auth/entities/index.js.map +1 -0
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts +9 -0
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts.map +1 -0
- package/dist/modules/auth/entities/password-reset-token.entity.js +40 -0
- package/dist/modules/auth/entities/password-reset-token.entity.js.map +1 -0
- package/dist/modules/auth/index.d.ts +5 -0
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/index.js +21 -0
- package/dist/modules/auth/index.js.map +1 -0
- package/dist/modules/auth/providers/index.d.ts +5 -0
- package/dist/modules/auth/providers/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/index.js +21 -0
- package/dist/modules/auth/providers/index.js.map +1 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.d.ts +37 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.d.ts.map +1 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.js +3 -0
- package/dist/modules/auth/providers/interfaces/auth-provider.interface.js.map +1 -0
- package/dist/modules/auth/providers/interfaces/index.d.ts +2 -0
- package/dist/modules/auth/providers/interfaces/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/interfaces/index.js +18 -0
- package/dist/modules/auth/providers/interfaces/index.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/index.d.ts +3 -0
- package/dist/modules/auth/providers/keycloak/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/index.js +19 -0
- package/dist/modules/auth/providers/keycloak/index.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.d.ts +3 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.js +80 -0
- package/dist/modules/auth/providers/keycloak/keycloak-auth-provider.module.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.d.ts +7 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.js +54 -0
- package/dist/modules/auth/providers/keycloak/keycloak-verify-email.strategy.js.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.d.ts +36 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.d.ts.map +1 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.js +188 -0
- package/dist/modules/auth/providers/keycloak/keycloak.auth-provider.js.map +1 -0
- package/dist/modules/auth/providers/native/index.d.ts +3 -0
- package/dist/modules/auth/providers/native/index.d.ts.map +1 -0
- package/dist/modules/auth/providers/native/index.js +19 -0
- package/dist/modules/auth/providers/native/index.js.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.d.ts +19 -0
- package/dist/modules/auth/providers/native/native.auth-provider.d.ts.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.js +159 -0
- package/dist/modules/auth/providers/native/native.auth-provider.js.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.d.ts +3 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.d.ts.map +1 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.js +24 -0
- package/dist/modules/auth/providers/native/native.auth-provider.module.js.map +1 -0
- package/dist/modules/auth/providers/provider.registry.d.ts +14 -0
- package/dist/modules/auth/providers/provider.registry.d.ts.map +1 -0
- package/dist/modules/auth/providers/provider.registry.js +49 -0
- package/dist/modules/auth/providers/provider.registry.js.map +1 -0
- package/dist/modules/auth/services/account.service.d.ts +40 -0
- package/dist/modules/auth/services/account.service.d.ts.map +1 -0
- package/dist/modules/auth/services/account.service.js +165 -0
- package/dist/modules/auth/services/account.service.js.map +1 -0
- package/dist/modules/auth/services/index.d.ts +6 -0
- package/dist/modules/auth/services/index.d.ts.map +1 -0
- package/dist/modules/auth/services/index.js +22 -0
- package/dist/modules/auth/services/index.js.map +1 -0
- package/dist/modules/auth/services/login.service.d.ts +28 -0
- package/dist/modules/auth/services/login.service.d.ts.map +1 -0
- package/dist/modules/auth/services/login.service.js +210 -0
- package/dist/modules/auth/services/login.service.js.map +1 -0
- package/dist/modules/auth/services/otp-auth.service.d.ts +16 -0
- package/dist/modules/auth/services/otp-auth.service.d.ts.map +1 -0
- package/dist/modules/auth/services/otp-auth.service.js +75 -0
- package/dist/modules/auth/services/otp-auth.service.js.map +1 -0
- package/dist/modules/auth/services/password.service.d.ts +39 -0
- package/dist/modules/auth/services/password.service.d.ts.map +1 -0
- package/dist/modules/auth/services/password.service.js +213 -0
- package/dist/modules/auth/services/password.service.js.map +1 -0
- package/dist/modules/auth/services/registration.service.d.ts +30 -0
- package/dist/modules/auth/services/registration.service.d.ts.map +1 -0
- package/dist/modules/auth/services/registration.service.js +217 -0
- package/dist/modules/auth/services/registration.service.js.map +1 -0
- package/dist/modules/notifications/controllers/index.d.ts +2 -0
- package/dist/modules/notifications/controllers/index.d.ts.map +1 -0
- package/dist/modules/notifications/controllers/index.js +18 -0
- package/dist/modules/notifications/controllers/index.js.map +1 -0
- package/dist/modules/notifications/controllers/notifications.controller.d.ts +38 -0
- package/dist/modules/notifications/controllers/notifications.controller.d.ts.map +1 -0
- package/dist/modules/notifications/controllers/notifications.controller.js +140 -0
- package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -0
- package/dist/modules/notifications/dto/device.dto.d.ts +10 -0
- package/dist/modules/notifications/dto/device.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/device.dto.js +38 -0
- package/dist/modules/notifications/dto/device.dto.js.map +1 -0
- package/dist/modules/notifications/dto/event-types.dto.d.ts +6 -0
- package/dist/modules/notifications/dto/event-types.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/event-types.dto.js +10 -0
- package/dist/modules/notifications/dto/event-types.dto.js.map +1 -0
- package/dist/modules/notifications/dto/fcm.dto.d.ts +14 -0
- package/dist/modules/notifications/dto/fcm.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/fcm.dto.js +3 -0
- package/dist/modules/notifications/dto/fcm.dto.js.map +1 -0
- package/dist/modules/notifications/dto/index.d.ts +6 -0
- package/dist/modules/notifications/dto/index.d.ts.map +1 -0
- package/dist/modules/notifications/dto/index.js +22 -0
- package/dist/modules/notifications/dto/index.js.map +1 -0
- package/dist/modules/notifications/dto/notification-query.dto.d.ts +8 -0
- package/dist/modules/notifications/dto/notification-query.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/notification-query.dto.js +44 -0
- package/dist/modules/notifications/dto/notification-query.dto.js.map +1 -0
- package/dist/modules/notifications/dto/user-device-token.dto.d.ts +9 -0
- package/dist/modules/notifications/dto/user-device-token.dto.d.ts.map +1 -0
- package/dist/modules/notifications/dto/user-device-token.dto.js +3 -0
- package/dist/modules/notifications/dto/user-device-token.dto.js.map +1 -0
- package/dist/modules/notifications/entities/device-token.entity.d.ts +17 -0
- package/dist/modules/notifications/entities/device-token.entity.d.ts.map +1 -0
- package/dist/modules/notifications/entities/device-token.entity.js +62 -0
- package/dist/modules/notifications/entities/device-token.entity.js.map +1 -0
- package/dist/modules/notifications/entities/index.d.ts +3 -0
- package/dist/modules/notifications/entities/index.d.ts.map +1 -0
- package/dist/modules/notifications/entities/index.js +19 -0
- package/dist/modules/notifications/entities/index.js.map +1 -0
- package/dist/modules/notifications/entities/notification.entity.d.ts +21 -0
- package/dist/modules/notifications/entities/notification.entity.d.ts.map +1 -0
- package/dist/modules/notifications/entities/notification.entity.js +70 -0
- package/dist/modules/notifications/entities/notification.entity.js.map +1 -0
- package/dist/modules/notifications/firebase.module.d.ts +3 -0
- package/dist/modules/notifications/firebase.module.d.ts.map +1 -0
- package/dist/modules/notifications/firebase.module.js +25 -0
- package/dist/modules/notifications/firebase.module.js.map +1 -0
- package/dist/modules/notifications/notifications.manifest.d.ts +9 -0
- package/dist/modules/notifications/notifications.manifest.d.ts.map +1 -0
- package/dist/modules/notifications/notifications.manifest.js +37 -0
- package/dist/modules/notifications/notifications.manifest.js.map +1 -0
- package/dist/modules/notifications/notifications.module.d.ts +3 -0
- package/dist/modules/notifications/notifications.module.d.ts.map +1 -0
- package/dist/modules/notifications/notifications.module.js +32 -0
- package/dist/modules/notifications/notifications.module.js.map +1 -0
- package/dist/modules/notifications/services/fcm.service.d.ts +17 -0
- package/dist/modules/notifications/services/fcm.service.d.ts.map +1 -0
- package/dist/modules/notifications/services/fcm.service.js +150 -0
- package/dist/modules/notifications/services/fcm.service.js.map +1 -0
- package/dist/modules/notifications/services/firebase.service.d.ts +19 -0
- package/dist/modules/notifications/services/firebase.service.d.ts.map +1 -0
- package/dist/modules/notifications/services/firebase.service.js +73 -0
- package/dist/modules/notifications/services/firebase.service.js.map +1 -0
- package/dist/modules/notifications/services/index.d.ts +4 -0
- package/dist/modules/notifications/services/index.d.ts.map +1 -0
- package/dist/modules/notifications/services/index.js +20 -0
- package/dist/modules/notifications/services/index.js.map +1 -0
- package/dist/modules/notifications/services/notifications.service.d.ts +19 -0
- package/dist/modules/notifications/services/notifications.service.d.ts.map +1 -0
- package/dist/modules/notifications/services/notifications.service.js +97 -0
- package/dist/modules/notifications/services/notifications.service.js.map +1 -0
- package/dist/modules/otp/constants/otp.constants.d.ts +4 -0
- package/dist/modules/otp/constants/otp.constants.d.ts.map +1 -0
- package/dist/modules/otp/constants/otp.constants.js +10 -0
- package/dist/modules/otp/constants/otp.constants.js.map +1 -0
- package/dist/modules/otp/email/email-provider.interface.d.ts +14 -0
- package/dist/modules/otp/email/email-provider.interface.d.ts.map +1 -0
- package/dist/modules/otp/email/email-provider.interface.js +15 -0
- package/dist/modules/otp/email/email-provider.interface.js.map +1 -0
- package/dist/modules/otp/email/email-proxy.service.d.ts +21 -0
- package/dist/modules/otp/email/email-proxy.service.d.ts.map +1 -0
- package/dist/modules/otp/email/email-proxy.service.js +67 -0
- package/dist/modules/otp/email/email-proxy.service.js.map +1 -0
- package/dist/modules/otp/email/email.module.d.ts +3 -0
- package/dist/modules/otp/email/email.module.d.ts.map +1 -0
- package/dist/modules/otp/email/email.module.js +33 -0
- package/dist/modules/otp/email/email.module.js.map +1 -0
- package/dist/modules/otp/email/index.d.ts +4 -0
- package/dist/modules/otp/email/index.d.ts.map +1 -0
- package/dist/modules/otp/email/index.js +20 -0
- package/dist/modules/otp/email/index.js.map +1 -0
- package/dist/modules/otp/email/providers/index.d.ts +5 -0
- package/dist/modules/otp/email/providers/index.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/index.js +21 -0
- package/dist/modules/otp/email/providers/index.js.map +1 -0
- package/dist/modules/otp/email/providers/mailgun.provider.d.ts +10 -0
- package/dist/modules/otp/email/providers/mailgun.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/mailgun.provider.js +59 -0
- package/dist/modules/otp/email/providers/mailgun.provider.js.map +1 -0
- package/dist/modules/otp/email/providers/resend.provider.d.ts +10 -0
- package/dist/modules/otp/email/providers/resend.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/resend.provider.js +57 -0
- package/dist/modules/otp/email/providers/resend.provider.js.map +1 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.d.ts +10 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.js +58 -0
- package/dist/modules/otp/email/providers/sendgrid.provider.js.map +1 -0
- package/dist/modules/otp/email/providers/smtp.provider.d.ts +15 -0
- package/dist/modules/otp/email/providers/smtp.provider.d.ts.map +1 -0
- package/dist/modules/otp/email/providers/smtp.provider.js +115 -0
- package/dist/modules/otp/email/providers/smtp.provider.js.map +1 -0
- package/dist/modules/otp/index.d.ts +5 -0
- package/dist/modules/otp/index.d.ts.map +1 -0
- package/dist/modules/otp/index.js +21 -0
- package/dist/modules/otp/index.js.map +1 -0
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts +26 -0
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts.map +1 -0
- package/dist/modules/otp/interfaces/otp.service.interface.js +7 -0
- package/dist/modules/otp/interfaces/otp.service.interface.js.map +1 -0
- package/dist/modules/otp/otp.module.d.ts +3 -0
- package/dist/modules/otp/otp.module.d.ts.map +1 -0
- package/dist/modules/otp/otp.module.js +36 -0
- package/dist/modules/otp/otp.module.js.map +1 -0
- package/dist/modules/otp/otp.service.d.ts +25 -0
- package/dist/modules/otp/otp.service.d.ts.map +1 -0
- package/dist/modules/otp/otp.service.js +146 -0
- package/dist/modules/otp/otp.service.js.map +1 -0
- package/dist/modules/otp/services/otp.rate-limiter.d.ts +13 -0
- package/dist/modules/otp/services/otp.rate-limiter.d.ts.map +1 -0
- package/dist/modules/otp/services/otp.rate-limiter.js +70 -0
- package/dist/modules/otp/services/otp.rate-limiter.js.map +1 -0
- package/dist/modules/otp/services/otp.session.store.d.ts +28 -0
- package/dist/modules/otp/services/otp.session.store.d.ts.map +1 -0
- package/dist/modules/otp/services/otp.session.store.js +226 -0
- package/dist/modules/otp/services/otp.session.store.js.map +1 -0
- package/dist/modules/otp/sms/index.d.ts +4 -0
- package/dist/modules/otp/sms/index.d.ts.map +1 -0
- package/dist/modules/otp/sms/index.js +20 -0
- package/dist/modules/otp/sms/index.js.map +1 -0
- package/dist/modules/otp/sms/providers/index.d.ts +5 -0
- package/dist/modules/otp/sms/providers/index.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/index.js +21 -0
- package/dist/modules/otp/sms/providers/index.js.map +1 -0
- package/dist/modules/otp/sms/providers/infobip.provider.d.ts +10 -0
- package/dist/modules/otp/sms/providers/infobip.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/infobip.provider.js +61 -0
- package/dist/modules/otp/sms/providers/infobip.provider.js.map +1 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.d.ts +11 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.js +56 -0
- package/dist/modules/otp/sms/providers/smart-sms.provider.js.map +1 -0
- package/dist/modules/otp/sms/providers/termii.provider.d.ts +11 -0
- package/dist/modules/otp/sms/providers/termii.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/termii.provider.js +56 -0
- package/dist/modules/otp/sms/providers/termii.provider.js.map +1 -0
- package/dist/modules/otp/sms/providers/twilio.provider.d.ts +10 -0
- package/dist/modules/otp/sms/providers/twilio.provider.d.ts.map +1 -0
- package/dist/modules/otp/sms/providers/twilio.provider.js +59 -0
- package/dist/modules/otp/sms/providers/twilio.provider.js.map +1 -0
- package/dist/modules/otp/sms/sms-provider.interface.d.ts +12 -0
- package/dist/modules/otp/sms/sms-provider.interface.d.ts.map +1 -0
- package/dist/modules/otp/sms/sms-provider.interface.js +15 -0
- package/dist/modules/otp/sms/sms-provider.interface.js.map +1 -0
- package/dist/modules/otp/sms/sms-proxy.service.d.ts +21 -0
- package/dist/modules/otp/sms/sms-proxy.service.d.ts.map +1 -0
- package/dist/modules/otp/sms/sms-proxy.service.js +67 -0
- package/dist/modules/otp/sms/sms-proxy.service.js.map +1 -0
- package/dist/modules/otp/sms/sms.module.d.ts +3 -0
- package/dist/modules/otp/sms/sms.module.d.ts.map +1 -0
- package/dist/modules/otp/sms/sms.module.js +33 -0
- package/dist/modules/otp/sms/sms.module.js.map +1 -0
- package/dist/modules/otp/utils/otp.utils.d.ts +13 -0
- package/dist/modules/otp/utils/otp.utils.d.ts.map +1 -0
- package/dist/modules/otp/utils/otp.utils.js +57 -0
- package/dist/modules/otp/utils/otp.utils.js.map +1 -0
- package/dist/modules/profile/controllers/profile.controller.d.ts +14 -0
- package/dist/modules/profile/controllers/profile.controller.d.ts.map +1 -0
- package/dist/modules/profile/controllers/profile.controller.js +81 -0
- package/dist/modules/profile/controllers/profile.controller.js.map +1 -0
- package/dist/modules/profile/dto/profile.dto.d.ts +11 -0
- package/dist/modules/profile/dto/profile.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/profile.dto.js +50 -0
- package/dist/modules/profile/dto/profile.dto.js.map +1 -0
- package/dist/modules/profile/index.d.ts +3 -0
- package/dist/modules/profile/index.d.ts.map +1 -0
- package/dist/modules/profile/index.js +19 -0
- package/dist/modules/profile/index.js.map +1 -0
- package/dist/modules/profile/profile.module.d.ts +3 -0
- package/dist/modules/profile/profile.module.d.ts.map +1 -0
- package/dist/modules/profile/profile.module.js +26 -0
- package/dist/modules/profile/profile.module.js.map +1 -0
- package/dist/modules/profile/services/profile.service.d.ts +16 -0
- package/dist/modules/profile/services/profile.service.d.ts.map +1 -0
- package/dist/modules/profile/services/profile.service.js +64 -0
- package/dist/modules/profile/services/profile.service.js.map +1 -0
- package/dist/modules/roles/controllers/index.d.ts +5 -0
- package/dist/modules/roles/controllers/index.d.ts.map +1 -0
- package/dist/modules/roles/controllers/index.js +12 -0
- package/dist/modules/roles/controllers/index.js.map +1 -0
- package/dist/modules/roles/controllers/modules.controller.d.ts +14 -0
- package/dist/modules/roles/controllers/modules.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/modules.controller.js +82 -0
- package/dist/modules/roles/controllers/modules.controller.js.map +1 -0
- package/dist/modules/roles/controllers/permissions.controller.d.ts +14 -0
- package/dist/modules/roles/controllers/permissions.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/permissions.controller.js +83 -0
- package/dist/modules/roles/controllers/permissions.controller.js.map +1 -0
- package/dist/modules/roles/controllers/roles.controller.d.ts +17 -0
- package/dist/modules/roles/controllers/roles.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/roles.controller.js +93 -0
- package/dist/modules/roles/controllers/roles.controller.js.map +1 -0
- package/dist/modules/roles/controllers/user-roles.controller.d.ts +11 -0
- package/dist/modules/roles/controllers/user-roles.controller.d.ts.map +1 -0
- package/dist/modules/roles/controllers/user-roles.controller.js +94 -0
- package/dist/modules/roles/controllers/user-roles.controller.js.map +1 -0
- package/dist/modules/roles/dto/index.d.ts +4 -0
- package/dist/modules/roles/dto/index.d.ts.map +1 -0
- package/dist/modules/roles/dto/index.js +20 -0
- package/dist/modules/roles/dto/index.js.map +1 -0
- package/dist/modules/roles/dto/module.dto.d.ts +10 -0
- package/dist/modules/roles/dto/module.dto.d.ts.map +1 -0
- package/dist/modules/roles/dto/module.dto.js +48 -0
- package/dist/modules/roles/dto/module.dto.js.map +1 -0
- package/dist/modules/roles/dto/permission.dto.d.ts +14 -0
- package/dist/modules/roles/dto/permission.dto.d.ts.map +1 -0
- package/dist/modules/roles/dto/permission.dto.js +60 -0
- package/dist/modules/roles/dto/permission.dto.js.map +1 -0
- package/dist/modules/roles/dto/role.dto.d.ts +15 -0
- package/dist/modules/roles/dto/role.dto.d.ts.map +1 -0
- package/dist/modules/roles/dto/role.dto.js +65 -0
- package/dist/modules/roles/dto/role.dto.js.map +1 -0
- package/dist/modules/roles/entities/index.d.ts +4 -0
- package/dist/modules/roles/entities/index.d.ts.map +1 -0
- package/dist/modules/roles/entities/index.js +10 -0
- package/dist/modules/roles/entities/index.js.map +1 -0
- package/dist/modules/roles/entities/module.entity.d.ts +9 -0
- package/dist/modules/roles/entities/module.entity.d.ts.map +1 -0
- package/dist/modules/roles/entities/module.entity.js +39 -0
- package/dist/modules/roles/entities/module.entity.js.map +1 -0
- package/dist/modules/roles/entities/permission.entity.d.ts +12 -0
- package/dist/modules/roles/entities/permission.entity.d.ts.map +1 -0
- package/dist/modules/roles/entities/permission.entity.js +49 -0
- package/dist/modules/roles/entities/permission.entity.js.map +1 -0
- package/dist/modules/roles/entities/role.entity.d.ts +11 -0
- package/dist/modules/roles/entities/role.entity.d.ts.map +1 -0
- package/dist/modules/roles/entities/role.entity.js +49 -0
- package/dist/modules/roles/entities/role.entity.js.map +1 -0
- package/dist/modules/roles/index.d.ts +7 -0
- package/dist/modules/roles/index.d.ts.map +1 -0
- package/dist/modules/roles/index.js +25 -0
- package/dist/modules/roles/index.js.map +1 -0
- package/dist/modules/roles/registry/discover-manifests.d.ts +3 -0
- package/dist/modules/roles/registry/discover-manifests.d.ts.map +1 -0
- package/dist/modules/roles/registry/discover-manifests.js +83 -0
- package/dist/modules/roles/registry/discover-manifests.js.map +1 -0
- package/dist/modules/roles/registry/index.d.ts +3 -0
- package/dist/modules/roles/registry/index.d.ts.map +1 -0
- package/dist/modules/roles/registry/index.js +8 -0
- package/dist/modules/roles/registry/index.js.map +1 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.d.ts +7 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.d.ts.map +1 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.js +52 -0
- package/dist/modules/roles/registry/sync-manifests-to-db.js.map +1 -0
- package/dist/modules/roles/roles.manifest.d.ts +12 -0
- package/dist/modules/roles/roles.manifest.d.ts.map +1 -0
- package/dist/modules/roles/roles.manifest.js +51 -0
- package/dist/modules/roles/roles.manifest.js.map +1 -0
- package/dist/modules/roles/roles.module.d.ts +8 -0
- package/dist/modules/roles/roles.module.d.ts.map +1 -0
- package/dist/modules/roles/roles.module.js +43 -0
- package/dist/modules/roles/roles.module.js.map +1 -0
- package/dist/modules/roles/services/index.d.ts +6 -0
- package/dist/modules/roles/services/index.d.ts.map +1 -0
- package/dist/modules/roles/services/index.js +14 -0
- package/dist/modules/roles/services/index.js.map +1 -0
- package/dist/modules/roles/services/manifest-sync.service.d.ts +11 -0
- package/dist/modules/roles/services/manifest-sync.service.d.ts.map +1 -0
- package/dist/modules/roles/services/manifest-sync.service.js +38 -0
- package/dist/modules/roles/services/manifest-sync.service.js.map +1 -0
- package/dist/modules/roles/services/modules.service.d.ts +14 -0
- package/dist/modules/roles/services/modules.service.d.ts.map +1 -0
- package/dist/modules/roles/services/modules.service.js +69 -0
- package/dist/modules/roles/services/modules.service.js.map +1 -0
- package/dist/modules/roles/services/permissions.service.d.ts +14 -0
- package/dist/modules/roles/services/permissions.service.d.ts.map +1 -0
- package/dist/modules/roles/services/permissions.service.js +72 -0
- package/dist/modules/roles/services/permissions.service.js.map +1 -0
- package/dist/modules/roles/services/roles.service.d.ts +17 -0
- package/dist/modules/roles/services/roles.service.d.ts.map +1 -0
- package/dist/modules/roles/services/roles.service.js +100 -0
- package/dist/modules/roles/services/roles.service.js.map +1 -0
- package/dist/modules/roles/services/user-roles.service.d.ts +15 -0
- package/dist/modules/roles/services/user-roles.service.d.ts.map +1 -0
- package/dist/modules/roles/services/user-roles.service.js +88 -0
- package/dist/modules/roles/services/user-roles.service.js.map +1 -0
- package/dist/modules/roles/types/manifest.types.d.ts +12 -0
- package/dist/modules/roles/types/manifest.types.d.ts.map +1 -0
- package/dist/modules/roles/types/manifest.types.js +3 -0
- package/dist/modules/roles/types/manifest.types.js.map +1 -0
- package/dist/modules/sessions/controllers/session.controller.d.ts +17 -0
- package/dist/modules/sessions/controllers/session.controller.d.ts.map +1 -0
- package/dist/modules/sessions/controllers/session.controller.js +95 -0
- package/dist/modules/sessions/controllers/session.controller.js.map +1 -0
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts +21 -0
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts.map +1 -0
- package/dist/modules/sessions/entities/refresh-token.entity.js +77 -0
- package/dist/modules/sessions/entities/refresh-token.entity.js.map +1 -0
- package/dist/modules/sessions/index.d.ts +4 -0
- package/dist/modules/sessions/index.d.ts.map +1 -0
- package/dist/modules/sessions/index.js +20 -0
- package/dist/modules/sessions/index.js.map +1 -0
- package/dist/modules/sessions/services/token.service.d.ts +42 -0
- package/dist/modules/sessions/services/token.service.d.ts.map +1 -0
- package/dist/modules/sessions/services/token.service.js +253 -0
- package/dist/modules/sessions/services/token.service.js.map +1 -0
- package/dist/modules/sessions/sessions.module.d.ts +3 -0
- package/dist/modules/sessions/sessions.module.d.ts.map +1 -0
- package/dist/modules/sessions/sessions.module.js +28 -0
- package/dist/modules/sessions/sessions.module.js.map +1 -0
- package/dist/modules/settings/constants/settings.defaults.d.ts +60 -0
- package/dist/modules/settings/constants/settings.defaults.d.ts.map +1 -0
- package/dist/modules/settings/constants/settings.defaults.js +78 -0
- package/dist/modules/settings/constants/settings.defaults.js.map +1 -0
- package/dist/modules/settings/constants/settings.keys.d.ts +56 -0
- package/dist/modules/settings/constants/settings.keys.d.ts.map +1 -0
- package/dist/modules/settings/constants/settings.keys.js +58 -0
- package/dist/modules/settings/constants/settings.keys.js.map +1 -0
- package/dist/modules/settings/controllers/settings.controller.d.ts +13 -0
- package/dist/modules/settings/controllers/settings.controller.d.ts.map +1 -0
- package/dist/modules/settings/controllers/settings.controller.js +91 -0
- package/dist/modules/settings/controllers/settings.controller.js.map +1 -0
- package/dist/modules/settings/dto/settings.dto.d.ts +4 -0
- package/dist/modules/settings/dto/settings.dto.d.ts.map +1 -0
- package/dist/modules/settings/dto/settings.dto.js +24 -0
- package/dist/modules/settings/dto/settings.dto.js.map +1 -0
- package/dist/modules/settings/entities/app-setting.entity.d.ts +13 -0
- package/dist/modules/settings/entities/app-setting.entity.d.ts.map +1 -0
- package/dist/modules/settings/entities/app-setting.entity.js +56 -0
- package/dist/modules/settings/entities/app-setting.entity.js.map +1 -0
- package/dist/modules/settings/index.d.ts +8 -0
- package/dist/modules/settings/index.d.ts.map +1 -0
- package/dist/modules/settings/index.js +24 -0
- package/dist/modules/settings/index.js.map +1 -0
- package/dist/modules/settings/services/settings.service.d.ts +23 -0
- package/dist/modules/settings/services/settings.service.d.ts.map +1 -0
- package/dist/modules/settings/services/settings.service.js +116 -0
- package/dist/modules/settings/services/settings.service.js.map +1 -0
- package/dist/modules/settings/settings.manifest.d.ts +7 -0
- package/dist/modules/settings/settings.manifest.d.ts.map +1 -0
- package/dist/modules/settings/settings.manifest.js +25 -0
- package/dist/modules/settings/settings.manifest.js.map +1 -0
- package/dist/modules/settings/settings.module.d.ts +3 -0
- package/dist/modules/settings/settings.module.d.ts.map +1 -0
- package/dist/modules/settings/settings.module.js +27 -0
- package/dist/modules/settings/settings.module.js.map +1 -0
- package/dist/modules/users/controllers/users.controller.d.ts +41 -0
- package/dist/modules/users/controllers/users.controller.d.ts.map +1 -0
- package/dist/modules/users/controllers/users.controller.js +273 -0
- package/dist/modules/users/controllers/users.controller.js.map +1 -0
- package/dist/modules/users/dto/user.dto.d.ts +52 -0
- package/dist/modules/users/dto/user.dto.d.ts.map +1 -0
- package/dist/modules/users/dto/user.dto.js +139 -0
- package/dist/modules/users/dto/user.dto.js.map +1 -0
- package/dist/modules/users/entities/user.entity.d.ts +33 -0
- package/dist/modules/users/entities/user.entity.d.ts.map +1 -0
- package/dist/modules/users/entities/user.entity.js +130 -0
- package/dist/modules/users/entities/user.entity.js.map +1 -0
- package/dist/modules/users/index.d.ts +7 -0
- package/dist/modules/users/index.d.ts.map +1 -0
- package/dist/modules/users/index.js +23 -0
- package/dist/modules/users/index.js.map +1 -0
- package/dist/modules/users/services/invite.service.d.ts +35 -0
- package/dist/modules/users/services/invite.service.d.ts.map +1 -0
- package/dist/modules/users/services/invite.service.js +236 -0
- package/dist/modules/users/services/invite.service.js.map +1 -0
- package/dist/modules/users/services/users.service.d.ts +40 -0
- package/dist/modules/users/services/users.service.d.ts.map +1 -0
- package/dist/modules/users/services/users.service.js +239 -0
- package/dist/modules/users/services/users.service.js.map +1 -0
- package/dist/modules/users/users.manifest.d.ts +12 -0
- package/dist/modules/users/users.manifest.d.ts.map +1 -0
- package/dist/modules/users/users.manifest.js +43 -0
- package/dist/modules/users/users.manifest.js.map +1 -0
- package/dist/modules/users/users.module.d.ts +3 -0
- package/dist/modules/users/users.module.d.ts.map +1 -0
- package/dist/modules/users/users.module.js +36 -0
- package/dist/modules/users/users.module.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +140 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RefreshToken = exports.RevokeReason = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../../common/base/base.entity");
|
|
15
|
+
const user_entity_1 = require("../../users/entities/user.entity");
|
|
16
|
+
var RevokeReason;
|
|
17
|
+
(function (RevokeReason) {
|
|
18
|
+
RevokeReason["ROTATED"] = "rotated";
|
|
19
|
+
RevokeReason["LOGOUT"] = "logout";
|
|
20
|
+
RevokeReason["REUSE_DETECTED"] = "reuse_detected";
|
|
21
|
+
RevokeReason["ADMIN"] = "admin";
|
|
22
|
+
})(RevokeReason || (exports.RevokeReason = RevokeReason = {}));
|
|
23
|
+
let RefreshToken = class RefreshToken extends base_entity_1.BaseEntity {
|
|
24
|
+
};
|
|
25
|
+
exports.RefreshToken = RefreshToken;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Index)(),
|
|
28
|
+
(0, typeorm_1.Column)({ name: 'user_id' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], RefreshToken.prototype, "userId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'token_hash' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], RefreshToken.prototype, "tokenHash", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Index)(),
|
|
37
|
+
(0, typeorm_1.Column)({ name: 'family_id' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], RefreshToken.prototype, "familyId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'provider_refresh_token', nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], RefreshToken.prototype, "providerRefreshToken", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'device_info', nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], RefreshToken.prototype, "deviceInfo", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'ip_address', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], RefreshToken.prototype, "ipAddress", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ name: 'expires_at', type: 'timestamptz' }),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], RefreshToken.prototype, "expiresAt", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ name: 'is_revoked', default: false }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], RefreshToken.prototype, "isRevoked", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({
|
|
62
|
+
name: 'revoke_reason',
|
|
63
|
+
type: 'enum',
|
|
64
|
+
enum: RevokeReason,
|
|
65
|
+
nullable: true,
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], RefreshToken.prototype, "revokeReason", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
|
|
71
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
72
|
+
__metadata("design:type", user_entity_1.User)
|
|
73
|
+
], RefreshToken.prototype, "user", void 0);
|
|
74
|
+
exports.RefreshToken = RefreshToken = __decorate([
|
|
75
|
+
(0, typeorm_1.Entity)('refresh_tokens')
|
|
76
|
+
], RefreshToken);
|
|
77
|
+
//# sourceMappingURL=refresh-token.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../../../modules/sessions/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,kEAA8D;AAC9D,kEAAwD;AAExD,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iDAAiC,CAAA;IACjC,+BAAe,CAAA;AAChB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;CA2C3C,CAAA;AA3CY,oCAAY;AAGxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CACZ;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;+CACZ;AASnB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;8CACZ;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC7B;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC5B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACxC,IAAI;+CAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CAC3B;AAQpB;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,IAAI;KACd,CAAC;;kDAC0B;AAI5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,kBAAI;0CAAC;uBA1CA,YAAY;IADxB,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,YAAY,CA2CxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../modules/sessions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities/refresh-token.entity"), exports);
|
|
18
|
+
__exportStar(require("./services/token.service"), exports);
|
|
19
|
+
__exportStar(require("./sessions.module"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../modules/sessions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,2DAAyC;AACzC,oDAAkC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { JwtService } from '@nestjs/jwt';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import IORedis from 'ioredis';
|
|
4
|
+
import { RefreshToken, RevokeReason } from '../entities/refresh-token.entity';
|
|
5
|
+
import { TokenResponse } from '../../auth/dto/token.dto';
|
|
6
|
+
import { UserRolesService } from '../../roles/services/user-roles.service';
|
|
7
|
+
import { User } from '../../users/entities/user.entity';
|
|
8
|
+
import { SettingsService } from '../../settings/services/settings.service';
|
|
9
|
+
export declare class TokenService {
|
|
10
|
+
private readonly jwtService;
|
|
11
|
+
private readonly userRolesService;
|
|
12
|
+
private readonly refreshTokenRepository;
|
|
13
|
+
private readonly redis;
|
|
14
|
+
private readonly settingsService;
|
|
15
|
+
private readonly logger;
|
|
16
|
+
constructor(jwtService: JwtService, userRolesService: UserRolesService, refreshTokenRepository: Repository<RefreshToken>, redis: IORedis | null, settingsService: SettingsService);
|
|
17
|
+
createTemporaryToken(userId: string): Promise<string>;
|
|
18
|
+
verifyTemporaryToken(token: string): Promise<string>;
|
|
19
|
+
createPhoneVerifiedToken(phoneNumber: string): Promise<string>;
|
|
20
|
+
verifyPhoneVerifiedToken(token: string): Promise<string>;
|
|
21
|
+
createEmailVerifiedToken(email: string): Promise<string>;
|
|
22
|
+
verifyEmailVerifiedToken(token: string): Promise<string>;
|
|
23
|
+
generateTokens({ user, familyId, deviceInfo, ipAddress, providerRefreshToken, }: {
|
|
24
|
+
user: User;
|
|
25
|
+
familyId?: string;
|
|
26
|
+
deviceInfo?: string;
|
|
27
|
+
ipAddress?: string;
|
|
28
|
+
providerRefreshToken?: string;
|
|
29
|
+
}): Promise<TokenResponse>;
|
|
30
|
+
rotateRefreshToken(rawRefreshToken: string, deviceInfo?: string, ipAddress?: string): Promise<TokenResponse>;
|
|
31
|
+
generateTokensForUserId(userId: string, familyId: string, providerRefreshToken?: string, deviceInfo?: string, ipAddress?: string): Promise<TokenResponse>;
|
|
32
|
+
private get accessTokenExpiresInMs();
|
|
33
|
+
revokeRefreshToken(tokenId: string, reason?: RevokeReason): Promise<void>;
|
|
34
|
+
revokeAllUserTokens(userId: string, reason?: RevokeReason): Promise<void>;
|
|
35
|
+
getUserActiveSessions(userId: string): Promise<RefreshToken[]>;
|
|
36
|
+
getRefreshTokenById(tokenId: string): Promise<RefreshToken | null>;
|
|
37
|
+
private saveRefreshToken;
|
|
38
|
+
private markRevoked;
|
|
39
|
+
private revokeFamilyTokens;
|
|
40
|
+
private assertRedis;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=token.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.service.d.ts","sourceRoot":"","sources":["../../../../modules/sessions/services/token.service.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAc,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EA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,EAAE,MAAM,CAAC;KAC9B,GAAG,OAAO,CAAC,aAAa,CAAC;IAmCpB,kBAAkB,CACvB,eAAe,EAAE,MAAM,EACvB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC;IA+CnB,uBAAuB,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,oBAAoB,CAAC,EAAE,MAAM,EAC7B,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC;IAkCzB,OAAO,KAAK,sBAAsB,GAMjC;IAEK,kBAAkB,CACvB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,YAAkC,GACxC,OAAO,CAAC,IAAI,CAAC;IAOV,mBAAmB,CACxB,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,YAAkC,GACxC,OAAO,CAAC,IAAI,CAAC;IASV,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAO9D,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;YAM1D,gBAAgB;YAyBhB,WAAW;YAIX,kBAAkB;IAOhC,OAAO,CAAC,WAAW;CAOnB"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
45
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
var TokenService_1;
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
exports.TokenService = void 0;
|
|
53
|
+
const common_1 = require("@nestjs/common");
|
|
54
|
+
const jwt_1 = require("@nestjs/jwt");
|
|
55
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
56
|
+
const typeorm_2 = require("typeorm");
|
|
57
|
+
const crypto_1 = require("crypto");
|
|
58
|
+
const argon2 = __importStar(require("argon2"));
|
|
59
|
+
const ms_1 = __importDefault(require("ms"));
|
|
60
|
+
const refresh_token_entity_1 = require("../entities/refresh-token.entity");
|
|
61
|
+
const user_roles_service_1 = require("../../roles/services/user-roles.service");
|
|
62
|
+
const redis_module_1 = require("../../../config/redis.module");
|
|
63
|
+
const settings_service_1 = require("../../settings/services/settings.service");
|
|
64
|
+
const settings_keys_1 = require("../../settings/constants/settings.keys");
|
|
65
|
+
const KEY_TMP_LOGIN = 'tmp:login:';
|
|
66
|
+
const KEY_TMP_PHONE = 'tmp:phone_verified:';
|
|
67
|
+
const KEY_TMP_EMAIL = 'tmp:email_verified:';
|
|
68
|
+
let TokenService = TokenService_1 = class TokenService {
|
|
69
|
+
constructor(jwtService, userRolesService, refreshTokenRepository, redis, settingsService) {
|
|
70
|
+
this.jwtService = jwtService;
|
|
71
|
+
this.userRolesService = userRolesService;
|
|
72
|
+
this.refreshTokenRepository = refreshTokenRepository;
|
|
73
|
+
this.redis = redis;
|
|
74
|
+
this.settingsService = settingsService;
|
|
75
|
+
this.logger = new common_1.Logger(TokenService_1.name);
|
|
76
|
+
}
|
|
77
|
+
async createTemporaryToken(userId) {
|
|
78
|
+
this.assertRedis('createTemporaryToken');
|
|
79
|
+
const ttl = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_TEMPORARY_TTL_SECONDS);
|
|
80
|
+
const token = (0, crypto_1.randomUUID)();
|
|
81
|
+
const result = await this.redis.set(`${KEY_TMP_LOGIN}${token}`, userId, 'EX', ttl, 'NX');
|
|
82
|
+
if (result !== 'OK') {
|
|
83
|
+
throw new common_1.ServiceUnavailableException('Failed to store temporary token in Redis');
|
|
84
|
+
}
|
|
85
|
+
return token;
|
|
86
|
+
}
|
|
87
|
+
async verifyTemporaryToken(token) {
|
|
88
|
+
this.assertRedis('verifyTemporaryToken');
|
|
89
|
+
const userId = await this.redis.getdel(`${KEY_TMP_LOGIN}${token}`);
|
|
90
|
+
if (!userId) {
|
|
91
|
+
throw new common_1.UnauthorizedException('Invalid or expired temporary token');
|
|
92
|
+
}
|
|
93
|
+
return userId;
|
|
94
|
+
}
|
|
95
|
+
async createPhoneVerifiedToken(phoneNumber) {
|
|
96
|
+
this.assertRedis('createPhoneVerifiedToken');
|
|
97
|
+
const ttl = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_TEMPORARY_TTL_SECONDS);
|
|
98
|
+
const token = (0, crypto_1.randomUUID)();
|
|
99
|
+
const result = await this.redis.set(`${KEY_TMP_PHONE}${token}`, phoneNumber, 'EX', ttl, 'NX');
|
|
100
|
+
if (result !== 'OK') {
|
|
101
|
+
throw new common_1.ServiceUnavailableException('Failed to store phone-verified token in Redis');
|
|
102
|
+
}
|
|
103
|
+
return token;
|
|
104
|
+
}
|
|
105
|
+
async verifyPhoneVerifiedToken(token) {
|
|
106
|
+
this.assertRedis('verifyPhoneVerifiedToken');
|
|
107
|
+
const phoneNumber = await this.redis.getdel(`${KEY_TMP_PHONE}${token}`);
|
|
108
|
+
if (!phoneNumber) {
|
|
109
|
+
throw new common_1.UnauthorizedException('Invalid or expired phone-verified token');
|
|
110
|
+
}
|
|
111
|
+
return phoneNumber;
|
|
112
|
+
}
|
|
113
|
+
async createEmailVerifiedToken(email) {
|
|
114
|
+
this.assertRedis('createEmailVerifiedToken');
|
|
115
|
+
const ttl = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_TEMPORARY_TTL_SECONDS);
|
|
116
|
+
const token = (0, crypto_1.randomUUID)();
|
|
117
|
+
const result = await this.redis.set(`${KEY_TMP_EMAIL}${token}`, email, 'EX', ttl, 'NX');
|
|
118
|
+
if (result !== 'OK') {
|
|
119
|
+
throw new common_1.ServiceUnavailableException('Failed to store email-verified token in Redis');
|
|
120
|
+
}
|
|
121
|
+
return token;
|
|
122
|
+
}
|
|
123
|
+
async verifyEmailVerifiedToken(token) {
|
|
124
|
+
this.assertRedis('verifyEmailVerifiedToken');
|
|
125
|
+
const email = await this.redis.getdel(`${KEY_TMP_EMAIL}${token}`);
|
|
126
|
+
if (!email) {
|
|
127
|
+
throw new common_1.UnauthorizedException('Invalid or expired email-verified token');
|
|
128
|
+
}
|
|
129
|
+
return email;
|
|
130
|
+
}
|
|
131
|
+
async generateTokens({ user, familyId, deviceInfo, ipAddress, providerRefreshToken, }) {
|
|
132
|
+
const permissions = await this.userRolesService.getUserPermissionSlugs(user.id);
|
|
133
|
+
const payload = {
|
|
134
|
+
sub: user.id,
|
|
135
|
+
permissions,
|
|
136
|
+
};
|
|
137
|
+
const accessToken = await this.jwtService.signAsync(payload, {
|
|
138
|
+
expiresIn: this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_ACCESS_EXPIRES_IN),
|
|
139
|
+
});
|
|
140
|
+
const resolvedFamilyId = familyId ?? (0, crypto_1.randomUUID)();
|
|
141
|
+
const secret = (0, crypto_1.randomUUID)();
|
|
142
|
+
const tokenHash = await argon2.hash(secret);
|
|
143
|
+
const savedToken = await this.saveRefreshToken(user.id, tokenHash, resolvedFamilyId, providerRefreshToken, deviceInfo, ipAddress);
|
|
144
|
+
return {
|
|
145
|
+
accessToken,
|
|
146
|
+
refreshToken: `${savedToken.id}.${secret}`,
|
|
147
|
+
expiresIn: this.accessTokenExpiresInMs,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
async rotateRefreshToken(rawRefreshToken, deviceInfo, ipAddress) {
|
|
151
|
+
const parts = rawRefreshToken.split('.');
|
|
152
|
+
if (parts.length !== 2) {
|
|
153
|
+
throw new common_1.UnauthorizedException('Invalid refresh token format');
|
|
154
|
+
}
|
|
155
|
+
const [tokenId, secret] = parts;
|
|
156
|
+
const record = await this.refreshTokenRepository.findOne({ where: { id: tokenId } });
|
|
157
|
+
if (!record) {
|
|
158
|
+
throw new common_1.UnauthorizedException('Invalid refresh token');
|
|
159
|
+
}
|
|
160
|
+
const isValid = await argon2.verify(record.tokenHash, secret);
|
|
161
|
+
if (!isValid) {
|
|
162
|
+
throw new common_1.UnauthorizedException('Invalid refresh token');
|
|
163
|
+
}
|
|
164
|
+
if (record.isRevoked) {
|
|
165
|
+
this.logger.warn(`Refresh token reuse detected for user ${record.userId}, family ${record.familyId}. Revoking all family tokens.`);
|
|
166
|
+
await this.revokeFamilyTokens(record.familyId, refresh_token_entity_1.RevokeReason.REUSE_DETECTED);
|
|
167
|
+
throw new common_1.UnauthorizedException('Session invalidated due to suspicious activity. Please log in again.');
|
|
168
|
+
}
|
|
169
|
+
if (new Date() > record.expiresAt) {
|
|
170
|
+
await this.markRevoked(record.id, refresh_token_entity_1.RevokeReason.ROTATED);
|
|
171
|
+
throw new common_1.UnauthorizedException('Refresh token expired');
|
|
172
|
+
}
|
|
173
|
+
await this.markRevoked(record.id, refresh_token_entity_1.RevokeReason.ROTATED);
|
|
174
|
+
return this.generateTokensForUserId(record.userId, record.familyId, deviceInfo, ipAddress);
|
|
175
|
+
}
|
|
176
|
+
async generateTokensForUserId(userId, familyId, providerRefreshToken, deviceInfo, ipAddress) {
|
|
177
|
+
const permissions = await this.userRolesService.getUserPermissionSlugs(userId);
|
|
178
|
+
const payload = {
|
|
179
|
+
sub: userId,
|
|
180
|
+
permissions,
|
|
181
|
+
};
|
|
182
|
+
const accessToken = await this.jwtService.signAsync(payload, {
|
|
183
|
+
expiresIn: this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_ACCESS_EXPIRES_IN),
|
|
184
|
+
});
|
|
185
|
+
const secret = (0, crypto_1.randomUUID)();
|
|
186
|
+
const tokenHash = await argon2.hash(secret);
|
|
187
|
+
const savedToken = await this.saveRefreshToken(userId, tokenHash, familyId, providerRefreshToken, deviceInfo, ipAddress);
|
|
188
|
+
return {
|
|
189
|
+
accessToken,
|
|
190
|
+
refreshToken: `${savedToken.id}.${secret}`,
|
|
191
|
+
expiresIn: this.accessTokenExpiresInMs,
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
get accessTokenExpiresInMs() {
|
|
195
|
+
return (0, ms_1.default)(this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_ACCESS_EXPIRES_IN));
|
|
196
|
+
}
|
|
197
|
+
async revokeRefreshToken(tokenId, reason = refresh_token_entity_1.RevokeReason.LOGOUT) {
|
|
198
|
+
const token = await this.refreshTokenRepository.findOne({ where: { id: tokenId } });
|
|
199
|
+
if (!token)
|
|
200
|
+
throw new common_1.NotFoundException('Token not found');
|
|
201
|
+
if (token.isRevoked)
|
|
202
|
+
throw new common_1.ForbiddenException('Token already revoked');
|
|
203
|
+
await this.markRevoked(token.id, reason);
|
|
204
|
+
}
|
|
205
|
+
async revokeAllUserTokens(userId, reason = refresh_token_entity_1.RevokeReason.LOGOUT) {
|
|
206
|
+
await this.refreshTokenRepository.update({ userId, isRevoked: false }, { isRevoked: true, revokeReason: reason });
|
|
207
|
+
}
|
|
208
|
+
async getUserActiveSessions(userId) {
|
|
209
|
+
return this.refreshTokenRepository.find({
|
|
210
|
+
where: { userId, isRevoked: false },
|
|
211
|
+
order: { createdAt: 'DESC' },
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
async getRefreshTokenById(tokenId) {
|
|
215
|
+
return this.refreshTokenRepository.findOne({ where: { id: tokenId } });
|
|
216
|
+
}
|
|
217
|
+
async saveRefreshToken(userId, tokenHash, familyId, providerRefreshToken, deviceInfo, ipAddress) {
|
|
218
|
+
const ttlDays = this.settingsService.get(settings_keys_1.SETTING_KEYS.TOKENS_REFRESH_TTL_DAYS);
|
|
219
|
+
const expiresAt = new Date();
|
|
220
|
+
expiresAt.setDate(expiresAt.getDate() + ttlDays);
|
|
221
|
+
return this.refreshTokenRepository.save(this.refreshTokenRepository.create({
|
|
222
|
+
userId,
|
|
223
|
+
tokenHash,
|
|
224
|
+
familyId,
|
|
225
|
+
providerRefreshToken,
|
|
226
|
+
deviceInfo,
|
|
227
|
+
ipAddress,
|
|
228
|
+
expiresAt,
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
async markRevoked(id, reason) {
|
|
232
|
+
await this.refreshTokenRepository.update(id, { isRevoked: true, revokeReason: reason });
|
|
233
|
+
}
|
|
234
|
+
async revokeFamilyTokens(familyId, reason) {
|
|
235
|
+
await this.refreshTokenRepository.update({ familyId, isRevoked: false }, { isRevoked: true, revokeReason: reason });
|
|
236
|
+
}
|
|
237
|
+
assertRedis(method) {
|
|
238
|
+
if (!this.redis) {
|
|
239
|
+
throw new common_1.ServiceUnavailableException(`TokenService.${method} requires Redis. Set REDIS_ENABLED=true in your environment.`);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
exports.TokenService = TokenService;
|
|
244
|
+
exports.TokenService = TokenService = TokenService_1 = __decorate([
|
|
245
|
+
(0, common_1.Injectable)(),
|
|
246
|
+
__param(2, (0, typeorm_1.InjectRepository)(refresh_token_entity_1.RefreshToken)),
|
|
247
|
+
__param(3, (0, common_1.Optional)()),
|
|
248
|
+
__param(3, (0, common_1.Inject)(redis_module_1.REDIS_CLIENT)),
|
|
249
|
+
__metadata("design:paramtypes", [jwt_1.JwtService,
|
|
250
|
+
user_roles_service_1.UserRolesService,
|
|
251
|
+
typeorm_2.Repository, Object, settings_service_1.SettingsService])
|
|
252
|
+
], TokenService);
|
|
253
|
+
//# sourceMappingURL=token.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.service.js","sourceRoot":"","sources":["../../../../modules/sessions/services/token.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,qCAAyC;AACzC,6CAAmD;AACnD,qCAAqC;AACrC,mCAAoC;AACpC,+CAAiC;AACjC,4CAAoB;AAEpB,2EAA8E;AAE9E,gFAA2E;AAE3E,+DAA4D;AAC5D,+EAA2E;AAC3E,0EAAsE;AAatE,MAAM,aAAa,GAAG,YAAY,CAAC;AACnC,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAC5C,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAGrC,IAAM,YAAY,oBAAlB,MAAM,YAAY;IAGxB,YACkB,UAAsB,EACtB,gBAAkC,EAEnD,sBAAiE,EAGjE,KAAsC,EACrB,eAAgC;QAPhC,eAAU,GAAV,UAAU,CAAY;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,2BAAsB,GAAtB,sBAAsB,CAA0B;QAGhD,UAAK,GAAL,KAAK,CAAgB;QACrB,oBAAe,GAAf,eAAe,CAAiB;QAVjC,WAAM,GAAG,IAAI,eAAM,CAAC,cAAY,CAAC,IAAI,CAAC,CAAC;IAWrD,CAAC;IASJ,KAAK,CAAC,oBAAoB,CAAC,MAAc;QACxC,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;QACzC,MAAM,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAS,4BAAY,CAAC,4BAA4B,CAAC,CAAC;QACxF,MAAM,KAAK,GAAG,IAAA,mBAAU,GAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAM,CAAC,GAAG,CACnC,GAAG,aAAa,GAAG,KAAK,EAAE,EAC1B,MAAM,EACN,IAAI,EACJ,GAAG,EACH,IAAI,CACJ,CAAC;QACF,IAA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Y,EAAE,MAAM,EAAE,CAAC,CAAC;IACzF,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,QAAgB,EAAE,MAAoB;QACtE,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CACvC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAC9B,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,CACzC,CAAC;IACH,CAAC;IAEO,WAAW,CAAC,MAAc;QACjC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACjB,MAAM,IAAI,oCAA2B,CACpC,gBAAgB,MAAM,8DAA8D,CACpF,CAAC;QACH,CAAC;IACF,CAAC;CACD,CAAA;AArVY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAOV,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,iBAAQ,GAAE,CAAA;IACV,WAAA,IAAA,eAAM,EAAC,2BAAY,CAAC,CAAA;qCALQ,gBAAU;QACJ,qCAAgB;QAEV,oBAAU,UAIjB,kCAAe;GAXtC,YAAY,CAqVxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.module.d.ts","sourceRoot":"","sources":["../../../modules/sessions/sessions.module.ts"],"names":[],"mappings":"AAQA,qBAMa,cAAc;CAAG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SessionsModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
+
const token_service_1 = require("./services/token.service");
|
|
13
|
+
const session_controller_1 = require("./controllers/session.controller");
|
|
14
|
+
const refresh_token_entity_1 = require("./entities/refresh-token.entity");
|
|
15
|
+
const roles_module_1 = require("../roles/roles.module");
|
|
16
|
+
const auth_core_module_1 = require("../auth/auth-core/auth-core.module");
|
|
17
|
+
let SessionsModule = class SessionsModule {
|
|
18
|
+
};
|
|
19
|
+
exports.SessionsModule = SessionsModule;
|
|
20
|
+
exports.SessionsModule = SessionsModule = __decorate([
|
|
21
|
+
(0, common_1.Module)({
|
|
22
|
+
imports: [typeorm_1.TypeOrmModule.forFeature([refresh_token_entity_1.RefreshToken]), roles_module_1.RolesModule, auth_core_module_1.AuthCoreModule],
|
|
23
|
+
controllers: [session_controller_1.SessionController],
|
|
24
|
+
providers: [token_service_1.TokenService],
|
|
25
|
+
exports: [token_service_1.TokenService],
|
|
26
|
+
})
|
|
27
|
+
], SessionsModule);
|
|
28
|
+
//# sourceMappingURL=sessions.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.module.js","sourceRoot":"","sources":["../../../modules/sessions/sessions.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,4DAAwD;AACxD,yEAAqE;AACrE,0EAA+D;AAC/D,wDAAoD;AACpD,yEAAoE;AAQ7D,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAN1B,IAAA,eAAM,EAAC;QACP,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,mCAAY,CAAC,CAAC,EAAE,0BAAW,EAAE,iCAAc,CAAC;QAChF,WAAW,EAAE,CAAC,sCAAiB,CAAC;QAChC,SAAS,EAAE,CAAC,4BAAY,CAAC;QACzB,OAAO,EAAE,CAAC,4BAAY,CAAC;KACvB,CAAC;GACW,cAAc,CAAG"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface TestOtpIdentifier {
|
|
2
|
+
identifier: string;
|
|
3
|
+
channel: 'sms' | 'email';
|
|
4
|
+
code: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SETTING_DEFAULTS: {
|
|
7
|
+
readonly 'otp.ttl_seconds': 300;
|
|
8
|
+
readonly 'otp.max_attempts': 5;
|
|
9
|
+
readonly 'otp.resend_cooldown_seconds': 60;
|
|
10
|
+
readonly 'otp.rate_limit_max': 3;
|
|
11
|
+
readonly 'otp.rate_limit_window_seconds': 600;
|
|
12
|
+
readonly 'otp.ip_rate_limit_max': 20;
|
|
13
|
+
readonly 'otp.ip_rate_limit_window_seconds': 600;
|
|
14
|
+
readonly 'otp.sms_template': "Your verification code is: {code}. Do not share this code with anyone.";
|
|
15
|
+
readonly 'otp.email_subject': "Your verification code";
|
|
16
|
+
readonly 'otp.email_html_template': "<!DOCTYPE html>\n<html lang=\"en\">\n<head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"></head>\n<body style=\"margin:0;padding:0;background:#f4f4f5;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif\">\n <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"padding:40px 0\">\n <tr><td align=\"center\">\n <table width=\"480\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#ffffff;border-radius:8px;padding:40px;box-shadow:0 1px 3px rgba(0,0,0,0.1)\">\n <tr><td>\n <h2 style=\"margin:0 0 8px;font-size:20px;color:#111827\">Verification code</h2>\n <p style=\"margin:0 0 24px;font-size:14px;color:#6b7280\">Use the code below to verify your identity. It expires in <strong>5 minutes</strong>.</p>\n <div style=\"background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:20px;text-align:center;letter-spacing:8px;font-size:32px;font-weight:700;color:#111827;font-family:monospace\">\n {code}\n </div>\n <p style=\"margin:24px 0 0;font-size:12px;color:#9ca3af\">If you did not request this code, you can safely ignore this email.</p>\n </td></tr>\n </table>\n </td></tr>\n </table>\n</body>\n</html>";
|
|
17
|
+
readonly 'otp.email_text_template': "Your verification code is: {code}\n\nThis code expires in 5 minutes. Do not share it with anyone.";
|
|
18
|
+
readonly 'tokens.refresh_ttl_days': 7;
|
|
19
|
+
readonly 'tokens.temporary_ttl_seconds': 300;
|
|
20
|
+
readonly 'tokens.access_expires_in': "15m";
|
|
21
|
+
readonly 'tokens.invite_ttl_days': 7;
|
|
22
|
+
readonly 'tokens.password_reset_ttl_seconds': 1800;
|
|
23
|
+
readonly 'test.otp_identifiers': TestOtpIdentifier[];
|
|
24
|
+
readonly 'auth.provider': "native";
|
|
25
|
+
readonly 'auth.method': "email";
|
|
26
|
+
readonly 'auth.default_role_slug': "user";
|
|
27
|
+
readonly 'login.ip_rate_limit_max': 10;
|
|
28
|
+
readonly 'login.ip_rate_limit_window_seconds': 900;
|
|
29
|
+
readonly 'login.lockout_max_attempts': 10;
|
|
30
|
+
readonly 'login.lockout_duration_seconds': 900;
|
|
31
|
+
readonly 'health.max_heap_mb': 300;
|
|
32
|
+
readonly 'health.max_rss_mb': 500;
|
|
33
|
+
readonly 'health.queue_depth_threshold': 500;
|
|
34
|
+
readonly 'sms.active_provider': "twilio";
|
|
35
|
+
readonly 'sms.twilio_from_number': "";
|
|
36
|
+
readonly 'sms.twilio_account_sid': "";
|
|
37
|
+
readonly 'sms.twilio_auth_token': "";
|
|
38
|
+
readonly 'sms.termii_api_key': "";
|
|
39
|
+
readonly 'sms.termii_sender_id': "";
|
|
40
|
+
readonly 'sms.infobip_api_key': "";
|
|
41
|
+
readonly 'sms.infobip_sender_id': "";
|
|
42
|
+
readonly 'sms.infobip_base_url': "";
|
|
43
|
+
readonly 'sms.smartsms_token': "";
|
|
44
|
+
readonly 'sms.smartsms_sender_id': "";
|
|
45
|
+
readonly 'email.active_provider': "resend";
|
|
46
|
+
readonly 'email.from_address': "";
|
|
47
|
+
readonly 'email.resend_api_key': "";
|
|
48
|
+
readonly 'email.sendgrid_api_key': "";
|
|
49
|
+
readonly 'email.mailgun_api_key': "";
|
|
50
|
+
readonly 'email.mailgun_domain': "";
|
|
51
|
+
readonly 'email.smtp_host': "";
|
|
52
|
+
readonly 'email.smtp_port': 587;
|
|
53
|
+
readonly 'email.smtp_user': "";
|
|
54
|
+
readonly 'email.smtp_pass': "";
|
|
55
|
+
readonly 'firebase.project_id': "";
|
|
56
|
+
readonly 'firebase.client_email': "";
|
|
57
|
+
readonly 'firebase.private_key': "";
|
|
58
|
+
readonly 'firebase.api_key': "";
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=settings.defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.defaults.d.ts","sourceRoot":"","sources":["../../../../modules/settings/constants/settings.defaults.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,GAAG,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;CACb;AA8BD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;qCAyBE,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDN,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SETTING_DEFAULTS = void 0;
|
|
4
|
+
const OTP_EMAIL_HTML = `<!DOCTYPE html>
|
|
5
|
+
<html lang="en">
|
|
6
|
+
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"></head>
|
|
7
|
+
<body style="margin:0;padding:0;background:#f4f4f5;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif">
|
|
8
|
+
<table width="100%" cellpadding="0" cellspacing="0" style="padding:40px 0">
|
|
9
|
+
<tr><td align="center">
|
|
10
|
+
<table width="480" cellpadding="0" cellspacing="0" style="background:#ffffff;border-radius:8px;padding:40px;box-shadow:0 1px 3px rgba(0,0,0,0.1)">
|
|
11
|
+
<tr><td>
|
|
12
|
+
<h2 style="margin:0 0 8px;font-size:20px;color:#111827">Verification code</h2>
|
|
13
|
+
<p style="margin:0 0 24px;font-size:14px;color:#6b7280">Use the code below to verify your identity. It expires in <strong>5 minutes</strong>.</p>
|
|
14
|
+
<div style="background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:20px;text-align:center;letter-spacing:8px;font-size:32px;font-weight:700;color:#111827;font-family:monospace">
|
|
15
|
+
{code}
|
|
16
|
+
</div>
|
|
17
|
+
<p style="margin:24px 0 0;font-size:12px;color:#9ca3af">If you did not request this code, you can safely ignore this email.</p>
|
|
18
|
+
</td></tr>
|
|
19
|
+
</table>
|
|
20
|
+
</td></tr>
|
|
21
|
+
</table>
|
|
22
|
+
</body>
|
|
23
|
+
</html>`;
|
|
24
|
+
exports.SETTING_DEFAULTS = {
|
|
25
|
+
'otp.ttl_seconds': 300,
|
|
26
|
+
'otp.max_attempts': 5,
|
|
27
|
+
'otp.resend_cooldown_seconds': 60,
|
|
28
|
+
'otp.rate_limit_max': 3,
|
|
29
|
+
'otp.rate_limit_window_seconds': 600,
|
|
30
|
+
'otp.ip_rate_limit_max': 20,
|
|
31
|
+
'otp.ip_rate_limit_window_seconds': 600,
|
|
32
|
+
'otp.sms_template': 'Your verification code is: {code}. Do not share this code with anyone.',
|
|
33
|
+
'otp.email_subject': 'Your verification code',
|
|
34
|
+
'otp.email_html_template': OTP_EMAIL_HTML,
|
|
35
|
+
'otp.email_text_template': 'Your verification code is: {code}\n\nThis code expires in 5 minutes. Do not share it with anyone.',
|
|
36
|
+
'tokens.refresh_ttl_days': 7,
|
|
37
|
+
'tokens.temporary_ttl_seconds': 300,
|
|
38
|
+
'tokens.access_expires_in': '15m',
|
|
39
|
+
'tokens.invite_ttl_days': 7,
|
|
40
|
+
'tokens.password_reset_ttl_seconds': 1800,
|
|
41
|
+
'test.otp_identifiers': [],
|
|
42
|
+
'auth.provider': 'native',
|
|
43
|
+
'auth.method': 'email',
|
|
44
|
+
'auth.default_role_slug': 'user',
|
|
45
|
+
'login.ip_rate_limit_max': 10,
|
|
46
|
+
'login.ip_rate_limit_window_seconds': 900,
|
|
47
|
+
'login.lockout_max_attempts': 10,
|
|
48
|
+
'login.lockout_duration_seconds': 900,
|
|
49
|
+
'health.max_heap_mb': 300,
|
|
50
|
+
'health.max_rss_mb': 500,
|
|
51
|
+
'health.queue_depth_threshold': 500,
|
|
52
|
+
'sms.active_provider': 'twilio',
|
|
53
|
+
'sms.twilio_from_number': '',
|
|
54
|
+
'sms.twilio_account_sid': '',
|
|
55
|
+
'sms.twilio_auth_token': '',
|
|
56
|
+
'sms.termii_api_key': '',
|
|
57
|
+
'sms.termii_sender_id': '',
|
|
58
|
+
'sms.infobip_api_key': '',
|
|
59
|
+
'sms.infobip_sender_id': '',
|
|
60
|
+
'sms.infobip_base_url': '',
|
|
61
|
+
'sms.smartsms_token': '',
|
|
62
|
+
'sms.smartsms_sender_id': '',
|
|
63
|
+
'email.active_provider': 'resend',
|
|
64
|
+
'email.from_address': '',
|
|
65
|
+
'email.resend_api_key': '',
|
|
66
|
+
'email.sendgrid_api_key': '',
|
|
67
|
+
'email.mailgun_api_key': '',
|
|
68
|
+
'email.mailgun_domain': '',
|
|
69
|
+
'email.smtp_host': '',
|
|
70
|
+
'email.smtp_port': 587,
|
|
71
|
+
'email.smtp_user': '',
|
|
72
|
+
'email.smtp_pass': '',
|
|
73
|
+
'firebase.project_id': '',
|
|
74
|
+
'firebase.client_email': '',
|
|
75
|
+
'firebase.private_key': '',
|
|
76
|
+
'firebase.api_key': '',
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=settings.defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.defaults.js","sourceRoot":"","sources":["../../../../modules/settings/constants/settings.defaults.ts"],"names":[],"mappings":";;;AA0BA,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;QAmBf,CAAC;AAII,QAAA,gBAAgB,GAAG;IAE/B,iBAAiB,EAAE,GAAG;IACtB,kBAAkB,EAAE,CAAC;IACrB,6BAA6B,EAAE,EAAE;IACjC,oBAAoB,EAAE,CAAC;IACvB,+BAA+B,EAAE,GAAG;IACpC,uBAAuB,EAAE,EAAE;IAC3B,kCAAkC,EAAE,GAAG;IACvC,kBAAkB,EAAE,wEAAwE;IAC5F,mBAAmB,EAAE,wBAAwB;IAC7C,yBAAyB,EAAE,cAAc;IACzC,yBAAyB,EACxB,mGAAmG;IAGpG,yBAAyB,EAAE,CAAC;IAC5B,8BAA8B,EAAE,GAAG;IACnC,0BAA0B,EAAE,KAAK;IACjC,wBAAwB,EAAE,CAAC;IAC3B,mCAAmC,EAAE,IAAI;IAKzC,sBAAsB,EAAE,EAAyB;IAGjD,eAAe,EAAE,QAAQ;IACzB,aAAa,EAAE,OAAO;IACtB,wBAAwB,EAAE,MAAM;IAGhC,yBAAyB,EAAE,EAAE;IAC7B,oCAAoC,EAAE,GAAG;IACzC,4BAA4B,EAAE,EAAE;IAChC,gCAAgC,EAAE,GAAG;IAGrC,oBAAoB,EAAE,GAAG;IACzB,mBAAmB,EAAE,GAAG;IACxB,8BAA8B,EAAE,GAAG;IAGnC,qBAAqB,EAAE,QAAQ;IAC/B,wBAAwB,EAAE,EAAE;IAC5B,wBAAwB,EAAE,EAAE;IAC5B,uBAAuB,EAAE,EAAE;IAC3B,oBAAoB,EAAE,EAAE;IACxB,sBAAsB,EAAE,EAAE;IAC1B,qBAAqB,EAAE,EAAE;IACzB,uBAAuB,EAAE,EAAE;IAC3B,sBAAsB,EAA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