authhero 5.8.1 → 5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +135 -135
- package/dist/authhero.d.ts +17853 -72311
- package/dist/authhero.mjs +16401 -16771
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -0
- package/dist/types/adapters/cache/in-memory.d.ts +52 -0
- package/dist/types/adapters/cache/index.d.ts +2 -0
- package/dist/types/adapters/index.d.ts +1 -0
- package/dist/types/authentication-flows/auth0-migration.d.ts +53 -0
- package/dist/types/authentication-flows/authorization-code.d.ts +23 -0
- package/dist/types/authentication-flows/client-credentials.d.ts +16 -0
- package/dist/types/authentication-flows/common.d.ts +253 -0
- package/dist/types/authentication-flows/connection.d.ts +17 -0
- package/dist/types/authentication-flows/mfa.d.ts +49 -0
- package/dist/types/authentication-flows/passkey-enrollment.d.ts +19 -0
- package/dist/types/authentication-flows/password.d.ts +24 -0
- package/dist/types/authentication-flows/passwordless.d.ts +571 -0
- package/dist/types/authentication-flows/refresh-token-migration.d.ts +17 -0
- package/dist/types/authentication-flows/refresh-token.d.ts +15 -0
- package/dist/types/authentication-flows/resume.d.ts +22 -0
- package/dist/types/authentication-flows/silent.d.ts +25 -0
- package/dist/types/authentication-flows/ticket.d.ts +7 -0
- package/dist/types/authentication-flows/try-connection.d.ts +33 -0
- package/dist/types/authentication-flows/universal.d.ts +19 -0
- package/dist/types/build-hash.d.ts +7 -0
- package/dist/types/client/client-bundle.d.ts +1 -0
- package/dist/types/client/form-handler.d.ts +9 -0
- package/dist/types/client/incognito-handler.d.ts +5 -0
- package/dist/types/client/index.d.ts +1 -0
- package/dist/types/client/input-otp.d.ts +12 -0
- package/dist/types/client/password-toggle.d.ts +10 -0
- package/dist/types/client/user-agent-detector.d.ts +22 -0
- package/dist/types/components/AccountChangeEmailPage.d.ts +14 -0
- package/dist/types/components/AccountForm.d.ts +17 -0
- package/dist/types/components/AccountPage.d.ts +15 -0
- package/dist/types/components/AppLogo.d.ts +8 -0
- package/dist/types/components/AuthLayout.d.ts +18 -0
- package/dist/types/components/Button.d.ts +12 -0
- package/dist/types/components/ChangeEmailForm.d.ts +14 -0
- package/dist/types/components/ChangeEmailPage.d.ts +15 -0
- package/dist/types/components/ContinueForm.d.ts +13 -0
- package/dist/types/components/EmailValidatedForm.d.ts +12 -0
- package/dist/types/components/EmailValidatedPage.d.ts +11 -0
- package/dist/types/components/EnterCodeForm.d.ts +13 -0
- package/dist/types/components/EnterCodePage.d.ts +14 -0
- package/dist/types/components/EnterPasswordForm.d.ts +14 -0
- package/dist/types/components/EnterPasswordPage.d.ts +13 -0
- package/dist/types/components/ErrorMessage.d.ts +6 -0
- package/dist/types/components/Footer.d.ts +9 -0
- package/dist/types/components/ForgotPasswordForm.d.ts +14 -0
- package/dist/types/components/ForgotPasswordPage.d.ts +13 -0
- package/dist/types/components/ForgotPasswordSentPage.d.ts +11 -0
- package/dist/types/components/Form.d.ts +6 -0
- package/dist/types/components/FormNodePage.d.ts +16 -0
- package/dist/types/components/GoBack.d.ts +5 -0
- package/dist/types/components/GoogleLogo.d.ts +4 -0
- package/dist/types/components/Icon.d.ts +8 -0
- package/dist/types/components/IconEye.d.ts +8 -0
- package/dist/types/components/IconEyeSlash.d.ts +8 -0
- package/dist/types/components/IconPen.d.ts +7 -0
- package/dist/types/components/IdentifierForm.d.ts +16 -0
- package/dist/types/components/IdentifierPage.d.ts +15 -0
- package/dist/types/components/ImpersonateForm.d.ts +14 -0
- package/dist/types/components/ImpersonationPage.d.ts +13 -0
- package/dist/types/components/InvalidSessionPage.d.ts +11 -0
- package/dist/types/components/Layout.d.ts +11 -0
- package/dist/types/components/LoginForm.d.ts +15 -0
- package/dist/types/components/MessagePage.d.ts +13 -0
- package/dist/types/components/PasswordInput.d.ts +6 -0
- package/dist/types/components/PreSignUpConfirmationPage.d.ts +12 -0
- package/dist/types/components/PreSignUpPage.d.ts +12 -0
- package/dist/types/components/ResetPasswordForm.d.ts +14 -0
- package/dist/types/components/ResetPasswordPage.d.ts +12 -0
- package/dist/types/components/SignUpForm.d.ts +15 -0
- package/dist/types/components/SignUpPage.d.ts +14 -0
- package/dist/types/components/SocialButton.d.ts +10 -0
- package/dist/types/components/Spinner.d.ts +6 -0
- package/dist/types/components/Trans.d.ts +8 -0
- package/dist/types/components/UnverifiedEmailPage.d.ts +11 -0
- package/dist/types/components/UserNotFoundPage.d.ts +12 -0
- package/dist/types/components/VippsLogo.d.ts +4 -0
- package/dist/types/components/index.d.ts +34 -0
- package/dist/types/components/stories/AccountForm.stories.d.ts +13 -0
- package/dist/types/components/stories/AuthLayout.stories.d.ts +27 -0
- package/dist/types/components/stories/ChangeEmailForm.stories.d.ts +11 -0
- package/dist/types/components/stories/ContinueForm.stories.d.ts +10 -0
- package/dist/types/components/stories/EnterCodeForm.stories.d.ts +9 -0
- package/dist/types/components/stories/EnterPasswordForm.stories.d.ts +22 -0
- package/dist/types/components/stories/IdentifierForm.stories.d.ts +42 -0
- package/dist/types/components/stories/IdentifierPage.stories.d.ts +33 -0
- package/dist/types/components/stories/ImpersonateForm.stories.d.ts +11 -0
- package/dist/types/components/stories/LoginForm.stories.d.ts +12 -0
- package/dist/types/components/ui/button.d.ts +12 -0
- package/dist/types/components/ui/card.d.ts +30 -0
- package/dist/types/components/ui/input-otp.d.ts +31 -0
- package/dist/types/components/ui/input.d.ts +15 -0
- package/dist/types/components/ui/label.d.ts +9 -0
- package/dist/types/constants/defaultBranding.d.ts +2 -0
- package/dist/types/constants/defaultTheme.d.ts +2 -0
- package/dist/types/constants/index.d.ts +2 -0
- package/dist/types/constants.d.ts +15 -0
- package/dist/types/email-services/index.d.ts +3 -0
- package/dist/types/email-services/mailgun.d.ts +18 -0
- package/dist/types/email-services/postmark.d.ts +14 -0
- package/dist/types/email-services/resend.d.ts +14 -0
- package/dist/types/emails/defaults/Layout.d.ts +12 -0
- package/dist/types/emails/defaults/PrimaryButton.d.ts +11 -0
- package/dist/types/emails/defaults/ResetEmail.d.ts +1 -0
- package/dist/types/emails/defaults/ResetEmailByCode.d.ts +1 -0
- package/dist/types/emails/defaults/UserInvitation.d.ts +1 -0
- package/dist/types/emails/defaults/VerifyEmail.d.ts +1 -0
- package/dist/types/emails/defaults/VerifyEmailByCode.d.ts +1 -0
- package/dist/types/emails/defaults/WelcomeEmail.d.ts +1 -0
- package/dist/types/emails/defaults/compiled.d.ts +2 -0
- package/dist/types/emails/defaults/index.d.ts +6 -0
- package/dist/types/emails/defaults/subjects.d.ts +2 -0
- package/dist/types/emails/index.d.ts +70 -0
- package/dist/types/emails/render.d.ts +41 -0
- package/dist/types/errors/is-unique-constraint-error.d.ts +8 -0
- package/dist/types/errors/json-http-exception.d.ts +5 -0
- package/dist/types/errors/redirect-exception.d.ts +6 -0
- package/dist/types/generated/locale-types.d.ts +690 -0
- package/dist/types/helpers/cache-wrapper.d.ts +23 -0
- package/dist/types/helpers/client-assertion.d.ts +49 -0
- package/dist/types/helpers/client-keys.d.ts +27 -0
- package/dist/types/helpers/client.d.ts +496 -0
- package/dist/types/helpers/dcr/constraint-enforcement.d.ts +24 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +83 -0
- package/dist/types/helpers/dcr/mint-iat.d.ts +14 -0
- package/dist/types/helpers/dcr/mint-token.d.ts +7 -0
- package/dist/types/helpers/dcr/validate-connect-origin.d.ts +20 -0
- package/dist/types/helpers/dcr/verify-token.d.ts +8 -0
- package/dist/types/helpers/default-destinations.d.ts +55 -0
- package/dist/types/helpers/entity-hooks-wrapper.d.ts +43 -0
- package/dist/types/helpers/hook-events.d.ts +20 -0
- package/dist/types/helpers/hook-user-payload.d.ts +8 -0
- package/dist/types/helpers/hrd.d.ts +3 -0
- package/dist/types/helpers/logging.d.ts +65 -0
- package/dist/types/helpers/outbox-cleanup.d.ts +10 -0
- package/dist/types/helpers/outbox-destinations/index.d.ts +2 -0
- package/dist/types/helpers/outbox-destinations/log-streams.d.ts +66 -0
- package/dist/types/helpers/outbox-destinations/logs.d.ts +20 -0
- package/dist/types/helpers/outbox-destinations/registration-finalizer.d.ts +29 -0
- package/dist/types/helpers/outbox-destinations/webhooks.d.ts +57 -0
- package/dist/types/helpers/outbox-relay.d.ts +34 -0
- package/dist/types/helpers/password-policy.d.ts +54 -0
- package/dist/types/helpers/request-object.d.ts +40 -0
- package/dist/types/helpers/run-outbox-relay.d.ts +58 -0
- package/dist/types/helpers/saml.d.ts +1 -0
- package/dist/types/helpers/scope-claims.d.ts +4 -0
- package/dist/types/helpers/scopes-permissions.d.ts +38 -0
- package/dist/types/helpers/server-timing.d.ts +12 -0
- package/dist/types/helpers/service-token.d.ts +54 -0
- package/dist/types/helpers/set-tenant-id.d.ts +15 -0
- package/dist/types/helpers/signing-keys.d.ts +16 -0
- package/dist/types/helpers/try-connection-client.d.ts +15 -0
- package/dist/types/helpers/user-linking.d.ts +14 -0
- package/dist/types/helpers/user-session-cleanup.d.ts +21 -0
- package/dist/types/helpers/users.d.ts +46 -0
- package/dist/types/helpers/wait-until.d.ts +21 -0
- package/dist/types/hooks/addDataHooks.d.ts +16 -0
- package/dist/types/hooks/code-executor/local.d.ts +13 -0
- package/dist/types/hooks/codehooks.d.ts +70 -0
- package/dist/types/hooks/formhooks.d.ts +99 -0
- package/dist/types/hooks/helpers/token-api.d.ts +17 -0
- package/dist/types/hooks/index.d.ts +20 -0
- package/dist/types/hooks/link-users.d.ts +29 -0
- package/dist/types/hooks/pagehooks.d.ts +16 -0
- package/dist/types/hooks/post-user-login.d.ts +29 -0
- package/dist/types/hooks/pre-defined/account-linking.d.ts +73 -0
- package/dist/types/hooks/pre-defined/ensure-username.d.ts +86 -0
- package/dist/types/hooks/pre-defined/index.d.ts +23 -0
- package/dist/types/hooks/pre-defined/set-preferred-username.d.ts +26 -0
- package/dist/types/hooks/templatehooks.d.ts +29 -0
- package/dist/types/hooks/user-deletion.d.ts +14 -0
- package/dist/types/hooks/user-registration.d.ts +88 -0
- package/dist/types/hooks/user-update.d.ts +16 -0
- package/dist/types/hooks/validate-signup.d.ts +34 -0
- package/dist/types/hooks/webhooks.d.ts +35 -0
- package/dist/types/i18n/index.d.ts +77 -0
- package/dist/types/index.d.ts +16022 -0
- package/dist/types/locales/index.d.ts +9 -0
- package/dist/types/middlewares/apply-config.d.ts +14 -0
- package/dist/types/middlewares/authentication.d.ts +26 -0
- package/dist/types/middlewares/client-info.d.ts +8 -0
- package/dist/types/middlewares/index.d.ts +6 -0
- package/dist/types/middlewares/outbox.d.ts +24 -0
- package/dist/types/middlewares/register-component.d.ts +10 -0
- package/dist/types/middlewares/tenant.d.ts +12 -0
- package/dist/types/migration-providers/auth0.d.ts +3 -0
- package/dist/types/migration-providers/index.d.ts +5 -0
- package/dist/types/migration-providers/types.d.ts +32 -0
- package/dist/types/routes/auth-api/account.d.ts +36 -0
- package/dist/types/routes/auth-api/authenticate.d.ts +31 -0
- package/dist/types/routes/auth-api/authorize.d.ts +239 -0
- package/dist/types/routes/auth-api/callback.d.ts +234 -0
- package/dist/types/routes/auth-api/connect-start.d.ts +52 -0
- package/dist/types/routes/auth-api/dbconnections.d.ts +43 -0
- package/dist/types/routes/auth-api/index.d.ts +1580 -0
- package/dist/types/routes/auth-api/logout.d.ts +20 -0
- package/dist/types/routes/auth-api/oidc-logout.d.ts +52 -0
- package/dist/types/routes/auth-api/passwordless.d.ts +154 -0
- package/dist/types/routes/auth-api/register/index.d.ts +159 -0
- package/dist/types/routes/auth-api/register/shared.d.ts +30 -0
- package/dist/types/routes/auth-api/revoke.d.ts +73 -0
- package/dist/types/routes/auth-api/token.d.ts +412 -0
- package/dist/types/routes/auth-api/userinfo.d.ts +84 -0
- package/dist/types/routes/auth-api/well-known.d.ts +74 -0
- package/dist/types/routes/management-api/action-executions.d.ts +90 -0
- package/dist/types/routes/management-api/action-triggers.d.ts +118 -0
- package/dist/types/routes/management-api/actions.d.ts +673 -0
- package/dist/types/routes/management-api/analytics.d.ts +18 -0
- package/dist/types/routes/management-api/attack-protection.d.ts +189 -0
- package/dist/types/routes/management-api/authentication-methods.d.ts +115 -0
- package/dist/types/routes/management-api/branding.d.ts +402 -0
- package/dist/types/routes/management-api/client-grants.d.ts +183 -0
- package/dist/types/routes/management-api/client-registration-tokens.d.ts +35 -0
- package/dist/types/routes/management-api/clients.d.ts +995 -0
- package/dist/types/routes/management-api/connections.d.ts +872 -0
- package/dist/types/routes/management-api/custom-domains.d.ts +266 -0
- package/dist/types/routes/management-api/email-templates.d.ts +205 -0
- package/dist/types/routes/management-api/emails.d.ts +124 -0
- package/dist/types/routes/management-api/failed-events.d.ts +146 -0
- package/dist/types/routes/management-api/flows.d.ts +438 -0
- package/dist/types/routes/management-api/forms.d.ts +4090 -0
- package/dist/types/routes/management-api/guardian.d.ts +211 -0
- package/dist/types/routes/management-api/hook-code.d.ts +142 -0
- package/dist/types/routes/management-api/hooks.d.ts +405 -0
- package/dist/types/routes/management-api/index.d.ts +13277 -0
- package/dist/types/routes/management-api/keys.d.ts +98 -0
- package/dist/types/routes/management-api/log-streams.d.ts +170 -0
- package/dist/types/routes/management-api/logs.d.ts +159 -0
- package/dist/types/routes/management-api/migration-sources.d.ts +173 -0
- package/dist/types/routes/management-api/organizations.d.ts +896 -0
- package/dist/types/routes/management-api/prompts.d.ts +150 -0
- package/dist/types/routes/management-api/refresh_tokens.d.ts +66 -0
- package/dist/types/routes/management-api/resource-servers.d.ts +321 -0
- package/dist/types/routes/management-api/roles.d.ts +260 -0
- package/dist/types/routes/management-api/sessions.d.ts +78 -0
- package/dist/types/routes/management-api/stats.d.ts +44 -0
- package/dist/types/routes/management-api/tenants.d.ts +546 -0
- package/dist/types/routes/management-api/themes.d.ts +265 -0
- package/dist/types/routes/management-api/tickets.d.ts +75 -0
- package/dist/types/routes/management-api/users-by-email.d.ts +90 -0
- package/dist/types/routes/management-api/users.d.ts +1085 -0
- package/dist/types/routes/saml/index.d.ts +64 -0
- package/dist/types/routes/saml/samlp.d.ts +64 -0
- package/dist/types/routes/setup.d.ts +6 -0
- package/dist/types/routes/universal-login/account-change-email-confirmation.d.ts +30 -0
- package/dist/types/routes/universal-login/account-change-email-verify.d.ts +66 -0
- package/dist/types/routes/universal-login/account-change-email.d.ts +58 -0
- package/dist/types/routes/universal-login/account.d.ts +64 -0
- package/dist/types/routes/universal-login/common.d.ts +1482 -0
- package/dist/types/routes/universal-login/continue.d.ts +37 -0
- package/dist/types/routes/universal-login/enter-password.d.ts +49 -0
- package/dist/types/routes/universal-login/error-handler.d.ts +14 -0
- package/dist/types/routes/universal-login/error-page.d.ts +32 -0
- package/dist/types/routes/universal-login/error.d.ts +20 -0
- package/dist/types/routes/universal-login/flow-api.d.ts +381 -0
- package/dist/types/routes/universal-login/flow-widget.d.ts +23 -0
- package/dist/types/routes/universal-login/forgot-password.d.ts +32 -0
- package/dist/types/routes/universal-login/form-node.d.ts +74 -0
- package/dist/types/routes/universal-login/identifier.d.ts +55 -0
- package/dist/types/routes/universal-login/impersonate.d.ts +71 -0
- package/dist/types/routes/universal-login/index.d.ts +748 -0
- package/dist/types/routes/universal-login/info.d.ts +20 -0
- package/dist/types/routes/universal-login/invalid-session.d.ts +19 -0
- package/dist/types/routes/universal-login/otp-challenge.d.ts +54 -0
- package/dist/types/routes/universal-login/pre-signup-sent.d.ts +19 -0
- package/dist/types/routes/universal-login/pre-signup.d.ts +32 -0
- package/dist/types/routes/universal-login/reset-password.d.ts +39 -0
- package/dist/types/routes/universal-login/sanitization-utils.d.ts +55 -0
- package/dist/types/routes/universal-login/screen-api.d.ts +20 -0
- package/dist/types/routes/universal-login/screens/accept-invitation.d.ts +13 -0
- package/dist/types/routes/universal-login/screens/account-delete.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account-helpers.d.ts +13 -0
- package/dist/types/routes/universal-login/screens/account-linked.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account-mfa-phone-enrollment.d.ts +10 -0
- package/dist/types/routes/universal-login/screens/account-mfa-totp-enrollment.d.ts +10 -0
- package/dist/types/routes/universal-login/screens/account-passkeys.d.ts +10 -0
- package/dist/types/routes/universal-login/screens/account-profile.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account-security.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/account.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/connect-consent.d.ts +9 -0
- package/dist/types/routes/universal-login/screens/connect-tenant-select.d.ts +13 -0
- package/dist/types/routes/universal-login/screens/email-otp-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/enter-password.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/forgot-password.d.ts +11 -0
- package/dist/types/routes/universal-login/screens/identifier.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/impersonate.d.ts +15 -0
- package/dist/types/routes/universal-login/screens/index.d.ts +29 -0
- package/dist/types/routes/universal-login/screens/login-passwordless-identifier.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/login.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/magic-link-sent.d.ts +11 -0
- package/dist/types/routes/universal-login/screens/mfa-login-options.d.ts +21 -0
- package/dist/types/routes/universal-login/screens/mfa-phone-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/mfa-phone-enrollment.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/mfa-totp-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/mfa-totp-enrollment.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/passkey-challenge.d.ts +16 -0
- package/dist/types/routes/universal-login/screens/passkey-enrollment-nudge.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/passkey-enrollment.d.ts +11 -0
- package/dist/types/routes/universal-login/screens/passkey-utils.d.ts +100 -0
- package/dist/types/routes/universal-login/screens/registry.d.ts +28 -0
- package/dist/types/routes/universal-login/screens/reset-password-code.d.ts +18 -0
- package/dist/types/routes/universal-login/screens/reset-password.d.ts +36 -0
- package/dist/types/routes/universal-login/screens/signup.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/sms-otp-challenge.d.ts +14 -0
- package/dist/types/routes/universal-login/screens/try-connection-result.d.ts +12 -0
- package/dist/types/routes/universal-login/screens/types.d.ts +167 -0
- package/dist/types/routes/universal-login/signup.d.ts +54 -0
- package/dist/types/routes/universal-login/u2-form-node.d.ts +93 -0
- package/dist/types/routes/universal-login/u2-index.d.ts +337 -0
- package/dist/types/routes/universal-login/u2-routes.d.ts +262 -0
- package/dist/types/routes/universal-login/u2-widget-page.d.ts +187 -0
- package/dist/types/routes/universal-login/universal-login-template.d.ts +55 -0
- package/dist/types/routes/universal-login/validate-email.d.ts +20 -0
- package/dist/types/routes/universal-login/widget-routes.d.ts +81 -0
- package/dist/types/seed.d.ts +86 -0
- package/dist/types/state-machines/index.d.ts +1 -0
- package/dist/types/state-machines/login-session.d.ts +173 -0
- package/dist/types/storybook-utils/HonoJSXWrapper.d.ts +43 -0
- package/dist/types/strategies/apple.d.ts +24 -0
- package/dist/types/strategies/facebook.d.ts +20 -0
- package/dist/types/strategies/github.d.ts +23 -0
- package/dist/types/strategies/google-oauth2.d.ts +43 -0
- package/dist/types/strategies/index.d.ts +69 -0
- package/dist/types/strategies/internal-oauth2.d.ts +17 -0
- package/dist/types/strategies/microsoft.d.ts +24 -0
- package/dist/types/strategies/oauth2.d.ts +38 -0
- package/dist/types/strategies/oidc.d.ts +38 -0
- package/dist/types/strategies/saml.d.ts +9 -0
- package/dist/types/strategies/vipps.d.ts +16 -0
- package/dist/types/styles/index.d.ts +9 -0
- package/dist/types/styles/tailwind.d.ts +1 -0
- package/dist/types/types/Auth0Client.d.ts +9 -0
- package/dist/types/types/AuthError.d.ts +14 -0
- package/dist/types/types/AuthHeroConfig.d.ts +415 -0
- package/dist/types/types/Bindings.d.ts +51 -0
- package/dist/types/types/GrantFlowResult.d.ts +22 -0
- package/dist/types/types/Hooks.d.ts +240 -0
- package/dist/types/types/IdToken.d.ts +30 -0
- package/dist/types/types/UserInfo.d.ts +8 -0
- package/dist/types/types/Variables.d.ts +33 -0
- package/dist/types/types/auth0/Query.d.ts +12 -0
- package/dist/types/types/auth0/Totals.d.ts +11 -0
- package/dist/types/types/auth0/UserResponse.d.ts +46 -0
- package/dist/types/types/auth0/index.d.ts +3 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/saml.d.ts +1 -0
- package/dist/types/utils/append-log.d.ts +10 -0
- package/dist/types/utils/auth-header.d.ts +18 -0
- package/dist/types/utils/auth0-upstream.d.ts +60 -0
- package/dist/types/utils/authIframe.d.ts +11 -0
- package/dist/types/utils/client-info.d.ts +47 -0
- package/dist/types/utils/color.d.ts +23 -0
- package/dist/types/utils/connections.d.ts +11 -0
- package/dist/types/utils/cookies.d.ts +28 -0
- package/dist/types/utils/crypto.d.ts +2 -0
- package/dist/types/utils/deep-merge.d.ts +6 -0
- package/dist/types/utils/define-route.d.ts +20 -0
- package/dist/types/utils/encryption.d.ts +22 -0
- package/dist/types/utils/entity-id.d.ts +13 -0
- package/dist/types/utils/fetchAll.d.ts +60 -0
- package/dist/types/utils/form-post.d.ts +1 -0
- package/dist/types/utils/id-token-hash.d.ts +1 -0
- package/dist/types/utils/incognito.d.ts +11 -0
- package/dist/types/utils/instance-to-json.d.ts +8 -0
- package/dist/types/utils/ip.d.ts +8 -0
- package/dist/types/utils/is-valid-redirect-url.d.ts +4 -0
- package/dist/types/utils/jwk-alg.d.ts +20 -0
- package/dist/types/utils/jwks.d.ts +41 -0
- package/dist/types/utils/jwt.d.ts +15 -0
- package/dist/types/utils/organization-id.d.ts +2 -0
- package/dist/types/utils/otp.d.ts +1 -0
- package/dist/types/utils/refresh-token-format.d.ts +20 -0
- package/dist/types/utils/safe-compare.d.ts +1 -0
- package/dist/types/utils/sort.d.ts +4 -0
- package/dist/types/utils/ssrf-fetch.d.ts +44 -0
- package/dist/types/utils/ulid.d.ts +1 -0
- package/dist/types/utils/url.d.ts +16 -0
- package/dist/types/utils/user-id.d.ts +2 -0
- package/dist/types/utils/username-password-provider.d.ts +67 -0
- package/dist/types/utils/username.d.ts +11 -0
- package/dist/types/variables.d.ts +4 -0
- package/package.json +11 -11
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
import { z } from "@hono/zod-openapi";
|
|
3
|
+
import { Bindings, Variables } from "../types";
|
|
4
|
+
export declare const passwordlessGrantParamsSchema: z.ZodObject<{
|
|
5
|
+
client_id: z.ZodString;
|
|
6
|
+
username: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
7
|
+
otp: z.ZodString;
|
|
8
|
+
authParams: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
client_id: z.ZodString;
|
|
10
|
+
act_as: z.ZodOptional<z.ZodString>;
|
|
11
|
+
response_type: z.ZodOptional<z.ZodEnum<typeof import("@authhero/adapter-interfaces").AuthorizationResponseType>>;
|
|
12
|
+
response_mode: z.ZodOptional<z.ZodEnum<typeof import("@authhero/adapter-interfaces").AuthorizationResponseMode>>;
|
|
13
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
14
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
15
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
16
|
+
state: z.ZodOptional<z.ZodString>;
|
|
17
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
18
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
19
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
20
|
+
code_challenge_method: z.ZodOptional<z.ZodEnum<typeof import("@authhero/adapter-interfaces").CodeChallengeMethod>>;
|
|
21
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
22
|
+
username: z.ZodOptional<z.ZodString>;
|
|
23
|
+
ui_locales: z.ZodOptional<z.ZodString>;
|
|
24
|
+
max_age: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
acr_values: z.ZodOptional<z.ZodString>;
|
|
26
|
+
claims: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
userinfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
28
|
+
essential: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
30
|
+
values: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
31
|
+
}, z.core.$strip>]>>>>;
|
|
32
|
+
id_token: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
33
|
+
essential: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
35
|
+
values: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
36
|
+
}, z.core.$strip>]>>>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
enforceIpCheck: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare function passwordlessGrantUser(ctx: Context<{
|
|
43
|
+
Bindings: Bindings;
|
|
44
|
+
Variables: Variables;
|
|
45
|
+
}>, { client_id, username, otp, authParams, enforceIpCheck, }: z.input<typeof passwordlessGrantParamsSchema>): Promise<{
|
|
46
|
+
user: {
|
|
47
|
+
connection: string;
|
|
48
|
+
email_verified: boolean;
|
|
49
|
+
created_at: string;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
user_id: string;
|
|
52
|
+
provider: string;
|
|
53
|
+
is_social: boolean;
|
|
54
|
+
login_count: number;
|
|
55
|
+
name?: string | undefined;
|
|
56
|
+
username?: string | undefined;
|
|
57
|
+
given_name?: string | undefined;
|
|
58
|
+
phone_number?: string | undefined;
|
|
59
|
+
phone_verified?: boolean | undefined;
|
|
60
|
+
family_name?: string | undefined;
|
|
61
|
+
profileData?: string | undefined;
|
|
62
|
+
address?: {
|
|
63
|
+
formatted?: string | undefined;
|
|
64
|
+
street_address?: string | undefined;
|
|
65
|
+
locality?: string | undefined;
|
|
66
|
+
region?: string | undefined;
|
|
67
|
+
postal_code?: string | undefined;
|
|
68
|
+
country?: string | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
nickname?: string | undefined;
|
|
71
|
+
picture?: string | undefined;
|
|
72
|
+
locale?: string | undefined;
|
|
73
|
+
linked_to?: string | undefined;
|
|
74
|
+
app_metadata?: any;
|
|
75
|
+
user_metadata?: any;
|
|
76
|
+
middle_name?: string | undefined;
|
|
77
|
+
preferred_username?: string | undefined;
|
|
78
|
+
profile?: string | undefined;
|
|
79
|
+
website?: string | undefined;
|
|
80
|
+
gender?: string | undefined;
|
|
81
|
+
birthdate?: string | undefined;
|
|
82
|
+
zoneinfo?: string | undefined;
|
|
83
|
+
verify_email?: boolean | undefined;
|
|
84
|
+
last_ip?: string | undefined;
|
|
85
|
+
last_login?: string | undefined;
|
|
86
|
+
registration_completed_at?: string | undefined;
|
|
87
|
+
email?: string | undefined;
|
|
88
|
+
identities?: {
|
|
89
|
+
connection: string;
|
|
90
|
+
user_id: string;
|
|
91
|
+
provider: string;
|
|
92
|
+
isSocial: boolean;
|
|
93
|
+
email?: string | undefined;
|
|
94
|
+
email_verified?: boolean | undefined;
|
|
95
|
+
phone_number?: string | undefined;
|
|
96
|
+
phone_verified?: boolean | undefined;
|
|
97
|
+
username?: string | undefined;
|
|
98
|
+
access_token?: string | undefined;
|
|
99
|
+
access_token_secret?: string | undefined;
|
|
100
|
+
refresh_token?: string | undefined;
|
|
101
|
+
profileData?: {
|
|
102
|
+
[x: string]: any;
|
|
103
|
+
email?: string | undefined;
|
|
104
|
+
email_verified?: boolean | undefined;
|
|
105
|
+
name?: string | undefined;
|
|
106
|
+
username?: string | undefined;
|
|
107
|
+
given_name?: string | undefined;
|
|
108
|
+
phone_number?: string | undefined;
|
|
109
|
+
phone_verified?: boolean | undefined;
|
|
110
|
+
family_name?: string | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
};
|
|
114
|
+
client: {
|
|
115
|
+
created_at: string;
|
|
116
|
+
updated_at: string;
|
|
117
|
+
name: string;
|
|
118
|
+
global: boolean;
|
|
119
|
+
is_first_party: boolean;
|
|
120
|
+
oidc_conformant: boolean;
|
|
121
|
+
auth0_conformant: boolean;
|
|
122
|
+
sso: boolean;
|
|
123
|
+
sso_disabled: boolean;
|
|
124
|
+
cross_origin_authentication: boolean;
|
|
125
|
+
custom_login_page_on: boolean;
|
|
126
|
+
require_pushed_authorization_requests: boolean;
|
|
127
|
+
require_proof_of_possession: boolean;
|
|
128
|
+
client_id: string;
|
|
129
|
+
tenant: {
|
|
130
|
+
created_at: string;
|
|
131
|
+
updated_at: string;
|
|
132
|
+
audience: string;
|
|
133
|
+
friendly_name: string;
|
|
134
|
+
sender_email: string;
|
|
135
|
+
sender_name: string;
|
|
136
|
+
id: string;
|
|
137
|
+
picture_url?: string | undefined;
|
|
138
|
+
support_email?: string | undefined;
|
|
139
|
+
support_url?: string | undefined;
|
|
140
|
+
session_lifetime?: number | undefined;
|
|
141
|
+
idle_session_lifetime?: number | undefined;
|
|
142
|
+
ephemeral_session_lifetime?: number | undefined;
|
|
143
|
+
idle_ephemeral_session_lifetime?: number | undefined;
|
|
144
|
+
session_cookie?: {
|
|
145
|
+
mode?: "persistent" | "non-persistent" | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
allowed_logout_urls?: string[] | undefined;
|
|
148
|
+
default_redirection_uri?: string | undefined;
|
|
149
|
+
default_client_id?: string | undefined;
|
|
150
|
+
enabled_locales?: string[] | undefined;
|
|
151
|
+
default_directory?: string | undefined;
|
|
152
|
+
error_page?: {
|
|
153
|
+
html?: string | undefined;
|
|
154
|
+
show_log_link?: boolean | undefined;
|
|
155
|
+
url?: string | undefined;
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
flags?: {
|
|
158
|
+
allow_changing_enable_sso?: boolean | undefined;
|
|
159
|
+
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
160
|
+
allow_legacy_ro_grant_types?: boolean | undefined;
|
|
161
|
+
allow_legacy_tokeninfo_endpoint?: boolean | undefined;
|
|
162
|
+
change_pwd_flow_v1?: boolean | undefined;
|
|
163
|
+
custom_domains_provisioning?: boolean | undefined;
|
|
164
|
+
dashboard_insights_view?: boolean | undefined;
|
|
165
|
+
dashboard_log_streams_next?: boolean | undefined;
|
|
166
|
+
disable_clickjack_protection_headers?: boolean | undefined;
|
|
167
|
+
disable_fields_map_fix?: boolean | undefined;
|
|
168
|
+
disable_impersonation?: boolean | undefined;
|
|
169
|
+
disable_management_api_sms_obfuscation?: boolean | undefined;
|
|
170
|
+
enable_adfs_waad_email_verification?: boolean | undefined;
|
|
171
|
+
enable_apis_section?: boolean | undefined;
|
|
172
|
+
enable_client_connections?: boolean | undefined;
|
|
173
|
+
enable_custom_domain_in_emails?: boolean | undefined;
|
|
174
|
+
enable_dynamic_client_registration?: boolean | undefined;
|
|
175
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
176
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
177
|
+
allow_http_return_to?: string[] | undefined;
|
|
178
|
+
enable_idtoken_api2?: boolean | undefined;
|
|
179
|
+
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
180
|
+
enable_legacy_profile?: boolean | undefined;
|
|
181
|
+
enable_pipeline2?: boolean | undefined;
|
|
182
|
+
enable_public_signup_user_exists_error?: boolean | undefined;
|
|
183
|
+
enable_sso?: boolean | undefined;
|
|
184
|
+
enforce_client_authentication_on_passwordless_start?: boolean | undefined;
|
|
185
|
+
genai_trial?: boolean | undefined;
|
|
186
|
+
improved_signup_bot_detection_in_classic?: boolean | undefined;
|
|
187
|
+
mfa_show_factor_list_on_enrollment?: boolean | undefined;
|
|
188
|
+
no_disclose_enterprise_connections?: boolean | undefined;
|
|
189
|
+
remove_alg_from_jwks?: boolean | undefined;
|
|
190
|
+
revoke_refresh_token_grant?: boolean | undefined;
|
|
191
|
+
trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
|
|
192
|
+
use_scope_descriptions_for_consent?: boolean | undefined;
|
|
193
|
+
inherit_global_permissions_in_organizations?: boolean | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
sandbox_version?: string | undefined;
|
|
196
|
+
legacy_sandbox_version?: string | undefined;
|
|
197
|
+
sandbox_versions_available?: string[] | undefined;
|
|
198
|
+
change_password?: {
|
|
199
|
+
enabled?: boolean | undefined;
|
|
200
|
+
html?: string | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
guardian_mfa_page?: {
|
|
203
|
+
enabled?: boolean | undefined;
|
|
204
|
+
html?: string | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
device_flow?: {
|
|
207
|
+
charset?: "base20" | "digits" | undefined;
|
|
208
|
+
mask?: string | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
default_token_quota?: {
|
|
211
|
+
clients?: {
|
|
212
|
+
client_credentials?: Record<string, any> | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
organizations?: {
|
|
215
|
+
client_credentials?: Record<string, any> | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
} | null | undefined;
|
|
218
|
+
default_audience?: string | undefined;
|
|
219
|
+
default_organization?: string | undefined;
|
|
220
|
+
sessions?: {
|
|
221
|
+
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
oidc_logout?: {
|
|
224
|
+
rp_logout_end_session_endpoint_discovery?: boolean | undefined;
|
|
225
|
+
} | undefined;
|
|
226
|
+
allow_organization_name_in_authentication_api?: boolean | undefined;
|
|
227
|
+
customize_mfa_in_postlogin_action?: boolean | undefined;
|
|
228
|
+
acr_values_supported?: string[] | undefined;
|
|
229
|
+
mtls?: {
|
|
230
|
+
enable_endpoint_aliases?: boolean | undefined;
|
|
231
|
+
} | null | undefined;
|
|
232
|
+
pushed_authorization_requests_supported?: boolean | undefined;
|
|
233
|
+
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
234
|
+
attack_protection?: {
|
|
235
|
+
breached_password_detection?: {
|
|
236
|
+
enabled?: boolean | undefined;
|
|
237
|
+
shields?: string[] | undefined;
|
|
238
|
+
admin_notification_frequency?: string[] | undefined;
|
|
239
|
+
method?: string | undefined;
|
|
240
|
+
stage?: {
|
|
241
|
+
"pre-user-registration"?: {
|
|
242
|
+
shields?: string[] | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
"pre-change-password"?: {
|
|
245
|
+
shields?: string[] | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
brute_force_protection?: {
|
|
250
|
+
enabled?: boolean | undefined;
|
|
251
|
+
shields?: string[] | undefined;
|
|
252
|
+
allowlist?: string[] | undefined;
|
|
253
|
+
mode?: string | undefined;
|
|
254
|
+
max_attempts?: number | undefined;
|
|
255
|
+
} | undefined;
|
|
256
|
+
suspicious_ip_throttling?: {
|
|
257
|
+
enabled?: boolean | undefined;
|
|
258
|
+
shields?: string[] | undefined;
|
|
259
|
+
allowlist?: string[] | undefined;
|
|
260
|
+
stage?: {
|
|
261
|
+
"pre-login"?: {
|
|
262
|
+
max_attempts?: number | undefined;
|
|
263
|
+
rate?: number | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
"pre-user-registration"?: {
|
|
266
|
+
max_attempts?: number | undefined;
|
|
267
|
+
rate?: number | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
} | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
mfa?: {
|
|
273
|
+
policy?: "never" | "always" | undefined;
|
|
274
|
+
factors?: {
|
|
275
|
+
sms: boolean;
|
|
276
|
+
otp: boolean;
|
|
277
|
+
email: boolean;
|
|
278
|
+
push_notification: boolean;
|
|
279
|
+
webauthn_roaming: boolean;
|
|
280
|
+
webauthn_platform: boolean;
|
|
281
|
+
recovery_code: boolean;
|
|
282
|
+
duo: boolean;
|
|
283
|
+
} | undefined;
|
|
284
|
+
sms_provider?: {
|
|
285
|
+
provider?: "twilio" | "vonage" | "aws_sns" | "phone_message_hook" | undefined;
|
|
286
|
+
} | undefined;
|
|
287
|
+
twilio?: {
|
|
288
|
+
sid?: string | undefined;
|
|
289
|
+
auth_token?: string | undefined;
|
|
290
|
+
from?: string | undefined;
|
|
291
|
+
messaging_service_sid?: string | undefined;
|
|
292
|
+
} | undefined;
|
|
293
|
+
phone_message?: {
|
|
294
|
+
message?: string | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
} | undefined;
|
|
297
|
+
is_control_plane?: boolean | undefined;
|
|
298
|
+
};
|
|
299
|
+
connections: {
|
|
300
|
+
created_at: string;
|
|
301
|
+
updated_at: string;
|
|
302
|
+
name: string;
|
|
303
|
+
strategy: string;
|
|
304
|
+
options: {
|
|
305
|
+
kid?: string | undefined;
|
|
306
|
+
team_id?: string | undefined;
|
|
307
|
+
realms?: string | undefined;
|
|
308
|
+
authentication_method?: string | undefined;
|
|
309
|
+
client_id?: string | undefined;
|
|
310
|
+
client_secret?: string | undefined;
|
|
311
|
+
app_secret?: string | undefined;
|
|
312
|
+
scope?: string | undefined;
|
|
313
|
+
authorization_endpoint?: string | undefined;
|
|
314
|
+
token_endpoint?: string | undefined;
|
|
315
|
+
userinfo_endpoint?: string | undefined;
|
|
316
|
+
jwks_uri?: string | undefined;
|
|
317
|
+
discovery_url?: string | undefined;
|
|
318
|
+
issuer?: string | undefined;
|
|
319
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | undefined;
|
|
320
|
+
provider?: string | undefined;
|
|
321
|
+
from?: string | undefined;
|
|
322
|
+
twilio_sid?: string | undefined;
|
|
323
|
+
twilio_token?: string | undefined;
|
|
324
|
+
icon_url?: string | undefined;
|
|
325
|
+
domain_aliases?: string[] | undefined;
|
|
326
|
+
callback_url?: string | undefined;
|
|
327
|
+
passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
|
|
328
|
+
password_complexity_options?: {
|
|
329
|
+
min_length?: number | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
password_history?: {
|
|
332
|
+
enable?: boolean | undefined;
|
|
333
|
+
size?: number | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
password_no_personal_info?: {
|
|
336
|
+
enable?: boolean | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
password_dictionary?: {
|
|
339
|
+
enable?: boolean | undefined;
|
|
340
|
+
dictionary?: string[] | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
disable_signup?: boolean | undefined;
|
|
343
|
+
brute_force_protection?: boolean | undefined;
|
|
344
|
+
import_mode?: boolean | undefined;
|
|
345
|
+
configuration?: {
|
|
346
|
+
token_endpoint?: string | undefined;
|
|
347
|
+
userinfo_endpoint?: string | undefined;
|
|
348
|
+
client_id?: string | undefined;
|
|
349
|
+
client_secret?: string | undefined;
|
|
350
|
+
realm?: string | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
attributes?: {
|
|
353
|
+
email?: {
|
|
354
|
+
identifier?: {
|
|
355
|
+
active?: boolean | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
signup?: {
|
|
358
|
+
status?: "optional" | "required" | "disabled" | undefined;
|
|
359
|
+
verification?: {
|
|
360
|
+
active?: boolean | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
validation?: {
|
|
364
|
+
allowed?: boolean | undefined;
|
|
365
|
+
} | undefined;
|
|
366
|
+
unique?: boolean | undefined;
|
|
367
|
+
profile_required?: boolean | undefined;
|
|
368
|
+
verification_method?: "code" | "link" | undefined;
|
|
369
|
+
} | undefined;
|
|
370
|
+
username?: {
|
|
371
|
+
identifier?: {
|
|
372
|
+
active?: boolean | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
signup?: {
|
|
375
|
+
status?: "optional" | "required" | "disabled" | undefined;
|
|
376
|
+
} | undefined;
|
|
377
|
+
validation?: {
|
|
378
|
+
max_length?: number | undefined;
|
|
379
|
+
min_length?: number | undefined;
|
|
380
|
+
allowed_types?: {
|
|
381
|
+
email?: boolean | undefined;
|
|
382
|
+
phone_number?: boolean | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
} | undefined;
|
|
385
|
+
profile_required?: boolean | undefined;
|
|
386
|
+
} | undefined;
|
|
387
|
+
phone_number?: {
|
|
388
|
+
identifier?: {
|
|
389
|
+
active?: boolean | undefined;
|
|
390
|
+
} | undefined;
|
|
391
|
+
signup?: {
|
|
392
|
+
status?: "optional" | "required" | "disabled" | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
authentication_methods?: {
|
|
397
|
+
password?: {
|
|
398
|
+
enabled?: boolean | undefined;
|
|
399
|
+
} | undefined;
|
|
400
|
+
passkey?: {
|
|
401
|
+
enabled?: boolean | undefined;
|
|
402
|
+
} | undefined;
|
|
403
|
+
} | undefined;
|
|
404
|
+
passkey_options?: {
|
|
405
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
406
|
+
local_enrollment_enabled?: boolean | undefined;
|
|
407
|
+
progressive_enrollment_enabled?: boolean | undefined;
|
|
408
|
+
} | undefined;
|
|
409
|
+
requires_username?: boolean | undefined;
|
|
410
|
+
validation?: {
|
|
411
|
+
username?: {
|
|
412
|
+
min?: number | undefined;
|
|
413
|
+
max?: number | undefined;
|
|
414
|
+
} | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
417
|
+
};
|
|
418
|
+
id?: string | undefined;
|
|
419
|
+
display_name?: string | undefined;
|
|
420
|
+
enabled_clients?: string[] | undefined;
|
|
421
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
422
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
423
|
+
is_domain_connection?: boolean | undefined;
|
|
424
|
+
show_as_button?: boolean | undefined;
|
|
425
|
+
metadata?: Record<string, any> | undefined;
|
|
426
|
+
is_system?: boolean | undefined;
|
|
427
|
+
}[];
|
|
428
|
+
description?: string | undefined;
|
|
429
|
+
client_secret?: string | undefined;
|
|
430
|
+
app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
|
|
431
|
+
logo_uri?: string | undefined;
|
|
432
|
+
callbacks?: string[] | undefined;
|
|
433
|
+
allowed_origins?: string[] | undefined;
|
|
434
|
+
web_origins?: string[] | undefined;
|
|
435
|
+
client_aliases?: string[] | undefined;
|
|
436
|
+
allowed_clients?: string[] | undefined;
|
|
437
|
+
allowed_logout_urls?: string[] | undefined;
|
|
438
|
+
session_transfer?: Record<string, any> | undefined;
|
|
439
|
+
oidc_logout?: Record<string, any> | undefined;
|
|
440
|
+
grant_types?: string[] | undefined;
|
|
441
|
+
jwt_configuration?: Record<string, any> | undefined;
|
|
442
|
+
signing_keys?: Record<string, any>[] | undefined;
|
|
443
|
+
encryption_key?: Record<string, any> | undefined;
|
|
444
|
+
cross_origin_loc?: string | undefined;
|
|
445
|
+
custom_login_page?: string | undefined;
|
|
446
|
+
custom_login_page_preview?: string | undefined;
|
|
447
|
+
form_template?: string | undefined;
|
|
448
|
+
addons?: Record<string, any> | undefined;
|
|
449
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
450
|
+
client_metadata?: Record<string, string> | undefined;
|
|
451
|
+
hide_sign_up_disabled_error?: boolean | undefined;
|
|
452
|
+
mobile?: Record<string, any> | undefined;
|
|
453
|
+
initiate_login_uri?: string | undefined;
|
|
454
|
+
native_social_login?: Record<string, any> | undefined;
|
|
455
|
+
refresh_token?: {
|
|
456
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
457
|
+
leeway?: number | undefined;
|
|
458
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
459
|
+
token_lifetime?: number | undefined;
|
|
460
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
461
|
+
idle_token_lifetime?: number | undefined;
|
|
462
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
463
|
+
} | undefined;
|
|
464
|
+
default_organization?: Record<string, any> | undefined;
|
|
465
|
+
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
466
|
+
organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
|
|
467
|
+
client_authentication_methods?: Record<string, any> | undefined;
|
|
468
|
+
signed_request_object?: Record<string, any> | undefined;
|
|
469
|
+
compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
|
|
470
|
+
par_request_expiry?: number | undefined;
|
|
471
|
+
token_quota?: Record<string, any> | undefined;
|
|
472
|
+
owner_user_id?: string | undefined;
|
|
473
|
+
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
474
|
+
registration_metadata?: Record<string, any> | undefined;
|
|
475
|
+
user_linking_mode?: "builtin" | "off" | undefined;
|
|
476
|
+
};
|
|
477
|
+
loginSession: {
|
|
478
|
+
csrf_token: string;
|
|
479
|
+
authParams: {
|
|
480
|
+
client_id: string;
|
|
481
|
+
act_as?: string | undefined;
|
|
482
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
483
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
484
|
+
redirect_uri?: string | undefined;
|
|
485
|
+
audience?: string | undefined;
|
|
486
|
+
organization?: string | undefined;
|
|
487
|
+
state?: string | undefined;
|
|
488
|
+
nonce?: string | undefined;
|
|
489
|
+
scope?: string | undefined;
|
|
490
|
+
prompt?: string | undefined;
|
|
491
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
492
|
+
code_challenge?: string | undefined;
|
|
493
|
+
username?: string | undefined;
|
|
494
|
+
ui_locales?: string | undefined;
|
|
495
|
+
max_age?: number | undefined;
|
|
496
|
+
acr_values?: string | undefined;
|
|
497
|
+
claims?: {
|
|
498
|
+
userinfo?: Record<string, {
|
|
499
|
+
essential?: boolean | undefined;
|
|
500
|
+
value?: unknown;
|
|
501
|
+
values?: unknown[] | undefined;
|
|
502
|
+
} | null> | undefined;
|
|
503
|
+
id_token?: Record<string, {
|
|
504
|
+
essential?: boolean | undefined;
|
|
505
|
+
value?: unknown;
|
|
506
|
+
values?: unknown[] | undefined;
|
|
507
|
+
} | null> | undefined;
|
|
508
|
+
} | undefined;
|
|
509
|
+
vendor_id?: string | undefined;
|
|
510
|
+
};
|
|
511
|
+
expires_at: string;
|
|
512
|
+
state: import("@authhero/adapter-interfaces").LoginSessionState;
|
|
513
|
+
id: string;
|
|
514
|
+
created_at: string;
|
|
515
|
+
updated_at: string;
|
|
516
|
+
auth0Client?: string | undefined;
|
|
517
|
+
deleted_at?: string | undefined;
|
|
518
|
+
ip?: string | undefined;
|
|
519
|
+
useragent?: string | undefined;
|
|
520
|
+
session_id?: string | undefined;
|
|
521
|
+
authorization_url?: string | undefined;
|
|
522
|
+
state_data?: string | undefined;
|
|
523
|
+
failure_reason?: string | undefined;
|
|
524
|
+
user_id?: string | undefined;
|
|
525
|
+
auth_connection?: string | undefined;
|
|
526
|
+
auth_strategy?: {
|
|
527
|
+
strategy: string;
|
|
528
|
+
strategy_type: string;
|
|
529
|
+
} | undefined;
|
|
530
|
+
authenticated_at?: string | undefined;
|
|
531
|
+
};
|
|
532
|
+
connectionType: "sms" | "email" | "username";
|
|
533
|
+
authConnection: "sms" | "email" | "username";
|
|
534
|
+
session_id: string | undefined;
|
|
535
|
+
authParams: {
|
|
536
|
+
client_id: string;
|
|
537
|
+
act_as?: string | undefined;
|
|
538
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
539
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
540
|
+
redirect_uri?: string | undefined;
|
|
541
|
+
audience?: string | undefined;
|
|
542
|
+
organization?: string | undefined;
|
|
543
|
+
state?: string | undefined;
|
|
544
|
+
nonce?: string | undefined;
|
|
545
|
+
scope?: string | undefined;
|
|
546
|
+
prompt?: string | undefined;
|
|
547
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
548
|
+
code_challenge?: string | undefined;
|
|
549
|
+
username?: string | undefined;
|
|
550
|
+
ui_locales?: string | undefined;
|
|
551
|
+
max_age?: number | undefined;
|
|
552
|
+
acr_values?: string | undefined;
|
|
553
|
+
claims?: {
|
|
554
|
+
userinfo?: Record<string, {
|
|
555
|
+
essential?: boolean | undefined;
|
|
556
|
+
value?: unknown;
|
|
557
|
+
values?: unknown[] | undefined;
|
|
558
|
+
} | null> | undefined;
|
|
559
|
+
id_token?: Record<string, {
|
|
560
|
+
essential?: boolean | undefined;
|
|
561
|
+
value?: unknown;
|
|
562
|
+
values?: unknown[] | undefined;
|
|
563
|
+
} | null> | undefined;
|
|
564
|
+
} | undefined;
|
|
565
|
+
vendor_id?: string | undefined;
|
|
566
|
+
};
|
|
567
|
+
}>;
|
|
568
|
+
export declare function passwordlessGrant(ctx: Context<{
|
|
569
|
+
Bindings: Bindings;
|
|
570
|
+
Variables: Variables;
|
|
571
|
+
}>, params: z.input<typeof passwordlessGrantParamsSchema>): Promise<Response>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
import { Bindings, Variables, GrantFlowUserResult } from "../types";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
/**
|
|
5
|
+
* Try to redeem an unrecognized refresh token at one of the tenant's
|
|
6
|
+
* configured migration sources. On success, lazy-create the local user
|
|
7
|
+
* (matched by upstream `sub`), mint a fresh authhero refresh token, and
|
|
8
|
+
* return a `GrantFlowUserResult` so the outer dispatcher can issue
|
|
9
|
+
* access/id/refresh tokens through the normal mint path.
|
|
10
|
+
*
|
|
11
|
+
* Returns `null` if no migration source accepts the token, letting the
|
|
12
|
+
* caller fall through to the standard `invalid_grant` response.
|
|
13
|
+
*/
|
|
14
|
+
export declare function tryUpstreamRemint(ctx: Context<{
|
|
15
|
+
Bindings: Bindings;
|
|
16
|
+
Variables: Variables;
|
|
17
|
+
}>, client: EnrichedClient, refreshToken: string): Promise<GrantFlowUserResult | null>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
import { Bindings, Variables, GrantFlowUserResult } from "../types";
|
|
3
|
+
import { z } from "@hono/zod-openapi";
|
|
4
|
+
export declare const refreshTokenParamsSchema: z.ZodObject<{
|
|
5
|
+
grant_type: z.ZodLiteral<"refresh_token">;
|
|
6
|
+
client_id: z.ZodString;
|
|
7
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
8
|
+
refresh_token: z.ZodString;
|
|
9
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
10
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare function refreshTokenGrant(ctx: Context<{
|
|
13
|
+
Bindings: Bindings;
|
|
14
|
+
Variables: Variables;
|
|
15
|
+
}>, params: z.infer<typeof refreshTokenParamsSchema>): Promise<GrantFlowUserResult>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
import { Bindings, Variables } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Handler for `GET /authorize/resume?state=<login_session_id>`.
|
|
5
|
+
*
|
|
6
|
+
* Auth0 exposes an identically-named endpoint (see
|
|
7
|
+
* `app.pocketlaw.com.har`): after a Universal Login sub-flow submits the
|
|
8
|
+
* user's credentials, the sub-flow 302s here rather than issuing tokens
|
|
9
|
+
* inline. This endpoint is the single terminal site that:
|
|
10
|
+
*
|
|
11
|
+
* 1. Hops to the original authorization host if the browser is on the
|
|
12
|
+
* wrong custom domain (so the session cookie lands under the right
|
|
13
|
+
* wildcard).
|
|
14
|
+
* 2. Dispatches based on the LoginSessionMachine state.
|
|
15
|
+
* 3. Delegates the actual token/code issuance (and cookie write) to
|
|
16
|
+
* `createFrontChannelAuthResponse`, which already handles MFA /
|
|
17
|
+
* passkey-nudge / response-mode branching.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resumeLoginSession(ctx: Context<{
|
|
20
|
+
Bindings: Bindings;
|
|
21
|
+
Variables: Variables;
|
|
22
|
+
}>, state: string): Promise<Response>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
import { AuthorizationResponseType, AuthorizationResponseMode, CodeChallengeMethod, Session } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { EnrichedClient } from "../helpers/client";
|
|
4
|
+
import { Bindings, Variables } from "../types";
|
|
5
|
+
interface SilentAuthParams {
|
|
6
|
+
ctx: Context<{
|
|
7
|
+
Bindings: Bindings;
|
|
8
|
+
Variables: Variables;
|
|
9
|
+
}>;
|
|
10
|
+
client: EnrichedClient;
|
|
11
|
+
session?: Session;
|
|
12
|
+
redirect_uri: string;
|
|
13
|
+
state: string;
|
|
14
|
+
response_type: AuthorizationResponseType;
|
|
15
|
+
response_mode?: AuthorizationResponseMode;
|
|
16
|
+
nonce?: string;
|
|
17
|
+
code_challenge_method?: CodeChallengeMethod;
|
|
18
|
+
code_challenge?: string;
|
|
19
|
+
audience?: string;
|
|
20
|
+
scope?: string;
|
|
21
|
+
organization?: string;
|
|
22
|
+
max_age?: number;
|
|
23
|
+
}
|
|
24
|
+
export declare function silentAuth({ ctx, client, session, redirect_uri, state, nonce, code_challenge_method, code_challenge, audience, scope, response_type, response_mode, organization, max_age, }: SilentAuthParams): Promise<Response>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AuthParams } from "@authhero/adapter-interfaces";
|
|
2
|
+
import { Context } from "hono";
|
|
3
|
+
import { Bindings, Variables } from "../types";
|
|
4
|
+
export declare function ticketAuth(ctx: Context<{
|
|
5
|
+
Bindings: Bindings;
|
|
6
|
+
Variables: Variables;
|
|
7
|
+
}>, tenant_id: string, ticketId: string, authParams: AuthParams, realm: string): Promise<Response>;
|