@authsome/ui-core 1.7.1 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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,11 +385,14 @@ 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;
387
392
  created_at: string;
393
+ display_name?: string;
388
394
  domain: string;
395
+ enforced: boolean;
389
396
  entity_id?: string;
390
397
  env_id?: string;
391
398
  id: string;
@@ -399,6 +406,7 @@ interface Connection {
399
406
  provider: string;
400
407
  sign_requests?: boolean;
401
408
  sp_certificate?: string;
409
+ trusted_federation?: boolean;
402
410
  updated_at: string;
403
411
  }
404
412
  interface Consent {
@@ -438,6 +446,7 @@ interface CouponResponse {
438
446
  interface CreateClientRequest {
439
447
  app_id: string;
440
448
  dpop_mode?: string;
449
+ first_party?: boolean;
441
450
  grant_types?: string[];
442
451
  name: string;
443
452
  public?: boolean;
@@ -538,6 +547,10 @@ interface CreateWebhookRequest {
538
547
  events: string[];
539
548
  url: string;
540
549
  }
550
+ interface CreateWebhookResponse {
551
+ secret: string;
552
+ webhook: unknown;
553
+ }
541
554
  interface CredentialInfo {
542
555
  created_at: string;
543
556
  display_name: string;
@@ -652,6 +665,7 @@ interface EnforceSettingRequest {
652
665
  value: string;
653
666
  }
654
667
  interface EnrollRequest {
668
+ code?: string;
655
669
  method?: string;
656
670
  phone?: string;
657
671
  }
@@ -716,6 +730,13 @@ interface GrantConsentRequest {
716
730
  purpose: string;
717
731
  version?: string;
718
732
  }
733
+ interface GrantView {
734
+ client_id: string;
735
+ client_name: string;
736
+ created_at: string;
737
+ scopes: string[];
738
+ updated_at: string;
739
+ }
719
740
  interface GroupRef {
720
741
  $ref?: string;
721
742
  display?: string;
@@ -747,6 +768,7 @@ interface IntrospectResponse {
747
768
  env_id?: string;
748
769
  expires_at?: string;
749
770
  org_id?: string;
771
+ scope?: string;
750
772
  session_id?: string;
751
773
  user?: IntrospectUser;
752
774
  user_id?: string;
@@ -770,6 +792,7 @@ interface Invitation {
770
792
  }
771
793
  interface InvitationListResponse {
772
794
  invitations: Invitation[];
795
+ next_cursor?: string;
773
796
  }
774
797
  interface InvoiceResponse {
775
798
  currency: string;
@@ -806,6 +829,9 @@ interface ListDefinitionsResponse {
806
829
  groups: DefinitionGroup[];
807
830
  total: number;
808
831
  }
832
+ interface ListGrantsResponse {
833
+ grants: GrantView[];
834
+ }
809
835
  interface ListInvoicesResponse {
810
836
  invoices: InvoiceResponse[];
811
837
  total: number;
@@ -886,6 +912,7 @@ interface Member {
886
912
  }
887
913
  interface MemberListResponse {
888
914
  members: Member[];
915
+ next_cursor?: string;
889
916
  }
890
917
  interface MemberRef {
891
918
  $ref?: string;
@@ -925,6 +952,7 @@ interface OAuth2Client {
925
952
  created_at: string;
926
953
  dpop_mode?: string;
927
954
  dynamically_registered: boolean;
955
+ first_party: boolean;
928
956
  grant_types: string[];
929
957
  id: string;
930
958
  metadata?: Record<string, unknown>;
@@ -956,6 +984,7 @@ interface ObjectFieldDef {
956
984
  sensitive?: boolean;
957
985
  }
958
986
  interface OrgListResponse {
987
+ next_cursor?: string;
959
988
  organizations: Organization[];
960
989
  }
961
990
  interface Organization {
@@ -1134,6 +1163,9 @@ interface RotateClientSecretResponse {
1134
1163
  client_secret: string;
1135
1164
  id: string;
1136
1165
  }
1166
+ interface RotateWebhookSecretResponse {
1167
+ secret: string;
1168
+ }
1137
1169
  interface SMSSendRequest {
1138
1170
  phone?: string;
1139
1171
  }
@@ -1181,6 +1213,7 @@ interface SendResponse {
1181
1213
  interface ServiceProviderConfig {
1182
1214
  }
1183
1215
  interface SessionListResponse {
1216
+ next_cursor?: string;
1184
1217
  sessions: Record<string, unknown>[];
1185
1218
  }
1186
1219
  interface SetAppClientConfigRequest {
@@ -1301,6 +1334,7 @@ interface Team {
1301
1334
  updated_at: string;
1302
1335
  }
1303
1336
  interface TeamListResponse {
1337
+ next_cursor?: string;
1304
1338
  teams: Team[];
1305
1339
  }
1306
1340
  interface TokenExchangeRequest {
@@ -1337,6 +1371,7 @@ interface UnlinkAuthMethodResponse {
1337
1371
  interface UpdateClientRequest {
1338
1372
  app_id?: string;
1339
1373
  client_id?: string;
1374
+ first_party?: boolean;
1340
1375
  grant_types?: string[];
1341
1376
  name?: string;
1342
1377
  public?: boolean;
@@ -1512,6 +1547,7 @@ interface Webhook {
1512
1547
  env_id: string;
1513
1548
  events: string[];
1514
1549
  id: string;
1550
+ relay_endpoint_id?: string;
1515
1551
  updated_at: string;
1516
1552
  url: string;
1517
1553
  }
@@ -1564,6 +1600,7 @@ type Oauth2TokenRequest = {
1564
1600
  device_code?: string;
1565
1601
  grant_type: string;
1566
1602
  redirect_uri?: string;
1603
+ refresh_token?: string;
1567
1604
  requested_token_type?: string;
1568
1605
  resource?: string[];
1569
1606
  scope?: string;
@@ -1752,6 +1789,8 @@ interface SignupFieldConfig {
1752
1789
  * can auto-configure their UI without manual props.
1753
1790
  */
1754
1791
  interface ClientConfig {
1792
+ /** Whether new accounts can be created. Defaults to true when omitted. */
1793
+ signup_enabled?: boolean;
1755
1794
  version?: string;
1756
1795
  app_id?: string;
1757
1796
  branding?: {
@@ -2117,7 +2156,7 @@ declare class AuthClient$1 {
2117
2156
  * List SSO connections for an app (admin)
2118
2157
  * GET /v1/admin/sso/connections
2119
2158
  */
2120
- ssoAdminListConnections(app_id: string, token: string): Promise<AdminListConnectionsResponse>;
2159
+ ssoAdminListConnections(token: string, app_id?: string): Promise<AdminListConnectionsResponse>;
2121
2160
  /**
2122
2161
  * Create SSO connection (admin)
2123
2162
  * POST /v1/admin/sso/connections
@@ -2183,6 +2222,11 @@ declare class AuthClient$1 {
2183
2222
  * POST /v1/admin/users/{userId}/unban
2184
2223
  */
2185
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>;
2186
2230
  /**
2187
2231
  * List coupons
2188
2232
  * GET /v1/billing/coupons
@@ -2448,6 +2492,16 @@ declare class AuthClient$1 {
2448
2492
  * GET /v1/me/export
2449
2493
  */
2450
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>;
2451
2505
  /**
2452
2506
  * Switch active organization
2453
2507
  * POST /v1/me/switch-org
@@ -2497,7 +2551,17 @@ declare class AuthClient$1 {
2497
2551
  * OAuth2 Authorization
2498
2552
  * GET /v1/oauth/authorize
2499
2553
  */
2500
- 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>;
2501
2565
  /**
2502
2566
  * Device Authorization
2503
2567
  * POST /v1/oauth/device/authorize
@@ -2547,7 +2611,7 @@ declare class AuthClient$1 {
2547
2611
  * List organizations
2548
2612
  * GET /v1/orgs
2549
2613
  */
2550
- listOrganizations(token: string): Promise<OrgListResponse>;
2614
+ listOrganizations(token: string, limit?: number, cursor?: string): Promise<OrgListResponse>;
2551
2615
  /**
2552
2616
  * Create organization
2553
2617
  * POST /v1/orgs
@@ -2587,7 +2651,7 @@ declare class AuthClient$1 {
2587
2651
  * List invitations
2588
2652
  * GET /v1/orgs/{orgId}/invitations
2589
2653
  */
2590
- listInvitations(orgId: string, token: string): Promise<InvitationListResponse>;
2654
+ listInvitations(orgId: string, token: string, limit?: number, cursor?: string): Promise<InvitationListResponse>;
2591
2655
  /**
2592
2656
  * Create invitation
2593
2657
  * POST /v1/orgs/{orgId}/invitations
@@ -2597,7 +2661,7 @@ declare class AuthClient$1 {
2597
2661
  * List members
2598
2662
  * GET /v1/orgs/{orgId}/members
2599
2663
  */
2600
- listMembers(orgId: string, token: string): Promise<MemberListResponse>;
2664
+ listMembers(orgId: string, token: string, limit?: number, cursor?: string): Promise<MemberListResponse>;
2601
2665
  /**
2602
2666
  * Add member
2603
2667
  * POST /v1/orgs/{orgId}/members
@@ -2617,7 +2681,7 @@ declare class AuthClient$1 {
2617
2681
  * List teams
2618
2682
  * GET /v1/orgs/{orgId}/teams
2619
2683
  */
2620
- listTeams(orgId: string, token: string): Promise<TeamListResponse>;
2684
+ listTeams(orgId: string, token: string, limit?: number, cursor?: string): Promise<TeamListResponse>;
2621
2685
  /**
2622
2686
  * Create team
2623
2687
  * POST /v1/orgs/{orgId}/teams
@@ -2752,7 +2816,12 @@ declare class AuthClient$1 {
2752
2816
  * List sessions
2753
2817
  * GET /v1/sessions
2754
2818
  */
2755
- 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>;
2756
2825
  /**
2757
2826
  * Revoke session
2758
2827
  * DELETE /v1/sessions/{sessionId}
@@ -2847,7 +2916,7 @@ declare class AuthClient$1 {
2847
2916
  * Create webhook
2848
2917
  * POST /v1/webhooks
2849
2918
  */
2850
- createWebhook(body: CreateWebhookRequest, token: string): Promise<Webhook>;
2919
+ createWebhook(body: CreateWebhookRequest, token: string): Promise<CreateWebhookResponse>;
2851
2920
  /**
2852
2921
  * Get webhook
2853
2922
  * GET /v1/webhooks/{webhookId}
@@ -2863,6 +2932,11 @@ declare class AuthClient$1 {
2863
2932
  * DELETE /v1/webhooks/{webhookId}
2864
2933
  */
2865
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>;
2866
2940
  private request;
2867
2941
  }
2868
2942
  declare class AuthClientError extends Error {
@@ -2891,6 +2965,27 @@ interface ListResponse<T> {
2891
2965
  items: T[];
2892
2966
  total: number;
2893
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
+ }
2894
2989
  /**
2895
2990
  * AuthClient extends the auto-generated client with backward-compatible
2896
2991
  * convenience methods that auth.ts depends on.
@@ -2900,6 +2995,14 @@ interface ListResponse<T> {
2900
2995
  * the auth state machine.
2901
2996
  */
2902
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>;
2903
3006
  /**
2904
3007
  * Refresh session tokens.
2905
3008
  *
@@ -2916,56 +3019,24 @@ declare class AuthClient extends AuthClient$1 {
2916
3019
  * than breaking callers outside this package.
2917
3020
  */
2918
3021
  signOut(bodyOrToken: unknown, token?: string): Promise<ApiStatusResponse>;
2919
- /**
2920
- * MFA challenge — bridge for auth.ts.
2921
- *
2922
- * auth.ts calls `mfaChallenge({ enrollment_id, code })` and expects
2923
- * an AuthResponse back. The generated client uses `challengeMFA`.
2924
- */
2925
- mfaChallenge(body: {
3022
+ /** @deprecated Use challengeMFA with the ticket from sign-in. */
3023
+ mfaChallenge(body: ChallengeMFARequest | {
2926
3024
  enrollment_id?: string;
2927
3025
  code: string;
2928
- }): Promise<any>;
2929
- /**
2930
- * Verify an MFA recovery code.
2931
- *
2932
- * Accepts a raw code string (used by auth.ts) or the full request body.
2933
- */
2934
- verifyRecoveryCode(body: {
2935
- code: string;
2936
- } | string): Promise<any>;
2937
- /**
2938
- * Send an SMS code for MFA — bridge for auth.ts.
2939
- *
2940
- * Simplifies the call-site by accepting just the session token.
2941
- */
2942
- sendSMSCodeForMFA(token: string): Promise<any>;
2943
- /**
2944
- * Verify an SMS code for MFA — bridge for auth.ts.
2945
- *
2946
- * Simplifies the call-site by accepting code + token directly.
2947
- */
2948
- verifySMSCodeForMFA(code: string, token: string): Promise<any>;
2949
- /**
2950
- * Complete a device authorization (RFC 8628).
2951
- *
2952
- * Approves or denies a device code. Requires an authenticated session —
2953
- * pass the session token so the backend can identify the user.
2954
- */
2955
- completeDeviceAuthorization(userCode: string, action: "approve" | "deny", token?: string): Promise<{
2956
- status: string;
2957
- }>;
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>;
2958
3035
  /**
2959
3036
  * Fetch the client configuration from the backend.
2960
3037
  *
2961
3038
  * The config describes which auth methods are enabled so SDK
2962
3039
  * components can auto-configure without manual props.
2963
- *
2964
- * Reads `baseURL` and `fetchFn` directly off the generated parent
2965
- * class — earlier generator templates kept a `this.config` ref but
2966
- * the current embedded template stores fields individually, so the
2967
- * old `(this as any).config.baseURL` shape produced `undefined` and
2968
- * the URL constructor threw.
2969
3040
  */
2970
3041
  fetchClientConfig(publishableKey?: string): Promise<ClientConfig>;
2971
3042
  }
@@ -3013,9 +3084,15 @@ declare class AuthManager {
3013
3084
  private storage;
3014
3085
  private state;
3015
3086
  private listeners;
3087
+ private initializePromise;
3088
+ private refreshPromise;
3089
+ private refreshLockKey;
3090
+ private active;
3091
+ private smsCeremonyVersion;
3016
3092
  private refreshTimer;
3017
3093
  private onError?;
3018
3094
  private publishableKey?;
3095
+ private configCacheKey;
3019
3096
  private clientConfig;
3020
3097
  private configListeners;
3021
3098
  private configFetchPromise;
@@ -3032,6 +3109,7 @@ declare class AuthManager {
3032
3109
  * Call this once on app start.
3033
3110
  */
3034
3111
  initialize(): Promise<void>;
3112
+ private restoreSession;
3035
3113
  /**
3036
3114
  * Resolves the state when hydrating a stored session failed.
3037
3115
  *
@@ -3050,6 +3128,22 @@ declare class AuthManager {
3050
3128
  private handleInitFailure;
3051
3129
  /** Sign in with email & password. */
3052
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>;
3053
3147
  /** Sign up with email & password. */
3054
3148
  signUp(data: SignUpRequest): Promise<void>;
3055
3149
  /**
@@ -3082,16 +3176,18 @@ declare class AuthManager {
3082
3176
  * build, but the enrollmentId argument is now ignored.
3083
3177
  */
3084
3178
  submitMFACode(_enrollmentId: string, code: string): Promise<void>;
3085
- /** Submit an MFA recovery code. */
3179
+ /** Submit a recovery code against the active login ticket. */
3086
3180
  submitRecoveryCode(code: string): Promise<void>;
3087
- /** Send an SMS code for MFA verification. Returns masked phone + expiry info. */
3181
+ /** Send an SMS code for an already authenticated session. */
3088
3182
  sendSMSCode(): Promise<{
3089
3183
  sent: boolean;
3090
3184
  phone_masked: string;
3091
3185
  expires_in_seconds: number;
3092
3186
  }>;
3093
- /** Submit an SMS verification code during MFA challenge. */
3187
+ /** Verify an SMS ceremony without replacing the authenticated session. */
3094
3188
  submitSMSCode(code: string): Promise<void>;
3189
+ private requireSMSAuthState;
3190
+ private checkSMSAuthState;
3095
3191
  /** Refresh the current session manually. */
3096
3192
  refreshNow(): Promise<void>;
3097
3193
  /**
@@ -3121,19 +3217,8 @@ declare class AuthManager {
3121
3217
  /** Tear down: clear timers and listeners. */
3122
3218
  destroy(): void;
3123
3219
  private handleAuthResponse;
3124
- /**
3125
- * Exchanges the refresh token for a new session.
3126
- *
3127
- * On failure the two cases are separated, as they are in initialize: a
3128
- * rejected token means signed out, anything else means no verdict and is
3129
- * worth retrying.
3130
- *
3131
- * `attempt` was previously accepted and never read, and the retry path
3132
- * called back in without it — so a permanently-invalid token retried every
3133
- * 30s for as long as the tab stayed open, and the user was never signed out.
3134
- * It now bounds the retries and backs off between them.
3135
- */
3136
3220
  private refreshSession;
3221
+ private exchangeSession;
3137
3222
  private scheduleRefresh;
3138
3223
  private clearRefreshTimer;
3139
3224
  private persistSession;
@@ -3236,4 +3321,4 @@ declare function prepareRequestOptions(options: Record<string, unknown>): Public
3236
3321
  */
3237
3322
  declare function serializeCredential(credential: Credential): Record<string, unknown>;
3238
3323
 
3239
- 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 };