@hed-hog/core 0.0.386 → 0.0.390
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/README.md +12 -11
- package/dist/access-log/access-log.interceptor.d.ts.map +1 -1
- package/dist/access-log/access-log.interceptor.js +4 -2
- package/dist/access-log/access-log.interceptor.js.map +1 -1
- package/dist/ai/ai-attachment.fragments.d.ts +23 -0
- package/dist/ai/ai-attachment.fragments.d.ts.map +1 -0
- package/dist/ai/ai-attachment.fragments.js +34 -0
- package/dist/ai/ai-attachment.fragments.js.map +1 -0
- package/dist/ai/ai.controller.d.ts +7 -16
- package/dist/ai/ai.controller.d.ts.map +1 -1
- package/dist/ai/ai.prompts.d.ts +16 -0
- package/dist/ai/ai.prompts.d.ts.map +1 -0
- package/dist/ai/ai.prompts.js +37 -0
- package/dist/ai/ai.prompts.js.map +1 -0
- package/dist/ai/ai.service.d.ts +63 -12
- package/dist/ai/ai.service.d.ts.map +1 -1
- package/dist/ai/ai.service.js +215 -88
- package/dist/ai/ai.service.js.map +1 -1
- package/dist/ai/dto/chat.dto.d.ts +4 -1
- package/dist/ai/dto/chat.dto.d.ts.map +1 -1
- package/dist/ai/dto/chat.dto.js +23 -1
- package/dist/ai/dto/chat.dto.js.map +1 -1
- package/dist/ai/dto/create-agent.dto.d.ts +1 -1
- package/dist/ai/dto/create-agent.dto.d.ts.map +1 -1
- package/dist/ai/dto/create-agent.dto.js +1 -1
- package/dist/ai/dto/create-agent.dto.js.map +1 -1
- package/dist/ai/dto/update-agent.dto.d.ts +1 -1
- package/dist/ai/dto/update-agent.dto.d.ts.map +1 -1
- package/dist/ai/dto/update-agent.dto.js +1 -1
- package/dist/ai/dto/update-agent.dto.js.map +1 -1
- package/dist/ai-instruction/ai-instruction.controller.d.ts +61 -7
- package/dist/ai-instruction/ai-instruction.controller.d.ts.map +1 -1
- package/dist/ai-instruction/ai-instruction.controller.js +63 -20
- package/dist/ai-instruction/ai-instruction.controller.js.map +1 -1
- package/dist/ai-instruction/ai-instruction.module.d.ts.map +1 -1
- package/dist/ai-instruction/ai-instruction.module.js +13 -2
- package/dist/ai-instruction/ai-instruction.module.js.map +1 -1
- package/dist/ai-instruction/ai-instruction.service.d.ts +131 -6
- package/dist/ai-instruction/ai-instruction.service.d.ts.map +1 -1
- package/dist/ai-instruction/ai-instruction.service.js +533 -60
- package/dist/ai-instruction/ai-instruction.service.js.map +1 -1
- package/dist/ai-instruction/ai-prompt-builder.service.d.ts +8 -0
- package/dist/ai-instruction/ai-prompt-builder.service.d.ts.map +1 -1
- package/dist/ai-instruction/ai-prompt-builder.service.js +10 -1
- package/dist/ai-instruction/ai-prompt-builder.service.js.map +1 -1
- package/dist/ai-instruction/ai-prompt-registry.d.ts +45 -0
- package/dist/ai-instruction/ai-prompt-registry.d.ts.map +1 -0
- package/dist/ai-instruction/ai-prompt-registry.js +49 -0
- package/dist/ai-instruction/ai-prompt-registry.js.map +1 -0
- package/dist/ai-instruction/ai-prompt-resolver.service.d.ts +89 -0
- package/dist/ai-instruction/ai-prompt-resolver.service.d.ts.map +1 -0
- package/dist/ai-instruction/ai-prompt-resolver.service.js +222 -0
- package/dist/ai-instruction/ai-prompt-resolver.service.js.map +1 -0
- package/dist/ai-instruction/ai-prompt-template.util.d.ts +70 -0
- package/dist/ai-instruction/ai-prompt-template.util.d.ts.map +1 -0
- package/dist/ai-instruction/ai-prompt-template.util.js +154 -0
- package/dist/ai-instruction/ai-prompt-template.util.js.map +1 -0
- package/dist/ai-instruction/dto/create-ai-instruction.dto.d.ts +5 -0
- package/dist/ai-instruction/dto/create-ai-instruction.dto.d.ts.map +1 -1
- package/dist/ai-instruction/dto/create-ai-instruction.dto.js +27 -1
- package/dist/ai-instruction/dto/create-ai-instruction.dto.js.map +1 -1
- package/dist/ai-instruction/dto/preview-ai-instruction.dto.d.ts +14 -0
- package/dist/ai-instruction/dto/preview-ai-instruction.dto.d.ts.map +1 -0
- package/dist/ai-instruction/dto/preview-ai-instruction.dto.js +42 -0
- package/dist/ai-instruction/dto/preview-ai-instruction.dto.js.map +1 -0
- package/dist/ai-instruction/dto/update-ai-instruction.dto.d.ts +11 -0
- package/dist/ai-instruction/dto/update-ai-instruction.dto.d.ts.map +1 -1
- package/dist/ai-instruction/dto/update-ai-instruction.dto.js +34 -0
- package/dist/ai-instruction/dto/update-ai-instruction.dto.js.map +1 -1
- package/dist/ai-instruction/types/ai-instruction.types.d.ts +13 -1
- package/dist/ai-instruction/types/ai-instruction.types.d.ts.map +1 -1
- package/dist/ai-instruction/types/ai-instruction.types.js +10 -0
- package/dist/ai-instruction/types/ai-instruction.types.js.map +1 -1
- package/dist/auth/auth.controller.d.ts +26 -10
- package/dist/auth/auth.controller.d.ts.map +1 -1
- package/dist/auth/auth.controller.js +49 -21
- package/dist/auth/auth.controller.js.map +1 -1
- package/dist/auth/auth.service.d.ts +35 -9
- package/dist/auth/auth.service.d.ts.map +1 -1
- package/dist/auth/auth.service.js +78 -29
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/captcha/captcha.module.d.ts +3 -0
- package/dist/captcha/captcha.module.d.ts.map +1 -0
- package/dist/captcha/captcha.module.js +23 -0
- package/dist/captcha/captcha.module.js.map +1 -0
- package/dist/captcha/captcha.service.d.ts +38 -0
- package/dist/captcha/captcha.service.d.ts.map +1 -0
- package/dist/captcha/captcha.service.js +144 -0
- package/dist/captcha/captcha.service.js.map +1 -0
- package/dist/challenge/challenge.service.d.ts +16 -7
- package/dist/challenge/challenge.service.d.ts.map +1 -1
- package/dist/challenge/challenge.service.js +64 -16
- package/dist/challenge/challenge.service.js.map +1 -1
- package/dist/core.module.d.ts +3 -1
- package/dist/core.module.d.ts.map +1 -1
- package/dist/core.module.js +29 -2
- package/dist/core.module.js.map +1 -1
- package/dist/dashboard/dashboard/dashboard.controller.d.ts +15 -15
- package/dist/dashboard/dashboard/dashboard.service.d.ts +15 -15
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +6 -6
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +6 -6
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +20 -20
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +20 -20
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +1 -1
- package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +13 -13
- package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +13 -13
- package/dist/file/file.service.d.ts +6 -0
- package/dist/file/file.service.d.ts.map +1 -1
- package/dist/file/file.service.js +44 -4
- package/dist/file/file.service.js.map +1 -1
- package/dist/incident/incident-notifier.service.d.ts +36 -0
- package/dist/incident/incident-notifier.service.d.ts.map +1 -0
- package/dist/incident/incident-notifier.service.js +208 -0
- package/dist/incident/incident-notifier.service.js.map +1 -0
- package/dist/incident/incident.controller.d.ts +23 -0
- package/dist/incident/incident.controller.d.ts.map +1 -0
- package/dist/incident/incident.controller.js +75 -0
- package/dist/incident/incident.controller.js.map +1 -0
- package/dist/incident/incident.module.d.ts +7 -0
- package/dist/incident/incident.module.d.ts.map +1 -0
- package/dist/incident/incident.module.js +32 -0
- package/dist/incident/incident.module.js.map +1 -0
- package/dist/incident/incident.service.d.ts +72 -0
- package/dist/incident/incident.service.d.ts.map +1 -0
- package/dist/incident/incident.service.js +184 -0
- package/dist/incident/incident.service.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/integration-profile/dto/test.dto.d.ts +13 -0
- package/dist/integration-profile/dto/test.dto.d.ts.map +1 -0
- package/dist/integration-profile/dto/test.dto.js +26 -0
- package/dist/integration-profile/dto/test.dto.js.map +1 -0
- package/dist/integration-profile/integration-profile.controller.d.ts +12 -1
- package/dist/integration-profile/integration-profile.controller.d.ts.map +1 -1
- package/dist/integration-profile/integration-profile.controller.js +9 -1
- package/dist/integration-profile/integration-profile.controller.js.map +1 -1
- package/dist/integration-profile/integration-profile.module.d.ts +6 -1
- package/dist/integration-profile/integration-profile.module.d.ts.map +1 -1
- package/dist/integration-profile/integration-profile.module.js +26 -3
- package/dist/integration-profile/integration-profile.module.js.map +1 -1
- package/dist/integration-profile/integration-profile.secrets.d.ts.map +1 -1
- package/dist/integration-profile/integration-profile.secrets.js +12 -2
- package/dist/integration-profile/integration-profile.secrets.js.map +1 -1
- package/dist/integration-profile/integration-profile.service.d.ts +28 -2
- package/dist/integration-profile/integration-profile.service.d.ts.map +1 -1
- package/dist/integration-profile/integration-profile.service.js +105 -31
- package/dist/integration-profile/integration-profile.service.js.map +1 -1
- package/dist/integration-profile/integration-profile.utils.d.ts +31 -1
- package/dist/integration-profile/integration-profile.utils.d.ts.map +1 -1
- package/dist/integration-profile/integration-profile.utils.js +35 -4
- package/dist/integration-profile/integration-profile.utils.js.map +1 -1
- package/dist/integration-profile/testers/ai.testers.d.ts +3 -0
- package/dist/integration-profile/testers/ai.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/ai.testers.js +125 -0
- package/dist/integration-profile/testers/ai.testers.js.map +1 -0
- package/dist/integration-profile/testers/captcha.testers.d.ts +3 -0
- package/dist/integration-profile/testers/captcha.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/captcha.testers.js +121 -0
- package/dist/integration-profile/testers/captcha.testers.js.map +1 -0
- package/dist/integration-profile/testers/email.testers.d.ts +3 -0
- package/dist/integration-profile/testers/email.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/email.testers.js +128 -0
- package/dist/integration-profile/testers/email.testers.js.map +1 -0
- package/dist/integration-profile/testers/http-probe.d.ts +57 -0
- package/dist/integration-profile/testers/http-probe.d.ts.map +1 -0
- package/dist/integration-profile/testers/http-probe.js +140 -0
- package/dist/integration-profile/testers/http-probe.js.map +1 -0
- package/dist/integration-profile/testers/index.d.ts +12 -0
- package/dist/integration-profile/testers/index.d.ts.map +1 -0
- package/dist/integration-profile/testers/index.js +45 -0
- package/dist/integration-profile/testers/index.js.map +1 -0
- package/dist/integration-profile/testers/infrastructure.testers.d.ts +3 -0
- package/dist/integration-profile/testers/infrastructure.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/infrastructure.testers.js +105 -0
- package/dist/integration-profile/testers/infrastructure.testers.js.map +1 -0
- package/dist/integration-profile/testers/integration-tester.registry.d.ts +17 -0
- package/dist/integration-profile/testers/integration-tester.registry.d.ts.map +1 -0
- package/dist/integration-profile/testers/integration-tester.registry.js +52 -0
- package/dist/integration-profile/testers/integration-tester.registry.js.map +1 -0
- package/dist/integration-profile/testers/integration-tester.types.d.ts +55 -0
- package/dist/integration-profile/testers/integration-tester.types.d.ts.map +1 -0
- package/dist/integration-profile/testers/integration-tester.types.js +16 -0
- package/dist/integration-profile/testers/integration-tester.types.js.map +1 -0
- package/dist/integration-profile/testers/messaging.testers.d.ts +3 -0
- package/dist/integration-profile/testers/messaging.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/messaging.testers.js +70 -0
- package/dist/integration-profile/testers/messaging.testers.js.map +1 -0
- package/dist/integration-profile/testers/oauth.testers.d.ts +3 -0
- package/dist/integration-profile/testers/oauth.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/oauth.testers.js +285 -0
- package/dist/integration-profile/testers/oauth.testers.js.map +1 -0
- package/dist/integration-profile/testers/payment.testers.d.ts +3 -0
- package/dist/integration-profile/testers/payment.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/payment.testers.js +169 -0
- package/dist/integration-profile/testers/payment.testers.js.map +1 -0
- package/dist/integration-profile/testers/storage.testers.d.ts +3 -0
- package/dist/integration-profile/testers/storage.testers.d.ts.map +1 -0
- package/dist/integration-profile/testers/storage.testers.js +208 -0
- package/dist/integration-profile/testers/storage.testers.js.map +1 -0
- package/dist/language/en.json +4 -2
- package/dist/language/pt.json +4 -2
- package/dist/leaked-password/leaked-password.controller.d.ts +24 -0
- package/dist/leaked-password/leaked-password.controller.d.ts.map +1 -0
- package/dist/leaked-password/leaked-password.controller.js +78 -0
- package/dist/leaked-password/leaked-password.controller.js.map +1 -0
- package/dist/leaked-password/leaked-password.module.d.ts +8 -0
- package/dist/leaked-password/leaked-password.module.d.ts.map +1 -0
- package/dist/leaked-password/leaked-password.module.js +31 -0
- package/dist/leaked-password/leaked-password.module.js.map +1 -0
- package/dist/leaked-password/leaked-password.service.d.ts +64 -0
- package/dist/leaked-password/leaked-password.service.d.ts.map +1 -0
- package/dist/leaked-password/leaked-password.service.js +218 -0
- package/dist/leaked-password/leaked-password.service.js.map +1 -0
- package/dist/locale/locale.controller.d.ts +1 -1
- package/dist/locale/locale.service.d.ts +1 -1
- package/dist/mail/dto/preview.dto.d.ts +18 -0
- package/dist/mail/dto/preview.dto.d.ts.map +1 -0
- package/dist/mail/dto/preview.dto.js +66 -0
- package/dist/mail/dto/preview.dto.js.map +1 -0
- package/dist/mail/dto/send.dto.d.ts +7 -0
- package/dist/mail/dto/send.dto.d.ts.map +1 -1
- package/dist/mail/dto/send.dto.js +10 -0
- package/dist/mail/dto/send.dto.js.map +1 -1
- package/dist/mail/mail.controller.d.ts +4 -0
- package/dist/mail/mail.controller.d.ts.map +1 -1
- package/dist/mail/mail.controller.js +16 -2
- package/dist/mail/mail.controller.js.map +1 -1
- package/dist/mail/mail.service.d.ts +23 -2
- package/dist/mail/mail.service.d.ts.map +1 -1
- package/dist/mail/mail.service.js +102 -13
- package/dist/mail/mail.service.js.map +1 -1
- package/dist/mail-layout/dto/update.dto.d.ts +17 -0
- package/dist/mail-layout/dto/update.dto.d.ts.map +1 -0
- package/dist/mail-layout/dto/update.dto.js +27 -0
- package/dist/mail-layout/dto/update.dto.js.map +1 -0
- package/dist/mail-layout/mail-layout.controller.d.ts +15 -0
- package/dist/mail-layout/mail-layout.controller.d.ts.map +1 -0
- package/dist/mail-layout/mail-layout.controller.js +71 -0
- package/dist/mail-layout/mail-layout.controller.js.map +1 -0
- package/dist/mail-layout/mail-layout.module.d.ts +3 -0
- package/dist/mail-layout/mail-layout.module.d.ts.map +1 -0
- package/dist/mail-layout/mail-layout.module.js +35 -0
- package/dist/mail-layout/mail-layout.module.js.map +1 -0
- package/dist/mail-layout/mail-layout.service.d.ts +27 -0
- package/dist/mail-layout/mail-layout.service.d.ts.map +1 -0
- package/dist/mail-layout/mail-layout.service.js +80 -0
- package/dist/mail-layout/mail-layout.service.js.map +1 -0
- package/dist/mcp-chat/mcp-chat.controller.d.ts +2 -2
- package/dist/mcp-chat/mcp-chat.service.d.ts +24 -2
- package/dist/mcp-chat/mcp-chat.service.d.ts.map +1 -1
- package/dist/mcp-chat/mcp-chat.service.js +80 -24
- package/dist/mcp-chat/mcp-chat.service.js.map +1 -1
- package/dist/menu/menu.controller.d.ts +3 -3
- package/dist/menu/menu.service.d.ts +3 -3
- package/dist/notification/notification.controller.d.ts +12 -12
- package/dist/notification/notification.service.d.ts +12 -12
- package/dist/oauth/oauth-token-broker.service.d.ts +72 -0
- package/dist/oauth/oauth-token-broker.service.d.ts.map +1 -0
- package/dist/oauth/oauth-token-broker.service.js +258 -0
- package/dist/oauth/oauth-token-broker.service.js.map +1 -0
- package/dist/oauth/oauth.module.d.ts.map +1 -1
- package/dist/oauth/oauth.module.js +3 -1
- package/dist/oauth/oauth.module.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +2 -0
- package/dist/oauth/oauth.service.d.ts.map +1 -1
- package/dist/oauth/oauth.service.js +6 -3
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/pdf/pdf.service.d.ts +8 -0
- package/dist/pdf/pdf.service.d.ts.map +1 -1
- package/dist/pdf/pdf.service.js +52 -0
- package/dist/pdf/pdf.service.js.map +1 -1
- package/dist/presence/presence.controller.d.ts +16 -0
- package/dist/presence/presence.controller.d.ts.map +1 -0
- package/dist/presence/presence.controller.js +60 -0
- package/dist/presence/presence.controller.js.map +1 -0
- package/dist/presence/presence.listener.d.ts +29 -0
- package/dist/presence/presence.listener.d.ts.map +1 -0
- package/dist/presence/presence.listener.js +82 -0
- package/dist/presence/presence.listener.js.map +1 -0
- package/dist/presence/presence.module.d.ts +3 -0
- package/dist/presence/presence.module.d.ts.map +1 -0
- package/dist/presence/presence.module.js +32 -0
- package/dist/presence/presence.module.js.map +1 -0
- package/dist/presence/presence.service.d.ts +42 -0
- package/dist/presence/presence.service.d.ts.map +1 -0
- package/dist/presence/presence.service.js +147 -0
- package/dist/presence/presence.service.js.map +1 -0
- package/dist/profile/dto/delete-account.dto.d.ts +8 -0
- package/dist/profile/dto/delete-account.dto.d.ts.map +1 -0
- package/dist/profile/dto/delete-account.dto.js +22 -0
- package/dist/profile/dto/delete-account.dto.js.map +1 -0
- package/dist/profile/events/profile-account-deleted.event.d.ts +12 -0
- package/dist/profile/events/profile-account-deleted.event.d.ts.map +1 -0
- package/dist/profile/events/profile-account-deleted.event.js +17 -0
- package/dist/profile/events/profile-account-deleted.event.js.map +1 -0
- package/dist/profile/profile.controller.d.ts +24 -17
- package/dist/profile/profile.controller.d.ts.map +1 -1
- package/dist/profile/profile.controller.js +75 -46
- package/dist/profile/profile.controller.js.map +1 -1
- package/dist/profile/profile.service.d.ts +34 -21
- package/dist/profile/profile.service.d.ts.map +1 -1
- package/dist/profile/profile.service.js +113 -37
- package/dist/profile/profile.service.js.map +1 -1
- package/dist/realtime/realtime.gateway.d.ts +48 -0
- package/dist/realtime/realtime.gateway.d.ts.map +1 -0
- package/dist/realtime/realtime.gateway.js +156 -0
- package/dist/realtime/realtime.gateway.js.map +1 -0
- package/dist/realtime/realtime.module.d.ts +8 -0
- package/dist/realtime/realtime.module.d.ts.map +1 -0
- package/dist/realtime/realtime.module.js +29 -0
- package/dist/realtime/realtime.module.js.map +1 -0
- package/dist/realtime/realtime.service.d.ts +51 -0
- package/dist/realtime/realtime.service.d.ts.map +1 -0
- package/dist/realtime/realtime.service.js +177 -0
- package/dist/realtime/realtime.service.js.map +1 -0
- package/dist/redis/redis-pubsub.d.ts +27 -0
- package/dist/redis/redis-pubsub.d.ts.map +1 -0
- package/dist/redis/redis-pubsub.js +140 -0
- package/dist/redis/redis-pubsub.js.map +1 -0
- package/dist/role/role.controller.d.ts +3 -3
- package/dist/role/role.service.d.ts +3 -3
- package/dist/setting/dto/create.dto.d.ts.map +1 -1
- package/dist/setting/dto/create.dto.js +9 -2
- package/dist/setting/dto/create.dto.js.map +1 -1
- package/dist/setting/setting.controller.d.ts +5 -5
- package/dist/setting/setting.service.d.ts +8 -5
- package/dist/setting/setting.service.d.ts.map +1 -1
- package/dist/setting/setting.service.js +25 -1
- package/dist/setting/setting.service.js.map +1 -1
- package/dist/user/dto/create-with-email-and-password.dto.d.ts +2 -0
- package/dist/user/dto/create-with-email-and-password.dto.d.ts.map +1 -1
- package/dist/user/dto/create-with-email-and-password.dto.js +5 -0
- package/dist/user/dto/create-with-email-and-password.dto.js.map +1 -1
- package/dist/user/dto/query-user-mail-list.dto.d.ts +5 -0
- package/dist/user/dto/query-user-mail-list.dto.d.ts.map +1 -0
- package/dist/user/dto/query-user-mail-list.dto.js +25 -0
- package/dist/user/dto/query-user-mail-list.dto.js.map +1 -0
- package/dist/user/user-credential.util.d.ts +19 -0
- package/dist/user/user-credential.util.d.ts.map +1 -0
- package/dist/user/user-credential.util.js +32 -0
- package/dist/user/user-credential.util.js.map +1 -0
- package/dist/user/user.controller.d.ts +17 -5
- package/dist/user/user.controller.d.ts.map +1 -1
- package/dist/user/user.controller.js +18 -3
- package/dist/user/user.controller.js.map +1 -1
- package/dist/user/user.service.d.ts +28 -6
- package/dist/user/user.service.d.ts.map +1 -1
- package/dist/user/user.service.js +204 -13
- package/dist/user/user.service.js.map +1 -1
- package/dist/validators/is-strong-password-with-settings.validator.d.ts.map +1 -1
- package/dist/validators/is-strong-password-with-settings.validator.js +11 -0
- package/dist/validators/is-strong-password-with-settings.validator.js.map +1 -1
- package/dist/validators/service-locator.d.ts +9 -0
- package/dist/validators/service-locator.d.ts.map +1 -1
- package/dist/validators/service-locator.js +12 -0
- package/dist/validators/service-locator.js.map +1 -1
- package/dist/webhook-integration/webhook-integration.controller.d.ts +5 -8
- package/dist/webhook-integration/webhook-integration.controller.d.ts.map +1 -1
- package/dist/webhook-integration/webhook-integration.controller.js +31 -8
- package/dist/webhook-integration/webhook-integration.controller.js.map +1 -1
- package/dist/webhook-integration/webhook-integration.module.d.ts.map +1 -1
- package/dist/webhook-integration/webhook-integration.module.js +5 -0
- package/dist/webhook-integration/webhook-integration.module.js.map +1 -1
- package/dist/webhook-integration/webhook-integration.service.d.ts +33 -1
- package/dist/webhook-integration/webhook-integration.service.d.ts.map +1 -1
- package/dist/webhook-integration/webhook-integration.service.js +109 -4
- package/dist/webhook-integration/webhook-integration.service.js.map +1 -1
- package/dist/webhook-integration/webhook-protocol.registry.d.ts +63 -0
- package/dist/webhook-integration/webhook-protocol.registry.d.ts.map +1 -0
- package/dist/webhook-integration/webhook-protocol.registry.js +51 -0
- package/dist/webhook-integration/webhook-protocol.registry.js.map +1 -0
- package/dist/whatsapp-sender/whatsapp-sender.module.d.ts +3 -0
- package/dist/whatsapp-sender/whatsapp-sender.module.d.ts.map +1 -0
- package/dist/whatsapp-sender/whatsapp-sender.module.js +23 -0
- package/dist/whatsapp-sender/whatsapp-sender.module.js.map +1 -0
- package/dist/whatsapp-sender/whatsapp-sender.service.d.ts +50 -0
- package/dist/whatsapp-sender/whatsapp-sender.service.d.ts.map +1 -0
- package/dist/whatsapp-sender/whatsapp-sender.service.js +224 -0
- package/dist/whatsapp-sender/whatsapp-sender.service.js.map +1 -0
- package/hedhog/data/integration_provider.yaml +16 -0
- package/hedhog/data/mail.yaml +88 -61
- package/hedhog/data/mail_layout.yaml +188 -0
- package/hedhog/data/menu.yaml +67 -3
- package/hedhog/data/route.yaml +135 -0
- package/hedhog/data/setting_group.yaml +139 -1
- package/hedhog/frontend/app/account/components/mfa-setup-dialog.tsx.ejs +36 -0
- package/hedhog/frontend/app/account/components/two-factor-auth.tsx.ejs +2 -0
- package/hedhog/frontend/app/account/hooks/use-mfa-setup.ts.ejs +10 -7
- package/hedhog/frontend/app/ai_agent/page.tsx.ejs +7 -4
- package/hedhog/frontend/app/ai_instruction/_components/ai-instruction-form.tsx.ejs +580 -0
- package/hedhog/frontend/app/ai_instruction/_components/ai-instruction-preview.tsx.ejs +150 -0
- package/hedhog/frontend/app/ai_instruction/_components/ai-instruction-versions.tsx.ejs +199 -0
- package/hedhog/frontend/app/ai_instruction/_components/prompt-diff.tsx.ejs +63 -0
- package/hedhog/frontend/app/ai_instruction/_lib/line-diff.spec.ts.ejs +59 -0
- package/hedhog/frontend/app/ai_instruction/_lib/line-diff.ts.ejs +72 -0
- package/hedhog/frontend/app/ai_instruction/_lib/prompt-template.spec.ts.ejs +170 -0
- package/hedhog/frontend/app/ai_instruction/_lib/prompt-template.ts.ejs +167 -0
- package/hedhog/frontend/app/ai_instruction/_lib/types.ts.ejs +99 -0
- package/hedhog/frontend/app/ai_instruction/page.tsx.ejs +422 -0
- package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +51 -4
- package/hedhog/frontend/app/incidents/page.tsx.ejs +400 -0
- package/hedhog/frontend/app/integration/profiles/page.tsx.ejs +169 -92
- package/hedhog/frontend/app/mail/layout/page.tsx.ejs +344 -0
- package/hedhog/frontend/app/mail/template/page.tsx.ejs +155 -121
- package/hedhog/frontend/app/mcp_chat/page.tsx.ejs +129 -17
- package/hedhog/frontend/app/pages/_components/page-delete-dialog.tsx.ejs +343 -0
- package/hedhog/frontend/app/pages/_components/page-detail-sheet.tsx.ejs +438 -0
- package/hedhog/frontend/app/pages/_components/page-wizard-sheet.tsx.ejs +1009 -0
- package/hedhog/frontend/app/pages/_components/system-page-types.ts.ejs +56 -0
- package/hedhog/frontend/app/pages/_components/use-system-pages.ts.ejs +171 -0
- package/hedhog/frontend/app/pages/page.tsx.ejs +514 -0
- package/hedhog/frontend/app/users/page.tsx.ejs +119 -13
- package/hedhog/frontend/app/users/user-activity-timeline.tsx.ejs +231 -0
- package/hedhog/frontend/app/users/user-mails.tsx.ejs +399 -0
- package/hedhog/frontend/app/users/user-sheet.tsx.ejs +60 -75
- package/hedhog/frontend/messages/en.json +521 -3
- package/hedhog/frontend/messages/pt.json +521 -3
- package/hedhog/table/ai_agent.yaml +1 -0
- package/hedhog/table/ai_instruction.yaml +15 -0
- package/hedhog/table/leaked_password.yaml +18 -0
- package/hedhog/table/mail_layout.yaml +35 -0
- package/hedhog/table/mail_var.yaml +4 -0
- package/hedhog/table/setting.yaml +1 -0
- package/hedhog/table/system_incident.yaml +59 -0
- package/hedhog/table/user_presence.yaml +36 -0
- package/hedhog/table/webhook_integration.yaml +64 -43
- package/package.json +8 -4
- package/src/access-log/access-log.interceptor.ts +4 -2
- package/src/ai/ai-attachment.fragments.spec.ts +319 -0
- package/src/ai/ai-attachment.fragments.ts +35 -0
- package/src/ai/ai.prompts.ts +38 -0
- package/src/ai/ai.service.spec.ts +280 -0
- package/src/ai/ai.service.ts +338 -82
- package/src/ai/dto/chat.dto.ts +33 -3
- package/src/ai/dto/create-agent.dto.ts +2 -2
- package/src/ai/dto/update-agent.dto.ts +2 -2
- package/src/ai-instruction/ai-instruction.controller.ts +40 -9
- package/src/ai-instruction/ai-instruction.module.ts +13 -2
- package/src/ai-instruction/ai-instruction.service.spec.ts +658 -0
- package/src/ai-instruction/ai-instruction.service.ts +661 -62
- package/src/ai-instruction/ai-prompt-builder.service.ts +10 -1
- package/src/ai-instruction/ai-prompt-registry.ts +87 -0
- package/src/ai-instruction/ai-prompt-resolver.service.spec.ts +375 -0
- package/src/ai-instruction/ai-prompt-resolver.service.ts +295 -0
- package/src/ai-instruction/ai-prompt-template.util.spec.ts +162 -0
- package/src/ai-instruction/ai-prompt-template.util.ts +199 -0
- package/src/ai-instruction/dto/create-ai-instruction.dto.ts +39 -3
- package/src/ai-instruction/dto/preview-ai-instruction.dto.ts +26 -0
- package/src/ai-instruction/dto/update-ai-instruction.dto.ts +42 -1
- package/src/ai-instruction/types/ai-instruction.types.ts +24 -1
- package/src/auth/auth.controller.ts +33 -6
- package/src/auth/auth.service.spec.ts +3 -1
- package/src/auth/auth.service.ts +103 -37
- package/src/captcha/captcha.module.ts +10 -0
- package/src/captcha/captcha.service.spec.ts +210 -0
- package/src/captcha/captcha.service.ts +191 -0
- package/src/challenge/challenge.service.spec.ts +39 -4
- package/src/challenge/challenge.service.ts +72 -17
- package/src/core.module.ts +27 -1
- package/src/file/file.service.spec.ts +105 -0
- package/src/file/file.service.ts +60 -3
- package/src/incident/incident-notifier.service.spec.ts +205 -0
- package/src/incident/incident-notifier.service.ts +241 -0
- package/src/incident/incident.controller.ts +38 -0
- package/src/incident/incident.module.ts +19 -0
- package/src/incident/incident.service.spec.ts +150 -0
- package/src/incident/incident.service.ts +209 -0
- package/src/index.ts +38 -0
- package/src/integration-profile/dto/test.dto.ts +19 -0
- package/src/integration-profile/integration-profile.controller.ts +10 -1
- package/src/integration-profile/integration-profile.module.spec.ts +51 -0
- package/src/integration-profile/integration-profile.module.ts +23 -4
- package/src/integration-profile/integration-profile.secrets.ts +12 -2
- package/src/integration-profile/integration-profile.service.spec.ts +279 -0
- package/src/integration-profile/integration-profile.service.ts +132 -29
- package/src/integration-profile/integration-profile.utils.spec.ts +97 -0
- package/src/integration-profile/integration-profile.utils.ts +79 -3
- package/src/integration-profile/testers/ai.testers.ts +165 -0
- package/src/integration-profile/testers/captcha.testers.spec.ts +92 -0
- package/src/integration-profile/testers/captcha.testers.ts +139 -0
- package/src/integration-profile/testers/email.testers.ts +161 -0
- package/src/integration-profile/testers/http-probe.spec.ts +153 -0
- package/src/integration-profile/testers/http-probe.ts +171 -0
- package/src/integration-profile/testers/index.ts +30 -0
- package/src/integration-profile/testers/infrastructure.testers.ts +122 -0
- package/src/integration-profile/testers/integration-tester.registry.spec.ts +75 -0
- package/src/integration-profile/testers/integration-tester.registry.ts +43 -0
- package/src/integration-profile/testers/integration-tester.types.ts +61 -0
- package/src/integration-profile/testers/messaging.testers.ts +102 -0
- package/src/integration-profile/testers/oauth.testers.spec.ts +220 -0
- package/src/integration-profile/testers/oauth.testers.ts +305 -0
- package/src/integration-profile/testers/payment.testers.ts +185 -0
- package/src/integration-profile/testers/remaining.testers.spec.ts +401 -0
- package/src/integration-profile/testers/storage.testers.spec.ts +185 -0
- package/src/integration-profile/testers/storage.testers.ts +226 -0
- package/src/integration-profile/testers/tester-coverage.spec.ts +58 -0
- package/src/language/en.json +4 -2
- package/src/language/pt.json +4 -2
- package/src/leaked-password/README.md +83 -0
- package/src/leaked-password/leaked-password.controller.ts +52 -0
- package/src/leaked-password/leaked-password.module.ts +18 -0
- package/src/leaked-password/leaked-password.service.ts +242 -0
- package/src/leaked-password/seed/build-seed-sql.mjs +180 -0
- package/src/leaked-password/seed/common-passwords.txt +335 -0
- package/src/mail/dto/preview.dto.ts +50 -0
- package/src/mail/dto/send.dto.ts +14 -1
- package/src/mail/mail-template.spec.ts +197 -0
- package/src/mail/mail.controller.ts +9 -2
- package/src/mail/mail.service.spec.ts +116 -1
- package/src/mail/mail.service.ts +118 -12
- package/src/mail-layout/dto/update.dto.ts +19 -0
- package/src/mail-layout/mail-layout.controller.ts +47 -0
- package/src/mail-layout/mail-layout.module.ts +22 -0
- package/src/mail-layout/mail-layout.service.ts +94 -0
- package/src/mcp-chat/mcp-chat.service.spec.ts +236 -0
- package/src/mcp-chat/mcp-chat.service.ts +122 -26
- package/src/oauth/oauth-token-broker.service.spec.ts +172 -0
- package/src/oauth/oauth-token-broker.service.ts +363 -0
- package/src/oauth/oauth.module.ts +3 -1
- package/src/oauth/oauth.service.ts +8 -2
- package/src/pdf/pdf.service.ts +75 -0
- package/src/presence/presence.controller.ts +29 -0
- package/src/presence/presence.listener.ts +53 -0
- package/src/presence/presence.module.ts +19 -0
- package/src/presence/presence.service.spec.ts +97 -0
- package/src/presence/presence.service.ts +160 -0
- package/src/profile/dto/delete-account.dto.ts +11 -0
- package/src/profile/events/profile-account-deleted.event.ts +13 -0
- package/src/profile/profile.controller.ts +52 -36
- package/src/profile/profile.service.ts +143 -41
- package/src/realtime/realtime.gateway.ts +138 -0
- package/src/realtime/realtime.module.ts +16 -0
- package/src/realtime/realtime.service.spec.ts +50 -0
- package/src/realtime/realtime.service.ts +187 -0
- package/src/redis/redis-pubsub.ts +179 -0
- package/src/setting/dto/create.dto.ts +13 -2
- package/src/setting/setting.service.spec.ts +56 -0
- package/src/setting/setting.service.ts +29 -1
- package/src/user/dto/create-with-email-and-password.dto.ts +6 -1
- package/src/user/dto/query-user-mail-list.dto.ts +10 -0
- package/src/user/user-credential.util.ts +35 -0
- package/src/user/user.controller.ts +17 -2
- package/src/user/user.service.spec.ts +153 -0
- package/src/user/user.service.ts +255 -12
- package/src/validators/is-strong-password-with-settings.validator.ts +12 -0
- package/src/validators/service-locator.ts +15 -0
- package/src/webhook-integration/webhook-integration.controller.ts +40 -2
- package/src/webhook-integration/webhook-integration.module.ts +5 -0
- package/src/webhook-integration/webhook-integration.service.ts +133 -0
- package/src/webhook-integration/webhook-protocol.registry.spec.ts +70 -0
- package/src/webhook-integration/webhook-protocol.registry.ts +93 -0
- package/src/whatsapp-sender/whatsapp-sender.module.ts +10 -0
- package/src/whatsapp-sender/whatsapp-sender.service.ts +313 -0
|
@@ -19,6 +19,7 @@ const common_1 = require("@nestjs/common");
|
|
|
19
19
|
const platform_express_1 = require("@nestjs/platform-express");
|
|
20
20
|
const change_email_dto_1 = require("./dto/change-email.dto");
|
|
21
21
|
const change_password_dto_1 = require("./dto/change-password.dto");
|
|
22
|
+
const delete_account_dto_1 = require("./dto/delete-account.dto");
|
|
22
23
|
const email_verification_confirm_dto_1 = require("./dto/email-verification-confirm.dto");
|
|
23
24
|
const generate_webauthn_registration_options_dto_1 = require("./dto/generate-webauthn-registration-options.dto");
|
|
24
25
|
const regenerate_recovery_codes_dto_1 = require("./dto/regenerate-recovery-codes.dto");
|
|
@@ -41,11 +42,11 @@ let ProfileController = class ProfileController {
|
|
|
41
42
|
async updatePreferences({ id }, data, locale) {
|
|
42
43
|
return this.profileService.updatePreferences(locale, id, data);
|
|
43
44
|
}
|
|
44
|
-
async checkMfaBeforeAdd({ id }, locale) {
|
|
45
|
-
return this.profileService.checkMfaBeforeAdd(locale, id);
|
|
45
|
+
async checkMfaBeforeAdd({ id }, locale, origin) {
|
|
46
|
+
return this.profileService.checkMfaBeforeAdd(locale, id, origin);
|
|
46
47
|
}
|
|
47
|
-
async checkMfaBeforeRemove({ id }, locale) {
|
|
48
|
-
return this.profileService.checkMfaBeforeRemove(locale, id);
|
|
48
|
+
async checkMfaBeforeRemove({ id }, locale, origin) {
|
|
49
|
+
return this.profileService.checkMfaBeforeRemove(locale, id, origin);
|
|
49
50
|
}
|
|
50
51
|
async verifyBeforeAddMfa({ id }, data, locale, origin) {
|
|
51
52
|
return this.profileService.verifyBeforeAddMfa(locale, id, data, origin);
|
|
@@ -53,32 +54,32 @@ let ProfileController = class ProfileController {
|
|
|
53
54
|
async generateMfaTotp({ id }, locale) {
|
|
54
55
|
return this.profileService.generateMfaTotp(locale, id);
|
|
55
56
|
}
|
|
56
|
-
async verifyMfaTotp(locale, { id }, { token, secret, name }) {
|
|
57
|
-
return this.profileService.verifyMfaTotp(locale, id, token, secret, name);
|
|
57
|
+
async verifyMfaTotp(locale, { id }, { token, secret, name }, sessionId) {
|
|
58
|
+
return this.profileService.verifyMfaTotp(locale, id, token, secret, name, sessionId);
|
|
58
59
|
}
|
|
59
|
-
async removeMfaTotp(locale, { id }, mfaId, { token }) {
|
|
60
|
-
return this.profileService.removeMfaTotp(locale, id, mfaId, token);
|
|
60
|
+
async removeMfaTotp(locale, { id }, mfaId, { token }, sessionId) {
|
|
61
|
+
return this.profileService.removeMfaTotp(locale, id, mfaId, token, sessionId);
|
|
61
62
|
}
|
|
62
63
|
confirmEmailVerification({ id }, data, locale) {
|
|
63
64
|
return this.profileService.confirmEmailVerification(locale, id, data);
|
|
64
65
|
}
|
|
65
|
-
sendEmailVerification({ id }, data, locale) {
|
|
66
|
-
return this.profileService.sendEmailVerification(locale, id, data);
|
|
66
|
+
sendEmailVerification({ id }, data, locale, origin) {
|
|
67
|
+
return this.profileService.sendEmailVerification(locale, id, data, origin);
|
|
67
68
|
}
|
|
68
|
-
sendEmailVerificationMfa({ id }, data, locale) {
|
|
69
|
-
return this.profileService.sendEmailVerificationMfa(locale, id, data);
|
|
69
|
+
sendEmailVerificationMfa({ id }, data, locale, origin) {
|
|
70
|
+
return this.profileService.sendEmailVerificationMfa(locale, id, data, origin);
|
|
70
71
|
}
|
|
71
|
-
sendEmailVerificationMfaConfirm({ id }, data, locale) {
|
|
72
|
-
return this.profileService.confirmEmailVerificationMfa(locale, id, data);
|
|
72
|
+
sendEmailVerificationMfaConfirm({ id }, data, locale, sessionId) {
|
|
73
|
+
return this.profileService.confirmEmailVerificationMfa(locale, id, data, sessionId);
|
|
73
74
|
}
|
|
74
|
-
sendCodeToRemove({ id }, locale, { email }) {
|
|
75
|
-
return this.profileService.sendCodeToRemove(locale, id, email);
|
|
75
|
+
sendCodeToRemove({ id }, locale, { email }, origin) {
|
|
76
|
+
return this.profileService.sendCodeToRemove(locale, id, email, origin);
|
|
76
77
|
}
|
|
77
78
|
getEmailIdentifier({ id }) {
|
|
78
79
|
return this.profileService.getEmailIdentifier(id);
|
|
79
80
|
}
|
|
80
|
-
async removeMfaEmail(locale, { id }, mfaId, { token, hash }) {
|
|
81
|
-
return this.profileService.removeMfaEmail(locale, id, mfaId, token, hash);
|
|
81
|
+
async removeMfaEmail(locale, { id }, mfaId, { token, hash }, sessionId) {
|
|
82
|
+
return this.profileService.removeMfaEmail(locale, id, mfaId, token, hash, sessionId);
|
|
82
83
|
}
|
|
83
84
|
getProfile({ id }) {
|
|
84
85
|
return this.profileService.getProfile(id);
|
|
@@ -89,14 +90,14 @@ let ProfileController = class ProfileController {
|
|
|
89
90
|
updateMFA({ id: userId }, mfaId, { name }) {
|
|
90
91
|
return this.profileService.updateMFA(userId, mfaId, { name });
|
|
91
92
|
}
|
|
92
|
-
async removeMfaWithRecoveryCode({ id }, mfaId, { recoveryCode }, locale) {
|
|
93
|
-
return this.profileService.removeMfaWithRecoveryCode(locale, id, mfaId, recoveryCode);
|
|
93
|
+
async removeMfaWithRecoveryCode({ id }, mfaId, { recoveryCode }, locale, sessionId) {
|
|
94
|
+
return this.profileService.removeMfaWithRecoveryCode(locale, id, mfaId, recoveryCode, sessionId);
|
|
94
95
|
}
|
|
95
|
-
async removeMfa({ id }, mfaId, data, locale, origin) {
|
|
96
|
-
return this.profileService.removeMfa(locale, id, mfaId, data, origin);
|
|
96
|
+
async removeMfa({ id }, mfaId, data, locale, origin, sessionId) {
|
|
97
|
+
return this.profileService.removeMfa(locale, id, mfaId, data, origin, sessionId);
|
|
97
98
|
}
|
|
98
|
-
async sendRecoveryCodesVerification({ id }, locale) {
|
|
99
|
-
return this.profileService.sendRecoveryCodesVerification(locale, id);
|
|
99
|
+
async sendRecoveryCodesVerification({ id }, locale, origin) {
|
|
100
|
+
return this.profileService.sendRecoveryCodesVerification(locale, id, origin);
|
|
100
101
|
}
|
|
101
102
|
async regenerateRecoveryCodes({ id }, data, locale, origin) {
|
|
102
103
|
return this.profileService.regenerateRecoveryCodes(locale, id, data, origin);
|
|
@@ -113,14 +114,14 @@ let ProfileController = class ProfileController {
|
|
|
113
114
|
async verifyWebAuthnAuthentication({ id }, { assertionResponse }, origin) {
|
|
114
115
|
return this.profileService.verifyWebAuthnAuthentication(id, assertionResponse, origin);
|
|
115
116
|
}
|
|
116
|
-
async removeWebAuthnMfa({ id }, mfaId, locale) {
|
|
117
|
-
return this.profileService.removeWebAuthnMfa(locale, id, mfaId);
|
|
117
|
+
async removeWebAuthnMfa({ id }, mfaId, { assertionResponse }, locale, origin) {
|
|
118
|
+
return this.profileService.removeWebAuthnMfa(locale, id, mfaId, assertionResponse, origin);
|
|
118
119
|
}
|
|
119
|
-
changePassword({ id }, body, locale, ipAddress, userAgent) {
|
|
120
|
-
return this.profileService.changePassword(locale, id, body, ipAddress, userAgent);
|
|
120
|
+
changePassword({ id }, body, locale, ipAddress, userAgent, origin) {
|
|
121
|
+
return this.profileService.changePassword(locale, id, body, ipAddress, userAgent, origin);
|
|
121
122
|
}
|
|
122
|
-
changeEmail({ id }, body, locale) {
|
|
123
|
-
return this.profileService.changeEmail(locale, id, body);
|
|
123
|
+
changeEmail({ id }, body, locale, origin) {
|
|
124
|
+
return this.profileService.changeEmail(locale, id, body, origin);
|
|
124
125
|
}
|
|
125
126
|
updateAvatar(locale, { id }, file) {
|
|
126
127
|
return this.profileService.updateAvatar(locale, id, file);
|
|
@@ -128,6 +129,9 @@ let ProfileController = class ProfileController {
|
|
|
128
129
|
update(data, { id }) {
|
|
129
130
|
return this.profileService.update(id, data);
|
|
130
131
|
}
|
|
132
|
+
deleteAccount({ id }, body, locale) {
|
|
133
|
+
return this.profileService.deleteAccount(locale, id, body);
|
|
134
|
+
}
|
|
131
135
|
};
|
|
132
136
|
exports.ProfileController = ProfileController;
|
|
133
137
|
__decorate([
|
|
@@ -143,16 +147,18 @@ __decorate([
|
|
|
143
147
|
(0, common_1.Post)('mfa/check-verification'),
|
|
144
148
|
__param(0, (0, api_1.User)()),
|
|
145
149
|
__param(1, (0, api_locale_1.Locale)()),
|
|
150
|
+
__param(2, (0, common_1.Headers)('origin')),
|
|
146
151
|
__metadata("design:type", Function),
|
|
147
|
-
__metadata("design:paramtypes", [Object, String]),
|
|
152
|
+
__metadata("design:paramtypes", [Object, String, String]),
|
|
148
153
|
__metadata("design:returntype", Promise)
|
|
149
154
|
], ProfileController.prototype, "checkMfaBeforeAdd", null);
|
|
150
155
|
__decorate([
|
|
151
156
|
(0, common_1.Post)('mfa/check-verification-remove'),
|
|
152
157
|
__param(0, (0, api_1.User)()),
|
|
153
158
|
__param(1, (0, api_locale_1.Locale)()),
|
|
159
|
+
__param(2, (0, common_1.Headers)('origin')),
|
|
154
160
|
__metadata("design:type", Function),
|
|
155
|
-
__metadata("design:paramtypes", [Object, String]),
|
|
161
|
+
__metadata("design:paramtypes", [Object, String, String]),
|
|
156
162
|
__metadata("design:returntype", Promise)
|
|
157
163
|
], ProfileController.prototype, "checkMfaBeforeRemove", null);
|
|
158
164
|
__decorate([
|
|
@@ -178,8 +184,9 @@ __decorate([
|
|
|
178
184
|
__param(0, (0, api_locale_1.Locale)()),
|
|
179
185
|
__param(1, (0, api_1.User)()),
|
|
180
186
|
__param(2, (0, common_1.Body)()),
|
|
187
|
+
__param(3, (0, api_1.Session)()),
|
|
181
188
|
__metadata("design:type", Function),
|
|
182
|
-
__metadata("design:paramtypes", [String, Object, verify_mfa_totp_dto_1.VerifyMfaTotpDto]),
|
|
189
|
+
__metadata("design:paramtypes", [String, Object, verify_mfa_totp_dto_1.VerifyMfaTotpDto, Number]),
|
|
183
190
|
__metadata("design:returntype", Promise)
|
|
184
191
|
], ProfileController.prototype, "verifyMfaTotp", null);
|
|
185
192
|
__decorate([
|
|
@@ -188,8 +195,9 @@ __decorate([
|
|
|
188
195
|
__param(1, (0, api_1.User)()),
|
|
189
196
|
__param(2, (0, common_1.Param)('mfaId', common_1.ParseIntPipe)),
|
|
190
197
|
__param(3, (0, common_1.Body)()),
|
|
198
|
+
__param(4, (0, api_1.Session)()),
|
|
191
199
|
__metadata("design:type", Function),
|
|
192
|
-
__metadata("design:paramtypes", [String, Object, Number, remove_totp_mfa_dto_1.RemoveTotpMfaDto]),
|
|
200
|
+
__metadata("design:paramtypes", [String, Object, Number, remove_totp_mfa_dto_1.RemoveTotpMfaDto, Number]),
|
|
193
201
|
__metadata("design:returntype", Promise)
|
|
194
202
|
], ProfileController.prototype, "removeMfaTotp", null);
|
|
195
203
|
__decorate([
|
|
@@ -206,8 +214,9 @@ __decorate([
|
|
|
206
214
|
__param(0, (0, api_1.User)()),
|
|
207
215
|
__param(1, (0, common_1.Body)()),
|
|
208
216
|
__param(2, (0, api_locale_1.Locale)()),
|
|
217
|
+
__param(3, (0, common_1.Headers)('origin')),
|
|
209
218
|
__metadata("design:type", Function),
|
|
210
|
-
__metadata("design:paramtypes", [Object, send_email_verification_dto_1.SendEmailVerificationDto, String]),
|
|
219
|
+
__metadata("design:paramtypes", [Object, send_email_verification_dto_1.SendEmailVerificationDto, String, String]),
|
|
211
220
|
__metadata("design:returntype", void 0)
|
|
212
221
|
], ProfileController.prototype, "sendEmailVerification", null);
|
|
213
222
|
__decorate([
|
|
@@ -215,8 +224,9 @@ __decorate([
|
|
|
215
224
|
__param(0, (0, api_1.User)()),
|
|
216
225
|
__param(1, (0, common_1.Body)()),
|
|
217
226
|
__param(2, (0, api_locale_1.Locale)()),
|
|
227
|
+
__param(3, (0, common_1.Headers)('origin')),
|
|
218
228
|
__metadata("design:type", Function),
|
|
219
|
-
__metadata("design:paramtypes", [Object, send_email_verification_dto_1.SendEmailVerificationDto, String]),
|
|
229
|
+
__metadata("design:paramtypes", [Object, send_email_verification_dto_1.SendEmailVerificationDto, String, String]),
|
|
220
230
|
__metadata("design:returntype", void 0)
|
|
221
231
|
], ProfileController.prototype, "sendEmailVerificationMfa", null);
|
|
222
232
|
__decorate([
|
|
@@ -224,8 +234,9 @@ __decorate([
|
|
|
224
234
|
__param(0, (0, api_1.User)()),
|
|
225
235
|
__param(1, (0, common_1.Body)()),
|
|
226
236
|
__param(2, (0, api_locale_1.Locale)()),
|
|
237
|
+
__param(3, (0, api_1.Session)()),
|
|
227
238
|
__metadata("design:type", Function),
|
|
228
|
-
__metadata("design:paramtypes", [Object, email_verification_confirm_dto_1.EmailVerificationDto, String]),
|
|
239
|
+
__metadata("design:paramtypes", [Object, email_verification_confirm_dto_1.EmailVerificationDto, String, Number]),
|
|
229
240
|
__metadata("design:returntype", void 0)
|
|
230
241
|
], ProfileController.prototype, "sendEmailVerificationMfaConfirm", null);
|
|
231
242
|
__decorate([
|
|
@@ -233,8 +244,9 @@ __decorate([
|
|
|
233
244
|
__param(0, (0, api_1.User)()),
|
|
234
245
|
__param(1, (0, api_locale_1.Locale)()),
|
|
235
246
|
__param(2, (0, common_1.Body)()),
|
|
247
|
+
__param(3, (0, common_1.Headers)('origin')),
|
|
236
248
|
__metadata("design:type", Function),
|
|
237
|
-
__metadata("design:paramtypes", [Object, String, send_email_verification_dto_1.SendEmailVerificationDto]),
|
|
249
|
+
__metadata("design:paramtypes", [Object, String, send_email_verification_dto_1.SendEmailVerificationDto, String]),
|
|
238
250
|
__metadata("design:returntype", void 0)
|
|
239
251
|
], ProfileController.prototype, "sendCodeToRemove", null);
|
|
240
252
|
__decorate([
|
|
@@ -250,8 +262,9 @@ __decorate([
|
|
|
250
262
|
__param(1, (0, api_1.User)()),
|
|
251
263
|
__param(2, (0, common_1.Param)('mfaId', common_1.ParseIntPipe)),
|
|
252
264
|
__param(3, (0, common_1.Body)()),
|
|
265
|
+
__param(4, (0, api_1.Session)()),
|
|
253
266
|
__metadata("design:type", Function),
|
|
254
|
-
__metadata("design:paramtypes", [String, Object, Number, remove_email_mfa_dto_1.RemoveEmailMfaDto]),
|
|
267
|
+
__metadata("design:paramtypes", [String, Object, Number, remove_email_mfa_dto_1.RemoveEmailMfaDto, Number]),
|
|
255
268
|
__metadata("design:returntype", Promise)
|
|
256
269
|
], ProfileController.prototype, "removeMfaEmail", null);
|
|
257
270
|
__decorate([
|
|
@@ -283,8 +296,9 @@ __decorate([
|
|
|
283
296
|
__param(1, (0, common_1.Param)('mfaId', common_1.ParseIntPipe)),
|
|
284
297
|
__param(2, (0, common_1.Body)()),
|
|
285
298
|
__param(3, (0, api_locale_1.Locale)()),
|
|
299
|
+
__param(4, (0, api_1.Session)()),
|
|
286
300
|
__metadata("design:type", Function),
|
|
287
|
-
__metadata("design:paramtypes", [Object, Number, remove_mfa_with_recovery_code_dto_1.RemoveMfaWithRecoveryCodeDto, String]),
|
|
301
|
+
__metadata("design:paramtypes", [Object, Number, remove_mfa_with_recovery_code_dto_1.RemoveMfaWithRecoveryCodeDto, String, Number]),
|
|
288
302
|
__metadata("design:returntype", Promise)
|
|
289
303
|
], ProfileController.prototype, "removeMfaWithRecoveryCode", null);
|
|
290
304
|
__decorate([
|
|
@@ -294,16 +308,18 @@ __decorate([
|
|
|
294
308
|
__param(2, (0, common_1.Body)()),
|
|
295
309
|
__param(3, (0, api_locale_1.Locale)()),
|
|
296
310
|
__param(4, (0, common_1.Headers)('origin')),
|
|
311
|
+
__param(5, (0, api_1.Session)()),
|
|
297
312
|
__metadata("design:type", Function),
|
|
298
|
-
__metadata("design:paramtypes", [Object, Number, remove_mfa_dto_1.RemoveMfaDto, String, String]),
|
|
313
|
+
__metadata("design:paramtypes", [Object, Number, remove_mfa_dto_1.RemoveMfaDto, String, String, Number]),
|
|
299
314
|
__metadata("design:returntype", Promise)
|
|
300
315
|
], ProfileController.prototype, "removeMfa", null);
|
|
301
316
|
__decorate([
|
|
302
317
|
(0, common_1.Post)('recovery-codes/send-verification'),
|
|
303
318
|
__param(0, (0, api_1.User)()),
|
|
304
319
|
__param(1, (0, api_locale_1.Locale)()),
|
|
320
|
+
__param(2, (0, common_1.Headers)('origin')),
|
|
305
321
|
__metadata("design:type", Function),
|
|
306
|
-
__metadata("design:paramtypes", [Object, String]),
|
|
322
|
+
__metadata("design:paramtypes", [Object, String, String]),
|
|
307
323
|
__metadata("design:returntype", Promise)
|
|
308
324
|
], ProfileController.prototype, "sendRecoveryCodesVerification", null);
|
|
309
325
|
__decorate([
|
|
@@ -358,9 +374,11 @@ __decorate([
|
|
|
358
374
|
(0, common_1.Delete)('webauthn/:mfaId/remove'),
|
|
359
375
|
__param(0, (0, api_1.User)()),
|
|
360
376
|
__param(1, (0, common_1.Param)('mfaId', common_1.ParseIntPipe)),
|
|
361
|
-
__param(2, (0,
|
|
377
|
+
__param(2, (0, common_1.Body)()),
|
|
378
|
+
__param(3, (0, api_locale_1.Locale)()),
|
|
379
|
+
__param(4, (0, common_1.Headers)('origin')),
|
|
362
380
|
__metadata("design:type", Function),
|
|
363
|
-
__metadata("design:paramtypes", [Object, Number, String]),
|
|
381
|
+
__metadata("design:paramtypes", [Object, Number, verify_webauthn_dto_1.VerifyWebAuthnDto, String, String]),
|
|
364
382
|
__metadata("design:returntype", Promise)
|
|
365
383
|
], ProfileController.prototype, "removeWebAuthnMfa", null);
|
|
366
384
|
__decorate([
|
|
@@ -370,8 +388,9 @@ __decorate([
|
|
|
370
388
|
__param(2, (0, api_locale_1.Locale)()),
|
|
371
389
|
__param(3, (0, common_1.Ip)()),
|
|
372
390
|
__param(4, (0, common_1.Headers)('user-agent')),
|
|
391
|
+
__param(5, (0, common_1.Headers)('origin')),
|
|
373
392
|
__metadata("design:type", Function),
|
|
374
|
-
__metadata("design:paramtypes", [Object, change_password_dto_1.ChangePasswordDto, String, String, String]),
|
|
393
|
+
__metadata("design:paramtypes", [Object, change_password_dto_1.ChangePasswordDto, String, String, String, String]),
|
|
375
394
|
__metadata("design:returntype", void 0)
|
|
376
395
|
], ProfileController.prototype, "changePassword", null);
|
|
377
396
|
__decorate([
|
|
@@ -379,8 +398,9 @@ __decorate([
|
|
|
379
398
|
__param(0, (0, api_1.User)()),
|
|
380
399
|
__param(1, (0, common_1.Body)()),
|
|
381
400
|
__param(2, (0, api_locale_1.Locale)()),
|
|
401
|
+
__param(3, (0, common_1.Headers)('origin')),
|
|
382
402
|
__metadata("design:type", Function),
|
|
383
|
-
__metadata("design:paramtypes", [Object, change_email_dto_1.ChangeEmailDto, String]),
|
|
403
|
+
__metadata("design:paramtypes", [Object, change_email_dto_1.ChangeEmailDto, String, String]),
|
|
384
404
|
__metadata("design:returntype", void 0)
|
|
385
405
|
], ProfileController.prototype, "changeEmail", null);
|
|
386
406
|
__decorate([
|
|
@@ -401,6 +421,15 @@ __decorate([
|
|
|
401
421
|
__metadata("design:paramtypes", [update_dto_1.UpdateDto, Object]),
|
|
402
422
|
__metadata("design:returntype", void 0)
|
|
403
423
|
], ProfileController.prototype, "update", null);
|
|
424
|
+
__decorate([
|
|
425
|
+
(0, common_1.Delete)('account'),
|
|
426
|
+
__param(0, (0, api_1.User)()),
|
|
427
|
+
__param(1, (0, common_1.Body)()),
|
|
428
|
+
__param(2, (0, api_locale_1.Locale)()),
|
|
429
|
+
__metadata("design:type", Function),
|
|
430
|
+
__metadata("design:paramtypes", [Object, delete_account_dto_1.DeleteAccountDto, String]),
|
|
431
|
+
__metadata("design:returntype", void 0)
|
|
432
|
+
], ProfileController.prototype, "deleteAccount", null);
|
|
404
433
|
exports.ProfileController = ProfileController = __decorate([
|
|
405
434
|
(0, api_1.NoRole)(),
|
|
406
435
|
(0, common_1.Controller)('profile'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.controller.js","sourceRoot":"","sources":["../../src/profile/profile.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA4C;AAC5C,oDAA6C;AAC7C,2CAA2I;AAC3I,+DAA2D;AAC3D,6DAAwD;AACxD,mEAA8D;AAC9D,yFAA4E;AAC5E,iHAA0G;AAC1G,uFAAiF;AACjF,qEAA+D;AAC/D,+FAAuF;AACvF,yDAAoD;AACpD,mEAA6D;AAC7D,mFAA6E;AAC7E,mEAA8D;AAC9D,iDAA6C;AAC7C,+EAAwE;AACxE,mEAA6D;AAC7D,6FAAuF;AACvF,mEAA8D;AAC9D,uDAAmD;AAG5C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAGzD,AAAN,KAAK,CAAC,iBAAiB,CAAS,EAAE,EAAE,EAAE,EAAU,IAAuB,EAAY,MAAc;QAC/F,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,iBAAiB,CAAS,EAAE,EAAE,EAAE,EAAY,MAAc;QAC9D,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAGK,AAAN,KAAK,CAAC,oBAAoB,CAAS,EAA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;IAFC,IAAA,wBAAe,EAAC,IAAA,kCAAe,EAAC,MAAM,CAAC,CAAC;IACxC,IAAA,YAAG,EAAC,QAAQ,CAAC;IACA,WAAA,IAAA,mBAAM,GAAE,CAAA;IAAkB,WAAA,IAAA,UAAI,GAAE,CAAA;IAAU,WAAA,IAAA,qBAAY,GAAE,CAAA;;;;qDAErE;AAGD;IADC,IAAA,YAAG,GAAE;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;IAAmB,WAAA,IAAA,UAAI,GAAE,CAAA;;qCAAlB,sBAAS;;+CAE7B;AAGD;IADC,IAAA,eAAM,EAAC,SAAS,CAAC;IACH,WAAA,IAAA,UAAI,GAAE,CAAA;IAAU,WAAA,IAAA,aAAI,GAAE,CAAA;IAA0B,WAAA,IAAA,mBAAM,GAAE,CAAA;;6CAA3B,qCAAgB;;sDAE3D;4BAzNU,iBAAiB;IAF7B,IAAA,YAAM,GAAE;IACR,IAAA,mBAAU,EAAC,SAAS,CAAC;qCAGyB,gCAAc;GAFhD,iBAAiB,CA0N7B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PrismaService
|
|
1
|
+
import { PrismaService } from '@hed-hog/api-prisma';
|
|
2
2
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
3
3
|
import { JwtService } from '@nestjs/jwt';
|
|
4
|
+
import type { PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/server';
|
|
4
5
|
import { ChallengeService } from '../challenge/challenge.service';
|
|
5
6
|
import { MailService } from '../mail/mail.service';
|
|
6
7
|
import { SecurityService } from '../security/security.service';
|
|
@@ -9,6 +10,7 @@ import { TokenService } from '../token/token.service';
|
|
|
9
10
|
import { UserService } from '../user/user.service';
|
|
10
11
|
import { ChangeEmailDto } from './dto/change-email.dto';
|
|
11
12
|
import { ChangePasswordDto } from './dto/change-password.dto';
|
|
13
|
+
import { DeleteAccountDto } from './dto/delete-account.dto';
|
|
12
14
|
import { EmailVerificationDto } from './dto/email-verification-confirm.dto';
|
|
13
15
|
import { SendEmailVerificationDto } from './dto/send-email-verification.dto';
|
|
14
16
|
import { SetPreferencesDto } from './dto/set-preferences.dto';
|
|
@@ -24,26 +26,26 @@ export declare class ProfileService {
|
|
|
24
26
|
private readonly mail;
|
|
25
27
|
private readonly eventEmitter;
|
|
26
28
|
constructor(prisma: PrismaService, user: UserService, jwt: JwtService, setting: SettingService, security: SecurityService, challenge: ChallengeService, token: TokenService, mail: MailService, eventEmitter: EventEmitter2);
|
|
27
|
-
changeEmail(locale: string, userId: number, { email, password, pin }: ChangeEmailDto): Promise<{
|
|
29
|
+
changeEmail(locale: string, userId: number, { email, password, pin }: ChangeEmailDto, origin?: string): Promise<{
|
|
28
30
|
requireEmailVerification: boolean;
|
|
29
31
|
}>;
|
|
30
32
|
updatePreferences(locale: string, userId: number, { theme, language }: SetPreferencesDto): Promise<{
|
|
31
33
|
success: boolean;
|
|
32
34
|
}>;
|
|
33
|
-
confirmEmailVerificationMfa(locale: string, userId: number, { pin, challengeId, name }: EmailVerificationDto): Promise<{
|
|
35
|
+
confirmEmailVerificationMfa(locale: string, userId: number, { pin, challengeId, name }: EmailVerificationDto, sessionId: number | null): Promise<{
|
|
34
36
|
codes: string[];
|
|
35
37
|
token: string;
|
|
36
38
|
}>;
|
|
37
39
|
confirmEmailVerification(locale: string, userId: number, { pin, challengeId }: EmailVerificationDto): Promise<{
|
|
38
40
|
success: boolean;
|
|
39
41
|
}>;
|
|
40
|
-
sendEmailVerificationMfa(locale: string, userId: number, { email }: SendEmailVerificationDto): Promise<{
|
|
42
|
+
sendEmailVerificationMfa(locale: string, userId: number, { email }: SendEmailVerificationDto, origin?: string): Promise<{
|
|
41
43
|
challengeId: number;
|
|
42
44
|
}>;
|
|
43
|
-
sendEmailVerification(locale: string, userId: number, { email }: SendEmailVerificationDto): Promise<{
|
|
45
|
+
sendEmailVerification(locale: string, userId: number, { email }: SendEmailVerificationDto, origin?: string): Promise<{
|
|
44
46
|
challengeId: number;
|
|
45
47
|
}>;
|
|
46
|
-
sendCodeToRemove(locale: any, userId: any, email: any): Promise<{
|
|
48
|
+
sendCodeToRemove(locale: any, userId: any, email: any, origin?: string): Promise<{
|
|
47
49
|
challengeId: number;
|
|
48
50
|
}>;
|
|
49
51
|
getEmailIdentifier(userId: number): Promise<{
|
|
@@ -123,19 +125,30 @@ export declare class ProfileService {
|
|
|
123
125
|
deactivated_at: Date | null;
|
|
124
126
|
updated_at: Date;
|
|
125
127
|
}>;
|
|
128
|
+
/**
|
|
129
|
+
* Exclusão de conta pelo próprio usuário (exigida pelas lojas de aplicativos).
|
|
130
|
+
*
|
|
131
|
+
* Anonimiza em vez de apagar: os dados pessoais somem e o acesso é revogado
|
|
132
|
+
* em definitivo, mas as linhas continuam existindo para não quebrar registros
|
|
133
|
+
* fiscais e integridade referencial. Os identificadores (e-mail, CPF...) são
|
|
134
|
+
* embaralhados, o que libera o e-mail original para uma conta nova no futuro.
|
|
135
|
+
*/
|
|
136
|
+
deleteAccount(locale: string, userId: number, { password }: DeleteAccountDto): Promise<{
|
|
137
|
+
success: boolean;
|
|
138
|
+
}>;
|
|
126
139
|
updateAvatar(locale: string, userId: number, file: MulterFile): Promise<{
|
|
127
140
|
id: number;
|
|
128
141
|
path: string;
|
|
129
142
|
}>;
|
|
130
|
-
changePassword(locale: string, userId: number, { currentPassword, newPassword }: ChangePasswordDto, ipAddress?: string, userAgent?: string): Promise<{
|
|
143
|
+
changePassword(locale: string, userId: number, { currentPassword, newPassword }: ChangePasswordDto, ipAddress?: string, userAgent?: string, origin?: string): Promise<{
|
|
131
144
|
success: boolean;
|
|
132
145
|
}>;
|
|
133
146
|
generateRecoveryCodes(count?: number): string[];
|
|
134
147
|
createMfaRecoveryCodes(userId: number): Promise<string[]>;
|
|
135
|
-
getToken(
|
|
148
|
+
getToken(userId: number, sessionId: number | null): Promise<{
|
|
136
149
|
token: string;
|
|
137
150
|
}>;
|
|
138
|
-
verifyMfaTotp(locale: string, userId: number, token: string, secret: string, name?: string): Promise<{
|
|
151
|
+
verifyMfaTotp(locale: string, userId: number, token: string, secret: string, name?: string, sessionId?: number | null): Promise<{
|
|
139
152
|
codes: string[];
|
|
140
153
|
token: string;
|
|
141
154
|
}>;
|
|
@@ -144,13 +157,13 @@ export declare class ProfileService {
|
|
|
144
157
|
qrCode: any;
|
|
145
158
|
secret: string;
|
|
146
159
|
}>;
|
|
147
|
-
removeMfaTotp(locale: string, userId: number, mfaId: number, token: string): Promise<{
|
|
160
|
+
removeMfaTotp(locale: string, userId: number, mfaId: number, token: string, sessionId: number | null): Promise<{
|
|
148
161
|
token: string;
|
|
149
162
|
}>;
|
|
150
|
-
removeMfaEmail(locale: string, userId: number, mfaId: number, token: string, providedHash: string): Promise<{
|
|
163
|
+
removeMfaEmail(locale: string, userId: number, mfaId: number, token: string, providedHash: string, sessionId: number | null): Promise<{
|
|
151
164
|
token: string;
|
|
152
165
|
}>;
|
|
153
|
-
removeMfaWithRecoveryCode(locale: string, userId: number, mfaId: number, recoveryCode: string): Promise<{
|
|
166
|
+
removeMfaWithRecoveryCode(locale: string, userId: number, mfaId: number, recoveryCode: string, sessionId: number | null): Promise<{
|
|
154
167
|
token: string;
|
|
155
168
|
}>;
|
|
156
169
|
removeMfa(locale: string, userId: number, mfaId: number, data: {
|
|
@@ -158,10 +171,10 @@ export declare class ProfileService {
|
|
|
158
171
|
hash?: string;
|
|
159
172
|
verificationType?: 'totp' | 'email' | 'recovery' | 'webauthn';
|
|
160
173
|
assertionResponse?: any;
|
|
161
|
-
}, requestOrigin
|
|
174
|
+
}, requestOrigin: string | undefined, sessionId: number | null): Promise<{
|
|
162
175
|
token: string;
|
|
163
176
|
}>;
|
|
164
|
-
checkMfaBeforeAdd(locale: string, userId: number): Promise<{
|
|
177
|
+
checkMfaBeforeAdd(locale: string, userId: number, origin?: string): Promise<{
|
|
165
178
|
requiresVerification: boolean;
|
|
166
179
|
availableMethods?: undefined;
|
|
167
180
|
hasWebAuthn?: undefined;
|
|
@@ -180,7 +193,7 @@ export declare class ProfileService {
|
|
|
180
193
|
hasRecoveryCodes: boolean;
|
|
181
194
|
availableMethods?: undefined;
|
|
182
195
|
}>;
|
|
183
|
-
checkMfaBeforeRemove(locale: string, userId: number): Promise<{
|
|
196
|
+
checkMfaBeforeRemove(locale: string, userId: number, origin?: string): Promise<{
|
|
184
197
|
requiresVerification: boolean;
|
|
185
198
|
availableMethods: ("email" | "totp")[];
|
|
186
199
|
hasWebAuthn: boolean;
|
|
@@ -194,7 +207,7 @@ export declare class ProfileService {
|
|
|
194
207
|
}, requestOrigin?: string): Promise<{
|
|
195
208
|
success: boolean;
|
|
196
209
|
}>;
|
|
197
|
-
sendRecoveryCodesVerification(locale: string, userId: number): Promise<{
|
|
210
|
+
sendRecoveryCodesVerification(locale: string, userId: number, origin?: string): Promise<{
|
|
198
211
|
requiresVerification: boolean;
|
|
199
212
|
availableMethods?: undefined;
|
|
200
213
|
hasWebAuthn?: undefined;
|
|
@@ -221,24 +234,24 @@ export declare class ProfileService {
|
|
|
221
234
|
}, requestOrigin?: string): Promise<{
|
|
222
235
|
codes: string[];
|
|
223
236
|
}>;
|
|
224
|
-
generateWebAuthnRegistrationOptions(locale: string, userId: number, name: string, requestOrigin?: string): Promise<
|
|
237
|
+
generateWebAuthnRegistrationOptions(locale: string, userId: number, name: string, requestOrigin?: string): Promise<PublicKeyCredentialCreationOptionsJSON>;
|
|
225
238
|
verifyWebAuthnRegistration(locale: string, userId: number, name: string, attestationResponse: any, requestOrigin?: string): Promise<{
|
|
226
239
|
success: boolean;
|
|
227
240
|
codes: string[];
|
|
228
241
|
}>;
|
|
229
|
-
generateWebAuthnAuthenticationOptions(locale: string, userId: number, requestOrigin?: string): Promise<
|
|
242
|
+
generateWebAuthnAuthenticationOptions(locale: string, userId: number, requestOrigin?: string): Promise<PublicKeyCredentialRequestOptionsJSON>;
|
|
230
243
|
verifyWebAuthnAuthentication(userId: number, assertionResponse: any, requestOrigin?: string): Promise<{
|
|
231
244
|
success: boolean;
|
|
232
245
|
}>;
|
|
233
|
-
removeWebAuthnMfa(locale: string, userId: number, mfaId: number): Promise<{
|
|
246
|
+
removeWebAuthnMfa(locale: string, userId: number, mfaId: number, assertionResponse: any, requestOrigin?: string): Promise<{
|
|
234
247
|
success: boolean;
|
|
235
248
|
}>;
|
|
236
|
-
generateWebAuthnAuthenticationOptionsForLogin(locale: string, mfaToken: string): Promise<
|
|
249
|
+
generateWebAuthnAuthenticationOptionsForLogin(locale: string, mfaToken: string): Promise<PublicKeyCredentialRequestOptionsJSON>;
|
|
237
250
|
verifyWebAuthnAuthenticationForLogin(locale: string, mfaToken: string, assertionResponse: any): Promise<{
|
|
238
251
|
accessToken: string;
|
|
239
252
|
refreshToken: string;
|
|
240
253
|
}>;
|
|
241
|
-
getUserToken(userId: number): Promise<{
|
|
254
|
+
getUserToken(userId: number, sessionId: number | null): Promise<{
|
|
242
255
|
token: string;
|
|
243
256
|
}>;
|
|
244
257
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.service.d.ts","sourceRoot":"","sources":["../../src/profile/profile.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"profile.service.d.ts","sourceRoot":"","sources":["../../src/profile/profile.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EACR,sCAAsC,EACtC,qCAAqC,EAGxC,MAAM,wBAAwB,CAAC;AAShC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,c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