@authsome/ui-core 1.7.2 → 1.8.2

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.ts CHANGED
@@ -40,7 +40,8 @@ interface AdminCreateAppRequest {
40
40
  }
41
41
  interface AdminCreateConnectionRequest {
42
42
  acs_url?: string;
43
- app_id: string;
43
+ allowed_domains?: string[];
44
+ app_id?: string;
44
45
  attribute_mappings?: Record<string, unknown>;
45
46
  client_id?: string;
46
47
  client_secret?: string;
@@ -55,6 +56,7 @@ interface AdminCreateConnectionRequest {
55
56
  protocol: string;
56
57
  provider: string;
57
58
  sign_requests?: boolean;
59
+ trusted_federation?: boolean;
58
60
  }
59
61
  interface AdminCreateConnectionResponse {
60
62
  active: boolean;
@@ -148,6 +150,7 @@ interface AdminStatsResponse {
148
150
  interface AdminUpdateConnectionRequest {
149
151
  acs_url?: string;
150
152
  active?: boolean;
153
+ allowed_domains?: string[];
151
154
  attribute_mappings?: Record<string, unknown>;
152
155
  client_id?: string;
153
156
  client_secret?: string;
@@ -160,6 +163,7 @@ interface AdminUpdateConnectionRequest {
160
163
  metadata_url?: string;
161
164
  provider?: string;
162
165
  sign_requests?: boolean;
166
+ trusted_federation?: boolean;
163
167
  }
164
168
  interface AdminUpdateUserRequest {
165
169
  email_verified?: boolean;
@@ -381,6 +385,7 @@ interface CloneEnvironmentResponse {
381
385
  interface Connection {
382
386
  acs_url?: string;
383
387
  active: boolean;
388
+ allowed_domains?: string[];
384
389
  app_id: string;
385
390
  attribute_mappings?: Record<string, unknown>;
386
391
  client_id?: string;
@@ -401,6 +406,7 @@ interface Connection {
401
406
  provider: string;
402
407
  sign_requests?: boolean;
403
408
  sp_certificate?: string;
409
+ trusted_federation?: boolean;
404
410
  updated_at: string;
405
411
  }
406
412
  interface Consent {
@@ -440,6 +446,7 @@ interface CouponResponse {
440
446
  interface CreateClientRequest {
441
447
  app_id: string;
442
448
  dpop_mode?: string;
449
+ first_party?: boolean;
443
450
  grant_types?: string[];
444
451
  name: string;
445
452
  public?: boolean;
@@ -540,6 +547,10 @@ interface CreateWebhookRequest {
540
547
  events: string[];
541
548
  url: string;
542
549
  }
550
+ interface CreateWebhookResponse {
551
+ secret: string;
552
+ webhook: unknown;
553
+ }
543
554
  interface CredentialInfo {
544
555
  created_at: string;
545
556
  display_name: string;
@@ -654,6 +665,7 @@ interface EnforceSettingRequest {
654
665
  value: string;
655
666
  }
656
667
  interface EnrollRequest {
668
+ code?: string;
657
669
  method?: string;
658
670
  phone?: string;
659
671
  }
@@ -718,6 +730,13 @@ interface GrantConsentRequest {
718
730
  purpose: string;
719
731
  version?: string;
720
732
  }
733
+ interface GrantView {
734
+ client_id: string;
735
+ client_name: string;
736
+ created_at: string;
737
+ scopes: string[];
738
+ updated_at: string;
739
+ }
721
740
  interface GroupRef {
722
741
  $ref?: string;
723
742
  display?: string;
@@ -749,6 +768,7 @@ interface IntrospectResponse {
749
768
  env_id?: string;
750
769
  expires_at?: string;
751
770
  org_id?: string;
771
+ scope?: string;
752
772
  session_id?: string;
753
773
  user?: IntrospectUser;
754
774
  user_id?: string;
@@ -772,6 +792,7 @@ interface Invitation {
772
792
  }
773
793
  interface InvitationListResponse {
774
794
  invitations: Invitation[];
795
+ next_cursor?: string;
775
796
  }
776
797
  interface InvoiceResponse {
777
798
  currency: string;
@@ -808,6 +829,9 @@ interface ListDefinitionsResponse {
808
829
  groups: DefinitionGroup[];
809
830
  total: number;
810
831
  }
832
+ interface ListGrantsResponse {
833
+ grants: GrantView[];
834
+ }
811
835
  interface ListInvoicesResponse {
812
836
  invoices: InvoiceResponse[];
813
837
  total: number;
@@ -888,6 +912,7 @@ interface Member {
888
912
  }
889
913
  interface MemberListResponse {
890
914
  members: Member[];
915
+ next_cursor?: string;
891
916
  }
892
917
  interface MemberRef {
893
918
  $ref?: string;
@@ -927,6 +952,7 @@ interface OAuth2Client {
927
952
  created_at: string;
928
953
  dpop_mode?: string;
929
954
  dynamically_registered: boolean;
955
+ first_party: boolean;
930
956
  grant_types: string[];
931
957
  id: string;
932
958
  metadata?: Record<string, unknown>;
@@ -958,6 +984,7 @@ interface ObjectFieldDef {
958
984
  sensitive?: boolean;
959
985
  }
960
986
  interface OrgListResponse {
987
+ next_cursor?: string;
961
988
  organizations: Organization[];
962
989
  }
963
990
  interface Organization {
@@ -1136,6 +1163,9 @@ interface RotateClientSecretResponse {
1136
1163
  client_secret: string;
1137
1164
  id: string;
1138
1165
  }
1166
+ interface RotateWebhookSecretResponse {
1167
+ secret: string;
1168
+ }
1139
1169
  interface SMSSendRequest {
1140
1170
  phone?: string;
1141
1171
  }
@@ -1183,6 +1213,7 @@ interface SendResponse {
1183
1213
  interface ServiceProviderConfig {
1184
1214
  }
1185
1215
  interface SessionListResponse {
1216
+ next_cursor?: string;
1186
1217
  sessions: Record<string, unknown>[];
1187
1218
  }
1188
1219
  interface SetAppClientConfigRequest {
@@ -1303,6 +1334,7 @@ interface Team {
1303
1334
  updated_at: string;
1304
1335
  }
1305
1336
  interface TeamListResponse {
1337
+ next_cursor?: string;
1306
1338
  teams: Team[];
1307
1339
  }
1308
1340
  interface TokenExchangeRequest {
@@ -1339,6 +1371,7 @@ interface UnlinkAuthMethodResponse {
1339
1371
  interface UpdateClientRequest {
1340
1372
  app_id?: string;
1341
1373
  client_id?: string;
1374
+ first_party?: boolean;
1342
1375
  grant_types?: string[];
1343
1376
  name?: string;
1344
1377
  public?: boolean;
@@ -1514,6 +1547,7 @@ interface Webhook {
1514
1547
  env_id: string;
1515
1548
  events: string[];
1516
1549
  id: string;
1550
+ relay_endpoint_id?: string;
1517
1551
  updated_at: string;
1518
1552
  url: string;
1519
1553
  }
@@ -1566,6 +1600,7 @@ type Oauth2TokenRequest = {
1566
1600
  device_code?: string;
1567
1601
  grant_type: string;
1568
1602
  redirect_uri?: string;
1603
+ refresh_token?: string;
1569
1604
  requested_token_type?: string;
1570
1605
  resource?: string[];
1571
1606
  scope?: string;
@@ -1754,6 +1789,8 @@ interface SignupFieldConfig {
1754
1789
  * can auto-configure their UI without manual props.
1755
1790
  */
1756
1791
  interface ClientConfig {
1792
+ /** Whether new accounts can be created. Defaults to true when omitted. */
1793
+ signup_enabled?: boolean;
1757
1794
  version?: string;
1758
1795
  app_id?: string;
1759
1796
  branding?: {
@@ -2119,7 +2156,7 @@ declare class AuthClient$1 {
2119
2156
  * List SSO connections for an app (admin)
2120
2157
  * GET /v1/admin/sso/connections
2121
2158
  */
2122
- ssoAdminListConnections(app_id: string, token: string): Promise<AdminListConnectionsResponse>;
2159
+ ssoAdminListConnections(token: string, app_id?: string): Promise<AdminListConnectionsResponse>;
2123
2160
  /**
2124
2161
  * Create SSO connection (admin)
2125
2162
  * POST /v1/admin/sso/connections
@@ -2185,6 +2222,11 @@ declare class AuthClient$1 {
2185
2222
  * POST /v1/admin/users/{userId}/unban
2186
2223
  */
2187
2224
  adminUnbanUser(userId: string, token: string): Promise<ApiStatusResponse>;
2225
+ /**
2226
+ * Unlock user (admin)
2227
+ * POST /v1/admin/users/{userId}/unlock
2228
+ */
2229
+ adminUnlockUser(userId: string, token: string): Promise<ApiStatusResponse>;
2188
2230
  /**
2189
2231
  * List coupons
2190
2232
  * GET /v1/billing/coupons
@@ -2450,6 +2492,16 @@ declare class AuthClient$1 {
2450
2492
  * GET /v1/me/export
2451
2493
  */
2452
2494
  exportMyData(token: string): Promise<Record<string, unknown>>;
2495
+ /**
2496
+ * List my OAuth2 grants
2497
+ * GET /v1/me/oauth/grants
2498
+ */
2499
+ oauth2ListMyGrants(token: string): Promise<ListGrantsResponse>;
2500
+ /**
2501
+ * Revoke an OAuth2 grant
2502
+ * DELETE /v1/me/oauth/grants/{clientId}
2503
+ */
2504
+ oauth2RevokeMyGrant(clientId: string, token: string): Promise<void>;
2453
2505
  /**
2454
2506
  * Switch active organization
2455
2507
  * POST /v1/me/switch-org
@@ -2499,7 +2551,17 @@ declare class AuthClient$1 {
2499
2551
  * OAuth2 Authorization
2500
2552
  * GET /v1/oauth/authorize
2501
2553
  */
2502
- oauth2Authorize(response_type: string, client_id: string, redirect_uri?: string, scope?: string, state?: string, code_challenge?: string, code_challenge_method?: string, resource?: string[]): Promise<void>;
2554
+ oauth2Authorize(response_type: string, client_id: string, redirect_uri?: string, scope?: string, state?: string, code_challenge?: string, code_challenge_method?: string, resource?: string[], prompt?: string): Promise<void>;
2555
+ /**
2556
+ * OAuth2 consent
2557
+ * GET /v1/oauth/consent
2558
+ */
2559
+ oauth2ConsentPage(token: string): Promise<void>;
2560
+ /**
2561
+ * OAuth2 consent decision
2562
+ * POST /v1/oauth/consent
2563
+ */
2564
+ oauth2ConsentDecision(token: string): Promise<void>;
2503
2565
  /**
2504
2566
  * Device Authorization
2505
2567
  * POST /v1/oauth/device/authorize
@@ -2549,7 +2611,7 @@ declare class AuthClient$1 {
2549
2611
  * List organizations
2550
2612
  * GET /v1/orgs
2551
2613
  */
2552
- listOrganizations(token: string): Promise<OrgListResponse>;
2614
+ listOrganizations(token: string, limit?: number, cursor?: string): Promise<OrgListResponse>;
2553
2615
  /**
2554
2616
  * Create organization
2555
2617
  * POST /v1/orgs
@@ -2589,7 +2651,7 @@ declare class AuthClient$1 {
2589
2651
  * List invitations
2590
2652
  * GET /v1/orgs/{orgId}/invitations
2591
2653
  */
2592
- listInvitations(orgId: string, token: string): Promise<InvitationListResponse>;
2654
+ listInvitations(orgId: string, token: string, limit?: number, cursor?: string): Promise<InvitationListResponse>;
2593
2655
  /**
2594
2656
  * Create invitation
2595
2657
  * POST /v1/orgs/{orgId}/invitations
@@ -2599,7 +2661,7 @@ declare class AuthClient$1 {
2599
2661
  * List members
2600
2662
  * GET /v1/orgs/{orgId}/members
2601
2663
  */
2602
- listMembers(orgId: string, token: string): Promise<MemberListResponse>;
2664
+ listMembers(orgId: string, token: string, limit?: number, cursor?: string): Promise<MemberListResponse>;
2603
2665
  /**
2604
2666
  * Add member
2605
2667
  * POST /v1/orgs/{orgId}/members
@@ -2619,7 +2681,7 @@ declare class AuthClient$1 {
2619
2681
  * List teams
2620
2682
  * GET /v1/orgs/{orgId}/teams
2621
2683
  */
2622
- listTeams(orgId: string, token: string): Promise<TeamListResponse>;
2684
+ listTeams(orgId: string, token: string, limit?: number, cursor?: string): Promise<TeamListResponse>;
2623
2685
  /**
2624
2686
  * Create team
2625
2687
  * POST /v1/orgs/{orgId}/teams
@@ -2754,7 +2816,12 @@ declare class AuthClient$1 {
2754
2816
  * List sessions
2755
2817
  * GET /v1/sessions
2756
2818
  */
2757
- listSessions(token: string): Promise<SessionListResponse>;
2819
+ listSessions(token: string, limit?: number, cursor?: string): Promise<SessionListResponse>;
2820
+ /**
2821
+ * Revoke other sessions
2822
+ * DELETE /v1/sessions
2823
+ */
2824
+ revokeOtherSessions(token: string): Promise<ApiStatusResponse>;
2758
2825
  /**
2759
2826
  * Revoke session
2760
2827
  * DELETE /v1/sessions/{sessionId}
@@ -2849,7 +2916,7 @@ declare class AuthClient$1 {
2849
2916
  * Create webhook
2850
2917
  * POST /v1/webhooks
2851
2918
  */
2852
- createWebhook(body: CreateWebhookRequest, token: string): Promise<Webhook>;
2919
+ createWebhook(body: CreateWebhookRequest, token: string): Promise<CreateWebhookResponse>;
2853
2920
  /**
2854
2921
  * Get webhook
2855
2922
  * GET /v1/webhooks/{webhookId}
@@ -2865,6 +2932,11 @@ declare class AuthClient$1 {
2865
2932
  * DELETE /v1/webhooks/{webhookId}
2866
2933
  */
2867
2934
  deleteWebhook(webhookId: string, token: string): Promise<ApiStatusResponse>;
2935
+ /**
2936
+ * Rotate webhook secret
2937
+ * POST /v1/webhooks/{webhookId}/rotate-secret
2938
+ */
2939
+ rotateWebhookSecret(webhookId: string, token: string): Promise<RotateWebhookSecretResponse>;
2868
2940
  private request;
2869
2941
  }
2870
2942
  declare class AuthClientError extends Error {
@@ -2893,6 +2965,27 @@ interface ListResponse<T> {
2893
2965
  items: T[];
2894
2966
  total: number;
2895
2967
  }
2968
+ /** The organization list as the UI hooks expose it. */
2969
+ interface OrganizationList {
2970
+ organizations: Organization[];
2971
+ /** Cursor for the next page, when the server has more. */
2972
+ nextCursor?: string;
2973
+ /** How many organizations this list holds. */
2974
+ total: number;
2975
+ }
2976
+ /**
2977
+ * Reads a GET /v1/orgs response. The API pages the list as
2978
+ * `{ organizations, next_cursor }`; servers before that answered
2979
+ * `{ items, total }`. Either shape gives the same result, and anything else
2980
+ * reads as an empty list.
2981
+ */
2982
+ declare function readOrganizationList(res: unknown): OrganizationList;
2983
+ /** The signup decision returned by the app's waitlist. */
2984
+ type WaitlistStatus = "pending" | "approved" | "rejected";
2985
+ interface WaitlistJoinResponse {
2986
+ email: string;
2987
+ status: WaitlistStatus;
2988
+ }
2896
2989
  /**
2897
2990
  * AuthClient extends the auto-generated client with backward-compatible
2898
2991
  * convenience methods that auth.ts depends on.
@@ -2902,6 +2995,14 @@ interface ListResponse<T> {
2902
2995
  * the auth state machine.
2903
2996
  */
2904
2997
  declare class AuthClient extends AuthClient$1 {
2998
+ private readonly waitlistURL;
2999
+ private readonly waitlistFetch;
3000
+ constructor(config: AuthClientConfig);
3001
+ /** Join the waitlist, or return the existing entry and its approval status. */
3002
+ joinWaitlist(body: {
3003
+ email: string;
3004
+ name?: string;
3005
+ }): Promise<WaitlistJoinResponse>;
2905
3006
  /**
2906
3007
  * Refresh session tokens.
2907
3008
  *
@@ -2918,56 +3019,24 @@ declare class AuthClient extends AuthClient$1 {
2918
3019
  * than breaking callers outside this package.
2919
3020
  */
2920
3021
  signOut(bodyOrToken: unknown, token?: string): Promise<ApiStatusResponse>;
2921
- /**
2922
- * MFA challenge — bridge for auth.ts.
2923
- *
2924
- * auth.ts calls `mfaChallenge({ enrollment_id, code })` and expects
2925
- * an AuthResponse back. The generated client uses `challengeMFA`.
2926
- */
2927
- mfaChallenge(body: {
3022
+ /** @deprecated Use challengeMFA with the ticket from sign-in. */
3023
+ mfaChallenge(body: ChallengeMFARequest | {
2928
3024
  enrollment_id?: string;
2929
3025
  code: string;
2930
- }): Promise<any>;
2931
- /**
2932
- * Verify an MFA recovery code.
2933
- *
2934
- * Accepts a raw code string (used by auth.ts) or the full request body.
2935
- */
2936
- verifyRecoveryCode(body: {
2937
- code: string;
2938
- } | string): Promise<any>;
2939
- /**
2940
- * Send an SMS code for MFA — bridge for auth.ts.
2941
- *
2942
- * Simplifies the call-site by accepting just the session token.
2943
- */
2944
- sendSMSCodeForMFA(token: string): Promise<any>;
2945
- /**
2946
- * Verify an SMS code for MFA — bridge for auth.ts.
2947
- *
2948
- * Simplifies the call-site by accepting code + token directly.
2949
- */
2950
- verifySMSCodeForMFA(code: string, token: string): Promise<any>;
2951
- /**
2952
- * Complete a device authorization (RFC 8628).
2953
- *
2954
- * Approves or denies a device code. Requires an authenticated session —
2955
- * pass the session token so the backend can identify the user.
2956
- */
2957
- completeDeviceAuthorization(userCode: string, action: "approve" | "deny", token?: string): Promise<{
2958
- status: string;
2959
- }>;
3026
+ }): Promise<ChallengeResponse>;
3027
+ /** Verify a recovery code in an existing cookie-authenticated session. */
3028
+ verifyRecoveryCode(body: VerifyRecoveryCodeRequest | string): Promise<RecoveryVerifyResponse>;
3029
+ /** Send an SMS code for the authenticated session. */
3030
+ sendSMSCodeForMFA(token: string): Promise<SMSSendResponse>;
3031
+ /** Verify an SMS code without issuing a session. */
3032
+ verifySMSCodeForMFA(code: string, token: string): Promise<SMSVerifyResponse>;
3033
+ /** Approve or deny a device using a bearer token or the existing session cookie. */
3034
+ completeDeviceAuthorization(userCode: string, action: "approve" | "deny", token?: string): Promise<DeviceCompleteResponse>;
2960
3035
  /**
2961
3036
  * Fetch the client configuration from the backend.
2962
3037
  *
2963
3038
  * The config describes which auth methods are enabled so SDK
2964
3039
  * components can auto-configure without manual props.
2965
- *
2966
- * Reads `baseURL` and `fetchFn` directly off the generated parent
2967
- * class — earlier generator templates kept a `this.config` ref but
2968
- * the current embedded template stores fields individually, so the
2969
- * old `(this as any).config.baseURL` shape produced `undefined` and
2970
- * the URL constructor threw.
2971
3040
  */
2972
3041
  fetchClientConfig(publishableKey?: string): Promise<ClientConfig>;
2973
3042
  }
@@ -3015,9 +3084,15 @@ declare class AuthManager {
3015
3084
  private storage;
3016
3085
  private state;
3017
3086
  private listeners;
3087
+ private initializePromise;
3088
+ private refreshPromise;
3089
+ private refreshLockKey;
3090
+ private active;
3091
+ private smsCeremonyVersion;
3018
3092
  private refreshTimer;
3019
3093
  private onError?;
3020
3094
  private publishableKey?;
3095
+ private configCacheKey;
3021
3096
  private clientConfig;
3022
3097
  private configListeners;
3023
3098
  private configFetchPromise;
@@ -3034,6 +3109,7 @@ declare class AuthManager {
3034
3109
  * Call this once on app start.
3035
3110
  */
3036
3111
  initialize(): Promise<void>;
3112
+ private restoreSession;
3037
3113
  /**
3038
3114
  * Resolves the state when hydrating a stored session failed.
3039
3115
  *
@@ -3052,6 +3128,22 @@ declare class AuthManager {
3052
3128
  private handleInitFailure;
3053
3129
  /** Sign in with email & password. */
3054
3130
  signIn(credentials: SignInRequest): Promise<void>;
3131
+ /**
3132
+ * Begin an SSO login against one of the app's configured connections.
3133
+ *
3134
+ * Resolves to the IdP `login_url`; the caller navigates the browser there.
3135
+ * `returnUrl` is where the backend lands the browser after the IdP round
3136
+ * trip, with `?code=` on success or `?sso_error=` on failure. It must be an
3137
+ * allowlisted https origin (or localhost). Omit it to use the server's
3138
+ * default `/sso/callback` landing.
3139
+ */
3140
+ startSSOLogin(connectionId: string, returnUrl?: string): Promise<string>;
3141
+ /**
3142
+ * Finish an SSO login by exchanging the one-time `code` from the callback
3143
+ * URL for a session. The exchange is publishable-key authed, so no bearer
3144
+ * token is sent.
3145
+ */
3146
+ completeSSOLogin(code: string): Promise<void>;
3055
3147
  /** Sign up with email & password. */
3056
3148
  signUp(data: SignUpRequest): Promise<void>;
3057
3149
  /**
@@ -3084,16 +3176,18 @@ declare class AuthManager {
3084
3176
  * build, but the enrollmentId argument is now ignored.
3085
3177
  */
3086
3178
  submitMFACode(_enrollmentId: string, code: string): Promise<void>;
3087
- /** Submit an MFA recovery code. */
3179
+ /** Submit a recovery code against the active login ticket. */
3088
3180
  submitRecoveryCode(code: string): Promise<void>;
3089
- /** Send an SMS code for MFA verification. Returns masked phone + expiry info. */
3181
+ /** Send an SMS code for an already authenticated session. */
3090
3182
  sendSMSCode(): Promise<{
3091
3183
  sent: boolean;
3092
3184
  phone_masked: string;
3093
3185
  expires_in_seconds: number;
3094
3186
  }>;
3095
- /** Submit an SMS verification code during MFA challenge. */
3187
+ /** Verify an SMS ceremony without replacing the authenticated session. */
3096
3188
  submitSMSCode(code: string): Promise<void>;
3189
+ private requireSMSAuthState;
3190
+ private checkSMSAuthState;
3097
3191
  /** Refresh the current session manually. */
3098
3192
  refreshNow(): Promise<void>;
3099
3193
  /**
@@ -3123,19 +3217,8 @@ declare class AuthManager {
3123
3217
  /** Tear down: clear timers and listeners. */
3124
3218
  destroy(): void;
3125
3219
  private handleAuthResponse;
3126
- /**
3127
- * Exchanges the refresh token for a new session.
3128
- *
3129
- * On failure the two cases are separated, as they are in initialize: a
3130
- * rejected token means signed out, anything else means no verdict and is
3131
- * worth retrying.
3132
- *
3133
- * `attempt` was previously accepted and never read, and the retry path
3134
- * called back in without it — so a permanently-invalid token retried every
3135
- * 30s for as long as the tab stayed open, and the user was never signed out.
3136
- * It now bounds the retries and backs off between them.
3137
- */
3138
3220
  private refreshSession;
3221
+ private exchangeSession;
3139
3222
  private scheduleRefresh;
3140
3223
  private clearRefreshTimer;
3141
3224
  private persistSession;
@@ -3238,4 +3321,4 @@ declare function prepareRequestOptions(options: Record<string, unknown>): Public
3238
3321
  */
3239
3322
  declare function serializeCredential(credential: Credential): Record<string, unknown>;
3240
3323
 
3241
- export { type APIError, type KeyListItem as APIKey, type AddMemberRequest, type AdminBanUserRequest, AuthClient, type AuthClientConfig, AuthClientError, type AuthConfig, AuthManager, type AuthResponse, type AuthState, type ChallengeMFARequest, type ChangePasswordRequest, type ClientConfig, type CreateAPIKeyRequest, type CreateInvitationRequest, type CreateOrganizationRequest as CreateOrgRequest, type CreateOrganizationRequest, type Device, type EnrollMFARequest, type EnrollResponse, type ForgotPasswordRequest, type Invitation, type KeyListItem, type ListOptions, type ListResponse, type EnrollResponse as MFAEnrollment, type SendMagicLinkRequest as MagicLinkSendRequest, type VerifyMagicLinkRequest as MagicLinkVerifyRequest, type Member, type ChallengeMFARequest as MfaChallengeRequest, type EnrollMFARequest as MfaEnrollRequest, type SendSMSCodeRequest as MfaSMSSendRequest, type VerifySMSCodeRequest as MfaSMSVerifyRequest, type VerifyMFARequest as MfaVerifyRequest, type Organization, type PasskeyLoginFinishRequest, type PasskeyRegisterFinishRequest, type RefreshRequest, type ResetPasswordRequest, SESSION_STORAGE_KEY, type SSOConnectionConfig, type SafeRedirectOptions, type SendMagicLinkRequest, type SendSMSCodeRequest, type Session, type SignInRequest, type SignUpRequest, type SignupFieldConfig, type SignupFieldOption, type SignupFieldValidation, type SocialProviderConfig, type ApiTokenResponse as TokenResponse, type TokenStorage, type UpdateMeRequest, type UpdateOrganizationRequest as UpdateOrgRequest, type UpdateOrganizationRequest, type User, type VerifyEmailRequest, type VerifyMFARequest, type VerifyMagicLinkRequest, type VerifyRecoveryCodeRequest, type VerifySMSCodeRequest, base64urlToBuffer, bufferToBase64url, createLocalStorage, isSafeRedirect, prepareCreationOptions, prepareRequestOptions, safeRedirectTarget, serializeCredential };
3324
+ export { type APIError, type KeyListItem as APIKey, type AddMemberRequest, type AdminBanUserRequest, AuthClient, type AuthClientConfig, AuthClientError, type AuthConfig, AuthManager, type AuthResponse, type AuthState, type ChallengeMFARequest, type ChangePasswordRequest, type ClientConfig, type CreateAPIKeyRequest, type CreateInvitationRequest, type CreateOrganizationRequest as CreateOrgRequest, type CreateOrganizationRequest, type Device, type EnrollMFARequest, type EnrollResponse, type ForgotPasswordRequest, type Invitation, type KeyListItem, type ListOptions, type ListResponse, type EnrollResponse as MFAEnrollment, type SendMagicLinkRequest as MagicLinkSendRequest, type VerifyMagicLinkRequest as MagicLinkVerifyRequest, type Member, type ChallengeMFARequest as MfaChallengeRequest, type EnrollMFARequest as MfaEnrollRequest, type SendSMSCodeRequest as MfaSMSSendRequest, type VerifySMSCodeRequest as MfaSMSVerifyRequest, type VerifyMFARequest as MfaVerifyRequest, type Organization, type OrganizationList, type PasskeyLoginFinishRequest, type PasskeyRegisterFinishRequest, type RefreshRequest, type ResetPasswordRequest, SESSION_STORAGE_KEY, type SSOConnectionConfig, type SafeRedirectOptions, type SendMagicLinkRequest, type SendSMSCodeRequest, type Session, type SignInRequest, type SignUpRequest, type SignupFieldConfig, type SignupFieldOption, type SignupFieldValidation, type SocialProviderConfig, type ApiTokenResponse as TokenResponse, type TokenStorage, type UpdateMeRequest, type UpdateOrganizationRequest as UpdateOrgRequest, type UpdateOrganizationRequest, type User, type VerifyEmailRequest, type VerifyMFARequest, type VerifyMagicLinkRequest, type VerifyRecoveryCodeRequest, type VerifySMSCodeRequest, type WaitlistJoinResponse, type WaitlistStatus, base64urlToBuffer, bufferToBase64url, createLocalStorage, isSafeRedirect, prepareCreationOptions, prepareRequestOptions, readOrganizationList, safeRedirectTarget, serializeCredential };