azirid-react 0.7.0 → 0.8.0

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.cts CHANGED
@@ -3,6 +3,7 @@ import { ReactNode, CSSProperties, FormEvent } from 'react';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
5
5
  import { z } from 'zod';
6
+ import { TenantRole, Environment } from '@azirid/shared';
6
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
8
  import { ClassValue } from 'clsx';
8
9
 
@@ -15,9 +16,9 @@ interface AuthUser {
15
16
  mfaEnabled?: boolean;
16
17
  appId?: string;
17
18
  tenantId: string;
18
- tenantRole: string;
19
+ tenantRole: TenantRole | string;
19
20
  workspaceId?: string;
20
- environment?: 'development' | 'production';
21
+ environment?: Environment;
21
22
  mustChangePassword?: boolean;
22
23
  publicMetadata?: Record<string, unknown> | null;
23
24
  unsafeMetadata?: Record<string, unknown> | null;
@@ -510,12 +511,12 @@ interface TenantWithRole {
510
511
  slug: string;
511
512
  description?: string | null;
512
513
  enabled: boolean;
513
- role: 'OWNER' | 'MEMBER';
514
+ role: TenantRole;
514
515
  joinedAt: string;
515
516
  }
516
517
  interface TenantMemberInfo {
517
518
  id: string;
518
- role: 'OWNER' | 'MEMBER';
519
+ role: TenantRole;
519
520
  joinedAt: string;
520
521
  user: {
521
522
  id: string;
@@ -1442,6 +1443,52 @@ declare function useSwitchTenant(): {
1442
1443
  switchTenant: (tenantId: string) => Promise<void>;
1443
1444
  };
1444
1445
 
1446
+ /**
1447
+ * Options common to all simple mutation hooks created via `createMutationHook`.
1448
+ */
1449
+ interface SimpleMutationOptions<TData> {
1450
+ onSuccess?: (data: TData) => void;
1451
+ onError?: (error: Error) => void;
1452
+ }
1453
+ /**
1454
+ * Configuration for `createMutationHook`.
1455
+ *
1456
+ * @template TData The response type from the API
1457
+ * @template TInput The input/variables type for the mutation
1458
+ */
1459
+ interface MutationHookConfig<TData, TInput> {
1460
+ /** Static mutation key for deduplication / devtools */
1461
+ mutationKey: string[];
1462
+ /**
1463
+ * Derive the mutation function from the AccessClient and input.
1464
+ * Most hooks simply call `client.post<TData>(client.paths.someEndpoint, data)`.
1465
+ */
1466
+ mutationFn: (client: AccessClient, input: TInput) => Promise<TData>;
1467
+ }
1468
+ /**
1469
+ * Factory that creates a simple `useMutation`-based hook.
1470
+ *
1471
+ * Eliminates the boilerplate of:
1472
+ * 1. Calling `useAccessClient()`
1473
+ * 2. Creating a `useMutation` with `mutationKey`, `mutationFn`, `onSuccess`, `onError`
1474
+ *
1475
+ * The resulting hook has the same return type as `useMutation` (`UseMutationResult`),
1476
+ * preserving full compatibility with TanStack Query.
1477
+ *
1478
+ * @example
1479
+ * ```ts
1480
+ * export const useChangePassword = createMutationHook<
1481
+ * { updated: boolean },
1482
+ * ChangePasswordData
1483
+ * >({
1484
+ * mutationKey: ['azirid-access', 'change-password'],
1485
+ * mutationFn: (client, data) =>
1486
+ * client.post<{ updated: boolean }>(client.paths.changePassword, data),
1487
+ * })
1488
+ * ```
1489
+ */
1490
+ declare function createMutationHook<TData, TInput = void>(config: MutationHookConfig<TData, TInput>): (options?: SimpleMutationOptions<TData>) => UseMutationResult<TData, Error, TInput>;
1491
+
1445
1492
  declare function useFormState<T extends Record<string, unknown>>(initialValues: T, schema: z.ZodType<unknown, z.ZodTypeDef, unknown>, onSubmit: (values: T) => void | Promise<void>): UseFormReturn<T>;
1446
1493
 
1447
1494
  declare function usePasswordToggle(): {
@@ -1580,6 +1627,30 @@ declare function cn(...inputs: ClassValue[]): string;
1580
1627
  /** Remove injected styles from the DOM (useful when embedding in host apps). */
1581
1628
  declare function removeStyles(): void;
1582
1629
 
1630
+ interface PricingCardProps {
1631
+ plan: BillingPlan;
1632
+ isCurrentPlan: boolean;
1633
+ isCheckoutPending: boolean;
1634
+ onSelect: (plan: BillingPlan) => void;
1635
+ }
1636
+
1637
+ interface PricingFeatureListProps {
1638
+ features: string[];
1639
+ }
1640
+
1641
+ interface ProviderModalProps {
1642
+ providers: AvailableProvider[];
1643
+ isPending: boolean;
1644
+ onSelect: (provider: PaymentProviderType) => void;
1645
+ onClose: () => void;
1646
+ labels?: Record<string, string>;
1647
+ }
1648
+ interface TransferModalProps {
1649
+ data: CheckoutResponse;
1650
+ onClose: () => void;
1651
+ labels?: Record<string, string>;
1652
+ }
1653
+
1583
1654
  declare global {
1584
1655
  interface Window {
1585
1656
  PPaymentButtonBox: new (config: Record<string, unknown>) => {
@@ -1604,4 +1675,4 @@ interface SessionSyncOptions {
1604
1675
 
1605
1676
  declare const SDK_VERSION: string;
1606
1677
 
1607
- export { type AccessClient, type AccessClientConfig, type AccessMessages, type ApiError, type AppBranding, type AuthPaths, type AuthState, type AuthSuccessResponse, type AuthUser, type AvailableProvider, type AziridContextValue, AziridProvider, type AziridProviderProps, BASE_PATHS, type BillingInvoice, type BillingPlan, type BootstrapResponse, type ChangePasswordData, type ChangePasswordInput, CheckoutButton, type CheckoutButtonProps, type CheckoutParams, type CheckoutResponse, type CreateTenantData, type FieldError, InvoiceList, type InvoiceListProps, type LoginData, LoginForm, type LoginFormProps, type LoginInput, type MagicLinkRequestData, type MagicLinkRequestInput, type MagicLinkVerifyData, type MagicLinkVerifyInput, PATHS, type PasskeyItem, type PasskeyLoginData, type PasskeyLoginStartData, type PasskeyLoginStartResponse, type PasskeyLoginVerifyData, type PasskeyRegisterStartData, type PasskeyRegisterStartInput, type PasskeyRegisterStartResponse, type PasskeyRegisterVerifyData, PayButton, type PayButtonProps, type PaymentIntent, type PaymentProviderType, PayphoneCallback, type PayphoneCallbackProps, type PayphoneConfirmParams, type PayphoneConfirmResult, type PayphoneModalProps, type PayphoneWidgetConfig, PricingTable, type PricingTableProps, ReferralCard, type ReferralCardProps, type ReferralInfo, type ReferralItem, ReferralStats, type ReferralStatsData, type ReferralStatsProps, type RegisterPasskeyData, SDK_VERSION, type SessionSyncOptions, type SignupData, SignupForm, type SignupFormProps, type SignupInput, type SocialLoginData, type SocialLoginInput, type SubmitTransferProofData, SubscriptionBadge, type SubscriptionBadgeProps, type SupportedLocale, type TenantMemberInfo, type TenantWithRole, type TransferProof, type UseBootstrapOptions, type UseBootstrapReturn, type UseChangePasswordOptions, type UseChangePasswordReturn, type UseCheckoutOptions, type UseFormReturn, type UseLoginOptions, type UseLoginReturn, type UseLogoutOptions, type UseLogoutReturn, type UseMagicLinkOptions, type UseMagicLinkReturn, type UsePasskeysOptions, type UsePasskeysReturn, type UsePayphoneConfirmOptions, type UseRefreshOptions, type UseRefreshReturn, type UseSessionOptions, type UseSessionReturn, type UseSignupOptions, type UseSignupReturn, type UseSocialLoginOptions, type UseSocialLoginReturn, type UserSubscription, buildPaths, changePasswordSchema, cn, createAccessClient, createLoginSchema, createSignupSchema, en, es, isAuthError, loginSchema, magicLinkRequestSchema, magicLinkVerifySchema, passkeyRegisterStartSchema, removeStyles, resolveMessages, signupSchema, socialLoginSchema, useAccessClient, useAzirid, useBootstrap, useBranding, useChangePassword, useCheckout, useFormState, useInvoices, useLogin, useLogout, useMagicLink, useMessages, usePasskeys, usePasswordToggle, usePaymentProviders, usePayphoneConfirm, usePlans, useReferral, useReferralStats, useRefresh, useSession, useSignup, useSocialLogin, useSubmitTransferProof, useSubscription, useSwitchTenant, useTenantMembers, useTenants, useTransferProofs };
1678
+ export { type AccessClient, type AccessClientConfig, type AccessMessages, type ApiError, type AppBranding, type AuthPaths, type AuthState, type AuthSuccessResponse, type AuthUser, type AvailableProvider, type AziridContextValue, AziridProvider, type AziridProviderProps, BASE_PATHS, type BillingInvoice, type BillingPlan, type BootstrapResponse, type ChangePasswordData, type ChangePasswordInput, CheckoutButton, type CheckoutButtonProps, type CheckoutParams, type CheckoutResponse, type CreateTenantData, type FieldError, InvoiceList, type InvoiceListProps, type LoginData, LoginForm, type LoginFormProps, type LoginInput, type MagicLinkRequestData, type MagicLinkRequestInput, type MagicLinkVerifyData, type MagicLinkVerifyInput, type MutationHookConfig, PATHS, type PasskeyItem, type PasskeyLoginData, type PasskeyLoginStartData, type PasskeyLoginStartResponse, type PasskeyLoginVerifyData, type PasskeyRegisterStartData, type PasskeyRegisterStartInput, type PasskeyRegisterStartResponse, type PasskeyRegisterVerifyData, PayButton, type PayButtonProps, type PaymentIntent, type PaymentProviderType, PayphoneCallback, type PayphoneCallbackProps, type PayphoneConfirmParams, type PayphoneConfirmResult, type PayphoneModalProps, type PayphoneWidgetConfig, type PricingCardProps, type PricingFeatureListProps, PricingTable, type PricingTableProps, type ProviderModalProps, ReferralCard, type ReferralCardProps, type ReferralInfo, type ReferralItem, ReferralStats, type ReferralStatsData, type ReferralStatsProps, type RegisterPasskeyData, SDK_VERSION, type SessionSyncOptions, type SignupData, SignupForm, type SignupFormProps, type SignupInput, type SimpleMutationOptions, type SocialLoginData, type SocialLoginInput, type SubmitTransferProofData, SubscriptionBadge, type SubscriptionBadgeProps, type SupportedLocale, type TenantMemberInfo, type TenantWithRole, type TransferModalProps, type TransferProof, type UseBootstrapOptions, type UseBootstrapReturn, type UseChangePasswordOptions, type UseChangePasswordReturn, type UseCheckoutOptions, type UseFormReturn, type UseLoginOptions, type UseLoginReturn, type UseLogoutOptions, type UseLogoutReturn, type UseMagicLinkOptions, type UseMagicLinkReturn, type UsePasskeysOptions, type UsePasskeysReturn, type UsePayphoneConfirmOptions, type UseRefreshOptions, type UseRefreshReturn, type UseSessionOptions, type UseSessionReturn, type UseSignupOptions, type UseSignupReturn, type UseSocialLoginOptions, type UseSocialLoginReturn, type UserSubscription, buildPaths, changePasswordSchema, cn, createAccessClient, createLoginSchema, createMutationHook, createSignupSchema, en, es, isAuthError, loginSchema, magicLinkRequestSchema, magicLinkVerifySchema, passkeyRegisterStartSchema, removeStyles, resolveMessages, signupSchema, socialLoginSchema, useAccessClient, useAzirid, useBootstrap, useBranding, useChangePassword, useCheckout, useFormState, useInvoices, useLogin, useLogout, useMagicLink, useMessages, usePasskeys, usePasswordToggle, usePaymentProviders, usePayphoneConfirm, usePlans, useReferral, useReferralStats, useRefresh, useSession, useSignup, useSocialLogin, useSubmitTransferProof, useSubscription, useSwitchTenant, useTenantMembers, useTenants, useTransferProofs };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { ReactNode, CSSProperties, FormEvent } from 'react';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
5
5
  import { z } from 'zod';
6
+ import { TenantRole, Environment } from '@azirid/shared';
6
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
8
  import { ClassValue } from 'clsx';
8
9
 
@@ -15,9 +16,9 @@ interface AuthUser {
15
16
  mfaEnabled?: boolean;
16
17
  appId?: string;
17
18
  tenantId: string;
18
- tenantRole: string;
19
+ tenantRole: TenantRole | string;
19
20
  workspaceId?: string;
20
- environment?: 'development' | 'production';
21
+ environment?: Environment;
21
22
  mustChangePassword?: boolean;
22
23
  publicMetadata?: Record<string, unknown> | null;
23
24
  unsafeMetadata?: Record<string, unknown> | null;
@@ -510,12 +511,12 @@ interface TenantWithRole {
510
511
  slug: string;
511
512
  description?: string | null;
512
513
  enabled: boolean;
513
- role: 'OWNER' | 'MEMBER';
514
+ role: TenantRole;
514
515
  joinedAt: string;
515
516
  }
516
517
  interface TenantMemberInfo {
517
518
  id: string;
518
- role: 'OWNER' | 'MEMBER';
519
+ role: TenantRole;
519
520
  joinedAt: string;
520
521
  user: {
521
522
  id: string;
@@ -1442,6 +1443,52 @@ declare function useSwitchTenant(): {
1442
1443
  switchTenant: (tenantId: string) => Promise<void>;
1443
1444
  };
1444
1445
 
1446
+ /**
1447
+ * Options common to all simple mutation hooks created via `createMutationHook`.
1448
+ */
1449
+ interface SimpleMutationOptions<TData> {
1450
+ onSuccess?: (data: TData) => void;
1451
+ onError?: (error: Error) => void;
1452
+ }
1453
+ /**
1454
+ * Configuration for `createMutationHook`.
1455
+ *
1456
+ * @template TData The response type from the API
1457
+ * @template TInput The input/variables type for the mutation
1458
+ */
1459
+ interface MutationHookConfig<TData, TInput> {
1460
+ /** Static mutation key for deduplication / devtools */
1461
+ mutationKey: string[];
1462
+ /**
1463
+ * Derive the mutation function from the AccessClient and input.
1464
+ * Most hooks simply call `client.post<TData>(client.paths.someEndpoint, data)`.
1465
+ */
1466
+ mutationFn: (client: AccessClient, input: TInput) => Promise<TData>;
1467
+ }
1468
+ /**
1469
+ * Factory that creates a simple `useMutation`-based hook.
1470
+ *
1471
+ * Eliminates the boilerplate of:
1472
+ * 1. Calling `useAccessClient()`
1473
+ * 2. Creating a `useMutation` with `mutationKey`, `mutationFn`, `onSuccess`, `onError`
1474
+ *
1475
+ * The resulting hook has the same return type as `useMutation` (`UseMutationResult`),
1476
+ * preserving full compatibility with TanStack Query.
1477
+ *
1478
+ * @example
1479
+ * ```ts
1480
+ * export const useChangePassword = createMutationHook<
1481
+ * { updated: boolean },
1482
+ * ChangePasswordData
1483
+ * >({
1484
+ * mutationKey: ['azirid-access', 'change-password'],
1485
+ * mutationFn: (client, data) =>
1486
+ * client.post<{ updated: boolean }>(client.paths.changePassword, data),
1487
+ * })
1488
+ * ```
1489
+ */
1490
+ declare function createMutationHook<TData, TInput = void>(config: MutationHookConfig<TData, TInput>): (options?: SimpleMutationOptions<TData>) => UseMutationResult<TData, Error, TInput>;
1491
+
1445
1492
  declare function useFormState<T extends Record<string, unknown>>(initialValues: T, schema: z.ZodType<unknown, z.ZodTypeDef, unknown>, onSubmit: (values: T) => void | Promise<void>): UseFormReturn<T>;
1446
1493
 
1447
1494
  declare function usePasswordToggle(): {
@@ -1580,6 +1627,30 @@ declare function cn(...inputs: ClassValue[]): string;
1580
1627
  /** Remove injected styles from the DOM (useful when embedding in host apps). */
1581
1628
  declare function removeStyles(): void;
1582
1629
 
1630
+ interface PricingCardProps {
1631
+ plan: BillingPlan;
1632
+ isCurrentPlan: boolean;
1633
+ isCheckoutPending: boolean;
1634
+ onSelect: (plan: BillingPlan) => void;
1635
+ }
1636
+
1637
+ interface PricingFeatureListProps {
1638
+ features: string[];
1639
+ }
1640
+
1641
+ interface ProviderModalProps {
1642
+ providers: AvailableProvider[];
1643
+ isPending: boolean;
1644
+ onSelect: (provider: PaymentProviderType) => void;
1645
+ onClose: () => void;
1646
+ labels?: Record<string, string>;
1647
+ }
1648
+ interface TransferModalProps {
1649
+ data: CheckoutResponse;
1650
+ onClose: () => void;
1651
+ labels?: Record<string, string>;
1652
+ }
1653
+
1583
1654
  declare global {
1584
1655
  interface Window {
1585
1656
  PPaymentButtonBox: new (config: Record<string, unknown>) => {
@@ -1604,4 +1675,4 @@ interface SessionSyncOptions {
1604
1675
 
1605
1676
  declare const SDK_VERSION: string;
1606
1677
 
1607
- export { type AccessClient, type AccessClientConfig, type AccessMessages, type ApiError, type AppBranding, type AuthPaths, type AuthState, type AuthSuccessResponse, type AuthUser, type AvailableProvider, type AziridContextValue, AziridProvider, type AziridProviderProps, BASE_PATHS, type BillingInvoice, type BillingPlan, type BootstrapResponse, type ChangePasswordData, type ChangePasswordInput, CheckoutButton, type CheckoutButtonProps, type CheckoutParams, type CheckoutResponse, type CreateTenantData, type FieldError, InvoiceList, type InvoiceListProps, type LoginData, LoginForm, type LoginFormProps, type LoginInput, type MagicLinkRequestData, type MagicLinkRequestInput, type MagicLinkVerifyData, type MagicLinkVerifyInput, PATHS, type PasskeyItem, type PasskeyLoginData, type PasskeyLoginStartData, type PasskeyLoginStartResponse, type PasskeyLoginVerifyData, type PasskeyRegisterStartData, type PasskeyRegisterStartInput, type PasskeyRegisterStartResponse, type PasskeyRegisterVerifyData, PayButton, type PayButtonProps, type PaymentIntent, type PaymentProviderType, PayphoneCallback, type PayphoneCallbackProps, type PayphoneConfirmParams, type PayphoneConfirmResult, type PayphoneModalProps, type PayphoneWidgetConfig, PricingTable, type PricingTableProps, ReferralCard, type ReferralCardProps, type ReferralInfo, type ReferralItem, ReferralStats, type ReferralStatsData, type ReferralStatsProps, type RegisterPasskeyData, SDK_VERSION, type SessionSyncOptions, type SignupData, SignupForm, type SignupFormProps, type SignupInput, type SocialLoginData, type SocialLoginInput, type SubmitTransferProofData, SubscriptionBadge, type SubscriptionBadgeProps, type SupportedLocale, type TenantMemberInfo, type TenantWithRole, type TransferProof, type UseBootstrapOptions, type UseBootstrapReturn, type UseChangePasswordOptions, type UseChangePasswordReturn, type UseCheckoutOptions, type UseFormReturn, type UseLoginOptions, type UseLoginReturn, type UseLogoutOptions, type UseLogoutReturn, type UseMagicLinkOptions, type UseMagicLinkReturn, type UsePasskeysOptions, type UsePasskeysReturn, type UsePayphoneConfirmOptions, type UseRefreshOptions, type UseRefreshReturn, type UseSessionOptions, type UseSessionReturn, type UseSignupOptions, type UseSignupReturn, type UseSocialLoginOptions, type UseSocialLoginReturn, type UserSubscription, buildPaths, changePasswordSchema, cn, createAccessClient, createLoginSchema, createSignupSchema, en, es, isAuthError, loginSchema, magicLinkRequestSchema, magicLinkVerifySchema, passkeyRegisterStartSchema, removeStyles, resolveMessages, signupSchema, socialLoginSchema, useAccessClient, useAzirid, useBootstrap, useBranding, useChangePassword, useCheckout, useFormState, useInvoices, useLogin, useLogout, useMagicLink, useMessages, usePasskeys, usePasswordToggle, usePaymentProviders, usePayphoneConfirm, usePlans, useReferral, useReferralStats, useRefresh, useSession, useSignup, useSocialLogin, useSubmitTransferProof, useSubscription, useSwitchTenant, useTenantMembers, useTenants, useTransferProofs };
1678
+ export { type AccessClient, type AccessClientConfig, type AccessMessages, type ApiError, type AppBranding, type AuthPaths, type AuthState, type AuthSuccessResponse, type AuthUser, type AvailableProvider, type AziridContextValue, AziridProvider, type AziridProviderProps, BASE_PATHS, type BillingInvoice, type BillingPlan, type BootstrapResponse, type ChangePasswordData, type ChangePasswordInput, CheckoutButton, type CheckoutButtonProps, type CheckoutParams, type CheckoutResponse, type CreateTenantData, type FieldError, InvoiceList, type InvoiceListProps, type LoginData, LoginForm, type LoginFormProps, type LoginInput, type MagicLinkRequestData, type MagicLinkRequestInput, type MagicLinkVerifyData, type MagicLinkVerifyInput, type MutationHookConfig, PATHS, type PasskeyItem, type PasskeyLoginData, type PasskeyLoginStartData, type PasskeyLoginStartResponse, type PasskeyLoginVerifyData, type PasskeyRegisterStartData, type PasskeyRegisterStartInput, type PasskeyRegisterStartResponse, type PasskeyRegisterVerifyData, PayButton, type PayButtonProps, type PaymentIntent, type PaymentProviderType, PayphoneCallback, type PayphoneCallbackProps, type PayphoneConfirmParams, type PayphoneConfirmResult, type PayphoneModalProps, type PayphoneWidgetConfig, type PricingCardProps, type PricingFeatureListProps, PricingTable, type PricingTableProps, type ProviderModalProps, ReferralCard, type ReferralCardProps, type ReferralInfo, type ReferralItem, ReferralStats, type ReferralStatsData, type ReferralStatsProps, type RegisterPasskeyData, SDK_VERSION, type SessionSyncOptions, type SignupData, SignupForm, type SignupFormProps, type SignupInput, type SimpleMutationOptions, type SocialLoginData, type SocialLoginInput, type SubmitTransferProofData, SubscriptionBadge, type SubscriptionBadgeProps, type SupportedLocale, type TenantMemberInfo, type TenantWithRole, type TransferModalProps, type TransferProof, type UseBootstrapOptions, type UseBootstrapReturn, type UseChangePasswordOptions, type UseChangePasswordReturn, type UseCheckoutOptions, type UseFormReturn, type UseLoginOptions, type UseLoginReturn, type UseLogoutOptions, type UseLogoutReturn, type UseMagicLinkOptions, type UseMagicLinkReturn, type UsePasskeysOptions, type UsePasskeysReturn, type UsePayphoneConfirmOptions, type UseRefreshOptions, type UseRefreshReturn, type UseSessionOptions, type UseSessionReturn, type UseSignupOptions, type UseSignupReturn, type UseSocialLoginOptions, type UseSocialLoginReturn, type UserSubscription, buildPaths, changePasswordSchema, cn, createAccessClient, createLoginSchema, createMutationHook, createSignupSchema, en, es, isAuthError, loginSchema, magicLinkRequestSchema, magicLinkVerifySchema, passkeyRegisterStartSchema, removeStyles, resolveMessages, signupSchema, socialLoginSchema, useAccessClient, useAzirid, useBootstrap, useBranding, useChangePassword, useCheckout, useFormState, useInvoices, useLogin, useLogout, useMagicLink, useMessages, usePasskeys, usePasswordToggle, usePaymentProviders, usePayphoneConfirm, usePlans, useReferral, useReferralStats, useRefresh, useSession, useSignup, useSocialLogin, useSubmitTransferProof, useSubscription, useSwitchTenant, useTenantMembers, useTenants, useTransferProofs };