@aooth/auth-moost 0.2.3 → 0.2.5

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/index.d.mts CHANGED
@@ -339,9 +339,11 @@ export declare function getAuthMate(): AuthMate;
339
339
  * form errors, banners, finish envelopes and button labels. Templates are
340
340
  * English; `{name}` placeholders are filled from the message params.
341
341
  *
342
+ * Registered with moost's `registerMessages` on import, so a moost translator
343
+ * (`setTranslator`) translates every code and `$i18n` serves the templates.
342
344
  * Override per app with `AuthWorkflowOpts.messages` (a partial map, or a
343
- * function that receives the code and params and returns the text — e.g. a
344
- * lookup in your own i18n library), or override `AuthWorkflow.msg()`.
345
+ * function that receives the code and params and returns the text), or
346
+ * override `AuthWorkflow.msg()`.
345
347
  */
346
348
  export declare const AOOTH_MESSAGES: {
347
349
  readonly INVALID_CREDENTIALS: "Invalid credentials";
@@ -351,6 +353,8 @@ export declare const AOOTH_MESSAGES: {
351
353
  readonly SESSION_LIMIT_REACHED: "Session limit reached";
352
354
  readonly PASSWORD_CHANGED_SIGN_IN_AGAIN: "Your password was changed. Please sign in again.";
353
355
  readonly INVALID_CODE: "Invalid code";
356
+ readonly CODE_EXPIRED: "Code expired";
357
+ readonly TOO_MANY_CODE_ATTEMPTS: "Too many invalid attempts. Please request a new code.";
354
358
  /** Params: `seconds`. */
355
359
  readonly RESEND_WAIT: "Please wait {seconds}s before requesting a new code.";
356
360
  /** Params: `seconds`. */
@@ -358,6 +362,13 @@ export declare const AOOTH_MESSAGES: {
358
362
  /** Params: `seconds`, `channel` (`SMS` / `email`). */
359
363
  readonly RESEND_WAIT_CHANNEL: "Please wait {seconds}s before requesting another {channel} code";
360
364
  readonly TOTP_RESEND_NOT_APPLICABLE: "Resend is not applicable for TOTP";
365
+ /** HTTP 400 — a TOTP code submitted for an account without TOTP. */
366
+ readonly TOTP_NOT_CONFIGURED: "No TOTP MFA configured";
367
+ readonly ADDRESS_REQUIRED: "This field is required";
368
+ readonly INVALID_EMAIL_ADDRESS: "Enter a valid email address";
369
+ readonly INVALID_PHONE_NUMBER: "Enter a valid phone number";
370
+ readonly OTP_DISCLOSURE_EMAIL: "By providing your email address, you consent to receive one-time security codes from us via email. Standard email delivery may apply.";
371
+ readonly OTP_DISCLOSURE_PHONE: "By providing your phone number, you consent to receive one-time security codes from us via SMS. Message and data rates may apply.";
361
372
  readonly UNKNOWN_MFA_METHOD: "Unknown MFA method";
362
373
  readonly UNKNOWN_METHOD: "Unknown method";
363
374
  readonly METHOD_UNAVAILABLE: "That method isn't available";
@@ -366,15 +377,38 @@ export declare const AOOTH_MESSAGES: {
366
377
  readonly CHOOSE_OPTION: "Choose an option";
367
378
  readonly ALL_MFA_METHODS_SET_UP: "You've already set up every available authentication method.";
368
379
  readonly NO_MFA_CHANGES: "No changes were made to your two-factor methods.";
380
+ readonly LAST_MFA_METHOD_NOT_REMOVABLE: "You must keep at least one two-factor method, so this one can't be removed.";
381
+ readonly MFA_METHOD_TOTP: "Authenticator app";
382
+ readonly MFA_METHOD_EMAIL: "Email code";
383
+ readonly MFA_METHOD_SMS: "Text-message code";
384
+ /** Params: `method` (the method's label). */
385
+ readonly MFA_METHOD_ADDED: "{method} added.";
386
+ /** Params: `method`. */
387
+ readonly MFA_METHOD_UPDATED: "{method} updated.";
388
+ /** Params: `method`. */
389
+ readonly MFA_METHOD_REMOVED: "{method} removed.";
369
390
  readonly PASSWORDS_DO_NOT_MATCH: "Passwords do not match";
370
391
  readonly PASSWORD_CHANGE_TOO_RECENT: "You changed your password too recently. Please try again later.";
371
392
  readonly PASSWORD_CHANGED: "Your password has been changed.";
372
393
  readonly PASSWORD_UPDATED_REDIRECTING: "Password updated. Redirecting to sign-in…";
373
394
  readonly PASSWORD_UPDATED_STILL_LOCKED: "Password updated, but your account is still locked. Contact an administrator to regain access.";
395
+ readonly CHANGE_PASSWORD_HEADING: "Change your password";
396
+ readonly CHANGE_PASSWORD_INTRO: "Enter your current password, then choose a new one.";
397
+ readonly SET_PASSWORD_EXPIRED_HEADING: "Your password has expired";
398
+ readonly SET_PASSWORD_EXPIRED_INTRO: "Choose a new password to continue. The previous one is no longer valid.";
399
+ readonly SET_PASSWORD_RESET_HEADING: "Reset your password";
400
+ readonly SET_PASSWORD_RESET_INTRO: "Choose a new password for your account.";
401
+ readonly SET_PASSWORD_INVITE_HEADING: "Welcome — set your password";
402
+ readonly SET_PASSWORD_INVITE_INTRO: "Choose a password to activate your account.";
403
+ readonly SET_PASSWORD_INITIAL_HEADING: "Set your initial password";
404
+ readonly SET_PASSWORD_INITIAL_INTRO: "Your account was created without a password. Choose one to continue.";
374
405
  readonly RECOVERY_INSTRUCTIONS_SENT: "If an account exists, you will receive instructions.";
375
406
  readonly SIGNUP_DISABLED: "Self-signup is currently disabled.";
376
407
  readonly ALREADY_HAVE_ACCOUNT: "You already have an account. Please sign in.";
377
408
  readonly ACCOUNT_LINKED: "Account linked.";
409
+ /** HTTP 400 — the SSO alt action named a provider that is not offered. */
410
+ readonly UNKNOWN_SSO_PROVIDER: "Unknown SSO provider";
411
+ readonly ACCOUNT_CREATED: "Your account has been created.";
378
412
  readonly INVALID_ROLE: "Invalid role";
379
413
  readonly INVITE_ALREADY_PENDING: "Invite already pending";
380
414
  readonly USER_ALREADY_EXISTS: "User already exists";
@@ -405,7 +439,11 @@ type AoothMessageParams = Readonly<Record<string, string | number>>;
405
439
  type AoothMessages = Partial<Record<AoothMessageCode, string>> | ((code: AoothMessageCode, params: AoothMessageParams) => string | undefined);
406
440
  /** Fill `{name}` placeholders from `params`; unknown placeholders are kept. */
407
441
  export declare function renderAoothMessage(template: string, params?: AoothMessageParams): string;
408
- /** Resolve `code` through `messages` (when given), falling back to the English template. */
442
+ /**
443
+ * Resolve `code`: `messages` (the app's override, when given), then moost's
444
+ * translator in the current event's locale (`useTranslate`), then the English
445
+ * template. Outside an event the translator is skipped.
446
+ */
409
447
  export declare function resolveAoothMessage(code: AoothMessageCode, params?: AoothMessageParams, messages?: AoothMessages): string;
410
448
  /** Workflows allowed by the bundled `/auth/trigger` endpoint. Subclasses override `triggerWf()` to extend. */
411
449
  export declare const DEFAULT_AUTH_WORKFLOWS: readonly ["auth/login/flow", "auth/invite/start", "auth/recovery/flow", "auth/signup/flow"];
@@ -595,7 +633,10 @@ interface UserAuthErrorBody {
595
633
  message: string;
596
634
  /** The `UserAuthError` type (`"PASSWORD_IN_HISTORY"`, `"NOT_FOUND"`, …). */
597
635
  code: UserAuthErrorType;
598
- /** `POLICY_VIOLATION`: `{ policies: [{ description, passed }] }` — every policy and its result. */
636
+ /**
637
+ * `POLICY_VIOLATION`: `{ policies: [{ description, passed, errorMessage, code?, params? }] }`
638
+ * — every policy and its result (`code` / `params`: the built-in policies' `PP_*` codes).
639
+ */
599
640
  params?: Record<string, unknown>;
600
641
  /** The form field the error belongs to (password errors only). */
601
642
  field?: "currentPassword" | "newPassword" | "confirmPassword";
@@ -653,6 +694,8 @@ declare const HOOK_NAMES: readonly ["around", "beforePersist", "renderEnvelope",
653
694
  * call `run()` again after a failure; each run starts over from the request.
654
695
  * - `beforePersist(state, pause)` — runs right before a paused state is
655
696
  * persisted, inside `around`; throw to abort (nothing persisted, no delivery).
697
+ * `AuthWorkflow`'s rendered `ctx.public` projection is already stripped
698
+ * from `state.context` then (it is never persisted).
656
699
  * - `renderEnvelope(envelope, info)` — maps every body the trigger answers
657
700
  * with (paused envelopes and finished values), e.g. to translate texts.
658
701
  * - `restoreOnError` — opt-in (default off): when a resume fails after its
@@ -900,7 +943,12 @@ interface RateLimitInterceptorOptions {
900
943
  trustProxy?: boolean;
901
944
  /** Emit draft `RateLimit-*` headers on every response of a limited route. Default: `true`. */
902
945
  headers?: boolean;
903
- /** App-wide default 429 message template (placeholders `{{limit}}`, `{{window}}`, `{{delta}}`). */
946
+ /**
947
+ * App-wide default 429 message template (placeholders `{{limit}}`,
948
+ * `{{window}}`, `{{delta}}` humanized; `{limit}`, `{window}`, `{retryAfter}`
949
+ * in seconds). Under a moost translator the body is translated by its
950
+ * `RATE_LIMITED` code, which replaces this English text.
951
+ */
904
952
  message?: string;
905
953
  }
906
954
  /**
@@ -1589,8 +1637,14 @@ interface AuthWfMfaEnrollState {
1589
1637
  interface AuthWfPasswordUiState {
1590
1638
  policies?: TransferablePolicy[];
1591
1639
  changeReason?: "initial" | "expired" | "reset";
1640
+ /** The app's own heading (`resolveSetPasswordCopy`), shown as is; wins over `headingCode`. */
1592
1641
  heading?: string;
1642
+ /** The app's own intro, shown as is; wins over `introCode`. */
1593
1643
  intro?: string;
1644
+ /** The default heading's message code — rendered through `msg()` in each request's language. */
1645
+ headingCode?: AoothMessageCode;
1646
+ /** The default intro's message code. */
1647
+ introCode?: AoothMessageCode;
1594
1648
  }
1595
1649
  /**
1596
1650
  * Completion outcome — carries data set by terminal steps. Step-completion
@@ -1816,6 +1870,7 @@ interface AuthWfAcceptState {
1816
1870
  alreadyAcceptedRedirectUrl?: string;
1817
1871
  loginUrl?: string;
1818
1872
  showConfirmation?: boolean;
1873
+ /** The app's own confirmation text, shown as is; default: `ACCOUNT_CREATED`, rendered per request. */
1819
1874
  confirmationMessage?: string;
1820
1875
  alreadyAccepted?: boolean;
1821
1876
  /** `inviteUsername: 'choose'` — the invitee picks their username at accept. */
@@ -2584,13 +2639,28 @@ interface ResolvedAuthWorkflowOpts {
2584
2639
  authzConsent: TAtscriptAnnotatedType;
2585
2640
  };
2586
2641
  }
2642
+ /**
2643
+ * The set-password screen's copy ({@link AuthWorkflow.resolveSetPasswordCopy}):
2644
+ * your own `heading` / `intro` text (shown as is), or message codes rendered
2645
+ * through `msg()` in each request's language. Text wins over a code.
2646
+ */
2647
+ type SetPasswordCopy = Pick<AuthWfPasswordUiState, SetPasswordCopyKey>;
2648
+ type SetPasswordCopyKey = "heading" | "intro" | "headingCode" | "introCode";
2587
2649
  /**
2588
2650
  * Unified outbound-dispatch payload. Customers override `deliver(payload)` on
2589
2651
  * the `AuthWorkflow` subclass to route by `kind` (per-purpose templates) and
2590
2652
  * `channel` (email vs SMS). Replaces the prior workflow-specific deliver
2591
2653
  * payloads which carried slightly different field sets per call site.
2592
2654
  */
2593
- type AuthDeliveryPayload = {
2655
+ type AuthDeliveryPayload = AuthDeliveryPayloadOf & {
2656
+ /**
2657
+ * The locale of the request the delivery is sent from (moost
2658
+ * `useLocale()`), for a localized message. Absent when the request has none.
2659
+ */
2660
+ locale?: string;
2661
+ };
2662
+ /** The {@link AuthDeliveryPayload} variants, by `kind`. */
2663
+ type AuthDeliveryPayloadOf = {
2594
2664
  kind: "mfa-pincode";
2595
2665
  channel: "sms" | "email";
2596
2666
  recipient: string;
@@ -2702,14 +2772,17 @@ export declare class AuthWorkflow {
2702
2772
  private warnCrossIssuerReuse;
2703
2773
  constructor(opts: Partial<AuthWorkflowOpts>, users: UserService, auth: AuthCredential, consentStore: ConsentStore);
2704
2774
  /**
2705
- * Resolve a user-facing text by code (`AOOTH_MESSAGES`) through
2706
- * `opts.messages`. Every form error, banner, finish message and button label
2707
- * the workflow produces goes through here — override for full control
2708
- * (e.g. to call your i18n library with the request's locale).
2775
+ * Resolve a user-facing text by code (`AOOTH_MESSAGES`): `opts.messages`
2776
+ * first, then moost's translator in the request's locale, then the English
2777
+ * template. Every form error, banner, finish message and button label the
2778
+ * workflow produces goes through here — override for full control.
2709
2779
  */
2710
2780
  protected msg(code: AoothMessageCode, params?: AoothMessageParams): string;
2711
- /** An `HttpError` whose body carries the message `code` next to its (resolved) text. */
2712
- protected httpError(status: 409 | 410, code: AoothMessageCode): HttpError$1;
2781
+ /**
2782
+ * An `HttpError` whose body carries the message `code` and `params` next to
2783
+ * its (resolved) text, so an error-body translator can translate it by code.
2784
+ */
2785
+ protected httpError(status: 400 | 409 | 410, code: AoothMessageCode, params?: AoothMessageParams): HttpError$1;
2713
2786
  /**
2714
2787
  * Unified outbound dispatch hook for direct synchronous deliveries
2715
2788
  * (MFA / recovery / enrollment pincodes, new-device notices). NOT used for
@@ -2720,6 +2793,8 @@ export declare class AuthWorkflow {
2720
2793
  * sync-friendly: the default `void` preserves the engine's sync fast path.
2721
2794
  */
2722
2795
  protected deliver(_payload: AuthDeliveryPayload): void | Promise<void>;
2796
+ /** {@link deliver} with the request's locale stamped on the payload. */
2797
+ private dispatch;
2723
2798
  /**
2724
2799
  * The blessed one-call alert path for risk overrides — emit a
2725
2800
  * `security-alert` delivery (e.g. from an impossible-travel
@@ -3129,9 +3204,12 @@ export declare class AuthWorkflow {
3129
3204
  /**
3130
3205
  * Resolve the channel-OTP disclosure copy rendered beneath the email/phone
3131
3206
  * input on `AskEmailForm` / `AskPhoneForm`. Reached from login.flow Phase 3.
3132
- * Default returns a TCPA / PECR / CASL / GDPR-safe English paragraph that is
3207
+ * Default returns a TCPA / PECR / CASL / GDPR-safe paragraph that is
3133
3208
  * GENERIC per channel (no target templated in — the user hasn't submitted
3134
- * yet at ask-time).
3209
+ * yet at ask-time): `OTP_DISCLOSURE_EMAIL` / `OTP_DISCLOSURE_PHONE` in the
3210
+ * request's language. The text is kept in the workflow state as shown and
3211
+ * recorded with the consent (`recordOtpChannelConsent`) — the one text the
3212
+ * state keeps translated, because the record must be what the user saw.
3135
3213
  */
3136
3214
  protected resolveOtpDisclosure(_ctx: AuthWfCtx, channel: "email" | "phone"): string | Promise<string>;
3137
3215
  /**
@@ -3160,24 +3238,27 @@ export declare class AuthWorkflow {
3160
3238
  * Resolve the invite accept-tail policy. Reached from invite.start accept
3161
3239
  * phase. `loginUrl` defaults to `this.opts.loginUrl`. Note: today's
3162
3240
  * `freshLoginRequired` field is GONE — the auto-login choice is the static
3163
- * `AuthWorkflowOpts.autoLoginOnInvite` boolean (per §2 decision).
3241
+ * `AuthWorkflowOpts.autoLoginOnInvite` boolean (per §2 decision). Return
3242
+ * `confirmationMessage` to replace the default confirmation text
3243
+ * (`ACCOUNT_CREATED`, rendered in the finishing request's language) with your
3244
+ * own, shown as is.
3164
3245
  */
3165
3246
  protected resolveAccept(_ctx: AuthWfCtx): NonNullable<AuthWfCtx["accept"]> | Promise<NonNullable<AuthWfCtx["accept"]>>;
3166
3247
  /**
3167
3248
  * Copy (heading + intro) for the unified set-password screen, staged by
3168
- * `create-password-form` BEFORE the pause. Branches on the resolved
3169
- * `ctx.password.changeReason` (`expired` / `reset`), then invite-accept
3170
- * (`ctx.accept`), then the initial-password fallback. Override to re-brand any
3171
- * phase; return a partial (`{ heading }` only) to change one field and leave
3172
- * the other at whatever an earlier step staged, or `{}` to keep both as-is.
3249
+ * `create-password-form` BEFORE the pause. The default picks message codes
3250
+ * — `SET_PASSWORD_{EXPIRED,RESET,INVITE,INITIAL}_{HEADING,INTRO}` by the
3251
+ * resolved `ctx.password.changeReason` (`expired` / `reset`), then
3252
+ * invite-accept (`ctx.accept`), then the initial-password fallback — which
3253
+ * are rendered through `msg()` in each request's language.
3254
+ *
3255
+ * Override to re-brand any phase: `heading` / `intro` are your own text,
3256
+ * shown as is (they win over the codes); `headingCode` / `introCode` pick
3257
+ * other codes. Return a partial to change one field and leave the other at
3258
+ * whatever an earlier step staged (spread `super`'s result to keep the
3259
+ * default for it), or `{}` to keep both as-is.
3173
3260
  */
3174
- protected resolveSetPasswordCopy(ctx: AuthWfCtx): {
3175
- heading?: string;
3176
- intro?: string;
3177
- } | Promise<{
3178
- heading?: string;
3179
- intro?: string;
3180
- }>;
3261
+ protected resolveSetPasswordCopy(ctx: AuthWfCtx): SetPasswordCopy | Promise<SetPasswordCopy>;
3181
3262
  /**
3182
3263
  * Resolve the recovery post-reset policy. Reached from recovery.flow.
3183
3264
  * `freshLoginRequired` REMOVED — the auto-login choice is the static
@@ -3322,6 +3403,7 @@ export declare class AuthWorkflow {
3322
3403
  *
3323
3404
  * Called via `throwPublic` immediately before every `requireInput`-style
3324
3405
  * pause so the FE always reads a fresh projection of the post-step ctx.
3406
+ * `WfTriggerProvider` strips the projection before persisting the state.
3325
3407
  */
3326
3408
  protected populatePublic(ctx: AuthWfCtx): void;
3327
3409
  /**
@@ -4608,6 +4690,46 @@ export declare class AuthWorkflow {
4608
4690
  */
4609
4691
  signupFlow(): void;
4610
4692
  }
4693
+ /**
4694
+ * Code-keyed English templates of the `HttpError`s auth-moost raises outside
4695
+ * the auth workflow (guard, controllers, `useAuth()`, the workflow trigger).
4696
+ * Each error body carries the `code` and its `params`;
4697
+ * `MoostHttp` translates it by code with the moost translator
4698
+ * (`translateErrorBody`). Registered with `registerMessages` on import.
4699
+ *
4700
+ * The workflow's own texts are in `AOOTH_MESSAGES`; the rate limiter's 429
4701
+ * (`RATE_LIMITED`) template is `RATE_LIMIT_MESSAGES` from `@aooth/auth`.
4702
+ */
4703
+ export declare const AOOTH_HTTP_MESSAGES: {
4704
+ /** 401 — the guard found no credential on a protected route. */
4705
+ readonly AUTH_REQUIRED: "Unauthorized";
4706
+ /** 401 — the guard's credential is invalid, expired or revoked. */
4707
+ readonly CREDENTIAL_INVALID: "Invalid credential";
4708
+ /** 401 — `useAuth().getUserId()` and `AuthController` routes without a signed-in user. */
4709
+ readonly NOT_AUTHENTICATED: "Not authenticated";
4710
+ /** 401 — "log out other sessions" without a current session. */
4711
+ readonly NO_CURRENT_SESSION: "No current session to keep";
4712
+ /** 401 — `POST /auth/refresh` without a refresh token. */
4713
+ readonly MISSING_REFRESH_TOKEN: "Missing refresh token";
4714
+ /** 401 — `POST /auth/refresh` with an unknown, expired or reused refresh token. */
4715
+ readonly INVALID_REFRESH_TOKEN: "Invalid refresh token";
4716
+ /** 400 — `DELETE /auth/sessions` without `?others=true`. */
4717
+ readonly LOGOUT_OTHERS_REQUIRED: "Pass ?others=true to log out other sessions";
4718
+ /** 404 — `GET /auth/invite/post-redemption` for an unknown or still pending invite. */
4719
+ readonly INVITE_NOT_FOUND: "Invite not found";
4720
+ /** 400 — `GET /auth/invite/post-redemption` without `uid`. */
4721
+ readonly MISSING_UID: "Missing uid query parameter";
4722
+ /** 404 — unlinking an identity the user does not have. */
4723
+ readonly LINKED_IDENTITY_NOT_FOUND: "Linked identity not found";
4724
+ /** 409 — unlinking the user's only sign-in method. */
4725
+ readonly LAST_SIGN_IN_METHOD: "Cannot remove your only sign-in method. Set a password first, or link another provider.";
4726
+ /** 404 — unlinking an identity of an unconfigured provider. Params: `provider`. */
4727
+ readonly UNKNOWN_PROVIDER: "Unknown provider '{provider}'";
4728
+ /** 403 — the workflow trigger refused a workflow outside its allow list. Params: `workflow`. */
4729
+ readonly WORKFLOW_NOT_ALLOWED: "Workflow '{workflow}' is not allowed";
4730
+ };
4731
+ /** A code of {@link AOOTH_HTTP_MESSAGES}. */
4732
+ type AoothHttpMessageCode = keyof typeof AOOTH_HTTP_MESSAGES;
4611
4733
  interface AuthEmailOutletDeps {
4612
4734
  emailSender: EmailSender$1;
4613
4735
  buildMagicLinkUrl: BuildMagicLinkUrl$1;
@@ -4645,4 +4767,4 @@ interface AuditEvent {
4645
4767
  interface AuditEmitter {
4646
4768
  emit(event: AuditEvent): Promise<void> | void;
4647
4769
  }
4648
- export { type AoothMessageCode, type AoothMessageParams, type AoothMessages, type AuditEmitter, type AuditEvent, type AuthBindings, type AuthContext, type AuthDeliveryPayload, type AuthEmailEvent, type AuthEmailKind, type AuthEmailOutletDeps, type AuthLoginResponse, type AuthLogoutBody, type AuthOkResponse, type AuthOptions, type AuthRefreshBody, type AuthSmsEvent, type AuthSmsKind, type AuthWfCompletionState, type AuthWfConsentsState, type AuthWfCtx, type AuthWfMfaEnrollState, type AuthWfOAuthState, type AuthWfPasswordUiState, type AuthWfPincodeUiState, type AuthWorkflowOpts, type AuthorizationServerMetadata, type AuthzReauthPolicy, type BuildAuthorizationServerMetadataOptions, type BuildMagicLinkUrl, type BuildProtectedResourceMetadataOptions, type ConcurrencyLimitOptions, type ConnectedAccount, type ConsentDescriptor, type ConsentDescriptorLike, type ConsentEvent, DynamicClientRegistration, type DynamicClientRegistrationOptions, type EmailSender, type EnrichedSession, type IssueResult, type LoginRedirect, type MfaSummary, type MfaTransport, type ProtectedResourceMetadata, type RateLimitBindings, type RateLimitDecision, type RateLimitDecoratorOptions, type RateLimitInterceptorOptions, type RateLimitKeyStrategy, type RateLimitRule, type RateLimitRuleInput, type RateLimitStore, RateLimitStoreMemory, RateLimiter, type RateLimiterOptions, type ResolvedAuthCookieConfig, type ResolvedAuthOptions, type ResolvedAuthWorkflowOpts, type SessionEnricher, type SessionInfo, type SmsSender, type SsoProvider, type TAuthMeta, type TRateLimitMeta, type UserAuthErrorBody, type WfTriggerHooks, type WfTriggerOpts, type WwwAuthenticateBearerChallengeOptions, buildAuthorizationServerMetadata, buildProtectedResourceMetadata, buildWwwAuthenticateBearerChallenge, canonicalizeIssuer, generateMagicLinkToken };
4770
+ export { type AoothHttpMessageCode, type AoothMessageCode, type AoothMessageParams, type AoothMessages, type AuditEmitter, type AuditEvent, type AuthBindings, type AuthContext, type AuthDeliveryPayload, type AuthEmailEvent, type AuthEmailKind, type AuthEmailOutletDeps, type AuthLoginResponse, type AuthLogoutBody, type AuthOkResponse, type AuthOptions, type AuthRefreshBody, type AuthSmsEvent, type AuthSmsKind, type AuthWfCompletionState, type AuthWfConsentsState, type AuthWfCtx, type AuthWfMfaEnrollState, type AuthWfOAuthState, type AuthWfPasswordUiState, type AuthWfPincodeUiState, type AuthWorkflowOpts, type AuthorizationServerMetadata, type AuthzReauthPolicy, type BuildAuthorizationServerMetadataOptions, type BuildMagicLinkUrl, type BuildProtectedResourceMetadataOptions, type ConcurrencyLimitOptions, type ConnectedAccount, type ConsentDescriptor, type ConsentDescriptorLike, type ConsentEvent, DynamicClientRegistration, type DynamicClientRegistrationOptions, type EmailSender, type EnrichedSession, type IssueResult, type LoginRedirect, type MfaSummary, type MfaTransport, type ProtectedResourceMetadata, type RateLimitBindings, type RateLimitDecision, type RateLimitDecoratorOptions, type RateLimitInterceptorOptions, type RateLimitKeyStrategy, type RateLimitRule, type RateLimitRuleInput, type RateLimitStore, RateLimitStoreMemory, RateLimiter, type RateLimiterOptions, type ResolvedAuthCookieConfig, type ResolvedAuthOptions, type ResolvedAuthWorkflowOpts, type SessionEnricher, type SessionInfo, type SetPasswordCopy, type SmsSender, type SsoProvider, type TAuthMeta, type TRateLimitMeta, type UserAuthErrorBody, type WfTriggerHooks, type WfTriggerOpts, type WwwAuthenticateBearerChallengeOptions, buildAuthorizationServerMetadata, buildProtectedResourceMetadata, buildWwwAuthenticateBearerChallenge, canonicalizeIssuer, generateMagicLinkToken };