@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":"otp.controller.js","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/otp.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"otp.controller.js","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/otp.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2C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EAAE,IAAI,EAAE,sBAAY,EAAE,CAAC;IAC/B,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,gCAAsB,EAAE,CAAC;IAC/C,IAAA,+BAAqB,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;IACpF,IAAA,oCAA0B,EAAC;QAC3B,WAAW,EAAE,8DAA8D;KAC3E,CAAC;IACe,WAAA,IAAA,aAAI,EAAC,wDAAyB,CAAC,CAAA;IAAsB,WAAA,IAAA,YAAG,GAAE,CAAA;;qCAApB,sBAAY;;8CAIlE;wBApHW,aAAa;IAHzB,IAAA,iBAAO,EAAC,MAAM,CAAC;IACf,IAAA,mBAAU,EAAC,MAAM,CAAC;IAClB,IAAA,mBAAM,GAAE;qCAG0B,iCAAc;QACZ,oCAAgB;GAHxC,aAAa,CAqHzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pin.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/pin.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pin.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/pin.controller.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,qBASa,aAAa;IACb,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IA4B3D,SAAS,CAAgB,IAAI,EAAE,WAAW;IA+B1C,gBAAgB,CAAgB,IAAI,EAAE,WAAW,EAAiB,IAAI,EAAE,MAAM;IAsB9E,MAAM,CAAgB,IAAI,EAAE,WAAW,EAAmC,GAAG,EAAE,SAAS;;;IAoBxF,SAAS,CACO,IAAI,EAAE,WAAW,EACC,GAAG,EAAE,YAAY;;;IA0BnD,SAAS,CACO,IAAI,EAAE,WAAW,EACC,GAAG,EAAE,YAAY;;;IAuBnD,SAAS,CACO,IAAI,EAAE,WAAW,EACC,GAAG,EAAE,YAAY;;;CAInD"}
|
|
@@ -17,7 +17,9 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const swagger_1 = require("@nestjs/swagger");
|
|
18
18
|
const decorators_1 = require("../../../common/decorators");
|
|
19
19
|
const auth_guard_1 = require("../../../common/guards/auth.guard");
|
|
20
|
+
const permissions_guard_1 = require("../../../common/guards/permissions.guard");
|
|
20
21
|
const config_aware_validation_pipe_1 = require("../../../common/pipes/config-aware-validation.pipe");
|
|
22
|
+
const auth_manifest_1 = require("../auth.manifest");
|
|
21
23
|
const pin_dto_1 = require("../dto/pin.dto");
|
|
22
24
|
const pin_auth_service_1 = require("../services/pin-auth.service");
|
|
23
25
|
let PinController = class PinController {
|
|
@@ -205,8 +207,14 @@ __decorate([
|
|
|
205
207
|
exports.PinController = PinController = __decorate([
|
|
206
208
|
(0, swagger_1.ApiTags)('Pin'),
|
|
207
209
|
(0, common_1.Controller)('auth/pin'),
|
|
208
|
-
(0, common_1.UseGuards)(auth_guard_1.JwtAuthGuard),
|
|
209
|
-
(0,
|
|
210
|
+
(0, common_1.UseGuards)(auth_guard_1.JwtAuthGuard, permissions_guard_1.PermissionsGuard),
|
|
211
|
+
(0, decorators_1.RequirePermission)(auth_manifest_1.AUTH_PERMISSIONS.PIN_MANAGE),
|
|
212
|
+
(0, swagger_1.ApiBearerAuth)()
|
|
213
|
+
/**
|
|
214
|
+
* App-local unlock PIN only — not API MFA and not part of login `amr`.
|
|
215
|
+
* See docs/adr/0001-auth-accepted-trade-offs.md.
|
|
216
|
+
*/
|
|
217
|
+
,
|
|
210
218
|
__metadata("design:paramtypes", [pin_auth_service_1.PinAuthService])
|
|
211
219
|
], PinController);
|
|
212
220
|
//# sourceMappingURL=pin.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pin.controller.js","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/pin.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,6CAayB;AAEzB,
|
|
1
|
+
{"version":3,"file":"pin.controller.js","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/pin.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,6CAayB;AAEzB,2DAA4E;AAC5E,kEAAiE;AACjE,gFAA4E;AAE5E,qGAA+F;AAC/F,oDAAoD;AACpD,4CAAmG;AACnG,mEAA8D;AAWvD,IAAM,aAAa,GAAnB,MAAM,aAAa;IACI;IAA7B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,6EAA6E;IA0B7E,SAAS,CAAgB,IAAiB;QACzC,OAAO,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IA6BD,gBAAgB,CAAgB,IAAiB,EAAiB,IAAY;QAC7E,OAAO,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,6EAA6E;IAkB7E,MAAM,CAAgB,IAAiB,EAAmC,GAAc;QACvF,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACjD,CAAC;IAED,6EAA6E;IAgB7E,SAAS,CACO,IAAiB,EACC,GAAiB;QAElD,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACpD,CAAC;IAED,6EAA6E;IAqB7E,SAAS,CACO,IAAiB,EACC,GAAiB;QAElD,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC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sBAAY,EAAC;QACb,OAAO,EAAE,cAAc;QACvB,WAAW,EACV,kFAAkF;YAClF,4EAA4E;KAC7E,CAAC;IACD,IAAA,iBAAO,EAAC,EAAE,IAAI,EAAE,sBAAY,EAAE,CAAC;IAC/B,IAAA,uBAAa,EAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,EAAE,EAAE,CAAC;IAC/F,IAAA,iCAAuB,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACpE,IAAA,8BAAoB,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACtD,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IAClE,IAAA,+BAAqB,EAAC;QACtB,WAAW,EAAE,mEAAmE;KAChF,CAAC;IAEA,WAAA,IAAA,wBAAW,GAAE,CAAA;IACb,WAAA,IAAA,aAAI,EAAC,wDAAyB,CAAC,CAAA;;6CAAM,sBAAY;;8CAGlD;wBAhKW,aAAa;IATzB,IAAA,iBAAO,EAAC,KAAK,CAAC;IACd,IAAA,mBAAU,EAAC,UAAU,CAAC;IACtB,IAAA,kBAAS,EAAC,yBAAY,EAAE,oCAAgB,CAAC;IACzC,IAAA,8BAAiB,EAAC,gCAAgB,CAAC,UAAU,CAAC;IAC9C,IAAA,uBAAa,GAAE;IAChB;;;OAGG;;qCAE2C,iCAAc;GAD/C,aAAa,CAiKzB"}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { Request } from 'express';
|
|
2
2
|
import { RequestUser } from '../../../common/interfaces/request-user';
|
|
3
3
|
import { TokenService } from '../../sessions/services/token.service';
|
|
4
|
-
import {
|
|
4
|
+
import { ListSessionsQueryDto, PaginatedSessionsResponseDto } from '../dto/session.dto';
|
|
5
|
+
import { LogoutDto, RefreshTokenDto } from '../dto/token.dto';
|
|
5
6
|
import { AccountService } from '../services/account.service';
|
|
7
|
+
import { DpopService } from '../services/dpop.service';
|
|
6
8
|
export declare class SessionController {
|
|
7
9
|
private readonly accountService;
|
|
8
10
|
private readonly tokenService;
|
|
9
|
-
|
|
11
|
+
private readonly dpopService;
|
|
12
|
+
constructor(accountService: AccountService, tokenService: TokenService, dpopService: DpopService);
|
|
10
13
|
refreshToken(body: RefreshTokenDto, req: Request): Promise<import("../dto/token.dto").TokenResponse>;
|
|
11
|
-
logout(user: RequestUser, req: Request): Promise<{
|
|
14
|
+
logout(user: RequestUser, req: Request, body?: LogoutDto): Promise<{
|
|
12
15
|
message: string;
|
|
13
16
|
}>;
|
|
14
|
-
|
|
17
|
+
logoutAll(user: RequestUser, req: Request, body: RefreshTokenDto): Promise<{
|
|
18
|
+
message: string;
|
|
19
|
+
}>;
|
|
20
|
+
revokeOthers(user: RequestUser, body: RefreshTokenDto, req: Request): Promise<import("../dto/token.dto").RevokeOthersResponse>;
|
|
21
|
+
getActiveSessions(user: RequestUser, query: ListSessionsQueryDto): Promise<PaginatedSessionsResponseDto>;
|
|
15
22
|
revokeSession(sessionId: string, user: RequestUser): Promise<{
|
|
16
23
|
message: string;
|
|
17
24
|
}>;
|
|
25
|
+
private blocklistCurrentAccessToken;
|
|
18
26
|
}
|
|
19
27
|
//# sourceMappingURL=session.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/session.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/session.controller.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAOlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAoB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,qBAIa,iBAAiB;IAE5B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAFX,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW;IAuBpC,YAAY,CAAS,IAAI,EAAE,eAAe,EAAS,GAAG,EAAE,OAAO;IAoB/D,MAAM,CAAgB,IAAI,EAAE,WAAW,EAAS,GAAG,EAAE,OAAO,EAAU,IAAI,CAAC,EAAE,SAAS;;;IA6BtF,SAAS,CACC,IAAI,EAAE,WAAW,EACzB,GAAG,EAAE,OAAO,EACX,IAAI,EAAE,eAAe;;;IAoCxB,YAAY,CACF,IAAI,EAAE,WAAW,EACxB,IAAI,EAAE,eAAe,EACtB,GAAG,EAAE,OAAO;IAsBpB,iBAAiB,CAAgB,IAAI,EAAE,WAAW,EAAW,KAAK,EAAE,oBAAoB;IAsBxF,aAAa,CACuB,SAAS,EAAE,MAAM,EACrC,IAAI,EAAE,WAAW;;;YAKnB,2BAA2B;CAazC"}
|
|
@@ -16,48 +16,86 @@ exports.SessionController = void 0;
|
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const swagger_1 = require("@nestjs/swagger");
|
|
18
18
|
const decorators_1 = require("../../../common/decorators");
|
|
19
|
+
const ip_rate_limit_bucket_decorator_1 = require("../../../common/decorators/ip-rate-limit-bucket.decorator");
|
|
19
20
|
const guards_1 = require("../../../common/guards");
|
|
20
21
|
const auth_guard_1 = require("../../../common/guards/auth.guard");
|
|
22
|
+
const permissions_guard_1 = require("../../../common/guards/permissions.guard");
|
|
21
23
|
const request_utils_1 = require("../../../common/utils/request.utils");
|
|
22
24
|
const token_service_1 = require("../../sessions/services/token.service");
|
|
25
|
+
const auth_manifest_1 = require("../auth.manifest");
|
|
26
|
+
const session_dto_1 = require("../dto/session.dto");
|
|
23
27
|
const token_dto_1 = require("../dto/token.dto");
|
|
24
28
|
const account_service_1 = require("../services/account.service");
|
|
29
|
+
const dpop_service_1 = require("../services/dpop.service");
|
|
25
30
|
let SessionController = class SessionController {
|
|
26
31
|
accountService;
|
|
27
32
|
tokenService;
|
|
28
|
-
|
|
33
|
+
dpopService;
|
|
34
|
+
constructor(accountService, tokenService, dpopService) {
|
|
29
35
|
this.accountService = accountService;
|
|
30
36
|
this.tokenService = tokenService;
|
|
37
|
+
this.dpopService = dpopService;
|
|
31
38
|
}
|
|
32
|
-
refreshToken(body, req) {
|
|
39
|
+
async refreshToken(body, req) {
|
|
33
40
|
const { ip, deviceInfo } = (0, request_utils_1.extractRequestInfo)(req);
|
|
34
|
-
|
|
41
|
+
const dpopJkt = await this.dpopService.resolveJktForIssuance(req);
|
|
42
|
+
return this.tokenService.rotateRefreshToken(body.refreshToken, deviceInfo, ip, dpopJkt);
|
|
35
43
|
}
|
|
36
|
-
async logout(user, req) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
catch {
|
|
45
|
-
// Non-fatal — refresh token revocation below still invalidates the session.
|
|
46
|
-
}
|
|
44
|
+
async logout(user, req, body) {
|
|
45
|
+
await this.blocklistCurrentAccessToken(user, req);
|
|
46
|
+
const { ip, deviceInfo } = (0, request_utils_1.extractRequestInfo)(req);
|
|
47
|
+
if (body?.refreshToken) {
|
|
48
|
+
return this.accountService.logoutCurrent(user.id, body.refreshToken, {
|
|
49
|
+
ipAddress: ip,
|
|
50
|
+
deviceInfo,
|
|
51
|
+
});
|
|
47
52
|
}
|
|
48
|
-
return this.accountService.
|
|
53
|
+
return this.accountService.logoutCurrentFamily(user.id, user.fid, {
|
|
54
|
+
ipAddress: ip,
|
|
55
|
+
deviceInfo,
|
|
56
|
+
});
|
|
49
57
|
}
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
async logoutAll(user, req, body) {
|
|
59
|
+
await this.blocklistCurrentAccessToken(user, req);
|
|
60
|
+
const { ip, deviceInfo } = (0, request_utils_1.extractRequestInfo)(req);
|
|
61
|
+
return this.accountService.logoutAllWithRefresh(user.id, body.refreshToken, {
|
|
62
|
+
ipAddress: ip,
|
|
63
|
+
deviceInfo,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
async revokeOthers(user, body, req) {
|
|
67
|
+
const { ip, deviceInfo } = (0, request_utils_1.extractRequestInfo)(req);
|
|
68
|
+
const dpopJkt = await this.dpopService.resolveJktForIssuance(req);
|
|
69
|
+
return this.accountService.revokeOtherSessions(user.id, body.refreshToken, deviceInfo, ip, dpopJkt);
|
|
70
|
+
}
|
|
71
|
+
getActiveSessions(user, query) {
|
|
72
|
+
return this.accountService.getActiveSessions(user.id, {
|
|
73
|
+
page: query.page,
|
|
74
|
+
limit: query.limit,
|
|
75
|
+
});
|
|
52
76
|
}
|
|
53
77
|
revokeSession(sessionId, user) {
|
|
54
78
|
return this.accountService.revokeSession(sessionId, user.id);
|
|
55
79
|
}
|
|
80
|
+
async blocklistCurrentAccessToken(user, req) {
|
|
81
|
+
const rawJwt = (req.headers['authorization'] ?? '').replace(/^Bearer\s+/i, '');
|
|
82
|
+
if (!rawJwt || !user.jti)
|
|
83
|
+
return;
|
|
84
|
+
try {
|
|
85
|
+
const payload = JSON.parse(Buffer.from(rawJwt.split('.')[1] ?? '', 'base64url').toString());
|
|
86
|
+
const remainingTtl = Math.floor((payload.exp ?? 0) - Date.now() / 1000);
|
|
87
|
+
await this.tokenService.revokeAccessToken(user.jti, remainingTtl);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
// Non-fatal — refresh token revocation still invalidates the session.
|
|
91
|
+
}
|
|
92
|
+
}
|
|
56
93
|
};
|
|
57
94
|
exports.SessionController = SessionController;
|
|
58
95
|
__decorate([
|
|
59
96
|
(0, common_1.Post)('refresh'),
|
|
60
97
|
(0, decorators_1.Public)(),
|
|
98
|
+
(0, ip_rate_limit_bucket_decorator_1.IpRateLimitBucket)('refresh'),
|
|
61
99
|
(0, common_1.UseGuards)(guards_1.LoginIpRateLimitGuard),
|
|
62
100
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
63
101
|
(0, swagger_1.ApiOperation)({
|
|
@@ -77,45 +115,105 @@ __decorate([
|
|
|
77
115
|
__param(1, (0, common_1.Req)()),
|
|
78
116
|
__metadata("design:type", Function),
|
|
79
117
|
__metadata("design:paramtypes", [token_dto_1.RefreshTokenDto, Object]),
|
|
80
|
-
__metadata("design:returntype",
|
|
118
|
+
__metadata("design:returntype", Promise)
|
|
81
119
|
], SessionController.prototype, "refreshToken", null);
|
|
82
120
|
__decorate([
|
|
83
121
|
(0, common_1.Post)('logout'),
|
|
122
|
+
(0, decorators_1.RequirePermission)(auth_manifest_1.AUTH_PERMISSIONS.LOGOUT),
|
|
84
123
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
85
124
|
(0, swagger_1.ApiOperation)({
|
|
86
|
-
summary: 'Logout',
|
|
87
|
-
description: 'Revokes
|
|
125
|
+
summary: 'Logout current session',
|
|
126
|
+
description: 'Revokes the current refresh-token family and blocklists the access token. ' +
|
|
127
|
+
'Pass `{ refreshToken }` to target that family, or omit to use the access token `fid`. ' +
|
|
128
|
+
'Does **not** revoke other devices — use POST /auth/logout/all with a refresh token.',
|
|
88
129
|
}),
|
|
130
|
+
(0, swagger_1.ApiBody)({ type: token_dto_1.LogoutDto, required: false }),
|
|
89
131
|
(0, swagger_1.ApiOkResponse)({
|
|
90
|
-
|
|
91
|
-
schema: { example: { message: 'Logged out successfully' } },
|
|
132
|
+
schema: { example: { message: 'Logged out of current session successfully' } },
|
|
92
133
|
}),
|
|
93
134
|
__param(0, (0, decorators_1.CurrentUser)()),
|
|
94
135
|
__param(1, (0, common_1.Req)()),
|
|
136
|
+
__param(2, (0, common_1.Body)()),
|
|
95
137
|
__metadata("design:type", Function),
|
|
96
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
138
|
+
__metadata("design:paramtypes", [Object, Object, token_dto_1.LogoutDto]),
|
|
97
139
|
__metadata("design:returntype", Promise)
|
|
98
140
|
], SessionController.prototype, "logout", null);
|
|
99
141
|
__decorate([
|
|
100
|
-
(0, common_1.
|
|
142
|
+
(0, common_1.Post)('logout/all'),
|
|
143
|
+
(0, decorators_1.RequirePermission)(auth_manifest_1.AUTH_PERMISSIONS.LOGOUT),
|
|
144
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
101
145
|
(0, swagger_1.ApiOperation)({
|
|
102
|
-
summary: '
|
|
103
|
-
description: '
|
|
146
|
+
summary: 'Logout all sessions',
|
|
147
|
+
description: 'Requires `{ refreshToken }` (proves session ownership — stolen access JWT alone cannot wipe all devices). ' +
|
|
148
|
+
'Revokes every refresh token, bumps session epoch, and blocklists the current access token.',
|
|
149
|
+
}),
|
|
150
|
+
(0, swagger_1.ApiBody)({ type: token_dto_1.RefreshTokenDto }),
|
|
151
|
+
(0, swagger_1.ApiOkResponse)({
|
|
152
|
+
schema: { example: { message: 'Logged out of all sessions successfully' } },
|
|
104
153
|
}),
|
|
154
|
+
__param(0, (0, decorators_1.CurrentUser)()),
|
|
155
|
+
__param(1, (0, common_1.Req)()),
|
|
156
|
+
__param(2, (0, common_1.Body)()),
|
|
157
|
+
__metadata("design:type", Function),
|
|
158
|
+
__metadata("design:paramtypes", [Object, Object, token_dto_1.RefreshTokenDto]),
|
|
159
|
+
__metadata("design:returntype", Promise)
|
|
160
|
+
], SessionController.prototype, "logoutAll", null);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, common_1.Post)('sessions/revoke-others'),
|
|
163
|
+
(0, decorators_1.RequirePermission)(auth_manifest_1.AUTH_PERMISSIONS.SESSION_MANAGE),
|
|
164
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
165
|
+
(0, swagger_1.ApiOperation)({
|
|
166
|
+
summary: 'Revoke all other sessions',
|
|
167
|
+
description: 'Revokes every other refresh-token family, invalidates their in-flight access JWTs ' +
|
|
168
|
+
'(session epoch + family denylist), rotates the kept session, and returns a **new** ' +
|
|
169
|
+
'token envelope. Clients must replace stored access/refresh tokens with the response.',
|
|
170
|
+
}),
|
|
171
|
+
(0, swagger_1.ApiBody)({ type: token_dto_1.RefreshTokenDto }),
|
|
105
172
|
(0, swagger_1.ApiOkResponse)({
|
|
106
|
-
|
|
173
|
+
type: token_dto_1.TokenResponseDto,
|
|
174
|
+
description: 'Fresh tokens for the kept device plus status message',
|
|
175
|
+
schema: {
|
|
176
|
+
example: {
|
|
177
|
+
accessToken: '…',
|
|
178
|
+
refreshToken: '…',
|
|
179
|
+
expiresIn: 900000,
|
|
180
|
+
user: { id: '…' },
|
|
181
|
+
roles: ['user'],
|
|
182
|
+
message: 'All other sessions revoked successfully. Use the new access and refresh tokens.',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
}),
|
|
186
|
+
__param(0, (0, decorators_1.CurrentUser)()),
|
|
187
|
+
__param(1, (0, common_1.Body)()),
|
|
188
|
+
__param(2, (0, common_1.Req)()),
|
|
189
|
+
__metadata("design:type", Function),
|
|
190
|
+
__metadata("design:paramtypes", [Object, token_dto_1.RefreshTokenDto, Object]),
|
|
191
|
+
__metadata("design:returntype", Promise)
|
|
192
|
+
], SessionController.prototype, "revokeOthers", null);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, common_1.Get)('sessions'),
|
|
195
|
+
(0, decorators_1.RequirePermission)(auth_manifest_1.AUTH_PERMISSIONS.SESSION_MANAGE),
|
|
196
|
+
(0, swagger_1.ApiOperation)({
|
|
197
|
+
summary: 'List active sessions',
|
|
198
|
+
description: 'Returns non-revoked, non-expired sessions for the current user (paginated). ' +
|
|
199
|
+
'Does not include token hashes or provider secrets.',
|
|
107
200
|
}),
|
|
201
|
+
(0, swagger_1.ApiOkResponse)({ type: session_dto_1.PaginatedSessionsResponseDto }),
|
|
108
202
|
__param(0, (0, decorators_1.CurrentUser)()),
|
|
203
|
+
__param(1, (0, common_1.Query)()),
|
|
109
204
|
__metadata("design:type", Function),
|
|
110
|
-
__metadata("design:paramtypes", [Object]),
|
|
205
|
+
__metadata("design:paramtypes", [Object, session_dto_1.ListSessionsQueryDto]),
|
|
111
206
|
__metadata("design:returntype", void 0)
|
|
112
207
|
], SessionController.prototype, "getActiveSessions", null);
|
|
113
208
|
__decorate([
|
|
114
209
|
(0, common_1.Post)('sessions/:sessionId/revoke'),
|
|
210
|
+
(0, decorators_1.RequirePermission)(auth_manifest_1.AUTH_PERMISSIONS.SESSION_MANAGE),
|
|
115
211
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
116
212
|
(0, swagger_1.ApiOperation)({
|
|
117
213
|
summary: 'Revoke a session',
|
|
118
|
-
description: 'Revoke a specific refresh
|
|
214
|
+
description: 'Revoke a specific refresh-token rotation family by session (refresh token) ID. ' +
|
|
215
|
+
'That device’s in-flight access JWTs are invalidated immediately via family denylist. ' +
|
|
216
|
+
'Other devices are unaffected.',
|
|
119
217
|
}),
|
|
120
218
|
(0, swagger_1.ApiOkResponse)({
|
|
121
219
|
description: 'Session revoked successfully',
|
|
@@ -131,9 +229,10 @@ __decorate([
|
|
|
131
229
|
exports.SessionController = SessionController = __decorate([
|
|
132
230
|
(0, swagger_1.ApiTags)('Account'),
|
|
133
231
|
(0, common_1.Controller)('auth'),
|
|
134
|
-
(0, common_1.UseGuards)(auth_guard_1.JwtAuthGuard),
|
|
232
|
+
(0, common_1.UseGuards)(auth_guard_1.JwtAuthGuard, permissions_guard_1.PermissionsGuard),
|
|
135
233
|
(0, swagger_1.ApiBearerAuth)(),
|
|
136
234
|
__metadata("design:paramtypes", [account_service_1.AccountService,
|
|
137
|
-
token_service_1.TokenService
|
|
235
|
+
token_service_1.TokenService,
|
|
236
|
+
dpop_service_1.DpopService])
|
|
138
237
|
], SessionController);
|
|
139
238
|
//# sourceMappingURL=session.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.controller.js","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/session.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"session.controller.js","sourceRoot":"","sources":["../../../../src/modules/auth/controllers/session.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AACxB,6CAQyB;AAGzB,2DAAoF;AACpF,8GAA8F;AAC9F,mDAA+D;AAC/D,kEAAiE;AACjE,gFAA4E;AAE5E,uEAAyE;AACzE,yEAAqE;AACrE,oDAAoD;AACpD,oDAAwF;AACxF,gDAAgF;AAChF,iEAA6D;AAC7D,2DAAuD;AAMhD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAEX;IACA;IACA;IAHlB,YACkB,cAA8B,EAC9B,YAA0B,EAC1B,WAAwB;QAFxB,mBAAc,GAAd,cAAc,CAAgB;QAC9B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,gBAAW,GAAX,WAAW,CAAa;IACvC,CAAC;IAsBE,AAAN,KAAK,CAAC,YAAY,CAAS,IAAqB,EAAS,GAAY;QACpE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,IAAA,kCAAkB,EAAC,GAAG,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAgBK,AAAN,KAAK,CAAC,MAAM,CAAgB,IAAiB,EAAS,GAAY,EAAU,IAAgB;QAC3F,MAAM,IAAI,CAAC,2BAA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7B"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
export declare class AuthConfigResponseDto {
|
|
2
2
|
defaultAuthMethod: 'phone' | 'email';
|
|
3
|
-
supportedLoginMethods: ('phone' | 'email')[];
|
|
4
|
-
supportedRegistrationMethods: ('phone' | 'email')[];
|
|
3
|
+
supportedLoginMethods: ('phone' | 'email' | 'oauth')[];
|
|
4
|
+
supportedRegistrationMethods: ('phone' | 'email' | 'oauth')[];
|
|
5
5
|
passwordResetEnabled: boolean;
|
|
6
|
+
emailPasswordResetEnabled: boolean;
|
|
7
|
+
phonePasswordResetEnabled: boolean;
|
|
8
|
+
requireEmailVerifiedToLogin: boolean;
|
|
9
|
+
mfaEnabled: boolean;
|
|
10
|
+
mfaRequiredForMethods: ('phone' | 'email' | 'oauth')[];
|
|
11
|
+
oauthProviders: string[];
|
|
12
|
+
turnstileEnabled: boolean;
|
|
13
|
+
turnstileSiteKey?: string;
|
|
14
|
+
dpopMode: 'off' | 'optional' | 'required';
|
|
6
15
|
}
|
|
7
16
|
//# sourceMappingURL=auth-config.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-config.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/auth-config.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAMjC,iBAAiB,EAAG,OAAO,GAAG,OAAO,CAAC;IAQtC,qBAAqB,EAAG,CAAC,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-config.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/auth-config.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAMjC,iBAAiB,EAAG,OAAO,GAAG,OAAO,CAAC;IAQtC,qBAAqB,EAAG,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC;IAQxD,4BAA4B,EAAG,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC;IAO/D,oBAAoB,EAAG,OAAO,CAAC;IAM/B,yBAAyB,EAAG,OAAO,CAAC;IAMpC,yBAAyB,EAAG,OAAO,CAAC;IAOpC,2BAA2B,EAAG,OAAO,CAAC;IAMtC,UAAU,EAAG,OAAO,CAAC;IAQrB,qBAAqB,EAAG,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC;IAOxD,cAAc,EAAG,MAAM,EAAE,CAAC;IAM1B,gBAAgB,EAAG,OAAO,CAAC;IAK3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAO1B,QAAQ,EAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;CAC3C"}
|
|
@@ -16,6 +16,15 @@ class AuthConfigResponseDto {
|
|
|
16
16
|
supportedLoginMethods;
|
|
17
17
|
supportedRegistrationMethods;
|
|
18
18
|
passwordResetEnabled;
|
|
19
|
+
emailPasswordResetEnabled;
|
|
20
|
+
phonePasswordResetEnabled;
|
|
21
|
+
requireEmailVerifiedToLogin;
|
|
22
|
+
mfaEnabled;
|
|
23
|
+
mfaRequiredForMethods;
|
|
24
|
+
oauthProviders;
|
|
25
|
+
turnstileEnabled;
|
|
26
|
+
turnstileSiteKey;
|
|
27
|
+
dpopMode;
|
|
19
28
|
}
|
|
20
29
|
exports.AuthConfigResponseDto = AuthConfigResponseDto;
|
|
21
30
|
__decorate([
|
|
@@ -29,7 +38,7 @@ __decorate([
|
|
|
29
38
|
__decorate([
|
|
30
39
|
(0, swagger_1.ApiProperty)({
|
|
31
40
|
type: [String],
|
|
32
|
-
enum: ['phone', 'email'],
|
|
41
|
+
enum: ['phone', 'email', 'oauth'],
|
|
33
42
|
description: 'Login credential shapes accepted by POST /auth/login',
|
|
34
43
|
example: ['phone', 'email'],
|
|
35
44
|
}),
|
|
@@ -38,7 +47,7 @@ __decorate([
|
|
|
38
47
|
__decorate([
|
|
39
48
|
(0, swagger_1.ApiProperty)({
|
|
40
49
|
type: [String],
|
|
41
|
-
enum: ['phone', 'email'],
|
|
50
|
+
enum: ['phone', 'email', 'oauth'],
|
|
42
51
|
description: 'Registration credential shapes accepted by POST /auth/register',
|
|
43
52
|
example: ['phone', 'email'],
|
|
44
53
|
}),
|
|
@@ -46,9 +55,75 @@ __decorate([
|
|
|
46
55
|
], AuthConfigResponseDto.prototype, "supportedRegistrationMethods", void 0);
|
|
47
56
|
__decorate([
|
|
48
57
|
(0, swagger_1.ApiProperty)({
|
|
49
|
-
description: 'Whether
|
|
58
|
+
description: 'Whether password reset flows are available (email forgot-password and/or phone OTP reset)',
|
|
50
59
|
example: true,
|
|
51
60
|
}),
|
|
52
61
|
__metadata("design:type", Boolean)
|
|
53
62
|
], AuthConfigResponseDto.prototype, "passwordResetEnabled", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({
|
|
65
|
+
description: 'Whether POST /auth/forgot-password (email link) is available',
|
|
66
|
+
example: true,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", Boolean)
|
|
69
|
+
], AuthConfigResponseDto.prototype, "emailPasswordResetEnabled", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: 'Whether POST /auth/reset-password/phone is available',
|
|
73
|
+
example: true,
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], AuthConfigResponseDto.prototype, "phonePasswordResetEnabled", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)({
|
|
79
|
+
description: 'When true, email/password login requires a verified email (auth.email.require_verified_to_login)',
|
|
80
|
+
example: false,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], AuthConfigResponseDto.prototype, "requireEmailVerifiedToLogin", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Whether MFA challenges may be issued (global kill-switch)',
|
|
87
|
+
example: true,
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", Boolean)
|
|
90
|
+
], AuthConfigResponseDto.prototype, "mfaEnabled", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)({
|
|
93
|
+
type: [String],
|
|
94
|
+
enum: ['phone', 'email', 'oauth'],
|
|
95
|
+
description: 'First-factor methods that trigger MFA when the user has MFA enrolled',
|
|
96
|
+
example: ['email', 'oauth'],
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", Array)
|
|
99
|
+
], AuthConfigResponseDto.prototype, "mfaRequiredForMethods", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, swagger_1.ApiProperty)({
|
|
102
|
+
type: [String],
|
|
103
|
+
example: ['google'],
|
|
104
|
+
description: 'Enabled OAuth providers',
|
|
105
|
+
}),
|
|
106
|
+
__metadata("design:type", Array)
|
|
107
|
+
], AuthConfigResponseDto.prototype, "oauthProviders", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)({
|
|
110
|
+
description: 'When true, send-otp / resend-otp require a Turnstile token',
|
|
111
|
+
example: false,
|
|
112
|
+
}),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], AuthConfigResponseDto.prototype, "turnstileEnabled", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
117
|
+
description: 'Cloudflare Turnstile site key when Turnstile is enabled',
|
|
118
|
+
}),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], AuthConfigResponseDto.prototype, "turnstileSiteKey", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
enum: ['off', 'optional', 'required'],
|
|
124
|
+
description: 'DPoP mode for access-token binding (RFC 9449)',
|
|
125
|
+
example: 'optional',
|
|
126
|
+
}),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], AuthConfigResponseDto.prototype, "dpopMode", void 0);
|
|
54
129
|
//# sourceMappingURL=auth-config.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-config.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/auth-config.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"auth-config.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/auth-config.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AAEnE,MAAa,qBAAqB;IAMjC,iBAAiB,CAAqB;IAQtC,qBAAqB,CAAmC;IAQxD,4BAA4B,CAAmC;IAO/D,oBAAoB,CAAW;IAM/B,yBAAyB,CAAW;IAMpC,yBAAyB,CAAW;IAOpC,2BAA2B,CAAW;IAMtC,UAAU,CAAW;IAQrB,qBAAqB,CAAmC;IAOxD,cAAc,CAAY;IAM1B,gBAAgB,CAAW;IAK3B,gBAAgB,CAAU;IAO1B,QAAQ,CAAmC;CAC3C;AAxFD,sDAwFC;AAlFA;IALC,IAAA,qBAAW,EAAC;QACZ,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QACxB,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,OAAO;KAChB,CAAC;;gEACoC;AAQtC;IANC,IAAA,qBAAW,EAAC;QACZ,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;QACjC,WAAW,EAAE,sDAAsD;QACnE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAC3B,CAAC;;oEACsD;AAQxD;IANC,IAAA,qBAAW,EAAC;QACZ,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;QACjC,WAAW,EAAE,gEAAgE;QAC7E,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CA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AU;KACnB,CAAC;;uDACyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./login.dto"), exports);
|
|
18
|
+
__exportStar(require("./mfa.dto"), exports);
|
|
19
|
+
__exportStar(require("./oauth.dto"), exports);
|
|
18
20
|
__exportStar(require("./otp.dto"), exports);
|
|
19
21
|
__exportStar(require("./password.dto"), exports);
|
|
20
22
|
__exportStar(require("./pin.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B;AAC1B,iDAA+B;AAC/B,4CAA0B;AAC1B,iDAA+B;AAC/B,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,iDAA+B;AAC/B,4CAA0B;AAC1B,iDAA+B;AAC/B,8CAA4B"}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
+
import { OAuthProvider } from '../entities/user-oauth-identity.entity';
|
|
1
2
|
/**
|
|
2
3
|
* Login DTO — routing is determined by the request body, not the global auth.method setting.
|
|
3
4
|
*
|
|
4
5
|
* Phone OTP login: `{ verificationToken }` from POST /auth/verify-otp when hasAccount=true.
|
|
5
6
|
* Email login: `{ email, password }`.
|
|
7
|
+
* OAuth login: `{ provider, idToken }`.
|
|
6
8
|
*
|
|
7
|
-
* Per-user {@link UserAuthMethod} is enforced after the credential path is selected
|
|
9
|
+
* Per-user {@link UserAuthMethod} is enforced after the credential path is selected
|
|
10
|
+
* (OAuth linked accounts may sign in via their linked provider).
|
|
8
11
|
*/
|
|
9
12
|
export declare class LoginDto {
|
|
10
13
|
_credentialsShape?: string;
|
|
11
14
|
verificationToken?: string;
|
|
12
15
|
email?: string;
|
|
13
16
|
password?: string;
|
|
17
|
+
provider?: OAuthProvider;
|
|
18
|
+
idToken?: string;
|
|
19
|
+
nonce?: string;
|
|
20
|
+
turnstileToken?: string;
|
|
14
21
|
}
|
|
15
22
|
//# sourceMappingURL=login.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/login.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/login.dto.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAGvE;;;;;;;;;GASG;AACH,qBAAa,QAAQ;IAIpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAW3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAQ3B,KAAK,CAAC,EAAE,MAAM,CAAC;IASf,QAAQ,CAAC,EAAE,MAAM,CAAC;IASlB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAQzB,OAAO,CAAC,EAAE,MAAM,CAAC;IAUjB,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB"}
|