@softistx/janus 0.0.0-stage → 0.73.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/LICENSE +21 -0
- package/README.md +2928 -2
- package/dist/auth/api-keys/authenticate-key.d.ts +21 -0
- package/dist/auth/api-keys/authenticate-key.d.ts.map +1 -0
- package/dist/auth/api-keys/bound.d.ts +11 -0
- package/dist/auth/api-keys/bound.d.ts.map +1 -0
- package/dist/auth/api-keys/count.d.ts +8 -0
- package/dist/auth/api-keys/count.d.ts.map +1 -0
- package/dist/auth/api-keys/create/checks.d.ts +42 -0
- package/dist/auth/api-keys/create/checks.d.ts.map +1 -0
- package/dist/auth/api-keys/create/index.d.ts +10 -0
- package/dist/auth/api-keys/create/index.d.ts.map +1 -0
- package/dist/auth/api-keys/events.d.ts +22 -0
- package/dist/auth/api-keys/events.d.ts.map +1 -0
- package/dist/auth/api-keys/expiry.d.ts +11 -0
- package/dist/auth/api-keys/expiry.d.ts.map +1 -0
- package/dist/auth/api-keys/flows.d.ts +13 -0
- package/dist/auth/api-keys/flows.d.ts.map +1 -0
- package/dist/auth/api-keys/index.d.ts +11 -0
- package/dist/auth/api-keys/index.d.ts.map +1 -0
- package/dist/auth/api-keys/read.d.ts +10 -0
- package/dist/auth/api-keys/read.d.ts.map +1 -0
- package/dist/auth/api-keys/shape.d.ts +24 -0
- package/dist/auth/api-keys/shape.d.ts.map +1 -0
- package/dist/auth/api-keys/to-api-key.d.ts +8 -0
- package/dist/auth/api-keys/to-api-key.d.ts.map +1 -0
- package/dist/auth/api-keys/token.d.ts +23 -0
- package/dist/auth/api-keys/token.d.ts.map +1 -0
- package/dist/auth/api-keys/user-bound.d.ts +10 -0
- package/dist/auth/api-keys/user-bound.d.ts.map +1 -0
- package/dist/auth/at.d.ts +9 -0
- package/dist/auth/at.d.ts.map +1 -0
- package/dist/auth/avatar/any-type.d.ts +13 -0
- package/dist/auth/avatar/any-type.d.ts.map +1 -0
- package/dist/auth/avatar/flows.d.ts +7 -0
- package/dist/auth/avatar/flows.d.ts.map +1 -0
- package/dist/auth/avatar/id.d.ts +10 -0
- package/dist/auth/avatar/id.d.ts.map +1 -0
- package/dist/auth/avatar/index.d.ts +7 -0
- package/dist/auth/avatar/index.d.ts.map +1 -0
- package/dist/auth/avatar/remove.d.ts +10 -0
- package/dist/auth/avatar/remove.d.ts.map +1 -0
- package/dist/auth/avatar/set.d.ts +12 -0
- package/dist/auth/avatar/set.d.ts.map +1 -0
- package/dist/auth/concurrency-limit.d.ts +13 -0
- package/dist/auth/concurrency-limit.d.ts.map +1 -0
- package/dist/auth/config/api-keys-config.d.ts +33 -0
- package/dist/auth/config/api-keys-config.d.ts.map +1 -0
- package/dist/auth/config/hasher.d.ts +22 -0
- package/dist/auth/config/hasher.d.ts.map +1 -0
- package/dist/auth/config/index.d.ts +24 -0
- package/dist/auth/config/index.d.ts.map +1 -0
- package/dist/auth/config/invitations-config.d.ts +74 -0
- package/dist/auth/config/invitations-config.d.ts.map +1 -0
- package/dist/auth/config/janus-config.d.ts +233 -0
- package/dist/auth/config/janus-config.d.ts.map +1 -0
- package/dist/auth/config/magic-link-config.d.ts +6 -0
- package/dist/auth/config/magic-link-config.d.ts.map +1 -0
- package/dist/auth/config/names.d.ts +9 -0
- package/dist/auth/config/names.d.ts.map +1 -0
- package/dist/auth/config/normalize.d.ts +26 -0
- package/dist/auth/config/normalize.d.ts.map +1 -0
- package/dist/auth/config/passkeys-config.d.ts +49 -0
- package/dist/auth/config/passkeys-config.d.ts.map +1 -0
- package/dist/auth/config/password-config.d.ts +22 -0
- package/dist/auth/config/password-config.d.ts.map +1 -0
- package/dist/auth/config/reserved.d.ts +14 -0
- package/dist/auth/config/reserved.d.ts.map +1 -0
- package/dist/auth/config/resolve-api-keys.d.ts +5 -0
- package/dist/auth/config/resolve-api-keys.d.ts.map +1 -0
- package/dist/auth/config/resolve-config.d.ts +9 -0
- package/dist/auth/config/resolve-config.d.ts.map +1 -0
- package/dist/auth/config/resolve-cookie.d.ts +5 -0
- package/dist/auth/config/resolve-cookie.d.ts.map +1 -0
- package/dist/auth/config/resolve-devices.d.ts +5 -0
- package/dist/auth/config/resolve-devices.d.ts.map +1 -0
- package/dist/auth/config/resolve-invitation-types.d.ts +5 -0
- package/dist/auth/config/resolve-invitation-types.d.ts.map +1 -0
- package/dist/auth/config/resolve-invitations.d.ts +5 -0
- package/dist/auth/config/resolve-invitations.d.ts.map +1 -0
- package/dist/auth/config/resolve-magic-link.d.ts +4 -0
- package/dist/auth/config/resolve-magic-link.d.ts.map +1 -0
- package/dist/auth/config/resolve-passkeys.d.ts +5 -0
- package/dist/auth/config/resolve-passkeys.d.ts.map +1 -0
- package/dist/auth/config/resolve-second-factor.d.ts +5 -0
- package/dist/auth/config/resolve-second-factor.d.ts.map +1 -0
- package/dist/auth/config/resolve-social.d.ts +17 -0
- package/dist/auth/config/resolve-social.d.ts.map +1 -0
- package/dist/auth/config/resolve-throttle.d.ts +37 -0
- package/dist/auth/config/resolve-throttle.d.ts.map +1 -0
- package/dist/auth/config/resolve-type.d.ts +6 -0
- package/dist/auth/config/resolve-type.d.ts.map +1 -0
- package/dist/auth/config/resolved-config.d.ts +126 -0
- package/dist/auth/config/resolved-config.d.ts.map +1 -0
- package/dist/auth/config/social-config.d.ts +154 -0
- package/dist/auth/config/social-config.d.ts.map +1 -0
- package/dist/auth/config/user-type.d.ts +79 -0
- package/dist/auth/config/user-type.d.ts.map +1 -0
- package/dist/auth/config/warn-throttle-window.d.ts +14 -0
- package/dist/auth/config/warn-throttle-window.d.ts.map +1 -0
- package/dist/auth/context/create-context.d.ts +31 -0
- package/dist/auth/context/create-context.d.ts.map +1 -0
- package/dist/auth/context/index.d.ts +17 -0
- package/dist/auth/context/index.d.ts.map +1 -0
- package/dist/auth/context/logins.d.ts +28 -0
- package/dist/auth/context/logins.d.ts.map +1 -0
- package/dist/auth/context/password.d.ts +34 -0
- package/dist/auth/context/password.d.ts.map +1 -0
- package/dist/auth/context/records.d.ts +27 -0
- package/dist/auth/context/records.d.ts.map +1 -0
- package/dist/auth/context/user.d.ts +21 -0
- package/dist/auth/context/user.d.ts.map +1 -0
- package/dist/auth/context/validate-fields.d.ts +12 -0
- package/dist/auth/context/validate-fields.d.ts.map +1 -0
- package/dist/auth/counter-key.d.ts +20 -0
- package/dist/auth/counter-key.d.ts.map +1 -0
- package/dist/auth/derived-keys.d.ts +9 -0
- package/dist/auth/derived-keys.d.ts.map +1 -0
- package/dist/auth/devices/cookie.d.ts +56 -0
- package/dist/auth/devices/cookie.d.ts.map +1 -0
- package/dist/auth/devices/hint.d.ts +42 -0
- package/dist/auth/devices/hint.d.ts.map +1 -0
- package/dist/auth/devices/index.d.ts +11 -0
- package/dist/auth/devices/index.d.ts.map +1 -0
- package/dist/auth/devices/report.d.ts +11 -0
- package/dist/auth/devices/report.d.ts.map +1 -0
- package/dist/auth/devices/token.d.ts +13 -0
- package/dist/auth/devices/token.d.ts.map +1 -0
- package/dist/auth/email-flows/any-type-change-email.d.ts +18 -0
- package/dist/auth/email-flows/any-type-change-email.d.ts.map +1 -0
- package/dist/auth/email-flows/any-type-reset-password.d.ts +19 -0
- package/dist/auth/email-flows/any-type-reset-password.d.ts.map +1 -0
- package/dist/auth/email-flows/any-type-verify-email.d.ts +18 -0
- package/dist/auth/email-flows/any-type-verify-email.d.ts.map +1 -0
- package/dist/auth/email-flows/change-email-token.d.ts +47 -0
- package/dist/auth/email-flows/change-email-token.d.ts.map +1 -0
- package/dist/auth/email-flows/change-email.d.ts +17 -0
- package/dist/auth/email-flows/change-email.d.ts.map +1 -0
- package/dist/auth/email-flows/confirm-reset.d.ts +16 -0
- package/dist/auth/email-flows/confirm-reset.d.ts.map +1 -0
- package/dist/auth/email-flows/email-token.d.ts +30 -0
- package/dist/auth/email-flows/email-token.d.ts.map +1 -0
- package/dist/auth/email-flows/flows.d.ts +13 -0
- package/dist/auth/email-flows/flows.d.ts.map +1 -0
- package/dist/auth/email-flows/index.d.ts +10 -0
- package/dist/auth/email-flows/index.d.ts.map +1 -0
- package/dist/auth/email-flows/owner-of.d.ts +17 -0
- package/dist/auth/email-flows/owner-of.d.ts.map +1 -0
- package/dist/auth/email-flows/prove-first.d.ts +45 -0
- package/dist/auth/email-flows/prove-first.d.ts.map +1 -0
- package/dist/auth/email-flows/reset-password.d.ts +17 -0
- package/dist/auth/email-flows/reset-password.d.ts.map +1 -0
- package/dist/auth/email-flows/set-email-verified.d.ts +19 -0
- package/dist/auth/email-flows/set-email-verified.d.ts.map +1 -0
- package/dist/auth/email-flows/verify-email.d.ts +25 -0
- package/dist/auth/email-flows/verify-email.d.ts.map +1 -0
- package/dist/auth/email-sign-in.d.ts +51 -0
- package/dist/auth/email-sign-in.d.ts.map +1 -0
- package/dist/auth/events.d.ts +166 -0
- package/dist/auth/events.d.ts.map +1 -0
- package/dist/auth/first-proof.d.ts +43 -0
- package/dist/auth/first-proof.d.ts.map +1 -0
- package/dist/auth/hashers.d.ts +52 -0
- package/dist/auth/hashers.d.ts.map +1 -0
- package/dist/auth/index.d.ts +22 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/invitations/accept.d.ts +10 -0
- package/dist/auth/invitations/accept.d.ts.map +1 -0
- package/dist/auth/invitations/change-pending.d.ts +17 -0
- package/dist/auth/invitations/change-pending.d.ts.map +1 -0
- package/dist/auth/invitations/claim.d.ts +31 -0
- package/dist/auth/invitations/claim.d.ts.map +1 -0
- package/dist/auth/invitations/events.d.ts +46 -0
- package/dist/auth/invitations/events.d.ts.map +1 -0
- package/dist/auth/invitations/find-invitee.d.ts +20 -0
- package/dist/auth/invitations/find-invitee.d.ts.map +1 -0
- package/dist/auth/invitations/find-pending.d.ts +5 -0
- package/dist/auth/invitations/find-pending.d.ts.map +1 -0
- package/dist/auth/invitations/flows.d.ts +7 -0
- package/dist/auth/invitations/flows.d.ts.map +1 -0
- package/dist/auth/invitations/history-input.d.ts +29 -0
- package/dist/auth/invitations/history-input.d.ts.map +1 -0
- package/dist/auth/invitations/history.d.ts +10 -0
- package/dist/auth/invitations/history.d.ts.map +1 -0
- package/dist/auth/invitations/index.d.ts +11 -0
- package/dist/auth/invitations/index.d.ts.map +1 -0
- package/dist/auth/invitations/input.d.ts +30 -0
- package/dist/auth/invitations/input.d.ts.map +1 -0
- package/dist/auth/invitations/invited-type.d.ts +22 -0
- package/dist/auth/invitations/invited-type.d.ts.map +1 -0
- package/dist/auth/invitations/invitee.d.ts +11 -0
- package/dist/auth/invitations/invitee.d.ts.map +1 -0
- package/dist/auth/invitations/issue.d.ts +9 -0
- package/dist/auth/invitations/issue.d.ts.map +1 -0
- package/dist/auth/invitations/limit.d.ts +7 -0
- package/dist/auth/invitations/limit.d.ts.map +1 -0
- package/dist/auth/invitations/password-invitee.d.ts +18 -0
- package/dist/auth/invitations/password-invitee.d.ts.map +1 -0
- package/dist/auth/invitations/passwordless-invitee.d.ts +13 -0
- package/dist/auth/invitations/passwordless-invitee.d.ts.map +1 -0
- package/dist/auth/invitations/preview.d.ts +8 -0
- package/dist/auth/invitations/preview.d.ts.map +1 -0
- package/dist/auth/invitations/read.d.ts +10 -0
- package/dist/auth/invitations/read.d.ts.map +1 -0
- package/dist/auth/invitations/resend.d.ts +12 -0
- package/dist/auth/invitations/resend.d.ts.map +1 -0
- package/dist/auth/invitations/to-invitation.d.ts +11 -0
- package/dist/auth/invitations/to-invitation.d.ts.map +1 -0
- package/dist/auth/invitations/write.d.ts +17 -0
- package/dist/auth/invitations/write.d.ts.map +1 -0
- package/dist/auth/issuers/cache.d.ts +21 -0
- package/dist/auth/issuers/cache.d.ts.map +1 -0
- package/dist/auth/issuers/create.d.ts +18 -0
- package/dist/auth/issuers/create.d.ts.map +1 -0
- package/dist/auth/issuers/index.d.ts +3 -0
- package/dist/auth/issuers/index.d.ts.map +1 -0
- package/dist/auth/issuers/types.d.ts +45 -0
- package/dist/auth/issuers/types.d.ts.map +1 -0
- package/dist/auth/janus.d.ts +39 -0
- package/dist/auth/janus.d.ts.map +1 -0
- package/dist/auth/magic-link.d.ts +25 -0
- package/dist/auth/magic-link.d.ts.map +1 -0
- package/dist/auth/mail-requests.d.ts +55 -0
- package/dist/auth/mail-requests.d.ts.map +1 -0
- package/dist/auth/one-time/codes.d.ts +46 -0
- package/dist/auth/one-time/codes.d.ts.map +1 -0
- package/dist/auth/one-time/index.d.ts +15 -0
- package/dist/auth/one-time/index.d.ts.map +1 -0
- package/dist/auth/one-time/issue.d.ts +45 -0
- package/dist/auth/one-time/issue.d.ts.map +1 -0
- package/dist/auth/one-time/refusals.d.ts +26 -0
- package/dist/auth/one-time/refusals.d.ts.map +1 -0
- package/dist/auth/one-time/spend.d.ts +24 -0
- package/dist/auth/one-time/spend.d.ts.map +1 -0
- package/dist/auth/one-time/window.d.ts +50 -0
- package/dist/auth/one-time/window.d.ts.map +1 -0
- package/dist/auth/outage.d.ts +66 -0
- package/dist/auth/outage.d.ts.map +1 -0
- package/dist/auth/parse-sealing-keys.d.ts +26 -0
- package/dist/auth/parse-sealing-keys.d.ts.map +1 -0
- package/dist/auth/passkeys/assert.d.ts +51 -0
- package/dist/auth/passkeys/assert.d.ts.map +1 -0
- package/dist/auth/passkeys/assertion-options.d.ts +9 -0
- package/dist/auth/passkeys/assertion-options.d.ts.map +1 -0
- package/dist/auth/passkeys/challenge.d.ts +19 -0
- package/dist/auth/passkeys/challenge.d.ts.map +1 -0
- package/dist/auth/passkeys/commit.d.ts +33 -0
- package/dist/auth/passkeys/commit.d.ts.map +1 -0
- package/dist/auth/passkeys/flows.d.ts +13 -0
- package/dist/auth/passkeys/flows.d.ts.map +1 -0
- package/dist/auth/passkeys/index.d.ts +12 -0
- package/dist/auth/passkeys/index.d.ts.map +1 -0
- package/dist/auth/passkeys/manage.d.ts +11 -0
- package/dist/auth/passkeys/manage.d.ts.map +1 -0
- package/dist/auth/passkeys/name.d.ts +4 -0
- package/dist/auth/passkeys/name.d.ts.map +1 -0
- package/dist/auth/passkeys/register.d.ts +20 -0
- package/dist/auth/passkeys/register.d.ts.map +1 -0
- package/dist/auth/passkeys/registration-options.d.ts +22 -0
- package/dist/auth/passkeys/registration-options.d.ts.map +1 -0
- package/dist/auth/passkeys/remove-all.d.ts +26 -0
- package/dist/auth/passkeys/remove-all.d.ts.map +1 -0
- package/dist/auth/passkeys/sign-in-options.d.ts +12 -0
- package/dist/auth/passkeys/sign-in-options.d.ts.map +1 -0
- package/dist/auth/passkeys/sign-in.d.ts +21 -0
- package/dist/auth/passkeys/sign-in.d.ts.map +1 -0
- package/dist/auth/passkeys/verifier.d.ts +113 -0
- package/dist/auth/passkeys/verifier.d.ts.map +1 -0
- package/dist/auth/passkeys/view.d.ts +5 -0
- package/dist/auth/passkeys/view.d.ts.map +1 -0
- package/dist/auth/passkeys/wiring.d.ts +24 -0
- package/dist/auth/passkeys/wiring.d.ts.map +1 -0
- package/dist/auth/password-written.d.ts +55 -0
- package/dist/auth/password-written.d.ts.map +1 -0
- package/dist/auth/port/assert-api-keys.d.ts +21 -0
- package/dist/auth/port/assert-api-keys.d.ts.map +1 -0
- package/dist/auth/port/assert-invitations.d.ts +15 -0
- package/dist/auth/port/assert-invitations.d.ts.map +1 -0
- package/dist/auth/port/assert-stores.d.ts +16 -0
- package/dist/auth/port/assert-stores.d.ts.map +1 -0
- package/dist/auth/port/memory/api-keys/capabilities.d.ts +8 -0
- package/dist/auth/port/memory/api-keys/capabilities.d.ts.map +1 -0
- package/dist/auth/port/memory/api-keys/index.d.ts +13 -0
- package/dist/auth/port/memory/api-keys/index.d.ts.map +1 -0
- package/dist/auth/port/memory/api-keys/pages.d.ts +7 -0
- package/dist/auth/port/memory/api-keys/pages.d.ts.map +1 -0
- package/dist/auth/port/memory/copy.d.ts +6 -0
- package/dist/auth/port/memory/copy.d.ts.map +1 -0
- package/dist/auth/port/memory/index.d.ts +10 -0
- package/dist/auth/port/memory/index.d.ts.map +1 -0
- package/dist/auth/port/memory/invitations-pending.d.ts +6 -0
- package/dist/auth/port/memory/invitations-pending.d.ts.map +1 -0
- package/dist/auth/port/memory/invitations.d.ts +12 -0
- package/dist/auth/port/memory/invitations.d.ts.map +1 -0
- package/dist/auth/port/memory/passkeys.d.ts +9 -0
- package/dist/auth/port/memory/passkeys.d.ts.map +1 -0
- package/dist/auth/port/memory/sessions.d.ts +4 -0
- package/dist/auth/port/memory/sessions.d.ts.map +1 -0
- package/dist/auth/port/memory/social-links.d.ts +10 -0
- package/dist/auth/port/memory/social-links.d.ts.map +1 -0
- package/dist/auth/port/memory/stores.d.ts +26 -0
- package/dist/auth/port/memory/stores.d.ts.map +1 -0
- package/dist/auth/port/memory/tokens.d.ts +4 -0
- package/dist/auth/port/memory/tokens.d.ts.map +1 -0
- package/dist/auth/port/memory/user-index.d.ts +20 -0
- package/dist/auth/port/memory/user-index.d.ts.map +1 -0
- package/dist/auth/port/memory/user-update.d.ts +10 -0
- package/dist/auth/port/memory/user-update.d.ts.map +1 -0
- package/dist/auth/port/memory/users.d.ts +4 -0
- package/dist/auth/port/memory/users.d.ts.map +1 -0
- package/dist/auth/port/types/api-keys.d.ts +199 -0
- package/dist/auth/port/types/api-keys.d.ts.map +1 -0
- package/dist/auth/port/types/credentials.d.ts +46 -0
- package/dist/auth/port/types/credentials.d.ts.map +1 -0
- package/dist/auth/port/types/index.d.ts +75 -0
- package/dist/auth/port/types/index.d.ts.map +1 -0
- package/dist/auth/port/types/invitations/index.d.ts +15 -0
- package/dist/auth/port/types/invitations/index.d.ts.map +1 -0
- package/dist/auth/port/types/invitations/page.d.ts +52 -0
- package/dist/auth/port/types/invitations/page.d.ts.map +1 -0
- package/dist/auth/port/types/invitations/records.d.ts +101 -0
- package/dist/auth/port/types/invitations/records.d.ts.map +1 -0
- package/dist/auth/port/types/invitations/store.d.ts +82 -0
- package/dist/auth/port/types/invitations/store.d.ts.map +1 -0
- package/dist/auth/port/types/json.d.ts +27 -0
- package/dist/auth/port/types/json.d.ts.map +1 -0
- package/dist/auth/port/types/passkeys.d.ts +94 -0
- package/dist/auth/port/types/passkeys.d.ts.map +1 -0
- package/dist/auth/port/types/sessions.d.ts +142 -0
- package/dist/auth/port/types/sessions.d.ts.map +1 -0
- package/dist/auth/port/types/social-links.d.ts +64 -0
- package/dist/auth/port/types/social-links.d.ts.map +1 -0
- package/dist/auth/port/types/stores.d.ts +48 -0
- package/dist/auth/port/types/stores.d.ts.map +1 -0
- package/dist/auth/port/types/tokens.d.ts +168 -0
- package/dist/auth/port/types/tokens.d.ts.map +1 -0
- package/dist/auth/port/types/users.d.ts +260 -0
- package/dist/auth/port/types/users.d.ts.map +1 -0
- package/dist/auth/prepared.d.ts +21 -0
- package/dist/auth/prepared.d.ts.map +1 -0
- package/dist/auth/proven-sign-in.d.ts +22 -0
- package/dist/auth/proven-sign-in.d.ts.map +1 -0
- package/dist/auth/sealer-for.d.ts +44 -0
- package/dist/auth/sealer-for.d.ts.map +1 -0
- package/dist/auth/sealing.d.ts +36 -0
- package/dist/auth/sealing.d.ts.map +1 -0
- package/dist/auth/second-factor/activate.d.ts +9 -0
- package/dist/auth/second-factor/activate.d.ts.map +1 -0
- package/dist/auth/second-factor/app-code-attempts.d.ts +47 -0
- package/dist/auth/second-factor/app-code-attempts.d.ts.map +1 -0
- package/dist/auth/second-factor/challenge.d.ts +15 -0
- package/dist/auth/second-factor/challenge.d.ts.map +1 -0
- package/dist/auth/second-factor/codes-left.d.ts +14 -0
- package/dist/auth/second-factor/codes-left.d.ts.map +1 -0
- package/dist/auth/second-factor/disable.d.ts +10 -0
- package/dist/auth/second-factor/disable.d.ts.map +1 -0
- package/dist/auth/second-factor/enroll.d.ts +6 -0
- package/dist/auth/second-factor/enroll.d.ts.map +1 -0
- package/dist/auth/second-factor/factor.d.ts +33 -0
- package/dist/auth/second-factor/factor.d.ts.map +1 -0
- package/dist/auth/second-factor/flows.d.ts +36 -0
- package/dist/auth/second-factor/flows.d.ts.map +1 -0
- package/dist/auth/second-factor/lifecycle.d.ts +14 -0
- package/dist/auth/second-factor/lifecycle.d.ts.map +1 -0
- package/dist/auth/second-factor/passkey-confirm.d.ts +21 -0
- package/dist/auth/second-factor/passkey-confirm.d.ts.map +1 -0
- package/dist/auth/second-factor/recovery-codes.d.ts +36 -0
- package/dist/auth/second-factor/recovery-codes.d.ts.map +1 -0
- package/dist/auth/second-factor/recovery.d.ts +20 -0
- package/dist/auth/second-factor/recovery.d.ts.map +1 -0
- package/dist/auth/second-factor/redeem.d.ts +42 -0
- package/dist/auth/second-factor/redeem.d.ts.map +1 -0
- package/dist/auth/second-factor/refusal.d.ts +6 -0
- package/dist/auth/second-factor/refusal.d.ts.map +1 -0
- package/dist/auth/second-factor/regenerate.d.ts +12 -0
- package/dist/auth/second-factor/regenerate.d.ts.map +1 -0
- package/dist/auth/second-factor/reseal.d.ts +17 -0
- package/dist/auth/second-factor/reseal.d.ts.map +1 -0
- package/dist/auth/second-factor/spend-recovery-code.d.ts +15 -0
- package/dist/auth/second-factor/spend-recovery-code.d.ts.map +1 -0
- package/dist/auth/secrets.d.ts +17 -0
- package/dist/auth/secrets.d.ts.map +1 -0
- package/dist/auth/sessions/amr.d.ts +36 -0
- package/dist/auth/sessions/amr.d.ts.map +1 -0
- package/dist/auth/sessions/authenticate.d.ts +12 -0
- package/dist/auth/sessions/authenticate.d.ts.map +1 -0
- package/dist/auth/sessions/collect-expired.d.ts +15 -0
- package/dist/auth/sessions/collect-expired.d.ts.map +1 -0
- package/dist/auth/sessions/cookie.d.ts +9 -0
- package/dist/auth/sessions/cookie.d.ts.map +1 -0
- package/dist/auth/sessions/fresh.d.ts +35 -0
- package/dist/auth/sessions/fresh.d.ts.map +1 -0
- package/dist/auth/sessions/index.d.ts +12 -0
- package/dist/auth/sessions/index.d.ts.map +1 -0
- package/dist/auth/sessions/open-session.d.ts +22 -0
- package/dist/auth/sessions/open-session.d.ts.map +1 -0
- package/dist/auth/sessions/presented-token.d.ts +25 -0
- package/dist/auth/sessions/presented-token.d.ts.map +1 -0
- package/dist/auth/sessions/shared-api.d.ts +17 -0
- package/dist/auth/sessions/shared-api.d.ts.map +1 -0
- package/dist/auth/sessions/standing.d.ts +32 -0
- package/dist/auth/sessions/standing.d.ts.map +1 -0
- package/dist/auth/shared-api.d.ts +139 -0
- package/dist/auth/shared-api.d.ts.map +1 -0
- package/dist/auth/sign-in-attempts.d.ts +45 -0
- package/dist/auth/sign-in-attempts.d.ts.map +1 -0
- package/dist/auth/sign-in-code.d.ts +26 -0
- package/dist/auth/sign-in-code.d.ts.map +1 -0
- package/dist/auth/social/attach.d.ts +31 -0
- package/dist/auth/social/attach.d.ts.map +1 -0
- package/dist/auth/social/begin.d.ts +30 -0
- package/dist/auth/social/begin.d.ts.map +1 -0
- package/dist/auth/social/complete-link.d.ts +17 -0
- package/dist/auth/social/complete-link.d.ts.map +1 -0
- package/dist/auth/social/complete.d.ts +54 -0
- package/dist/auth/social/complete.d.ts.map +1 -0
- package/dist/auth/social/cookie.d.ts +16 -0
- package/dist/auth/social/cookie.d.ts.map +1 -0
- package/dist/auth/social/find-provider.d.ts +23 -0
- package/dist/auth/social/find-provider.d.ts.map +1 -0
- package/dist/auth/social/finish.d.ts +60 -0
- package/dist/auth/social/finish.d.ts.map +1 -0
- package/dist/auth/social/flow-cookie-value.d.ts +26 -0
- package/dist/auth/social/flow-cookie-value.d.ts.map +1 -0
- package/dist/auth/social/flow-secret.d.ts +40 -0
- package/dist/auth/social/flow-secret.d.ts.map +1 -0
- package/dist/auth/social/index.d.ts +19 -0
- package/dist/auth/social/index.d.ts.map +1 -0
- package/dist/auth/social/link-holder.d.ts +33 -0
- package/dist/auth/social/link-holder.d.ts.map +1 -0
- package/dist/auth/social/provider-call.d.ts +31 -0
- package/dist/auth/social/provider-call.d.ts.map +1 -0
- package/dist/auth/social/redeem.d.ts +45 -0
- package/dist/auth/social/redeem.d.ts.map +1 -0
- package/dist/auth/social/return-to.d.ts +18 -0
- package/dist/auth/social/return-to.d.ts.map +1 -0
- package/dist/auth/social/sign-in.d.ts +41 -0
- package/dist/auth/social/sign-in.d.ts.map +1 -0
- package/dist/auth/social/sign-up.d.ts +37 -0
- package/dist/auth/social/sign-up.d.ts.map +1 -0
- package/dist/auth/social/start.d.ts +21 -0
- package/dist/auth/social/start.d.ts.map +1 -0
- package/dist/auth/social/step-up-proof.d.ts +26 -0
- package/dist/auth/social/step-up-proof.d.ts.map +1 -0
- package/dist/auth/social/step-up-request.d.ts +28 -0
- package/dist/auth/social/step-up-request.d.ts.map +1 -0
- package/dist/auth/social/step-up.d.ts +19 -0
- package/dist/auth/social/step-up.d.ts.map +1 -0
- package/dist/auth/social/types-of.d.ts +12 -0
- package/dist/auth/social/types-of.d.ts.map +1 -0
- package/dist/auth/social/unlink.d.ts +16 -0
- package/dist/auth/social/unlink.d.ts.map +1 -0
- package/dist/auth/social/wiring.d.ts +10 -0
- package/dist/auth/social/wiring.d.ts.map +1 -0
- package/dist/auth/standard-schema.d.ts +41 -0
- package/dist/auth/standard-schema.d.ts.map +1 -0
- package/dist/auth/step-up/codes.d.ts +35 -0
- package/dist/auth/step-up/codes.d.ts.map +1 -0
- package/dist/auth/step-up/flows.d.ts +18 -0
- package/dist/auth/step-up/flows.d.ts.map +1 -0
- package/dist/auth/step-up/open.d.ts +23 -0
- package/dist/auth/step-up/open.d.ts.map +1 -0
- package/dist/auth/step-up/passkey.d.ts +31 -0
- package/dist/auth/step-up/passkey.d.ts.map +1 -0
- package/dist/auth/step-up/request.d.ts +15 -0
- package/dist/auth/step-up/request.d.ts.map +1 -0
- package/dist/auth/step-up/spend.d.ts +4 -0
- package/dist/auth/step-up/spend.d.ts.map +1 -0
- package/dist/auth/totp.d.ts +36 -0
- package/dist/auth/totp.d.ts.map +1 -0
- package/dist/auth/types/api-keys-of.d.ts +19 -0
- package/dist/auth/types/api-keys-of.d.ts.map +1 -0
- package/dist/auth/types/api-keys.d.ts +164 -0
- package/dist/auth/types/api-keys.d.ts.map +1 -0
- package/dist/auth/types/avatar.d.ts +72 -0
- package/dist/auth/types/avatar.d.ts.map +1 -0
- package/dist/auth/types/change-email.d.ts +82 -0
- package/dist/auth/types/change-email.d.ts.map +1 -0
- package/dist/auth/types/checks.d.ts +147 -0
- package/dist/auth/types/checks.d.ts.map +1 -0
- package/dist/auth/types/email-flows.d.ts +117 -0
- package/dist/auth/types/email-flows.d.ts.map +1 -0
- package/dist/auth/types/find-by-email.d.ts +31 -0
- package/dist/auth/types/find-by-email.d.ts.map +1 -0
- package/dist/auth/types/find-or-create.d.ts +59 -0
- package/dist/auth/types/find-or-create.d.ts.map +1 -0
- package/dist/auth/types/index.d.ts +38 -0
- package/dist/auth/types/index.d.ts.map +1 -0
- package/dist/auth/types/inference.d.ts +62 -0
- package/dist/auth/types/inference.d.ts.map +1 -0
- package/dist/auth/types/invitations/api.d.ts +203 -0
- package/dist/auth/types/invitations/api.d.ts.map +1 -0
- package/dist/auth/types/invitations/history.d.ts +87 -0
- package/dist/auth/types/invitations/history.d.ts.map +1 -0
- package/dist/auth/types/invitations/index.d.ts +10 -0
- package/dist/auth/types/invitations/index.d.ts.map +1 -0
- package/dist/auth/types/invitations/invitation.d.ts +76 -0
- package/dist/auth/types/invitations/invitation.d.ts.map +1 -0
- package/dist/auth/types/invitations/issue-type.d.ts +15 -0
- package/dist/auth/types/invitations/issue-type.d.ts.map +1 -0
- package/dist/auth/types/invitations-of.d.ts +26 -0
- package/dist/auth/types/invitations-of.d.ts.map +1 -0
- package/dist/auth/types/janus.d.ts +51 -0
- package/dist/auth/types/janus.d.ts.map +1 -0
- package/dist/auth/types/magic-link.d.ts +69 -0
- package/dist/auth/types/magic-link.d.ts.map +1 -0
- package/dist/auth/types/passkeys.d.ts +183 -0
- package/dist/auth/types/passkeys.d.ts.map +1 -0
- package/dist/auth/types/password.d.ts +113 -0
- package/dist/auth/types/password.d.ts.map +1 -0
- package/dist/auth/types/prepared.d.ts +68 -0
- package/dist/auth/types/prepared.d.ts.map +1 -0
- package/dist/auth/types/proven-sign-in.d.ts +43 -0
- package/dist/auth/types/proven-sign-in.d.ts.map +1 -0
- package/dist/auth/types/reset-password.d.ts +46 -0
- package/dist/auth/types/reset-password.d.ts.map +1 -0
- package/dist/auth/types/second-factor.d.ts +164 -0
- package/dist/auth/types/second-factor.d.ts.map +1 -0
- package/dist/auth/types/session.d.ts +68 -0
- package/dist/auth/types/session.d.ts.map +1 -0
- package/dist/auth/types/shared-api.d.ts +96 -0
- package/dist/auth/types/shared-api.d.ts.map +1 -0
- package/dist/auth/types/sign-in.d.ts +102 -0
- package/dist/auth/types/sign-in.d.ts.map +1 -0
- package/dist/auth/types/social-flow.d.ts +28 -0
- package/dist/auth/types/social-flow.d.ts.map +1 -0
- package/dist/auth/types/social-step-up.d.ts +38 -0
- package/dist/auth/types/social-step-up.d.ts.map +1 -0
- package/dist/auth/types/social.d.ts +193 -0
- package/dist/auth/types/social.d.ts.map +1 -0
- package/dist/auth/types/step-up.d.ts +133 -0
- package/dist/auth/types/step-up.d.ts.map +1 -0
- package/dist/auth/types/type-api.d.ts +29 -0
- package/dist/auth/types/type-api.d.ts.map +1 -0
- package/dist/auth/types/user-type.d.ts +106 -0
- package/dist/auth/types/user-type.d.ts.map +1 -0
- package/dist/auth/types/user.d.ts +62 -0
- package/dist/auth/types/user.d.ts.map +1 -0
- package/dist/auth/types/verify-email.d.ts +190 -0
- package/dist/auth/types/verify-email.d.ts.map +1 -0
- package/dist/auth/users/any-type-api.d.ts +6 -0
- package/dist/auth/users/any-type-api.d.ts.map +1 -0
- package/dist/auth/users/by-login.d.ts +10 -0
- package/dist/auth/users/by-login.d.ts.map +1 -0
- package/dist/auth/users/change-password.d.ts +26 -0
- package/dist/auth/users/change-password.d.ts.map +1 -0
- package/dist/auth/users/delete.d.ts +10 -0
- package/dist/auth/users/delete.d.ts.map +1 -0
- package/dist/auth/users/email-move-guard.d.ts +20 -0
- package/dist/auth/users/email-move-guard.d.ts.map +1 -0
- package/dist/auth/users/email-prefix.d.ts +23 -0
- package/dist/auth/users/email-prefix.d.ts.map +1 -0
- package/dist/auth/users/fields-patch.d.ts +21 -0
- package/dist/auth/users/fields-patch.d.ts.map +1 -0
- package/dist/auth/users/find-by-email.d.ts +11 -0
- package/dist/auth/users/find-by-email.d.ts.map +1 -0
- package/dist/auth/users/find-many.d.ts +29 -0
- package/dist/auth/users/find-many.d.ts.map +1 -0
- package/dist/auth/users/find-or-create.d.ts +12 -0
- package/dist/auth/users/find-or-create.d.ts.map +1 -0
- package/dist/auth/users/flow-types.d.ts +15 -0
- package/dist/auth/users/flow-types.d.ts.map +1 -0
- package/dist/auth/users/index.d.ts +9 -0
- package/dist/auth/users/index.d.ts.map +1 -0
- package/dist/auth/users/insert.d.ts +15 -0
- package/dist/auth/users/insert.d.ts.map +1 -0
- package/dist/auth/users/name-prefix.d.ts +19 -0
- package/dist/auth/users/name-prefix.d.ts.map +1 -0
- package/dist/auth/users/password-flows.d.ts +11 -0
- package/dist/auth/users/password-flows.d.ts.map +1 -0
- package/dist/auth/users/record-flows.d.ts +11 -0
- package/dist/auth/users/record-flows.d.ts.map +1 -0
- package/dist/auth/users/sign-in.d.ts +24 -0
- package/dist/auth/users/sign-in.d.ts.map +1 -0
- package/dist/auth/users/sign-up.d.ts +13 -0
- package/dist/auth/users/sign-up.d.ts.map +1 -0
- package/dist/auth/users/type-api.d.ts +10 -0
- package/dist/auth/users/type-api.d.ts.map +1 -0
- package/dist/auth/users/update.d.ts +16 -0
- package/dist/auth/users/update.d.ts.map +1 -0
- package/dist/background/background.d.ts +22 -0
- package/dist/background/background.d.ts.map +1 -0
- package/dist/chunks/index-2ttdcz7n.js +354 -0
- package/dist/chunks/index-2ttdcz7n.js.map +16 -0
- package/dist/chunks/index-5dxynm32.js +85 -0
- package/dist/chunks/index-5dxynm32.js.map +10 -0
- package/dist/chunks/index-ftz0ne6j.js +127 -0
- package/dist/chunks/index-ftz0ne6j.js.map +11 -0
- package/dist/chunks/index-k6y18nx9.js +724 -0
- package/dist/chunks/index-k6y18nx9.js.map +24 -0
- package/dist/chunks/index-n8jxmxeg.js +64 -0
- package/dist/chunks/index-n8jxmxeg.js.map +11 -0
- package/dist/conformance/api-keys/cases/bound.d.ts +3 -0
- package/dist/conformance/api-keys/cases/bound.d.ts.map +1 -0
- package/dist/conformance/api-keys/cases/expiry.d.ts +3 -0
- package/dist/conformance/api-keys/cases/expiry.d.ts.map +1 -0
- package/dist/conformance/api-keys/cases/index.d.ts +4 -0
- package/dist/conformance/api-keys/cases/index.d.ts.map +1 -0
- package/dist/conformance/api-keys/cases/insert.d.ts +3 -0
- package/dist/conformance/api-keys/cases/insert.d.ts.map +1 -0
- package/dist/conformance/api-keys/cases/outage.d.ts +3 -0
- package/dist/conformance/api-keys/cases/outage.d.ts.map +1 -0
- package/dist/conformance/api-keys/cases/revoke.d.ts +3 -0
- package/dist/conformance/api-keys/cases/revoke.d.ts.map +1 -0
- package/dist/conformance/api-keys/cases/touch.d.ts +3 -0
- package/dist/conformance/api-keys/cases/touch.d.ts.map +1 -0
- package/dist/conformance/api-keys/cases/user-bound.d.ts +3 -0
- package/dist/conformance/api-keys/cases/user-bound.d.ts.map +1 -0
- package/dist/conformance/api-keys/describe.d.ts +20 -0
- package/dist/conformance/api-keys/describe.d.ts.map +1 -0
- package/dist/conformance/api-keys/fixtures.d.ts +4 -0
- package/dist/conformance/api-keys/fixtures.d.ts.map +1 -0
- package/dist/conformance/api-keys/index.d.ts +18 -0
- package/dist/conformance/api-keys/index.d.ts.map +1 -0
- package/dist/conformance/api-keys/reference.d.ts +4 -0
- package/dist/conformance/api-keys/reference.d.ts.map +1 -0
- package/dist/conformance/api-keys/types.d.ts +42 -0
- package/dist/conformance/api-keys/types.d.ts.map +1 -0
- package/dist/conformance/assert.d.ts +40 -0
- package/dist/conformance/assert.d.ts.map +1 -0
- package/dist/conformance/cases/outage.d.ts +3 -0
- package/dist/conformance/cases/outage.d.ts.map +1 -0
- package/dist/conformance/cases/outage.passkeys.d.ts +12 -0
- package/dist/conformance/cases/outage.passkeys.d.ts.map +1 -0
- package/dist/conformance/cases/passkeys/deletion.d.ts +4 -0
- package/dist/conformance/cases/passkeys/deletion.d.ts.map +1 -0
- package/dist/conformance/cases/passkeys/index.d.ts +8 -0
- package/dist/conformance/cases/passkeys/index.d.ts.map +1 -0
- package/dist/conformance/cases/passkeys/inserts.d.ts +4 -0
- package/dist/conformance/cases/passkeys/inserts.d.ts.map +1 -0
- package/dist/conformance/cases/passkeys/reads.d.ts +4 -0
- package/dist/conformance/cases/passkeys/reads.d.ts.map +1 -0
- package/dist/conformance/cases/passkeys/uses.d.ts +4 -0
- package/dist/conformance/cases/passkeys/uses.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/deletion.d.ts +4 -0
- package/dist/conformance/cases/sessions/deletion.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/extension.d.ts +4 -0
- package/dist/conformance/cases/sessions/extension.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/index.d.ts +4 -0
- package/dist/conformance/cases/sessions/index.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/inserts.d.ts +4 -0
- package/dist/conformance/cases/sessions/inserts.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/list.d.ts +4 -0
- package/dist/conformance/cases/sessions/list.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/reads.d.ts +4 -0
- package/dist/conformance/cases/sessions/reads.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/reauthentication.d.ts +4 -0
- package/dist/conformance/cases/sessions/reauthentication.d.ts.map +1 -0
- package/dist/conformance/cases/sessions/revocation.d.ts +4 -0
- package/dist/conformance/cases/sessions/revocation.d.ts.map +1 -0
- package/dist/conformance/cases/social-links/deletion.d.ts +4 -0
- package/dist/conformance/cases/social-links/deletion.d.ts.map +1 -0
- package/dist/conformance/cases/social-links/index.d.ts +8 -0
- package/dist/conformance/cases/social-links/index.d.ts.map +1 -0
- package/dist/conformance/cases/social-links/inserts.d.ts +4 -0
- package/dist/conformance/cases/social-links/inserts.d.ts.map +1 -0
- package/dist/conformance/cases/social-links/reads.d.ts +4 -0
- package/dist/conformance/cases/social-links/reads.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/attempts.d.ts +7 -0
- package/dist/conformance/cases/tokens/attempts.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/change-email.d.ts +8 -0
- package/dist/conformance/cases/tokens/change-email.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/deletion.d.ts +4 -0
- package/dist/conformance/cases/tokens/deletion.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/index.d.ts +4 -0
- package/dist/conformance/cases/tokens/index.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/inserts.d.ts +7 -0
- package/dist/conformance/cases/tokens/inserts.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/kinds.d.ts +7 -0
- package/dist/conformance/cases/tokens/kinds.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/redemption.d.ts +7 -0
- package/dist/conformance/cases/tokens/redemption.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/social-flow.d.ts +8 -0
- package/dist/conformance/cases/tokens/social-flow.d.ts.map +1 -0
- package/dist/conformance/cases/tokens/spending.d.ts +7 -0
- package/dist/conformance/cases/tokens/spending.d.ts.map +1 -0
- package/dist/conformance/cases/users/avatar.d.ts +8 -0
- package/dist/conformance/cases/users/avatar.d.ts.map +1 -0
- package/dist/conformance/cases/users/batch.d.ts +8 -0
- package/dist/conformance/cases/users/batch.d.ts.map +1 -0
- package/dist/conformance/cases/users/deletion.d.ts +4 -0
- package/dist/conformance/cases/users/deletion.d.ts.map +1 -0
- package/dist/conformance/cases/users/index.d.ts +4 -0
- package/dist/conformance/cases/users/index.d.ts.map +1 -0
- package/dist/conformance/cases/users/inserts.d.ts +4 -0
- package/dist/conformance/cases/users/inserts.d.ts.map +1 -0
- package/dist/conformance/cases/users/listing.d.ts +4 -0
- package/dist/conformance/cases/users/listing.d.ts.map +1 -0
- package/dist/conformance/cases/users/patches.d.ts +7 -0
- package/dist/conformance/cases/users/patches.d.ts.map +1 -0
- package/dist/conformance/cases/users/reads.d.ts +7 -0
- package/dist/conformance/cases/users/reads.d.ts.map +1 -0
- package/dist/conformance/cases/users/second-factor.d.ts +16 -0
- package/dist/conformance/cases/users/second-factor.d.ts.map +1 -0
- package/dist/conformance/cases/users/versions.d.ts +7 -0
- package/dist/conformance/cases/users/versions.d.ts.map +1 -0
- package/dist/conformance/describe.d.ts +82 -0
- package/dist/conformance/describe.d.ts.map +1 -0
- package/dist/conformance/fixtures.d.ts +31 -0
- package/dist/conformance/fixtures.d.ts.map +1 -0
- package/dist/conformance/index.d.ts +46 -0
- package/dist/conformance/index.d.ts.map +1 -0
- package/dist/conformance/index.js +4411 -0
- package/dist/conformance/index.js.map +86 -0
- package/dist/conformance/invitations/cases/actors.d.ts +3 -0
- package/dist/conformance/invitations/cases/actors.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/find-pending.d.ts +3 -0
- package/dist/conformance/invitations/cases/find-pending.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/imported.d.ts +3 -0
- package/dist/conformance/invitations/cases/imported.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/index.d.ts +4 -0
- package/dist/conformance/invitations/cases/index.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/insert.d.ts +3 -0
- package/dist/conformance/invitations/cases/insert.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/list-lapsed.d.ts +3 -0
- package/dist/conformance/invitations/cases/list-lapsed.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/list-status.d.ts +3 -0
- package/dist/conformance/invitations/cases/list-status.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/list.d.ts +3 -0
- package/dist/conformance/invitations/cases/list.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/outage.d.ts +3 -0
- package/dist/conformance/invitations/cases/outage.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/scope.d.ts +3 -0
- package/dist/conformance/invitations/cases/scope.d.ts.map +1 -0
- package/dist/conformance/invitations/cases/update.d.ts +3 -0
- package/dist/conformance/invitations/cases/update.d.ts.map +1 -0
- package/dist/conformance/invitations/describe.d.ts +20 -0
- package/dist/conformance/invitations/describe.d.ts.map +1 -0
- package/dist/conformance/invitations/fixtures.d.ts +4 -0
- package/dist/conformance/invitations/fixtures.d.ts.map +1 -0
- package/dist/conformance/invitations/index.d.ts +18 -0
- package/dist/conformance/invitations/index.d.ts.map +1 -0
- package/dist/conformance/invitations/reference.d.ts +4 -0
- package/dist/conformance/invitations/reference.d.ts.map +1 -0
- package/dist/conformance/invitations/types.d.ts +34 -0
- package/dist/conformance/invitations/types.d.ts.map +1 -0
- package/dist/conformance/reference.d.ts +13 -0
- package/dist/conformance/reference.d.ts.map +1 -0
- package/dist/conformance/relations/cases/deletion.d.ts +4 -0
- package/dist/conformance/relations/cases/deletion.d.ts.map +1 -0
- package/dist/conformance/relations/cases/holders.d.ts +9 -0
- package/dist/conformance/relations/cases/holders.d.ts.map +1 -0
- package/dist/conformance/relations/cases/index.d.ts +4 -0
- package/dist/conformance/relations/cases/index.d.ts.map +1 -0
- package/dist/conformance/relations/cases/outage.d.ts +3 -0
- package/dist/conformance/relations/cases/outage.d.ts.map +1 -0
- package/dist/conformance/relations/cases/reads.d.ts +8 -0
- package/dist/conformance/relations/cases/reads.d.ts.map +1 -0
- package/dist/conformance/relations/cases/traversal.d.ts +7 -0
- package/dist/conformance/relations/cases/traversal.d.ts.map +1 -0
- package/dist/conformance/relations/cases/writes.d.ts +4 -0
- package/dist/conformance/relations/cases/writes.d.ts.map +1 -0
- package/dist/conformance/relations/describe.d.ts +20 -0
- package/dist/conformance/relations/describe.d.ts.map +1 -0
- package/dist/conformance/relations/fixtures.d.ts +8 -0
- package/dist/conformance/relations/fixtures.d.ts.map +1 -0
- package/dist/conformance/relations/index.d.ts +18 -0
- package/dist/conformance/relations/index.d.ts.map +1 -0
- package/dist/conformance/relations/reference.d.ts +4 -0
- package/dist/conformance/relations/reference.d.ts.map +1 -0
- package/dist/conformance/relations/types.d.ts +34 -0
- package/dist/conformance/relations/types.d.ts.map +1 -0
- package/dist/conformance/types.d.ts +79 -0
- package/dist/conformance/types.d.ts.map +1 -0
- package/dist/errors/janus-error/base.d.ts +47 -0
- package/dist/errors/janus-error/base.d.ts.map +1 -0
- package/dist/errors/janus-error/codes.credentials.d.ts +36 -0
- package/dist/errors/janus-error/codes.credentials.d.ts.map +1 -0
- package/dist/errors/janus-error/codes.d.ts +23 -0
- package/dist/errors/janus-error/codes.d.ts.map +1 -0
- package/dist/errors/janus-error/codes.invitations.d.ts +52 -0
- package/dist/errors/janus-error/codes.invitations.d.ts.map +1 -0
- package/dist/errors/janus-error/codes.one-time.d.ts +63 -0
- package/dist/errors/janus-error/codes.one-time.d.ts.map +1 -0
- package/dist/errors/janus-error/codes.records.d.ts +86 -0
- package/dist/errors/janus-error/codes.records.d.ts.map +1 -0
- package/dist/errors/janus-error/codes.social.d.ts +88 -0
- package/dist/errors/janus-error/codes.social.d.ts.map +1 -0
- package/dist/errors/janus-error/index.d.ts +17 -0
- package/dist/errors/janus-error/index.d.ts.map +1 -0
- package/dist/errors/janus-error/options.d.ts +105 -0
- package/dist/errors/janus-error/options.d.ts.map +1 -0
- package/dist/errors/janus-error/refusals.d.ts +151 -0
- package/dist/errors/janus-error/refusals.d.ts.map +1 -0
- package/dist/errors/janus-error/status.d.ts +21 -0
- package/dist/errors/janus-error/status.d.ts.map +1 -0
- package/dist/errors/janus-error/store.d.ts +36 -0
- package/dist/errors/janus-error/store.d.ts.map +1 -0
- package/dist/ids/derived.d.ts +25 -0
- package/dist/ids/derived.d.ts.map +1 -0
- package/dist/ids/id.d.ts +55 -0
- package/dist/ids/id.d.ts.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6933 -0
- package/dist/index.js.map +208 -0
- package/dist/pagination/cursor-page.d.ts +53 -0
- package/dist/pagination/cursor-page.d.ts.map +1 -0
- package/dist/permissions/bound-model.d.ts +10 -0
- package/dist/permissions/bound-model.d.ts.map +1 -0
- package/dist/permissions/can.d.ts +13 -0
- package/dist/permissions/can.d.ts.map +1 -0
- package/dist/permissions/engine.d.ts +49 -0
- package/dist/permissions/engine.d.ts.map +1 -0
- package/dist/permissions/holders.d.ts +12 -0
- package/dist/permissions/holders.d.ts.map +1 -0
- package/dist/permissions/index.d.ts +36 -0
- package/dist/permissions/index.d.ts.map +1 -0
- package/dist/permissions/index.js +924 -0
- package/dist/permissions/index.js.map +28 -0
- package/dist/permissions/input.d.ts +43 -0
- package/dist/permissions/input.d.ts.map +1 -0
- package/dist/permissions/list.d.ts +16 -0
- package/dist/permissions/list.d.ts.map +1 -0
- package/dist/permissions/model/can.d.ts +41 -0
- package/dist/permissions/model/can.d.ts.map +1 -0
- package/dist/permissions/model/config.d.ts +36 -0
- package/dist/permissions/model/config.d.ts.map +1 -0
- package/dist/permissions/model/constraint.d.ts +37 -0
- package/dist/permissions/model/constraint.d.ts.map +1 -0
- package/dist/permissions/model/ctx.d.ts +23 -0
- package/dist/permissions/model/ctx.d.ts.map +1 -0
- package/dist/permissions/model/define.d.ts +78 -0
- package/dist/permissions/model/define.d.ts.map +1 -0
- package/dist/permissions/model/from-field.d.ts +31 -0
- package/dist/permissions/model/from-field.d.ts.map +1 -0
- package/dist/permissions/model/grant.d.ts +81 -0
- package/dist/permissions/model/grant.d.ts.map +1 -0
- package/dist/permissions/model/list.d.ts +48 -0
- package/dist/permissions/model/list.d.ts.map +1 -0
- package/dist/permissions/model/names.d.ts +51 -0
- package/dist/permissions/model/names.d.ts.map +1 -0
- package/dist/permissions/model/permissions.d.ts +48 -0
- package/dist/permissions/model/permissions.d.ts.map +1 -0
- package/dist/permissions/model/refs.d.ts +36 -0
- package/dist/permissions/model/refs.d.ts.map +1 -0
- package/dist/permissions/model/refusal.d.ts +13 -0
- package/dist/permissions/model/refusal.d.ts.map +1 -0
- package/dist/permissions/model/unions.d.ts +3 -0
- package/dist/permissions/model/unions.d.ts.map +1 -0
- package/dist/permissions/model/when.d.ts +16 -0
- package/dist/permissions/model/when.d.ts.map +1 -0
- package/dist/permissions/port/holders.d.ts +38 -0
- package/dist/permissions/port/holders.d.ts.map +1 -0
- package/dist/permissions/port/memory.d.ts +17 -0
- package/dist/permissions/port/memory.d.ts.map +1 -0
- package/dist/permissions/port/types.d.ts +101 -0
- package/dist/permissions/port/types.d.ts.map +1 -0
- package/dist/permissions/replace.d.ts +25 -0
- package/dist/permissions/replace.d.ts.map +1 -0
- package/dist/permissions/resolve/declared-names.d.ts +24 -0
- package/dist/permissions/resolve/declared-names.d.ts.map +1 -0
- package/dist/permissions/resolve/refuse-data-beyond-root.d.ts +11 -0
- package/dist/permissions/resolve/refuse-data-beyond-root.d.ts.map +1 -0
- package/dist/permissions/resolve/refuse-loops.d.ts +10 -0
- package/dist/permissions/resolve/refuse-loops.d.ts.map +1 -0
- package/dist/permissions/resolve/resolve-model.d.ts +13 -0
- package/dist/permissions/resolve/resolve-model.d.ts.map +1 -0
- package/dist/permissions/resolve/resolve-relation.d.ts +9 -0
- package/dist/permissions/resolve/resolve-relation.d.ts.map +1 -0
- package/dist/permissions/resolve/resolve-rule.d.ts +12 -0
- package/dist/permissions/resolve/resolve-rule.d.ts.map +1 -0
- package/dist/permissions/resolve/resolved.d.ts +52 -0
- package/dist/permissions/resolve/resolved.d.ts.map +1 -0
- package/dist/permissions/resolve/step.d.ts +4 -0
- package/dist/permissions/resolve/step.d.ts.map +1 -0
- package/dist/permissions/reverse.d.ts +53 -0
- package/dist/permissions/reverse.d.ts.map +1 -0
- package/dist/permissions/walk.d.ts +29 -0
- package/dist/permissions/walk.d.ts.map +1 -0
- package/dist/stores/guard.d.ts +24 -0
- package/dist/stores/guard.d.ts.map +1 -0
- package/dist/stores/storable.d.ts +15 -0
- package/dist/stores/storable.d.ts.map +1 -0
- package/dist/subjects/notation.d.ts +39 -0
- package/dist/subjects/notation.d.ts.map +1 -0
- package/dist/subjects/subject.d.ts +128 -0
- package/dist/subjects/subject.d.ts.map +1 -0
- package/dist/testing/index.d.ts +12 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +26 -0
- package/dist/testing/index.js.map +10 -0
- package/dist/time/clock.d.ts +31 -0
- package/dist/time/clock.d.ts.map +1 -0
- package/dist/time/duration.d.ts +23 -0
- package/dist/time/duration.d.ts.map +1 -0
- package/docs/README.md +46 -0
- package/docs/guide/adapters.md +858 -0
- package/docs/guide/api-keys.md +316 -0
- package/docs/guide/avatars.md +334 -0
- package/docs/guide/devices.md +441 -0
- package/docs/guide/email-flows.md +880 -0
- package/docs/guide/errors.md +180 -0
- package/docs/guide/events.md +467 -0
- package/docs/guide/invitations.md +465 -0
- package/docs/guide/issuers.md +107 -0
- package/docs/guide/magic-link.md +580 -0
- package/docs/guide/migrating-invitations.md +142 -0
- package/docs/guide/passkeys.md +425 -0
- package/docs/guide/passwords.md +325 -0
- package/docs/guide/permissions.md +719 -0
- package/docs/guide/second-factor.md +1124 -0
- package/docs/guide/sessions.md +521 -0
- package/docs/guide/sign-in-code.md +631 -0
- package/docs/guide/social.md +639 -0
- package/docs/guide/step-up.md +262 -0
- package/docs/guide/users.md +557 -0
- package/docs/guide/vocabulary.md +316 -0
- package/docs/roadmap.md +101 -0
- package/docs/troubleshooting.md +3305 -0
- package/package.json +77 -5
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `auth.invitations` as `janus()` adds it: only when the configuration has the
|
|
3
|
+
* `invitations` block.
|
|
4
|
+
*
|
|
5
|
+
* Part of what `janus()` hands back; `./janus` gathers it.
|
|
6
|
+
*/
|
|
7
|
+
import type { JanusConfig, MultiTypeConfig } from '../config';
|
|
8
|
+
import type { InvitationsApi } from './invitations';
|
|
9
|
+
/** The names `invitations.type` lists: one string, or the members of a list. */
|
|
10
|
+
export type InvitedNames<T> = T extends string ? T : T extends readonly (infer N extends string)[] ? N : never;
|
|
11
|
+
/**
|
|
12
|
+
* The user types an invitation can be for: the names `invitations.type` lists
|
|
13
|
+
* on an instance with several user types, else any string (a single-type
|
|
14
|
+
* instance takes `type` or not, and the run-time check refuses a wrong one).
|
|
15
|
+
*/
|
|
16
|
+
type InvitableTypes<C extends JanusConfig> = C extends MultiTypeConfig ? C extends {
|
|
17
|
+
readonly invitations: {
|
|
18
|
+
readonly type: infer T;
|
|
19
|
+
};
|
|
20
|
+
} ? [InvitedNames<T>] extends [never] ? string : InvitedNames<T> : string : string;
|
|
21
|
+
/** `auth.invitations` — only when the configuration has the `invitations` block. */
|
|
22
|
+
export type InvitationsOf<C extends JanusConfig> = C extends {
|
|
23
|
+
readonly invitations: object;
|
|
24
|
+
} ? InvitationsApi<InvitableTypes<C>> : unknown;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=invitations-of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invitations-of.d.ts","sourceRoot":"","sources":["../../../src/auth/types/invitations-of.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,gFAAgF;AAChF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAC3C,CAAC,GACD,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,SAAS,MAAM,CAAC,EAAE,GAC5C,CAAC,GACD,KAAK,CAAC;AAEV;;;;GAIG;AACH,KAAK,cAAc,CAAC,CAAC,SAAS,WAAW,IAAI,CAAC,SAAS,eAAe,GACnE,CAAC,SAAS;IAAE,QAAQ,CAAC,WAAW,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;KAAE,CAAA;CAAE,GAC7D,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAChC,MAAM,GACN,YAAY,CAAC,CAAC,CAAC,GAChB,MAAM,GACP,MAAM,CAAC;AAEV,oFAAoF;AACpF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI,CAAC,SAAS;IAC5D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC7B,GACE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GACjC,OAAO,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `janus(config)` answers: the shared surface and one `TypeApi` per
|
|
3
|
+
* user type, from the configuration's own shape.
|
|
4
|
+
*
|
|
5
|
+
* Part of what `janus()` hands back; `./index` gathers it.
|
|
6
|
+
*/
|
|
7
|
+
import type { JanusConfig, MultiTypeConfig, SingleTypeConfig } from '../config';
|
|
8
|
+
import type { ApiKeysOf } from './api-keys-of';
|
|
9
|
+
import type { AvatarApi } from './avatar';
|
|
10
|
+
import type { AnyTypeChangeEmailApi } from './change-email';
|
|
11
|
+
import type { EmailOf, LoginOf, SingleAsType, UserOf, UserOfType } from './inference';
|
|
12
|
+
import type { InvitationsOf } from './invitations-of';
|
|
13
|
+
import type { AnyTypeResetPasswordApi } from './reset-password';
|
|
14
|
+
import type { SharedApi } from './shared-api';
|
|
15
|
+
import type { SocialOf } from './social';
|
|
16
|
+
import type { TypeApi } from './type-api';
|
|
17
|
+
import type { AnyTypeVerifyEmailApi } from './verify-email';
|
|
18
|
+
/**
|
|
19
|
+
* Whether a configuration may turn the second factor on. **A key that is
|
|
20
|
+
* there at all counts**, optional or not: a `secondFactor` set from the
|
|
21
|
+
* environment may be on at run time, and `signIn` must be typed for it.
|
|
22
|
+
*/
|
|
23
|
+
type TwoFactorOf<C> = 'secondFactor' extends keyof C ? true : false;
|
|
24
|
+
/** Whether a configuration may turn passkeys on, counted like {@link TwoFactorOf}. */
|
|
25
|
+
type PasskeysOf<C> = 'passkeys' extends keyof C ? C extends {
|
|
26
|
+
readonly passkeys: {
|
|
27
|
+
readonly firstFactor: true;
|
|
28
|
+
};
|
|
29
|
+
} ? 'first' : true : false;
|
|
30
|
+
/**
|
|
31
|
+
* The users of the types that have an e-mail, which `verifyEmail.confirm` and
|
|
32
|
+
* `changeEmail.confirm` at the root of several types answer; nothing when no
|
|
33
|
+
* type has one.
|
|
34
|
+
*/
|
|
35
|
+
type EmailUsers<C extends MultiTypeConfig> = {
|
|
36
|
+
[K in keyof C['users'] & string]: [EmailOf<C['users'][K]>] extends [never] ? never : UserOfType<K, C['users'][K]>;
|
|
37
|
+
}[keyof C['users'] & string];
|
|
38
|
+
/**
|
|
39
|
+
* The users of the types that have both a login and an e-mail, as `TypeApi`
|
|
40
|
+
* gates `ResetPasswordApi`: the ones `resetPassword.confirm` at the root
|
|
41
|
+
* answers; nothing when no type has both.
|
|
42
|
+
*/
|
|
43
|
+
type ResetPasswordUsers<C extends MultiTypeConfig> = {
|
|
44
|
+
[K in keyof C['users'] & string]: [LoginOf<C['users'][K]>] extends [never] ? never : [EmailOf<C['users'][K]>] extends [never] ? never : UserOfType<K, C['users'][K]>;
|
|
45
|
+
}[keyof C['users'] & string];
|
|
46
|
+
/** What `janus(config)` answers. */
|
|
47
|
+
export type Janus<C extends JanusConfig> = SharedApi<UserOf<C>> & ApiKeysOf<C> & InvitationsOf<C> & SocialOf<C, TwoFactorOf<C>> & (C extends MultiTypeConfig ? {
|
|
48
|
+
readonly [K in keyof C['users'] & string]: TypeApi<K, C['users'][K], TwoFactorOf<C>, PasskeysOf<C>>;
|
|
49
|
+
} & AvatarApi<UserOf<C>> & ([EmailUsers<C>] extends [never] ? unknown : AnyTypeChangeEmailApi<EmailUsers<C>> & AnyTypeVerifyEmailApi<EmailUsers<C>>) & ([ResetPasswordUsers<C>] extends [never] ? unknown : AnyTypeResetPasswordApi<ResetPasswordUsers<C>>) : C extends SingleTypeConfig ? TypeApi<'user', SingleAsType<C>, TwoFactorOf<C>, PasskeysOf<C>> : never);
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=janus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"janus.d.ts","sourceRoot":"","sources":["../../../src/auth/types/janus.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a user type with an e-mail answers besides: signing in with a link
|
|
3
|
+
* sent to it.
|
|
4
|
+
*
|
|
5
|
+
* Part of what `janus()` hands back; `./index` gathers it.
|
|
6
|
+
*/
|
|
7
|
+
import type { IssuedToken } from './email-flows';
|
|
8
|
+
import type { PreparedRequest } from './prepared';
|
|
9
|
+
import type { SignedIn, SignInOptions } from './sign-in';
|
|
10
|
+
/**
|
|
11
|
+
* Signing in with a link sent to the user's e-mail, no password needed —
|
|
12
|
+
* a sign-in code with nothing to type.
|
|
13
|
+
*
|
|
14
|
+
* `Answer` is `SignInResult` when the type may have a second factor: the
|
|
15
|
+
* link proves the e-mail, and an active factor is still asked for.
|
|
16
|
+
*/
|
|
17
|
+
export interface MagicLinkApi<U, Answer = SignedIn<U>> {
|
|
18
|
+
readonly magicLink: {
|
|
19
|
+
/**
|
|
20
|
+
* Whether magic-link sign-in is on (`janus({ magicLink: { enabled } })`,
|
|
21
|
+
* `true` when absent). Read it to hide the button; when `false`,
|
|
22
|
+
* `request`, `prepare` and `confirm` refuse with `MAGIC_LINK_DISABLED`.
|
|
23
|
+
*/
|
|
24
|
+
readonly enabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Issues a link's token for the user of this type holding this e-mail,
|
|
27
|
+
* or answers `null` when there is none, or they are inactive. **Never
|
|
28
|
+
* tell the visitor which**: answer the same page either way, and in the
|
|
29
|
+
* same time — send the e-mail off the request's path.
|
|
30
|
+
*
|
|
31
|
+
* Put `token` in a link to a page of yours, and **only in the e-mail**.
|
|
32
|
+
* The user's earlier links are spent: only the last one sent works.
|
|
33
|
+
* **Throttled per address**, whether anybody holds it or not: past
|
|
34
|
+
* five requests in 10 minutes (`janus({ mail: { throttle } })`),
|
|
35
|
+
* `MAIL_THROTTLED` with `retryAfter`, and no token. Rate-limit it per
|
|
36
|
+
* client too: one client can ask for many addresses.
|
|
37
|
+
*/
|
|
38
|
+
request(email: string): Promise<(IssuedToken & {
|
|
39
|
+
readonly user: U;
|
|
40
|
+
}) | null>;
|
|
41
|
+
/**
|
|
42
|
+
* `request` in two steps, for an application that sends the link off
|
|
43
|
+
* the visitor's request: counts the address — `MAIL_THROTTLED` with
|
|
44
|
+
* `retryAfter` past the limit, to show the visitor now — and looks
|
|
45
|
+
* nobody up, so it takes the same time for any address. `send()` on
|
|
46
|
+
* the answer does the rest, once, and answers what `request` does.
|
|
47
|
+
*/
|
|
48
|
+
prepare(email: string): Promise<PreparedRequest<IssuedToken & {
|
|
49
|
+
readonly user: U;
|
|
50
|
+
}>>;
|
|
51
|
+
/**
|
|
52
|
+
* Spends the link's token, marks the e-mail verified — the link reached
|
|
53
|
+
* the inbox — and signs the user in. **An e-mail proved for the first
|
|
54
|
+
* time drops the password, the second factor and the avatar, and signs out every
|
|
55
|
+
* session** before the new one opens: whoever registered the address
|
|
56
|
+
* without its inbox keeps nothing, and no factor is asked for. An
|
|
57
|
+
* e-mail already verified changes nothing.
|
|
58
|
+
*
|
|
59
|
+
* **Call it from a `POST`**, never from the `GET` of the link: a mail
|
|
60
|
+
* scanner that opens the link would spend it. An unknown, spent or
|
|
61
|
+
* lapsed token is `TOKEN_UNKNOWN`, `TOKEN_SPENT` or `TOKEN_EXPIRED`; an
|
|
62
|
+
* e-mail the user changed since is `TOKEN_STALE`; an inactive user is
|
|
63
|
+
* `USER_INACTIVE`. The first call spends the token, whether it signs
|
|
64
|
+
* in or is refused.
|
|
65
|
+
*/
|
|
66
|
+
confirm(token: string, options?: SignInOptions): Promise<Answer>;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=magic-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magic-link.d.ts","sourceRoot":"","sources":["../../../src/auth/types/magic-link.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,SAAS,EAAE;QACnB;;;;WAIG;QACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;QAC1B;;;;;;;;;;;;WAYG;QACH,OAAO,CACN,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,WAAW,GAAG;YAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;SAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QACxD;;;;;;WAMG;QACH,OAAO,CACN,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,WAAW,GAAG;YAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;SAAE,CAAC,CAAC,CAAC;QAChE;;;;;;;;;;;;;;WAcG;QACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;KACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a user type answers besides once `janus()` is given `passkeys`:
|
|
3
|
+
* registering, listing, renaming and removing the passkeys of a user whose
|
|
4
|
+
* TOTP is active.
|
|
5
|
+
*
|
|
6
|
+
* Part of what `janus()` hands back; `./index` gathers it.
|
|
7
|
+
*/
|
|
8
|
+
import type { Id } from '../../ids/id';
|
|
9
|
+
import type { Authenticated } from './session';
|
|
10
|
+
import type { SignedIn, SignInOptions } from './sign-in';
|
|
11
|
+
import type { UserRef } from './user';
|
|
12
|
+
/**
|
|
13
|
+
* A passkey as application code sees it. **The public key and the counter
|
|
14
|
+
* stay in the store**: nothing a page shows needs them.
|
|
15
|
+
*/
|
|
16
|
+
export interface Passkey {
|
|
17
|
+
/** The authenticator's credential id, base64url: what `rename` and `remove` name. */
|
|
18
|
+
readonly credentialId: string;
|
|
19
|
+
readonly userId: Id;
|
|
20
|
+
/** The name the user gave it. */
|
|
21
|
+
readonly name: string;
|
|
22
|
+
/** What the authenticator reported at registration (`'internal'`, `'usb'`). */
|
|
23
|
+
readonly transports: readonly string[];
|
|
24
|
+
/** The authenticator model, for an icon or a label. */
|
|
25
|
+
readonly aaguid: string;
|
|
26
|
+
/** Whether the credential may be synced across the user's devices. */
|
|
27
|
+
readonly backupEligible: boolean;
|
|
28
|
+
/** Whether it is synced now. */
|
|
29
|
+
readonly backedUp: boolean;
|
|
30
|
+
readonly createdAt: Date;
|
|
31
|
+
/** When it last answered a challenge, or `null` if it never has. */
|
|
32
|
+
readonly lastUsedAt: Date | null;
|
|
33
|
+
}
|
|
34
|
+
/** What `passkeys.registrationOptions` answers. */
|
|
35
|
+
export interface PasskeyRegistrationOptions {
|
|
36
|
+
/**
|
|
37
|
+
* The JSON for `navigator.credentials.create({ publicKey })`, as the
|
|
38
|
+
* verifier shaped it. The challenge inside is `challenge`.
|
|
39
|
+
*/
|
|
40
|
+
readonly options: Readonly<Record<string, unknown>>;
|
|
41
|
+
/**
|
|
42
|
+
* The challenge, base64url: **keep it with the user** (the page's state, a
|
|
43
|
+
* short-lived cookie) and give it back to `register` with the browser's
|
|
44
|
+
* answer. One challenge registers one passkey, once.
|
|
45
|
+
*/
|
|
46
|
+
readonly challenge: string;
|
|
47
|
+
readonly expiresAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/** What `passkeys.signInOptions` answers. */
|
|
50
|
+
export interface PasskeySignInChallenge {
|
|
51
|
+
/**
|
|
52
|
+
* The JSON for `navigator.credentials.get({ publicKey })`, with no
|
|
53
|
+
* credential named: the browser offers the discoverable passkeys it holds
|
|
54
|
+
* for the relying party. The challenge inside is `challenge`.
|
|
55
|
+
*/
|
|
56
|
+
readonly options: Readonly<Record<string, unknown>>;
|
|
57
|
+
/**
|
|
58
|
+
* The challenge, base64url: **keep it with the visitor** (page state, a
|
|
59
|
+
* short-lived cookie) and give it back to `passkeys.signIn` with the
|
|
60
|
+
* browser's answer. One challenge is one attempt.
|
|
61
|
+
*/
|
|
62
|
+
readonly challenge: string;
|
|
63
|
+
readonly expiresAt: Date;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* What a user type answers besides, once `janus()` is given `passkeys`.
|
|
67
|
+
*
|
|
68
|
+
* **A passkey is a second factor beside TOTP, never instead of it**, unless
|
|
69
|
+
* `passkeys.firstFactor` is on: nothing is registered for a user whose TOTP
|
|
70
|
+
* is not active, and `signInOptions` and `signIn` refuse with a `TypeError`.
|
|
71
|
+
* A type that holds an e-mail registers a passkey only once it is verified
|
|
72
|
+
* (`EMAIL_UNVERIFIED`): the first proof removes every passkey.
|
|
73
|
+
*/
|
|
74
|
+
export interface PasskeysApi<U> {
|
|
75
|
+
readonly passkeys: {
|
|
76
|
+
/**
|
|
77
|
+
* Starts a registration: makes a challenge, stores its hash for the
|
|
78
|
+
* configured lifetime, and answers the options the browser needs, with
|
|
79
|
+
* the user's existing passkeys excluded so one authenticator is not
|
|
80
|
+
* registered twice. `SECOND_FACTOR_NOT_ENROLLED` when the user's TOTP is
|
|
81
|
+
* not active, `USER_INACTIVE` for an inactive user, `NOT_FOUND` for an
|
|
82
|
+
* unknown one.
|
|
83
|
+
*/
|
|
84
|
+
registrationOptions(user: UserRef): Promise<PasskeyRegistrationOptions>;
|
|
85
|
+
/**
|
|
86
|
+
* Finishes a registration: spends `challenge`, has the verifier check
|
|
87
|
+
* `response` — the browser's JSON, as received — and stores the passkey
|
|
88
|
+
* under `name` (1 to 100 characters once trimmed). **Fresh**: the
|
|
89
|
+
* session must have proved who it is within `passkeys.freshWithin`
|
|
90
|
+
* (`STEP_UP_REQUIRED`). Emits `user.passkeyAdded`.
|
|
91
|
+
*
|
|
92
|
+
* `PASSKEY_INVALID` when the response does not verify (`reason` says
|
|
93
|
+
* why; the challenge is spent) or the name is not acceptable (checked
|
|
94
|
+
* first, nothing spent). `PASSKEY_TAKEN` when the credential is already
|
|
95
|
+
* registered. `TOKEN_UNKNOWN`, `TOKEN_SPENT` and `TOKEN_EXPIRED` for the
|
|
96
|
+
* challenge, and `SECOND_FACTOR_NOT_ENROLLED` when the TOTP went
|
|
97
|
+
* inactive meanwhile.
|
|
98
|
+
*/
|
|
99
|
+
register(current: Authenticated<U>, input: {
|
|
100
|
+
readonly challenge: string;
|
|
101
|
+
readonly response: unknown;
|
|
102
|
+
readonly name: string;
|
|
103
|
+
}): Promise<Passkey>;
|
|
104
|
+
/** The user's passkeys, oldest first; none when they have none. `NOT_FOUND` for an unknown user. */
|
|
105
|
+
list(user: UserRef): Promise<readonly Passkey[]>;
|
|
106
|
+
/**
|
|
107
|
+
* Renames one of the user's passkeys. `true` when it was renamed, `false`
|
|
108
|
+
* for one that is not theirs or not there. `PASSKEY_INVALID` for a name
|
|
109
|
+
* that is not 1 to 100 characters once trimmed.
|
|
110
|
+
*/
|
|
111
|
+
rename(user: UserRef, credentialId: string, name: string): Promise<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* Removes one of the session user's passkeys. **Fresh**, like `register`.
|
|
114
|
+
* `true` when this call deleted it, `false` for one that is not theirs or
|
|
115
|
+
* not there. Emits `user.passkeyRemoved` when it did.
|
|
116
|
+
*/
|
|
117
|
+
remove(current: Authenticated<U>, credentialId: string): Promise<boolean>;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* What a user type answers besides, once `janus()` is given `passkeys` with
|
|
122
|
+
* `firstFactor: true` (a literal `true`): the passwordless sign-in. Without
|
|
123
|
+
* the literal the two flows are absent from the type; at run time they refuse
|
|
124
|
+
* with a `TypeError` naming `passkeys.firstFactor`.
|
|
125
|
+
*/
|
|
126
|
+
export interface PasskeyFirstFactorApi<U> {
|
|
127
|
+
readonly passkeys: {
|
|
128
|
+
/**
|
|
129
|
+
* Starts a passwordless sign-in: makes a challenge, stores
|
|
130
|
+
* its hash for `tokens.passkeyRegistration`, and answers the options for
|
|
131
|
+
* `navigator.credentials.get`, with no credential named. Anyone may call
|
|
132
|
+
* it: **rate-limit it** where requests enter, as each call stores one
|
|
133
|
+
* short-lived token.
|
|
134
|
+
*/
|
|
135
|
+
signInOptions(): Promise<PasskeySignInChallenge>;
|
|
136
|
+
/**
|
|
137
|
+
* Finishes a passwordless
|
|
138
|
+
* sign-in: spends `challenge`, finds the passkey `response` — what
|
|
139
|
+
* `navigator.credentials.get` produced, as received — names, has the
|
|
140
|
+
* verifier check it **with user verification required**, and opens a
|
|
141
|
+
* session whose `authenticatedAt` is now. No password and no TOTP code
|
|
142
|
+
* is asked, whatever the user holds: the passkey, verified on the device,
|
|
143
|
+
* is the whole proof. A device is given as for `signIn`.
|
|
144
|
+
*
|
|
145
|
+
* One attempt per challenge. Everything the visitor can cause — a
|
|
146
|
+
* credential that is unknown, of another user type or in another store,
|
|
147
|
+
* a response that does not verify or did not verify the user, a counter
|
|
148
|
+
* that went backwards (which also emits `user.passkeyCloneSuspected`) —
|
|
149
|
+
* is `CREDENTIALS_INVALID` with `reason: 'passkey'`. An unknown, spent
|
|
150
|
+
* or lapsed challenge is `TOKEN_UNKNOWN`, `TOKEN_SPENT` or
|
|
151
|
+
* `TOKEN_EXPIRED`. Once the assertion verified: `USER_INACTIVE`, and
|
|
152
|
+
* `EMAIL_UNVERIFIED` with `password.requireVerifiedEmail`.
|
|
153
|
+
*/
|
|
154
|
+
signIn(challenge: string, response: unknown, options?: SignInOptions): Promise<SignedIn<U>>;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* What a user type answers besides, once `janus()` is given `passkeys` and a
|
|
159
|
+
* `secondFactor`: finishing a sign-in with a passkey.
|
|
160
|
+
*/
|
|
161
|
+
export interface PasskeySignInApi<U> {
|
|
162
|
+
readonly secondFactor: {
|
|
163
|
+
/**
|
|
164
|
+
* Redeems `signIn`'s challenge with the browser's answer to
|
|
165
|
+
* `challenge.passkeyOptions` — `assertion`, the JSON
|
|
166
|
+
* `navigator.credentials.get` produced, as received — and opens the
|
|
167
|
+
* session.
|
|
168
|
+
*
|
|
169
|
+
* It takes the challenge's **five attempts**, the ones `confirm` and
|
|
170
|
+
* `recover` count: an assertion that does not verify, or names a
|
|
171
|
+
* passkey that is not the user's, is `CODE_INVALID` with
|
|
172
|
+
* `attemptsLeft`, and the fifth spends the challenge. An assertion
|
|
173
|
+
* whose counter went backwards is refused the same way **and** emits
|
|
174
|
+
* `user.passkeyCloneSuspected`; the passkey stays active. On success
|
|
175
|
+
* the passkey's counter, `backedUp` and `lastUsedAt` are updated.
|
|
176
|
+
* An unknown, spent or lapsed challenge is `TOKEN_UNKNOWN`,
|
|
177
|
+
* `TOKEN_SPENT` or `TOKEN_EXPIRED`. The `device` is given here again,
|
|
178
|
+
* as for `confirm`.
|
|
179
|
+
*/
|
|
180
|
+
confirmPasskey(challenge: string, assertion: unknown, options?: SignInOptions): Promise<SignedIn<U>>;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=passkeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passkeys.d.ts","sourceRoot":"","sources":["../../../src/auth/types/passkeys.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The password flows of a user type: signing up, signing in, and setting or
|
|
3
|
+
* changing a password.
|
|
4
|
+
*
|
|
5
|
+
* Part of what `janus()` hands back; `./index` gathers it.
|
|
6
|
+
*/
|
|
7
|
+
import type { PreparedSignUp } from './prepared';
|
|
8
|
+
import type { SignedIn, SignInOptions } from './sign-in';
|
|
9
|
+
import type { UserRef, WriteOptions } from './user';
|
|
10
|
+
/**
|
|
11
|
+
* What a user type that signs in with a password answers besides.
|
|
12
|
+
*
|
|
13
|
+
* `Answer` is what `signIn` answers: {@link SignedIn}, or {@link SignInResult}
|
|
14
|
+
* once `janus()` is given a `secondFactor`.
|
|
15
|
+
*/
|
|
16
|
+
export interface PasswordApi<U, In, Login extends string, Answer = SignedIn<U>> {
|
|
17
|
+
/**
|
|
18
|
+
* Creates the user and signs them in.
|
|
19
|
+
*
|
|
20
|
+
* Rejects with `USER_INVALID`, `PASSWORD_TOO_SHORT`, `LOGIN_TAKEN`, or
|
|
21
|
+
* `STORE_FAILED`.
|
|
22
|
+
*
|
|
23
|
+
* Given a `device`, mints the user's first device token: the device they
|
|
24
|
+
* signed up on is known from the start, and never reported as new.
|
|
25
|
+
*/
|
|
26
|
+
signUp: (input: In & {
|
|
27
|
+
readonly password: string;
|
|
28
|
+
}, options?: SignInOptions) => Promise<SignedIn<U>>;
|
|
29
|
+
/**
|
|
30
|
+
* Checks the password and opens a session.
|
|
31
|
+
*
|
|
32
|
+
* Rejects with `CREDENTIALS_INVALID` — one code for an unknown login, a user
|
|
33
|
+
* with no password and a wrong password, so a response cannot tell which
|
|
34
|
+
* accounts exist; `reason` tells them apart for your logs. When nobody holds
|
|
35
|
+
* the login, a dummy hash is still compared, so the time taken does not say
|
|
36
|
+
* so either. **The store's own latency stays observable**, and that limit is
|
|
37
|
+
* documented rather than denied. An inactive user who gave the right
|
|
38
|
+
* password is `USER_INACTIVE`.
|
|
39
|
+
*
|
|
40
|
+
* **Throttled per login**, on by default: past ten passwords tried at one
|
|
41
|
+
* login in a 15-minute window — known or not — every one is
|
|
42
|
+
* `CREDENTIALS_INVALID` with `reason: 'throttled'` and `retryAfter`, the
|
|
43
|
+
* seconds until the next window, the right password included. Nothing
|
|
44
|
+
* locks; a sign-in that succeeds starts the count again. See
|
|
45
|
+
* `janus({ signIn: { throttle } })`. A tokens store that cannot count is
|
|
46
|
+
* `STORE_FAILED`.
|
|
47
|
+
*
|
|
48
|
+
* With a `secondFactor` configured, a user whose factor is active gets no
|
|
49
|
+
* session yet: `{ status: 'secondFactor', challenge }`, for
|
|
50
|
+
* `secondFactor.confirm`. Switch on `status`.
|
|
51
|
+
*
|
|
52
|
+
* Given a `device`, answers `newDevice` and `deviceToken`, and sends
|
|
53
|
+
* `user.newDeviceSignedIn` for a device new to the user. A challenge
|
|
54
|
+
* carries no device: give it again to `secondFactor.confirm`.
|
|
55
|
+
*/
|
|
56
|
+
signIn(input: {
|
|
57
|
+
readonly [K in Login]: string;
|
|
58
|
+
} & {
|
|
59
|
+
readonly password: string;
|
|
60
|
+
}, options?: SignInOptions): Promise<Answer>;
|
|
61
|
+
/** The user holding this login, normalised as sign-up normalised it, or `null`. */
|
|
62
|
+
findByLogin(login: string): Promise<U | null>;
|
|
63
|
+
/** Sets or replaces the password — an admin's call. `PASSWORD_TOO_SHORT` below the policy. */
|
|
64
|
+
setPassword(user: UserRef, password: string, options?: WriteOptions): Promise<U>;
|
|
65
|
+
/**
|
|
66
|
+
* Replaces the password after checking the current one — the user's call.
|
|
67
|
+
* `CREDENTIALS_INVALID` when `current` is wrong. Each call is counted in
|
|
68
|
+
* the sign-in throttle of the user's login, whose budget `signIn` shares:
|
|
69
|
+
* past the limit it is `CREDENTIALS_INVALID` with `reason: 'throttled'` and
|
|
70
|
+
* `retryAfter`, the right `current` included, and a change that is written
|
|
71
|
+
* restarts the count; that restart runs after the write, so a `STORE_FAILED`
|
|
72
|
+
* from it leaves the password changed: check with `signIn` using `next`
|
|
73
|
+
* before retrying. Other sessions stay open: call
|
|
74
|
+
* `signOutEverywhere(user, { except })` for that.
|
|
75
|
+
*/
|
|
76
|
+
changePassword(user: UserRef, change: {
|
|
77
|
+
readonly current: string;
|
|
78
|
+
readonly next: string;
|
|
79
|
+
}, options?: WriteOptions): Promise<U>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* `signUp.prepare`, on a user type whose **login is its e-mail field**: the
|
|
83
|
+
* typed address is the holder's address, so the `taken` notice goes to the
|
|
84
|
+
* person who typed it. A type that signs in with another field (a username)
|
|
85
|
+
* has no `prepare`, since a taken username would reveal an account and mail a
|
|
86
|
+
* stranger.
|
|
87
|
+
*/
|
|
88
|
+
export interface SignUpPrepareApi<U, In> {
|
|
89
|
+
readonly signUp: {
|
|
90
|
+
/**
|
|
91
|
+
* `signUp` for an application that verifies the e-mail and answers
|
|
92
|
+
* the same for a new address and a taken one, in two steps.
|
|
93
|
+
*
|
|
94
|
+
* `prepare` runs in the visitor's request and looks nobody up: it
|
|
95
|
+
* validates the fields (`USER_INVALID`), checks the password against
|
|
96
|
+
* the policy (`PASSWORD_TOO_SHORT`) and counts the attempt per address
|
|
97
|
+
* (`MAIL_THROTTLED` with `retryAfter`, `janus({ mail: { throttle } })`)
|
|
98
|
+
* — the same store calls whatever the address.
|
|
99
|
+
*
|
|
100
|
+
* `send()` on the answer, run off the request, creates the user and
|
|
101
|
+
* issues a verification token — `{ status: 'created', user, issued }`,
|
|
102
|
+
* **no session** — or, for a login already held, writes nothing and
|
|
103
|
+
* answers `{ status: 'taken', user }`. Mail `issued` in the first
|
|
104
|
+
* case, a "somebody tried to sign up" notice in the second. Pair it with
|
|
105
|
+
* `password: { requireVerifiedEmail: true }` so the address must be
|
|
106
|
+
* verified before a session opens.
|
|
107
|
+
*/
|
|
108
|
+
prepare(input: In & {
|
|
109
|
+
readonly password: string;
|
|
110
|
+
}): Promise<PreparedSignUp<U>>;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../src/auth/types/password.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAgB,MAAM,WAAW,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAC3B,CAAC,EACD,EAAE,EACF,KAAK,SAAS,MAAM,EACpB,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC;IAEpB;;;;;;;;OAQG;IACH,MAAM,EAAE,CACP,KAAK,EAAE,EAAE,GAAG;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EACzC,OAAO,CAAC,EAAE,aAAa,KACnB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CACL,KAAK,EAAE;QAAE,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,MAAM;KAAE,GAAG;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EACxE,OAAO,CAAC,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,mFAAmF;IACnF,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAE9C,8FAA8F;IAC9F,WAAW,CACV,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC,CAAC,CAAC,CAAC;IAEd;;;;;;;;;;OAUG;IACH,cAAc,CACb,IAAI,EAAE,OAAO,EACb,MAAM,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAC3D,OAAO,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC,CAAC,CAAC,CAAC;CACd;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,EAAE,EAAE;IACtC,QAAQ,CAAC,MAAM,EAAE;QAChB;;;;;;;;;;;;;;;;;WAiBG;QACH,OAAO,CACN,KAAK,EAAE,EAAE,GAAG;YAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,GACvC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;KAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `prepare` answers — `magicLink.prepare`, `signInCode.prepare`,
|
|
3
|
+
* `resetPassword.prepare`: a request for an e-mail, counted, not yet looked
|
|
4
|
+
* up.
|
|
5
|
+
*
|
|
6
|
+
* Part of what `janus()` hands back; `./index` gathers it.
|
|
7
|
+
*/
|
|
8
|
+
import type { IssuedCode, IssuedToken } from './email-flows';
|
|
9
|
+
/**
|
|
10
|
+
* A request counted by the mail throttle and not yet looked up: `send()`
|
|
11
|
+
* does the rest of what `request` does — looks the address up, issues, and
|
|
12
|
+
* spends the earlier tokens — and answers what `request` answers, `null`
|
|
13
|
+
* for an address nobody (active) holds.
|
|
14
|
+
*
|
|
15
|
+
* **`send()` runs once.** A second call is a `TypeError`, and so is a call
|
|
16
|
+
* after a first one failed: `prepare` again, which counts again.
|
|
17
|
+
*/
|
|
18
|
+
export interface PreparedRequest<Issued> {
|
|
19
|
+
/**
|
|
20
|
+
* Looks the address up and issues, without counting again — the count
|
|
21
|
+
* was `prepare`'s. Send it off the visitor's request: its time tells
|
|
22
|
+
* whether the address has an account.
|
|
23
|
+
*/
|
|
24
|
+
send(): Promise<Issued | null>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A sign-in code's prepared request: the `challenge` is minted before
|
|
28
|
+
* anybody is looked up, so it goes to the visitor now, whoever holds the
|
|
29
|
+
* address — and replaces the decoy an unknown address needs. For an address
|
|
30
|
+
* nobody holds, `send()` answers `null` and the challenge is
|
|
31
|
+
* `TOKEN_UNKNOWN`; otherwise it is the `challenge` of what `send()` issues.
|
|
32
|
+
*/
|
|
33
|
+
export interface PreparedCode<U> extends PreparedRequest<IssuedCode<U>> {
|
|
34
|
+
/**
|
|
35
|
+
* The secret the code will be checked against. **Keep it with the
|
|
36
|
+
* visitor** — a short-lived cookie, or the code form's body — never in
|
|
37
|
+
* the e-mail, a URL or a log.
|
|
38
|
+
*/
|
|
39
|
+
readonly challenge: string;
|
|
40
|
+
}
|
|
41
|
+
/** What a prepared sign-up's `send()` answers. */
|
|
42
|
+
export type SignUpOutcome<U> = {
|
|
43
|
+
/** The account exists now, its e-mail still to verify, and nobody is signed in. */
|
|
44
|
+
readonly status: 'created';
|
|
45
|
+
readonly user: U;
|
|
46
|
+
/** The verification token to e-mail to `issued.email`. Sending it is yours. */
|
|
47
|
+
readonly issued: IssuedToken;
|
|
48
|
+
} | {
|
|
49
|
+
/** An account already holds the login. Nothing was written. */
|
|
50
|
+
readonly status: 'taken';
|
|
51
|
+
/** The account that holds it: tell its owner that somebody tried to sign up. */
|
|
52
|
+
readonly user: U;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* A sign-up counted and checked, and not yet written: `send()` creates the
|
|
56
|
+
* account, or finds it taken. **`send()` runs once**, as for
|
|
57
|
+
* {@link PreparedRequest}.
|
|
58
|
+
*/
|
|
59
|
+
export interface PreparedSignUp<U> {
|
|
60
|
+
/**
|
|
61
|
+
* Creates the user and issues a verification token for their e-mail —
|
|
62
|
+
* no session —, or answers `{ status: 'taken', user }` when the login is
|
|
63
|
+
* held. Run it off the visitor's request: hashing the password and the
|
|
64
|
+
* writes take a time that tells which of the two it was.
|
|
65
|
+
*/
|
|
66
|
+
send(): Promise<SignUpOutcome<U>>;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=prepared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepared.d.ts","sourceRoot":"","sources":["../../../src/auth/types/prepared.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe,CAAC,MAAM;IACtC;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,CAAE,SAAQ,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACtE;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC3B;AAED,kDAAkD;AAClD,MAAM,MAAM,aAAa,CAAC,CAAC,IACxB;IACA,mFAAmF;IACnF,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAC5B,GACD;IACA,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;CAChB,CAAC;AAEL;;;;GAIG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAChC;;;;;OAKG;IACH,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What every user type answers besides: signing in a user the application
|
|
3
|
+
* proved by its own means, with no credential janus checks.
|
|
4
|
+
*
|
|
5
|
+
* Part of what `janus()` hands back; `./index` gathers it.
|
|
6
|
+
*/
|
|
7
|
+
import type { SignedIn, SignInOptions } from './sign-in';
|
|
8
|
+
import type { UserRef } from './user';
|
|
9
|
+
/**
|
|
10
|
+
* Signing in a user **the application has already proved** — by an
|
|
11
|
+
* invitation token it issued and the person followed, or a channel of its
|
|
12
|
+
* own it verified — without a password, a code or a link.
|
|
13
|
+
*
|
|
14
|
+
* `Answer` is `SignInResult` when the type may have a second factor: the
|
|
15
|
+
* application's proof is a first factor, and an active factor is still asked
|
|
16
|
+
* for.
|
|
17
|
+
*/
|
|
18
|
+
export interface ProvenSignInApi<U, Answer = SignedIn<U>> {
|
|
19
|
+
/**
|
|
20
|
+
* Signs in the user of this type with this id, and answers what every
|
|
21
|
+
* other sign-in answers: a session, or a second-factor challenge when
|
|
22
|
+
* their factor is active — switch on `status`.
|
|
23
|
+
*
|
|
24
|
+
* **Privileged: janus checks no credential here, the application carries
|
|
25
|
+
* the proof.** Call it only after your server verified one — an
|
|
26
|
+
* invitation token it issued, a channel of its own — and never with an
|
|
27
|
+
* id a request supplied: whoever can choose the id signs in as anybody.
|
|
28
|
+
*
|
|
29
|
+
* Sends no e-mail, issues no token, counts nothing in the mail or the
|
|
30
|
+
* sign-in throttle, and **spends nothing**: links and codes already sent
|
|
31
|
+
* still work. Proves no e-mail either: `emailVerified` stays as it was.
|
|
32
|
+
*
|
|
33
|
+
* An inactive user is `USER_INACTIVE`, as for every sign-in. A malformed
|
|
34
|
+
* id, an unknown one or one of another type is `NOT_FOUND`, as for `get`:
|
|
35
|
+
* a sign-in that found nobody is never an answer to read past.
|
|
36
|
+
*
|
|
37
|
+
* Given a `device`, answers `newDevice` and `deviceToken`, and sends
|
|
38
|
+
* `user.newDeviceSignedIn` for a device new to the user. A challenge
|
|
39
|
+
* carries no device: give it again to `secondFactor.confirm`.
|
|
40
|
+
*/
|
|
41
|
+
signInProven(user: UserRef, options?: SignInOptions): Promise<Answer>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=proven-sign-in.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proven-sign-in.d.ts","sourceRoot":"","sources":["../../../src/auth/types/proven-sign-in.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC;IACvD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACtE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What an instance with several user types answers at its root for a reset
|
|
3
|
+
* link: the confirmation, whatever the user's type.
|
|
4
|
+
*
|
|
5
|
+
* Part of what `janus()` hands back; `./index` gathers it.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* What an instance with several user types answers at its root when at least
|
|
9
|
+
* one has a password and an e-mail: the confirmation of a reset link, whatever
|
|
10
|
+
* the user's type.
|
|
11
|
+
*/
|
|
12
|
+
export interface AnyTypeResetPasswordApi<U> {
|
|
13
|
+
readonly resetPassword: {
|
|
14
|
+
/**
|
|
15
|
+
* Resets a password for a page that does not know the user's type:
|
|
16
|
+
* spends the link's token, reads the user it was issued to, whatever
|
|
17
|
+
* their type, and then does what that type's `confirm` does — sets the
|
|
18
|
+
* password, marks the e-mail verified, signs the user out everywhere,
|
|
19
|
+
* with the same events and refusals. The answer's `type` says which
|
|
20
|
+
* type it was.
|
|
21
|
+
*
|
|
22
|
+
* **The password must meet the strictest `minLength`** among the types
|
|
23
|
+
* with a password, and it is checked **before** the token is spent, so
|
|
24
|
+
* a refused password never costs the visitor their link: the type is
|
|
25
|
+
* only known once the token is spent. A password type with no e-mail
|
|
26
|
+
* counts too, since the root cannot tell: it can never be reset, but
|
|
27
|
+
* its rule still applies at the root. A type with a more lenient rule
|
|
28
|
+
* sees the stricter one at the root only; its own `confirm` applies
|
|
29
|
+
* its own. The two are the same when every type has the same
|
|
30
|
+
* `minLength`. `PASSWORD_TOO_SHORT` at the root reports that strictest
|
|
31
|
+
* `minLength`, and the `userType` that set it.
|
|
32
|
+
*
|
|
33
|
+
* **Call it from a `POST`**, never from the `GET` of the link. An
|
|
34
|
+
* unknown, spent or lapsed token is `TOKEN_UNKNOWN`, `TOKEN_SPENT` or
|
|
35
|
+
* `TOKEN_EXPIRED`; a user gone since, or of a type with no password
|
|
36
|
+
* or no e-mail, is `TOKEN_UNKNOWN`; a user whose e-mail is no longer
|
|
37
|
+
* the one the link was sent to is `TOKEN_STALE`. A user written in
|
|
38
|
+
* between is `VERSION_CONFLICT`.
|
|
39
|
+
*
|
|
40
|
+
* `request` and `prepare` stay on each type:
|
|
41
|
+
* `janus.admin.resetPassword.request(...)`.
|
|
42
|
+
*/
|
|
43
|
+
confirm(token: string, password: string): Promise<U>;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=reset-password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../src/auth/types/reset-password.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACzC,QAAQ,CAAC,aAAa,EAAE;QACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4BG;QACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;KACrD,CAAC;CACF"}
|