@oasisprotocol/privana-sdk 0.5.0 → 0.5.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
@@ -1,5 +1,5 @@
1
- import { A as Address, B as Bytes32, H as HexString, I as IntegerLike, a as HostedAuthResponseMode, S as SignOnRampUrlRequest, b as SignOnRampUrlResponse, C as CreateOnRampIntentRequest, c as CreateOnRampIntentResponse, U as UpdateOnRampRequest, d as UpdateOnRampResponse, P as PendingOnRampsResponse, N as NetworkConfig, T as TokenConfig } from './on-ramp-XLXsy0aI.js';
2
- export { e as NETWORK_CONFIG, f as Network, O as OnRampRecord, g as OnRampStatus, h as getAccountingContract, i as getApiUrl, j as getChainId, n as normalizeAddress, k as normalizeHex } from './on-ramp-XLXsy0aI.js';
1
+ import { A as Address, J as JwtRefreshResponse, H as HostedAuthTokenExchangeResponse, B as Bytes32, S as SiweLoginResponse, P as PrivanaClient, N as NetworkConfig, T as TokenConfig, a as TokenBalance, b as PostDepositLockConfig, D as DepositAddressResponse, c as DepositCheckResponse, d as TransactionSubmissionResponse, e as PostDepositLockError, L as LockInfo, f as PendingDeposit, g as PendingDepositsResponse, W as WithdrawalInfo, h as HistoryEntry, i as TokenInfoResponse } from './pending-lock-BdkuMjmY.js';
2
+ export { j as BalanceResponse, k as BatchBalancesRequest, l as BatchBalancesResponse, C as CreateOnRampIntentRequest, m as CreateOnRampIntentResponse, n as CreateSignedLockRequestParams, o as DEFAULT_LOCK_DURATION_SECONDS, p as DEFAULT_ONRAMP_LOCK_BUFFER, q as DepositAddressRequest, r as DepositCheckRequest, E as ExpiredLocksResponse, s as HexString, t as HistoryKind, u as HistoryRequest, v as HistoryResponse, w as HostedAuthAuthorizeUrlRequest, x as HostedAuthResponseMode, y as HostedAuthTokenExchangeRequest, z as HttpClient, F as HttpClientConfig, I as IntegerLike, G as JwtLogoutRequest, K as JwtLogoutResponse, M as JwtRefreshRequest, O as LockFundsRequest, Q as LockNonceResponse, R as LockedFundsResponse, U as MinDepositAmounts, V as ModifyLockNonceResponse, X as ModifyLockRequest, Y as NETWORK_CONFIG, Z as Network, _ as OnRampPostDepositLockConfig, $ as OnRampRecord, a0 as OnRampStatus, a1 as PendingDepositStatus, a2 as PendingDepositsRequest, a3 as PendingOnRampsResponse, a4 as PendingWithdrawalsResponse, a5 as PostDepositLockFailureReason, a6 as PrivanaClientConfig, a7 as SignOnRampUrlRequest, a8 as SignOnRampUrlResponse, a9 as SiweDomainResponse, aa as SiweLoginRequest, ab as SiweNonceResponse, ac as SubmitPendingLockParams, ad as TokenListResponse, ae as TotalLockedBalanceResponse, af as TransferFundsRequest, ag as TransferLockedFundsRequest, ah as TransferLockedNonceResponse, ai as TransferNonceResponse, aj as UnlockAllExpiredRequest, ak as UnlockFundsRequest, al as UpdateOnRampRequest, am as UpdateOnRampResponse, an as WithdrawFromLockRequest, ao as WithdrawalInfoResponse, ap as WithdrawalNonceResponse, aq as WithdrawalRequest, ar as applyLockBuffer, as as clampLockAmount, at as clearPendingLock, au as createSignedLockRequest, av as getAccountingContract, aw as getApiUrl, ax as getChainId, ay as isSignedLockUsable, az as loadPendingLock, aA as normalizeAddress, aB as normalizeHex, aC as savePendingLock, aD as submitPendingLock } from './pending-lock-BdkuMjmY.js';
3
3
  import { WalletClient, Address as Address$1 } from 'viem';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as React$1 from 'react';
@@ -13,18 +13,19 @@ interface AllowanceTerm {
13
13
  }
