@colveor/core 1.1.0 → 1.2.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/CHANGELOG.md +17 -0
- package/README.md +6 -0
- package/dist/bootstrap/bootstrap-colveor-app.d.ts.map +1 -1
- package/dist/bootstrap/bootstrap-colveor-app.js +22 -3
- package/dist/bootstrap/bootstrap-colveor-app.js.map +1 -1
- package/dist/common/decorators/index.d.ts +6 -0
- package/dist/common/decorators/index.d.ts.map +1 -1
- package/dist/common/decorators/index.js +8 -1
- package/dist/common/decorators/index.js.map +1 -1
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.d.ts +9 -0
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.d.ts.map +1 -0
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.js +12 -0
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.js.map +1 -0
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts +12 -6
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts.map +1 -1
- package/dist/common/guards/login-ip-rate-limit.guard.js +65 -21
- package/dist/common/guards/login-ip-rate-limit.guard.js.map +1 -1
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts +3 -2
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts.map +1 -1
- package/dist/common/guards/otp-ip-rate-limit.guard.js +17 -15
- package/dist/common/guards/otp-ip-rate-limit.guard.js.map +1 -1
- package/dist/common/guards/permissions.guard.d.ts.map +1 -1
- package/dist/common/guards/permissions.guard.js +12 -2
- package/dist/common/guards/permissions.guard.js.map +1 -1
- package/dist/common/interceptors/timeout.interceptor.d.ts +1 -1
- package/dist/common/interceptors/timeout.interceptor.d.ts.map +1 -1
- package/dist/common/interceptors/timeout.interceptor.js +5 -1
- package/dist/common/interceptors/timeout.interceptor.js.map +1 -1
- package/dist/common/interfaces/request-user.d.ts +4 -3
- package/dist/common/interfaces/request-user.d.ts.map +1 -1
- package/dist/common/utils/cache-version.util.d.ts +12 -0
- package/dist/common/utils/cache-version.util.d.ts.map +1 -0
- package/dist/common/utils/cache-version.util.js +34 -0
- package/dist/common/utils/cache-version.util.js.map +1 -0
- package/dist/common/utils/postgres-error.util.d.ts +5 -0
- package/dist/common/utils/postgres-error.util.d.ts.map +1 -0
- package/dist/common/utils/postgres-error.util.js +13 -0
- package/dist/common/utils/postgres-error.util.js.map +1 -0
- package/dist/common/utils/singleflight.util.d.ts +6 -0
- package/dist/common/utils/singleflight.util.d.ts.map +1 -0
- package/dist/common/utils/singleflight.util.js +21 -0
- package/dist/common/utils/singleflight.util.js.map +1 -0
- package/dist/common/validators/is-exclusive-auth-params.validator.js +1 -1
- package/dist/common/validators/is-exclusive-auth-params.validator.js.map +1 -1
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js +1 -1
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js.map +1 -1
- package/dist/config/app.config.d.ts +38 -0
- package/dist/config/app.config.d.ts.map +1 -1
- package/dist/config/app.config.js +24 -0
- package/dist/config/app.config.js.map +1 -1
- package/dist/config/database.config.d.ts +6 -0
- package/dist/config/database.config.d.ts.map +1 -1
- package/dist/config/database.config.js +3 -0
- package/dist/config/database.config.js.map +1 -1
- package/dist/config/env-flags.util.d.ts +4 -0
- package/dist/config/env-flags.util.d.ts.map +1 -1
- package/dist/config/env-flags.util.js +7 -0
- package/dist/config/env-flags.util.js.map +1 -1
- package/dist/config/env.validation.d.ts +24 -1
- package/dist/config/env.validation.d.ts.map +1 -1
- package/dist/config/env.validation.js +92 -2
- package/dist/config/env.validation.js.map +1 -1
- package/dist/config/in-memory-redis.client.d.ts +23 -4
- package/dist/config/in-memory-redis.client.d.ts.map +1 -1
- package/dist/config/in-memory-redis.client.js +148 -4
- package/dist/config/in-memory-redis.client.js.map +1 -1
- package/dist/config/redis.module.d.ts.map +1 -1
- package/dist/config/redis.module.js +5 -0
- package/dist/config/redis.module.js.map +1 -1
- package/dist/core.module.d.ts +5 -0
- package/dist/core.module.d.ts.map +1 -1
- package/dist/core.module.js +5 -0
- package/dist/core.module.js.map +1 -1
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.d.ts +7 -0
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.d.ts.map +1 -0
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.js +24 -0
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.js.map +1 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.d.ts +7 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.js +16 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.js.map +1 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.d.ts +7 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.js +14 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.js.map +1 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.d.ts +13 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.js +35 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.js.map +1 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.d.ts +11 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.d.ts.map +1 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.js +60 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.js.map +1 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.d.ts +14 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.d.ts.map +1 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.js +39 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.js.map +1 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.d.ts +13 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.js +69 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.d.ts +11 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.js +51 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.d.ts +12 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.js +37 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.d.ts +12 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.d.ts.map +1 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.js +74 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.js.map +1 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.d.ts +12 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.d.ts.map +1 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.js +52 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.js.map +1 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.d.ts +11 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.js +36 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.js.map +1 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.d.ts +12 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.js +39 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.js.map +1 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.d.ts +12 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.js +39 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.js.map +1 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.d.ts +13 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.js +72 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.js.map +1 -0
- package/dist/database/migrations/1785006199386-audit-events.d.ts +10 -0
- package/dist/database/migrations/1785006199386-audit-events.d.ts.map +1 -0
- package/dist/database/migrations/1785006199386-audit-events.js +60 -0
- package/dist/database/migrations/1785006199386-audit-events.js.map +1 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.d.ts +10 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.d.ts.map +1 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.js +25 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.js.map +1 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.d.ts +11 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.d.ts.map +1 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.js +157 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.js.map +1 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.d.ts +10 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.d.ts.map +1 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.js +38 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.js.map +1 -0
- package/dist/database/migrations/1785006199390-audit-hardening.d.ts +14 -0
- package/dist/database/migrations/1785006199390-audit-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199390-audit-hardening.js +345 -0
- package/dist/database/migrations/1785006199390-audit-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.d.ts +10 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.d.ts.map +1 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.js +39 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.js.map +1 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.d.ts +11 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.d.ts.map +1 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.js +33 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.js.map +1 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.d.ts +11 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.d.ts.map +1 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.js +33 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.js.map +1 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.d.ts +11 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.d.ts.map +1 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.js +24 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.js.map +1 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.d.ts +10 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.js +35 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.js.map +1 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.d.ts +11 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.d.ts.map +1 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.js +23 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.js.map +1 -0
- package/dist/database/seeds/roles.seed.d.ts +6 -0
- package/dist/database/seeds/roles.seed.d.ts.map +1 -1
- package/dist/database/seeds/roles.seed.js +22 -5
- package/dist/database/seeds/roles.seed.js.map +1 -1
- package/dist/database/seeds/settings.seed.d.ts +5 -0
- package/dist/database/seeds/settings.seed.d.ts.map +1 -1
- package/dist/database/seeds/settings.seed.js +500 -25
- package/dist/database/seeds/settings.seed.js.map +1 -1
- package/dist/database/seeds/templates/html-template.reader.d.ts +1 -0
- package/dist/database/seeds/templates/html-template.reader.d.ts.map +1 -1
- package/dist/database/seeds/templates/html-template.reader.js +3 -1
- package/dist/database/seeds/templates/html-template.reader.js.map +1 -1
- package/dist/database/seeds/templates/html-template.reader.ts +5 -1
- package/dist/database/typeorm.util.d.ts.map +1 -1
- package/dist/database/typeorm.util.js +6 -0
- package/dist/database/typeorm.util.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -4
- package/dist/index.js.map +1 -1
- package/dist/modules/admin/controllers/admin.controller.d.ts +15 -7
- package/dist/modules/admin/controllers/admin.controller.d.ts.map +1 -1
- package/dist/modules/admin/controllers/admin.controller.js +74 -17
- package/dist/modules/admin/controllers/admin.controller.js.map +1 -1
- package/dist/modules/admin/services/admin-log.service.d.ts +14 -7
- package/dist/modules/admin/services/admin-log.service.d.ts.map +1 -1
- package/dist/modules/admin/services/admin-log.service.js +41 -38
- package/dist/modules/admin/services/admin-log.service.js.map +1 -1
- package/dist/modules/audit/audit.manifest.d.ts +8 -0
- package/dist/modules/audit/audit.manifest.d.ts.map +1 -0
- package/dist/modules/audit/audit.manifest.js +31 -0
- package/dist/modules/audit/audit.manifest.js.map +1 -0
- package/dist/modules/audit/audit.module.d.ts +8 -0
- package/dist/modules/audit/audit.module.d.ts.map +1 -0
- package/dist/modules/audit/audit.module.js +57 -0
- package/dist/modules/audit/audit.module.js.map +1 -0
- package/dist/modules/audit/constants/audit-actions.d.ts +79 -0
- package/dist/modules/audit/constants/audit-actions.d.ts.map +1 -0
- package/dist/modules/audit/constants/audit-actions.js +89 -0
- package/dist/modules/audit/constants/audit-actions.js.map +1 -0
- package/dist/modules/audit/constants/audit-mutation.d.ts +10 -0
- package/dist/modules/audit/constants/audit-mutation.d.ts.map +1 -0
- package/dist/modules/audit/constants/audit-mutation.js +13 -0
- package/dist/modules/audit/constants/audit-mutation.js.map +1 -0
- package/dist/modules/audit/controllers/audit.controller.d.ts +13 -0
- package/dist/modules/audit/controllers/audit.controller.d.ts.map +1 -0
- package/dist/modules/audit/controllers/audit.controller.js +149 -0
- package/dist/modules/audit/controllers/audit.controller.js.map +1 -0
- package/dist/modules/audit/decorators/audit.decorator.d.ts +27 -0
- package/dist/modules/audit/decorators/audit.decorator.d.ts.map +1 -0
- package/dist/modules/audit/decorators/audit.decorator.js +18 -0
- package/dist/modules/audit/decorators/audit.decorator.js.map +1 -0
- package/dist/modules/audit/dto/audit.dto.d.ts +54 -0
- package/dist/modules/audit/dto/audit.dto.d.ts.map +1 -0
- package/dist/modules/audit/dto/audit.dto.js +129 -0
- package/dist/modules/audit/dto/audit.dto.js.map +1 -0
- package/dist/modules/audit/entities/audit-event.entity.d.ts +33 -0
- package/dist/modules/audit/entities/audit-event.entity.d.ts.map +1 -0
- package/dist/modules/audit/entities/audit-event.entity.js +125 -0
- package/dist/modules/audit/entities/audit-event.entity.js.map +1 -0
- package/dist/modules/audit/entities/audit-outbox.entity.d.ts +16 -0
- package/dist/modules/audit/entities/audit-outbox.entity.d.ts.map +1 -0
- package/dist/modules/audit/entities/audit-outbox.entity.js +65 -0
- package/dist/modules/audit/entities/audit-outbox.entity.js.map +1 -0
- package/dist/modules/audit/index.d.ts +13 -0
- package/dist/modules/audit/index.d.ts.map +1 -0
- package/dist/modules/audit/index.js +23 -0
- package/dist/modules/audit/index.js.map +1 -0
- package/dist/modules/audit/interceptors/audit.interceptor.d.ts +11 -0
- package/dist/modules/audit/interceptors/audit.interceptor.d.ts.map +1 -0
- package/dist/modules/audit/interceptors/audit.interceptor.js +75 -0
- package/dist/modules/audit/interceptors/audit.interceptor.js.map +1 -0
- package/dist/modules/audit/listeners/auth-audit.listener.d.ts +31 -0
- package/dist/modules/audit/listeners/auth-audit.listener.d.ts.map +1 -0
- package/dist/modules/audit/listeners/auth-audit.listener.js +338 -0
- package/dist/modules/audit/listeners/auth-audit.listener.js.map +1 -0
- package/dist/modules/audit/services/audit-archive.service.d.ts +28 -0
- package/dist/modules/audit/services/audit-archive.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-archive.service.js +132 -0
- package/dist/modules/audit/services/audit-archive.service.js.map +1 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.d.ts +22 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.js +79 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.js.map +1 -0
- package/dist/modules/audit/services/audit-leader.service.d.ts +28 -0
- package/dist/modules/audit/services/audit-leader.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-leader.service.js +99 -0
- package/dist/modules/audit/services/audit-leader.service.js.map +1 -0
- package/dist/modules/audit/services/audit-outbox.worker.d.ts +29 -0
- package/dist/modules/audit/services/audit-outbox.worker.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-outbox.worker.js +144 -0
- package/dist/modules/audit/services/audit-outbox.worker.js.map +1 -0
- package/dist/modules/audit/services/audit-partition.service.d.ts +18 -0
- package/dist/modules/audit/services/audit-partition.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-partition.service.js +70 -0
- package/dist/modules/audit/services/audit-partition.service.js.map +1 -0
- package/dist/modules/audit/services/audit-write.service.d.ts +60 -0
- package/dist/modules/audit/services/audit-write.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-write.service.js +463 -0
- package/dist/modules/audit/services/audit-write.service.js.map +1 -0
- package/dist/modules/audit/services/audit.service.d.ts +60 -0
- package/dist/modules/audit/services/audit.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit.service.js +373 -0
- package/dist/modules/audit/services/audit.service.js.map +1 -0
- package/dist/modules/audit/utils/audit-hash.util.d.ts +20 -0
- package/dist/modules/audit/utils/audit-hash.util.d.ts.map +1 -0
- package/dist/modules/audit/utils/audit-hash.util.js +44 -0
- package/dist/modules/audit/utils/audit-hash.util.js.map +1 -0
- package/dist/modules/auth/auth-core/auth-core.module.d.ts.map +1 -1
- package/dist/modules/auth/auth-core/auth-core.module.js +16 -4
- package/dist/modules/auth/auth-core/auth-core.module.js.map +1 -1
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.d.ts +22 -0
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.js +25 -0
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.js.map +1 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.d.ts +19 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.js +110 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.js.map +1 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.d.ts +10 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.js +44 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.js.map +1 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.d.ts +10 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.js +44 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.js.map +1 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts +7 -8
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts.map +1 -1
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js +34 -34
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js.map +1 -1
- package/dist/modules/auth/auth.manifest.d.ts +6 -0
- package/dist/modules/auth/auth.manifest.d.ts.map +1 -1
- package/dist/modules/auth/auth.manifest.js +38 -2
- package/dist/modules/auth/auth.manifest.js.map +1 -1
- package/dist/modules/auth/auth.module.d.ts.map +1 -1
- package/dist/modules/auth/auth.module.js +39 -4
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/controllers/account.controller.d.ts +15 -1
- package/dist/modules/auth/controllers/account.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/account.controller.js +65 -7
- package/dist/modules/auth/controllers/account.controller.js.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.d.ts +7 -3
- package/dist/modules/auth/controllers/auth.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.js +76 -16
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
- package/dist/modules/auth/controllers/forgot-password.controller.d.ts +4 -2
- package/dist/modules/auth/controllers/forgot-password.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/forgot-password.controller.js +32 -11
- package/dist/modules/auth/controllers/forgot-password.controller.js.map +1 -1
- package/dist/modules/auth/controllers/mfa.controller.d.ts +18 -0
- package/dist/modules/auth/controllers/mfa.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/mfa.controller.js +192 -0
- package/dist/modules/auth/controllers/mfa.controller.js.map +1 -0
- package/dist/modules/auth/controllers/oauth.controller.d.ts +22 -0
- package/dist/modules/auth/controllers/oauth.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/oauth.controller.js +192 -0
- package/dist/modules/auth/controllers/oauth.controller.js.map +1 -0
- package/dist/modules/auth/controllers/otp.controller.d.ts +6 -3
- package/dist/modules/auth/controllers/otp.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/otp.controller.js +32 -33
- package/dist/modules/auth/controllers/otp.controller.js.map +1 -1
- package/dist/modules/auth/controllers/pin.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/pin.controller.js +10 -2
- package/dist/modules/auth/controllers/pin.controller.js.map +1 -1
- package/dist/modules/auth/controllers/session.controller.d.ts +12 -4
- package/dist/modules/auth/controllers/session.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/session.controller.js +130 -31
- package/dist/modules/auth/controllers/session.controller.js.map +1 -1
- package/dist/modules/auth/dto/auth-config.dto.d.ts +11 -2
- package/dist/modules/auth/dto/auth-config.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/auth-config.dto.js +78 -3
- package/dist/modules/auth/dto/auth-config.dto.js.map +1 -1
- package/dist/modules/auth/dto/index.d.ts +2 -0
- package/dist/modules/auth/dto/index.d.ts.map +1 -1
- package/dist/modules/auth/dto/index.js +2 -0
- package/dist/modules/auth/dto/index.js.map +1 -1
- package/dist/modules/auth/dto/login.dto.d.ts +8 -1
- package/dist/modules/auth/dto/login.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/login.dto.js +48 -3
- package/dist/modules/auth/dto/login.dto.js.map +1 -1
- package/dist/modules/auth/dto/mfa.dto.d.ts +61 -0
- package/dist/modules/auth/dto/mfa.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/mfa.dto.js +326 -0
- package/dist/modules/auth/dto/mfa.dto.js.map +1 -0
- package/dist/modules/auth/dto/oauth.dto.d.ts +45 -0
- package/dist/modules/auth/dto/oauth.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/oauth.dto.js +249 -0
- package/dist/modules/auth/dto/oauth.dto.js.map +1 -0
- package/dist/modules/auth/dto/otp.dto.d.ts +3 -1
- package/dist/modules/auth/dto/otp.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/otp.dto.js +19 -0
- package/dist/modules/auth/dto/otp.dto.js.map +1 -1
- package/dist/modules/auth/dto/password.dto.d.ts +28 -0
- package/dist/modules/auth/dto/password.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/password.dto.js +191 -5
- package/dist/modules/auth/dto/password.dto.js.map +1 -1
- package/dist/modules/auth/dto/register.dto.d.ts +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/register.dto.js +1 -0
- package/dist/modules/auth/dto/register.dto.js.map +1 -1
- package/dist/modules/auth/dto/session.dto.d.ts +20 -0
- package/dist/modules/auth/dto/session.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/session.dto.js +98 -0
- package/dist/modules/auth/dto/session.dto.js.map +1 -0
- package/dist/modules/auth/dto/token.dto.d.ts +38 -1
- package/dist/modules/auth/dto/token.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/token.dto.js +21 -1
- package/dist/modules/auth/dto/token.dto.js.map +1 -1
- package/dist/modules/auth/entities/index.d.ts +2 -0
- package/dist/modules/auth/entities/index.d.ts.map +1 -1
- package/dist/modules/auth/entities/index.js +2 -0
- package/dist/modules/auth/entities/index.js.map +1 -1
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts +2 -0
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts.map +1 -1
- package/dist/modules/auth/entities/password-reset-token.entity.js +6 -0
- package/dist/modules/auth/entities/password-reset-token.entity.js.map +1 -1
- package/dist/modules/auth/entities/user-mfa.entity.d.ts +19 -0
- package/dist/modules/auth/entities/user-mfa.entity.d.ts.map +1 -0
- package/dist/modules/auth/entities/user-mfa.entity.js +73 -0
- package/dist/modules/auth/entities/user-mfa.entity.js.map +1 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.d.ts +24 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.d.ts.map +1 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.js +84 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.js.map +1 -0
- package/dist/modules/auth/events/auth.events.d.ts +84 -19
- package/dist/modules/auth/events/auth.events.d.ts.map +1 -1
- package/dist/modules/auth/events/auth.events.js +17 -9
- package/dist/modules/auth/events/auth.events.js.map +1 -1
- package/dist/modules/auth/services/account.service.d.ts +74 -14
- package/dist/modules/auth/services/account.service.d.ts.map +1 -1
- package/dist/modules/auth/services/account.service.js +247 -31
- package/dist/modules/auth/services/account.service.js.map +1 -1
- package/dist/modules/auth/services/dpop.service.d.ts +41 -0
- package/dist/modules/auth/services/dpop.service.d.ts.map +1 -0
- package/dist/modules/auth/services/dpop.service.js +159 -0
- package/dist/modules/auth/services/dpop.service.js.map +1 -0
- package/dist/modules/auth/services/index.d.ts +2 -0
- package/dist/modules/auth/services/index.d.ts.map +1 -1
- package/dist/modules/auth/services/index.js +2 -0
- package/dist/modules/auth/services/index.js.map +1 -1
- package/dist/modules/auth/services/legacy-hash-cleanup.service.d.ts +28 -0
- package/dist/modules/auth/services/legacy-hash-cleanup.service.d.ts.map +1 -0
- package/dist/modules/auth/services/legacy-hash-cleanup.service.js +163 -0
- package/dist/modules/auth/services/legacy-hash-cleanup.service.js.map +1 -0
- package/dist/modules/auth/services/login.service.d.ts +29 -34
- package/dist/modules/auth/services/login.service.d.ts.map +1 -1
- package/dist/modules/auth/services/login.service.js +173 -61
- package/dist/modules/auth/services/login.service.js.map +1 -1
- package/dist/modules/auth/services/mfa.service.d.ts +111 -0
- package/dist/modules/auth/services/mfa.service.d.ts.map +1 -0
- package/dist/modules/auth/services/mfa.service.js +662 -0
- package/dist/modules/auth/services/mfa.service.js.map +1 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.d.ts +11 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.js +56 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.d.ts +12 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.js +64 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.d.ts +11 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.js +76 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.d.ts +16 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.js +92 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.d.ts +9 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.js +3 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.js.map +1 -0
- package/dist/modules/auth/services/oauth.service.d.ts +83 -0
- package/dist/modules/auth/services/oauth.service.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth.service.js +471 -0
- package/dist/modules/auth/services/oauth.service.js.map +1 -0
- package/dist/modules/auth/services/otp-auth.service.d.ts +13 -3
- package/dist/modules/auth/services/otp-auth.service.d.ts.map +1 -1
- package/dist/modules/auth/services/otp-auth.service.js +41 -7
- package/dist/modules/auth/services/otp-auth.service.js.map +1 -1
- package/dist/modules/auth/services/password-reset-audit-retention.service.d.ts +22 -0
- package/dist/modules/auth/services/password-reset-audit-retention.service.d.ts.map +1 -0
- package/dist/modules/auth/services/password-reset-audit-retention.service.js +117 -0
- package/dist/modules/auth/services/password-reset-audit-retention.service.js.map +1 -0
- package/dist/modules/auth/services/password.service.d.ts +25 -5
- package/dist/modules/auth/services/password.service.d.ts.map +1 -1
- package/dist/modules/auth/services/password.service.js +154 -20
- package/dist/modules/auth/services/password.service.js.map +1 -1
- package/dist/modules/auth/services/pin-auth.service.d.ts +10 -3
- package/dist/modules/auth/services/pin-auth.service.d.ts.map +1 -1
- package/dist/modules/auth/services/pin-auth.service.js +110 -13
- package/dist/modules/auth/services/pin-auth.service.js.map +1 -1
- package/dist/modules/auth/services/registration.service.d.ts +10 -2
- package/dist/modules/auth/services/registration.service.d.ts.map +1 -1
- package/dist/modules/auth/services/registration.service.js +113 -25
- package/dist/modules/auth/services/registration.service.js.map +1 -1
- package/dist/modules/auth/services/turnstile.service.d.ts +17 -0
- package/dist/modules/auth/services/turnstile.service.d.ts.map +1 -0
- package/dist/modules/auth/services/turnstile.service.js +94 -0
- package/dist/modules/auth/services/turnstile.service.js.map +1 -0
- package/dist/modules/auth/utils/auth-params.util.d.ts +13 -6
- package/dist/modules/auth/utils/auth-params.util.d.ts.map +1 -1
- package/dist/modules/auth/utils/auth-params.util.js +27 -4
- package/dist/modules/auth/utils/auth-params.util.js.map +1 -1
- package/dist/modules/auth/utils/auth-supported.util.d.ts +12 -1
- package/dist/modules/auth/utils/auth-supported.util.d.ts.map +1 -1
- package/dist/modules/auth/utils/auth-supported.util.js +36 -4
- package/dist/modules/auth/utils/auth-supported.util.js.map +1 -1
- package/dist/modules/auth/utils/backup-code-hash.util.d.ts +10 -0
- package/dist/modules/auth/utils/backup-code-hash.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/backup-code-hash.util.js +31 -0
- package/dist/modules/auth/utils/backup-code-hash.util.js.map +1 -0
- package/dist/modules/auth/utils/backup-codes.util.d.ts +5 -0
- package/dist/modules/auth/utils/backup-codes.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/backup-codes.util.js +22 -0
- package/dist/modules/auth/utils/backup-codes.util.js.map +1 -0
- package/dist/modules/auth/utils/dpop.util.d.ts +22 -0
- package/dist/modules/auth/utils/dpop.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/dpop.util.js +73 -0
- package/dist/modules/auth/utils/dpop.util.js.map +1 -0
- package/dist/modules/auth/utils/mfa-secret.util.d.ts +22 -0
- package/dist/modules/auth/utils/mfa-secret.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/mfa-secret.util.js +59 -0
- package/dist/modules/auth/utils/mfa-secret.util.js.map +1 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.d.ts +26 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.js +49 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.js.map +1 -0
- package/dist/modules/auth/utils/step-up-purpose.util.d.ts +5 -0
- package/dist/modules/auth/utils/step-up-purpose.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/step-up-purpose.util.js +18 -0
- package/dist/modules/auth/utils/step-up-purpose.util.js.map +1 -0
- package/dist/modules/auth/utils/totp.util.d.ts +16 -0
- package/dist/modules/auth/utils/totp.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/totp.util.js +88 -0
- package/dist/modules/auth/utils/totp.util.js.map +1 -0
- package/dist/modules/delivery/composers/otp-delivery.composer.d.ts +28 -1
- package/dist/modules/delivery/composers/otp-delivery.composer.d.ts.map +1 -1
- package/dist/modules/delivery/composers/otp-delivery.composer.js +48 -2
- package/dist/modules/delivery/composers/otp-delivery.composer.js.map +1 -1
- package/dist/modules/delivery/constants/delivery-worker.constants.d.ts +29 -0
- package/dist/modules/delivery/constants/delivery-worker.constants.d.ts.map +1 -0
- package/dist/modules/delivery/constants/delivery-worker.constants.js +51 -0
- package/dist/modules/delivery/constants/delivery-worker.constants.js.map +1 -0
- package/dist/modules/delivery/delivery.module.d.ts.map +1 -1
- package/dist/modules/delivery/delivery.module.js +1 -15
- package/dist/modules/delivery/delivery.module.js.map +1 -1
- package/dist/modules/delivery/entities/notification-delivery-log.entity.d.ts.map +1 -1
- package/dist/modules/delivery/entities/notification-delivery-log.entity.js +3 -1
- package/dist/modules/delivery/entities/notification-delivery-log.entity.js.map +1 -1
- package/dist/modules/delivery/notification-delivery.service.d.ts +12 -1
- package/dist/modules/delivery/notification-delivery.service.d.ts.map +1 -1
- package/dist/modules/delivery/notification-delivery.service.js +121 -40
- package/dist/modules/delivery/notification-delivery.service.js.map +1 -1
- package/dist/modules/delivery/processors/delivery-job.runner.d.ts +22 -1
- package/dist/modules/delivery/processors/delivery-job.runner.d.ts.map +1 -1
- package/dist/modules/delivery/processors/delivery-job.runner.js +144 -42
- package/dist/modules/delivery/processors/delivery-job.runner.js.map +1 -1
- package/dist/modules/delivery/processors/delivery.processor.d.ts.map +1 -1
- package/dist/modules/delivery/processors/delivery.processor.js +6 -1
- package/dist/modules/delivery/processors/delivery.processor.js.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts +11 -0
- package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery-job.runner.js +90 -16
- package/dist/modules/delivery/processors/otp-delivery-job.runner.js.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery.processor.d.ts.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery.processor.js +6 -1
- package/dist/modules/delivery/processors/otp-delivery.processor.js.map +1 -1
- package/dist/modules/delivery/queues/sync-jobs.queue.d.ts +7 -1
- package/dist/modules/delivery/queues/sync-jobs.queue.d.ts.map +1 -1
- package/dist/modules/delivery/queues/sync-jobs.queue.js +11 -2
- package/dist/modules/delivery/queues/sync-jobs.queue.js.map +1 -1
- package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts +7 -3
- package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts.map +1 -1
- package/dist/modules/delivery/services/delivery-audit-retention.service.js +33 -10
- package/dist/modules/delivery/services/delivery-audit-retention.service.js.map +1 -1
- package/dist/modules/delivery/services/notification-audit.service.d.ts +7 -4
- package/dist/modules/delivery/services/notification-audit.service.d.ts.map +1 -1
- package/dist/modules/delivery/services/notification-audit.service.js +83 -26
- package/dist/modules/delivery/services/notification-audit.service.js.map +1 -1
- package/dist/modules/delivery/utils/payload-snapshot.util.d.ts +2 -0
- package/dist/modules/delivery/utils/payload-snapshot.util.d.ts.map +1 -1
- package/dist/modules/delivery/utils/payload-snapshot.util.js +22 -3
- package/dist/modules/delivery/utils/payload-snapshot.util.js.map +1 -1
- package/dist/modules/file-upload/controllers/file-upload.controller.d.ts +7 -1
- package/dist/modules/file-upload/controllers/file-upload.controller.d.ts.map +1 -1
- package/dist/modules/file-upload/controllers/file-upload.controller.js +5 -7
- package/dist/modules/file-upload/controllers/file-upload.controller.js.map +1 -1
- package/dist/modules/file-upload/dto/file-upload.dto.d.ts +2 -0
- package/dist/modules/file-upload/dto/file-upload.dto.d.ts.map +1 -1
- package/dist/modules/file-upload/dto/file-upload.dto.js +20 -0
- package/dist/modules/file-upload/dto/file-upload.dto.js.map +1 -1
- package/dist/modules/file-upload/file-upload.module.d.ts.map +1 -1
- package/dist/modules/file-upload/file-upload.module.js +12 -2
- package/dist/modules/file-upload/file-upload.module.js.map +1 -1
- package/dist/modules/file-upload/services/file-upload.service.d.ts +24 -6
- package/dist/modules/file-upload/services/file-upload.service.d.ts.map +1 -1
- package/dist/modules/file-upload/services/file-upload.service.js +164 -36
- package/dist/modules/file-upload/services/file-upload.service.js.map +1 -1
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts +4 -2
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts.map +1 -1
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js +30 -5
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js.map +1 -1
- package/dist/modules/file-upload/utils/image-optimize.util.d.ts.map +1 -1
- package/dist/modules/file-upload/utils/image-optimize.util.js +7 -1
- package/dist/modules/file-upload/utils/image-optimize.util.js.map +1 -1
- package/dist/modules/health/health.controller.d.ts +5 -1
- package/dist/modules/health/health.controller.d.ts.map +1 -1
- package/dist/modules/health/health.controller.js +57 -3
- package/dist/modules/health/health.controller.js.map +1 -1
- package/dist/modules/invitations/controllers/invitations.controller.d.ts +19 -4
- package/dist/modules/invitations/controllers/invitations.controller.d.ts.map +1 -1
- package/dist/modules/invitations/controllers/invitations.controller.js +19 -10
- package/dist/modules/invitations/controllers/invitations.controller.js.map +1 -1
- package/dist/modules/invitations/dto/invitation.dto.d.ts +13 -0
- package/dist/modules/invitations/dto/invitation.dto.d.ts.map +1 -1
- package/dist/modules/invitations/dto/invitation.dto.js +69 -2
- package/dist/modules/invitations/dto/invitation.dto.js.map +1 -1
- package/dist/modules/invitations/services/invitations.service.d.ts +24 -6
- package/dist/modules/invitations/services/invitations.service.d.ts.map +1 -1
- package/dist/modules/invitations/services/invitations.service.js +96 -20
- package/dist/modules/invitations/services/invitations.service.js.map +1 -1
- package/dist/modules/jobs/queues/jobs.queue.d.ts +7 -2
- package/dist/modules/jobs/queues/jobs.queue.d.ts.map +1 -1
- package/dist/modules/jobs/queues/jobs.queue.js +25 -10
- package/dist/modules/jobs/queues/jobs.queue.js.map +1 -1
- package/dist/modules/notifications/controllers/notifications.controller.d.ts +3 -1
- package/dist/modules/notifications/controllers/notifications.controller.d.ts.map +1 -1
- package/dist/modules/notifications/controllers/notifications.controller.js +25 -2
- package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -1
- package/dist/modules/notifications/dto/notification-query.dto.d.ts.map +1 -1
- package/dist/modules/notifications/dto/notification-query.dto.js +1 -0
- package/dist/modules/notifications/dto/notification-query.dto.js.map +1 -1
- package/dist/modules/notifications/entities/device-token.entity.d.ts.map +1 -1
- package/dist/modules/notifications/entities/device-token.entity.js +3 -1
- package/dist/modules/notifications/entities/device-token.entity.js.map +1 -1
- package/dist/modules/notifications/services/fcm.service.d.ts +2 -0
- package/dist/modules/notifications/services/fcm.service.d.ts.map +1 -1
- package/dist/modules/notifications/services/fcm.service.js +28 -7
- package/dist/modules/notifications/services/fcm.service.js.map +1 -1
- package/dist/modules/notifications/services/notifications.service.d.ts +16 -3
- package/dist/modules/notifications/services/notifications.service.d.ts.map +1 -1
- package/dist/modules/notifications/services/notifications.service.js +95 -24
- package/dist/modules/notifications/services/notifications.service.js.map +1 -1
- package/dist/modules/observability/metrics/metrics.service.d.ts +2 -0
- package/dist/modules/observability/metrics/metrics.service.d.ts.map +1 -1
- package/dist/modules/observability/metrics/metrics.service.js +11 -0
- package/dist/modules/observability/metrics/metrics.service.js.map +1 -1
- package/dist/modules/otp/constants/otp.constants.d.ts +7 -5
- package/dist/modules/otp/constants/otp.constants.d.ts.map +1 -1
- package/dist/modules/otp/constants/otp.constants.js +11 -8
- package/dist/modules/otp/constants/otp.constants.js.map +1 -1
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts +1 -1
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts.map +1 -1
- package/dist/modules/otp/otp.service.d.ts +10 -2
- package/dist/modules/otp/otp.service.d.ts.map +1 -1
- package/dist/modules/otp/otp.service.js +48 -4
- package/dist/modules/otp/otp.service.js.map +1 -1
- package/dist/modules/otp/services/otp.rate-limiter.d.ts +2 -0
- package/dist/modules/otp/services/otp.rate-limiter.d.ts.map +1 -1
- package/dist/modules/otp/services/otp.rate-limiter.js +19 -0
- package/dist/modules/otp/services/otp.rate-limiter.js.map +1 -1
- package/dist/modules/otp/services/otp.session.store.d.ts +9 -3
- package/dist/modules/otp/services/otp.session.store.d.ts.map +1 -1
- package/dist/modules/otp/services/otp.session.store.js +34 -42
- package/dist/modules/otp/services/otp.session.store.js.map +1 -1
- package/dist/modules/otp/utils/otp-code-hash.util.d.ts +11 -0
- package/dist/modules/otp/utils/otp-code-hash.util.d.ts.map +1 -0
- package/dist/modules/otp/utils/otp-code-hash.util.js +68 -0
- package/dist/modules/otp/utils/otp-code-hash.util.js.map +1 -0
- package/dist/modules/profile/controllers/profile.controller.d.ts +9 -3
- package/dist/modules/profile/controllers/profile.controller.d.ts.map +1 -1
- package/dist/modules/profile/controllers/profile.controller.js +140 -8
- package/dist/modules/profile/controllers/profile.controller.js.map +1 -1
- package/dist/modules/profile/dto/create-user-profile.dto.d.ts +10 -0
- package/dist/modules/profile/dto/create-user-profile.dto.d.ts.map +1 -1
- package/dist/modules/profile/dto/create-user-profile.dto.js +43 -1
- package/dist/modules/profile/dto/create-user-profile.dto.js.map +1 -1
- package/dist/modules/profile/dto/public-user-profile.dto.d.ts +24 -0
- package/dist/modules/profile/dto/public-user-profile.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/public-user-profile.dto.js +115 -0
- package/dist/modules/profile/dto/public-user-profile.dto.js.map +1 -0
- package/dist/modules/profile/dto/user-profile-response.dto.d.ts +4 -0
- package/dist/modules/profile/dto/user-profile-response.dto.d.ts.map +1 -1
- package/dist/modules/profile/dto/user-profile-response.dto.js +4 -0
- package/dist/modules/profile/dto/user-profile-response.dto.js.map +1 -1
- package/dist/modules/profile/dto/username-available.dto.d.ts +6 -0
- package/dist/modules/profile/dto/username-available.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/username-available.dto.js +31 -0
- package/dist/modules/profile/dto/username-available.dto.js.map +1 -0
- package/dist/modules/profile/entities/user-profiles.entity.d.ts +10 -0
- package/dist/modules/profile/entities/user-profiles.entity.d.ts.map +1 -1
- package/dist/modules/profile/entities/user-profiles.entity.js +29 -1
- package/dist/modules/profile/entities/user-profiles.entity.js.map +1 -1
- package/dist/modules/profile/index.d.ts +1 -0
- package/dist/modules/profile/index.d.ts.map +1 -1
- package/dist/modules/profile/index.js +1 -0
- package/dist/modules/profile/index.js.map +1 -1
- package/dist/modules/profile/profile.manifest.d.ts +2 -2
- package/dist/modules/profile/profile.manifest.js +2 -2
- package/dist/modules/profile/profile.manifest.js.map +1 -1
- package/dist/modules/profile/profile.module.d.ts.map +1 -1
- package/dist/modules/profile/profile.module.js +7 -2
- package/dist/modules/profile/profile.module.js.map +1 -1
- package/dist/modules/profile/services/profile.service.d.ts +56 -4
- package/dist/modules/profile/services/profile.service.d.ts.map +1 -1
- package/dist/modules/profile/services/profile.service.js +247 -20
- package/dist/modules/profile/services/profile.service.js.map +1 -1
- package/dist/modules/realtime/adapters/redis-io.adapter.d.ts +26 -0
- package/dist/modules/realtime/adapters/redis-io.adapter.d.ts.map +1 -0
- package/dist/modules/realtime/adapters/redis-io.adapter.js +124 -0
- package/dist/modules/realtime/adapters/redis-io.adapter.js.map +1 -0
- package/dist/modules/realtime/constants/realtime.constants.d.ts +36 -0
- package/dist/modules/realtime/constants/realtime.constants.d.ts.map +1 -0
- package/dist/modules/realtime/constants/realtime.constants.js +42 -0
- package/dist/modules/realtime/constants/realtime.constants.js.map +1 -0
- package/dist/modules/realtime/controllers/realtime.controller.d.ts +21 -0
- package/dist/modules/realtime/controllers/realtime.controller.d.ts.map +1 -0
- package/dist/modules/realtime/controllers/realtime.controller.js +113 -0
- package/dist/modules/realtime/controllers/realtime.controller.js.map +1 -0
- package/dist/modules/realtime/gateway/realtime.gateway.d.ts +42 -0
- package/dist/modules/realtime/gateway/realtime.gateway.d.ts.map +1 -0
- package/dist/modules/realtime/gateway/realtime.gateway.js +289 -0
- package/dist/modules/realtime/gateway/realtime.gateway.js.map +1 -0
- package/dist/modules/realtime/index.d.ts +12 -0
- package/dist/modules/realtime/index.d.ts.map +1 -0
- package/dist/modules/realtime/index.js +35 -0
- package/dist/modules/realtime/index.js.map +1 -0
- package/dist/modules/realtime/realtime.manifest.d.ts +8 -0
- package/dist/modules/realtime/realtime.manifest.d.ts.map +1 -0
- package/dist/modules/realtime/realtime.manifest.js +31 -0
- package/dist/modules/realtime/realtime.manifest.js.map +1 -0
- package/dist/modules/realtime/realtime.module.d.ts +14 -0
- package/dist/modules/realtime/realtime.module.d.ts.map +1 -0
- package/dist/modules/realtime/realtime.module.js +126 -0
- package/dist/modules/realtime/realtime.module.js.map +1 -0
- package/dist/modules/realtime/services/realtime-handler.registry.d.ts +16 -0
- package/dist/modules/realtime/services/realtime-handler.registry.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime-handler.registry.js +55 -0
- package/dist/modules/realtime/services/realtime-handler.registry.js.map +1 -0
- package/dist/modules/realtime/services/realtime-presence.service.d.ts +15 -0
- package/dist/modules/realtime/services/realtime-presence.service.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime-presence.service.js +86 -0
- package/dist/modules/realtime/services/realtime-presence.service.js.map +1 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.d.ts +12 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.js +63 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.js.map +1 -0
- package/dist/modules/realtime/services/realtime.service.d.ts +88 -0
- package/dist/modules/realtime/services/realtime.service.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime.service.js +343 -0
- package/dist/modules/realtime/services/realtime.service.js.map +1 -0
- package/dist/modules/realtime/types/realtime.types.d.ts +50 -0
- package/dist/modules/realtime/types/realtime.types.d.ts.map +1 -0
- package/dist/modules/realtime/types/realtime.types.js +14 -0
- package/dist/modules/realtime/types/realtime.types.js.map +1 -0
- package/dist/modules/realtime/utils/handshake-error.util.d.ts +5 -0
- package/dist/modules/realtime/utils/handshake-error.util.d.ts.map +1 -0
- package/dist/modules/realtime/utils/handshake-error.util.js +45 -0
- package/dist/modules/realtime/utils/handshake-error.util.js.map +1 -0
- package/dist/modules/roles/controllers/modules.controller.d.ts +4 -3
- package/dist/modules/roles/controllers/modules.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/modules.controller.js +21 -10
- package/dist/modules/roles/controllers/modules.controller.js.map +1 -1
- package/dist/modules/roles/controllers/permissions.controller.d.ts +4 -3
- package/dist/modules/roles/controllers/permissions.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/permissions.controller.js +21 -10
- package/dist/modules/roles/controllers/permissions.controller.js.map +1 -1
- package/dist/modules/roles/controllers/roles.controller.d.ts +5 -4
- package/dist/modules/roles/controllers/roles.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/roles.controller.js +26 -13
- package/dist/modules/roles/controllers/roles.controller.js.map +1 -1
- package/dist/modules/roles/controllers/user-roles.controller.d.ts +3 -2
- package/dist/modules/roles/controllers/user-roles.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/user-roles.controller.js +14 -6
- package/dist/modules/roles/controllers/user-roles.controller.js.map +1 -1
- package/dist/modules/roles/services/modules.service.d.ts +8 -5
- package/dist/modules/roles/services/modules.service.d.ts.map +1 -1
- package/dist/modules/roles/services/modules.service.js +58 -12
- package/dist/modules/roles/services/modules.service.js.map +1 -1
- package/dist/modules/roles/services/permissions.service.d.ts +8 -5
- package/dist/modules/roles/services/permissions.service.d.ts.map +1 -1
- package/dist/modules/roles/services/permissions.service.js +61 -12
- package/dist/modules/roles/services/permissions.service.js.map +1 -1
- package/dist/modules/roles/services/roles.service.d.ts +19 -9
- package/dist/modules/roles/services/roles.service.d.ts.map +1 -1
- package/dist/modules/roles/services/roles.service.js +137 -47
- package/dist/modules/roles/services/roles.service.js.map +1 -1
- package/dist/modules/roles/services/user-roles.service.d.ts +12 -4
- package/dist/modules/roles/services/user-roles.service.d.ts.map +1 -1
- package/dist/modules/roles/services/user-roles.service.js +58 -26
- package/dist/modules/roles/services/user-roles.service.js.map +1 -1
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts +7 -1
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts.map +1 -1
- package/dist/modules/sessions/entities/refresh-token.entity.js +10 -0
- package/dist/modules/sessions/entities/refresh-token.entity.js.map +1 -1
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.d.ts +12 -0
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.d.ts.map +1 -0
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.js +46 -0
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.js.map +1 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.d.ts +20 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.d.ts.map +1 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.js +97 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.js.map +1 -0
- package/dist/modules/sessions/services/token.service.d.ts +150 -16
- package/dist/modules/sessions/services/token.service.d.ts.map +1 -1
- package/dist/modules/sessions/services/token.service.js +505 -74
- package/dist/modules/sessions/services/token.service.js.map +1 -1
- package/dist/modules/sessions/sessions.module.d.ts.map +1 -1
- package/dist/modules/sessions/sessions.module.js +4 -2
- package/dist/modules/sessions/sessions.module.js.map +1 -1
- package/dist/modules/sessions/utils/refresh-token-hash.util.d.ts +13 -0
- package/dist/modules/sessions/utils/refresh-token-hash.util.d.ts.map +1 -0
- package/dist/modules/sessions/utils/refresh-token-hash.util.js +37 -0
- package/dist/modules/sessions/utils/refresh-token-hash.util.js.map +1 -0
- package/dist/modules/settings/constants/settings.defaults.d.ts +57 -3
- package/dist/modules/settings/constants/settings.defaults.d.ts.map +1 -1
- package/dist/modules/settings/constants/settings.defaults.js +58 -3
- package/dist/modules/settings/constants/settings.defaults.js.map +1 -1
- package/dist/modules/settings/constants/settings.keys.d.ts +138 -2
- package/dist/modules/settings/constants/settings.keys.d.ts.map +1 -1
- package/dist/modules/settings/constants/settings.keys.js +140 -2
- package/dist/modules/settings/constants/settings.keys.js.map +1 -1
- package/dist/modules/settings/controllers/settings.controller.d.ts +5 -1
- package/dist/modules/settings/controllers/settings.controller.d.ts.map +1 -1
- package/dist/modules/settings/controllers/settings.controller.js +134 -5
- package/dist/modules/settings/controllers/settings.controller.js.map +1 -1
- package/dist/modules/settings/services/settings.service.d.ts +17 -7
- package/dist/modules/settings/services/settings.service.d.ts.map +1 -1
- package/dist/modules/settings/services/settings.service.js +80 -14
- package/dist/modules/settings/services/settings.service.js.map +1 -1
- package/dist/modules/settings/utils/settings-secret.util.d.ts +13 -0
- package/dist/modules/settings/utils/settings-secret.util.d.ts.map +1 -0
- package/dist/modules/settings/utils/settings-secret.util.js +80 -0
- package/dist/modules/settings/utils/settings-secret.util.js.map +1 -0
- package/dist/modules/users/controllers/users.controller.d.ts +4 -2
- package/dist/modules/users/controllers/users.controller.d.ts.map +1 -1
- package/dist/modules/users/controllers/users.controller.js +89 -10
- package/dist/modules/users/controllers/users.controller.js.map +1 -1
- package/dist/modules/users/dto/user.dto.d.ts +3 -0
- package/dist/modules/users/dto/user.dto.d.ts.map +1 -1
- package/dist/modules/users/dto/user.dto.js +27 -4
- package/dist/modules/users/dto/user.dto.js.map +1 -1
- package/dist/modules/users/entities/user.entity.d.ts +7 -1
- package/dist/modules/users/entities/user.entity.d.ts.map +1 -1
- package/dist/modules/users/entities/user.entity.js +10 -0
- package/dist/modules/users/entities/user.entity.js.map +1 -1
- package/dist/modules/users/services/users.service.d.ts +15 -2
- package/dist/modules/users/services/users.service.d.ts.map +1 -1
- package/dist/modules/users/services/users.service.js +152 -37
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/dist/modules/users/users.module.d.ts.map +1 -1
- package/dist/modules/users/users.module.js +1 -2
- package/dist/modules/users/users.module.js.map +1 -1
- package/package.json +19 -7
- package/dist/modules/admin/entities/admin-log.entity.d.ts +0 -20
- package/dist/modules/admin/entities/admin-log.entity.d.ts.map +0 -1
- package/dist/modules/admin/entities/admin-log.entity.js +0 -65
- package/dist/modules/admin/entities/admin-log.entity.js.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Minimal shape attached to `req.user` after JWT validation.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* when needed (use UsersService / ProfileService in your handler).
|
|
4
|
+
* `id`, `roles`, `jti`, and `fid` come from the access token payload.
|
|
5
|
+
* All profile fields must be fetched from the DB when needed.
|
|
7
6
|
*/
|
|
8
7
|
export interface RequestUser {
|
|
9
8
|
/** Authenticated user's UUID. */
|
|
@@ -16,5 +15,7 @@ export interface RequestUser {
|
|
|
16
15
|
* (e.g. logout, account suspension).
|
|
17
16
|
*/
|
|
18
17
|
jti: string;
|
|
18
|
+
/** Refresh-token family id (`fid` claim) — used for current-session logout. */
|
|
19
|
+
fid: string;
|
|
19
20
|
}
|
|
20
21
|
//# sourceMappingURL=request-user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-user.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/request-user.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"request-user.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/request-user.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B,iCAAiC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,iEAAiE;IACjE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type IORedis from 'ioredis';
|
|
2
|
+
/** Redis keys for cross-replica in-memory cache invalidation. */
|
|
3
|
+
export declare const CACHE_VERSION_KEYS: {
|
|
4
|
+
readonly settings: "cache:ver:settings";
|
|
5
|
+
readonly roles: "cache:ver:roles";
|
|
6
|
+
};
|
|
7
|
+
export type CacheVersionScope = keyof typeof CACHE_VERSION_KEYS;
|
|
8
|
+
/** Bump a shared version so other replicas reload their local Maps. */
|
|
9
|
+
export declare function bumpCacheVersion(redis: IORedis | undefined, scope: CacheVersionScope): Promise<void>;
|
|
10
|
+
/** Read current version string (defaults to "0"). */
|
|
11
|
+
export declare function readCacheVersion(redis: IORedis | undefined, scope: CacheVersionScope): Promise<string>;
|
|
12
|
+
//# sourceMappingURL=cache-version.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-version.util.d.ts","sourceRoot":"","sources":["../../../src/common/utils/cache-version.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,iEAAiE;AACjE,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEhE,uEAAuE;AACvE,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,OAAO,GAAG,SAAS,EAC1B,KAAK,EAAE,iBAAiB,GACtB,OAAO,CAAC,IAAI,CAAC,CAOf;AAED,qDAAqD;AACrD,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,OAAO,GAAG,SAAS,EAC1B,KAAK,EAAE,iBAAiB,GACtB,OAAO,CAAC,MAAM,CAAC,CAQjB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CACHE_VERSION_KEYS = void 0;
|
|
4
|
+
exports.bumpCacheVersion = bumpCacheVersion;
|
|
5
|
+
exports.readCacheVersion = readCacheVersion;
|
|
6
|
+
/** Redis keys for cross-replica in-memory cache invalidation. */
|
|
7
|
+
exports.CACHE_VERSION_KEYS = {
|
|
8
|
+
settings: 'cache:ver:settings',
|
|
9
|
+
roles: 'cache:ver:roles',
|
|
10
|
+
};
|
|
11
|
+
/** Bump a shared version so other replicas reload their local Maps. */
|
|
12
|
+
async function bumpCacheVersion(redis, scope) {
|
|
13
|
+
if (!redis)
|
|
14
|
+
return;
|
|
15
|
+
try {
|
|
16
|
+
await redis.incr(exports.CACHE_VERSION_KEYS[scope]);
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
// best-effort — local cache already updated on the writer
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** Read current version string (defaults to "0"). */
|
|
23
|
+
async function readCacheVersion(redis, scope) {
|
|
24
|
+
if (!redis)
|
|
25
|
+
return '0';
|
|
26
|
+
try {
|
|
27
|
+
const raw = await redis.get(exports.CACHE_VERSION_KEYS[scope]);
|
|
28
|
+
return raw ?? '0';
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return '0';
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=cache-version.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-version.util.js","sourceRoot":"","sources":["../../../src/common/utils/cache-version.util.ts"],"names":[],"mappings":";;;AAWA,4CAUC;AAGD,4CAWC;AAjCD,iEAAiE;AACpD,QAAA,kBAAkB,GAAG;IACjC,QAAQ,EAAE,oBAAoB;IAC9B,KAAK,EAAE,iBAAiB;CACf,CAAC;AAIX,uEAAuE;AAChE,KAAK,UAAU,gBAAgB,CACrC,KAA0B,EAC1B,KAAwB;IAExB,IAAI,CAAC,KAAK;QAAE,OAAO;IACnB,IAAI,CAAC;QACJ,MAAM,KAAK,CAAC,IAAI,CAAC,0BAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC;IAAC,MAAM,CAAC;QACR,0DAA0D;IAC3D,CAAC;AACF,CAAC;AAED,qDAAqD;AAC9C,KAAK,UAAU,gBAAgB,CACrC,KAA0B,EAC1B,KAAwB;IAExB,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC;IACvB,IAAI,CAAC;QACJ,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,0BAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;QACvD,OAAO,GAAG,IAAI,GAAG,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,GAAG,CAAC;IACZ,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres-error.util.d.ts","sourceRoot":"","sources":["../../../src/common/utils/postgres-error.util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAI/D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPostgresUniqueViolation = isPostgresUniqueViolation;
|
|
4
|
+
/**
|
|
5
|
+
* True when `err` is (or wraps) a PostgreSQL unique_violation (23505).
|
|
6
|
+
*/
|
|
7
|
+
function isPostgresUniqueViolation(err) {
|
|
8
|
+
if (!err || typeof err !== 'object')
|
|
9
|
+
return false;
|
|
10
|
+
const e = err;
|
|
11
|
+
return e.code === '23505' || e.driverError?.code === '23505';
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=postgres-error.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres-error.util.js","sourceRoot":"","sources":["../../../src/common/utils/postgres-error.util.ts"],"names":[],"mappings":";;AAGA,8DAIC;AAPD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,GAAY;IACrD,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,CAAC,GAAG,GAAyD,CAAC;IACpE,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,CAAC,WAAW,EAAE,IAAI,KAAK,OAAO,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coalesce concurrent async work for the same key into one in-flight Promise.
|
|
3
|
+
* Used to prevent thundering-herd DB hits after Redis miss/expiry.
|
|
4
|
+
*/
|
|
5
|
+
export declare function createSingleflight<T>(): (key: string, fn: () => Promise<T>) => Promise<T>;
|
|
6
|
+
//# sourceMappingURL=singleflight.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"singleflight.util.d.ts","sourceRoot":"","sources":["../../../src/common/utils/singleflight.util.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAazF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSingleflight = createSingleflight;
|
|
4
|
+
/**
|
|
5
|
+
* Coalesce concurrent async work for the same key into one in-flight Promise.
|
|
6
|
+
* Used to prevent thundering-herd DB hits after Redis miss/expiry.
|
|
7
|
+
*/
|
|
8
|
+
function createSingleflight() {
|
|
9
|
+
const inflight = new Map();
|
|
10
|
+
return (key, fn) => {
|
|
11
|
+
const existing = inflight.get(key);
|
|
12
|
+
if (existing)
|
|
13
|
+
return existing;
|
|
14
|
+
const promise = fn().finally(() => {
|
|
15
|
+
inflight.delete(key);
|
|
16
|
+
});
|
|
17
|
+
inflight.set(key, promise);
|
|
18
|
+
return promise;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=singleflight.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"singleflight.util.js","sourceRoot":"","sources":["../../../src/common/utils/singleflight.util.ts"],"names":[],"mappings":";;AAIA,gDAaC;AAjBD;;;GAGG;AACH,SAAgB,kBAAkB;IACjC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAsB,CAAC;IAE/C,OAAO,CAAC,GAAW,EAAE,EAAoB,EAAc,EAAE;QACxD,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,QAAQ;YAAE,OAAO,QAAQ,CAAC;QAE9B,MAAM,OAAO,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;YACjC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC3B,OAAO,OAAO,CAAC;IAChB,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -13,7 +13,7 @@ const auth_params_util_1 = require("../../modules/auth/utils/auth-params.util");
|
|
|
13
13
|
let IsExclusiveAuthParamsConstraint = class IsExclusiveAuthParamsConstraint {
|
|
14
14
|
validate(_value, args) {
|
|
15
15
|
const mode = (0, auth_params_util_1.resolveAuthParamsMode)(args.object);
|
|
16
|
-
return mode === 'phone' || mode === 'email';
|
|
16
|
+
return mode === 'phone' || mode === 'email' || mode === 'oauth';
|
|
17
17
|
}
|
|
18
18
|
defaultMessage() {
|
|
19
19
|
return auth_params_util_1.AUTH_PARAMS_ERROR;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-exclusive-auth-params.validator.js","sourceRoot":"","sources":["../../../src/common/validators/is-exclusive-auth-params.validator.ts"],"names":[],"mappings":";;;;;;;;;AA0BA,sDAUC;AApCD,qDAMyB;AAEzB,gFAGmD;AAG5C,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAC3C,QAAQ,CAAC,MAAe,EAAE,IAAyB;QAClD,MAAM,IAAI,GAAG,IAAA,wCAAqB,EAAC,IAAI,CAAC,MAAiC,CAAC,CAAC;QAC3E,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"is-exclusive-auth-params.validator.js","sourceRoot":"","sources":["../../../src/common/validators/is-exclusive-auth-params.validator.ts"],"names":[],"mappings":";;;;;;;;;AA0BA,sDAUC;AApCD,qDAMyB;AAEzB,gFAGmD;AAG5C,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAC3C,QAAQ,CAAC,MAAe,EAAE,IAAyB;QAClD,MAAM,IAAI,GAAG,IAAA,wCAAqB,EAAC,IAAI,CAAC,MAAiC,CAAC,CAAC;QAC3E,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,OAAO,CAAC;IACjE,CAAC;IAED,cAAc;QACb,OAAO,oCAAiB,CAAC;IAC1B,CAAC;CACD,CAAA;AATY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,qCAAmB,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;GACxD,+BAA+B,CAS3C;AAED,wFAAwF;AACxF,SAAgB,qBAAqB,CAAC,iBAAqC;IAC1E,OAAO,UAAU,MAAc,EAAE,YAAoB;QACpD,IAAA,mCAAiB,EAAC;YACjB,MAAM,EAAE,MAAM,CAAC,WAAW;YAC1B,YAAY;YACZ,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,+BAA+B;SAC1C,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -13,7 +13,7 @@ const auth_params_util_1 = require("../../modules/auth/utils/auth-params.util");
|
|
|
13
13
|
let IsExclusiveDeleteConfirmParamsConstraint = class IsExclusiveDeleteConfirmParamsConstraint {
|
|
14
14
|
validate(_value, args) {
|
|
15
15
|
const mode = (0, auth_params_util_1.resolveDeleteConfirmMode)(args.object);
|
|
16
|
-
return mode === 'phone' || mode === 'email';
|
|
16
|
+
return mode === 'phone' || mode === 'email' || mode === 'oauth';
|
|
17
17
|
}
|
|
18
18
|
defaultMessage() {
|
|
19
19
|
return auth_params_util_1.DELETE_CONFIRM_PARAMS_ERROR;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-exclusive-delete-confirm-params.validator.js","sourceRoot":"","sources":["../../../src/common/validators/is-exclusive-delete-confirm-params.validator.ts"],"names":[],"mappings":";;;;;;;;;AAyBA,wEAUC;AAnCD,qDAMyB;AAEzB,gFAGmD;AAG5C,IAAM,wCAAwC,GAA9C,MAAM,wCAAwC;IACpD,QAAQ,CAAC,MAAe,EAAE,IAAyB;QAClD,MAAM,IAAI,GAAG,IAAA,2CAAwB,EAAC,IAAI,CAAC,MAAiC,CAAC,CAAC;QAC9E,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"is-exclusive-delete-confirm-params.validator.js","sourceRoot":"","sources":["../../../src/common/validators/is-exclusive-delete-confirm-params.validator.ts"],"names":[],"mappings":";;;;;;;;;AAyBA,wEAUC;AAnCD,qDAMyB;AAEzB,gFAGmD;AAG5C,IAAM,wCAAwC,GAA9C,MAAM,wCAAwC;IACpD,QAAQ,CAAC,MAAe,EAAE,IAAyB;QAClD,MAAM,IAAI,GAAG,IAAA,2CAAwB,EAAC,IAAI,CAAC,MAAiC,CAAC,CAAC;QAC9E,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,OAAO,CAAC;IACjE,CAAC;IAED,cAAc;QACb,OAAO,8CAA2B,CAAC;IACpC,CAAC;CACD,CAAA;AATY,4FAAwC;mDAAxC,wCAAwC;IADpD,IAAA,qCAAmB,EAAC,EAAE,IAAI,EAAE,gCAAgC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;GACjE,wCAAwC,CASpD;AAED,SAAgB,8BAA8B,CAAC,iBAAqC;IACnF,OAAO,UAAU,MAAc,EAAE,YAAoB;QACpD,IAAA,mCAAiB,EAAC;YACjB,MAAM,EAAE,MAAM,CAAC,WAAW;YAC1B,YAAY;YACZ,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,wCAAwC;SACnD,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -26,6 +26,25 @@ export declare const appConfig: (() => {
|
|
|
26
26
|
tlsCaPath: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
encryptionKey: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Dedicated AES key for MFA TOTP secrets + backup-code HMAC pepper.
|
|
31
|
+
* Required in production (no silent fallback to ENCRYPTION_KEY at boot validation).
|
|
32
|
+
* Runtime still falls back only in non-production for local ergonomics.
|
|
33
|
+
*/
|
|
34
|
+
mfaEncryptionKey: string | undefined;
|
|
35
|
+
/** Previous MFA key for zero-downtime rotation (decrypt-only). */
|
|
36
|
+
mfaEncryptionKeyPrevious: string | undefined;
|
|
37
|
+
turnstile: {
|
|
38
|
+
enabled: boolean | undefined;
|
|
39
|
+
secretKey: string | undefined;
|
|
40
|
+
siteKey: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
dpopMode: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Pepper for HMAC-SHA256 hashing of refresh-token secrets.
|
|
45
|
+
* Distinct from JWT_SECRET so a JWT signing leak alone cannot forge DB hashes.
|
|
46
|
+
*/
|
|
47
|
+
refreshTokenPepper: string;
|
|
29
48
|
throttle: {
|
|
30
49
|
ttl: number;
|
|
31
50
|
limit: number;
|
|
@@ -74,6 +93,25 @@ export declare const appConfig: (() => {
|
|
|
74
93
|
tlsCaPath: string | undefined;
|
|
75
94
|
};
|
|
76
95
|
encryptionKey: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Dedicated AES key for MFA TOTP secrets + backup-code HMAC pepper.
|
|
98
|
+
* Required in production (no silent fallback to ENCRYPTION_KEY at boot validation).
|
|
99
|
+
* Runtime still falls back only in non-production for local ergonomics.
|
|
100
|
+
*/
|
|
101
|
+
mfaEncryptionKey: string | undefined;
|
|
102
|
+
/** Previous MFA key for zero-downtime rotation (decrypt-only). */
|
|
103
|
+
mfaEncryptionKeyPrevious: string | undefined;
|
|
104
|
+
turnstile: {
|
|
105
|
+
enabled: boolean | undefined;
|
|
106
|
+
secretKey: string | undefined;
|
|
107
|
+
siteKey: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
dpopMode: string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Pepper for HMAC-SHA256 hashing of refresh-token secrets.
|
|
112
|
+
* Distinct from JWT_SECRET so a JWT signing leak alone cannot forge DB hashes.
|
|
113
|
+
*/
|
|
114
|
+
refreshTokenPepper: string;
|
|
77
115
|
throttle: {
|
|
78
116
|
ttl: number;
|
|
79
117
|
limit: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.config.d.ts","sourceRoot":"","sources":["../../src/config/app.config.ts"],"names":[],"mappings":"AAYA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAMxE;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAMlD;AAED,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB,MAAM,GAAG,QAAQ,CAInB;AAED,eAAO,MAAM,SAAS;;;;;;;;IAUpB,gGAAgG
|
|
1
|
+
{"version":3,"file":"app.config.d.ts","sourceRoot":"","sources":["../../src/config/app.config.ts"],"names":[],"mappings":"AAYA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAMxE;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAMlD;AAED,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,OAAO,EAAE,MAAM,GAAG,SAAS,GACzB,MAAM,GAAG,QAAQ,CAInB;AAED,eAAO,MAAM,SAAS;;;;;;;;IAUpB,gGAAgG;;;;;;;;;;;;;;;;IAqBhG;;;;OAIG;;IAKH,kEAAkE;;;;;;;;IAgBlE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAjDH,gGAAgG;;;;;;;;;;;;;;;;IAqBhG;;;;OAIG;;IAKH,kEAAkE;;;;;;;;IAgBlE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCH,CAAC"}
|
|
@@ -63,6 +63,30 @@ exports.appConfig = (0, config_1.registerAs)('app', () => {
|
|
|
63
63
|
tlsCaPath: process.env.REDIS_TLS_CA,
|
|
64
64
|
},
|
|
65
65
|
encryptionKey: process.env.ENCRYPTION_KEY,
|
|
66
|
+
/**
|
|
67
|
+
* Dedicated AES key for MFA TOTP secrets + backup-code HMAC pepper.
|
|
68
|
+
* Required in production (no silent fallback to ENCRYPTION_KEY at boot validation).
|
|
69
|
+
* Runtime still falls back only in non-production for local ergonomics.
|
|
70
|
+
*/
|
|
71
|
+
mfaEncryptionKey: process.env.MFA_ENCRYPTION_KEY ||
|
|
72
|
+
(process.env.NODE_ENV === 'production' ? undefined : process.env.ENCRYPTION_KEY),
|
|
73
|
+
/** Previous MFA key for zero-downtime rotation (decrypt-only). */
|
|
74
|
+
mfaEncryptionKeyPrevious: process.env.MFA_ENCRYPTION_KEY_PREVIOUS,
|
|
75
|
+
turnstile: {
|
|
76
|
+
enabled: process.env.TURNSTILE_ENABLED === 'true'
|
|
77
|
+
? true
|
|
78
|
+
: process.env.TURNSTILE_ENABLED === 'false'
|
|
79
|
+
? false
|
|
80
|
+
: undefined,
|
|
81
|
+
secretKey: process.env.TURNSTILE_SECRET_KEY,
|
|
82
|
+
siteKey: process.env.TURNSTILE_SITE_KEY,
|
|
83
|
+
},
|
|
84
|
+
dpopMode: process.env.AUTH_DPOP_MODE,
|
|
85
|
+
/**
|
|
86
|
+
* Pepper for HMAC-SHA256 hashing of refresh-token secrets.
|
|
87
|
+
* Distinct from JWT_SECRET so a JWT signing leak alone cannot forge DB hashes.
|
|
88
|
+
*/
|
|
89
|
+
refreshTokenPepper: process.env.REFRESH_TOKEN_PEPPER ?? '',
|
|
66
90
|
throttle: {
|
|
67
91
|
ttl: parseInt(process.env.THROTTLE_TTL || String(THROTTLE_TTL_DEFAULT), 10),
|
|
68
92
|
limit: parseInt(process.env.THROTTLE_LIMIT || String(THROTTLE_LIMIT_DEFAULT), 10),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.config.js","sourceRoot":"","sources":["../../src/config/app.config.ts"],"names":[],"mappings":";;;AAYA,wDAMC;AAED,8DAMC;AAGD,4CAOC;AApCD,2CAA4C;AAE5C,qDAA4F;AAE5F,MAAM,oBAAoB,GAAG,MAAM,CAAC;AACpC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAEnC,qEAAqE;AACrE,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAC1C,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAC5C,MAAM,+BAA+B,GAAG,MAAM,CAAC;AAE/C,SAAgB,sBAAsB,CAAC,GAAuB;IAC7D,IAAI,CAAC,GAAG;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OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;YAC1E,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;YACzE,WAAW,EACV,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,aAAa;SAC/E;QAED,EAAE,EAAE;YACH,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,MAAM;YAC1C,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;YACpC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;YACzC,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;SACjD;KACD,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -5,6 +5,9 @@ export declare const databaseConfig: (() => {
|
|
|
5
5
|
password: string;
|
|
6
6
|
name: string;
|
|
7
7
|
ssl: import("./tls.util").PostgresSslOptions;
|
|
8
|
+
/** pg pool size per process — size for replica count × max ≤ Postgres max_connections. */
|
|
9
|
+
poolMax: number;
|
|
10
|
+
poolIdleTimeoutMs: number;
|
|
8
11
|
}) & import("@nestjs/config").ConfigFactoryKeyHost<{
|
|
9
12
|
host: string;
|
|
10
13
|
port: number;
|
|
@@ -12,5 +15,8 @@ export declare const databaseConfig: (() => {
|
|
|
12
15
|
password: string;
|
|
13
16
|
name: string;
|
|
14
17
|
ssl: import("./tls.util").PostgresSslOptions;
|
|
18
|
+
/** pg pool size per process — size for replica count × max ≤ Postgres max_connections. */
|
|
19
|
+
poolMax: number;
|
|
20
|
+
poolIdleTimeoutMs: number;
|
|
15
21
|
}>;
|
|
16
22
|
//# sourceMappingURL=database.config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.config.d.ts","sourceRoot":"","sources":["../../src/config/database.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"database.config.d.ts","sourceRoot":"","sources":["../../src/config/database.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;IAO1B,0FAA0F;;;;;;;;;;IAA1F,0FAA0F;;;EAGxF,CAAC"}
|
|
@@ -10,5 +10,8 @@ exports.databaseConfig = (0, config_1.registerAs)('database', () => ({
|
|
|
10
10
|
password: process.env.DATABASE_PASSWORD || '',
|
|
11
11
|
name: process.env.DATABASE_NAME || 'colveor_core',
|
|
12
12
|
ssl: (0, tls_util_1.postgresSslFromEnv)(),
|
|
13
|
+
/** pg pool size per process — size for replica count × max ≤ Postgres max_connections. */
|
|
14
|
+
poolMax: parseInt(process.env.DATABASE_POOL_MAX || '20', 10),
|
|
15
|
+
poolIdleTimeoutMs: parseInt(process.env.DATABASE_POOL_IDLE_TIMEOUT_MS || '30000', 10),
|
|
13
16
|
}));
|
|
14
17
|
//# sourceMappingURL=database.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.config.js","sourceRoot":"","sources":["../../src/config/database.config.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAE5C,yCAAgD;AAEnC,QAAA,cAAc,GAAG,IAAA,mBAAU,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,WAAW;IAC9C,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,MAAM,EAAE,EAAE,CAAC;IACvD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,UAAU;IACrD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,EAAE;IAC7C,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,cAAc;IACjD,GAAG,EAAE,IAAA,6BAAkB,GAAE;
|
|
1
|
+
{"version":3,"file":"database.config.js","sourceRoot":"","sources":["../../src/config/database.config.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAE5C,yCAAgD;AAEnC,QAAA,cAAc,GAAG,IAAA,mBAAU,EAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,WAAW;IAC9C,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,MAAM,EAAE,EAAE,CAAC;IACvD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,UAAU;IACrD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,EAAE;IAC7C,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,cAAc;IACjD,GAAG,EAAE,IAAA,6BAAkB,GAAE;IACzB,0FAA0F;IAC1F,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,IAAI,EAAE,EAAE,CAAC;IAC5D,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI,OAAO,EAAE,EAAE,CAAC;CACrF,CAAC,CAAC,CAAC"}
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
export declare function isRedisEnabled(): boolean;
|
|
6
6
|
export declare function isObservabilityEnabled(): boolean;
|
|
7
7
|
export declare function isMetricsEnabled(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Realtime WebSocket module. Prefer env; CoreModuleOptions.modules.realtime overrides when set.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isRealtimeEnabled(): boolean;
|
|
8
12
|
//# sourceMappingURL=env-flags.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-flags.util.d.ts","sourceRoot":"","sources":["../../src/config/env-flags.util.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAED,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C"}
|
|
1
|
+
{"version":3,"file":"env-flags.util.d.ts","sourceRoot":"","sources":["../../src/config/env-flags.util.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAED,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C"}
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.isRedisEnabled = isRedisEnabled;
|
|
8
8
|
exports.isObservabilityEnabled = isObservabilityEnabled;
|
|
9
9
|
exports.isMetricsEnabled = isMetricsEnabled;
|
|
10
|
+
exports.isRealtimeEnabled = isRealtimeEnabled;
|
|
10
11
|
function isRedisEnabled() {
|
|
11
12
|
return process.env.REDIS_ENABLED === 'true';
|
|
12
13
|
}
|
|
@@ -16,4 +17,10 @@ function isObservabilityEnabled() {
|
|
|
16
17
|
function isMetricsEnabled() {
|
|
17
18
|
return process.env.METRICS_ENABLED !== 'false';
|
|
18
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Realtime WebSocket module. Prefer env; CoreModuleOptions.modules.realtime overrides when set.
|
|
22
|
+
*/
|
|
23
|
+
function isRealtimeEnabled() {
|
|
24
|
+
return process.env.REALTIME_ENABLED === 'true';
|
|
25
|
+
}
|
|
19
26
|
//# sourceMappingURL=env-flags.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-flags.util.js","sourceRoot":"","sources":["../../src/config/env-flags.util.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAEH,wCAEC;AAED,wDAEC;AAED,4CAEC;
|
|
1
|
+
{"version":3,"file":"env-flags.util.js","sourceRoot":"","sources":["../../src/config/env-flags.util.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAEH,wCAEC;AAED,wDAEC;AAED,4CAEC;AAKD,8CAEC;AAjBD,SAAgB,cAAc;IAC7B,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,MAAM,CAAC;AAC7C,CAAC;AAED,SAAgB,sBAAsB;IACrC,OAAO,OAAO,CAAC,GAAG,CAAC,qBAAqB,KAAK,OAAO,CAAC;AACtD,CAAC;AAED,SAAgB,gBAAgB;IAC/B,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,OAAO,CAAC;AAChD,CAAC;AAED;;GAEG;AACH,SAAgB,iBAAiB;IAChC,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,MAAM,CAAC;AAChD,CAAC"}
|
|
@@ -22,6 +22,12 @@ declare class EnvironmentVariables {
|
|
|
22
22
|
DATABASE_SSL_CA?: string;
|
|
23
23
|
JWT_SECRET: string;
|
|
24
24
|
JWT_EXPIRATION: string;
|
|
25
|
+
/**
|
|
26
|
+
* HMAC pepper for refresh-token secret hashes (min 32 chars).
|
|
27
|
+
* Generate: openssl rand -base64 48
|
|
28
|
+
*/
|
|
29
|
+
REFRESH_TOKEN_PEPPER: string;
|
|
30
|
+
REALTIME_ENABLED?: string;
|
|
25
31
|
REDIS_ENABLED: string;
|
|
26
32
|
REDIS_HOST: string;
|
|
27
33
|
REDIS_PORT: number;
|
|
@@ -42,9 +48,26 @@ declare class EnvironmentVariables {
|
|
|
42
48
|
LOG_LEVEL?: string;
|
|
43
49
|
/**
|
|
44
50
|
* AES-256-GCM key (64 lowercase hex chars / 32 bytes) for encrypting sensitive
|
|
45
|
-
*
|
|
51
|
+
* data at rest (OAuth client secrets, MFA fallback). Generate: openssl rand -hex 32
|
|
52
|
+
* Required when NODE_ENV=production.
|
|
46
53
|
*/
|
|
47
54
|
ENCRYPTION_KEY?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Dedicated MFA key (TOTP encrypt + backup HMAC).
|
|
57
|
+
* Required when NODE_ENV=production (do not reuse ENCRYPTION_KEY).
|
|
58
|
+
* Rotate with MFA_ENCRYPTION_KEY_PREVIOUS set to the old value first.
|
|
59
|
+
*/
|
|
60
|
+
MFA_ENCRYPTION_KEY?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Cloudflare Turnstile on send-otp / resend-otp.
|
|
63
|
+
* Required `true` when NODE_ENV=production (enforced in envValidation()).
|
|
64
|
+
*/
|
|
65
|
+
TURNSTILE_ENABLED?: string;
|
|
66
|
+
TURNSTILE_SECRET_KEY?: string;
|
|
67
|
+
TURNSTILE_SITE_KEY?: string;
|
|
68
|
+
/** DPoP mode override: off | optional | required */
|
|
69
|
+
AUTH_DPOP_MODE?: string;
|
|
70
|
+
MFA_ENCRYPTION_KEY_PREVIOUS?: string;
|
|
48
71
|
/** Global rate limit window in milliseconds. @default 60000 */
|
|
49
72
|
THROTTLE_TTL?: number;
|
|
50
73
|
/** Maximum requests per THROTTLE_TTL window. @default 100 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.validation.d.ts","sourceRoot":"","sources":["../../src/config/env.validation.ts"],"names":[],"mappings":"AAeA,oBAAY,WAAW;IACtB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,IAAI,SAAS;CACb;AAED,cAAM,oBAAoB;IAGzB,QAAQ,EAAE,WAAW,CAA2B;IAMhD,IAAI,EAAE,MAAM,CAAQ;IAIpB,SAAS,EAAE,MAAM,CAAW;IAI5B,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,sFAAsF;IAKtF,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAGjC,aAAa,EAAG,MAAM,CAAC;IAIvB,aAAa,EAAE,MAAM,CAAQ;IAG7B,iBAAiB,EAAG,MAAM,CAAC;IAG3B,iBAAiB,EAAG,MAAM,CAAC;IAG3B,aAAa,EAAG,MAAM,CAAC;IAIvB,YAAY,CAAC,EAAE,MAAM,CAAW;IAEhC,uGAAuG;IAGvG,gCA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AE,MAAM,CAAC;IAI9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,oDAAoD;IAGpD,cAAc,CAAC,EAAE,MAAM,CAAC;IAUxB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAGrC,+DAA+D;IAI/D,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6DAA6D;IAI7D,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,wBA4C5D"}
|
|
@@ -38,6 +38,13 @@ class EnvironmentVariables {
|
|
|
38
38
|
DATABASE_SSL_CA;
|
|
39
39
|
JWT_SECRET;
|
|
40
40
|
JWT_EXPIRATION = '1d';
|
|
41
|
+
/**
|
|
42
|
+
* HMAC pepper for refresh-token secret hashes (min 32 chars).
|
|
43
|
+
* Generate: openssl rand -base64 48
|
|
44
|
+
*/
|
|
45
|
+
REFRESH_TOKEN_PEPPER;
|
|
46
|
+
// ─── Realtime ─────────────────────────────────────────────────────────────
|
|
47
|
+
REALTIME_ENABLED;
|
|
41
48
|
// ─── Redis ────────────────────────────────────────────────────────────────
|
|
42
49
|
REDIS_ENABLED = 'false';
|
|
43
50
|
REDIS_HOST = 'localhost';
|
|
@@ -61,9 +68,26 @@ class EnvironmentVariables {
|
|
|
61
68
|
// ─── Encryption ───────────────────────────────────────────────────────────
|
|
62
69
|
/**
|
|
63
70
|
* AES-256-GCM key (64 lowercase hex chars / 32 bytes) for encrypting sensitive
|
|
64
|
-
*
|
|
71
|
+
* data at rest (OAuth client secrets, MFA fallback). Generate: openssl rand -hex 32
|
|
72
|
+
* Required when NODE_ENV=production.
|
|
65
73
|
*/
|
|
66
74
|
ENCRYPTION_KEY;
|
|
75
|
+
/**
|
|
76
|
+
* Dedicated MFA key (TOTP encrypt + backup HMAC).
|
|
77
|
+
* Required when NODE_ENV=production (do not reuse ENCRYPTION_KEY).
|
|
78
|
+
* Rotate with MFA_ENCRYPTION_KEY_PREVIOUS set to the old value first.
|
|
79
|
+
*/
|
|
80
|
+
MFA_ENCRYPTION_KEY;
|
|
81
|
+
/**
|
|
82
|
+
* Cloudflare Turnstile on send-otp / resend-otp.
|
|
83
|
+
* Required `true` when NODE_ENV=production (enforced in envValidation()).
|
|
84
|
+
*/
|
|
85
|
+
TURNSTILE_ENABLED;
|
|
86
|
+
TURNSTILE_SECRET_KEY;
|
|
87
|
+
TURNSTILE_SITE_KEY;
|
|
88
|
+
/** DPoP mode override: off | optional | required */
|
|
89
|
+
AUTH_DPOP_MODE;
|
|
90
|
+
MFA_ENCRYPTION_KEY_PREVIOUS;
|
|
67
91
|
// ─── Throttler ────────────────────────────────────────────────────────────
|
|
68
92
|
/** Global rate limit window in milliseconds. @default 60000 */
|
|
69
93
|
THROTTLE_TTL;
|
|
@@ -150,6 +174,18 @@ __decorate([
|
|
|
150
174
|
(0, class_validator_1.IsOptional)(),
|
|
151
175
|
__metadata("design:type", String)
|
|
152
176
|
], EnvironmentVariables.prototype, "JWT_EXPIRATION", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, class_validator_1.IsString)(),
|
|
179
|
+
(0, class_validator_1.MinLength)(32, {
|
|
180
|
+
message: 'REFRESH_TOKEN_PEPPER must be at least 32 characters for production safety',
|
|
181
|
+
}),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], EnvironmentVariables.prototype, "REFRESH_TOKEN_PEPPER", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, class_validator_1.IsIn)(['true', 'false']),
|
|
186
|
+
(0, class_validator_1.IsOptional)(),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], EnvironmentVariables.prototype, "REALTIME_ENABLED", void 0);
|
|
153
189
|
__decorate([
|
|
154
190
|
(0, class_validator_1.IsString)(),
|
|
155
191
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -236,11 +272,48 @@ __decorate([
|
|
|
236
272
|
__metadata("design:type", String)
|
|
237
273
|
], EnvironmentVariables.prototype, "LOG_LEVEL", void 0);
|
|
238
274
|
__decorate([
|
|
239
|
-
(0, class_validator_1.ValidateIf)((o) => o.
|
|
275
|
+
(0, class_validator_1.ValidateIf)((o) => o.NODE_ENV === Environment.Production ||
|
|
276
|
+
(o.ENCRYPTION_KEY != null && o.ENCRYPTION_KEY !== '')),
|
|
240
277
|
(0, class_validator_1.IsString)(),
|
|
241
278
|
(0, class_validator_1.MinLength)(64, { message: 'ENCRYPTION_KEY must be exactly 64 hex characters (32 bytes)' }),
|
|
242
279
|
__metadata("design:type", String)
|
|
243
280
|
], EnvironmentVariables.prototype, "ENCRYPTION_KEY", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
(0, class_validator_1.ValidateIf)((o) => o.NODE_ENV === Environment.Production ||
|
|
283
|
+
(o.MFA_ENCRYPTION_KEY != null && o.MFA_ENCRYPTION_KEY !== '')),
|
|
284
|
+
(0, class_validator_1.IsString)(),
|
|
285
|
+
(0, class_validator_1.MinLength)(64, { message: 'MFA_ENCRYPTION_KEY must be exactly 64 hex characters (32 bytes)' }),
|
|
286
|
+
__metadata("design:type", String)
|
|
287
|
+
], EnvironmentVariables.prototype, "MFA_ENCRYPTION_KEY", void 0);
|
|
288
|
+
__decorate([
|
|
289
|
+
(0, class_validator_1.IsIn)(['true', 'false']),
|
|
290
|
+
(0, class_validator_1.IsOptional)(),
|
|
291
|
+
__metadata("design:type", String)
|
|
292
|
+
], EnvironmentVariables.prototype, "TURNSTILE_ENABLED", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
(0, class_validator_1.ValidateIf)((o) => o.TURNSTILE_ENABLED === 'true'),
|
|
295
|
+
(0, class_validator_1.IsString)(),
|
|
296
|
+
(0, class_validator_1.MinLength)(10, { message: 'TURNSTILE_SECRET_KEY is required when TURNSTILE_ENABLED=true' }),
|
|
297
|
+
__metadata("design:type", String)
|
|
298
|
+
], EnvironmentVariables.prototype, "TURNSTILE_SECRET_KEY", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
(0, class_validator_1.IsString)(),
|
|
301
|
+
(0, class_validator_1.IsOptional)(),
|
|
302
|
+
__metadata("design:type", String)
|
|
303
|
+
], EnvironmentVariables.prototype, "TURNSTILE_SITE_KEY", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, class_validator_1.IsIn)(['off', 'optional', 'required']),
|
|
306
|
+
(0, class_validator_1.IsOptional)(),
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], EnvironmentVariables.prototype, "AUTH_DPOP_MODE", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
(0, class_validator_1.ValidateIf)((o) => o.MFA_ENCRYPTION_KEY_PREVIOUS != null && o.MFA_ENCRYPTION_KEY_PREVIOUS !== ''),
|
|
311
|
+
(0, class_validator_1.IsString)(),
|
|
312
|
+
(0, class_validator_1.MinLength)(64, {
|
|
313
|
+
message: 'MFA_ENCRYPTION_KEY_PREVIOUS must be exactly 64 hex characters (32 bytes)',
|
|
314
|
+
}),
|
|
315
|
+
__metadata("design:type", String)
|
|
316
|
+
], EnvironmentVariables.prototype, "MFA_ENCRYPTION_KEY_PREVIOUS", void 0);
|
|
244
317
|
__decorate([
|
|
245
318
|
(0, class_validator_1.IsNumber)(),
|
|
246
319
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -286,6 +359,23 @@ function envValidation(config) {
|
|
|
286
359
|
if (errors.length > 0) {
|
|
287
360
|
throw new Error(errors.toString());
|
|
288
361
|
}
|
|
362
|
+
if (validatedConfig.NODE_ENV === Environment.Production) {
|
|
363
|
+
if (validatedConfig.TURNSTILE_ENABLED !== 'true') {
|
|
364
|
+
throw new Error('TURNSTILE_ENABLED must be true when NODE_ENV=production (send-otp / hasAccount protection).');
|
|
365
|
+
}
|
|
366
|
+
if (!validatedConfig.TURNSTILE_SECRET_KEY ||
|
|
367
|
+
validatedConfig.TURNSTILE_SECRET_KEY.length < 10) {
|
|
368
|
+
throw new Error('TURNSTILE_SECRET_KEY is required when NODE_ENV=production (min 10 characters).');
|
|
369
|
+
}
|
|
370
|
+
if (validatedConfig.AUTH_DPOP_MODE !== 'required') {
|
|
371
|
+
throw new Error('AUTH_DPOP_MODE must be required when NODE_ENV=production (sender-bound access tokens).');
|
|
372
|
+
}
|
|
373
|
+
if (validatedConfig.ENCRYPTION_KEY &&
|
|
374
|
+
validatedConfig.MFA_ENCRYPTION_KEY &&
|
|
375
|
+
validatedConfig.ENCRYPTION_KEY === validatedConfig.MFA_ENCRYPTION_KEY) {
|
|
376
|
+
throw new Error('MFA_ENCRYPTION_KEY must be distinct from ENCRYPTION_KEY in production (separate blast radius).');
|
|
377
|
+
}
|
|
378
|
+
}
|
|
289
379
|
return validatedConfig;
|
|
290
380
|
}
|
|
291
381
|
//# sourceMappingURL=env.validation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.validation.js","sourceRoot":"","sources":["../../src/config/env.validation.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"env.validation.js","sourceRoot":"","sources":["../../src/config/env.validation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyQA,sCA4CC;AArTD,yDAAoD;AACpD,qDAYyB;AAEzB,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,4BAAa,CAAA;AACd,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,MAAM,oBAAoB;IAGzB,QAAQ,GAAgB,WAAW,CAAC,WAAW,CAAC;IAMhD,IAAI,GAAW,IAAI,CAAC;IAIpB,SAAS,GAAW,OAAO,CAAC;IAI5B,eAAe,CAAU;IAEzB,sFAAsF;IAKtF,uBAAuB,CAAU;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