@colveor/core 1.1.0 → 1.2.1
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 +24 -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/1784284557959-full-schema.d.ts.map +1 -1
- package/dist/database/migrations/1784284557959-full-schema.js +48 -14
- package/dist/database/migrations/1784284557959-full-schema.js.map +1 -1
- package/dist/database/migrations/1784284557960-audit-partitioning.d.ts +17 -0
- package/dist/database/migrations/1784284557960-audit-partitioning.d.ts.map +1 -0
- package/dist/database/migrations/1784284557960-audit-partitioning.js +384 -0
- package/dist/database/migrations/1784284557960-audit-partitioning.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-roles.service.js","sourceRoot":"","sources":["../../../../src/modules/roles/services/user-roles.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,6CAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"user-roles.service.js","sourceRoot":"","sources":["../../../../src/modules/roles/services/user-roles.service.ts"],"names":[],"m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AAC;SACzC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,0BAAiB,CAAC,QAAQ,MAAM,YAAY,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AA/HY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAGV,WAAA,IAAA,0BAAgB,EAAC,kBAAI,CAAC,CAAA;IAEtB,WAAA,IAAA,0BAAgB,EAAC,eAAI,CAAC,CAAA;qCADU,oBAAU;QAEV,oBAAU;QACnB,4BAAY;QACP,oBAAU;GAP5B,gBAAgB,CA+H5B"}
|
|
@@ -4,7 +4,8 @@ export declare enum RevokeReason {
|
|
|
4
4
|
ROTATED = "rotated",
|
|
5
5
|
LOGOUT = "logout",
|
|
6
6
|
REUSE_DETECTED = "reuse_detected",
|
|
7
|
-
ADMIN = "admin"
|
|
7
|
+
ADMIN = "admin",
|
|
8
|
+
PASSWORD_CHANGED = "password_changed"
|
|
8
9
|
}
|
|
9
10
|
export declare class RefreshToken extends BaseEntity {
|
|
10
11
|
userId: string;
|
|
@@ -22,6 +23,11 @@ export declare class RefreshToken extends BaseEntity {
|
|
|
22
23
|
providerRefreshTokenEncrypted?: string;
|
|
23
24
|
deviceInfo?: string;
|
|
24
25
|
ipAddress?: string;
|
|
26
|
+
/**
|
|
27
|
+
* RFC 9449 JWK thumbprint that issued this refresh token.
|
|
28
|
+
* Refresh must present a matching DPoP proof (prevents rebind to attacker key).
|
|
29
|
+
*/
|
|
30
|
+
dpopJkt?: string | null;
|
|
25
31
|
expiresAt: Date;
|
|
26
32
|
isRevoked: boolean;
|
|
27
33
|
revokeReason?: RevokeReason;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.entity.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessions/entities/refresh-token.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAExD,oBAAY,YAAY;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,KAAK,UAAU;
|
|
1
|
+
{"version":3,"file":"refresh-token.entity.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessions/entities/refresh-token.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAExD,oBAAY,YAAY;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,KAAK,UAAU;IACf,gBAAgB,qBAAqB;CACrC;AAED,qBACa,YAAa,SAAQ,UAAU;IAG3C,MAAM,EAAG,MAAM,CAAC;IAGhB,SAAS,EAAG,MAAM,CAAC;IAEnB;;;;OAIG;IAGH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;OAGG;IAEH,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAGvC,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAEH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,OAAO,CAAC;IAQpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAI5B,IAAI,EAAG,IAAI,CAAC;CACZ"}
|
|
@@ -19,6 +19,7 @@ var RevokeReason;
|
|
|
19
19
|
RevokeReason["LOGOUT"] = "logout";
|
|
20
20
|
RevokeReason["REUSE_DETECTED"] = "reuse_detected";
|
|
21
21
|
RevokeReason["ADMIN"] = "admin";
|
|
22
|
+
RevokeReason["PASSWORD_CHANGED"] = "password_changed";
|
|
22
23
|
})(RevokeReason || (exports.RevokeReason = RevokeReason = {}));
|
|
23
24
|
let RefreshToken = class RefreshToken extends base_entity_1.BaseEntity {
|
|
24
25
|
userId;
|
|
@@ -36,6 +37,11 @@ let RefreshToken = class RefreshToken extends base_entity_1.BaseEntity {
|
|
|
36
37
|
providerRefreshTokenEncrypted;
|
|
37
38
|
deviceInfo;
|
|
38
39
|
ipAddress;
|
|
40
|
+
/**
|
|
41
|
+
* RFC 9449 JWK thumbprint that issued this refresh token.
|
|
42
|
+
* Refresh must present a matching DPoP proof (prevents rebind to attacker key).
|
|
43
|
+
*/
|
|
44
|
+
dpopJkt;
|
|
39
45
|
expiresAt;
|
|
40
46
|
isRevoked;
|
|
41
47
|
revokeReason;
|
|
@@ -68,6 +74,10 @@ __decorate([
|
|
|
68
74
|
(0, typeorm_1.Column)({ name: 'ip_address', nullable: true }),
|
|
69
75
|
__metadata("design:type", String)
|
|
70
76
|
], RefreshToken.prototype, "ipAddress", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ name: 'dpop_jkt', type: 'varchar', length: 128, nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], RefreshToken.prototype, "dpopJkt", void 0);
|
|
71
81
|
__decorate([
|
|
72
82
|
(0, typeorm_1.Column)({ name: 'expires_at', type: 'timestamptz' }),
|
|
73
83
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../../../src/modules/sessions/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AAEvE,kEAA8D;AAC9D,kEAAwD;AAExD,IAAY,
|
|
1
|
+
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../../../src/modules/sessions/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AAEvE,kEAA8D;AAC9D,kEAAwD;AAExD,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iDAAiC,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AAE,aAAa,EAAE,CAAC;8BACxC,IAAI;+CAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CAC3B;AAQpB;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,IAAI;KACd,CAAC;;kDAC0B;AAI5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,kBAAI;0CAAC;uBArDA,YAAY;IADxB,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,YAAY,CAsDxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Durable denylist for refresh-token families (single-session revoke).
|
|
3
|
+
* Mirrors Redis `jwt:revokedFamily:<fid>` so revoke survives Redis flush
|
|
4
|
+
* for the remainder of the access-token TTL window.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RevokedRefreshFamily {
|
|
7
|
+
familyId: string;
|
|
8
|
+
revokedAt: Date;
|
|
9
|
+
expiresAt: Date;
|
|
10
|
+
reason?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=revoked-refresh-family.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revoked-refresh-family.entity.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessions/entities/revoked-refresh-family.entity.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBACa,oBAAoB;IAEhC,QAAQ,EAAG,MAAM,CAAC;IAGlB,SAAS,EAAG,IAAI,CAAC;IAIjB,SAAS,EAAG,IAAI,CAAC;IAGjB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RevokedRefreshFamily = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
/**
|
|
15
|
+
* Durable denylist for refresh-token families (single-session revoke).
|
|
16
|
+
* Mirrors Redis `jwt:revokedFamily:<fid>` so revoke survives Redis flush
|
|
17
|
+
* for the remainder of the access-token TTL window.
|
|
18
|
+
*/
|
|
19
|
+
let RevokedRefreshFamily = class RevokedRefreshFamily {
|
|
20
|
+
familyId;
|
|
21
|
+
revokedAt;
|
|
22
|
+
expiresAt;
|
|
23
|
+
reason;
|
|
24
|
+
};
|
|
25
|
+
exports.RevokedRefreshFamily = RevokedRefreshFamily;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'family_id', type: 'uuid' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RevokedRefreshFamily.prototype, "familyId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'revoked_at', type: 'timestamptz', default: () => 'now()' }),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], RevokedRefreshFamily.prototype, "revokedAt", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Index)('IDX_revoked_refresh_families_expires'),
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'expires_at', type: 'timestamptz' }),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], RevokedRefreshFamily.prototype, "expiresAt", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'reason', type: 'varchar', length: 64, nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], RevokedRefreshFamily.prototype, "reason", void 0);
|
|
43
|
+
exports.RevokedRefreshFamily = RevokedRefreshFamily = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)('revoked_refresh_families')
|
|
45
|
+
], RevokedRefreshFamily);
|
|
46
|
+
//# sourceMappingURL=revoked-refresh-family.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revoked-refresh-family.entity.js","sourceRoot":"","sources":["../../../../src/modules/sessions/entities/revoked-refresh-family.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAE/D;;;;GAIG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAEhC,QAAQ,CAAU;IAGlB,SAAS,CAAQ;IAIjB,SAAS,CAAQ;IAGjB,MAAM,CAAU;CAChB,CAAA;AAbY,oDAAoB;AAEhC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACjC;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;8BAChE,IAAI;uDAAC;AAIjB;IAFC,IAAA,eAAK,EAAC,sCAAsC,CAAC;IAC7C,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACxC,IAAI;uDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxD;+BAZJ,oBAAoB;IADhC,IAAA,gBAAM,EAAC,0BAA0B,CAAC;GACtB,oBAAoB,CAahC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnModuleDestroy, OnModuleInit } from '@nestjs/common';
|
|
2
|
+
import type IORedis from 'ioredis';
|
|
3
|
+
import { StructuredLoggerService } from '../../observability/logging/structured-logger.service';
|
|
4
|
+
import { TokenService } from './token.service';
|
|
5
|
+
/**
|
|
6
|
+
* Periodically hard-deletes revoked/expired refresh_tokens so the table
|
|
7
|
+
* cannot grow without bound under high refresh QPS.
|
|
8
|
+
* Single-leader across replicas via Redis NX lease.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RefreshTokenRetentionService implements OnModuleInit, OnModuleDestroy {
|
|
11
|
+
private readonly tokenService;
|
|
12
|
+
private readonly logger;
|
|
13
|
+
private readonly redis;
|
|
14
|
+
private timer;
|
|
15
|
+
constructor(tokenService: TokenService, logger: StructuredLoggerService, redis: IORedis);
|
|
16
|
+
onModuleInit(): void;
|
|
17
|
+
onModuleDestroy(): void;
|
|
18
|
+
private purge;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=refresh-token-retention.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-token-retention.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessions/services/refresh-token-retention.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/C;;;;GAIG;AACH,qBACa,4BAA6B,YAAW,YAAY,EAAE,eAAe;IAIhF,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACD,OAAO,CAAC,QAAQ,CAAC,KAAK;IAL7C,OAAO,CAAC,KAAK,CAA+C;gBAG1C,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,uBAAuB,EACT,KAAK,EAAE,OAAO;IAGtD,YAAY,IAAI,IAAI;IAOpB,eAAe,IAAI,IAAI;YAOT,KAAK;CAqCnB"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RefreshTokenRetentionService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const redis_module_1 = require("../../../config/redis.module");
|
|
18
|
+
const structured_logger_service_1 = require("../../observability/logging/structured-logger.service");
|
|
19
|
+
const token_service_1 = require("./token.service");
|
|
20
|
+
const DEFAULT_PURGE_INTERVAL_MS = 6 * 60 * 60 * 1000; // 6 hours
|
|
21
|
+
const LEADER_KEY = 'session:refresh:retention:leader';
|
|
22
|
+
const LEADER_TTL_SEC = 900;
|
|
23
|
+
/**
|
|
24
|
+
* Periodically hard-deletes revoked/expired refresh_tokens so the table
|
|
25
|
+
* cannot grow without bound under high refresh QPS.
|
|
26
|
+
* Single-leader across replicas via Redis NX lease.
|
|
27
|
+
*/
|
|
28
|
+
let RefreshTokenRetentionService = class RefreshTokenRetentionService {
|
|
29
|
+
tokenService;
|
|
30
|
+
logger;
|
|
31
|
+
redis;
|
|
32
|
+
timer = null;
|
|
33
|
+
constructor(tokenService, logger, redis) {
|
|
34
|
+
this.tokenService = tokenService;
|
|
35
|
+
this.logger = logger;
|
|
36
|
+
this.redis = redis;
|
|
37
|
+
}
|
|
38
|
+
onModuleInit() {
|
|
39
|
+
void this.purge();
|
|
40
|
+
this.timer = setInterval(() => {
|
|
41
|
+
void this.purge();
|
|
42
|
+
}, DEFAULT_PURGE_INTERVAL_MS);
|
|
43
|
+
}
|
|
44
|
+
onModuleDestroy() {
|
|
45
|
+
if (this.timer) {
|
|
46
|
+
clearInterval(this.timer);
|
|
47
|
+
this.timer = null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
async purge() {
|
|
51
|
+
try {
|
|
52
|
+
let acquired;
|
|
53
|
+
try {
|
|
54
|
+
acquired = await this.redis.set(LEADER_KEY, '1', 'EX', LEADER_TTL_SEC, 'NX');
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
this.logger.warn('Refresh token retention skipped — leader lock unavailable', {
|
|
58
|
+
event: 'session.refresh.retention_lock_failed',
|
|
59
|
+
err: err instanceof Error ? err : undefined,
|
|
60
|
+
});
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (acquired !== 'OK')
|
|
64
|
+
return;
|
|
65
|
+
const [deleted, families] = await Promise.all([
|
|
66
|
+
this.tokenService.purgeStaleRefreshTokens(),
|
|
67
|
+
this.tokenService.purgeExpiredRevokedFamilies(),
|
|
68
|
+
]);
|
|
69
|
+
if (deleted > 0) {
|
|
70
|
+
this.logger.info('Refresh token retention purge completed', {
|
|
71
|
+
event: 'session.refresh.retention_purged',
|
|
72
|
+
metadata: { deleted },
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
if (families > 0) {
|
|
76
|
+
this.logger.info('Expired family denylist purge completed', {
|
|
77
|
+
event: 'session.family_denylist.retention_purged',
|
|
78
|
+
metadata: { deleted: families },
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
catch (err) {
|
|
83
|
+
this.logger.error('Refresh token retention purge failed', {
|
|
84
|
+
event: 'session.refresh.retention_failed',
|
|
85
|
+
err: err instanceof Error ? err : undefined,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
exports.RefreshTokenRetentionService = RefreshTokenRetentionService;
|
|
91
|
+
exports.RefreshTokenRetentionService = RefreshTokenRetentionService = __decorate([
|
|
92
|
+
(0, common_1.Injectable)(),
|
|
93
|
+
__param(2, (0, common_1.Inject)(redis_module_1.REDIS_CLIENT)),
|
|
94
|
+
__metadata("design:paramtypes", [token_service_1.TokenService,
|
|
95
|
+
structured_logger_service_1.StructuredLoggerService, Function])
|
|
96
|
+
], RefreshTokenRetentionService);
|
|
97
|
+
//# sourceMappingURL=refresh-token-retention.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-token-retention.service.js","sourceRoot":"","sources":["../../../../src/modules/sessions/services/refresh-token-retention.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmF;AAGnF,+DAA4D;AAC5D,qGAAgG;AAChG,mDAA+C;AAE/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repository } from 'typeorm';
|
|
5
|
+
import { AuditService } from '../../audit/services/audit.service';
|
|
6
|
+
import { PaginatedSessionsResponseDto } from '../../auth/dto/session.dto';
|
|
5
7
|
import { TokenResponse } from '../../auth/dto/token.dto';
|
|
8
|
+
import { type StepUpPurpose } from '../../auth/utils/step-up-purpose.util';
|
|
6
9
|
import { StructuredLoggerService } from '../../observability/logging/structured-logger.service';
|
|
10
|
+
import { RealtimeService } from '../../realtime/services/realtime.service';
|
|
7
11
|
import { SettingsService } from '../../settings/services/settings.service';
|
|
8
12
|
import { UserResponseDto } from '../../users/dto/user.dto';
|
|
9
13
|
import { UsersService } from '../../users/services/users.service';
|
|
10
14
|
import { RefreshToken, RevokeReason } from '../entities/refresh-token.entity';
|
|
15
|
+
import { RevokedRefreshFamily } from '../entities/revoked-refresh-family.entity';
|
|
16
|
+
/** Payload stored in Redis for a post-first-factor MFA challenge. */
|
|
17
|
+
export interface MfaChallengePayload {
|
|
18
|
+
userId: string;
|
|
19
|
+
/** First-factor method that already succeeded. */
|
|
20
|
+
amr: 'phone' | 'email' | 'oauth';
|
|
21
|
+
provider?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Payload for short-lived step-up (elevated) MFA confirmation. */
|
|
24
|
+
export interface MfaStepUpPayload {
|
|
25
|
+
userId: string;
|
|
26
|
+
/** Action this step-up authorizes; consume must match. */
|
|
27
|
+
purpose: StepUpPurpose;
|
|
28
|
+
}
|
|
29
|
+
/** Stored PKCE state for OAuth web authorization-code flow. */
|
|
30
|
+
export interface OAuthPkceStatePayload {
|
|
31
|
+
provider: string;
|
|
32
|
+
redirectUri: string;
|
|
33
|
+
codeVerifier: string;
|
|
34
|
+
/** OIDC nonce bound into authorize URL + ID token verify. */
|
|
35
|
+
nonce: string;
|
|
36
|
+
}
|
|
11
37
|
export declare class TokenService {
|
|
12
38
|
private readonly jwtService;
|
|
13
39
|
private readonly usersService;
|
|
14
40
|
private readonly refreshTokenRepository;
|
|
41
|
+
private readonly revokedFamilyRepository;
|
|
15
42
|
private readonly redis;
|
|
16
43
|
private readonly settingsService;
|
|
17
44
|
private readonly configService;
|
|
18
45
|
private readonly logger;
|
|
19
|
-
|
|
46
|
+
private readonly audit;
|
|
47
|
+
private readonly realtime?;
|
|
48
|
+
private readonly epochSingleflight;
|
|
49
|
+
constructor(jwtService: JwtService, usersService: UsersService, refreshTokenRepository: Repository<RefreshToken>, revokedFamilyRepository: Repository<RevokedRefreshFamily>, redis: IORedis, settingsService: SettingsService, configService: ConfigService, logger: StructuredLoggerService, audit: AuditService, realtime?: RealtimeService | undefined);
|
|
20
50
|
/**
|
|
21
51
|
* Creates a short-lived login bridge token (post-OTP → login).
|
|
22
52
|
* Stored as: tmp:login:<uuid> → userId TTL: 5 min
|
|
@@ -50,15 +80,59 @@ export declare class TokenService {
|
|
|
50
80
|
* Returns the email address. Throws UnauthorizedException on any failure.
|
|
51
81
|
*/
|
|
52
82
|
verifyEmailVerifiedToken(token: string): Promise<string>;
|
|
53
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Creates a short-lived MFA challenge token after a successful first factor.
|
|
85
|
+
* Stored as: tmp:mfa_challenge:<uuid> → JSON payload. Consumed on MFA verify.
|
|
86
|
+
*/
|
|
87
|
+
createMfaChallengeToken(payload: MfaChallengePayload): Promise<{
|
|
88
|
+
mfaToken: string;
|
|
89
|
+
expiresIn: number;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Peeks an MFA challenge token without consuming it (allows TOTP retries).
|
|
93
|
+
*/
|
|
94
|
+
peekMfaChallengeToken(token: string): Promise<MfaChallengePayload>;
|
|
95
|
+
/**
|
|
96
|
+
* Atomically consumes an MFA challenge token after a successful second factor.
|
|
97
|
+
*/
|
|
98
|
+
consumeMfaChallengeToken(token: string): Promise<void>;
|
|
99
|
+
/** @deprecated Prefer peek + consume; kept for callers that need atomic read-delete. */
|
|
100
|
+
verifyMfaChallengeToken(token: string): Promise<MfaChallengePayload>;
|
|
101
|
+
private parseMfaChallengePayload;
|
|
102
|
+
/**
|
|
103
|
+
* Creates a short-lived step-up token after an authenticated MFA confirmation.
|
|
104
|
+
* Other modules can call {@link consumeStepUpToken} before sensitive actions.
|
|
105
|
+
*/
|
|
106
|
+
createStepUpToken(payload: MfaStepUpPayload): Promise<{
|
|
107
|
+
stepUpToken: string;
|
|
108
|
+
expiresIn: number;
|
|
109
|
+
}>;
|
|
110
|
+
/** Peek step-up token without consuming (validate ownership). */
|
|
111
|
+
peekStepUpToken(token: string): Promise<MfaStepUpPayload>;
|
|
112
|
+
/**
|
|
113
|
+
* Atomically consume a step-up token; returns the userId.
|
|
114
|
+
* When `expectedPurpose` is set, rejects tokens minted for a different action.
|
|
115
|
+
*/
|
|
116
|
+
consumeStepUpToken(token: string, expectedPurpose?: StepUpPurpose): Promise<string>;
|
|
117
|
+
private parseStepUpPayload;
|
|
118
|
+
/** Store OAuth PKCE state for web authorization-code flow. */
|
|
119
|
+
createOAuthPkceState(payload: OAuthPkceStatePayload): Promise<{
|
|
120
|
+
state: string;
|
|
121
|
+
expiresIn: number;
|
|
122
|
+
}>;
|
|
123
|
+
/** Consume OAuth PKCE state (single-use). */
|
|
124
|
+
consumeOAuthPkceState(state: string): Promise<OAuthPkceStatePayload>;
|
|
125
|
+
generateTokens({ user, roles, familyId, deviceInfo, ipAddress, providerRefreshToken, dpopJkt, }: {
|
|
54
126
|
user: UserResponseDto;
|
|
55
127
|
roles: string[];
|
|
56
128
|
familyId?: string;
|
|
57
129
|
deviceInfo?: string;
|
|
58
130
|
ipAddress?: string;
|
|
59
131
|
providerRefreshToken?: string;
|
|
132
|
+
/** RFC 9449 JWK thumbprint — binds access token via `cnf.jkt`. */
|
|
133
|
+
dpopJkt?: string;
|
|
60
134
|
}): Promise<TokenResponse>;
|
|
61
|
-
rotateRefreshToken(rawRefreshToken: string, deviceInfo?: string, ipAddress?: string): Promise<TokenResponse>;
|
|
135
|
+
rotateRefreshToken(rawRefreshToken: string, deviceInfo?: string, ipAddress?: string, dpopJkt?: string): Promise<TokenResponse>;
|
|
62
136
|
/**
|
|
63
137
|
* Generate tokens by userId — used during rotation where we only have userId + familyId.
|
|
64
138
|
* Re-fetches user profile and roles fresh from DB.
|
|
@@ -66,7 +140,25 @@ export declare class TokenService {
|
|
|
66
140
|
generateTokensForUserId(userId: string, familyId: string, providerRefreshToken?: string, deviceInfo?: string, ipAddress?: string): Promise<TokenResponse>;
|
|
67
141
|
private issueTokenPair;
|
|
68
142
|
private buildJwtPayload;
|
|
69
|
-
private
|
|
143
|
+
private requireRefreshTokenPepper;
|
|
144
|
+
/** Prefer AUTH_DPOP_MODE env; fall back to settings (same as DpopService.mode). */
|
|
145
|
+
private dpopMode;
|
|
146
|
+
/** Verify refresh secret (HMAC-SHA256). Legacy Argon2 rows are revoked at boot. */
|
|
147
|
+
private verifyRefreshHash;
|
|
148
|
+
/**
|
|
149
|
+
* Current session epoch for a user (0 when none has been bumped yet).
|
|
150
|
+
* Prefers Redis; on miss rehydrates from DB so logout-all survives Redis flush.
|
|
151
|
+
*/
|
|
152
|
+
getSessionEpoch(userId: string): Promise<number>;
|
|
153
|
+
/**
|
|
154
|
+
* Bump the user's session epoch so every previously issued access JWT is
|
|
155
|
+
* rejected by {@link JwtStrategy}. Dual-written to DB + Redis.
|
|
156
|
+
*/
|
|
157
|
+
bumpSessionEpoch(userId: string): Promise<number>;
|
|
158
|
+
private assertLoadedUserCanRefresh;
|
|
159
|
+
private assertNotBanned;
|
|
160
|
+
/** Restore a refresh token that was claimed for rotation but never replaced. */
|
|
161
|
+
private unclaimRotatedRefreshToken;
|
|
70
162
|
/** Parses the tokens.access_expires_in setting string to milliseconds. */
|
|
71
163
|
private get accessTokenExpiresInMs();
|
|
72
164
|
revokeRefreshToken(tokenId: string, reason?: RevokeReason): Promise<void>;
|
|
@@ -81,22 +173,64 @@ export declare class TokenService {
|
|
|
81
173
|
*/
|
|
82
174
|
revokeAccessToken(jti: string, ttlSeconds: number): Promise<void>;
|
|
83
175
|
/**
|
|
84
|
-
* Revoke all refresh tokens for a user
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* Any access tokens that are already in-flight will remain valid until they
|
|
88
|
-
* expire naturally (default 1 day). To immediately block the *current* access
|
|
89
|
-
* token call `revokeAccessToken(user.jti, remaining)` in the same request
|
|
90
|
-
* (see SessionController.logout). There is no efficient way to bulk-revoke
|
|
91
|
-
* every outstanding access token because they are not tracked individually —
|
|
92
|
-
* this is an inherent trade-off of stateless JWTs. Mitigate by keeping
|
|
93
|
-
* `JWT_EXPIRATION` short (15 min or less in high-security deployments).
|
|
176
|
+
* Revoke all refresh tokens for a user and bump the session epoch so every
|
|
177
|
+
* in-flight access JWT is rejected immediately (logout-all, password change,
|
|
178
|
+
* admin deactivate, identity change, etc.).
|
|
94
179
|
*/
|
|
95
180
|
revokeAllUserTokens(userId: string, reason?: RevokeReason): Promise<void>;
|
|
96
|
-
|
|
181
|
+
/**
|
|
182
|
+
* Denylist a refresh-token family so in-flight access JWTs with matching `fid`
|
|
183
|
+
* are rejected. Dual-written to Redis (`1`, overwrites negative-cache `0`) + DB
|
|
184
|
+
* so revoke survives Redis flush for the remainder of the access-token TTL.
|
|
185
|
+
*/
|
|
186
|
+
denyFamilyAccess(familyId: string, reason?: string): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Validates a raw refresh token (`<id>.<secret>`), revokes its rotation family,
|
|
189
|
+
* and returns identity metadata for logout / revoke-others flows.
|
|
190
|
+
*/
|
|
191
|
+
revokeSessionByRefreshToken(rawRefreshToken: string, reason?: RevokeReason): Promise<{
|
|
192
|
+
userId: string;
|
|
193
|
+
familyId: string;
|
|
194
|
+
tokenId: string;
|
|
195
|
+
}>;
|
|
196
|
+
/**
|
|
197
|
+
* Revoke every active refresh token for a user except one rotation family.
|
|
198
|
+
*
|
|
199
|
+
* @param denyFamilies When true (default), denylist each revoked family's
|
|
200
|
+
* access JWTs. Pass false when the caller also bumps the session epoch
|
|
201
|
+
* (revoke-others) — epoch already invalidates all in-flight access tokens.
|
|
202
|
+
*/
|
|
203
|
+
revokeAllUserTokensExceptFamily(userId: string, keepFamilyId: string, reason?: RevokeReason, opts?: {
|
|
204
|
+
denyFamilies?: boolean;
|
|
205
|
+
}): Promise<void>;
|
|
206
|
+
/**
|
|
207
|
+
* Peek + validate a refresh token without revoking it.
|
|
208
|
+
* Used to identify the current session family before revoke-others.
|
|
209
|
+
*/
|
|
210
|
+
resolveRefreshTokenSession(rawRefreshToken: string): Promise<{
|
|
211
|
+
userId: string;
|
|
212
|
+
familyId: string;
|
|
213
|
+
tokenId: string;
|
|
214
|
+
}>;
|
|
215
|
+
/**
|
|
216
|
+
* Non-revoked, non-expired sessions for a user (paginated, safe fields only).
|
|
217
|
+
*/
|
|
218
|
+
getUserActiveSessions(userId: string, opts?: {
|
|
219
|
+
page?: number;
|
|
220
|
+
limit?: number;
|
|
221
|
+
}): Promise<PaginatedSessionsResponseDto>;
|
|
222
|
+
/**
|
|
223
|
+
* Hard-delete revoked or expired refresh tokens older than the retention window.
|
|
224
|
+
* Deletes in batches to avoid long locks / timeouts on large tables.
|
|
225
|
+
*/
|
|
226
|
+
purgeStaleRefreshTokens(batchSize?: number): Promise<number>;
|
|
227
|
+
/** Hard-delete expired family denylist rows (access-TTL window already elapsed). */
|
|
228
|
+
purgeExpiredRevokedFamilies(batchSize?: number): Promise<number>;
|
|
97
229
|
getRefreshTokenById(tokenId: string): Promise<RefreshToken | null>;
|
|
230
|
+
private findValidRefreshTokenRecord;
|
|
98
231
|
private saveRefreshToken;
|
|
99
232
|
private markRevoked;
|
|
100
|
-
|
|
233
|
+
/** Revoke an entire refresh-token rotation family and denylist its access JWTs. */
|
|
234
|
+
revokeFamilyTokens(familyId: string, reason: RevokeReason): Promise<void>;
|
|
101
235
|
}
|
|
102
236
|
//# sourceMappingURL=token.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessions/services/token.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"token.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessions/services/token.service.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAsB,UAAU,EAAE,MAAM,SAAS,CAAC;AAMzD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAMlE,OAAO,EAAE,4BAA4B,EAAsB,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAc,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAyBjF,qEAAqE;AACrE,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,GAAG,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,OAAO,EAAE,aAAa,CAAC;CACvB;AAED,+DAA+D;AAC/D,MAAM,WAAW,qB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