@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
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.hashOtpCode = hashOtpCode;
|
|
37
|
+
exports.verifyOtpCode = verifyOtpCode;
|
|
38
|
+
const argon2 = __importStar(require("argon2"));
|
|
39
|
+
const crypto_1 = require("crypto");
|
|
40
|
+
const HMAC_PREFIX = 'v1:';
|
|
41
|
+
/**
|
|
42
|
+
* Fast keyed hash for short-lived OTP codes (not password hashing).
|
|
43
|
+
* Prefer HMAC over Argon2 so generate/verify stay off the request-path CPU budget.
|
|
44
|
+
*/
|
|
45
|
+
function hashOtpCode(code, secret) {
|
|
46
|
+
return `${HMAC_PREFIX}${(0, crypto_1.createHmac)('sha256', secret).update(code, 'utf8').digest('hex')}`;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Verifies an OTP against a stored hash.
|
|
50
|
+
* Supports legacy Argon2 hashes (pre-HMAC) for in-flight Redis sessions.
|
|
51
|
+
*/
|
|
52
|
+
async function verifyOtpCode(storedHash, code, secret) {
|
|
53
|
+
if (storedHash.startsWith(HMAC_PREFIX)) {
|
|
54
|
+
const expected = hashOtpCode(code, secret);
|
|
55
|
+
const left = Buffer.from(storedHash);
|
|
56
|
+
const right = Buffer.from(expected);
|
|
57
|
+
if (left.length !== right.length)
|
|
58
|
+
return false;
|
|
59
|
+
return (0, crypto_1.timingSafeEqual)(left, right);
|
|
60
|
+
}
|
|
61
|
+
try {
|
|
62
|
+
return await argon2.verify(storedHash, code);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=otp-code-hash.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp-code-hash.util.js","sourceRoot":"","sources":["../../../../src/modules/otp/utils/otp-code-hash.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kCAEC;AAMD,sCAiBC;AAlCD,+CAAiC;AACjC,mCAAqD;AAErD,MAAM,WAAW,GAAG,KAAK,CAAC;AAE1B;;;GAGG;AACH,SAAgB,WAAW,CAAC,IAAY,EAAE,MAAc;IACvD,OAAO,GAAG,WAAW,GAAG,IAAA,mBAAU,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AAC3F,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,aAAa,CAClC,UAAkB,EAClB,IAAY,EACZ,MAAc;IAEd,IAAI,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QACxC,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACrC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAC/C,OAAO,IAAA,wBAAe,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,CAAC;QACJ,OAAO,MAAM,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC9C,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,KAAK,CAAC;IACd,CAAC;AACF,CAAC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { RequestUser } from '../../../common/interfaces/request-user';
|
|
2
|
+
import type { MulterFilePayload } from '../../file-upload/services/file-upload.service';
|
|
2
3
|
import { ChangePhoneDto, UpdateUserProfileDto } from '../dto/create-user-profile.dto';
|
|
4
|
+
import { PublicUserProfileDto } from '../dto/public-user-profile.dto';
|
|
5
|
+
import { UsernameAvailableResponseDto } from '../dto/username-available.dto';
|
|
3
6
|
import { UserProfilesService } from '../services/profile.service';
|
|
4
7
|
export declare class ProfileController {
|
|
5
8
|
private readonly userProfilesService;
|
|
6
9
|
constructor(userProfilesService: UserProfilesService);
|
|
7
10
|
getProfile(user: RequestUser): Promise<import("..").UserProfile>;
|
|
11
|
+
usernameAvailable(username: string): Promise<UsernameAvailableResponseDto>;
|
|
12
|
+
getPublicByUsername(username: string): Promise<PublicUserProfileDto>;
|
|
8
13
|
updateProfile(user: RequestUser, updateDto: UpdateUserProfileDto): Promise<import("..").UserProfile>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
uploadPhoto(user: RequestUser, file: MulterFilePayload): Promise<import("..").UserProfile>;
|
|
15
|
+
removePhoto(user: RequestUser): Promise<import("..").UserProfile>;
|
|
16
|
+
uploadCover(user: RequestUser, file: MulterFilePayload): Promise<import("..").UserProfile>;
|
|
17
|
+
removeCover(user: RequestUser): Promise<import("..").UserProfile>;
|
|
12
18
|
changePhoneNumber(user: RequestUser, changePhoneDto: ChangePhoneDto): Promise<import("../../..").User>;
|
|
13
19
|
}
|
|
14
20
|
//# sourceMappingURL=profile.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/profile/controllers/profile.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profile.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/profile/controllers/profile.controller.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,qBAIa,iBAAiB;IACjB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB;IAM/D,UAAU,CAAgB,IAAI,EAAE,WAAW;IAgB3C,iBAAiB,CAAa,QAAQ,EAAE,MAAM;IAkB9C,mBAAmB,CAAoB,QAAQ,EAAE,MAAM;IASvD,aAAa,CAAgB,IAAI,EAAE,WAAW,EAAU,SAAS,EAAE,oBAAoB;IA0BvF,WAAW,CAAgB,IAAI,EAAE,WAAW,EAAkB,IAAI,EAAE,iBAAiB;IAYrF,WAAW,CAAgB,IAAI,EAAE,WAAW;IAwB5C,WAAW,CAAgB,IAAI,EAAE,WAAW,EAAkB,IAAI,EAAE,iBAAiB;IAarF,WAAW,CAAgB,IAAI,EAAE,WAAW;IAe5C,iBAAiB,CACP,IAAI,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc;CAIvC"}
|
|
@@ -16,10 +16,17 @@ exports.ProfileController = void 0;
|
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const swagger_1 = require("@nestjs/swagger");
|
|
18
18
|
const decorators_1 = require("../../../common/decorators");
|
|
19
|
+
const ip_rate_limit_bucket_decorator_1 = require("../../../common/decorators/ip-rate-limit-bucket.decorator");
|
|
19
20
|
const auth_guard_1 = require("../../../common/guards/auth.guard");
|
|
21
|
+
const login_ip_rate_limit_guard_1 = require("../../../common/guards/login-ip-rate-limit.guard");
|
|
20
22
|
const permissions_guard_1 = require("../../../common/guards/permissions.guard");
|
|
23
|
+
const upload_ip_rate_limit_guard_1 = require("../../../common/guards/upload-ip-rate-limit.guard");
|
|
24
|
+
const upload_user_rate_limit_guard_1 = require("../../../common/guards/upload-user-rate-limit.guard");
|
|
25
|
+
const disk_file_interceptor_1 = require("../../file-upload/interceptors/disk-file.interceptor");
|
|
21
26
|
const create_user_profile_dto_1 = require("../dto/create-user-profile.dto");
|
|
27
|
+
const public_user_profile_dto_1 = require("../dto/public-user-profile.dto");
|
|
22
28
|
const user_profile_response_dto_1 = require("../dto/user-profile-response.dto");
|
|
29
|
+
const username_available_dto_1 = require("../dto/username-available.dto");
|
|
23
30
|
const profile_manifest_1 = require("../profile.manifest");
|
|
24
31
|
const profile_service_1 = require("../services/profile.service");
|
|
25
32
|
let ProfileController = class ProfileController {
|
|
@@ -30,12 +37,26 @@ let ProfileController = class ProfileController {
|
|
|
30
37
|
async getProfile(user) {
|
|
31
38
|
return this.userProfilesService.findByUserIdOrFail(user.id);
|
|
32
39
|
}
|
|
40
|
+
async usernameAvailable(username) {
|
|
41
|
+
return this.userProfilesService.isUsernameAvailable(username);
|
|
42
|
+
}
|
|
43
|
+
async getPublicByUsername(username) {
|
|
44
|
+
return this.userProfilesService.findPublicByUsername(username);
|
|
45
|
+
}
|
|
33
46
|
async updateProfile(user, updateDto) {
|
|
34
47
|
return this.userProfilesService.update(user.id, updateDto);
|
|
35
48
|
}
|
|
36
|
-
async
|
|
37
|
-
|
|
38
|
-
|
|
49
|
+
async uploadPhoto(user, file) {
|
|
50
|
+
return this.userProfilesService.setProfilePhoto(user.id, file);
|
|
51
|
+
}
|
|
52
|
+
async removePhoto(user) {
|
|
53
|
+
return this.userProfilesService.clearProfilePhoto(user.id);
|
|
54
|
+
}
|
|
55
|
+
async uploadCover(user, file) {
|
|
56
|
+
return this.userProfilesService.setCoverPhoto(user.id, file);
|
|
57
|
+
}
|
|
58
|
+
async removeCover(user) {
|
|
59
|
+
return this.userProfilesService.clearCoverPhoto(user.id);
|
|
39
60
|
}
|
|
40
61
|
async changePhoneNumber(user, changePhoneDto) {
|
|
41
62
|
return this.userProfilesService.changePhoneNumber(user.id, changePhoneDto);
|
|
@@ -52,6 +73,42 @@ __decorate([
|
|
|
52
73
|
__metadata("design:paramtypes", [Object]),
|
|
53
74
|
__metadata("design:returntype", Promise)
|
|
54
75
|
], ProfileController.prototype, "getProfile", null);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, common_1.Get)('username-available'),
|
|
78
|
+
(0, decorators_1.Public)(),
|
|
79
|
+
(0, ip_rate_limit_bucket_decorator_1.IpRateLimitBucket)('profile_public'),
|
|
80
|
+
(0, common_1.UseGuards)(login_ip_rate_limit_guard_1.LoginIpRateLimitGuard),
|
|
81
|
+
(0, swagger_1.ApiOperation)({
|
|
82
|
+
summary: 'Check username availability',
|
|
83
|
+
description: 'Normalized (strip leading `@`, lowercase). Rate-limited per IP. ' +
|
|
84
|
+
'Does not reveal whether a matching private profile exists beyond taken/free.',
|
|
85
|
+
}),
|
|
86
|
+
(0, swagger_1.ApiQuery)({ name: 'u', required: true, example: 'ada' }),
|
|
87
|
+
(0, swagger_1.ApiOkResponse)({ type: username_available_dto_1.UsernameAvailableResponseDto }),
|
|
88
|
+
__param(0, (0, common_1.Query)('u')),
|
|
89
|
+
__metadata("design:type", Function),
|
|
90
|
+
__metadata("design:paramtypes", [String]),
|
|
91
|
+
__metadata("design:returntype", Promise)
|
|
92
|
+
], ProfileController.prototype, "usernameAvailable", null);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, common_1.Get)('u/:username'),
|
|
95
|
+
(0, decorators_1.Public)(),
|
|
96
|
+
(0, ip_rate_limit_bucket_decorator_1.IpRateLimitBucket)('profile_public'),
|
|
97
|
+
(0, common_1.UseGuards)(login_ip_rate_limit_guard_1.LoginIpRateLimitGuard),
|
|
98
|
+
(0, common_1.Header)('Cache-Control', 'public, max-age=60'),
|
|
99
|
+
(0, swagger_1.ApiOperation)({
|
|
100
|
+
summary: 'Get public profile by username',
|
|
101
|
+
description: 'Returns a public-safe profile for `isPublic` accounts. Missing or private profiles → 404. ' +
|
|
102
|
+
'Leading `@` in the path is accepted. Per-IP rate limited; short CDN/browser cache.',
|
|
103
|
+
}),
|
|
104
|
+
(0, swagger_1.ApiParam)({ name: 'username', example: 'ada' }),
|
|
105
|
+
(0, swagger_1.ApiOkResponse)({ type: public_user_profile_dto_1.PublicUserProfileDto }),
|
|
106
|
+
(0, swagger_1.ApiNotFoundResponse)({ description: 'Profile not found or not public' }),
|
|
107
|
+
__param(0, (0, common_1.Param)('username')),
|
|
108
|
+
__metadata("design:type", Function),
|
|
109
|
+
__metadata("design:paramtypes", [String]),
|
|
110
|
+
__metadata("design:returntype", Promise)
|
|
111
|
+
], ProfileController.prototype, "getPublicByUsername", null);
|
|
55
112
|
__decorate([
|
|
56
113
|
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.UPDATE),
|
|
57
114
|
(0, common_1.Patch)(),
|
|
@@ -65,22 +122,97 @@ __decorate([
|
|
|
65
122
|
__metadata("design:returntype", Promise)
|
|
66
123
|
], ProfileController.prototype, "updateProfile", null);
|
|
67
124
|
__decorate([
|
|
68
|
-
(0, common_1.
|
|
125
|
+
(0, common_1.Post)('photo'),
|
|
126
|
+
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.UPDATE),
|
|
127
|
+
(0, common_1.UseGuards)(upload_ip_rate_limit_guard_1.UploadIpRateLimitGuard, upload_user_rate_limit_guard_1.UploadUserRateLimitGuard),
|
|
128
|
+
(0, common_1.UseInterceptors)((0, disk_file_interceptor_1.createDiskFileInterceptor)('file')),
|
|
129
|
+
(0, swagger_1.ApiConsumes)('multipart/form-data'),
|
|
130
|
+
(0, swagger_1.ApiOperation)({
|
|
131
|
+
summary: 'Upload or replace profile photo',
|
|
132
|
+
description: 'One-shot avatar flow: uploads `profile_photo` (or replaces the existing file) and binds ' +
|
|
133
|
+
'`photoFileId` / `photoUrl` on the profile. Default `user` role includes `profile:update` ' +
|
|
134
|
+
'and `files:*` for the multi-step `/files` alternative.',
|
|
135
|
+
}),
|
|
136
|
+
(0, swagger_1.ApiBody)({
|
|
137
|
+
schema: {
|
|
138
|
+
type: 'object',
|
|
139
|
+
required: ['file'],
|
|
140
|
+
properties: {
|
|
141
|
+
file: { type: 'string', format: 'binary' },
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
}),
|
|
145
|
+
(0, swagger_1.ApiOkResponse)({ description: 'Updated profile', type: user_profile_response_dto_1.UserProfileResponseDto }),
|
|
146
|
+
__param(0, (0, decorators_1.CurrentUser)()),
|
|
147
|
+
__param(1, (0, common_1.UploadedFile)()),
|
|
148
|
+
__metadata("design:type", Function),
|
|
149
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
150
|
+
__metadata("design:returntype", Promise)
|
|
151
|
+
], ProfileController.prototype, "uploadPhoto", null);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, common_1.Delete)('photo'),
|
|
154
|
+
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.UPDATE),
|
|
69
155
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
156
|
+
(0, swagger_1.ApiOperation)({
|
|
157
|
+
summary: 'Remove profile photo',
|
|
158
|
+
description: 'Deletes the avatar file (if any) and clears `photoFileId` / `photoUrl`.',
|
|
159
|
+
}),
|
|
160
|
+
(0, swagger_1.ApiOkResponse)({ description: 'Updated profile', type: user_profile_response_dto_1.UserProfileResponseDto }),
|
|
161
|
+
__param(0, (0, decorators_1.CurrentUser)()),
|
|
162
|
+
__metadata("design:type", Function),
|
|
163
|
+
__metadata("design:paramtypes", [Object]),
|
|
164
|
+
__metadata("design:returntype", Promise)
|
|
165
|
+
], ProfileController.prototype, "removePhoto", null);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, common_1.Post)('cover'),
|
|
70
168
|
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.UPDATE),
|
|
71
|
-
(0,
|
|
72
|
-
(0,
|
|
169
|
+
(0, common_1.UseGuards)(upload_ip_rate_limit_guard_1.UploadIpRateLimitGuard, upload_user_rate_limit_guard_1.UploadUserRateLimitGuard),
|
|
170
|
+
(0, common_1.UseInterceptors)((0, disk_file_interceptor_1.createDiskFileInterceptor)('file')),
|
|
171
|
+
(0, swagger_1.ApiConsumes)('multipart/form-data'),
|
|
172
|
+
(0, swagger_1.ApiOperation)({
|
|
173
|
+
summary: 'Upload or replace cover photo',
|
|
174
|
+
description: 'One-shot cover flow for category `cover_photo`. Binds `coverPhotoFileId` / `coverPhotoUrl`.',
|
|
175
|
+
}),
|
|
176
|
+
(0, swagger_1.ApiBody)({
|
|
177
|
+
schema: {
|
|
178
|
+
type: 'object',
|
|
179
|
+
required: ['file'],
|
|
180
|
+
properties: {
|
|
181
|
+
file: { type: 'string', format: 'binary' },
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
}),
|
|
185
|
+
(0, swagger_1.ApiOkResponse)({ description: 'Updated profile', type: user_profile_response_dto_1.UserProfileResponseDto }),
|
|
186
|
+
__param(0, (0, decorators_1.CurrentUser)()),
|
|
187
|
+
__param(1, (0, common_1.UploadedFile)()),
|
|
188
|
+
__metadata("design:type", Function),
|
|
189
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
190
|
+
__metadata("design:returntype", Promise)
|
|
191
|
+
], ProfileController.prototype, "uploadCover", null);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, common_1.Delete)('cover'),
|
|
194
|
+
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.UPDATE),
|
|
195
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
196
|
+
(0, swagger_1.ApiOperation)({
|
|
197
|
+
summary: 'Remove cover photo',
|
|
198
|
+
description: 'Deletes the cover file (if any) and clears `coverPhotoFileId` / `coverPhotoUrl`.',
|
|
199
|
+
}),
|
|
200
|
+
(0, swagger_1.ApiOkResponse)({ description: 'Updated profile', type: user_profile_response_dto_1.UserProfileResponseDto }),
|
|
73
201
|
__param(0, (0, decorators_1.CurrentUser)()),
|
|
74
202
|
__metadata("design:type", Function),
|
|
75
203
|
__metadata("design:paramtypes", [Object]),
|
|
76
204
|
__metadata("design:returntype", Promise)
|
|
77
|
-
], ProfileController.prototype, "
|
|
205
|
+
], ProfileController.prototype, "removeCover", null);
|
|
78
206
|
__decorate([
|
|
79
207
|
(0, common_1.Post)('change-phone'),
|
|
80
208
|
(0, decorators_1.RequirePermission)(profile_manifest_1.USER_PROFILE_PERMISSIONS.UPDATE),
|
|
81
209
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
82
210
|
(0, swagger_1.ApiBody)({ type: create_user_profile_dto_1.ChangePhoneDto }),
|
|
83
|
-
(0, swagger_1.ApiOperation)({
|
|
211
|
+
(0, swagger_1.ApiOperation)({
|
|
212
|
+
summary: 'Change phone number',
|
|
213
|
+
description: 'Requires SMS OTP for the new number (+ MFA step-up when enrolled). ' +
|
|
214
|
+
'Account deletion is only via POST /auth/account/delete-request + delete-confirm.',
|
|
215
|
+
}),
|
|
84
216
|
(0, swagger_1.ApiOkResponse)({ description: 'Phone number changed' }),
|
|
85
217
|
__param(0, (0, decorators_1.CurrentUser)()),
|
|
86
218
|
__param(1, (0, common_1.Body)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.controller.js","sourceRoot":"","sources":["../../../../src/modules/profile/controllers/profile.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"profile.controller.js","sourceRoot":"","sources":["../../../../src/modules/profile/controllers/profile.controller.ts"],"names":[],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AAA,wBAAW,GAAE,CAAA;IACb,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAiB,wCAAc;;0DAGtC;4BAjJW,iBAAiB;IAJ7B,IAAA,iBAAO,EAAC,SAAS,CAAC;IAClB,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,SAAS,CAAC;IACrB,IAAA,kBAAS,EAAC,yBAAY,EAAE,oCAAgB,CAAC;qCAES,qCAAmB;GADzD,iBAAiB,CAkJ7B"}
|
|
@@ -16,6 +16,7 @@ export declare class CreateUserProfileDto {
|
|
|
16
16
|
timezone?: string;
|
|
17
17
|
currencyCode?: string;
|
|
18
18
|
websiteUrl?: string;
|
|
19
|
+
/** Opt-in public username lookup. Defaults to false for new profiles. */
|
|
19
20
|
isPublic?: boolean;
|
|
20
21
|
publicMetadata?: Record<string, unknown>;
|
|
21
22
|
/**
|
|
@@ -30,6 +31,15 @@ export declare class UpdateUserProfileDto extends UpdateUserProfileDto_base {
|
|
|
30
31
|
export declare class ChangePhoneDto {
|
|
31
32
|
verificationId: string;
|
|
32
33
|
otp: string;
|
|
34
|
+
/** MFA step-up with purpose=change_phone. */
|
|
35
|
+
stepUpToken?: string;
|
|
36
|
+
/** Current-account password when MFA is off. */
|
|
37
|
+
password?: string;
|
|
38
|
+
/** Current-email/phone OTP for re-auth (not the new-phone OTP). */
|
|
39
|
+
reauthVerificationId?: string;
|
|
40
|
+
reauthOtp?: string;
|
|
41
|
+
provider?: string;
|
|
42
|
+
idToken?: string;
|
|
33
43
|
}
|
|
34
44
|
export {};
|
|
35
45
|
//# sourceMappingURL=create-user-profile.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-profile.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/profile/dto/create-user-profile.dto.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,oBAAoB;IAOhC,SAAS,CAAC,EAAE,MAAM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
47
47
|
// Public
|
|
48
48
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
49
49
|
websiteUrl;
|
|
50
|
+
/** Opt-in public username lookup. Defaults to false for new profiles. */
|
|
50
51
|
isPublic;
|
|
51
52
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
52
53
|
// Metadata
|
|
@@ -156,7 +157,9 @@ __decorate([
|
|
|
156
157
|
], CreateUserProfileDto.prototype, "websiteUrl", void 0);
|
|
157
158
|
__decorate([
|
|
158
159
|
(0, class_validator_1.IsOptional)(),
|
|
159
|
-
(0, class_validator_1.IsBoolean)()
|
|
160
|
+
(0, class_validator_1.IsBoolean)()
|
|
161
|
+
/** Opt-in public username lookup. Defaults to false for new profiles. */
|
|
162
|
+
,
|
|
160
163
|
__metadata("design:type", Boolean)
|
|
161
164
|
], CreateUserProfileDto.prototype, "isPublic", void 0);
|
|
162
165
|
__decorate([
|
|
@@ -182,6 +185,15 @@ __decorate([
|
|
|
182
185
|
class ChangePhoneDto {
|
|
183
186
|
verificationId;
|
|
184
187
|
otp;
|
|
188
|
+
/** MFA step-up with purpose=change_phone. */
|
|
189
|
+
stepUpToken;
|
|
190
|
+
/** Current-account password when MFA is off. */
|
|
191
|
+
password;
|
|
192
|
+
/** Current-email/phone OTP for re-auth (not the new-phone OTP). */
|
|
193
|
+
reauthVerificationId;
|
|
194
|
+
reauthOtp;
|
|
195
|
+
provider;
|
|
196
|
+
idToken;
|
|
185
197
|
}
|
|
186
198
|
exports.ChangePhoneDto = ChangePhoneDto;
|
|
187
199
|
__decorate([
|
|
@@ -192,4 +204,34 @@ __decorate([
|
|
|
192
204
|
(0, class_validator_1.Matches)(/^\d{6}$/, { message: 'OTP must be exactly 6 digits' }),
|
|
193
205
|
__metadata("design:type", String)
|
|
194
206
|
], ChangePhoneDto.prototype, "otp", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, class_validator_1.IsOptional)(),
|
|
209
|
+
(0, class_validator_1.IsString)(),
|
|
210
|
+
__metadata("design:type", String)
|
|
211
|
+
], ChangePhoneDto.prototype, "stepUpToken", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, class_validator_1.IsOptional)(),
|
|
214
|
+
(0, class_validator_1.IsString)(),
|
|
215
|
+
__metadata("design:type", String)
|
|
216
|
+
], ChangePhoneDto.prototype, "password", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, class_validator_1.IsOptional)(),
|
|
219
|
+
(0, class_validator_1.IsString)(),
|
|
220
|
+
__metadata("design:type", String)
|
|
221
|
+
], ChangePhoneDto.prototype, "reauthVerificationId", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, class_validator_1.IsOptional)(),
|
|
224
|
+
(0, class_validator_1.IsString)(),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], ChangePhoneDto.prototype, "reauthOtp", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, class_validator_1.IsOptional)(),
|
|
229
|
+
(0, class_validator_1.IsString)(),
|
|
230
|
+
__metadata("design:type", String)
|
|
231
|
+
], ChangePhoneDto.prototype, "provider", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, class_validator_1.IsOptional)(),
|
|
234
|
+
(0, class_validator_1.IsString)(),
|
|
235
|
+
__metadata("design:type", String)
|
|
236
|
+
], ChangePhoneDto.prototype, "idToken", void 0);
|
|
195
237
|
//# sourceMappingURL=create-user-profile.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-profile.dto.js","sourceRoot":"","sources":["../../../../src/modules/profile/dto/create-user-profile.dto.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;;;;;;;;;;AAE7B,6CAA8C;AAC9C,yDAAyC;AACzC,qDAayB;AAEzB,+CAA2C;AAE3C,MAAa,oBAAoB;IAChC,gFAAgF;IAChF,gBAAgB;IAChB,gFAAgF;IAIhF,SAAS,CAAU;IAKnB,QAAQ,CAAU;IAKlB,WAAW,CAAU;IAQrB,QAAQ,CAAU;IAIlB,WAAW,CAAiB;IAI5B,gBAAgB,CAAiB;IAKjC,GAAG,CAAU;IAEb,gFAAgF;IAChF,WAAW;IACX,gFAAgF;IAIhF,WAAW,CAAQ;IAKnB,MAAM,CAAU;IAKhB,UAAU,CAAU;IAMpB,MAAM,CAAY;IAElB,gFAAgF;IAChF,UAAU;IACV,gFAAgF;IAKhF,OAAO,CAAc;IAErB,gFAAgF;IAChF,eAAe;IACf,gFAAgF;IAKhF,YAAY,CAAU;IAKtB,QAAQ,CAAU;IAKlB,YAAY,CAAU;IAEtB,gFAAgF;IAChF,SAAS;IACT,gFAAgF;IAIhF,UAAU,CAAU;
|
|
1
|
+
{"version":3,"file":"create-user-profile.dto.js","sourceRoot":"","sources":["../../../../src/modules/profile/dto/create-user-profile.dto.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;;;;;;;;;;AAE7B,6CAA8C;AAC9C,yDAAyC;AACzC,qDAayB;AAEzB,+CAA2C;AAE3C,MAAa,oBAAoB;IAChC,gFAAgF;IAChF,gBAAgB;IAChB,gFAAgF;IAIhF,SAAS,CAAU;IAKnB,QAAQ,CAAU;IAKlB,WAAW,CAAU;IAQrB,QAAQ,CAAU;IAIlB,WAAW,CAAiB;IAI5B,gBAAgB,CAAiB;IAKjC,GAAG,CAAU;IAEb,gFAAgF;IAChF,WAAW;IACX,gFAAgF;IAIhF,WAAW,CAAQ;IAKnB,MAAM,CAAU;IAKhB,UAAU,CAAU;IAMpB,MAAM,CAAY;IAElB,gFAAgF;IAChF,UAAU;IACV,gFAAgF;IAKhF,OAAO,CAAc;IAErB,gFAAgF;IAChF,eAAe;IACf,gFAAgF;IAKhF,YAAY,CAAU;IAKtB,QAAQ,CAAU;IAKlB,YAAY,CAAU;IAEtB,gFAAgF;IAChF,SAAS;IACT,gFAAgF;IAIhF,UAAU,CAAU;IAKpB,AADA,yEAAyE;IACzE,QAAQ,CAAW;IAEnB,gFAAgF;IAChF,WAAW;IACX,gFAAgF;IAIhF,cAAc,CA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AAC,SAAS,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;;2CACnD;AAKb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAKrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACO;AAKlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACmB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACM"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { UserProfile } from '../entities/user-profiles.entity';
|
|
2
|
+
/**
|
|
3
|
+
* Public-safe profile projection for username lookup.
|
|
4
|
+
* Omits private contact fields, address, DOB, and file IDs.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PublicUserProfileDto {
|
|
7
|
+
userId: string;
|
|
8
|
+
username?: string;
|
|
9
|
+
displayName?: string;
|
|
10
|
+
firstName?: string;
|
|
11
|
+
lastName?: string;
|
|
12
|
+
fullName?: string;
|
|
13
|
+
photoUrl?: string | null;
|
|
14
|
+
coverPhotoUrl?: string | null;
|
|
15
|
+
bio?: string;
|
|
16
|
+
occupation?: string;
|
|
17
|
+
skills?: string[];
|
|
18
|
+
websiteUrl?: string;
|
|
19
|
+
languageCode?: string;
|
|
20
|
+
isVerified: boolean;
|
|
21
|
+
publicMetadata?: Record<string, unknown>;
|
|
22
|
+
static fromProfile(profile: UserProfile): PublicUserProfileDto;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=public-user-profile.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-user-profile.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/profile/dto/public-user-profile.dto.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE;;;GAGG;AACH,qBAAa,oBAAoB;IAEhC,MAAM,EAAG,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG9B,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,UAAU,EAAG,OAAO,CAAC;IAGrB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEzC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,oBAAoB;CAmB9D"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.PublicUserProfileDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
/**
|
|
15
|
+
* Public-safe profile projection for username lookup.
|
|
16
|
+
* Omits private contact fields, address, DOB, and file IDs.
|
|
17
|
+
*/
|
|
18
|
+
class PublicUserProfileDto {
|
|
19
|
+
userId;
|
|
20
|
+
username;
|
|
21
|
+
displayName;
|
|
22
|
+
firstName;
|
|
23
|
+
lastName;
|
|
24
|
+
fullName;
|
|
25
|
+
photoUrl;
|
|
26
|
+
coverPhotoUrl;
|
|
27
|
+
bio;
|
|
28
|
+
occupation;
|
|
29
|
+
skills;
|
|
30
|
+
websiteUrl;
|
|
31
|
+
languageCode;
|
|
32
|
+
isVerified;
|
|
33
|
+
publicMetadata;
|
|
34
|
+
static fromProfile(profile) {
|
|
35
|
+
return {
|
|
36
|
+
userId: profile.userId,
|
|
37
|
+
username: profile.username ?? undefined,
|
|
38
|
+
displayName: profile.displayName ?? undefined,
|
|
39
|
+
firstName: profile.firstName ?? undefined,
|
|
40
|
+
lastName: profile.lastName ?? undefined,
|
|
41
|
+
fullName: profile.fullName || undefined,
|
|
42
|
+
photoUrl: profile.photoUrl ?? null,
|
|
43
|
+
coverPhotoUrl: profile.coverPhotoUrl ?? null,
|
|
44
|
+
bio: profile.bio ?? undefined,
|
|
45
|
+
occupation: profile.occupation ?? undefined,
|
|
46
|
+
skills: profile.skills ?? undefined,
|
|
47
|
+
websiteUrl: profile.websiteUrl ?? undefined,
|
|
48
|
+
languageCode: profile.languageCode ?? undefined,
|
|
49
|
+
isVerified: profile.isVerified,
|
|
50
|
+
publicMetadata: profile.publicMetadata ?? undefined,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.PublicUserProfileDto = PublicUserProfileDto;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({ format: 'uuid' }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], PublicUserProfileDto.prototype, "userId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PublicUserProfileDto.prototype, "username", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], PublicUserProfileDto.prototype, "displayName", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], PublicUserProfileDto.prototype, "firstName", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], PublicUserProfileDto.prototype, "lastName", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], PublicUserProfileDto.prototype, "fullName", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], PublicUserProfileDto.prototype, "photoUrl", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], PublicUserProfileDto.prototype, "coverPhotoUrl", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], PublicUserProfileDto.prototype, "bio", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], PublicUserProfileDto.prototype, "occupation", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [String] }),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], PublicUserProfileDto.prototype, "skills", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], PublicUserProfileDto.prototype, "websiteUrl", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], PublicUserProfileDto.prototype, "languageCode", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)(),
|
|
109
|
+
__metadata("design:type", Boolean)
|
|
110
|
+
], PublicUserProfileDto.prototype, "isVerified", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiPropertyOptional)({ type: Object }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], PublicUserProfileDto.prototype, "publicMetadata", void 0);
|
|
115
|
+
//# sourceMappingURL=public-user-profile.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-user-profile.dto.js","sourceRoot":"","sources":["../../../../src/modules/profile/dto/public-user-profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AAInE;;;GAGG;AACH,MAAa,oBAAoB;IAEhC,MAAM,CAAU;IAGhB,QAAQ,CAAU;IAGlB,WAAW,CAAU;IAGrB,SAAS,CAAU;IAGnB,QAAQ,CAAU;IAGlB,QAAQ,CAAU;IAGlB,QAAQ,CAAiB;IAGzB,aAAa,CAAiB;IAG9B,GAAG,CAAU;IAGb,UAAU,CAAU;IAGpB,MAAM,CAAY;IAG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;2DACQ;AAG9B;IADC,IAAA,6BAAmB,GAAE;;iDACT;AAGb;IADC,IAAA,6BAAmB,GAAE;;wDACF;AAGpB;IADC,IAAA,6BAAmB,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;oDACtB;AAGlB;IADC,IAAA,6BAAmB,GAAE;;wDACF;AAGpB;IADC,IAAA,6BAAmB,GAAE;;0DACA;AAGtB;IADC,IAAA,qBAAW,GAAE;;wDACO;AAGrB;IADC,IAAA,6BAAmB,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACG"}
|
|
@@ -8,7 +8,11 @@ export declare class UserProfileResponseDto {
|
|
|
8
8
|
username?: string;
|
|
9
9
|
fullName?: string;
|
|
10
10
|
photoFileId?: string | null;
|
|
11
|
+
/** Public CDN URL (denormalized from the profile photo file). */
|
|
12
|
+
photoUrl?: string | null;
|
|
11
13
|
coverPhotoFileId?: string | null;
|
|
14
|
+
/** Public CDN URL (denormalized from the cover photo file). */
|
|
15
|
+
coverPhotoUrl?: string | null;
|
|
12
16
|
bio?: string;
|
|
13
17
|
dateOfBirth?: Date;
|
|
14
18
|
gender?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profile-response.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/profile/dto/user-profile-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,qBAAa,sBAAsB;IAClC,EAAE,EAAG,MAAM,CAAC;IAEZ,MAAM,EAAG,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,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zB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,OAAO,CAAC,EAAE,UAAU,CAAC;IAErB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAG,OAAO,CAAC;IAEnB,UAAU,EAAG,OAAO,CAAC;IAErB,cAAc,EAAG,MAAM,CAAC;IAExB,kBAAkB,EAAG,OAAO,CAAC;IAE7B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEzC,SAAS,EAAG,IAAI,CAAC;IAEjB,SAAS,EAAG,IAAI,CAAC;CACjB"}
|
|
@@ -10,7 +10,11 @@ class UserProfileResponseDto {
|
|
|
10
10
|
username;
|
|
11
11
|
fullName;
|
|
12
12
|
photoFileId;
|
|
13
|
+
/** Public CDN URL (denormalized from the profile photo file). */
|
|
14
|
+
photoUrl;
|
|
13
15
|
coverPhotoFileId;
|
|
16
|
+
/** Public CDN URL (denormalized from the cover photo file). */
|
|
17
|
+
coverPhotoUrl;
|
|
14
18
|
bio;
|
|
15
19
|
dateOfBirth;
|
|
16
20
|
gender;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profile-response.dto.js","sourceRoot":"","sources":["../../../../src/modules/profile/dto/user-profile-response.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IAClC,EAAE,CAAU;IAEZ,M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