@colveor/core 1.0.1 → 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 +23 -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 +5 -0
- package/dist/modules/users/dto/user.dto.d.ts.map +1 -1
- package/dist/modules/users/dto/user.dto.js +46 -5
- 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
|
@@ -14,14 +14,21 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.SettingsService = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
+
const config_1 = require("@nestjs/config");
|
|
17
18
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
19
|
const typeorm_2 = require("typeorm");
|
|
20
|
+
const cache_version_util_1 = require("../../../common/utils/cache-version.util");
|
|
21
|
+
const redis_module_1 = require("../../../config/redis.module");
|
|
19
22
|
const structured_logger_service_1 = require("../../observability/logging/structured-logger.service");
|
|
20
23
|
const settings_defaults_1 = require("../constants/settings.defaults");
|
|
21
24
|
const app_setting_entity_1 = require("../entities/app-setting.entity");
|
|
25
|
+
const settings_secret_util_1 = require("../utils/settings-secret.util");
|
|
26
|
+
const CACHE_POLL_MS = 2_000;
|
|
22
27
|
let SettingsService = class SettingsService {
|
|
23
28
|
repo;
|
|
24
29
|
logger;
|
|
30
|
+
configService;
|
|
31
|
+
redis;
|
|
25
32
|
/** Raw string values keyed by setting key (populated from DB at boot). */
|
|
26
33
|
valueCache = new Map();
|
|
27
34
|
/** Stored parse type per key (integer | boolean | json | string). */
|
|
@@ -32,12 +39,29 @@ let SettingsService = class SettingsService {
|
|
|
32
39
|
* Registered via registerChangeHook() from any OnModuleInit.
|
|
33
40
|
*/
|
|
34
41
|
changeHooks = [];
|
|
35
|
-
|
|
42
|
+
localCacheVersion = '0';
|
|
43
|
+
pollTimer = null;
|
|
44
|
+
constructor(repo, logger, configService, redis) {
|
|
36
45
|
this.repo = repo;
|
|
37
46
|
this.logger = logger;
|
|
47
|
+
this.configService = configService;
|
|
48
|
+
this.redis = redis;
|
|
49
|
+
}
|
|
50
|
+
get encryptionKey() {
|
|
51
|
+
return this.configService.get('app.encryptionKey') || undefined;
|
|
38
52
|
}
|
|
39
53
|
async onModuleInit() {
|
|
40
54
|
await this.loadAll();
|
|
55
|
+
this.localCacheVersion = await (0, cache_version_util_1.readCacheVersion)(this.redis, 'settings');
|
|
56
|
+
this.pollTimer = setInterval(() => {
|
|
57
|
+
void this.pollRemoteCacheVersion();
|
|
58
|
+
}, CACHE_POLL_MS);
|
|
59
|
+
}
|
|
60
|
+
onModuleDestroy() {
|
|
61
|
+
if (this.pollTimer) {
|
|
62
|
+
clearInterval(this.pollTimer);
|
|
63
|
+
this.pollTimer = null;
|
|
64
|
+
}
|
|
41
65
|
}
|
|
42
66
|
// ─── Read ────────────────────────────────────────────────────────────────
|
|
43
67
|
/**
|
|
@@ -59,18 +83,21 @@ let SettingsService = class SettingsService {
|
|
|
59
83
|
const raw = this.valueCache.get(key);
|
|
60
84
|
if (raw !== undefined) {
|
|
61
85
|
const type = this.typeCache.get(key) ?? 'string';
|
|
86
|
+
const plaintext = (0, settings_secret_util_1.isSecretSettingKey)(key)
|
|
87
|
+
? (0, settings_secret_util_1.tryOpenSettingSecret)(raw, this.encryptionKey)
|
|
88
|
+
: raw;
|
|
62
89
|
try {
|
|
63
90
|
switch (type) {
|
|
64
91
|
case 'integer':
|
|
65
|
-
return parseInt(
|
|
92
|
+
return parseInt(plaintext, 10);
|
|
66
93
|
case 'boolean':
|
|
67
|
-
return (
|
|
94
|
+
return (plaintext === 'true');
|
|
68
95
|
case 'json':
|
|
69
|
-
return JSON.parse(
|
|
96
|
+
return JSON.parse(plaintext);
|
|
70
97
|
case 'arrayOfObject':
|
|
71
|
-
return JSON.parse(
|
|
98
|
+
return JSON.parse(plaintext);
|
|
72
99
|
default:
|
|
73
|
-
return
|
|
100
|
+
return plaintext;
|
|
74
101
|
}
|
|
75
102
|
}
|
|
76
103
|
catch {
|
|
@@ -100,15 +127,30 @@ let SettingsService = class SettingsService {
|
|
|
100
127
|
* registered change hooks whose prefix matches the key.
|
|
101
128
|
* Throws if the key does not exist (settings are not created ad hoc).
|
|
102
129
|
*/
|
|
103
|
-
async set(key, value, updatedById) {
|
|
104
|
-
|
|
130
|
+
async set(key, value, updatedById, manager) {
|
|
131
|
+
let raw = typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean'
|
|
105
132
|
? String(value)
|
|
106
133
|
: JSON.stringify(value);
|
|
107
|
-
|
|
134
|
+
if ((0, settings_secret_util_1.isSecretSettingKey)(key) && raw.length > 0) {
|
|
135
|
+
if (!this.encryptionKey) {
|
|
136
|
+
const nodeEnv = this.configService.get('app.nodeEnv');
|
|
137
|
+
if (nodeEnv === 'production') {
|
|
138
|
+
throw new Error(`Cannot store secret setting "${key}" without ENCRYPTION_KEY in production.`);
|
|
139
|
+
}
|
|
140
|
+
this.logger.warn('Storing OAuth client secret without ENCRYPTION_KEY — value left plaintext', { event: 'settings.secret.unencrypted', metadata: { key } });
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
raw = (0, settings_secret_util_1.sealSettingSecret)(raw, this.encryptionKey);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const repo = manager?.getRepository(app_setting_entity_1.AppSetting) ?? this.repo;
|
|
147
|
+
const result = await repo.update({ key }, { value: raw, updatedById });
|
|
108
148
|
if (!result.affected) {
|
|
109
149
|
throw new Error(`Setting key "${key}" does not exist.`);
|
|
110
150
|
}
|
|
111
151
|
this.valueCache.set(key, raw);
|
|
152
|
+
await (0, cache_version_util_1.bumpCacheVersion)(this.redis, 'settings');
|
|
153
|
+
this.localCacheVersion = await (0, cache_version_util_1.readCacheVersion)(this.redis, 'settings');
|
|
112
154
|
this.logger.info('Setting updated', {
|
|
113
155
|
event: 'settings.updated',
|
|
114
156
|
metadata: { key, ...(updatedById && { updatedById }) },
|
|
@@ -133,15 +175,37 @@ let SettingsService = class SettingsService {
|
|
|
133
175
|
*/
|
|
134
176
|
async reload() {
|
|
135
177
|
await this.loadAll();
|
|
178
|
+
this.localCacheVersion = await (0, cache_version_util_1.readCacheVersion)(this.redis, 'settings');
|
|
136
179
|
this.logger.info('Settings cache reloaded', { event: 'settings.cache.reloaded' });
|
|
137
180
|
}
|
|
138
|
-
|
|
181
|
+
async pollRemoteCacheVersion() {
|
|
182
|
+
const remote = await (0, cache_version_util_1.readCacheVersion)(this.redis, 'settings');
|
|
183
|
+
if (remote === this.localCacheVersion)
|
|
184
|
+
return;
|
|
185
|
+
await this.loadAll();
|
|
186
|
+
this.localCacheVersion = remote;
|
|
187
|
+
this.logger.info('Settings cache reloaded from remote version bump', {
|
|
188
|
+
event: 'settings.cache.remote_reload',
|
|
189
|
+
metadata: { version: remote },
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/** Returns all settings rows (for admin read endpoints). Secrets are redacted. */
|
|
139
193
|
async findAll() {
|
|
140
|
-
|
|
194
|
+
const rows = await this.repo.find({ order: { group: 'ASC', key: 'ASC' } });
|
|
195
|
+
return rows.map((row) => this.redactSecretRow(row));
|
|
141
196
|
}
|
|
142
|
-
/** Returns a single setting row by key, or null if it doesn't exist. */
|
|
197
|
+
/** Returns a single setting row by key, or null if it doesn't exist. Secrets are redacted. */
|
|
143
198
|
async findOne(key) {
|
|
144
|
-
|
|
199
|
+
const row = await this.repo.findOne({ where: { key } });
|
|
200
|
+
return row ? this.redactSecretRow(row) : null;
|
|
201
|
+
}
|
|
202
|
+
redactSecretRow(row) {
|
|
203
|
+
if (!(0, settings_secret_util_1.isSecretSettingKey)(row.key) || !row.value)
|
|
204
|
+
return row;
|
|
205
|
+
return {
|
|
206
|
+
...row,
|
|
207
|
+
value: row.value.startsWith(settings_secret_util_1.SETTINGS_SECRET_PREFIX) ? '[encrypted]' : '[redacted]',
|
|
208
|
+
};
|
|
145
209
|
}
|
|
146
210
|
// ─── Private ─────────────────────────────────────────────────────────────
|
|
147
211
|
async loadAll() {
|
|
@@ -185,7 +249,9 @@ exports.SettingsService = SettingsService;
|
|
|
185
249
|
exports.SettingsService = SettingsService = __decorate([
|
|
186
250
|
(0, common_1.Injectable)(),
|
|
187
251
|
__param(0, (0, typeorm_1.InjectRepository)(app_setting_entity_1.AppSetting)),
|
|
252
|
+
__param(3, (0, common_1.Inject)(redis_module_1.REDIS_CLIENT)),
|
|
188
253
|
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
189
|
-
structured_logger_service_1.StructuredLoggerService
|
|
254
|
+
structured_logger_service_1.StructuredLoggerService,
|
|
255
|
+
config_1.ConfigService, Function])
|
|
190
256
|
], SettingsService);
|
|
191
257
|
//# sourceMappingURL=settings.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../../../src/modules/settings/services/settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../../../src/modules/settings/services/settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmF;AACnF,2CAA+C;AAC/C,6CAAmD;AAEnD,qCAAoD;AAEpD,iFAA8F;AAC9F,+DAA4D;AAC5D,qGAAgG;AAChG,sEAAkE;AAClE,uEAAyE;AACzE,wEAKuC;AAIvC,MAAM,aAAa,GAAG,KAAK,CAAC;AAGrB,IAAM,eAAe,G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,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;qBAC3C,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;CACD,CAAA;AAxPY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAgBV,WAAA,IAAA,0BAAgB,EAAC,+BAAU,CAAC,CAAA;IAI5B,WAAA,IAAA,eAAM,EAAC,2BAAY,CAAC,CAAA;qCAHE,oBAAU;QACR,mDAAuB;QAChB,sBAAa;GAlBlC,eAAe,CAwP3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Prefix for AES-GCM encrypted setting values stored in app_settings. */
|
|
2
|
+
export declare const SETTINGS_SECRET_PREFIX = "enc:v1:";
|
|
3
|
+
export declare function isSecretSettingKey(key: string): boolean;
|
|
4
|
+
/** OAuth audience / redirect allowlists — API cannot widen (phishing / callback hijack). */
|
|
5
|
+
export declare function isOAuthAllowlistSettingKey(key: string): boolean;
|
|
6
|
+
export declare function isOpsOnlySettingKey(key: string): boolean;
|
|
7
|
+
/** Encrypt a secret setting for DB storage (no-op when already encrypted or empty). */
|
|
8
|
+
export declare function sealSettingSecret(raw: string, encryptionKey: string | undefined): string;
|
|
9
|
+
/** Decrypt a secret setting for runtime use. */
|
|
10
|
+
export declare function openSettingSecret(stored: string, encryptionKey: string | undefined): string;
|
|
11
|
+
/** Best-effort decrypt for cache reads (returns stored value if decrypt fails). */
|
|
12
|
+
export declare function tryOpenSettingSecret(stored: string, encryptionKey: string | undefined): string;
|
|
13
|
+
//# sourceMappingURL=settings-secret.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-secret.util.d.ts","sourceRoot":"","sources":["../../../../src/modules/settings/utils/settings-secret.util.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAqBhD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,4FAA4F;AAC5F,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAM/D;AAcD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,uFAAuF;AACvF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAIxF;AAED,gDAAgD;AAChD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAO3F;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK9F"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SETTINGS_SECRET_PREFIX = void 0;
|
|
4
|
+
exports.isSecretSettingKey = isSecretSettingKey;
|
|
5
|
+
exports.isOAuthAllowlistSettingKey = isOAuthAllowlistSettingKey;
|
|
6
|
+
exports.isOpsOnlySettingKey = isOpsOnlySettingKey;
|
|
7
|
+
exports.sealSettingSecret = sealSettingSecret;
|
|
8
|
+
exports.openSettingSecret = openSettingSecret;
|
|
9
|
+
exports.tryOpenSettingSecret = tryOpenSettingSecret;
|
|
10
|
+
const encryption_util_1 = require("../../../config/encryption.util");
|
|
11
|
+
/** Prefix for AES-GCM encrypted setting values stored in app_settings. */
|
|
12
|
+
exports.SETTINGS_SECRET_PREFIX = 'enc:v1:';
|
|
13
|
+
const SECRET_KEY_EXACT = new Set([
|
|
14
|
+
'auth.turnstile.secret_key',
|
|
15
|
+
'sms.twilio_auth_token',
|
|
16
|
+
'sms.termii_api_key',
|
|
17
|
+
'sms.infobip_api_key',
|
|
18
|
+
'sms.smartsms_token',
|
|
19
|
+
'email.smtp_pass',
|
|
20
|
+
'firebase.private_key',
|
|
21
|
+
'firebase.api_key',
|
|
22
|
+
]);
|
|
23
|
+
const SECRET_KEY_SUFFIXES = [
|
|
24
|
+
'.client_secret',
|
|
25
|
+
'_auth_token',
|
|
26
|
+
'_api_key',
|
|
27
|
+
'.smtp_pass',
|
|
28
|
+
'.private_key',
|
|
29
|
+
];
|
|
30
|
+
function isSecretSettingKey(key) {
|
|
31
|
+
return SECRET_KEY_EXACT.has(key) || SECRET_KEY_SUFFIXES.some((suffix) => key.endsWith(suffix));
|
|
32
|
+
}
|
|
33
|
+
/** OAuth audience / redirect allowlists — API cannot widen (phishing / callback hijack). */
|
|
34
|
+
function isOAuthAllowlistSettingKey(key) {
|
|
35
|
+
return (key === 'auth.oauth.redirect_uris' ||
|
|
36
|
+
key.endsWith('.client_ids') ||
|
|
37
|
+
key.endsWith('.redirect_uris'));
|
|
38
|
+
}
|
|
39
|
+
/** Non-secret knobs that must stay ops/seed-only (auth surface / trust boundary / test). */
|
|
40
|
+
const OPS_ONLY_SETTING_KEYS = new Set([
|
|
41
|
+
'auth.method',
|
|
42
|
+
'auth.supported_login_methods',
|
|
43
|
+
'auth.supported_registration_methods',
|
|
44
|
+
'auth.oauth.providers',
|
|
45
|
+
'auth.oauth.google.hosted_domain',
|
|
46
|
+
'auth.oauth.microsoft.tenant',
|
|
47
|
+
'auth.oauth.auto_link_verified_email',
|
|
48
|
+
'test.otp_identifiers',
|
|
49
|
+
]);
|
|
50
|
+
function isOpsOnlySettingKey(key) {
|
|
51
|
+
return OPS_ONLY_SETTING_KEYS.has(key);
|
|
52
|
+
}
|
|
53
|
+
/** Encrypt a secret setting for DB storage (no-op when already encrypted or empty). */
|
|
54
|
+
function sealSettingSecret(raw, encryptionKey) {
|
|
55
|
+
if (!raw || raw.startsWith(exports.SETTINGS_SECRET_PREFIX))
|
|
56
|
+
return raw;
|
|
57
|
+
if (!encryptionKey)
|
|
58
|
+
return raw;
|
|
59
|
+
return `${exports.SETTINGS_SECRET_PREFIX}${(0, encryption_util_1.encrypt)(raw, encryptionKey)}`;
|
|
60
|
+
}
|
|
61
|
+
/** Decrypt a secret setting for runtime use. */
|
|
62
|
+
function openSettingSecret(stored, encryptionKey) {
|
|
63
|
+
if (!stored.startsWith(exports.SETTINGS_SECRET_PREFIX))
|
|
64
|
+
return stored;
|
|
65
|
+
if (!encryptionKey) {
|
|
66
|
+
throw new Error('Encrypted setting requires ENCRYPTION_KEY to decrypt secret settings.');
|
|
67
|
+
}
|
|
68
|
+
const payload = stored.slice(exports.SETTINGS_SECRET_PREFIX.length);
|
|
69
|
+
return (0, encryption_util_1.decrypt)(payload, encryptionKey);
|
|
70
|
+
}
|
|
71
|
+
/** Best-effort decrypt for cache reads (returns stored value if decrypt fails). */
|
|
72
|
+
function tryOpenSettingSecret(stored, encryptionKey) {
|
|
73
|
+
if (!stored.startsWith(exports.SETTINGS_SECRET_PREFIX))
|
|
74
|
+
return stored;
|
|
75
|
+
if (!encryptionKey)
|
|
76
|
+
return stored;
|
|
77
|
+
const payload = stored.slice(exports.SETTINGS_SECRET_PREFIX.length);
|
|
78
|
+
return (0, encryption_util_1.tryDecrypt)(payload, encryptionKey) ?? stored;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=settings-secret.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-secret.util.js","sourceRoot":"","sources":["../../../../src/modules/settings/utils/settings-secret.util.ts"],"names":[],"mappings":";;;AAwBA,gDAEC;AAGD,gEAMC;AAcD,kDAEC;AAGD,8CAIC;AAGD,8CAOC;AAGD,oDAKC;AA5ED,qEAA+E;AAE/E,0EAA0E;AAC7D,QAAA,sBAAsB,GAAG,SAAS,CAAC;AAEhD,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC;IAChC,2BAA2B;IAC3B,uBAAuB;IACvB,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;IACpB,iBAAiB;IACjB,sBAAsB;IACtB,kBA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8BAAsB,CAAC;QAAE,OAAO,MAAM,CAAC;IAC9D,IAAI,CAAC,aAAa,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;IAC1F,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,8BAAsB,CAAC,MAAM,CAAC,CAAC;IAC5D,OAAO,IAAA,yBAAO,EAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AACxC,CAAC;AAED,mFAAmF;AACnF,SAAgB,oBAAoB,CAAC,MAAc,EAAE,aAAiC;IACrF,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,8BAAsB,CAAC;QAAE,OAAO,MAAM,CAAC;IAC9D,IAAI,CAAC,aAAa;QAAE,OAAO,MAAM,CAAC;IAClC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,8BAAsB,CAAC,MAAM,CAAC,CAAC;IAC5D,OAAO,IAAA,4BAAU,EAAC,OAAO,EAAE,aAAa,CAAC,IAAI,MAAM,CAAC;AACrD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Request } from 'express';
|
|
2
2
|
import { RequestUser } from '../../../common/interfaces/request-user';
|
|
3
3
|
import { AdminLogService } from '../../admin/services/admin-log.service';
|
|
4
|
+
import { AuditService } from '../../audit/services/audit.service';
|
|
4
5
|
import { NotificationDeliveryService } from '../../delivery';
|
|
5
6
|
import { StructuredLoggerService } from '../../observability/logging/structured-logger.service';
|
|
6
7
|
import { CreateUserDto, MeResponseDto, UpdateUserDto, UserFilterDto, UserResponseDto } from '../dto/user.dto';
|
|
@@ -10,8 +11,9 @@ export declare class UsersController {
|
|
|
10
11
|
private readonly adminLog;
|
|
11
12
|
private readonly notificationDelivery;
|
|
12
13
|
private readonly logger;
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
private readonly audit;
|
|
15
|
+
constructor(usersService: UsersService, adminLog: AdminLogService, notificationDelivery: NotificationDeliveryService | null, logger: StructuredLoggerService, audit: AuditService);
|
|
16
|
+
create(createUserDto: CreateUserDto, actor: RequestUser, req: Request): Promise<UserResponseDto>;
|
|
15
17
|
findAll(filter: UserFilterDto): Promise<import("../../../common").PaginatedResult<UserResponseDto>>;
|
|
16
18
|
getStats(): Promise<{
|
|
17
19
|
total: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/users/controllers/users.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAMlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"users.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/users/controllers/users.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAMlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAEhG,OAAO,EACN,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,qBAIa,eAAe;IAE1B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAEzB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBALL,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,eAAe,EAEzB,oBAAoB,EAAE,2BAA2B,GAAG,IAAI,EACxD,MAAM,EAAE,uBAAuB,EAC/B,KAAK,EAAE,YAAY;IAM/B,MAAM,CACH,aAAa,EAAE,aAAa,EACrB,KAAK,EAAE,WAAW,EAC1B,GAAG,EAAE,OAAO;IAgDd,OAAO,CAAU,MAAM,EAAE,aAAa;IAUtC,QAAQ;;;;;;;;IAWR,KAAK,CAAgB,IAAI,EAAE,WAAW;IAQtC,OAAO,CAA6B,EAAE,EAAE,MAAM;IAY9C,QAAQ,CAAgB,IAAI,EAAE,WAAW,EAAU,aAAa,EAAE,aAAa;IAW/E,MAAM,CACiB,EAAE,EAAE,MAAM,EAC9B,aAAa,EAAE,aAAa,EACrB,KAAK,EAAE,WAAW,EAC1B,GAAG,EAAE,OAAO;IA2Ed,MAAM,CACiB,EAAE,EAAE,MAAM,EACvB,KAAK,EAAE,WAAW,EAC1B,GAAG,EAAE,OAAO;;;IAiBd,UAAU,CACa,EAAE,EAAE,MAAM,EACvB,KAAK,EAAE,WAAW,EAC1B,GAAG,EAAE,OAAO;IAiBd,QAAQ,CACe,EAAE,EAAE,MAAM,EACvB,KAAK,EAAE,WAAW,EAC1B,GAAG,EAAE,OAAO;CAapB"}
|
|
@@ -21,7 +21,10 @@ const auth_guard_1 = require("../../../common/guards/auth.guard");
|
|
|
21
21
|
const permissions_guard_1 = require("../../../common/guards/permissions.guard");
|
|
22
22
|
const request_utils_1 = require("../../../common/utils/request.utils");
|
|
23
23
|
const admin_log_service_1 = require("../../admin/services/admin-log.service");
|
|
24
|
+
const audit_actions_1 = require("../../audit/constants/audit-actions");
|
|
25
|
+
const audit_service_1 = require("../../audit/services/audit.service");
|
|
24
26
|
const structured_logger_service_1 = require("../../observability/logging/structured-logger.service");
|
|
27
|
+
const profile_manifest_1 = require("../../profile/profile.manifest");
|
|
25
28
|
const user_dto_1 = require("../dto/user.dto");
|
|
26
29
|
const users_service_1 = require("../services/users.service");
|
|
27
30
|
let UsersController = class UsersController {
|
|
@@ -29,14 +32,28 @@ let UsersController = class UsersController {
|
|
|
29
32
|
adminLog;
|
|
30
33
|
notificationDelivery;
|
|
31
34
|
logger;
|
|
32
|
-
|
|
35
|
+
audit;
|
|
36
|
+
constructor(usersService, adminLog, notificationDelivery, logger, audit) {
|
|
33
37
|
this.usersService = usersService;
|
|
34
38
|
this.adminLog = adminLog;
|
|
35
39
|
this.notificationDelivery = notificationDelivery;
|
|
36
40
|
this.logger = logger;
|
|
41
|
+
this.audit = audit;
|
|
37
42
|
}
|
|
38
|
-
async create(createUserDto) {
|
|
43
|
+
async create(createUserDto, actor, req) {
|
|
39
44
|
const user = await this.usersService.create(createUserDto);
|
|
45
|
+
const { ip } = (0, request_utils_1.extractRequestInfo)(req);
|
|
46
|
+
this.adminLog.log({
|
|
47
|
+
actorId: actor.id,
|
|
48
|
+
action: audit_actions_1.AUDIT_ACTIONS.USER_CREATE,
|
|
49
|
+
targetType: 'user',
|
|
50
|
+
targetId: user.id,
|
|
51
|
+
ipAddress: ip,
|
|
52
|
+
metadata: {
|
|
53
|
+
authMethod: user.authMethod,
|
|
54
|
+
hasEmail: Boolean(createUserDto.email),
|
|
55
|
+
},
|
|
56
|
+
});
|
|
40
57
|
if (createUserDto.email && this.notificationDelivery?.isEnabled()) {
|
|
41
58
|
void this.notificationDelivery
|
|
42
59
|
.sendAccountCreatedEmail(user.id, createUserDto.email, {
|
|
@@ -69,22 +86,76 @@ let UsersController = class UsersController {
|
|
|
69
86
|
}
|
|
70
87
|
async updateMe(user, updateUserDto) {
|
|
71
88
|
const allowedUpdates = {
|
|
72
|
-
phoneNumber: updateUserDto.phoneNumber,
|
|
73
89
|
profile: updateUserDto.profile,
|
|
74
90
|
};
|
|
75
91
|
const updatedUser = await this.usersService.update(user.id, allowedUpdates);
|
|
76
92
|
return user_dto_1.UserResponseDto.fromUser(updatedUser);
|
|
77
93
|
}
|
|
78
94
|
async update(id, updateUserDto, actor, req) {
|
|
95
|
+
const before = await this.usersService.findByIdOrFail(id);
|
|
79
96
|
const updatedUser = await this.usersService.update(id, updateUserDto);
|
|
80
97
|
const { ip } = (0, request_utils_1.extractRequestInfo)(req);
|
|
98
|
+
const emailChanged = before.email !== updatedUser.email;
|
|
99
|
+
const phoneChanged = before.phoneNumber !== updatedUser.phoneNumber;
|
|
100
|
+
const emailVerifiedSet = updateUserDto.isEmailVerified === true && !before.isEmailVerified;
|
|
101
|
+
const phoneVerifiedSet = updateUserDto.isPhoneVerified === true && !before.isPhoneVerified;
|
|
81
102
|
this.adminLog.log({
|
|
82
103
|
actorId: actor.id,
|
|
83
|
-
action:
|
|
104
|
+
action: audit_actions_1.AUDIT_ACTIONS.USER_UPDATE,
|
|
84
105
|
targetType: 'user',
|
|
85
106
|
targetId: id,
|
|
86
107
|
ipAddress: ip,
|
|
108
|
+
metadata: {
|
|
109
|
+
emailChanged,
|
|
110
|
+
phoneChanged,
|
|
111
|
+
emailVerifiedSet,
|
|
112
|
+
phoneVerifiedSet,
|
|
113
|
+
},
|
|
87
114
|
});
|
|
115
|
+
if (emailVerifiedSet) {
|
|
116
|
+
this.audit.record({
|
|
117
|
+
action: audit_actions_1.AUDIT_ACTIONS.EMAIL_VERIFIED,
|
|
118
|
+
actorType: 'ADMIN',
|
|
119
|
+
actorId: actor.id,
|
|
120
|
+
resourceType: 'user',
|
|
121
|
+
resourceId: id,
|
|
122
|
+
metadata: { method: 'admin_update' },
|
|
123
|
+
ipAddress: ip,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (phoneVerifiedSet) {
|
|
127
|
+
this.audit.record({
|
|
128
|
+
action: audit_actions_1.AUDIT_ACTIONS.PHONE_VERIFIED,
|
|
129
|
+
actorType: 'ADMIN',
|
|
130
|
+
actorId: actor.id,
|
|
131
|
+
resourceType: 'user',
|
|
132
|
+
resourceId: id,
|
|
133
|
+
metadata: { method: 'admin_update' },
|
|
134
|
+
ipAddress: ip,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
if (emailChanged) {
|
|
138
|
+
this.audit.record({
|
|
139
|
+
action: audit_actions_1.AUDIT_ACTIONS.EMAIL_CHANGED,
|
|
140
|
+
actorType: 'ADMIN',
|
|
141
|
+
actorId: actor.id,
|
|
142
|
+
resourceType: 'user',
|
|
143
|
+
resourceId: id,
|
|
144
|
+
metadata: { method: 'admin_update' },
|
|
145
|
+
ipAddress: ip,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
if (phoneChanged) {
|
|
149
|
+
this.audit.record({
|
|
150
|
+
action: audit_actions_1.AUDIT_ACTIONS.PHONE_CHANGED,
|
|
151
|
+
actorType: 'ADMIN',
|
|
152
|
+
actorId: actor.id,
|
|
153
|
+
resourceType: 'user',
|
|
154
|
+
resourceId: id,
|
|
155
|
+
metadata: { method: 'admin_update' },
|
|
156
|
+
ipAddress: ip,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
88
159
|
return user_dto_1.UserResponseDto.fromUser(updatedUser);
|
|
89
160
|
}
|
|
90
161
|
async remove(id, actor, req) {
|
|
@@ -92,7 +163,7 @@ let UsersController = class UsersController {
|
|
|
92
163
|
const { ip } = (0, request_utils_1.extractRequestInfo)(req);
|
|
93
164
|
this.adminLog.log({
|
|
94
165
|
actorId: actor.id,
|
|
95
|
-
action:
|
|
166
|
+
action: audit_actions_1.AUDIT_ACTIONS.USER_DELETE,
|
|
96
167
|
targetType: 'user',
|
|
97
168
|
targetId: id,
|
|
98
169
|
ipAddress: ip,
|
|
@@ -104,7 +175,7 @@ let UsersController = class UsersController {
|
|
|
104
175
|
const { ip } = (0, request_utils_1.extractRequestInfo)(req);
|
|
105
176
|
this.adminLog.log({
|
|
106
177
|
actorId: actor.id,
|
|
107
|
-
action:
|
|
178
|
+
action: audit_actions_1.AUDIT_ACTIONS.USER_DEACTIVATE,
|
|
108
179
|
targetType: 'user',
|
|
109
180
|
targetId: id,
|
|
110
181
|
ipAddress: ip,
|
|
@@ -116,7 +187,7 @@ let UsersController = class UsersController {
|
|
|
116
187
|
const { ip } = (0, request_utils_1.extractRequestInfo)(req);
|
|
117
188
|
this.adminLog.log({
|
|
118
189
|
actorId: actor.id,
|
|
119
|
-
action:
|
|
190
|
+
action: audit_actions_1.AUDIT_ACTIONS.USER_ACTIVATE,
|
|
120
191
|
targetType: 'user',
|
|
121
192
|
targetId: id,
|
|
122
193
|
ipAddress: ip,
|
|
@@ -130,8 +201,10 @@ __decorate([
|
|
|
130
201
|
(0, decorators_1.RequirePermission)('users:create'),
|
|
131
202
|
(0, swagger_1.ApiOperation)({ summary: 'Create user' }),
|
|
132
203
|
__param(0, (0, common_1.Body)()),
|
|
204
|
+
__param(1, (0, decorators_1.CurrentUser)()),
|
|
205
|
+
__param(2, (0, common_1.Req)()),
|
|
133
206
|
__metadata("design:type", Function),
|
|
134
|
-
__metadata("design:paramtypes", [user_dto_1.CreateUserDto]),
|
|
207
|
+
__metadata("design:paramtypes", [user_dto_1.CreateUserDto, Object, Object]),
|
|
135
208
|
__metadata("design:returntype", Promise)
|
|
136
209
|
], UsersController.prototype, "create", null);
|
|
137
210
|
__decorate([
|
|
@@ -167,6 +240,7 @@ __decorate([
|
|
|
167
240
|
], UsersController.prototype, "getStats", null);
|
|
168
241
|
__decorate([
|
|
169
242
|
(0, common_1.Get)('me'),
|
|
243
|
+
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.READ),
|
|
170
244
|
(0, swagger_1.ApiOperation)({
|
|
171
245
|
summary: 'Get current user profile',
|
|
172
246
|
description: 'Returns profile fields plus role slugs for the authenticated user.',
|
|
@@ -188,7 +262,11 @@ __decorate([
|
|
|
188
262
|
], UsersController.prototype, "findOne", null);
|
|
189
263
|
__decorate([
|
|
190
264
|
(0, common_1.Patch)('me'),
|
|
191
|
-
(0,
|
|
265
|
+
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.UPDATE),
|
|
266
|
+
(0, swagger_1.ApiOperation)({
|
|
267
|
+
summary: 'Update own profile',
|
|
268
|
+
description: 'Profile fields only. To change phone use POST /profile/change-phone; to change email use POST /auth/account/change-email.',
|
|
269
|
+
}),
|
|
192
270
|
__param(0, (0, decorators_1.CurrentUser)()),
|
|
193
271
|
__param(1, (0, common_1.Body)()),
|
|
194
272
|
__metadata("design:type", Function),
|
|
@@ -247,6 +325,7 @@ exports.UsersController = UsersController = __decorate([
|
|
|
247
325
|
(0, common_1.UseGuards)(auth_guard_1.JwtAuthGuard, permissions_guard_1.PermissionsGuard),
|
|
248
326
|
__param(2, (0, common_1.Optional)()),
|
|
249
327
|
__metadata("design:paramtypes", [users_service_1.UsersService,
|
|
250
|
-
admin_log_service_1.AdminLogService, Object, structured_logger_service_1.StructuredLoggerService
|
|
328
|
+
admin_log_service_1.AdminLogService, Object, structured_logger_service_1.StructuredLoggerService,
|
|
329
|
+
audit_service_1.AuditService])
|
|
251
330
|
], UsersController);
|
|
252
331
|
//# sourceMappingURL=users.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../../../src/modules/users/controllers/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AACxB,6CAAgG;AAGhG,4CAAgD;AAChD,2DAA4E;AAC5E,kEAAiE;AACjE,gFAA4E;AAE5E,uEAAyE;AACzE,8EAAyE;
|
|
1
|
+
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../../../src/modules/users/controllers/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AACxB,6CAAgG;AAGhG,4CAAgD;AAChD,2DAA4E;AAC5E,kEAAiE;AACjE,gFAA4E;AAE5E,uEAAyE;AACzE,8EAAyE;AACzE,uEAAoE;AACpE,sEAAkE;AAElE,qGAAgG;AAChG,qEAA0E;AAC1E,8CAMyB;AACzB,6DAAyD;AAMlD,IAAM,eAAe,GAArB,MAAM,eAAe;IAET;IACA;I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AC;IAE7C,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,sBAAa,CAAC,CAAA;IAC1B,WAAA,IAAA,wBAAW,GAAE,CAAA;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;;;;6CAYN;AAKK;IAHL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACtB,IAAA,8BAAiB,EAAC,kBAAkB,CAAC;IACrC,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAE3C,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,sBAAa,CAAC,CAAA;IAC1B,WAAA,IAAA,wBAAW,GAAE,CAAA;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iDAYN;AAKK;IAHL,IAAA,aAAI,EAAC,cAAc,CAAC;IACpB,IAAA,8BAAiB,EAAC,gBAAgB,CAAC;IACnC,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IAEzC,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,sBAAa,CAAC,CAAA;IAC1B,WAAA,IAAA,wBAAW,GAAE,CAAA;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+CAYN;0BA1PW,eAAe;IAJ3B,IAAA,iBAAO,EAAC,OAAO,CAAC;IAChB,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,OAAO,CAAC;IACnB,IAAA,kBAAS,EAAC,yBAAY,EAAE,oCAAgB,CAAC;IAKvC,WAAA,IAAA,iBAAQ,GAAE,CAAA;qCAFoB,4BAAY;QAChB,mCAAe,UAGjB,mDAAuB;QACxB,4BAAY;GAPzB,eAAe,CA2P3B"}
|
|
@@ -30,8 +30,13 @@ export declare class UserResponseDto {
|
|
|
30
30
|
countryCode?: string;
|
|
31
31
|
authMethod: UserAuthMethod;
|
|
32
32
|
photoFileId?: string;
|
|
33
|
+
photoUrl?: string;
|
|
34
|
+
coverPhotoFileId?: string;
|
|
35
|
+
coverPhotoUrl?: string;
|
|
33
36
|
username?: string;
|
|
34
37
|
displayName?: string;
|
|
38
|
+
firstName?: string;
|
|
39
|
+
lastName?: string;
|
|
35
40
|
isEmailVerified: boolean;
|
|
36
41
|
isPhoneVerified: boolean;
|
|
37
42
|
onboardingStep: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/users/dto/user.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/users/dto/user.dto.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EACN,oBAAoB,EACpB,oBAAoB,EACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE3E,qBAAa,aAAa;IAGzB,GAAG,CAAC,EAAE,MAAM,CAAC;IAQb,UAAU,EAAG,cAAc,CAAC;IAI5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,eAAe,CAAC,EAAE,OAAO,CAAC;IAI1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAK1B,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED,qBAAa,aAAa;IAQzB,UAAU,CAAC,EAAE,cAAc,CAAC;IAI5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,eAAe,CAAC,EAAE,OAAO,CAAC;IAI1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAK1B,OAAO,CAAC,EAAE,oBAAoB,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