@chipi-stack/chipi-react 14.9.0 → 14.10.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.
@@ -4,6 +4,7 @@ import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
4
4
  import { MigrateChipiWalletToShhhParams, MigrationOutcome, Eip191Pubkey, WebAuthnPubkey, JwtAppleSubPubkey, NewOwnerInput, buildProposeAddOwnerCall, TIMELOCK_SECONDS, DEFAULT_OP_EXPIRY_SECONDS, ROLE_OWNER, ROLE_GUARDIAN, OP_ADD_OWNER, OP_REMOVE_OWNER, OP_ROTATE_OWNER, OP_SET_THRESHOLD, ShhhSignerKind, MIN_THRESHOLD_OWNERS } from '@chipi-stack/backend';
5
5
  import { Call as Call$2 } from 'starknet';
6
6
  import { TypedData, AccountDeploymentData } from '@starknet-io/types-js';
7
+ import { ShieldResult } from '@chipi-stack/core';
7
8
 
8
9
  type CreateWalletInput = {
9
10
  params: CreateWalletParams;
@@ -2740,4 +2741,121 @@ interface UseThresholdSignOptions {
2740
2741
  */
2741
2742
  declare function useThresholdSign(opts: UseThresholdSignOptions): UseThresholdSignReturn;
2742
2743
 
2743
- export { useCallAnyContract as A, useSignTypedData as B, type ChipiWindowObjectDeps as C, useChipiWalletObject as D, useRecordSendTransaction as E, useGetTokenBalance as F, useCreateSessionKey as G, useAddSessionKeyToContract as H, useRevokeSessionKey as I, useGetSessionData as J, useExecuteWithSession as K, useX402Payment as L, type UseX402PaymentConfig as M, type UseX402PaymentReturn as N, useShhhSigner as O, type UseShhhSignerReturn as P, useGuardianRecovery as Q, type UseGuardianRecoveryReturn as R, type SessionState as S, useThresholdSign as T, type UseChipiWalletObjectConfig as U, type UseThresholdSignReturn as V, type UseThresholdSignOptions as W, type ThresholdSignState as X, type ChipiApprovalRequest as a, type ChipiSessionPolicy as b, useGetWallet as c, useChipiWallet as d, type UseChipiWalletConfig as e, type UseChipiWalletReturn as f, type ChipiWalletData as g, useChipiSession as h, type UseChipiSessionConfig as i, type UseChipiSessionReturn as j, type SessionWallet as k, useMigrateWalletToPasskey as l, useUpdateWalletEncryption as m, useMigrateWalletToShhh as n, useTransfer as o, type UseTransferConfig as p, useApprove as q, useGetTransactionList as r, useGetTransaction as s, useGetTransactionStatus as t, useCreateWallet as u, useSyncOnChainTransfers as v, usePurchaseSku as w, useGetSkuPurchase as x, useGetSkuList as y, useGetSku as z };
2744
+ /** Real progress milestones, in execution order (unshield skips "deposit"). */
2745
+ type PrivacyStep = "prepare" | "fund" | "deposit" | "prove" | "finish";
2746
+ interface PrivacyConfig {
2747
+ /** Chipi API base. Default https://api.chipipay.com/v1 */
2748
+ apiBaseUrl?: string;
2749
+ /** Chipi API PUBLIC key (x-api-key; must be privacy-allowlisted). */
2750
+ apiPublicKey: string;
2751
+ /** Fresh user-JWT source, called before every authed request (tokens die
2752
+ * during the multi-minute flow — pass your auth SDK's getToken). */
2753
+ getBearerToken: () => Promise<string | null | undefined>;
2754
+ /** Starknet RPC. Default mainnet cartridge. */
2755
+ rpcUrl?: string;
2756
+ /** Chain id felt. Default SN_MAIN. */
2757
+ chainId?: string;
2758
+ /** Same-origin proxy for the CORS-less sequencer gateway (REQUIRED in
2759
+ * browsers — forward POSTs server-side to alpha-mainnet.starknet.io). */
2760
+ gatewaySubmitUrl?: string;
2761
+ /** Gas tank to sweep leftover fronted STRK back to. */
2762
+ gasTankAddress?: string;
2763
+ }
2764
+ /** The user's derived privacy account — all CLIENT-side, from their anchor. */
2765
+ interface PrivacyKeys {
2766
+ companionAddress: string;
2767
+ companionKey: string;
2768
+ classHash: string;
2769
+ poolKey: bigint;
2770
+ }
2771
+ /**
2772
+ * Derive the user's privacy account from an owner-independent anchor (the
2773
+ * wallet encryptKey bytes / passkey PRF output). Deterministic: same anchor +
2774
+ * seed tag always yields the same account — safe to cache the ADDRESS, never
2775
+ * the keys.
2776
+ */
2777
+ declare function derivePrivacyAccount(p: {
2778
+ anchorSecret: Uint8Array;
2779
+ /** Per-wallet felt (the user's wallet address) — domain-separates pools keys. */
2780
+ seedDomainTag: string;
2781
+ /** Companion account class hash (standard SNIP-6 account). */
2782
+ classHash: string;
2783
+ }): Promise<PrivacyKeys>;
2784
+ interface ShieldHookInput {
2785
+ config: PrivacyConfig;
2786
+ keys: PrivacyKeys;
2787
+ /** Token to shield (contract address). */
2788
+ token: string;
2789
+ /** Amount in the token's base units. */
2790
+ amount: bigint;
2791
+ /** Move `amount` of `token` from the USER'S WALLET into the companion —
2792
+ * the integrator's gasless transfer (e.g. useCallAnyContract). Omit when
2793
+ * the funds are already parked in the companion (retry/recovery). */
2794
+ fundDeposit?: (companionAddress: string, amount: bigint) => Promise<void>;
2795
+ onStep?: (step: PrivacyStep) => void;
2796
+ }
2797
+ /** Shield tokens into the user's private balance. See module doc. */
2798
+ declare function useShield(): {
2799
+ shield: _tanstack_react_query.UseMutateFunction<ShieldResult, Error, ShieldHookInput, unknown>;
2800
+ shieldAsync: _tanstack_react_query.UseMutateAsyncFunction<ShieldResult, Error, ShieldHookInput, unknown>;
2801
+ data: ShieldResult | undefined;
2802
+ isLoading: boolean;
2803
+ isError: boolean;
2804
+ error: Error | null;
2805
+ isSuccess: boolean;
2806
+ reset: () => void;
2807
+ };
2808
+ /** Unshield tokens from the private balance back to the user's wallet. */
2809
+ declare function useUnshield(): {
2810
+ unshield: _tanstack_react_query.UseMutateFunction<ShieldResult, Error, Omit<ShieldHookInput, "fundDeposit"> & {
2811
+ /** Where the withdrawn tokens are DELIVERED (the user's real wallet). */
2812
+ deliverTo: string;
2813
+ }, unknown>;
2814
+ unshieldAsync: _tanstack_react_query.UseMutateAsyncFunction<ShieldResult, Error, Omit<ShieldHookInput, "fundDeposit"> & {
2815
+ /** Where the withdrawn tokens are DELIVERED (the user's real wallet). */
2816
+ deliverTo: string;
2817
+ }, unknown>;
2818
+ data: ShieldResult | undefined;
2819
+ isLoading: boolean;
2820
+ isError: boolean;
2821
+ error: Error | null;
2822
+ isSuccess: boolean;
2823
+ reset: () => void;
2824
+ };
2825
+ /** A recorded shield/unshield event — the integrator's durable ledger row. */
2826
+ interface PrivacyLedgerEvent {
2827
+ direction: "shield" | "unshield";
2828
+ /** Token contract address. */
2829
+ token: string;
2830
+ /** Amount in the token's base units. */
2831
+ amount: bigint;
2832
+ }
2833
+ /**
2834
+ * PURE ledger netting (instant, render-safe): private balance per token as
2835
+ * the net of recorded events, clamped at zero so fee/rounding drift never
2836
+ * shows a negative. This is what a home-screen "private balance" should use.
2837
+ */
2838
+ declare function netPrivateBalance(events: PrivacyLedgerEvent[]): Record<string, bigint>;
2839
+ type PrivateBalanceInput = {
2840
+ /** Instant, from the integrator's recorded events. For passive display. */
2841
+ mode: "ledger";
2842
+ events: PrivacyLedgerEvent[];
2843
+ } | {
2844
+ /** Authoritative on-chain note scan — needs the derived keys (a passkey
2845
+ * gesture on first use). For an explicit "verify on-chain" action. */
2846
+ mode: "onchain";
2847
+ config: PrivacyConfig;
2848
+ keys: PrivacyKeys;
2849
+ /** Restrict the scan to these token addresses. */
2850
+ tokens?: string[];
2851
+ };
2852
+ /** Private balance per token. See {@link PrivateBalanceInput} for the modes. */
2853
+ declare function usePrivateBalance(input: PrivateBalanceInput): {
2854
+ byToken: Record<string, bigint>;
2855
+ isLoading: boolean;
2856
+ isError: boolean;
2857
+ error: Error | null;
2858
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, bigint>, Error>>;
2859
+ };
2860
+
2861
+ export { derivePrivacyAccount as $, useCallAnyContract as A, useSignTypedData as B, type ChipiWindowObjectDeps as C, useChipiWalletObject as D, useRecordSendTransaction as E, useGetTokenBalance as F, useCreateSessionKey as G, useAddSessionKeyToContract as H, useRevokeSessionKey as I, useGetSessionData as J, useExecuteWithSession as K, useX402Payment as L, type UseX402PaymentConfig as M, type UseX402PaymentReturn as N, useShhhSigner as O, type UseShhhSignerReturn as P, useGuardianRecovery as Q, type UseGuardianRecoveryReturn as R, type SessionState as S, useThresholdSign as T, type UseChipiWalletObjectConfig as U, type UseThresholdSignReturn as V, type UseThresholdSignOptions as W, type ThresholdSignState as X, useShield as Y, useUnshield as Z, usePrivateBalance as _, type ChipiApprovalRequest as a, netPrivateBalance as a0, type PrivacyConfig as a1, type PrivacyKeys as a2, type PrivacyStep as a3, type ShieldHookInput as a4, type PrivacyLedgerEvent as a5, type PrivateBalanceInput as a6, type ChipiSessionPolicy as b, useGetWallet as c, useChipiWallet as d, type UseChipiWalletConfig as e, type UseChipiWalletReturn as f, type ChipiWalletData as g, useChipiSession as h, type UseChipiSessionConfig as i, type UseChipiSessionReturn as j, type SessionWallet as k, useMigrateWalletToPasskey as l, useUpdateWalletEncryption as m, useMigrateWalletToShhh as n, useTransfer as o, type UseTransferConfig as p, useApprove as q, useGetTransactionList as r, useGetTransaction as s, useGetTransactionStatus as t, useCreateWallet as u, useSyncOnChainTransfers as v, usePurchaseSku as w, useGetSkuPurchase as x, useGetSkuList as y, useGetSku as z };
@@ -4,6 +4,7 @@ import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
4
4
  import { MigrateChipiWalletToShhhParams, MigrationOutcome, Eip191Pubkey, WebAuthnPubkey, JwtAppleSubPubkey, NewOwnerInput, buildProposeAddOwnerCall, TIMELOCK_SECONDS, DEFAULT_OP_EXPIRY_SECONDS, ROLE_OWNER, ROLE_GUARDIAN, OP_ADD_OWNER, OP_REMOVE_OWNER, OP_ROTATE_OWNER, OP_SET_THRESHOLD, ShhhSignerKind, MIN_THRESHOLD_OWNERS } from '@chipi-stack/backend';
5
5
  import { Call as Call$2 } from 'starknet';
6
6
  import { TypedData, AccountDeploymentData } from '@starknet-io/types-js';
7
+ import { ShieldResult } from '@chipi-stack/core';
7
8
 
8
9
  type CreateWalletInput = {
9
10
  params: CreateWalletParams;
@@ -2740,4 +2741,121 @@ interface UseThresholdSignOptions {
2740
2741
  */
2741
2742
  declare function useThresholdSign(opts: UseThresholdSignOptions): UseThresholdSignReturn;
2742
2743
 
2743
- export { useCallAnyContract as A, useSignTypedData as B, type ChipiWindowObjectDeps as C, useChipiWalletObject as D, useRecordSendTransaction as E, useGetTokenBalance as F, useCreateSessionKey as G, useAddSessionKeyToContract as H, useRevokeSessionKey as I, useGetSessionData as J, useExecuteWithSession as K, useX402Payment as L, type UseX402PaymentConfig as M, type UseX402PaymentReturn as N, useShhhSigner as O, type UseShhhSignerReturn as P, useGuardianRecovery as Q, type UseGuardianRecoveryReturn as R, type SessionState as S, useThresholdSign as T, type UseChipiWalletObjectConfig as U, type UseThresholdSignReturn as V, type UseThresholdSignOptions as W, type ThresholdSignState as X, type ChipiApprovalRequest as a, type ChipiSessionPolicy as b, useGetWallet as c, useChipiWallet as d, type UseChipiWalletConfig as e, type UseChipiWalletReturn as f, type ChipiWalletData as g, useChipiSession as h, type UseChipiSessionConfig as i, type UseChipiSessionReturn as j, type SessionWallet as k, useMigrateWalletToPasskey as l, useUpdateWalletEncryption as m, useMigrateWalletToShhh as n, useTransfer as o, type UseTransferConfig as p, useApprove as q, useGetTransactionList as r, useGetTransaction as s, useGetTransactionStatus as t, useCreateWallet as u, useSyncOnChainTransfers as v, usePurchaseSku as w, useGetSkuPurchase as x, useGetSkuList as y, useGetSku as z };
2744
+ /** Real progress milestones, in execution order (unshield skips "deposit"). */
2745
+ type PrivacyStep = "prepare" | "fund" | "deposit" | "prove" | "finish";
2746
+ interface PrivacyConfig {
2747
+ /** Chipi API base. Default https://api.chipipay.com/v1 */
2748
+ apiBaseUrl?: string;
2749
+ /** Chipi API PUBLIC key (x-api-key; must be privacy-allowlisted). */
2750
+ apiPublicKey: string;
2751
+ /** Fresh user-JWT source, called before every authed request (tokens die
2752
+ * during the multi-minute flow — pass your auth SDK's getToken). */
2753
+ getBearerToken: () => Promise<string | null | undefined>;
2754
+ /** Starknet RPC. Default mainnet cartridge. */
2755
+ rpcUrl?: string;
2756
+ /** Chain id felt. Default SN_MAIN. */
2757
+ chainId?: string;
2758
+ /** Same-origin proxy for the CORS-less sequencer gateway (REQUIRED in
2759
+ * browsers — forward POSTs server-side to alpha-mainnet.starknet.io). */
2760
+ gatewaySubmitUrl?: string;
2761
+ /** Gas tank to sweep leftover fronted STRK back to. */
2762
+ gasTankAddress?: string;
2763
+ }
2764
+ /** The user's derived privacy account — all CLIENT-side, from their anchor. */
2765
+ interface PrivacyKeys {
2766
+ companionAddress: string;
2767
+ companionKey: string;
2768
+ classHash: string;
2769
+ poolKey: bigint;
2770
+ }
2771
+ /**
2772
+ * Derive the user's privacy account from an owner-independent anchor (the
2773
+ * wallet encryptKey bytes / passkey PRF output). Deterministic: same anchor +
2774
+ * seed tag always yields the same account — safe to cache the ADDRESS, never
2775
+ * the keys.
2776
+ */
2777
+ declare function derivePrivacyAccount(p: {
2778
+ anchorSecret: Uint8Array;
2779
+ /** Per-wallet felt (the user's wallet address) — domain-separates pools keys. */
2780
+ seedDomainTag: string;
2781
+ /** Companion account class hash (standard SNIP-6 account). */
2782
+ classHash: string;
2783
+ }): Promise<PrivacyKeys>;
2784
+ interface ShieldHookInput {
2785
+ config: PrivacyConfig;
2786
+ keys: PrivacyKeys;
2787
+ /** Token to shield (contract address). */
2788
+ token: string;
2789
+ /** Amount in the token's base units. */
2790
+ amount: bigint;
2791
+ /** Move `amount` of `token` from the USER'S WALLET into the companion —
2792
+ * the integrator's gasless transfer (e.g. useCallAnyContract). Omit when
2793
+ * the funds are already parked in the companion (retry/recovery). */
2794
+ fundDeposit?: (companionAddress: string, amount: bigint) => Promise<void>;
2795
+ onStep?: (step: PrivacyStep) => void;
2796
+ }
2797
+ /** Shield tokens into the user's private balance. See module doc. */
2798
+ declare function useShield(): {
2799
+ shield: _tanstack_react_query.UseMutateFunction<ShieldResult, Error, ShieldHookInput, unknown>;
2800
+ shieldAsync: _tanstack_react_query.UseMutateAsyncFunction<ShieldResult, Error, ShieldHookInput, unknown>;
2801
+ data: ShieldResult | undefined;
2802
+ isLoading: boolean;
2803
+ isError: boolean;
2804
+ error: Error | null;
2805
+ isSuccess: boolean;
2806
+ reset: () => void;
2807
+ };
2808
+ /** Unshield tokens from the private balance back to the user's wallet. */
2809
+ declare function useUnshield(): {
2810
+ unshield: _tanstack_react_query.UseMutateFunction<ShieldResult, Error, Omit<ShieldHookInput, "fundDeposit"> & {
2811
+ /** Where the withdrawn tokens are DELIVERED (the user's real wallet). */
2812
+ deliverTo: string;
2813
+ }, unknown>;
2814
+ unshieldAsync: _tanstack_react_query.UseMutateAsyncFunction<ShieldResult, Error, Omit<ShieldHookInput, "fundDeposit"> & {
2815
+ /** Where the withdrawn tokens are DELIVERED (the user's real wallet). */
2816
+ deliverTo: string;
2817
+ }, unknown>;
2818
+ data: ShieldResult | undefined;
2819
+ isLoading: boolean;
2820
+ isError: boolean;
2821
+ error: Error | null;
2822
+ isSuccess: boolean;
2823
+ reset: () => void;
2824
+ };
2825
+ /** A recorded shield/unshield event — the integrator's durable ledger row. */
2826
+ interface PrivacyLedgerEvent {
2827
+ direction: "shield" | "unshield";
2828
+ /** Token contract address. */
2829
+ token: string;
2830
+ /** Amount in the token's base units. */
2831
+ amount: bigint;
2832
+ }
2833
+ /**
2834
+ * PURE ledger netting (instant, render-safe): private balance per token as
2835
+ * the net of recorded events, clamped at zero so fee/rounding drift never
2836
+ * shows a negative. This is what a home-screen "private balance" should use.
2837
+ */
2838
+ declare function netPrivateBalance(events: PrivacyLedgerEvent[]): Record<string, bigint>;
2839
+ type PrivateBalanceInput = {
2840
+ /** Instant, from the integrator's recorded events. For passive display. */
2841
+ mode: "ledger";
2842
+ events: PrivacyLedgerEvent[];
2843
+ } | {
2844
+ /** Authoritative on-chain note scan — needs the derived keys (a passkey
2845
+ * gesture on first use). For an explicit "verify on-chain" action. */
2846
+ mode: "onchain";
2847
+ config: PrivacyConfig;
2848
+ keys: PrivacyKeys;
2849
+ /** Restrict the scan to these token addresses. */
2850
+ tokens?: string[];
2851
+ };
2852
+ /** Private balance per token. See {@link PrivateBalanceInput} for the modes. */
2853
+ declare function usePrivateBalance(input: PrivateBalanceInput): {
2854
+ byToken: Record<string, bigint>;
2855
+ isLoading: boolean;
2856
+ isError: boolean;
2857
+ error: Error | null;
2858
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, bigint>, Error>>;
2859
+ };
2860
+
2861
+ export { derivePrivacyAccount as $, useCallAnyContract as A, useSignTypedData as B, type ChipiWindowObjectDeps as C, useChipiWalletObject as D, useRecordSendTransaction as E, useGetTokenBalance as F, useCreateSessionKey as G, useAddSessionKeyToContract as H, useRevokeSessionKey as I, useGetSessionData as J, useExecuteWithSession as K, useX402Payment as L, type UseX402PaymentConfig as M, type UseX402PaymentReturn as N, useShhhSigner as O, type UseShhhSignerReturn as P, useGuardianRecovery as Q, type UseGuardianRecoveryReturn as R, type SessionState as S, useThresholdSign as T, type UseChipiWalletObjectConfig as U, type UseThresholdSignReturn as V, type UseThresholdSignOptions as W, type ThresholdSignState as X, useShield as Y, useUnshield as Z, usePrivateBalance as _, type ChipiApprovalRequest as a, netPrivateBalance as a0, type PrivacyConfig as a1, type PrivacyKeys as a2, type PrivacyStep as a3, type ShieldHookInput as a4, type PrivacyLedgerEvent as a5, type PrivateBalanceInput as a6, type ChipiSessionPolicy as b, useGetWallet as c, useChipiWallet as d, type UseChipiWalletConfig as e, type UseChipiWalletReturn as f, type ChipiWalletData as g, useChipiSession as h, type UseChipiSessionConfig as i, type UseChipiSessionReturn as j, type SessionWallet as k, useMigrateWalletToPasskey as l, useUpdateWalletEncryption as m, useMigrateWalletToShhh as n, useTransfer as o, type UseTransferConfig as p, useApprove as q, useGetTransactionList as r, useGetTransaction as s, useGetTransactionStatus as t, useCreateWallet as u, useSyncOnChainTransfers as v, usePurchaseSku as w, useGetSkuPurchase as x, useGetSkuList as y, useGetSku as z };
package/dist/index.d.mts CHANGED
@@ -4,11 +4,12 @@ import { ChipiSDK, NewOwnerInput } from '@chipi-stack/backend';
4
4
  import { ChipiSDKConfig } from '@chipi-stack/types';
5
5
  export * from '@chipi-stack/types';
6
6
  export { Chain, ChainToken } from '@chipi-stack/types';
7
- import { C as ChipiWindowObjectDeps, U as UseChipiWalletObjectConfig } from './index-B8e6TdyG.mjs';
8
- export { a as ChipiApprovalRequest, b as ChipiSessionPolicy, g as ChipiWalletData, S as SessionState, k as SessionWallet, X as ThresholdSignState, i as UseChipiSessionConfig, j as UseChipiSessionReturn, e as UseChipiWalletConfig, f as UseChipiWalletReturn, R as UseGuardianRecoveryReturn, P as UseShhhSignerReturn, W as UseThresholdSignOptions, V as UseThresholdSignReturn, p as UseTransferConfig, M as UseX402PaymentConfig, N as UseX402PaymentReturn, H as useAddSessionKeyToContract, q as useApprove, A as useCallAnyContract, h as useChipiSession, d as useChipiWallet, D as useChipiWalletObject, G as useCreateSessionKey, u as useCreateWallet, K as useExecuteWithSession, J as useGetSessionData, z as useGetSku, y as useGetSkuList, x as useGetSkuPurchase, F as useGetTokenBalance, s as useGetTransaction, r as useGetTransactionList, t as useGetTransactionStatus, c as useGetWallet, Q as useGuardianRecovery, l as useMigrateWalletToPasskey, n as useMigrateWalletToShhh, w as usePurchaseSku, E as useRecordSendTransaction, I as useRevokeSessionKey, O as useShhhSigner, B as useSignTypedData, v as useSyncOnChainTransfers, T as useThresholdSign, o as useTransfer, m as useUpdateWalletEncryption, L as useX402Payment } from './index-B8e6TdyG.mjs';
7
+ import { C as ChipiWindowObjectDeps, U as UseChipiWalletObjectConfig } from './index-D9-uVlda.mjs';
8
+ export { a as ChipiApprovalRequest, b as ChipiSessionPolicy, g as ChipiWalletData, a1 as PrivacyConfig, a2 as PrivacyKeys, a5 as PrivacyLedgerEvent, a3 as PrivacyStep, a6 as PrivateBalanceInput, S as SessionState, k as SessionWallet, a4 as ShieldHookInput, X as ThresholdSignState, i as UseChipiSessionConfig, j as UseChipiSessionReturn, e as UseChipiWalletConfig, f as UseChipiWalletReturn, R as UseGuardianRecoveryReturn, P as UseShhhSignerReturn, W as UseThresholdSignOptions, V as UseThresholdSignReturn, p as UseTransferConfig, M as UseX402PaymentConfig, N as UseX402PaymentReturn, $ as derivePrivacyAccount, a0 as netPrivateBalance, H as useAddSessionKeyToContract, q as useApprove, A as useCallAnyContract, h as useChipiSession, d as useChipiWallet, D as useChipiWalletObject, G as useCreateSessionKey, u as useCreateWallet, K as useExecuteWithSession, J as useGetSessionData, z as useGetSku, y as useGetSkuList, x as useGetSkuPurchase, F as useGetTokenBalance, s as useGetTransaction, r as useGetTransactionList, t as useGetTransactionStatus, c as useGetWallet, Q as useGuardianRecovery, l as useMigrateWalletToPasskey, n as useMigrateWalletToShhh, _ as usePrivateBalance, w as usePurchaseSku, E as useRecordSendTransaction, I as useRevokeSessionKey, O as useShhhSigner, Y as useShield, B as useSignTypedData, v as useSyncOnChainTransfers, T as useThresholdSign, o as useTransfer, Z as useUnshield, m as useUpdateWalletEncryption, L as useX402Payment } from './index-D9-uVlda.mjs';
9
9
  import { StarknetWindowObject } from '@starknet-io/types-js';
10
10
  import '@tanstack/react-query';
11
11
  import 'starknet';
12
+ import '@chipi-stack/core';
12
13
 
13
14
  interface PasskeyAdapter {
14
15
  getWalletEncryptKey: (input: {
package/dist/index.d.ts CHANGED
@@ -4,11 +4,12 @@ import { ChipiSDK, NewOwnerInput } from '@chipi-stack/backend';
4
4
  import { ChipiSDKConfig } from '@chipi-stack/types';
5
5
  export * from '@chipi-stack/types';
6
6
  export { Chain, ChainToken } from '@chipi-stack/types';
7
- import { C as ChipiWindowObjectDeps, U as UseChipiWalletObjectConfig } from './index-B8e6TdyG.js';
8
- export { a as ChipiApprovalRequest, b as ChipiSessionPolicy, g as ChipiWalletData, S as SessionState, k as SessionWallet, X as ThresholdSignState, i as UseChipiSessionConfig, j as UseChipiSessionReturn, e as UseChipiWalletConfig, f as UseChipiWalletReturn, R as UseGuardianRecoveryReturn, P as UseShhhSignerReturn, W as UseThresholdSignOptions, V as UseThresholdSignReturn, p as UseTransferConfig, M as UseX402PaymentConfig, N as UseX402PaymentReturn, H as useAddSessionKeyToContract, q as useApprove, A as useCallAnyContract, h as useChipiSession, d as useChipiWallet, D as useChipiWalletObject, G as useCreateSessionKey, u as useCreateWallet, K as useExecuteWithSession, J as useGetSessionData, z as useGetSku, y as useGetSkuList, x as useGetSkuPurchase, F as useGetTokenBalance, s as useGetTransaction, r as useGetTransactionList, t as useGetTransactionStatus, c as useGetWallet, Q as useGuardianRecovery, l as useMigrateWalletToPasskey, n as useMigrateWalletToShhh, w as usePurchaseSku, E as useRecordSendTransaction, I as useRevokeSessionKey, O as useShhhSigner, B as useSignTypedData, v as useSyncOnChainTransfers, T as useThresholdSign, o as useTransfer, m as useUpdateWalletEncryption, L as useX402Payment } from './index-B8e6TdyG.js';
7
+ import { C as ChipiWindowObjectDeps, U as UseChipiWalletObjectConfig } from './index-D9-uVlda.js';
8
+ export { a as ChipiApprovalRequest, b as ChipiSessionPolicy, g as ChipiWalletData, a1 as PrivacyConfig, a2 as PrivacyKeys, a5 as PrivacyLedgerEvent, a3 as PrivacyStep, a6 as PrivateBalanceInput, S as SessionState, k as SessionWallet, a4 as ShieldHookInput, X as ThresholdSignState, i as UseChipiSessionConfig, j as UseChipiSessionReturn, e as UseChipiWalletConfig, f as UseChipiWalletReturn, R as UseGuardianRecoveryReturn, P as UseShhhSignerReturn, W as UseThresholdSignOptions, V as UseThresholdSignReturn, p as UseTransferConfig, M as UseX402PaymentConfig, N as UseX402PaymentReturn, $ as derivePrivacyAccount, a0 as netPrivateBalance, H as useAddSessionKeyToContract, q as useApprove, A as useCallAnyContract, h as useChipiSession, d as useChipiWallet, D as useChipiWalletObject, G as useCreateSessionKey, u as useCreateWallet, K as useExecuteWithSession, J as useGetSessionData, z as useGetSku, y as useGetSkuList, x as useGetSkuPurchase, F as useGetTokenBalance, s as useGetTransaction, r as useGetTransactionList, t as useGetTransactionStatus, c as useGetWallet, Q as useGuardianRecovery, l as useMigrateWalletToPasskey, n as useMigrateWalletToShhh, _ as usePrivateBalance, w as usePurchaseSku, E as useRecordSendTransaction, I as useRevokeSessionKey, O as useShhhSigner, Y as useShield, B as useSignTypedData, v as useSyncOnChainTransfers, T as useThresholdSign, o as useTransfer, Z as useUnshield, m as useUpdateWalletEncryption, L as useX402Payment } from './index-D9-uVlda.js';
9
9
  import { StarknetWindowObject } from '@starknet-io/types-js';
10
10
  import '@tanstack/react-query';
11
11
  import 'starknet';
12
+ import '@chipi-stack/core';
12
13
 
13
14
  interface PasskeyAdapter {
14
15
  getWalletEncryptKey: (input: {