14
14
  interface Allowance {
15
15
  /**
16
- * Hard cap the service is allowed to lock (`maxAmount`), in the token's base units.
17
- * Signed into the deposit-lock authorization.
16
+ * Hard cap the service is allowed to lock (`maxAmount`), in the token's base
17
+ * units. The pre-signed lock amount is capped to this value.
18
18
  */
19
19
  value: string;
20
20
  /**
21
- * Minimum amount the delivered deposit must reach for the lock to be created
22
- * (`minAmount`), in the token's base units. Defaults to `0` when omitted.
21
+ * Minimum amount the delivered deposit must reach, in the token's base units.
22
+ * Display-only: with a pre-signed exact-amount lock, a short delivery means
23
+ * no lock is created at all, which is stricter than any minimum.
23
24
  */
24
25
  minAmount?: string;
25
26
  /**
26
- * Lock lifetime in seconds. The accounting module adds this to `block.timestamp`
27
- * to derive the lock expiry. Defaults to the SDK default (3600) when omitted.
27
+ * Lock lifetime in seconds, applied from signing time (the `Lock` expiry is
28
+ * an absolute timestamp). Defaults to the SDK default (259200, 3 days) when omitted.
28
29
  */
29
30
  lockDuration?: number;
30
31
  terms?: {
@@ -74,267 +75,6 @@ declare function getChainById(chainId: number): ChainConfig | undefined;
74
75
  declare function getExplorerLabel(chainId: number): string;
75
76
  declare function getExplorerAddressUrl(chainId: number, address: string): string | undefined;
76
77
 
77
- interface DepositAddressRequest {
78
- chain_type?: string;
79
- version?: number;
80
- }
81
- interface DepositCheckRequest {
82
- chain_type?: string;
83
- chain_id: number;
84
- tx_hash: HexString;
85
- amount: IntegerLike;
86
- log_index?: number;
87
- version?: number;
88
- }
89
- interface LockFundsRequest {
90
- service_address: Address;
91
- token_id: Bytes32;
92
- amount: IntegerLike;
93
- expiry: IntegerLike;
94
- nonce: IntegerLike;
95
- signature: HexString;
96
- }
97
- interface ModifyLockRequest {
98
- lock_id: number;
99
- amount: IntegerLike;
100
- new_expiry: IntegerLike;
101
- nonce: IntegerLike;
102
- signature: HexString;
103
- }
104
- interface UnlockFundsRequest {
105
- user_address: Address;
106
- lock_id: number;
107
- }
108
- interface UnlockAllExpiredRequest {
109
- user_address: Address;
110
- }
111
- interface TransferFundsRequest {
112
- to_address: Address;
113
- token_id: Bytes32;
114
- amount: IntegerLike;
115
- nonce: IntegerLike;
116
- signature: HexString;
117
- }
118
- interface TransferLockedFundsRequest {
119
- user_address: Address;
120
- lock_id: number;
121
- to_address: Address;
122
- amount: IntegerLike;
123
- service_address: Address;
124
- nonce: IntegerLike;
125
- signature: HexString;
126
- }
127
- interface WithdrawalRequest {
128
- token_id: Bytes32;
129
- amount: IntegerLike;
130
- nonce: IntegerLike;
131
- signature: HexString;
132
- }
133
- interface WithdrawFromLockRequest {
134
- to_address: Address;
135
- lock_id: number;
136
- amount: IntegerLike;
137
- nonce: IntegerLike;
138
- signature: HexString;
139
- }
140
- interface BatchBalancesRequest {
141
- token_ids: Bytes32[];
142
- }
143
- interface HistoryRequest {
144
- offset?: number;
145
- limit?: number;
146
- }
147
- interface SiweLoginRequest {
148
- siwe_message: string;
149
- signature: HexString;
150
- }
151
- interface HostedAuthAuthorizeUrlRequest {
152
- client_id: string;
153
- redirect_uri: string;
154
- code_challenge: string;
155
- state: string;
156
- chain_id: number;
157
- response_mode?: HostedAuthResponseMode;
158
- code_challenge_method?: 'S256';
159
- }
160
- interface HostedAuthTokenExchangeRequest {
161
- grant_type?: 'authorization_code';
162
- code: string;
163
- code_verifier: string;
164
- client_id: string;
165
- redirect_uri: string;
166
- }
167
- interface JwtRefreshRequest {
168
- refresh_token: string;
169
- }
170
- interface JwtLogoutRequest {
171
- refresh_token?: string;
172
- revoke_all?: boolean;
173
- }
174
-
175
- interface MinDepositAmounts {
176
- native: string;
177
- erc20: string;
178
- }
179
- interface DepositAddressResponse {
180
- deposit_address: Address;
181
- chain_type: string;
182
- version: number;
183
- min_deposit: Record<string, MinDepositAmounts>;
184
- }
185
- interface DepositCheckResponse {
186
- status: 'credited' | 'pending' | 'error';
187
- deposit_id?: string;
188
- amount?: string;
189
- token_address?: Address;
190
- detail?: string;
191
- }
192
- interface TransactionSubmissionResponse {
193
- submission_id: string;
194
- status: string;
195
- detail?: string;
196
- }
197
- interface BalanceResponse {
198
- user_address: Address;
199
- token_id: Bytes32;
200
- balance: string;
201
- token_symbol: string;
202
- chain_id: string;
203
- }
204
- interface TokenBalance {
205
- token_id: Bytes32;
206
- balance: string;
207
- token_symbol: string;
208
- chain_id: string;
209
- }
210
- interface BatchBalancesResponse {
211
- user_address: Address;
212
- balances: TokenBalance[];
213
- }
214
- type HistoryKind = 'deposit' | 'withdraw' | 'createLock' | 'transferFromLockOut' | 'transferFromLockIn' | 'transferBalanceOut' | 'transferBalanceIn' | 'modifyLock' | 'unlockLock' | 'unknown';
215
- interface HistoryEntry {
216
- kind: HistoryKind;
217
- timestamp: number;
218
- token_id?: Bytes32 | null;
219
- amount?: string | null;
220
- counterparty?: Address | null;
221
- deposit_id?: Bytes32 | null;
222
- chain_id?: number | null;
223
- }
224
- interface HistoryResponse {
225
- history: HistoryEntry[];
226
- total: number;
227
- }
228
- interface TokenInfoResponse {
229
- token_id: Bytes32;
230
- token_type: number;
231
- token_type_name: string;
232
- data: string;
233
- chain_id: number;
234
- chain_name: string;
235
- token_address: Address;
236
- symbol: string;
237
- name: string;
238
- decimals: number;
239
- }
240
- interface TokenListResponse {
241
- tokens: TokenInfoResponse[];
242
- }
243
- interface LockInfo {
244
- lock_id: number;
245
- user_address: Address;
246
- service_address: Address;
247
- token_id: Bytes32;
248
- amount: string;
249
- expiry: number;
250
- is_expired: boolean;
251
- }
252
- interface LockedFundsResponse {
253
- user_address: Address;
254
- service_address?: Address;
255
- locks: LockInfo[];
256
- total_locked: string;
257
- }
258
- interface ExpiredLocksResponse {
259
- user_address: Address;
260
- expired_locks: LockInfo[];
261
- }
262
- interface TotalLockedBalanceResponse {
263
- user_address: Address;
264
- token_id: Bytes32;
265
- total_locked: string;
266
- }
267
- interface WithdrawalInfo {
268
- index: number;
269
- user_address: Address;
270
- to_address: Address;
271
- amount: string;
272
- block_number: number;
273
- token_id: Bytes32;
274
- resolved: boolean;
275
- tx_identifier: string;
276
- }
277
- interface PendingWithdrawalsResponse {
278
- user_address: Address;
279
- pending_withdrawals: WithdrawalInfo[];
280
- }
281
- type WithdrawalInfoResponse = WithdrawalInfo;
282
- interface TransferNonceResponse {
283
- user_address: Address;
284
- nonce: string;
285
- }
286
- interface WithdrawalNonceResponse {
287
- user_address: Address;
288
- nonce: string;
289
- }
290
- interface LockNonceResponse {
291
- user_address: Address;
292
- nonce: string;
293
- }
294
- interface ModifyLockNonceResponse {
295
- user_address: Address;
296
- nonce: string;
297
- }
298
- interface TransferLockedNonceResponse {
299
- service_address: Address;
300
- nonce: string;
301
- }
302
- interface SiweDomainResponse {
303
- domain: string;
304
- }
305
- interface SiweNonceResponse {
306
- address: Address;
307
- nonce: string;
308
- expires_in: number;
309
- }
310
- interface SiweLoginResponse {
311
- siwe_token: HexString;
312
- jwt_access_token: string;
313
- jwt_refresh_token: string;
314
- address: Address;
315
- jwt_expires_in: number;
316
- jwt_refresh_expires_in: number;
317
- }
318
- interface HostedAuthTokenExchangeResponse {
319
- access_token: string;
320
- id_token: string;
321
- refresh_token: string;
322
- token_type: string;
323
- expires_in: number;
324
- refresh_expires_in: number;
325
- address: Address;
326
- }
327
- interface JwtRefreshResponse {
328
- token: string;
329
- refresh_token: string;
330
- expires_in: number;
331
- refresh_expires_in: number;
332
- }
333
- interface JwtLogoutResponse {
334
- message: string;
335
- revoked_tokens: number;
336
- }
337
-
338
78
  declare const HOSTED_AUTH_CLOCK_SKEW_MS = 30000;
339
79
  type StorageLike = Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
340
80
  declare function createPkceVerifier(length?: number): string;
@@ -354,74 +94,6 @@ declare function isHostedAuthRefreshActive(session: HostedAuthSession, now?: num
354
94
 
355
95
  declare function buildSiweStatement(chainId: number): string;
356
96
 
357
- interface HttpClientConfig {
358
- baseUrl: string;
359
- timeout?: number;
360
- headers?: Record<string, string>;
361
- }
362
- declare class HttpClient {
363
- private readonly baseUrl;
364
- private readonly timeout;
365
- private readonly headers;
366
- constructor(config: HttpClientConfig);
367
- get<T>(path: string): Promise<T>;
368
- post<T>(path: string, body?: unknown): Promise<T>;
369
- getBaseUrl(): string;
370
- setHeader(name: string, value: string): void;
371
- removeHeader(name: string): void;
372
- getHeader(name: string): string | undefined;
373
- private request;
374
- }
375
-
376
- type PrivanaClientConfig = HttpClientConfig;
377
- declare class PrivanaClient {
378
- private readonly http;
379
- constructor(config: PrivanaClientConfig);
380
- getBaseUrl(): string;
381
- getDepositAddress(request?: DepositAddressRequest): Promise<DepositAddressResponse>;
382
- checkDeposit(request: DepositCheckRequest): Promise<DepositCheckResponse>;
383
- getDepositStatus(depositId: string): Promise<DepositCheckResponse>;
384
- getBalance(tokenId: Bytes32 | string): Promise<BalanceResponse>;
385
- getBatchBalances(request: BatchBalancesRequest): Promise<BatchBalancesResponse>;
386
- getHistory(request?: HistoryRequest): Promise<HistoryResponse>;
387
- listTokens(): Promise<TokenListResponse>;
388
- getTokenInfo(tokenId: Bytes32 | string): Promise<TokenInfoResponse>;
389
- lockFunds(request: LockFundsRequest): Promise<TransactionSubmissionResponse>;
390
- modifyLock(request: ModifyLockRequest): Promise<TransactionSubmissionResponse>;
391
- unlockFunds(request: UnlockFundsRequest): Promise<TransactionSubmissionResponse>;
392
- unlockAllExpired(request: UnlockAllExpiredRequest): Promise<TransactionSubmissionResponse>;
393
- getLockedFunds(serviceAddress?: Address | string): Promise<LockedFundsResponse>;
394
- getTotalLockedBalance(tokenId: Bytes32 | string): Promise<TotalLockedBalanceResponse>;
395
- getExpiredLocks(): Promise<ExpiredLocksResponse>;
396
- transferFunds(request: TransferFundsRequest): Promise<TransactionSubmissionResponse>;
397
- getTransferNonce(userAddress: Address | string): Promise<TransferNonceResponse>;
398
- getLockNonce(userAddress: Address | string): Promise<LockNonceResponse>;
399
- getModifyLockNonce(userAddress: Address | string): Promise<ModifyLockNonceResponse>;
400
- transferLockedFunds(request: TransferLockedFundsRequest): Promise<TransactionSubmissionResponse>;
401
- withdrawFromLock(request: WithdrawFromLockRequest): Promise<TransactionSubmissionResponse>;
402
- requestWithdrawal(request: WithdrawalRequest): Promise<TransactionSubmissionResponse>;
403
- getWithdrawalNonce(userAddress: Address | string): Promise<WithdrawalNonceResponse>;
404
- getTransferLockedNonce(serviceAddress: Address | string): Promise<TransferLockedNonceResponse>;
405
- getPendingWithdrawals(userAddress: Address | string): Promise<PendingWithdrawalsResponse>;
406
- getWithdrawalInfo(index: number): Promise<WithdrawalInfoResponse>;
407
- getSiweDomain(): Promise<SiweDomainResponse>;
408
- getSiweNonce(userAddress: Address | string): Promise<SiweNonceResponse>;
409
- loginWithSiwe(request: SiweLoginRequest): Promise<SiweLoginResponse>;
410
- getHostedAuthAuthorizeUrl(request: HostedAuthAuthorizeUrlRequest): string;
411
- exchangeHostedAuthCode(request: HostedAuthTokenExchangeRequest): Promise<HostedAuthTokenExchangeResponse>;
412
- refreshJwtSession(request: JwtRefreshRequest): Promise<JwtRefreshResponse>;
413
- logoutJwtSession(request?: JwtLogoutRequest): Promise<JwtLogoutResponse>;
414
- signOnRampUrl(request: SignOnRampUrlRequest): Promise<SignOnRampUrlResponse>;
415
- createOnRampIntent(request: CreateOnRampIntentRequest): Promise<CreateOnRampIntentResponse>;
416
- updateOnRamp(transactionId: string, request: UpdateOnRampRequest): Promise<UpdateOnRampResponse>;
417
- getPendingOnRamps(): Promise<PendingOnRampsResponse>;
418
- setPrivateReadToken(token: string): void;
419
- getPrivateReadToken(): string | undefined;
420
- clearPrivateReadToken(): void;
421
- setBearerToken(token: string): void;
422
- clearBearerToken(): void;
423
- }
424
-
425
97
  declare class AccountingApiError extends Error {
426
98
  readonly statusCode: number;
427
99
  readonly detail?: string | undefined;
@@ -785,7 +457,18 @@ declare function useBatchBalances(options: UseBatchBalancesOptions): UseBatchBal
785
457
  interface UseDepositOptions {
786
458
  onDepositAddressReceived?: (response: DepositAddressResponse) => void;
787
459
  onDepositSuccess?: (txHash: string) => void;
788
- onCredited?: (txHash: string, response: DepositCheckResponse) => void;
460
+ /** `lockPending` is true when a pre-signed lock is being submitted after
461
+ * this credit — `onLockSubmitted` or `onLockFailed` will follow. */
462
+ onCredited?: (txHash: string, response: DepositCheckResponse, lockPending?: boolean) => void;
463
+ /** Fired when the pre-signed post-deposit lock is accepted by the API. */
464
+ onLockSubmitted?: (response: TransactionSubmissionResponse) => void;
465
+ /**
466
+ * Fired when the deposit credited but the pre-signed lock could not be
467
+ * submitted (expired, short credit, stale nonce). The funds sit in the
468
+ * user's available balance — re-prompt a fresh lock signature at the
469
+ * credited amount. Falls back to `onError` when not provided.
470
+ */
471
+ onLockFailed?: (error: PostDepositLockError) => void;
789
472
  /** Called when deposit check polling times out - deposit may still be processing */
790
473
  onCheckTimeout?: (txHash: string) => void;
791
474
  onError?: (error: Error) => void;
@@ -799,6 +482,11 @@ interface UseDepositOptions {
799
482
  interface DepositParams {
800
483
  tokenId: Bytes32;
801
484
  amount: bigint;
485
+ /**
486
+ * Pre-sign a `Lock` for the deposited amount (capped by `maxAmount`) before
487
+ * the transfer; the SDK submits it once the deposit credits.
488
+ */
489
+ postDepositLock?: PostDepositLockConfig;
802
490
  }
803
491
  interface UseDepositResult {
804
492
  depositAddress: DepositAddressResponse | null;
@@ -854,6 +542,8 @@ interface VerificationContext {
854
542
  chainId: number;
855
543
  /** Transferred amount in base units (matches the deposit's token decimals). */
856
544
  amount: bigint;
545
+ /** Log index of the exact Transfer event within the tx (default: 0). */
546
+ logIndex?: number;
857
547
  }
858
548
  interface UseDepositVerificationOptions {
859
549
  /** Fired when the deposit is credited inside the Privana accounting module. */
@@ -1037,6 +727,30 @@ interface UseExpiredLocksResult {
1037
727
  }
1038
728
  declare function useExpiredLocks(options?: UseExpiredLocksOptions): UseExpiredLocksResult;
1039
729
 
730
+ interface UsePendingDepositsOptions {
731
+ /** Source chain to scan. Query is disabled while undefined. */
732
+ chainId?: number;
733
+ enabled?: boolean;
734
+ /** Auto-poll cadence in ms, or false for manual refetch only (default: 30s, the server scan-cache TTL). */
735
+ refetchInterval?: number | false;
736
+ /** Narrow the scan to one registered ERC20. */
737
+ tokenAddress?: Address;
738
+ /** Scan window in blocks (server default ≈ 1h, clamped ≈ 24h). */
739
+ lookbackBlocks?: number;
740
+ }
741
+ interface UsePendingDepositsResult {
742
+ pending: PendingDeposit[];
743
+ scannedToBlock: number | undefined;
744
+ isFetching: boolean;
745
+ isError: boolean;
746
+ error: Error | null;
747
+ isRateLimited: boolean;
748
+ /** Discovery is not configured for this chain server-side (503) — a deployment fault, not transient. */
749
+ isUnavailable: boolean;
750
+ refetch: () => Promise<PendingDepositsResponse | undefined>;
751
+ }
752
+ declare function usePendingDeposits(options?: UsePendingDepositsOptions): UsePendingDepositsResult;
753
+
1040
754
  interface UsePendingWithdrawalsOptions {
1041
755
  enabled?: boolean;
1042
756
  }
@@ -1172,7 +886,10 @@ interface DepositMethodHandlers {
1172
886
  tokenId: string;
1173
887
  amount: string;
1174
888
  }) => void;
889
+ /** With an allowance this fires only after the pre-signed lock is accepted. */
1175
890
  onDepositSuccess?: () => void;
891
+ /** The deposit credited but the pre-signed lock failed — re-prompt. */
892
+ onLockFailed?: (error: PostDepositLockError) => void;
1176
893
  }
1177
894
  interface DepositModalProps extends DepositMethodHandlers {
1178
895
  open: boolean;
@@ -1202,10 +919,10 @@ interface WalletSession {
1202
919
  }
1203
920
  interface WalletModalHandlers extends DepositMethodHandlers {
1204
921
  session?: WalletSession;
1205
- onPlay?: (args: {
922
+ onFundSession?: (args: {
1206
923
  tokenId: string;
1207
924
  amount: string;
1208
- }) => void;
925
+ }) => unknown;
1209
926
  onEndSession?: () => Promise<void>;
1210
927
  }
1211
928
  interface WalletModalProps extends WalletModalHandlers {
@@ -1229,4 +946,4 @@ interface PrivanaIconProps {
1229
946
  }
1230
947
  declare function PrivanaIcon({ className, size }: PrivanaIconProps): react_jsx_runtime.JSX.Element;
1231
948
 
1232
- export { AccountingApiError, Address, type Allowance, type AllowanceTerm, type BalanceResponse, type BatchBalancesRequest, type BatchBalancesResponse, Button, Bytes32, type ChainConfig, CreateOnRampIntentRequest, CreateOnRampIntentResponse, type DepositAddressRequest, type DepositAddressResponse, type DepositCheckRequest, type DepositCheckResponse, DepositInlineModal, type DepositInlineModalProps, type DepositMethodHandlers, DepositModal, type DepositModalProps, type DepositParams, type DepositSource, type EIP712Domain, type ExpiredLocksResponse, HOSTED_AUTH_CLOCK_SKEW_MS, HexString, type HistoryEntry, type HistoryKind, type HistoryRequest, type HistoryResponse, type HostedAuthAuthorizeUrlRequest, type HostedAuthCallback, type HostedAuthCallbackError, type HostedAuthCallbackSuccess, type HostedAuthConfig, HostedAuthError, type HostedAuthPendingTransaction, HostedAuthRequiredError, HostedAuthResponseMode, type HostedAuthSession, HostedAuthStateMismatchError, type HostedAuthTokenExchangeRequest, type HostedAuthTokenExchangeResponse, HttpClient, type HttpClientConfig, IntegerLike, type JwtLogoutRequest, type JwtLogoutResponse, type JwtRefreshRequest, type JwtRefreshResponse, LOCK_TYPES, type LockFundsParams, type LockFundsRequest, type LockInfo, type LockMessage, type LockNonceResponse, type LockedFundsResponse, MODIFY_LOCK_TYPES, type MinDepositAmounts, type ModifyLockMessage, type ModifyLockNonceResponse, type ModifyLockParams, type ModifyLockRequest, NetworkConfig, NetworkError, PendingOnRampsResponse, type PendingWithdrawalsResponse, PrivanaButton, type PrivanaButtonProps, PrivanaClient, type PrivanaClientConfig, type PrivanaContextValue, PrivanaIcon, PrivanaInlineModal, PrivanaModal, PrivanaProvider, type PrivanaProviderProps, SUPPORTED_CHAINS, type SignLockParams, type SignModifyLockParams, SignOnRampUrlRequest, SignOnRampUrlResponse, type SignTransferLockedParams, type SignTransferParams, type SignWithdrawFromLockParams, type SignWithdrawParams, type SiweAuthConfig, type SiweAuthContextValue, SiweAuthProvider, type SiweAuthProviderProps, type SiweAuthSession, type SiweAuthTokens, type SiweDomainResponse, type SiweLoginRequest, type SiweLoginResponse, type SiweNonceResponse, Skeleton, TRANSFER_LOCKED_TYPES, TRANSFER_TYPES, type TokenBalance, TokenConfig, type TokenInfoResponse, type TokenListResponse, type TokensStatus, type TotalLockedBalanceResponse, type TransactionSubmissionResponse, type TransferFundsRequest, type TransferLockedFundsRequest, type TransferLockedMessage, type TransferLockedNonceResponse, type TransferLockedParams, type TransferMessage, type TransferNonceResponse, type TransferParams, type UnlockAllExpiredRequest, type UnlockFundsParams, type UnlockFundsRequest, UpdateOnRampRequest, UpdateOnRampResponse, type UseBalanceOptions, type UseBalanceResult, type UseBatchBalancesOptions, type UseBatchBalancesResult, type UseDepositAddressOptions, type UseDepositAddressResult, type UseDepositOptions, type UseDepositResult, type UseDepositVerificationOptions, type UseDepositVerificationResult, type UseExpiredLocksOptions, type UseExpiredLocksResult, type UseHistoryOptions, type UseHistoryResult, type UseHostedRedirectAuthResult, type UseLockFundsOptions, type UseLockFundsResult, type UseLockedFundsOptions, type UseLockedFundsResult, type UseModifyLockOptions, type UseModifyLockResult, type UsePendingWithdrawalsOptions, type UsePendingWithdrawalsResult, type UseTokenInfoOptions, type UseTokenInfoResult, type UseTokenListOptions, type UseTokenListResult, type UseTotalLockedBalanceOptions, type UseTotalLockedBalanceResult, type UseTransferOptions, type UseTransferResult, type UseUnlockFundsOptions, type UseUnlockFundsResult, type UseWithdrawOptions, type UseWithdrawResult, ValidationError, type VerificationContext, WITHDRAW_FROM_LOCK_TYPES, WITHDRAW_TYPES, WalletInlineModal, type WalletInlineModalProps, WalletModal, type WalletModalHandlers, type WalletModalProps, type WalletSession, type WithdrawFromLockMessage, type WithdrawFromLockRequest, WithdrawInlineModal, type WithdrawInlineModalProps, type WithdrawMessage, WithdrawModal, type WithdrawModalProps, type WithdrawParams, type WithdrawStep, type WithdrawalInfo, type WithdrawalInfoResponse, type WithdrawalNonceResponse, type WithdrawalRequest, applyRefreshResponse, buildHostedAuthSession, buildSiweStatement, buttonVariants, clearHostedAuthPendingTransaction, createDomain, createHostedAuthPendingStorageKey, createHostedAuthState, createHostedAuthStorageKey, createLockExpiry, createPkceChallenge, createPkceVerifier, getChainById, getChainIcon, getExplorerAddressUrl, getExplorerLabel, getTokenIcon, isHostedAuthRefreshActive, isHostedAuthSessionActive, parseHostedAuthCallback, persistHostedAuthPendingTransaction, readHostedAuthPendingTransaction, readStoredHostedAuthSession, signLockMessage, signModifyLockMessage, signTransferLockedMessage, signTransferMessage, signWithdrawFromLockMessage, signWithdrawMessage, stripHostedAuthCallbackParams, syncHostedAuthSessionToClient, useBalance, useBatchBalances, useDeposit, useDepositAddress, useDepositVerification, useExpiredLocks, useHistory, useHostedRedirectAuth, useLockFunds, useLockedFunds, useModifyLock, usePendingWithdrawals, usePrivanaClient, usePrivanaContext, useSafeAccount, useSafePrivanaContext, useSiweAuth, useTokenInfo, useTokenList, useTotalLockedBalance, useTransfer, useUnlockFunds, useWithdraw };
949
+ export { AccountingApiError, Address, type Allowance, type AllowanceTerm, Button, Bytes32, type ChainConfig, DepositAddressResponse, DepositCheckResponse, DepositInlineModal, type DepositInlineModalProps, type DepositMethodHandlers, DepositModal, type DepositModalProps, type DepositParams, type DepositSource, type EIP712Domain, HOSTED_AUTH_CLOCK_SKEW_MS, HistoryEntry, type HostedAuthCallback, type HostedAuthCallbackError, type HostedAuthCallbackSuccess, type HostedAuthConfig, HostedAuthError, type HostedAuthPendingTransaction, HostedAuthRequiredError, type HostedAuthSession, HostedAuthStateMismatchError, HostedAuthTokenExchangeResponse, JwtRefreshResponse, LOCK_TYPES, type LockFundsParams, LockInfo, type LockMessage, MODIFY_LOCK_TYPES, type ModifyLockMessage, type ModifyLockParams, NetworkConfig, NetworkError, PendingDeposit, PendingDepositsResponse, PostDepositLockConfig, PostDepositLockError, PrivanaButton, type PrivanaButtonProps, PrivanaClient, type PrivanaContextValue, PrivanaIcon, PrivanaInlineModal, PrivanaModal, PrivanaProvider, type PrivanaProviderProps, SUPPORTED_CHAINS, type SignLockParams, type SignModifyLockParams, type SignTransferLockedParams, type SignTransferParams, type SignWithdrawFromLockParams, type SignWithdrawParams, type SiweAuthConfig, type SiweAuthContextValue, SiweAuthProvider, type SiweAuthProviderProps, type SiweAuthSession, type SiweAuthTokens, SiweLoginResponse, Skeleton, TRANSFER_LOCKED_TYPES, TRANSFER_TYPES, TokenBalance, TokenConfig, TokenInfoResponse, type TokensStatus, TransactionSubmissionResponse, type TransferLockedMessage, type TransferLockedParams, type TransferMessage, type TransferParams, type UnlockFundsParams, type UseBalanceOptions, type UseBalanceResult, type UseBatchBalancesOptions, type UseBatchBalancesResult, type UseDepositAddressOptions, type UseDepositAddressResult, type UseDepositOptions, type UseDepositResult, type UseDepositVerificationOptions, type UseDepositVerificationResult, type UseExpiredLocksOptions, type UseExpiredLocksResult, type UseHistoryOptions, type UseHistoryResult, type UseHostedRedirectAuthResult, type UseLockFundsOptions, type UseLockFundsResult, type UseLockedFundsOptions, type UseLockedFundsResult, type UseModifyLockOptions, type UseModifyLockResult, type UsePendingDepositsOptions, type UsePendingDepositsResult, type UsePendingWithdrawalsOptions, type UsePendingWithdrawalsResult, type UseTokenInfoOptions, type UseTokenInfoResult, type UseTokenListOptions, type UseTokenListResult, type UseTotalLockedBalanceOptions, type UseTotalLockedBalanceResult, type UseTransferOptions, type UseTransferResult, type UseUnlockFundsOptions, type UseUnlockFundsResult, type UseWithdrawOptions, type UseWithdrawResult, ValidationError, type VerificationContext, WITHDRAW_FROM_LOCK_TYPES, WITHDRAW_TYPES, WalletInlineModal, type WalletInlineModalProps, WalletModal, type WalletModalHandlers, type WalletModalProps, type WalletSession, type WithdrawFromLockMessage, WithdrawInlineModal, type WithdrawInlineModalProps, type WithdrawMessage, WithdrawModal, type WithdrawModalProps, type WithdrawParams, type WithdrawStep, WithdrawalInfo, applyRefreshResponse, buildHostedAuthSession, buildSiweStatement, buttonVariants, clearHostedAuthPendingTransaction, createDomain, createHostedAuthPendingStorageKey, createHostedAuthState, createHostedAuthStorageKey, createLockExpiry, createPkceChallenge, createPkceVerifier, getChainById, getChainIcon, getExplorerAddressUrl, getExplorerLabel, getTokenIcon, isHostedAuthRefreshActive, isHostedAuthSessionActive, parseHostedAuthCallback, persistHostedAuthPendingTransaction, readHostedAuthPendingTransaction, readStoredHostedAuthSession, signLockMessage, signModifyLockMessage, signTransferLockedMessage, signTransferMessage, signWithdrawFromLockMessage, signWithdrawMessage, stripHostedAuthCallbackParams, syncHostedAuthSessionToClient, useBalance, useBatchBalances, useDeposit, useDepositAddress, useDepositVerification, useExpiredLocks, useHistory, useHostedRedirectAuth, useLockFunds, useLockedFunds, useModifyLock, usePendingDeposits, usePendingWithdrawals, usePrivanaClient, usePrivanaContext, useSafeAccount, useSafePrivanaContext, useSiweAuth, useTokenInfo, useTokenList, useTotalLockedBalance, useTransfer, useUnlockFunds, useWithdraw };