@colveor/core 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +6 -0
- package/dist/bootstrap/bootstrap-colveor-app.d.ts.map +1 -1
- package/dist/bootstrap/bootstrap-colveor-app.js +22 -3
- package/dist/bootstrap/bootstrap-colveor-app.js.map +1 -1
- package/dist/common/decorators/index.d.ts +6 -0
- package/dist/common/decorators/index.d.ts.map +1 -1
- package/dist/common/decorators/index.js +8 -1
- package/dist/common/decorators/index.js.map +1 -1
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.d.ts +9 -0
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.d.ts.map +1 -0
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.js +12 -0
- package/dist/common/decorators/ip-rate-limit-bucket.decorator.js.map +1 -0
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts +12 -6
- package/dist/common/guards/login-ip-rate-limit.guard.d.ts.map +1 -1
- package/dist/common/guards/login-ip-rate-limit.guard.js +65 -21
- package/dist/common/guards/login-ip-rate-limit.guard.js.map +1 -1
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts +3 -2
- package/dist/common/guards/otp-ip-rate-limit.guard.d.ts.map +1 -1
- package/dist/common/guards/otp-ip-rate-limit.guard.js +17 -15
- package/dist/common/guards/otp-ip-rate-limit.guard.js.map +1 -1
- package/dist/common/guards/permissions.guard.d.ts.map +1 -1
- package/dist/common/guards/permissions.guard.js +12 -2
- package/dist/common/guards/permissions.guard.js.map +1 -1
- package/dist/common/interceptors/timeout.interceptor.d.ts +1 -1
- package/dist/common/interceptors/timeout.interceptor.d.ts.map +1 -1
- package/dist/common/interceptors/timeout.interceptor.js +5 -1
- package/dist/common/interceptors/timeout.interceptor.js.map +1 -1
- package/dist/common/interfaces/request-user.d.ts +4 -3
- package/dist/common/interfaces/request-user.d.ts.map +1 -1
- package/dist/common/utils/cache-version.util.d.ts +12 -0
- package/dist/common/utils/cache-version.util.d.ts.map +1 -0
- package/dist/common/utils/cache-version.util.js +34 -0
- package/dist/common/utils/cache-version.util.js.map +1 -0
- package/dist/common/utils/postgres-error.util.d.ts +5 -0
- package/dist/common/utils/postgres-error.util.d.ts.map +1 -0
- package/dist/common/utils/postgres-error.util.js +13 -0
- package/dist/common/utils/postgres-error.util.js.map +1 -0
- package/dist/common/utils/singleflight.util.d.ts +6 -0
- package/dist/common/utils/singleflight.util.d.ts.map +1 -0
- package/dist/common/utils/singleflight.util.js +21 -0
- package/dist/common/utils/singleflight.util.js.map +1 -0
- package/dist/common/validators/is-exclusive-auth-params.validator.js +1 -1
- package/dist/common/validators/is-exclusive-auth-params.validator.js.map +1 -1
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js +1 -1
- package/dist/common/validators/is-exclusive-delete-confirm-params.validator.js.map +1 -1
- package/dist/config/app.config.d.ts +38 -0
- package/dist/config/app.config.d.ts.map +1 -1
- package/dist/config/app.config.js +24 -0
- package/dist/config/app.config.js.map +1 -1
- package/dist/config/database.config.d.ts +6 -0
- package/dist/config/database.config.d.ts.map +1 -1
- package/dist/config/database.config.js +3 -0
- package/dist/config/database.config.js.map +1 -1
- package/dist/config/env-flags.util.d.ts +4 -0
- package/dist/config/env-flags.util.d.ts.map +1 -1
- package/dist/config/env-flags.util.js +7 -0
- package/dist/config/env-flags.util.js.map +1 -1
- package/dist/config/env.validation.d.ts +24 -1
- package/dist/config/env.validation.d.ts.map +1 -1
- package/dist/config/env.validation.js +92 -2
- package/dist/config/env.validation.js.map +1 -1
- package/dist/config/in-memory-redis.client.d.ts +23 -4
- package/dist/config/in-memory-redis.client.d.ts.map +1 -1
- package/dist/config/in-memory-redis.client.js +148 -4
- package/dist/config/in-memory-redis.client.js.map +1 -1
- package/dist/config/redis.module.d.ts.map +1 -1
- package/dist/config/redis.module.js +5 -0
- package/dist/config/redis.module.js.map +1 -1
- package/dist/core.module.d.ts +5 -0
- package/dist/core.module.d.ts.map +1 -1
- package/dist/core.module.js +5 -0
- package/dist/core.module.js.map +1 -1
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.d.ts +7 -0
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.d.ts.map +1 -0
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.js +24 -0
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.js.map +1 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.d.ts +7 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.js +16 -0
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.js.map +1 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.d.ts +7 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.js +14 -0
- package/dist/database/migrations/1785006199373-auth-gap-fixes.js.map +1 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.d.ts +13 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.js +35 -0
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.js.map +1 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.d.ts +11 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.d.ts.map +1 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.js +60 -0
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.js.map +1 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.d.ts +14 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.d.ts.map +1 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.js +39 -0
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.js.map +1 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.d.ts +13 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.js +69 -0
- package/dist/database/migrations/1785006199377-auth-security-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.d.ts +11 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.js +51 -0
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.d.ts +12 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.js +37 -0
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.d.ts +12 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.d.ts.map +1 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.js +74 -0
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.js.map +1 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.d.ts +12 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.d.ts.map +1 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.js +52 -0
- package/dist/database/migrations/1785006199381-settings-blast-radius.js.map +1 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.d.ts +11 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.js +36 -0
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.js.map +1 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.d.ts +12 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.js +39 -0
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.js.map +1 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.d.ts +12 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.js +39 -0
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.js.map +1 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.d.ts +13 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.d.ts.map +1 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.js +72 -0
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.js.map +1 -0
- package/dist/database/migrations/1785006199386-audit-events.d.ts +10 -0
- package/dist/database/migrations/1785006199386-audit-events.d.ts.map +1 -0
- package/dist/database/migrations/1785006199386-audit-events.js +60 -0
- package/dist/database/migrations/1785006199386-audit-events.js.map +1 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.d.ts +10 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.d.ts.map +1 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.js +25 -0
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.js.map +1 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.d.ts +11 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.d.ts.map +1 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.js +157 -0
- package/dist/database/migrations/1785006199388-audit-enterprise.js.map +1 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.d.ts +10 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.d.ts.map +1 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.js +38 -0
- package/dist/database/migrations/1785006199389-drop-admin-logs.js.map +1 -0
- package/dist/database/migrations/1785006199390-audit-hardening.d.ts +14 -0
- package/dist/database/migrations/1785006199390-audit-hardening.d.ts.map +1 -0
- package/dist/database/migrations/1785006199390-audit-hardening.js +345 -0
- package/dist/database/migrations/1785006199390-audit-hardening.js.map +1 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.d.ts +10 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.d.ts.map +1 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.js +39 -0
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.js.map +1 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.d.ts +11 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.d.ts.map +1 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.js +33 -0
- package/dist/database/migrations/1785006199392-profile-photo-url.js.map +1 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.d.ts +11 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.d.ts.map +1 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.js +33 -0
- package/dist/database/migrations/1785006199393-profile-cover-url.js.map +1 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.d.ts +11 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.d.ts.map +1 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.js +24 -0
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.js.map +1 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.d.ts +10 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.d.ts.map +1 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.js +35 -0
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.js.map +1 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.d.ts +11 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.d.ts.map +1 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.js +23 -0
- package/dist/database/migrations/1785006199396-delivery-recipient-index.js.map +1 -0
- package/dist/database/seeds/roles.seed.d.ts +6 -0
- package/dist/database/seeds/roles.seed.d.ts.map +1 -1
- package/dist/database/seeds/roles.seed.js +22 -5
- package/dist/database/seeds/roles.seed.js.map +1 -1
- package/dist/database/seeds/settings.seed.d.ts +5 -0
- package/dist/database/seeds/settings.seed.d.ts.map +1 -1
- package/dist/database/seeds/settings.seed.js +500 -25
- package/dist/database/seeds/settings.seed.js.map +1 -1
- package/dist/database/seeds/templates/html-template.reader.d.ts +1 -0
- package/dist/database/seeds/templates/html-template.reader.d.ts.map +1 -1
- package/dist/database/seeds/templates/html-template.reader.js +3 -1
- package/dist/database/seeds/templates/html-template.reader.js.map +1 -1
- package/dist/database/seeds/templates/html-template.reader.ts +5 -1
- package/dist/database/typeorm.util.d.ts.map +1 -1
- package/dist/database/typeorm.util.js +6 -0
- package/dist/database/typeorm.util.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -4
- package/dist/index.js.map +1 -1
- package/dist/modules/admin/controllers/admin.controller.d.ts +15 -7
- package/dist/modules/admin/controllers/admin.controller.d.ts.map +1 -1
- package/dist/modules/admin/controllers/admin.controller.js +74 -17
- package/dist/modules/admin/controllers/admin.controller.js.map +1 -1
- package/dist/modules/admin/services/admin-log.service.d.ts +14 -7
- package/dist/modules/admin/services/admin-log.service.d.ts.map +1 -1
- package/dist/modules/admin/services/admin-log.service.js +41 -38
- package/dist/modules/admin/services/admin-log.service.js.map +1 -1
- package/dist/modules/audit/audit.manifest.d.ts +8 -0
- package/dist/modules/audit/audit.manifest.d.ts.map +1 -0
- package/dist/modules/audit/audit.manifest.js +31 -0
- package/dist/modules/audit/audit.manifest.js.map +1 -0
- package/dist/modules/audit/audit.module.d.ts +8 -0
- package/dist/modules/audit/audit.module.d.ts.map +1 -0
- package/dist/modules/audit/audit.module.js +57 -0
- package/dist/modules/audit/audit.module.js.map +1 -0
- package/dist/modules/audit/constants/audit-actions.d.ts +79 -0
- package/dist/modules/audit/constants/audit-actions.d.ts.map +1 -0
- package/dist/modules/audit/constants/audit-actions.js +89 -0
- package/dist/modules/audit/constants/audit-actions.js.map +1 -0
- package/dist/modules/audit/constants/audit-mutation.d.ts +10 -0
- package/dist/modules/audit/constants/audit-mutation.d.ts.map +1 -0
- package/dist/modules/audit/constants/audit-mutation.js +13 -0
- package/dist/modules/audit/constants/audit-mutation.js.map +1 -0
- package/dist/modules/audit/controllers/audit.controller.d.ts +13 -0
- package/dist/modules/audit/controllers/audit.controller.d.ts.map +1 -0
- package/dist/modules/audit/controllers/audit.controller.js +149 -0
- package/dist/modules/audit/controllers/audit.controller.js.map +1 -0
- package/dist/modules/audit/decorators/audit.decorator.d.ts +27 -0
- package/dist/modules/audit/decorators/audit.decorator.d.ts.map +1 -0
- package/dist/modules/audit/decorators/audit.decorator.js +18 -0
- package/dist/modules/audit/decorators/audit.decorator.js.map +1 -0
- package/dist/modules/audit/dto/audit.dto.d.ts +54 -0
- package/dist/modules/audit/dto/audit.dto.d.ts.map +1 -0
- package/dist/modules/audit/dto/audit.dto.js +129 -0
- package/dist/modules/audit/dto/audit.dto.js.map +1 -0
- package/dist/modules/audit/entities/audit-event.entity.d.ts +33 -0
- package/dist/modules/audit/entities/audit-event.entity.d.ts.map +1 -0
- package/dist/modules/audit/entities/audit-event.entity.js +125 -0
- package/dist/modules/audit/entities/audit-event.entity.js.map +1 -0
- package/dist/modules/audit/entities/audit-outbox.entity.d.ts +16 -0
- package/dist/modules/audit/entities/audit-outbox.entity.d.ts.map +1 -0
- package/dist/modules/audit/entities/audit-outbox.entity.js +65 -0
- package/dist/modules/audit/entities/audit-outbox.entity.js.map +1 -0
- package/dist/modules/audit/index.d.ts +13 -0
- package/dist/modules/audit/index.d.ts.map +1 -0
- package/dist/modules/audit/index.js +23 -0
- package/dist/modules/audit/index.js.map +1 -0
- package/dist/modules/audit/interceptors/audit.interceptor.d.ts +11 -0
- package/dist/modules/audit/interceptors/audit.interceptor.d.ts.map +1 -0
- package/dist/modules/audit/interceptors/audit.interceptor.js +75 -0
- package/dist/modules/audit/interceptors/audit.interceptor.js.map +1 -0
- package/dist/modules/audit/listeners/auth-audit.listener.d.ts +31 -0
- package/dist/modules/audit/listeners/auth-audit.listener.d.ts.map +1 -0
- package/dist/modules/audit/listeners/auth-audit.listener.js +338 -0
- package/dist/modules/audit/listeners/auth-audit.listener.js.map +1 -0
- package/dist/modules/audit/services/audit-archive.service.d.ts +28 -0
- package/dist/modules/audit/services/audit-archive.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-archive.service.js +132 -0
- package/dist/modules/audit/services/audit-archive.service.js.map +1 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.d.ts +22 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.js +79 -0
- package/dist/modules/audit/services/audit-hash-backfill.service.js.map +1 -0
- package/dist/modules/audit/services/audit-leader.service.d.ts +28 -0
- package/dist/modules/audit/services/audit-leader.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-leader.service.js +99 -0
- package/dist/modules/audit/services/audit-leader.service.js.map +1 -0
- package/dist/modules/audit/services/audit-outbox.worker.d.ts +29 -0
- package/dist/modules/audit/services/audit-outbox.worker.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-outbox.worker.js +144 -0
- package/dist/modules/audit/services/audit-outbox.worker.js.map +1 -0
- package/dist/modules/audit/services/audit-partition.service.d.ts +18 -0
- package/dist/modules/audit/services/audit-partition.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-partition.service.js +70 -0
- package/dist/modules/audit/services/audit-partition.service.js.map +1 -0
- package/dist/modules/audit/services/audit-write.service.d.ts +60 -0
- package/dist/modules/audit/services/audit-write.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit-write.service.js +463 -0
- package/dist/modules/audit/services/audit-write.service.js.map +1 -0
- package/dist/modules/audit/services/audit.service.d.ts +60 -0
- package/dist/modules/audit/services/audit.service.d.ts.map +1 -0
- package/dist/modules/audit/services/audit.service.js +373 -0
- package/dist/modules/audit/services/audit.service.js.map +1 -0
- package/dist/modules/audit/utils/audit-hash.util.d.ts +20 -0
- package/dist/modules/audit/utils/audit-hash.util.d.ts.map +1 -0
- package/dist/modules/audit/utils/audit-hash.util.js +44 -0
- package/dist/modules/audit/utils/audit-hash.util.js.map +1 -0
- package/dist/modules/auth/auth-core/auth-core.module.d.ts.map +1 -1
- package/dist/modules/auth/auth-core/auth-core.module.js +16 -4
- package/dist/modules/auth/auth-core/auth-core.module.js.map +1 -1
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.d.ts +22 -0
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.js +25 -0
- package/dist/modules/auth/auth-core/constants/jwt-redis.keys.js.map +1 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.d.ts +19 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.js +110 -0
- package/dist/modules/auth/auth-core/services/access-token.validator.js.map +1 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.d.ts +10 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.js +44 -0
- package/dist/modules/auth/auth-core/services/family-denylist.reader.js.map +1 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.d.ts +10 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.d.ts.map +1 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.js +44 -0
- package/dist/modules/auth/auth-core/services/session-epoch.reader.js.map +1 -0
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts +7 -8
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.d.ts.map +1 -1
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js +34 -34
- package/dist/modules/auth/auth-core/strategies/jwt.strategy.js.map +1 -1
- package/dist/modules/auth/auth.manifest.d.ts +6 -0
- package/dist/modules/auth/auth.manifest.d.ts.map +1 -1
- package/dist/modules/auth/auth.manifest.js +38 -2
- package/dist/modules/auth/auth.manifest.js.map +1 -1
- package/dist/modules/auth/auth.module.d.ts.map +1 -1
- package/dist/modules/auth/auth.module.js +39 -4
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/controllers/account.controller.d.ts +15 -1
- package/dist/modules/auth/controllers/account.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/account.controller.js +65 -7
- package/dist/modules/auth/controllers/account.controller.js.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.d.ts +7 -3
- package/dist/modules/auth/controllers/auth.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.js +76 -16
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
- package/dist/modules/auth/controllers/forgot-password.controller.d.ts +4 -2
- package/dist/modules/auth/controllers/forgot-password.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/forgot-password.controller.js +32 -11
- package/dist/modules/auth/controllers/forgot-password.controller.js.map +1 -1
- package/dist/modules/auth/controllers/mfa.controller.d.ts +18 -0
- package/dist/modules/auth/controllers/mfa.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/mfa.controller.js +192 -0
- package/dist/modules/auth/controllers/mfa.controller.js.map +1 -0
- package/dist/modules/auth/controllers/oauth.controller.d.ts +22 -0
- package/dist/modules/auth/controllers/oauth.controller.d.ts.map +1 -0
- package/dist/modules/auth/controllers/oauth.controller.js +192 -0
- package/dist/modules/auth/controllers/oauth.controller.js.map +1 -0
- package/dist/modules/auth/controllers/otp.controller.d.ts +6 -3
- package/dist/modules/auth/controllers/otp.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/otp.controller.js +32 -33
- package/dist/modules/auth/controllers/otp.controller.js.map +1 -1
- package/dist/modules/auth/controllers/pin.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/pin.controller.js +10 -2
- package/dist/modules/auth/controllers/pin.controller.js.map +1 -1
- package/dist/modules/auth/controllers/session.controller.d.ts +12 -4
- package/dist/modules/auth/controllers/session.controller.d.ts.map +1 -1
- package/dist/modules/auth/controllers/session.controller.js +130 -31
- package/dist/modules/auth/controllers/session.controller.js.map +1 -1
- package/dist/modules/auth/dto/auth-config.dto.d.ts +11 -2
- package/dist/modules/auth/dto/auth-config.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/auth-config.dto.js +78 -3
- package/dist/modules/auth/dto/auth-config.dto.js.map +1 -1
- package/dist/modules/auth/dto/index.d.ts +2 -0
- package/dist/modules/auth/dto/index.d.ts.map +1 -1
- package/dist/modules/auth/dto/index.js +2 -0
- package/dist/modules/auth/dto/index.js.map +1 -1
- package/dist/modules/auth/dto/login.dto.d.ts +8 -1
- package/dist/modules/auth/dto/login.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/login.dto.js +48 -3
- package/dist/modules/auth/dto/login.dto.js.map +1 -1
- package/dist/modules/auth/dto/mfa.dto.d.ts +61 -0
- package/dist/modules/auth/dto/mfa.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/mfa.dto.js +326 -0
- package/dist/modules/auth/dto/mfa.dto.js.map +1 -0
- package/dist/modules/auth/dto/oauth.dto.d.ts +45 -0
- package/dist/modules/auth/dto/oauth.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/oauth.dto.js +249 -0
- package/dist/modules/auth/dto/oauth.dto.js.map +1 -0
- package/dist/modules/auth/dto/otp.dto.d.ts +3 -1
- package/dist/modules/auth/dto/otp.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/otp.dto.js +19 -0
- package/dist/modules/auth/dto/otp.dto.js.map +1 -1
- package/dist/modules/auth/dto/password.dto.d.ts +28 -0
- package/dist/modules/auth/dto/password.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/password.dto.js +191 -5
- package/dist/modules/auth/dto/password.dto.js.map +1 -1
- package/dist/modules/auth/dto/register.dto.d.ts +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/register.dto.js +1 -0
- package/dist/modules/auth/dto/register.dto.js.map +1 -1
- package/dist/modules/auth/dto/session.dto.d.ts +20 -0
- package/dist/modules/auth/dto/session.dto.d.ts.map +1 -0
- package/dist/modules/auth/dto/session.dto.js +98 -0
- package/dist/modules/auth/dto/session.dto.js.map +1 -0
- package/dist/modules/auth/dto/token.dto.d.ts +38 -1
- package/dist/modules/auth/dto/token.dto.d.ts.map +1 -1
- package/dist/modules/auth/dto/token.dto.js +21 -1
- package/dist/modules/auth/dto/token.dto.js.map +1 -1
- package/dist/modules/auth/entities/index.d.ts +2 -0
- package/dist/modules/auth/entities/index.d.ts.map +1 -1
- package/dist/modules/auth/entities/index.js +2 -0
- package/dist/modules/auth/entities/index.js.map +1 -1
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts +2 -0
- package/dist/modules/auth/entities/password-reset-token.entity.d.ts.map +1 -1
- package/dist/modules/auth/entities/password-reset-token.entity.js +6 -0
- package/dist/modules/auth/entities/password-reset-token.entity.js.map +1 -1
- package/dist/modules/auth/entities/user-mfa.entity.d.ts +19 -0
- package/dist/modules/auth/entities/user-mfa.entity.d.ts.map +1 -0
- package/dist/modules/auth/entities/user-mfa.entity.js +73 -0
- package/dist/modules/auth/entities/user-mfa.entity.js.map +1 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.d.ts +24 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.d.ts.map +1 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.js +84 -0
- package/dist/modules/auth/entities/user-oauth-identity.entity.js.map +1 -0
- package/dist/modules/auth/events/auth.events.d.ts +84 -19
- package/dist/modules/auth/events/auth.events.d.ts.map +1 -1
- package/dist/modules/auth/events/auth.events.js +17 -9
- package/dist/modules/auth/events/auth.events.js.map +1 -1
- package/dist/modules/auth/services/account.service.d.ts +74 -14
- package/dist/modules/auth/services/account.service.d.ts.map +1 -1
- package/dist/modules/auth/services/account.service.js +247 -31
- package/dist/modules/auth/services/account.service.js.map +1 -1
- package/dist/modules/auth/services/dpop.service.d.ts +41 -0
- package/dist/modules/auth/services/dpop.service.d.ts.map +1 -0
- package/dist/modules/auth/services/dpop.service.js +159 -0
- package/dist/modules/auth/services/dpop.service.js.map +1 -0
- package/dist/modules/auth/services/index.d.ts +2 -0
- package/dist/modules/auth/services/index.d.ts.map +1 -1
- package/dist/modules/auth/services/index.js +2 -0
- package/dist/modules/auth/services/index.js.map +1 -1
- package/dist/modules/auth/services/legacy-hash-cleanup.service.d.ts +28 -0
- package/dist/modules/auth/services/legacy-hash-cleanup.service.d.ts.map +1 -0
- package/dist/modules/auth/services/legacy-hash-cleanup.service.js +163 -0
- package/dist/modules/auth/services/legacy-hash-cleanup.service.js.map +1 -0
- package/dist/modules/auth/services/login.service.d.ts +29 -34
- package/dist/modules/auth/services/login.service.d.ts.map +1 -1
- package/dist/modules/auth/services/login.service.js +173 -61
- package/dist/modules/auth/services/login.service.js.map +1 -1
- package/dist/modules/auth/services/mfa.service.d.ts +111 -0
- package/dist/modules/auth/services/mfa.service.d.ts.map +1 -0
- package/dist/modules/auth/services/mfa.service.js +662 -0
- package/dist/modules/auth/services/mfa.service.js.map +1 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.d.ts +11 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.js +56 -0
- package/dist/modules/auth/services/oauth/apple-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.d.ts +12 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.js +64 -0
- package/dist/modules/auth/services/oauth/google-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.d.ts +11 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.js +76 -0
- package/dist/modules/auth/services/oauth/microsoft-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.d.ts +16 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.js +92 -0
- package/dist/modules/auth/services/oauth/oidc-id-token.verifier.js.map +1 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.d.ts +9 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.js +3 -0
- package/dist/modules/auth/services/oauth/verified-oauth-identity.js.map +1 -0
- package/dist/modules/auth/services/oauth.service.d.ts +83 -0
- package/dist/modules/auth/services/oauth.service.d.ts.map +1 -0
- package/dist/modules/auth/services/oauth.service.js +471 -0
- package/dist/modules/auth/services/oauth.service.js.map +1 -0
- package/dist/modules/auth/services/otp-auth.service.d.ts +13 -3
- package/dist/modules/auth/services/otp-auth.service.d.ts.map +1 -1
- package/dist/modules/auth/services/otp-auth.service.js +41 -7
- package/dist/modules/auth/services/otp-auth.service.js.map +1 -1
- package/dist/modules/auth/services/password-reset-audit-retention.service.d.ts +22 -0
- package/dist/modules/auth/services/password-reset-audit-retention.service.d.ts.map +1 -0
- package/dist/modules/auth/services/password-reset-audit-retention.service.js +117 -0
- package/dist/modules/auth/services/password-reset-audit-retention.service.js.map +1 -0
- package/dist/modules/auth/services/password.service.d.ts +25 -5
- package/dist/modules/auth/services/password.service.d.ts.map +1 -1
- package/dist/modules/auth/services/password.service.js +154 -20
- package/dist/modules/auth/services/password.service.js.map +1 -1
- package/dist/modules/auth/services/pin-auth.service.d.ts +10 -3
- package/dist/modules/auth/services/pin-auth.service.d.ts.map +1 -1
- package/dist/modules/auth/services/pin-auth.service.js +110 -13
- package/dist/modules/auth/services/pin-auth.service.js.map +1 -1
- package/dist/modules/auth/services/registration.service.d.ts +10 -2
- package/dist/modules/auth/services/registration.service.d.ts.map +1 -1
- package/dist/modules/auth/services/registration.service.js +113 -25
- package/dist/modules/auth/services/registration.service.js.map +1 -1
- package/dist/modules/auth/services/turnstile.service.d.ts +17 -0
- package/dist/modules/auth/services/turnstile.service.d.ts.map +1 -0
- package/dist/modules/auth/services/turnstile.service.js +94 -0
- package/dist/modules/auth/services/turnstile.service.js.map +1 -0
- package/dist/modules/auth/utils/auth-params.util.d.ts +13 -6
- package/dist/modules/auth/utils/auth-params.util.d.ts.map +1 -1
- package/dist/modules/auth/utils/auth-params.util.js +27 -4
- package/dist/modules/auth/utils/auth-params.util.js.map +1 -1
- package/dist/modules/auth/utils/auth-supported.util.d.ts +12 -1
- package/dist/modules/auth/utils/auth-supported.util.d.ts.map +1 -1
- package/dist/modules/auth/utils/auth-supported.util.js +36 -4
- package/dist/modules/auth/utils/auth-supported.util.js.map +1 -1
- package/dist/modules/auth/utils/backup-code-hash.util.d.ts +10 -0
- package/dist/modules/auth/utils/backup-code-hash.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/backup-code-hash.util.js +31 -0
- package/dist/modules/auth/utils/backup-code-hash.util.js.map +1 -0
- package/dist/modules/auth/utils/backup-codes.util.d.ts +5 -0
- package/dist/modules/auth/utils/backup-codes.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/backup-codes.util.js +22 -0
- package/dist/modules/auth/utils/backup-codes.util.js.map +1 -0
- package/dist/modules/auth/utils/dpop.util.d.ts +22 -0
- package/dist/modules/auth/utils/dpop.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/dpop.util.js +73 -0
- package/dist/modules/auth/utils/dpop.util.js.map +1 -0
- package/dist/modules/auth/utils/mfa-secret.util.d.ts +22 -0
- package/dist/modules/auth/utils/mfa-secret.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/mfa-secret.util.js +59 -0
- package/dist/modules/auth/utils/mfa-secret.util.js.map +1 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.d.ts +26 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.js +49 -0
- package/dist/modules/auth/utils/mfa-verify-params.util.js.map +1 -0
- package/dist/modules/auth/utils/step-up-purpose.util.d.ts +5 -0
- package/dist/modules/auth/utils/step-up-purpose.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/step-up-purpose.util.js +18 -0
- package/dist/modules/auth/utils/step-up-purpose.util.js.map +1 -0
- package/dist/modules/auth/utils/totp.util.d.ts +16 -0
- package/dist/modules/auth/utils/totp.util.d.ts.map +1 -0
- package/dist/modules/auth/utils/totp.util.js +88 -0
- package/dist/modules/auth/utils/totp.util.js.map +1 -0
- package/dist/modules/delivery/composers/otp-delivery.composer.d.ts +28 -1
- package/dist/modules/delivery/composers/otp-delivery.composer.d.ts.map +1 -1
- package/dist/modules/delivery/composers/otp-delivery.composer.js +48 -2
- package/dist/modules/delivery/composers/otp-delivery.composer.js.map +1 -1
- package/dist/modules/delivery/constants/delivery-worker.constants.d.ts +29 -0
- package/dist/modules/delivery/constants/delivery-worker.constants.d.ts.map +1 -0
- package/dist/modules/delivery/constants/delivery-worker.constants.js +51 -0
- package/dist/modules/delivery/constants/delivery-worker.constants.js.map +1 -0
- package/dist/modules/delivery/delivery.module.d.ts.map +1 -1
- package/dist/modules/delivery/delivery.module.js +1 -15
- package/dist/modules/delivery/delivery.module.js.map +1 -1
- package/dist/modules/delivery/entities/notification-delivery-log.entity.d.ts.map +1 -1
- package/dist/modules/delivery/entities/notification-delivery-log.entity.js +3 -1
- package/dist/modules/delivery/entities/notification-delivery-log.entity.js.map +1 -1
- package/dist/modules/delivery/notification-delivery.service.d.ts +12 -1
- package/dist/modules/delivery/notification-delivery.service.d.ts.map +1 -1
- package/dist/modules/delivery/notification-delivery.service.js +121 -40
- package/dist/modules/delivery/notification-delivery.service.js.map +1 -1
- package/dist/modules/delivery/processors/delivery-job.runner.d.ts +22 -1
- package/dist/modules/delivery/processors/delivery-job.runner.d.ts.map +1 -1
- package/dist/modules/delivery/processors/delivery-job.runner.js +144 -42
- package/dist/modules/delivery/processors/delivery-job.runner.js.map +1 -1
- package/dist/modules/delivery/processors/delivery.processor.d.ts.map +1 -1
- package/dist/modules/delivery/processors/delivery.processor.js +6 -1
- package/dist/modules/delivery/processors/delivery.processor.js.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts +11 -0
- package/dist/modules/delivery/processors/otp-delivery-job.runner.d.ts.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery-job.runner.js +90 -16
- package/dist/modules/delivery/processors/otp-delivery-job.runner.js.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery.processor.d.ts.map +1 -1
- package/dist/modules/delivery/processors/otp-delivery.processor.js +6 -1
- package/dist/modules/delivery/processors/otp-delivery.processor.js.map +1 -1
- package/dist/modules/delivery/queues/sync-jobs.queue.d.ts +7 -1
- package/dist/modules/delivery/queues/sync-jobs.queue.d.ts.map +1 -1
- package/dist/modules/delivery/queues/sync-jobs.queue.js +11 -2
- package/dist/modules/delivery/queues/sync-jobs.queue.js.map +1 -1
- package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts +7 -3
- package/dist/modules/delivery/services/delivery-audit-retention.service.d.ts.map +1 -1
- package/dist/modules/delivery/services/delivery-audit-retention.service.js +33 -10
- package/dist/modules/delivery/services/delivery-audit-retention.service.js.map +1 -1
- package/dist/modules/delivery/services/notification-audit.service.d.ts +7 -4
- package/dist/modules/delivery/services/notification-audit.service.d.ts.map +1 -1
- package/dist/modules/delivery/services/notification-audit.service.js +83 -26
- package/dist/modules/delivery/services/notification-audit.service.js.map +1 -1
- package/dist/modules/delivery/utils/payload-snapshot.util.d.ts +2 -0
- package/dist/modules/delivery/utils/payload-snapshot.util.d.ts.map +1 -1
- package/dist/modules/delivery/utils/payload-snapshot.util.js +22 -3
- package/dist/modules/delivery/utils/payload-snapshot.util.js.map +1 -1
- package/dist/modules/file-upload/controllers/file-upload.controller.d.ts +7 -1
- package/dist/modules/file-upload/controllers/file-upload.controller.d.ts.map +1 -1
- package/dist/modules/file-upload/controllers/file-upload.controller.js +5 -7
- package/dist/modules/file-upload/controllers/file-upload.controller.js.map +1 -1
- package/dist/modules/file-upload/dto/file-upload.dto.d.ts +2 -0
- package/dist/modules/file-upload/dto/file-upload.dto.d.ts.map +1 -1
- package/dist/modules/file-upload/dto/file-upload.dto.js +20 -0
- package/dist/modules/file-upload/dto/file-upload.dto.js.map +1 -1
- package/dist/modules/file-upload/file-upload.module.d.ts.map +1 -1
- package/dist/modules/file-upload/file-upload.module.js +12 -2
- package/dist/modules/file-upload/file-upload.module.js.map +1 -1
- package/dist/modules/file-upload/services/file-upload.service.d.ts +24 -6
- package/dist/modules/file-upload/services/file-upload.service.d.ts.map +1 -1
- package/dist/modules/file-upload/services/file-upload.service.js +164 -36
- package/dist/modules/file-upload/services/file-upload.service.js.map +1 -1
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts +4 -2
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.d.ts.map +1 -1
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js +30 -5
- package/dist/modules/file-upload/services/upload-orphan-cleanup.service.js.map +1 -1
- package/dist/modules/file-upload/utils/image-optimize.util.d.ts.map +1 -1
- package/dist/modules/file-upload/utils/image-optimize.util.js +7 -1
- package/dist/modules/file-upload/utils/image-optimize.util.js.map +1 -1
- package/dist/modules/health/health.controller.d.ts +5 -1
- package/dist/modules/health/health.controller.d.ts.map +1 -1
- package/dist/modules/health/health.controller.js +57 -3
- package/dist/modules/health/health.controller.js.map +1 -1
- package/dist/modules/invitations/controllers/invitations.controller.d.ts +19 -4
- package/dist/modules/invitations/controllers/invitations.controller.d.ts.map +1 -1
- package/dist/modules/invitations/controllers/invitations.controller.js +19 -10
- package/dist/modules/invitations/controllers/invitations.controller.js.map +1 -1
- package/dist/modules/invitations/dto/invitation.dto.d.ts +13 -0
- package/dist/modules/invitations/dto/invitation.dto.d.ts.map +1 -1
- package/dist/modules/invitations/dto/invitation.dto.js +69 -2
- package/dist/modules/invitations/dto/invitation.dto.js.map +1 -1
- package/dist/modules/invitations/services/invitations.service.d.ts +24 -6
- package/dist/modules/invitations/services/invitations.service.d.ts.map +1 -1
- package/dist/modules/invitations/services/invitations.service.js +96 -20
- package/dist/modules/invitations/services/invitations.service.js.map +1 -1
- package/dist/modules/jobs/queues/jobs.queue.d.ts +7 -2
- package/dist/modules/jobs/queues/jobs.queue.d.ts.map +1 -1
- package/dist/modules/jobs/queues/jobs.queue.js +25 -10
- package/dist/modules/jobs/queues/jobs.queue.js.map +1 -1
- package/dist/modules/notifications/controllers/notifications.controller.d.ts +3 -1
- package/dist/modules/notifications/controllers/notifications.controller.d.ts.map +1 -1
- package/dist/modules/notifications/controllers/notifications.controller.js +25 -2
- package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -1
- package/dist/modules/notifications/dto/notification-query.dto.d.ts.map +1 -1
- package/dist/modules/notifications/dto/notification-query.dto.js +1 -0
- package/dist/modules/notifications/dto/notification-query.dto.js.map +1 -1
- package/dist/modules/notifications/entities/device-token.entity.d.ts.map +1 -1
- package/dist/modules/notifications/entities/device-token.entity.js +3 -1
- package/dist/modules/notifications/entities/device-token.entity.js.map +1 -1
- package/dist/modules/notifications/services/fcm.service.d.ts +2 -0
- package/dist/modules/notifications/services/fcm.service.d.ts.map +1 -1
- package/dist/modules/notifications/services/fcm.service.js +28 -7
- package/dist/modules/notifications/services/fcm.service.js.map +1 -1
- package/dist/modules/notifications/services/notifications.service.d.ts +16 -3
- package/dist/modules/notifications/services/notifications.service.d.ts.map +1 -1
- package/dist/modules/notifications/services/notifications.service.js +95 -24
- package/dist/modules/notifications/services/notifications.service.js.map +1 -1
- package/dist/modules/observability/metrics/metrics.service.d.ts +2 -0
- package/dist/modules/observability/metrics/metrics.service.d.ts.map +1 -1
- package/dist/modules/observability/metrics/metrics.service.js +11 -0
- package/dist/modules/observability/metrics/metrics.service.js.map +1 -1
- package/dist/modules/otp/constants/otp.constants.d.ts +7 -5
- package/dist/modules/otp/constants/otp.constants.d.ts.map +1 -1
- package/dist/modules/otp/constants/otp.constants.js +11 -8
- package/dist/modules/otp/constants/otp.constants.js.map +1 -1
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts +1 -1
- package/dist/modules/otp/interfaces/otp.service.interface.d.ts.map +1 -1
- package/dist/modules/otp/otp.service.d.ts +10 -2
- package/dist/modules/otp/otp.service.d.ts.map +1 -1
- package/dist/modules/otp/otp.service.js +48 -4
- package/dist/modules/otp/otp.service.js.map +1 -1
- package/dist/modules/otp/services/otp.rate-limiter.d.ts +2 -0
- package/dist/modules/otp/services/otp.rate-limiter.d.ts.map +1 -1
- package/dist/modules/otp/services/otp.rate-limiter.js +19 -0
- package/dist/modules/otp/services/otp.rate-limiter.js.map +1 -1
- package/dist/modules/otp/services/otp.session.store.d.ts +9 -3
- package/dist/modules/otp/services/otp.session.store.d.ts.map +1 -1
- package/dist/modules/otp/services/otp.session.store.js +34 -42
- package/dist/modules/otp/services/otp.session.store.js.map +1 -1
- package/dist/modules/otp/utils/otp-code-hash.util.d.ts +11 -0
- package/dist/modules/otp/utils/otp-code-hash.util.d.ts.map +1 -0
- package/dist/modules/otp/utils/otp-code-hash.util.js +68 -0
- package/dist/modules/otp/utils/otp-code-hash.util.js.map +1 -0
- package/dist/modules/profile/controllers/profile.controller.d.ts +9 -3
- package/dist/modules/profile/controllers/profile.controller.d.ts.map +1 -1
- package/dist/modules/profile/controllers/profile.controller.js +140 -8
- package/dist/modules/profile/controllers/profile.controller.js.map +1 -1
- package/dist/modules/profile/dto/create-user-profile.dto.d.ts +10 -0
- package/dist/modules/profile/dto/create-user-profile.dto.d.ts.map +1 -1
- package/dist/modules/profile/dto/create-user-profile.dto.js +43 -1
- package/dist/modules/profile/dto/create-user-profile.dto.js.map +1 -1
- package/dist/modules/profile/dto/public-user-profile.dto.d.ts +24 -0
- package/dist/modules/profile/dto/public-user-profile.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/public-user-profile.dto.js +115 -0
- package/dist/modules/profile/dto/public-user-profile.dto.js.map +1 -0
- package/dist/modules/profile/dto/user-profile-response.dto.d.ts +4 -0
- package/dist/modules/profile/dto/user-profile-response.dto.d.ts.map +1 -1
- package/dist/modules/profile/dto/user-profile-response.dto.js +4 -0
- package/dist/modules/profile/dto/user-profile-response.dto.js.map +1 -1
- package/dist/modules/profile/dto/username-available.dto.d.ts +6 -0
- package/dist/modules/profile/dto/username-available.dto.d.ts.map +1 -0
- package/dist/modules/profile/dto/username-available.dto.js +31 -0
- package/dist/modules/profile/dto/username-available.dto.js.map +1 -0
- package/dist/modules/profile/entities/user-profiles.entity.d.ts +10 -0
- package/dist/modules/profile/entities/user-profiles.entity.d.ts.map +1 -1
- package/dist/modules/profile/entities/user-profiles.entity.js +29 -1
- package/dist/modules/profile/entities/user-profiles.entity.js.map +1 -1
- package/dist/modules/profile/index.d.ts +1 -0
- package/dist/modules/profile/index.d.ts.map +1 -1
- package/dist/modules/profile/index.js +1 -0
- package/dist/modules/profile/index.js.map +1 -1
- package/dist/modules/profile/profile.manifest.d.ts +2 -2
- package/dist/modules/profile/profile.manifest.js +2 -2
- package/dist/modules/profile/profile.manifest.js.map +1 -1
- package/dist/modules/profile/profile.module.d.ts.map +1 -1
- package/dist/modules/profile/profile.module.js +7 -2
- package/dist/modules/profile/profile.module.js.map +1 -1
- package/dist/modules/profile/services/profile.service.d.ts +56 -4
- package/dist/modules/profile/services/profile.service.d.ts.map +1 -1
- package/dist/modules/profile/services/profile.service.js +247 -20
- package/dist/modules/profile/services/profile.service.js.map +1 -1
- package/dist/modules/realtime/adapters/redis-io.adapter.d.ts +26 -0
- package/dist/modules/realtime/adapters/redis-io.adapter.d.ts.map +1 -0
- package/dist/modules/realtime/adapters/redis-io.adapter.js +124 -0
- package/dist/modules/realtime/adapters/redis-io.adapter.js.map +1 -0
- package/dist/modules/realtime/constants/realtime.constants.d.ts +36 -0
- package/dist/modules/realtime/constants/realtime.constants.d.ts.map +1 -0
- package/dist/modules/realtime/constants/realtime.constants.js +42 -0
- package/dist/modules/realtime/constants/realtime.constants.js.map +1 -0
- package/dist/modules/realtime/controllers/realtime.controller.d.ts +21 -0
- package/dist/modules/realtime/controllers/realtime.controller.d.ts.map +1 -0
- package/dist/modules/realtime/controllers/realtime.controller.js +113 -0
- package/dist/modules/realtime/controllers/realtime.controller.js.map +1 -0
- package/dist/modules/realtime/gateway/realtime.gateway.d.ts +42 -0
- package/dist/modules/realtime/gateway/realtime.gateway.d.ts.map +1 -0
- package/dist/modules/realtime/gateway/realtime.gateway.js +289 -0
- package/dist/modules/realtime/gateway/realtime.gateway.js.map +1 -0
- package/dist/modules/realtime/index.d.ts +12 -0
- package/dist/modules/realtime/index.d.ts.map +1 -0
- package/dist/modules/realtime/index.js +35 -0
- package/dist/modules/realtime/index.js.map +1 -0
- package/dist/modules/realtime/realtime.manifest.d.ts +8 -0
- package/dist/modules/realtime/realtime.manifest.d.ts.map +1 -0
- package/dist/modules/realtime/realtime.manifest.js +31 -0
- package/dist/modules/realtime/realtime.manifest.js.map +1 -0
- package/dist/modules/realtime/realtime.module.d.ts +14 -0
- package/dist/modules/realtime/realtime.module.d.ts.map +1 -0
- package/dist/modules/realtime/realtime.module.js +126 -0
- package/dist/modules/realtime/realtime.module.js.map +1 -0
- package/dist/modules/realtime/services/realtime-handler.registry.d.ts +16 -0
- package/dist/modules/realtime/services/realtime-handler.registry.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime-handler.registry.js +55 -0
- package/dist/modules/realtime/services/realtime-handler.registry.js.map +1 -0
- package/dist/modules/realtime/services/realtime-presence.service.d.ts +15 -0
- package/dist/modules/realtime/services/realtime-presence.service.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime-presence.service.js +86 -0
- package/dist/modules/realtime/services/realtime-presence.service.js.map +1 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.d.ts +12 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.js +63 -0
- package/dist/modules/realtime/services/realtime-rate-limiter.service.js.map +1 -0
- package/dist/modules/realtime/services/realtime.service.d.ts +88 -0
- package/dist/modules/realtime/services/realtime.service.d.ts.map +1 -0
- package/dist/modules/realtime/services/realtime.service.js +343 -0
- package/dist/modules/realtime/services/realtime.service.js.map +1 -0
- package/dist/modules/realtime/types/realtime.types.d.ts +50 -0
- package/dist/modules/realtime/types/realtime.types.d.ts.map +1 -0
- package/dist/modules/realtime/types/realtime.types.js +14 -0
- package/dist/modules/realtime/types/realtime.types.js.map +1 -0
- package/dist/modules/realtime/utils/handshake-error.util.d.ts +5 -0
- package/dist/modules/realtime/utils/handshake-error.util.d.ts.map +1 -0
- package/dist/modules/realtime/utils/handshake-error.util.js +45 -0
- package/dist/modules/realtime/utils/handshake-error.util.js.map +1 -0
- package/dist/modules/roles/controllers/modules.controller.d.ts +4 -3
- package/dist/modules/roles/controllers/modules.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/modules.controller.js +21 -10
- package/dist/modules/roles/controllers/modules.controller.js.map +1 -1
- package/dist/modules/roles/controllers/permissions.controller.d.ts +4 -3
- package/dist/modules/roles/controllers/permissions.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/permissions.controller.js +21 -10
- package/dist/modules/roles/controllers/permissions.controller.js.map +1 -1
- package/dist/modules/roles/controllers/roles.controller.d.ts +5 -4
- package/dist/modules/roles/controllers/roles.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/roles.controller.js +26 -13
- package/dist/modules/roles/controllers/roles.controller.js.map +1 -1
- package/dist/modules/roles/controllers/user-roles.controller.d.ts +3 -2
- package/dist/modules/roles/controllers/user-roles.controller.d.ts.map +1 -1
- package/dist/modules/roles/controllers/user-roles.controller.js +14 -6
- package/dist/modules/roles/controllers/user-roles.controller.js.map +1 -1
- package/dist/modules/roles/services/modules.service.d.ts +8 -5
- package/dist/modules/roles/services/modules.service.d.ts.map +1 -1
- package/dist/modules/roles/services/modules.service.js +58 -12
- package/dist/modules/roles/services/modules.service.js.map +1 -1
- package/dist/modules/roles/services/permissions.service.d.ts +8 -5
- package/dist/modules/roles/services/permissions.service.d.ts.map +1 -1
- package/dist/modules/roles/services/permissions.service.js +61 -12
- package/dist/modules/roles/services/permissions.service.js.map +1 -1
- package/dist/modules/roles/services/roles.service.d.ts +19 -9
- package/dist/modules/roles/services/roles.service.d.ts.map +1 -1
- package/dist/modules/roles/services/roles.service.js +137 -47
- package/dist/modules/roles/services/roles.service.js.map +1 -1
- package/dist/modules/roles/services/user-roles.service.d.ts +12 -4
- package/dist/modules/roles/services/user-roles.service.d.ts.map +1 -1
- package/dist/modules/roles/services/user-roles.service.js +58 -26
- package/dist/modules/roles/services/user-roles.service.js.map +1 -1
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts +7 -1
- package/dist/modules/sessions/entities/refresh-token.entity.d.ts.map +1 -1
- package/dist/modules/sessions/entities/refresh-token.entity.js +10 -0
- package/dist/modules/sessions/entities/refresh-token.entity.js.map +1 -1
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.d.ts +12 -0
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.d.ts.map +1 -0
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.js +46 -0
- package/dist/modules/sessions/entities/revoked-refresh-family.entity.js.map +1 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.d.ts +20 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.d.ts.map +1 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.js +97 -0
- package/dist/modules/sessions/services/refresh-token-retention.service.js.map +1 -0
- package/dist/modules/sessions/services/token.service.d.ts +150 -16
- package/dist/modules/sessions/services/token.service.d.ts.map +1 -1
- package/dist/modules/sessions/services/token.service.js +505 -74
- package/dist/modules/sessions/services/token.service.js.map +1 -1
- package/dist/modules/sessions/sessions.module.d.ts.map +1 -1
- package/dist/modules/sessions/sessions.module.js +4 -2
- package/dist/modules/sessions/sessions.module.js.map +1 -1
- package/dist/modules/sessions/utils/refresh-token-hash.util.d.ts +13 -0
- package/dist/modules/sessions/utils/refresh-token-hash.util.d.ts.map +1 -0
- package/dist/modules/sessions/utils/refresh-token-hash.util.js +37 -0
- package/dist/modules/sessions/utils/refresh-token-hash.util.js.map +1 -0
- package/dist/modules/settings/constants/settings.defaults.d.ts +57 -3
- package/dist/modules/settings/constants/settings.defaults.d.ts.map +1 -1
- package/dist/modules/settings/constants/settings.defaults.js +58 -3
- package/dist/modules/settings/constants/settings.defaults.js.map +1 -1
- package/dist/modules/settings/constants/settings.keys.d.ts +138 -2
- package/dist/modules/settings/constants/settings.keys.d.ts.map +1 -1
- package/dist/modules/settings/constants/settings.keys.js +140 -2
- package/dist/modules/settings/constants/settings.keys.js.map +1 -1
- package/dist/modules/settings/controllers/settings.controller.d.ts +5 -1
- package/dist/modules/settings/controllers/settings.controller.d.ts.map +1 -1
- package/dist/modules/settings/controllers/settings.controller.js +134 -5
- package/dist/modules/settings/controllers/settings.controller.js.map +1 -1
- package/dist/modules/settings/services/settings.service.d.ts +17 -7
- package/dist/modules/settings/services/settings.service.d.ts.map +1 -1
- package/dist/modules/settings/services/settings.service.js +80 -14
- package/dist/modules/settings/services/settings.service.js.map +1 -1
- package/dist/modules/settings/utils/settings-secret.util.d.ts +13 -0
- package/dist/modules/settings/utils/settings-secret.util.d.ts.map +1 -0
- package/dist/modules/settings/utils/settings-secret.util.js +80 -0
- package/dist/modules/settings/utils/settings-secret.util.js.map +1 -0
- package/dist/modules/users/controllers/users.controller.d.ts +4 -2
- package/dist/modules/users/controllers/users.controller.d.ts.map +1 -1
- package/dist/modules/users/controllers/users.controller.js +89 -10
- package/dist/modules/users/controllers/users.controller.js.map +1 -1
- package/dist/modules/users/dto/user.dto.d.ts +5 -0
- package/dist/modules/users/dto/user.dto.d.ts.map +1 -1
- package/dist/modules/users/dto/user.dto.js +46 -5
- package/dist/modules/users/dto/user.dto.js.map +1 -1
- package/dist/modules/users/entities/user.entity.d.ts +7 -1
- package/dist/modules/users/entities/user.entity.d.ts.map +1 -1
- package/dist/modules/users/entities/user.entity.js +10 -0
- package/dist/modules/users/entities/user.entity.js.map +1 -1
- package/dist/modules/users/services/users.service.d.ts +15 -2
- package/dist/modules/users/services/users.service.d.ts.map +1 -1
- package/dist/modules/users/services/users.service.js +152 -37
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/dist/modules/users/users.module.d.ts.map +1 -1
- package/dist/modules/users/users.module.js +1 -2
- package/dist/modules/users/users.module.js.map +1 -1
- package/package.json +19 -7
- package/dist/modules/admin/entities/admin-log.entity.d.ts +0 -20
- package/dist/modules/admin/entities/admin-log.entity.d.ts.map +0 -1
- package/dist/modules/admin/entities/admin-log.entity.js +0 -65
- package/dist/modules/admin/entities/admin-log.entity.js.map +0 -1
|
@@ -13,20 +13,27 @@ exports.LoginDto = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const is_exclusive_auth_params_validator_1 = require("../../../common/validators/is-exclusive-auth-params.validator");
|
|
16
|
+
const user_oauth_identity_entity_1 = require("../entities/user-oauth-identity.entity");
|
|
16
17
|
const auth_params_util_1 = require("../utils/auth-params.util");
|
|
17
18
|
/**
|
|
18
19
|
* Login DTO — routing is determined by the request body, not the global auth.method setting.
|
|
19
20
|
*
|
|
20
21
|
* Phone OTP login: `{ verificationToken }` from POST /auth/verify-otp when hasAccount=true.
|
|
21
22
|
* Email login: `{ email, password }`.
|
|
23
|
+
* OAuth login: `{ provider, idToken }`.
|
|
22
24
|
*
|
|
23
|
-
* Per-user {@link UserAuthMethod} is enforced after the credential path is selected
|
|
25
|
+
* Per-user {@link UserAuthMethod} is enforced after the credential path is selected
|
|
26
|
+
* (OAuth linked accounts may sign in via their linked provider).
|
|
24
27
|
*/
|
|
25
28
|
class LoginDto {
|
|
26
29
|
_credentialsShape;
|
|
27
30
|
verificationToken;
|
|
28
31
|
email;
|
|
29
32
|
password;
|
|
33
|
+
provider;
|
|
34
|
+
idToken;
|
|
35
|
+
nonce;
|
|
36
|
+
turnstileToken;
|
|
30
37
|
}
|
|
31
38
|
exports.LoginDto = LoginDto;
|
|
32
39
|
__decorate([
|
|
@@ -39,7 +46,7 @@ __decorate([
|
|
|
39
46
|
(0, swagger_1.ApiPropertyOptional)({
|
|
40
47
|
example: 'c498758c-eec1-4a3b-b496-a6eddf498d4c',
|
|
41
48
|
description: 'Phone login — single-use token from POST /auth/verify-otp when hasAccount is true. ' +
|
|
42
|
-
'Mutually exclusive with email/password.',
|
|
49
|
+
'Mutually exclusive with email/password and oauth.',
|
|
43
50
|
}),
|
|
44
51
|
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.isPhoneAuthParams)(o)),
|
|
45
52
|
(0, class_validator_1.IsString)(),
|
|
@@ -49,7 +56,7 @@ __decorate([
|
|
|
49
56
|
__decorate([
|
|
50
57
|
(0, swagger_1.ApiPropertyOptional)({
|
|
51
58
|
example: 'user@example.com',
|
|
52
|
-
description: 'Email login — mutually exclusive with verificationToken.',
|
|
59
|
+
description: 'Email login — mutually exclusive with verificationToken and oauth.',
|
|
53
60
|
}),
|
|
54
61
|
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.isEmailAuthParams)(o)),
|
|
55
62
|
(0, class_validator_1.IsEmail)(),
|
|
@@ -65,4 +72,42 @@ __decorate([
|
|
|
65
72
|
(0, class_validator_1.IsNotEmpty)(),
|
|
66
73
|
__metadata("design:type", String)
|
|
67
74
|
], LoginDto.prototype, "password", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
77
|
+
enum: user_oauth_identity_entity_1.OAuthProvider,
|
|
78
|
+
example: user_oauth_identity_entity_1.OAuthProvider.GOOGLE,
|
|
79
|
+
description: 'OAuth login — required together with idToken.',
|
|
80
|
+
}),
|
|
81
|
+
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.isOAuthAuthParams)(o)),
|
|
82
|
+
(0, class_validator_1.IsEnum)(user_oauth_identity_entity_1.OAuthProvider),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], LoginDto.prototype, "provider", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
87
|
+
description: 'OAuth login — ID token from the provider SDK (e.g. Google Sign-In).',
|
|
88
|
+
}),
|
|
89
|
+
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.isOAuthAuthParams)(o)),
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], LoginDto.prototype, "idToken", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
96
|
+
description: 'OAuth nonce used when obtaining the ID token. Required when auth.oauth.require_id_token_nonce=true.',
|
|
97
|
+
}),
|
|
98
|
+
(0, class_validator_1.ValidateIf)((o) => (0, auth_params_util_1.isOAuthAuthParams)(o)),
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
(0, class_validator_1.IsString)(),
|
|
101
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], LoginDto.prototype, "nonce", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
106
|
+
description: 'Cloudflare Turnstile token when Turnstile is enabled.',
|
|
107
|
+
}),
|
|
108
|
+
(0, class_validator_1.IsOptional)(),
|
|
109
|
+
(0, class_validator_1.IsString)(),
|
|
110
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], LoginDto.prototype, "turnstileToken", void 0);
|
|
68
113
|
//# sourceMappingURL=login.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/login.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/login.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAQyB;AAEzB,sHAAsG;AACtG,uFAAuE;AACvE,gEAAoG;AAEpG;;;;;;;;;GASG;AACH,MAAa,QAAQ;IAIpB,iBAAiB,CAAU;IAW3B,iBAAiB,CAAU;IAQ3B,KAAK,CAAU;IASf,QAAQ,CAAU;IASlB,QAAQ,CAAiB;IAQzB,OAAO,CAAU;IAUjB,KAAK,CAAU;IAQf,cAAc,CAAU;CACxB;AApED,4BAoEC;AAhEA;IAHC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IACtB,IAAA,0DAAqB,GAAE;;mDACG;AAW3B;IATC,IAAA,6BAAmB,EAAC;QACpB,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EACV,qFAAqF;YACrF,mDAAmD;KACpD,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAAW,EAAE,EAAE,CAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,CAAC;IACjD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACc;AAQ3B;IANC,IAAA,6BAAmB,EAAC;QACpB,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,oEAAoE;KACjF,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAAW,EAAE,EAAE,CAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,CAAC;IACjD,IAAA,yBAAO,GAAE;;uCACK;AASf;IAPC,IAAA,6BAAmB,EAAC;QACpB,OAAO,EAAE,WAAW;QACpB,WAAW,EAAE,6CAA6C;KAC1D,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAAW,EAAE,EAAE,CAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,CAAC;IACjD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0CACK;AASlB;IAPC,IAAA,6BAAmB,EAAC;QACpB,IAAI,EAAE,0CAAa;QACnB,OAAO,EAAE,0CAAa,CAAC,MAAM;QAC7B,WAAW,EAAE,+CAA+C;KAC5D,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAAW,EAAE,EAAE,CAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,CAAC;IACjD,IAAA,wBAAM,EAAC,0CAAa,CAAC;;0CACG;AAQzB;IANC,IAAA,6BAAmB,EAAC;QACpB,WAAW,EAAE,qEAAqE;KAClF,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAAW,EAAE,EAAE,CAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,CAAC;IACjD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACI;AAUjB;IARC,IAAA,6BAAmB,EAAC;QACpB,WAAW,EACV,qGAAqG;KACtG,CAAC;IACD,IAAA,4BAAU,EAAC,CAAC,CAAW,EAAE,EAAE,CAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,CAAC;IACjD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACE;AAQf;IANC,IAAA,6BAAmB,EAAC;QACpB,WAAW,EAAE,uDAAuD;KACpE,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACW"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { OAuthProvider } from '../entities/user-oauth-identity.entity';
|
|
2
|
+
import { type StepUpPurpose } from '../utils/step-up-purpose.util';
|
|
3
|
+
export declare class MfaChallengeResponseDto {
|
|
4
|
+
mfaRequired: true;
|
|
5
|
+
mfaToken: string;
|
|
6
|
+
methods: ('totp' | 'backup_code')[];
|
|
7
|
+
expiresIn: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class MfaStatusResponseDto {
|
|
10
|
+
mfaEnabled: boolean;
|
|
11
|
+
totpConfigured: boolean;
|
|
12
|
+
totpConfirmedAt?: Date;
|
|
13
|
+
backupCodesRemaining: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class MfaTotpSetupResponseDto {
|
|
16
|
+
secret: string;
|
|
17
|
+
otpauthUrl: string;
|
|
18
|
+
issuer: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class MfaTotpConfirmDto {
|
|
21
|
+
code: string;
|
|
22
|
+
password?: string;
|
|
23
|
+
verificationId?: string;
|
|
24
|
+
otp?: string;
|
|
25
|
+
provider?: OAuthProvider;
|
|
26
|
+
idToken?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare class MfaTotpConfirmResponseDto extends MfaStatusResponseDto {
|
|
29
|
+
backupCodes: string[];
|
|
30
|
+
}
|
|
31
|
+
export declare class MfaDisableDto {
|
|
32
|
+
_shape?: string;
|
|
33
|
+
code?: string;
|
|
34
|
+
backupCode?: string;
|
|
35
|
+
static assertExclusive(dto: MfaDisableDto): void;
|
|
36
|
+
}
|
|
37
|
+
export declare class MfaBackupCodesResponseDto {
|
|
38
|
+
backupCodes: string[];
|
|
39
|
+
status: MfaStatusResponseDto;
|
|
40
|
+
}
|
|
41
|
+
export declare class MfaVerifyDto {
|
|
42
|
+
_shape?: string;
|
|
43
|
+
mfaToken: string;
|
|
44
|
+
totp?: string;
|
|
45
|
+
backupCode?: string;
|
|
46
|
+
/** Custom validation hook consumed by service (DTO pipe uses ValidateIf). */
|
|
47
|
+
static assertExclusive(dto: MfaVerifyDto): void;
|
|
48
|
+
}
|
|
49
|
+
export declare class MfaStepUpDto {
|
|
50
|
+
_shape?: string;
|
|
51
|
+
purpose: StepUpPurpose;
|
|
52
|
+
totp?: string;
|
|
53
|
+
backupCode?: string;
|
|
54
|
+
_unused?: string;
|
|
55
|
+
static assertExclusive(dto: MfaStepUpDto): void;
|
|
56
|
+
}
|
|
57
|
+
export declare class MfaStepUpResponseDto {
|
|
58
|
+
stepUpToken: string;
|
|
59
|
+
expiresIn: number;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=mfa.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mfa.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/mfa.dto.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AASvE,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAErF,qBAAa,uBAAuB;IAEnC,WAAW,EAAG,IAAI,CAAC;IAMnB,QAAQ,EAAG,MAAM,CAAC;IAOlB,OAAO,EAAG,CAAC,MAAM,GAAG,aAAa,CAAC,EAAE,CAAC;IAMrC,SAAS,EAAG,MAAM,CAAC;CACnB;AAED,qBAAa,oBAAoB;IAEhC,UAAU,EAAG,OAAO,CAAC;IAGrB,cAAc,EAAG,OAAO,CAAC;IAGzB,eAAe,CAAC,EAAE,IAAI,CAAC;IAMvB,oBAAoB,EAAG,MAAM,CAAC;CAC9B;AAED,qBAAa,uBAAuB;IAEnC,MAAM,EAAG,MAAM,CAAC;IAGhB,UAAU,EAAG,MAAM,CAAC;IAGpB,MAAM,EAAG,MAAM,CAAC;CAChB;AAED,qBAAa,iBAAiB;IAK7B,IAAI,EAAG,MAAM,CAAC;IASd,QAAQ,CAAC,EAAE,MAAM,CAAC;IASlB,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB,GAAG,CAAC,EAAE,MAAM,CAAC;IAQb,QAAQ,CAAC,EAAE,aAAa,CAAC;IAQzB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,yBAA0B,SAAQ,oBAAoB;IAMlE,WAAW,EAAG,MAAM,EAAE,CAAC;CACvB;AAED,qBAAa,aAAa;IAGzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAUhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAUd,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;CAMhD;AAED,qBAAa,yBAAyB;IAKrC,WAAW,EAAG,MAAM,EAAE,CAAC;IAGvB,MAAM,EAAG,oBAAoB,CAAC;CAC9B;AAED,qBAAa,YAAY;IAGxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,QAAQ,EAAG,MAAM,CAAC;IAOlB,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,6EAA6E;IAC7E,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI;CAM/C;AAED,qBAAa,YAAY;IAGxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,OAAO,EAAG,aAAa,CAAC;IAOxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI;CAM/C;AAED,qBAAa,oBAAoB;IAIhC,WAAW,EAAG,MAAM,CAAC;IAGrB,SAAS,EAAG,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,326 @@
|
|
|
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.MfaStepUpResponseDto = exports.MfaStepUpDto = exports.MfaVerifyDto = exports.MfaBackupCodesResponseDto = exports.MfaDisableDto = exports.MfaTotpConfirmResponseDto = exports.MfaTotpConfirmDto = exports.MfaTotpSetupResponseDto = exports.MfaStatusResponseDto = exports.MfaChallengeResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const user_oauth_identity_entity_1 = require("../entities/user-oauth-identity.entity");
|
|
16
|
+
const mfa_verify_params_util_1 = require("../utils/mfa-verify-params.util");
|
|
17
|
+
const step_up_purpose_util_1 = require("../utils/step-up-purpose.util");
|
|
18
|
+
class MfaChallengeResponseDto {
|
|
19
|
+
mfaRequired;
|
|
20
|
+
mfaToken;
|
|
21
|
+
methods;
|
|
22
|
+
expiresIn;
|
|
23
|
+
}
|
|
24
|
+
exports.MfaChallengeResponseDto = MfaChallengeResponseDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], MfaChallengeResponseDto.prototype, "mfaRequired", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'Short-lived challenge token for POST /auth/mfa/verify',
|
|
32
|
+
example: 'c498758c-eec1-4a3b-b496-a6eddf498d4c',
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], MfaChallengeResponseDto.prototype, "mfaToken", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({
|
|
38
|
+
type: [String],
|
|
39
|
+
example: ['totp', 'backup_code'],
|
|
40
|
+
description: 'Available second-factor methods for this user',
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], MfaChallengeResponseDto.prototype, "methods", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'Challenge lifetime in milliseconds',
|
|
47
|
+
example: 300000,
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], MfaChallengeResponseDto.prototype, "expiresIn", void 0);
|
|
51
|
+
class MfaStatusResponseDto {
|
|
52
|
+
mfaEnabled;
|
|
53
|
+
totpConfigured;
|
|
54
|
+
totpConfirmedAt;
|
|
55
|
+
backupCodesRemaining;
|
|
56
|
+
}
|
|
57
|
+
exports.MfaStatusResponseDto = MfaStatusResponseDto;
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], MfaStatusResponseDto.prototype, "mfaEnabled", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], MfaStatusResponseDto.prototype, "totpConfigured", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiPropertyOptional)({ example: '2026-01-01T00:00:00.000Z' }),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], MfaStatusResponseDto.prototype, "totpConfirmedAt", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: 'Number of unused backup codes remaining',
|
|
73
|
+
example: 8,
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], MfaStatusResponseDto.prototype, "backupCodesRemaining", void 0);
|
|
77
|
+
class MfaTotpSetupResponseDto {
|
|
78
|
+
secret;
|
|
79
|
+
otpauthUrl;
|
|
80
|
+
issuer;
|
|
81
|
+
}
|
|
82
|
+
exports.MfaTotpSetupResponseDto = MfaTotpSetupResponseDto;
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiProperty)({ description: 'Base32 TOTP secret — show once for manual entry' }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], MfaTotpSetupResponseDto.prototype, "secret", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)({ description: 'otpauth:// URI for QR code provisioning' }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], MfaTotpSetupResponseDto.prototype, "otpauthUrl", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)({ example: 'Colveor' }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], MfaTotpSetupResponseDto.prototype, "issuer", void 0);
|
|
95
|
+
class MfaTotpConfirmDto {
|
|
96
|
+
code;
|
|
97
|
+
password;
|
|
98
|
+
verificationId;
|
|
99
|
+
otp;
|
|
100
|
+
provider;
|
|
101
|
+
idToken;
|
|
102
|
+
}
|
|
103
|
+
exports.MfaTotpConfirmDto = MfaTotpConfirmDto;
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)({ example: '123456', description: '6-digit code from the authenticator app' }),
|
|
106
|
+
(0, class_validator_1.IsString)(),
|
|
107
|
+
(0, class_validator_1.Length)(6, 6),
|
|
108
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], MfaTotpConfirmDto.prototype, "code", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
113
|
+
description: 'Re-auth: account password (email accounts). Required when the account has a password.',
|
|
114
|
+
}),
|
|
115
|
+
(0, class_validator_1.IsOptional)(),
|
|
116
|
+
(0, class_validator_1.IsString)(),
|
|
117
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], MfaTotpConfirmDto.prototype, "password", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
122
|
+
description: 'Re-auth: OTP verificationId for the account phone (phone accounts without password).',
|
|
123
|
+
}),
|
|
124
|
+
(0, class_validator_1.IsOptional)(),
|
|
125
|
+
(0, class_validator_1.IsString)(),
|
|
126
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], MfaTotpConfirmDto.prototype, "verificationId", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'OTP code paired with verificationId for phone re-auth' }),
|
|
131
|
+
(0, class_validator_1.IsOptional)(),
|
|
132
|
+
(0, class_validator_1.IsString)(),
|
|
133
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], MfaTotpConfirmDto.prototype, "otp", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
138
|
+
enum: user_oauth_identity_entity_1.OAuthProvider,
|
|
139
|
+
description: 'OAuth re-auth: linked provider (OAuth-only accounts without password/phone).',
|
|
140
|
+
}),
|
|
141
|
+
(0, class_validator_1.IsOptional)(),
|
|
142
|
+
(0, class_validator_1.IsEnum)(user_oauth_identity_entity_1.OAuthProvider),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], MfaTotpConfirmDto.prototype, "provider", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
147
|
+
description: 'OAuth re-auth: ID token for a provider already linked to this account.',
|
|
148
|
+
}),
|
|
149
|
+
(0, class_validator_1.IsOptional)(),
|
|
150
|
+
(0, class_validator_1.IsString)(),
|
|
151
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], MfaTotpConfirmDto.prototype, "idToken", void 0);
|
|
154
|
+
class MfaTotpConfirmResponseDto extends MfaStatusResponseDto {
|
|
155
|
+
backupCodes;
|
|
156
|
+
}
|
|
157
|
+
exports.MfaTotpConfirmResponseDto = MfaTotpConfirmResponseDto;
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, swagger_1.ApiProperty)({
|
|
160
|
+
type: [String],
|
|
161
|
+
description: 'One-time backup codes — store securely; shown only once',
|
|
162
|
+
example: ['a1b2-c3d4-e5f6'],
|
|
163
|
+
}),
|
|
164
|
+
__metadata("design:type", Array)
|
|
165
|
+
], MfaTotpConfirmResponseDto.prototype, "backupCodes", void 0);
|
|
166
|
+
class MfaDisableDto {
|
|
167
|
+
_shape;
|
|
168
|
+
code;
|
|
169
|
+
backupCode;
|
|
170
|
+
static assertExclusive(dto) {
|
|
171
|
+
const mode = (0, mfa_verify_params_util_1.resolveMfaDisableMode)(dto);
|
|
172
|
+
if (mode === 'ambiguous' || mode === 'missing') {
|
|
173
|
+
throw new Error(mfa_verify_params_util_1.MFA_DISABLE_PARAMS_ERROR);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.MfaDisableDto = MfaDisableDto;
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, class_validator_1.Allow)(),
|
|
180
|
+
(0, class_validator_1.ValidateIf)(() => true),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], MfaDisableDto.prototype, "_shape", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
185
|
+
example: '123456',
|
|
186
|
+
description: 'Current TOTP code (mutually exclusive with backupCode)',
|
|
187
|
+
}),
|
|
188
|
+
(0, class_validator_1.ValidateIf)((o) => (0, mfa_verify_params_util_1.resolveMfaDisableMode)(o) === 'totp'),
|
|
189
|
+
(0, class_validator_1.IsString)(),
|
|
190
|
+
(0, class_validator_1.Length)(6, 6),
|
|
191
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
192
|
+
__metadata("design:type", String)
|
|
193
|
+
], MfaDisableDto.prototype, "code", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
196
|
+
example: 'a1b2-c3d4-e5f6',
|
|
197
|
+
description: 'Backup code recovery path when authenticator is lost (mutually exclusive with code)',
|
|
198
|
+
}),
|
|
199
|
+
(0, class_validator_1.ValidateIf)((o) => (0, mfa_verify_params_util_1.resolveMfaDisableMode)(o) === 'backup_code'),
|
|
200
|
+
(0, class_validator_1.IsString)(),
|
|
201
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
202
|
+
__metadata("design:type", String)
|
|
203
|
+
], MfaDisableDto.prototype, "backupCode", void 0);
|
|
204
|
+
class MfaBackupCodesResponseDto {
|
|
205
|
+
backupCodes;
|
|
206
|
+
status;
|
|
207
|
+
}
|
|
208
|
+
exports.MfaBackupCodesResponseDto = MfaBackupCodesResponseDto;
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, swagger_1.ApiProperty)({
|
|
211
|
+
type: [String],
|
|
212
|
+
description: 'New one-time backup codes — previous codes are invalidated',
|
|
213
|
+
}),
|
|
214
|
+
__metadata("design:type", Array)
|
|
215
|
+
], MfaBackupCodesResponseDto.prototype, "backupCodes", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, swagger_1.ApiProperty)({ type: MfaStatusResponseDto }),
|
|
218
|
+
__metadata("design:type", MfaStatusResponseDto)
|
|
219
|
+
], MfaBackupCodesResponseDto.prototype, "status", void 0);
|
|
220
|
+
class MfaVerifyDto {
|
|
221
|
+
_shape;
|
|
222
|
+
mfaToken;
|
|
223
|
+
totp;
|
|
224
|
+
backupCode;
|
|
225
|
+
/** Custom validation hook consumed by service (DTO pipe uses ValidateIf). */
|
|
226
|
+
static assertExclusive(dto) {
|
|
227
|
+
const mode = (0, mfa_verify_params_util_1.resolveMfaVerifyMode)(dto);
|
|
228
|
+
if (mode === 'ambiguous' || mode === 'missing') {
|
|
229
|
+
throw new Error(mfa_verify_params_util_1.MFA_VERIFY_PARAMS_ERROR);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.MfaVerifyDto = MfaVerifyDto;
|
|
234
|
+
__decorate([
|
|
235
|
+
(0, class_validator_1.Allow)(),
|
|
236
|
+
(0, class_validator_1.ValidateIf)(() => true),
|
|
237
|
+
__metadata("design:type", String)
|
|
238
|
+
], MfaVerifyDto.prototype, "_shape", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, swagger_1.ApiProperty)({ description: 'Challenge token from login when mfaRequired is true' }),
|
|
241
|
+
(0, class_validator_1.IsString)(),
|
|
242
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
243
|
+
__metadata("design:type", String)
|
|
244
|
+
], MfaVerifyDto.prototype, "mfaToken", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, swagger_1.ApiPropertyOptional)({ example: '123456', description: '6-digit TOTP code' }),
|
|
247
|
+
(0, class_validator_1.ValidateIf)((o) => (0, mfa_verify_params_util_1.resolveMfaVerifyMode)(o) === 'totp'),
|
|
248
|
+
(0, class_validator_1.IsString)(),
|
|
249
|
+
(0, class_validator_1.Length)(6, 6),
|
|
250
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
251
|
+
__metadata("design:type", String)
|
|
252
|
+
], MfaVerifyDto.prototype, "totp", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
255
|
+
example: 'a1b2-c3d4-e5f6',
|
|
256
|
+
description: 'One-time backup code (mutually exclusive with totp)',
|
|
257
|
+
}),
|
|
258
|
+
(0, class_validator_1.ValidateIf)((o) => (0, mfa_verify_params_util_1.resolveMfaVerifyMode)(o) === 'backup_code'),
|
|
259
|
+
(0, class_validator_1.IsString)(),
|
|
260
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
261
|
+
__metadata("design:type", String)
|
|
262
|
+
], MfaVerifyDto.prototype, "backupCode", void 0);
|
|
263
|
+
class MfaStepUpDto {
|
|
264
|
+
_shape;
|
|
265
|
+
purpose;
|
|
266
|
+
totp;
|
|
267
|
+
backupCode;
|
|
268
|
+
_unused;
|
|
269
|
+
static assertExclusive(dto) {
|
|
270
|
+
const mode = (0, mfa_verify_params_util_1.resolveMfaStepUpMode)(dto);
|
|
271
|
+
if (mode === 'ambiguous' || mode === 'missing') {
|
|
272
|
+
throw new Error(mfa_verify_params_util_1.MFA_STEP_UP_PARAMS_ERROR);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
exports.MfaStepUpDto = MfaStepUpDto;
|
|
277
|
+
__decorate([
|
|
278
|
+
(0, class_validator_1.Allow)(),
|
|
279
|
+
(0, class_validator_1.ValidateIf)(() => true),
|
|
280
|
+
__metadata("design:type", String)
|
|
281
|
+
], MfaStepUpDto.prototype, "_shape", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
(0, swagger_1.ApiProperty)({
|
|
284
|
+
enum: step_up_purpose_util_1.STEP_UP_PURPOSES,
|
|
285
|
+
description: 'Action this step-up token authorizes (must match the consuming endpoint).',
|
|
286
|
+
example: 'change_password',
|
|
287
|
+
}),
|
|
288
|
+
(0, class_validator_1.IsIn)(step_up_purpose_util_1.STEP_UP_PURPOSES),
|
|
289
|
+
__metadata("design:type", String)
|
|
290
|
+
], MfaStepUpDto.prototype, "purpose", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
(0, swagger_1.ApiPropertyOptional)({ example: '123456' }),
|
|
293
|
+
(0, class_validator_1.ValidateIf)((o) => (0, mfa_verify_params_util_1.resolveMfaStepUpMode)(o) === 'totp'),
|
|
294
|
+
(0, class_validator_1.IsString)(),
|
|
295
|
+
(0, class_validator_1.Length)(6, 6),
|
|
296
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
297
|
+
__metadata("design:type", String)
|
|
298
|
+
], MfaStepUpDto.prototype, "totp", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
(0, swagger_1.ApiPropertyOptional)({ example: 'a1b2-c3d4-e5f6' }),
|
|
301
|
+
(0, class_validator_1.ValidateIf)((o) => (0, mfa_verify_params_util_1.resolveMfaStepUpMode)(o) === 'backup_code'),
|
|
302
|
+
(0, class_validator_1.IsString)(),
|
|
303
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
304
|
+
__metadata("design:type", String)
|
|
305
|
+
], MfaStepUpDto.prototype, "backupCode", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
(0, class_validator_1.IsOptional)(),
|
|
308
|
+
(0, class_validator_1.IsString)(),
|
|
309
|
+
__metadata("design:type", String)
|
|
310
|
+
], MfaStepUpDto.prototype, "_unused", void 0);
|
|
311
|
+
class MfaStepUpResponseDto {
|
|
312
|
+
stepUpToken;
|
|
313
|
+
expiresIn;
|
|
314
|
+
}
|
|
315
|
+
exports.MfaStepUpResponseDto = MfaStepUpResponseDto;
|
|
316
|
+
__decorate([
|
|
317
|
+
(0, swagger_1.ApiProperty)({
|
|
318
|
+
description: 'Short-lived step-up token for sensitive actions',
|
|
319
|
+
}),
|
|
320
|
+
__metadata("design:type", String)
|
|
321
|
+
], MfaStepUpResponseDto.prototype, "stepUpToken", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
(0, swagger_1.ApiProperty)({ description: 'Lifetime in milliseconds', example: 300000 }),
|
|
324
|
+
__metadata("design:type", Number)
|
|
325
|
+
], MfaStepUpResponseDto.prototype, "expiresIn", void 0);
|
|
326
|
+
//# sourceMappingURL=mfa.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mfa.dto.js","sourceRoot":"","sources":["../../../../src/modules/auth/dto/mfa.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CA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,CAAC,CAAC;IACZ,IAAA,yBAAO,EAAC,SAAS,CAAC;;0CACL;AAMd;IAJC,IAAA,6BAAmB,EAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAClD,IAAA,4BAAU,EAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,6CAAoB,EAAC,CAAC,CAAC,KAAK,aAAa,CAAC;IAC1E,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACO;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACM;AAUlB,MAAa,oBAAoB;IAIhC,WAAW,CAAU;IAGrB,SAAS,CAAU;CACnB;AARD,oDAQC;AAJA;IAHC,IAAA,qBAAW,EAAC;QACZ,WAAW,EAAE,iDAAiD;KAC9D,CAAC;;yDACmB;AAGrB;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;;uDACvD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { OAuthProvider } from '../entities/user-oauth-identity.entity';
|
|
2
|
+
export declare class OAuthLinkDto {
|
|
3
|
+
provider: OAuthProvider;
|
|
4
|
+
idToken: string;
|
|
5
|
+
nonce?: string;
|
|
6
|
+
stepUpToken?: string;
|
|
7
|
+
password?: string;
|
|
8
|
+
verificationId?: string;
|
|
9
|
+
otp?: string;
|
|
10
|
+
reauthProvider?: OAuthProvider;
|
|
11
|
+
reauthIdToken?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class OAuthUnlinkDto {
|
|
14
|
+
stepUpToken?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
verificationId?: string;
|
|
17
|
+
otp?: string;
|
|
18
|
+
provider?: OAuthProvider;
|
|
19
|
+
idToken?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class OAuthIdentityResponseDto {
|
|
22
|
+
provider: OAuthProvider;
|
|
23
|
+
email?: string;
|
|
24
|
+
emailVerified: boolean;
|
|
25
|
+
linkedAt: Date;
|
|
26
|
+
lastUsedAt?: Date;
|
|
27
|
+
}
|
|
28
|
+
export declare class OAuthProviderInfoDto {
|
|
29
|
+
provider: OAuthProvider;
|
|
30
|
+
clientIds: string[];
|
|
31
|
+
webAuthCodeSupported: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare class OAuthStartDto {
|
|
34
|
+
redirectUri: string;
|
|
35
|
+
}
|
|
36
|
+
export declare class OAuthStartResponseDto {
|
|
37
|
+
authorizationUrl: string;
|
|
38
|
+
state: string;
|
|
39
|
+
expiresIn: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class OAuthCallbackDto {
|
|
42
|
+
code: string;
|
|
43
|
+
state: string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=oauth.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/dto/oauth.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,qBAAa,YAAY;IAGxB,QAAQ,EAAG,aAAa,CAAC;IAKzB,OAAO,EAAG,MAAM,CAAC;IASjB,KAAK,CAAC,EAAE,MAAM,CAAC;IASf,WAAW,CAAC,EAAE,MAAM,CAAC;IAQrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB,GAAG,CAAC,EAAE,MAAM,CAAC;IASb,cAAc,CAAC,EAAE,aAAa,CAAC;IAQ/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,cAAc;IAO1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB,GAAG,CAAC,EAAE,MAAM,CAAC;IAKb,QAAQ,CAAC,EAAE,aAAa,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