@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
|
@@ -9,11 +9,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DeleteAccountConfirmDto = exports.ChangePasswordDto = exports.ResetPasswordWithPhoneDto = exports.ResetPasswordDto = exports.ForgotPasswordDto = exports.VerifyEmailDto = void 0;
|
|
12
|
+
exports.DeleteAccountConfirmDto = exports.ChangeEmailDto = exports.SetPasswordDto = exports.ChangePasswordDto = exports.ResetPasswordWithPhoneDto = exports.ResetPasswordDto = exports.ForgotPasswordDto = exports.VerifyEmailDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const is_exclusive_delete_confirm_params_validator_1 = require("../../../common/validators/is-exclusive-delete-confirm-params.validator");
|
|
16
16
|
const is_otp_verification_code_validator_1 = require("../../../common/validators/is-otp-verification-code.validator");
|
|
17
|
+
const user_oauth_identity_entity_1 = require("../entities/user-oauth-identity.entity");
|
|
17
18
|
const auth_params_util_1 = require("../utils/auth-params.util");
|
|
18
19
|
class VerifyEmailDto {
|
|
19
20
|
verificationToken;
|
|
@@ -29,6 +30,7 @@ __decorate([
|
|
|
29
30
|
], VerifyEmailDto.prototype, "verificationToken", void 0);
|
|
30
31
|
class ForgotPasswordDto {
|
|
31
32
|
email;
|
|
33
|
+
turnstileToken;
|
|
32
34
|
}
|
|
33
35
|
exports.ForgotPasswordDto = ForgotPasswordDto;
|
|
34
36
|
__decorate([
|
|
@@ -39,6 +41,15 @@ __decorate([
|
|
|
39
41
|
(0, class_validator_1.IsEmail)(),
|
|
40
42
|
__metadata("design:type", String)
|
|
41
43
|
], ForgotPasswordDto.prototype, "email", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
46
|
+
description: 'Cloudflare Turnstile token when Turnstile is enabled.',
|
|
47
|
+
}),
|
|
48
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ForgotPasswordDto.prototype, "turnstileToken", void 0);
|
|
42
53
|
class ResetPasswordDto {
|
|
43
54
|
token;
|
|
44
55
|
newPassword;
|
|
@@ -70,8 +81,8 @@ class ResetPasswordWithPhoneDto {
|
|
|
70
81
|
exports.ResetPasswordWithPhoneDto = ResetPasswordWithPhoneDto;
|
|
71
82
|
__decorate([
|
|
72
83
|
(0, swagger_1.ApiProperty)({
|
|
73
|
-
description: 'Single-use
|
|
74
|
-
'Not the verificationId from send-otp.',
|
|
84
|
+
description: 'Single-use login bridge token from POST /auth/verify-otp (SMS channel, hasAccount=true). ' +
|
|
85
|
+
'Not the verificationId from send-otp, and not a hasAccount=false registration token.',
|
|
75
86
|
}),
|
|
76
87
|
(0, class_validator_1.IsString)(),
|
|
77
88
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -94,6 +105,7 @@ __decorate([
|
|
|
94
105
|
class ChangePasswordDto {
|
|
95
106
|
currentPassword;
|
|
96
107
|
newPassword;
|
|
108
|
+
stepUpToken;
|
|
97
109
|
}
|
|
98
110
|
exports.ChangePasswordDto = ChangePasswordDto;
|
|
99
111
|
__decorate([
|
|
@@ -116,17 +128,164 @@ __decorate([
|
|
|
116
128
|
}),
|
|
117
129
|
__metadata("design:type", String)
|
|
118
130
|
], ChangePasswordDto.prototype, "newPassword", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
133
|
+
description: 'MFA step-up with purpose=change_password.',
|
|
134
|
+
}),
|
|
135
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
136
|
+
(0, class_validator_1.IsString)(),
|
|
137
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], ChangePasswordDto.prototype, "stepUpToken", void 0);
|
|
140
|
+
/** First-time password for accounts that currently have no passwordHash (e.g. OAuth). */
|
|
141
|
+
class SetPasswordDto {
|
|
142
|
+
newPassword;
|
|
143
|
+
stepUpToken;
|
|
144
|
+
verificationId;
|
|
145
|
+
otp;
|
|
146
|
+
provider;
|
|
147
|
+
idToken;
|
|
148
|
+
}
|
|
149
|
+
exports.SetPasswordDto = SetPasswordDto;
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, swagger_1.ApiProperty)({
|
|
152
|
+
example: 'NewP@ssw0rd!',
|
|
153
|
+
description: 'New password (min 8 chars, upper, lower, number, symbol)',
|
|
154
|
+
}),
|
|
155
|
+
(0, class_validator_1.IsStrongPassword)({
|
|
156
|
+
minLength: 8,
|
|
157
|
+
minLowercase: 1,
|
|
158
|
+
minUppercase: 1,
|
|
159
|
+
minNumbers: 1,
|
|
160
|
+
minSymbols: 1,
|
|
161
|
+
}),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], SetPasswordDto.prototype, "newPassword", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
166
|
+
description: 'MFA step-up with purpose=set_password.',
|
|
167
|
+
}),
|
|
168
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
169
|
+
(0, class_validator_1.IsString)(),
|
|
170
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
171
|
+
__metadata("design:type", String)
|
|
172
|
+
], SetPasswordDto.prototype, "stepUpToken", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Phone re-auth when MFA is off.' }),
|
|
175
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
176
|
+
(0, class_validator_1.IsString)(),
|
|
177
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], SetPasswordDto.prototype, "verificationId", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
182
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
183
|
+
(0, class_validator_1.IsString)(),
|
|
184
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
185
|
+
__metadata("design:type", String)
|
|
186
|
+
], SetPasswordDto.prototype, "otp", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: user_oauth_identity_entity_1.OAuthProvider }),
|
|
189
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
190
|
+
(0, class_validator_1.IsEnum)(user_oauth_identity_entity_1.OAuthProvider),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], SetPasswordDto.prototype, "provider", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Linked OAuth ID token re-auth when MFA is off.' }),
|
|
195
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
196
|
+
(0, class_validator_1.IsString)(),
|
|
197
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], SetPasswordDto.prototype, "idToken", void 0);
|
|
200
|
+
/** Change email via OTP on the new address (same pattern as profile/change-phone). */
|
|
201
|
+
class ChangeEmailDto {
|
|
202
|
+
verificationId;
|
|
203
|
+
otp;
|
|
204
|
+
stepUpToken;
|
|
205
|
+
password;
|
|
206
|
+
reauthVerificationId;
|
|
207
|
+
reauthOtp;
|
|
208
|
+
provider;
|
|
209
|
+
idToken;
|
|
210
|
+
}
|
|
211
|
+
exports.ChangeEmailDto = ChangeEmailDto;
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, swagger_1.ApiProperty)({
|
|
214
|
+
description: 'verificationId from POST /auth/send-otp with channel=email to the new email address',
|
|
215
|
+
}),
|
|
216
|
+
(0, class_validator_1.IsUUID)(),
|
|
217
|
+
__metadata("design:type", String)
|
|
218
|
+
], ChangeEmailDto.prototype, "verificationId", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, swagger_1.ApiProperty)({ example: '123456', description: 'OTP sent to the new email' }),
|
|
221
|
+
(0, class_validator_1.IsString)(),
|
|
222
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
223
|
+
(0, is_otp_verification_code_validator_1.IsOtpVerificationCode)(),
|
|
224
|
+
__metadata("design:type", String)
|
|
225
|
+
], ChangeEmailDto.prototype, "otp", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
228
|
+
description: 'MFA step-up with purpose=change_email.',
|
|
229
|
+
}),
|
|
230
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
231
|
+
(0, class_validator_1.IsString)(),
|
|
232
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], ChangeEmailDto.prototype, "stepUpToken", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
237
|
+
description: 'Current-account password re-auth when MFA is off.',
|
|
238
|
+
}),
|
|
239
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
240
|
+
(0, class_validator_1.IsString)(),
|
|
241
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
242
|
+
__metadata("design:type", String)
|
|
243
|
+
], ChangeEmailDto.prototype, "password", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
246
|
+
description: 'Current-phone OTP verificationId when MFA is off (not the new-email OTP).',
|
|
247
|
+
}),
|
|
248
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
249
|
+
(0, class_validator_1.IsString)(),
|
|
250
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
251
|
+
__metadata("design:type", String)
|
|
252
|
+
], ChangeEmailDto.prototype, "reauthVerificationId", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Current-phone OTP code when MFA is off.' }),
|
|
255
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
256
|
+
(0, class_validator_1.IsString)(),
|
|
257
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
258
|
+
__metadata("design:type", String)
|
|
259
|
+
], ChangeEmailDto.prototype, "reauthOtp", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: user_oauth_identity_entity_1.OAuthProvider }),
|
|
262
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
263
|
+
(0, class_validator_1.IsEnum)(user_oauth_identity_entity_1.OAuthProvider),
|
|
264
|
+
__metadata("design:type", String)
|
|
265
|
+
], ChangeEmailDto.prototype, "provider", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
268
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
269
|
+
(0, class_validator_1.IsString)(),
|
|
270
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
271
|
+
__metadata("design:type", String)
|
|
272
|
+
], ChangeEmailDto.prototype, "idToken", void 0);
|
|
119
273
|
/**
|
|
120
274
|
* Account deletion confirmation — routing is determined by the request body.
|
|
121
275
|
*
|
|
122
276
|
* Phone auth users: `{ verificationId, otp }` from delete-request step.
|
|
123
277
|
* Email auth users: `{ password }`.
|
|
278
|
+
* OAuth auth users: `{ provider, idToken }`.
|
|
279
|
+
* When MFA is enrolled, also pass `stepUpToken` with purpose=`account_delete`.
|
|
124
280
|
*/
|
|
125
281
|
class DeleteAccountConfirmDto {
|
|
126
282
|
_confirmShape;
|
|
283
|
+
stepUpToken;
|
|
127
284
|
verificationId;
|
|
128
285
|
otp;
|
|
129
286
|
password;
|
|
287
|
+
provider;
|
|
288
|
+
idToken;
|
|
130
289
|
}
|
|
131
290
|
exports.DeleteAccountConfirmDto = DeleteAccountConfirmDto;
|
|
132
291
|
__decorate([
|
|
@@ -135,10 +294,19 @@ __decorate([
|
|
|
135
294
|
(0, is_exclusive_delete_confirm_params_validator_1.IsExclusiveDeleteConfirmParams)(),
|
|
136
295
|
__metadata("design:type", String)
|
|
137
296
|
], DeleteAccountConfirmDto.prototype, "_confirmShape", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
299
|
+
description: 'MFA step-up with purpose=account_delete (required when MFA is enrolled).',
|
|
300
|
+
}),
|
|
301
|
+
(0, class_validator_1.ValidateIf)((_, v) => v !== undefined),
|
|
302
|
+
(0, class_validator_1.IsString)(),
|
|
303
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
304
|
+
__metadata("design:type", String)
|
|
305
|
+
], DeleteAccountConfirmDto.prototype, "stepUpToken", void 0);
|
|
138
306
|
__decorate([
|
|
139
307
|
(0, swagger_1.ApiPropertyOptional)({
|
|
140
308
|
description: 'Verification ID from POST /auth/account/delete-request (phone auth users). ' +
|
|
141
|
-
'Mutually exclusive with password.',
|
|
309
|
+
'Mutually exclusive with password / oauth.',
|
|
142
310
|
}),
|
|
143
311
|
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.resolveDeleteConfirmMode)(o) === 'phone'),
|
|
144
312
|
(0, class_validator_1.IsUUID)(),
|
|
@@ -158,11 +326,29 @@ __decorate([
|
|
|
158
326
|
__decorate([
|
|
159
327
|
(0, swagger_1.ApiPropertyOptional)({
|
|
160
328
|
example: 'P@ssw0rd!',
|
|
161
|
-
description: 'Current account password (email auth users). Mutually exclusive with OTP
|
|
329
|
+
description: 'Current account password (email auth users). Mutually exclusive with OTP / oauth.',
|
|
162
330
|
}),
|
|
163
331
|
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.resolveDeleteConfirmMode)(o) === 'email'),
|
|
164
332
|
(0, class_validator_1.IsString)(),
|
|
165
333
|
(0, class_validator_1.IsNotEmpty)(),
|
|
166
334
|
__metadata("design:type", String)
|
|
167
335
|
], DeleteAccountConfirmDto.prototype, "password", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
338
|
+
enum: user_oauth_identity_entity_1.OAuthProvider,
|
|
339
|
+
description: 'OAuth provider for OAuth-only account deletion.',
|
|
340
|
+
}),
|
|
341
|
+
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.resolveDeleteConfirmMode)(o) === 'oauth'),
|
|
342
|
+
(0, class_validator_1.IsEnum)(user_oauth_identity_entity_1.OAuthProvider),
|
|
343
|
+
__metadata("design:type", String)
|
|
344
|
+
], DeleteAccountConfirmDto.prototype, "provider", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
347
|
+
description: 'OAuth ID token proving ownership of a linked provider identity.',
|
|
348
|
+
}),
|
|
349
|
+
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.resolveDeleteConfirmMode)(o) === 'oauth'),
|
|
350
|
+
(0, class_validator_1.IsString)(),
|
|
351
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
352
|
+
__metadata("design:type", String)
|
|
353
|
+
], DeleteAccountConfirmDto.prototype, "idToken", void 0);
|
|
168
354
|
//# sourceMappingURL=password.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/password.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"password.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/password.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDASyB;AAEzB,0IAAyH;AACzH,sHAAsG;AACtG,uFAAuE;AACvE,gEAAqE;AAErE,MAAa,cAAc;IAO1B,iBAAiB,CAAU;CAC3B;AARD,wCAQC;AADA;IANC,IAAA,qBAAW,EAAC;QACZ,WAAW,EACV,mGAAmG;KACpG,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACc;AAG5B,MAAa,iBAAiB;IAM7B,K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,4BAAU,EAAC,CAAC,CAA0B,EAAE,EAAE,CAAC,IAAA,2CAAwB,EAAC,CAAC,CAAC,KAAK,OAAO,CAAC;IACnF,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0DAAqB,GAAE;;oDACX;AAUb;IARC,IAAA,6BAAmB,EAAC;QACpB,OAAO,EAAE,WAAW;QACpB,WAAW,EACV,mFAAmF;KACpF,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAA0B,EAAE,EAAE,CAAC,IAAA,2CAAwB,EAAC,CAAC,CAAC,KAAK,OAAO,CAAC;IACnF,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACK;AAQlB;IANC,IAAA,6BAAmB,EAAC;QACpB,IAAI,EAAE,0CAAa;QACnB,WAAW,EAAE,iDAAiD;KAC9D,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAA0B,EAAE,EAAE,CAAC,IAAA,2CAAwB,EAAC,CAAC,CAAC,KAAK,OAAO,CAAC;IACnF,IAAA,wBAAM,EAAC,0CAAa,CAAC;;yDACG;AAQzB;IANC,IAAA,6BAAmB,EAAC;QACpB,WAAW,EAAE,iEAAiE;KAC9E,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAA0B,EAAE,EAAE,CAAC,IAAA,2CAAwB,EAAC,CAAC,CAAC,KAAK,OAAO,CAAC;IACnF,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI"}
|
|
@@ -5,6 +5,7 @@ import { LoginDto } from './login.dto';
|
|
|
5
5
|
*
|
|
6
6
|
* Phone registration: `{ verificationToken, profile }` (+ optional email)
|
|
7
7
|
* Email registration: `{ email, password, profile }` (+ optional phoneNumber)
|
|
8
|
+
* OAuth registration: `{ provider, idToken, profile }`
|
|
8
9
|
*/
|
|
9
10
|
export declare class RegisterDto extends LoginDto {
|
|
10
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/register.dto.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC
|
|
1
|
+
{"version":3,"file":"register.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/register.dto.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;GAMG;AACH,qBAAa,WAAY,SAAQ,QAAQ;IACxC;;OAEG;IAaK,QAAQ,CAAC,EAAE,MAAM,CAAC;IAS1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAQrB,OAAO,EAAG,oBAAoB,CAAC;CAC/B"}
|
|
@@ -21,6 +21,7 @@ const login_dto_1 = require("./login.dto");
|
|
|
21
21
|
*
|
|
22
22
|
* Phone registration: `{ verificationToken, profile }` (+ optional email)
|
|
23
23
|
* Email registration: `{ email, password, profile }` (+ optional phoneNumber)
|
|
24
|
+
* OAuth registration: `{ provider, idToken, profile }`
|
|
24
25
|
*/
|
|
25
26
|
class RegisterDto extends login_dto_1.LoginDto {
|
|
26
27
|
phoneNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/register.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAOyB;AAEzB,uFAAiF;AACjF,gEAA8D;AAC9D,2CAAuC;AAEvC
|
|
1
|
+
{"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/register.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDA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|
2
|
+
export declare class SessionResponseDto {
|
|
3
|
+
id: string;
|
|
4
|
+
familyId: string;
|
|
5
|
+
deviceInfo?: string;
|
|
6
|
+
ipAddress?: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
expiresAt: Date;
|
|
9
|
+
}
|
|
10
|
+
export declare class ListSessionsQueryDto {
|
|
11
|
+
page?: number;
|
|
12
|
+
limit?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class PaginatedSessionsResponseDto {
|
|
15
|
+
items: SessionResponseDto[];
|
|
16
|
+
total: number;
|
|
17
|
+
page: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=session.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/session.dto.ts"],"names":[],"mappings":"AAIA,gFAAgF;AAChF,qBAAa,kBAAkB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAGZ,QAAQ,EAAG,MAAM,CAAC;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CACjB;AAED,qBAAa,oBAAoB;IAMhC,IAAI,CAAC,EAAE,MAAM,CAAC;IAWd,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,4BAA4B;IAExC,KAAK,EAAG,kBAAkB,EAAE,CAAC;IAG7B,KAAK,EAAG,MAAM,CAAC;IAGf,IAAI,EAAG,MAAM,CAAC;IAGd,KAAK,EAAG,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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.PaginatedSessionsResponseDto = exports.ListSessionsQueryDto = exports.SessionResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
/** Safe session list item — never includes token hashes or provider secrets. */
|
|
17
|
+
class SessionResponseDto {
|
|
18
|
+
id;
|
|
19
|
+
familyId;
|
|
20
|
+
deviceInfo;
|
|
21
|
+
ipAddress;
|
|
22
|
+
createdAt;
|
|
23
|
+
expiresAt;
|
|
24
|
+
}
|
|
25
|
+
exports.SessionResponseDto = SessionResponseDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ description: 'Refresh-token row id (session id)' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SessionResponseDto.prototype, "id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ description: 'Rotation family id' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SessionResponseDto.prototype, "familyId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SessionResponseDto.prototype, "deviceInfo", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], SessionResponseDto.prototype, "ipAddress", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)(),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], SessionResponseDto.prototype, "createdAt", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)(),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], SessionResponseDto.prototype, "expiresAt", void 0);
|
|
50
|
+
class ListSessionsQueryDto {
|
|
51
|
+
page;
|
|
52
|
+
limit;
|
|
53
|
+
}
|
|
54
|
+
exports.ListSessionsQueryDto = ListSessionsQueryDto;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiPropertyOptional)({ description: '1-based page (default 1)', minimum: 1, default: 1 }),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
59
|
+
(0, class_validator_1.IsInt)(),
|
|
60
|
+
(0, class_validator_1.Min)(1),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], ListSessionsQueryDto.prototype, "page", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
65
|
+
description: 'Page size (default from settings.sessions.list_page_size)',
|
|
66
|
+
minimum: 1,
|
|
67
|
+
}),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
70
|
+
(0, class_validator_1.IsInt)(),
|
|
71
|
+
(0, class_validator_1.Min)(1),
|
|
72
|
+
(0, class_validator_1.Max)(100),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], ListSessionsQueryDto.prototype, "limit", void 0);
|
|
75
|
+
class PaginatedSessionsResponseDto {
|
|
76
|
+
items;
|
|
77
|
+
total;
|
|
78
|
+
page;
|
|
79
|
+
limit;
|
|
80
|
+
}
|
|
81
|
+
exports.PaginatedSessionsResponseDto = PaginatedSessionsResponseDto;
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiProperty)({ type: [SessionResponseDto] }),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], PaginatedSessionsResponseDto.prototype, "items", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)(),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], PaginatedSessionsResponseDto.prototype, "total", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiProperty)(),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], PaginatedSessionsResponseDto.prototype, "page", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)(),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], PaginatedSessionsResponseDto.prototype, "limit", void 0);
|
|
98
|
+
//# sourceMappingURL=session.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAA8D;AAE9D,gFAAgF;AAChF,MAAa,kBAAkB;IAE9B,EAAE,CAAU;IAGZ,QAAQ,CAAU;IAGlB,UAAU,CAAU;IAGpB,SAAS,CAAU;IAGnB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CACjB;AAlBD,gDAkBC;AAhBA;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;;8CACtD;AAGZ;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;;oDACjC;AAGlB;IADC,IAAA,6BAAmB,GAAE;;sDACF;AAGpB;IADC,IAAA,6BAAmB,GAAE;;qDACH;AAGnB;IADC,IAAA,qBAAW,GAAE;8BACF,IAAI;qDAAC;AAGjB;IADC,IAAA,qBAAW,GAAE;8BACF,IAAI;qDAAC;AAGlB,MAAa,oBAAoB;IAMhC,IAAI,CAAU;IAWd,KAAK,CAAU;CACf;AAlBD,oDAkBC;AAZA;IALC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACxF,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;kDACO;AAWd;IATC,IAAA,6BAAmB,EAAC;QACpB,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE,CAAC;KACV,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;mDACM;AAGhB,MAAa,4BAA4B;IAExC,KAAK,CAAwB;IAG7B,KAAK,CAAU;IAGf,IAAI,CAAU;IAGd,KAAK,CAAU;CACf;AAZD,oEAYC;AAVA;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC;;2DACf;AAG7B;IADC,IAAA,qBAAW,GAAE;;2DACC;AAGf;IADC,IAAA,qBAAW,GAAE;;0DACA;AAGd;IADC,IAAA,qBAAW,GAAE;;2DACC"}
|
|
@@ -2,6 +2,10 @@ import { UserResponseDto } from '../../users/dto/user.dto';
|
|
|
2
2
|
export declare class RefreshTokenDto {
|
|
3
3
|
refreshToken: string;
|
|
4
4
|
}
|
|
5
|
+
/** Logout body — omit refreshToken to revoke the current session via access-token `fid`. */
|
|
6
|
+
export declare class LogoutDto {
|
|
7
|
+
refreshToken?: string;
|
|
8
|
+
}
|
|
5
9
|
export declare class TokenResponseDto {
|
|
6
10
|
accessToken: string;
|
|
7
11
|
refreshToken: string;
|
|
@@ -16,7 +20,10 @@ export declare class TokenResponseDto {
|
|
|
16
20
|
* Sensitive profile fields are NOT embedded to avoid stale data
|
|
17
21
|
* in long-lived tokens and to keep token size small.
|
|
18
22
|
*
|
|
19
|
-
* `jti`
|
|
23
|
+
* `jti` — per-token Redis blocklist (single-device logout).
|
|
24
|
+
* `sev` — session epoch (logout-all / password / identity / admin).
|
|
25
|
+
* `fid` — refresh-token family id (single-session revoke denylist). Required;
|
|
26
|
+
* access tokens without `fid` are rejected (clients must refresh once after upgrade).
|
|
20
27
|
*/
|
|
21
28
|
export interface JwtPayload {
|
|
22
29
|
/** User ID (standard JWT subject claim). */
|
|
@@ -25,6 +32,23 @@ export interface JwtPayload {
|
|
|
25
32
|
roles: string[];
|
|
26
33
|
/** JWT ID — unique per issued token; used for access token revocation. */
|
|
27
34
|
jti: string;
|
|
35
|
+
/**
|
|
36
|
+
* Session epoch at issuance. Rejected when Redis `user:sessionEpoch:<sub>`
|
|
37
|
+
* is higher (set by logout-all, password change, admin revoke, etc.).
|
|
38
|
+
*/
|
|
39
|
+
sev: number;
|
|
40
|
+
/**
|
|
41
|
+
* Refresh-token family id — required. Rejected when that family is denylisted
|
|
42
|
+
* (revoke-one / logout-current). Missing `fid` is rejected outright.
|
|
43
|
+
*/
|
|
44
|
+
fid: string;
|
|
45
|
+
/**
|
|
46
|
+
* Confirmation claim (RFC 7800 / DPoP). When present, requests must include a
|
|
47
|
+
* matching DPoP proof for `cnf.jkt`.
|
|
48
|
+
*/
|
|
49
|
+
cnf?: {
|
|
50
|
+
jkt: string;
|
|
51
|
+
};
|
|
28
52
|
iat?: number;
|
|
29
53
|
exp?: number;
|
|
30
54
|
}
|
|
@@ -35,4 +59,17 @@ export interface TokenResponse {
|
|
|
35
59
|
user: UserResponseDto;
|
|
36
60
|
roles: string[];
|
|
37
61
|
}
|
|
62
|
+
/** Response for revoke-others: fresh tokens for the kept device + status message. */
|
|
63
|
+
export interface RevokeOthersResponse extends TokenResponse {
|
|
64
|
+
message: string;
|
|
65
|
+
}
|
|
66
|
+
/** Returned by login/register when MFA is required before issuing session tokens. */
|
|
67
|
+
export interface MfaChallengeResponse {
|
|
68
|
+
mfaRequired: true;
|
|
69
|
+
mfaToken: string;
|
|
70
|
+
methods: ('totp' | 'backup_code')[];
|
|
71
|
+
expiresIn: number;
|
|
72
|
+
}
|
|
73
|
+
export type LoginResult = TokenResponse | MfaChallengeResponse;
|
|
74
|
+
export declare function isMfaChallengeResponse(value: LoginResult): value is MfaChallengeResponse;
|
|
38
75
|
//# sourceMappingURL=token.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/token.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,eAAe;IAO3B,YAAY,EAAG,MAAM,CAAC;CACtB;AAED,qBAAa,gBAAgB;IAE5B,WAAW,EAAG,MAAM,CAAC;IAKrB,YAAY,EAAG,MAAM,CAAC;IAMtB,SAAS,EAAG,MAAM,CAAC;IAMnB,IAAI,EAAG,eAAe,CAAC;IAOvB,KAAK,EAAG,MAAM,EAAE,CAAC;CACjB;AAED
|
|
1
|
+
{"version":3,"file":"token.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/token.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,eAAe;IAO3B,YAAY,EAAG,MAAM,CAAC;CACtB;AAED,4FAA4F;AAC5F,qBAAa,SAAS;IAUrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,gBAAgB;IAE5B,WAAW,EAAG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metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TokenResponseDto = exports.RefreshTokenDto = void 0;
|
|
12
|
+
exports.TokenResponseDto = exports.LogoutDto = exports.RefreshTokenDto = void 0;
|
|
13
|
+
exports.isMfaChallengeResponse = isMfaChallengeResponse;
|
|
13
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
const user_dto_1 = require("../../users/dto/user.dto");
|
|
@@ -26,6 +27,22 @@ __decorate([
|
|
|
26
27
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], RefreshTokenDto.prototype, "refreshToken", void 0);
|
|
30
|
+
/** Logout body — omit refreshToken to revoke the current session via access-token `fid`. */
|
|
31
|
+
class LogoutDto {
|
|
32
|
+
refreshToken;
|
|
33
|
+
}
|
|
34
|
+
exports.LogoutDto = LogoutDto;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
37
|
+
description: 'When provided, revoke this refresh-token family. ' +
|
|
38
|
+
'When omitted, revoke the current session using the access token `fid` claim. ' +
|
|
39
|
+
'Use POST /auth/logout/all with a refresh token to revoke every device.',
|
|
40
|
+
}),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], LogoutDto.prototype, "refreshToken", void 0);
|
|
29
46
|
class TokenResponseDto {
|
|
30
47
|
accessToken;
|
|
31
48
|
refreshToken;
|
|
@@ -66,4 +83,7 @@ __decorate([
|
|
|
66
83
|
}),
|
|
67
84
|
__metadata("design:type", Array)
|
|
68
85
|
], TokenResponseDto.prototype, "roles", void 0);
|
|
86
|
+
function isMfaChallengeResponse(value) {
|
|
87
|
+
return value.mfaRequired === true;
|
|
88
|
+
}
|
|
69
89
|
//# sourceMappingURL=token.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/token.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"token.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/token.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuHA,wDAEC;AAzHD,6CAAmE;AACnE,qDAAmE;AAEnE,uDAA2D;AAE3D,MAAa,eAAe;IAO3B,YAAY,CAAU;CACtB;AARD,0CAQC;AADA;IANC,IAAA,qBAAW,EAAC;QACZ,WAAW,EAAE,6EAA6E;QAC1F,OAAO,EAAE,2EAA2E;KACpF,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAGvB,4FAA4F;AAC5F,MAAa,SAAS;IAUrB,YAAY,CAAU;CACtB;AAXD,8BAWC;AADA;IATC,IAAA,6BAAmB,EAAC;QACpB,WAAW,EACV,mDAAmD;YACnD,+EAA+E;YAC/E,wEAAwE;KACzE,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACS;AAGvB,MAAa,gBAAgB;IAE5B,WAAW,CAAU;IAKrB,YAAY,CAAU;IAMtB,SAAS,CAAU;IAMnB,IAAI,CAAmB;IAOvB,KAAK,CAAY;CACjB;AA3BD,4CA2BC;AAzBA;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;;qDAC5B;AAKrB;IAHC,IAAA,qBAAW,EAAC;QACZ,WAAW,EAAE,uDAAuD;KACpE,CAAC;;sDACoB;AAMtB;IAJC,IAAA,qBAAW,EAAC;QACZ,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,MAAM;KACf,CAAC;;mDACiB;AAMnB;IAJC,IAAA,qBAAW,EAAC;QACZ,IAAI,EAAE,0BAAe;QACrB,WAAW,EAAE,+CAA+C;KAC5D,CAAC;8BACK,0BAAe;8CAAC;AAOvB;IALC,IAAA,qBAAW,EAAC;QACZ,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE,CAAC,MAAM,CAAC;KACjB,CAAC;;+CACe;AAgElB,SAAgB,sBAAsB,CAAC,KAAkB;IACxD,OAAQ,KAA8B,CAAC,WAAW,KAAK,IAAI,CAAC;AAC7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC"}
|
|
@@ -15,5 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./password-reset-token.entity"), exports);
|
|
18
|
+
__exportStar(require("./user-mfa.entity"), exports);
|
|
19
|
+
__exportStar(require("./user-oauth-identity.entity"), exports);
|
|
18
20
|
__exportStar(require("./user-pin.entity"), exports);
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,oDAAkC;AAClC,+DAA6C;AAC7C,oDAAkC"}
|
|
@@ -8,6 +8,8 @@ import { User } from '../../users/entities/user.entity';
|
|
|
8
8
|
export declare class PasswordResetToken extends ImmutableEntity {
|
|
9
9
|
userId: string;
|
|
10
10
|
usedAt: Date;
|
|
11
|
+
/** How the reset completed: email_token | phone_otp */
|
|
12
|
+
method: 'email_token' | 'phone_otp';
|
|
11
13
|
ipAddress?: string;
|
|
12
14
|
user: User;
|
|
13
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-reset-token.entity.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/entities/password-reset-token.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAExD;;;;GAIG;AACH,qBACa,kBAAmB,SAAQ,eAAe;IAGtD,MAAM,EAAG,MAAM,CAAC;IAGhB,MAAM,EAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"password-reset-token.entity.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/entities/password-reset-token.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAExD;;;;GAIG;AACH,qBACa,kBAAmB,SAAQ,eAAe;IAGtD,MAAM,EAAG,MAAM,CAAC;IAGhB,MAAM,EAAG,IAAI,CAAC;IAEd,uDAAuD;IAEvD,MAAM,EAAG,aAAa,GAAG,WAAW,CAAC;IAGrC,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,IAAI,EAAG,IAAI,CAAC;CACZ"}
|
|
@@ -21,6 +21,8 @@ const user_entity_1 = require("../../users/entities/user.entity");
|
|
|
21
21
|
let PasswordResetToken = class PasswordResetToken extends base_entity_1.ImmutableEntity {
|
|
22
22
|
userId;
|
|
23
23
|
usedAt;
|
|
24
|
+
/** How the reset completed: email_token | phone_otp */
|
|
25
|
+
method;
|
|
24
26
|
ipAddress;
|
|
25
27
|
user;
|
|
26
28
|
};
|
|
@@ -34,6 +36,10 @@ __decorate([
|
|
|
34
36
|
(0, typeorm_1.Column)({ name: 'used_at', type: 'timestamptz' }),
|
|
35
37
|
__metadata("design:type", Date)
|
|
36
38
|
], PasswordResetToken.prototype, "usedAt", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'method', type: 'varchar', length: 32, default: 'email_token' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PasswordResetToken.prototype, "method", void 0);
|
|
37
43
|
__decorate([
|
|
38
44
|
(0, typeorm_1.Column)({ name: 'ip_address', nullable: true }),
|
|
39
45
|
__metadata("design:type", String)
|