@rhinestone/1auth 0.6.5 → 0.6.7

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.mts CHANGED
@@ -1,14 +1,64 @@
1
- import { O as OneAuthClient, I as IntentSigner, W as WebAuthnSignature, a as IntentCall, S as SendIntentResult } from './client-hZxAAhcl.mjs';
2
- export { A as AuthResult, j as AuthenticateOptions, k as AuthenticateResult, B as BalanceRequirement, a0 as BatchIntentItem, a3 as BatchIntentItemResult, Y as CheckConsentOptions, Z as CheckConsentResult, F as CloseOnStatus, i as ConnectResult, X as ConsentData, V as ConsentField, C as CreateSigningRequestResponse, D as DeveloperSignedIntent, q as EIP712Domain, s as EIP712TypeField, r as EIP712Types, E as EmbedOptions, H as ExecuteIntentResponse, K as IntentHistoryItem, J as IntentHistoryOptions, L as IntentHistoryResult, x as IntentQuote, y as IntentStatus, v as IntentTokenRequest, z as OrchestratorStatus, h as PasskeyCredential, P as PasskeyProviderConfig, a5 as PrepareBatchIntentResponse, G as PrepareIntentResponse, a4 as PreparedBatchIntent, _ as RequestConsentOptions, $ as RequestConsentResult, a1 as SendBatchIntentOptions, a2 as SendBatchIntentResult, w as SendIntentOptions, M as SendSwapOptions, N as SendSwapResult, m as SignMessageOptions, n as SignMessageResult, o as SignTypedDataOptions, p as SignTypedDataResult, e as SigningError, f as SigningErrorCode, b as SigningRequestOptions, g as SigningRequestStatus, c as SigningResult, l as SigningResultBase, d as SigningSuccess, Q as SwapQuote, R as ThemeConfig, T as TransactionAction, u as TransactionDetails, t as TransactionFees, U as UserPasskeysResponse } from './client-hZxAAhcl.mjs';
3
- export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-B9GKBMC5.mjs';
1
+ import { O as OneAuthClient, W as WebAuthnSignature, I as IntentCall, S as SendIntentResult } from './client-BrMrhetG.mjs';
2
+ export { A as AuthResult, i as AuthenticateOptions, j as AuthenticateResult, B as BalanceRequirement, _ as BatchIntentItem, a1 as BatchIntentItemResult, V as CheckConsentOptions, X as CheckConsentResult, z as CloseOnStatus, h as ConnectResult, R as ConsentData, Q as ConsentField, C as CreateSigningRequestResponse, p as EIP712Domain, r as EIP712TypeField, q as EIP712Types, E as EmbedOptions, F as ExecuteIntentResponse, H as IntentHistoryItem, G as IntentHistoryOptions, J as IntentHistoryResult, w as IntentQuote, x as IntentStatus, u as IntentTokenRequest, y as OrchestratorStatus, g as PasskeyCredential, P as PasskeyProviderConfig, a3 as PrepareBatchIntentResponse, D as PrepareIntentResponse, a2 as PreparedBatchIntent, Y as RequestConsentOptions, Z as RequestConsentResult, $ as SendBatchIntentOptions, a0 as SendBatchIntentResult, v as SendIntentOptions, K as SendSwapOptions, L as SendSwapResult, l as SignMessageOptions, m as SignMessageResult, n as SignTypedDataOptions, o as SignTypedDataResult, d as SigningError, e as SigningErrorCode, a as SigningRequestOptions, f as SigningRequestStatus, b as SigningResult, k as SigningResultBase, c as SigningSuccess, M as SwapQuote, N as ThemeConfig, T as TransactionAction, t as TransactionDetails, s as TransactionFees, U as UserPasskeysResponse } from './client-BrMrhetG.mjs';
3
+ export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-CDl9wYEc.mjs';
4
4
  import { Address, LocalAccount, Chain, Transport, Hex, WalletClient, Hash } from 'viem';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as React from 'react';
7
7
  export { getTokenAddress, getTokenDecimals } from '@rhinestone/sdk';
8
8
 
9
+ /**
10
+ * viem LocalAccount adapter for 1auth passkey-controlled smart accounts.
11
+ *
12
+ * Bridges viem's `LocalAccount` interface to the 1auth passkey service so that
13
+ * any viem-based library (e.g. permissionless, viem itself) can use a passkey
14
+ * account without handling WebAuthn directly. All cryptographic operations are
15
+ * delegated to the passkey service via `OneAuthClient`.
16
+ *
17
+ * @module
18
+ */
19
+
9
20
  type PasskeyAccount = LocalAccount<"1auth"> & {
10
21
  username: string;
11
22
  };
23
+ /**
24
+ * Creates a viem `LocalAccount` that delegates signing to the 1auth passkey service.
25
+ *
26
+ * The returned account satisfies the `LocalAccount` interface expected by viem's
27
+ * `createWalletClient` and similar APIs. `signTransaction` is explicitly unsupported
28
+ * because 1auth uses the intent/bundler model instead of raw signed transactions —
29
+ * callers should use `sendIntent` (via `eth_sendTransaction` on the provider) instead.
30
+ *
31
+ * All signing operations encode the resulting WebAuthn signature with
32
+ * `encodeWebAuthnSignature` so the output is directly usable with ERC-1271
33
+ * on-chain verification.
34
+ *
35
+ * @param client - A configured `OneAuthClient` instance
36
+ * @param params.address - The EVM address of the user's smart account
37
+ * @param params.username - The 1auth username associated with the account; included
38
+ * in signing requests so the passkey service can look up the correct credential
39
+ * @returns A `PasskeyAccount` extending `LocalAccount<"1auth">` with a `username` field
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * import { createWalletClient, http } from "viem";
44
+ * import { base } from "viem/chains";
45
+ * import { OneAuthClient, createPasskeyAccount } from "@rhinestone/1auth";
46
+ *
47
+ * const client = new OneAuthClient({ clientId: "my-app" });
48
+ * const account = createPasskeyAccount(client, {
49
+ * address: "0xYourSmartAccountAddress",
50
+ * username: "alice",
51
+ * });
52
+ *
53
+ * const walletClient = createWalletClient({
54
+ * account,
55
+ * chain: base,
56
+ * transport: http(),
57
+ * });
58
+ *
59
+ * const signature = await walletClient.signMessage({ message: "Hello" });
60
+ * ```
61
+ */
12
62
  declare function createPasskeyAccount(client: OneAuthClient, params: {
13
63
  address: Address;
14
64
  username: string;
@@ -20,16 +70,14 @@ declare function createPasskeyAccount(client: OneAuthClient, params: {
20
70
  interface PasskeyWalletClientConfig {
21
71
  /** User's smart account address */
22
72
  accountAddress: Address;
23
- /** Username for the passkey provider */
24
- username: string;
73
+ /** Username for the passkey provider (defaults to accountAddress) */
74
+ username?: string;
25
75
  /** Base URL of the auth API (defaults to https://passkey.1auth.box) */
26
76
  providerUrl?: string;
27
77
  /** Client identifier for this application */
28
78
  clientId: string;
29
79
  /** Optional URL of the dialog UI */
30
80
  dialogUrl?: string;
31
- /** Optional signer for developer-protected intents */
32
- signIntent?: IntentSigner;
33
81
  /** Chain configuration */
34
82
  chain: Chain;
35
83
  /** Transport (e.g., http(), webSocket()) */
@@ -69,6 +117,10 @@ interface SendCallsParams {
69
117
  token: string;
70
118
  amount: bigint;
71
119
  }[];
120
+ /** Constrain which tokens the orchestrator can use as input/payment */
121
+ sourceAssets?: string[];
122
+ /** Which chain to look for source assets on */
123
+ sourceChainId?: number;
72
124
  }
73
125
 
74
126
  /**
@@ -86,6 +138,18 @@ declare function encodeWebAuthnSignature(sig: WebAuthnSignature): Hex;
86
138
  */
87
139
  declare function hashCalls(calls: TransactionCall[]): Hex;
88
140
 
141
+ /**
142
+ * @file viem WalletClient factory backed by passkey signing.
143
+ *
144
+ * {@link createPasskeyWalletClient} returns a standard viem `WalletClient`
145
+ * augmented with a `sendCalls` method for batched ERC-4337 intents. All
146
+ * signing operations open the 1auth passkey modal so that private keys never
147
+ * leave the secure enclave on the user's device.
148
+ *
149
+ * The factory is framework-agnostic — it works in any environment that can
150
+ * run viem (React, Vue, plain Node.js scripts, etc.).
151
+ */
152
+
89
153
  /**
90
154
  * Extended WalletClient with passkey signing and batch transaction support
91
155
  */
@@ -191,15 +255,56 @@ interface BatchQueueProviderProps {
191
255
  */
192
256
  declare function BatchQueueProvider({ client, username, children, }: BatchQueueProviderProps): react_jsx_runtime.JSX.Element;
193
257
 
258
+ /**
259
+ * @file Floating UI widget for the 1auth batch transaction queue.
260
+ *
261
+ * Renders a fixed-position card anchored to the bottom-right of the viewport
262
+ * that shows how many calls are queued and on which chain. The widget is
263
+ * invisible while the queue is empty and mounts itself into the React tree
264
+ * wherever `BatchQueueProvider` wraps the application.
265
+ *
266
+ * CSS keyframe animations are injected into `document.head` once on mount
267
+ * via {@link injectStyles} so that no stylesheet import is required from the
268
+ * consumer's bundler.
269
+ */
194
270
  interface BatchQueueWidgetProps {
195
271
  /** Callback when "Sign All" is clicked - should provide username */
196
272
  onSignAll: () => void;
197
273
  }
198
274
  /**
199
- * Floating widget showing the batch queue
275
+ * Floating widget that displays the current batch transaction queue.
276
+ *
277
+ * Renders nothing while the queue is empty. When calls are present it shows a
278
+ * fixed card in the bottom-right corner of the viewport with:
279
+ * - A count badge and optional chain name in the header.
280
+ * - A "Sign All" button that invokes `onSignAll` to begin the signing ceremony.
281
+ * - An expandable list of queued calls with per-item remove buttons revealed
282
+ * on hover and a "Clear batch" footer to discard all pending calls at once.
283
+ *
284
+ * A brief scale animation (`batch-bounce-in`) plays each time a new call is
285
+ * added to the queue to draw the user's attention without interrupting flow.
286
+ *
287
+ * Must be rendered inside a `BatchQueueProvider`.
288
+ *
289
+ * @param props.onSignAll - Called when the user clicks "Sign All". The
290
+ * implementor is responsible for resolving the username and passing it to
291
+ * `useBatchQueue().signAll(username)`.
200
292
  */
201
293
  declare function BatchQueueWidget({ onSignAll }: BatchQueueWidgetProps): react_jsx_runtime.JSX.Element | null;
202
294
 
295
+ /**
296
+ * @file Chain and token registry for the 1auth SDK.
297
+ *
298
+ * Wraps `@rhinestone/sdk` chain/token data and combines it with viem's chain
299
+ * definitions to expose a filtered, testnet-aware registry. Consumers can
300
+ * look up supported chains and tokens, resolve token addresses by symbol, and
301
+ * retrieve chain metadata such as explorer URLs and default RPC endpoints.
302
+ *
303
+ * Testnet inclusion is controlled by the `includeTestnets` option on each
304
+ * function or, as a project-wide default, by the environment variables
305
+ * `NEXT_PUBLIC_ORCHESTRATOR_USE_TESTNETS` or `ORCHESTRATOR_USE_TESTNETS`.
306
+ */
307
+
203
308
  type TokenConfig = {
204
309
  symbol: string;
205
310
  address: Address;
@@ -273,4 +378,4 @@ declare function hashMessage(message: string): `0x${string}`;
273
378
  */
274
379
  declare function verifyMessageHash(message: string, signedHash: string | undefined): boolean;
275
380
 
276
- export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, ETHEREUM_MESSAGE_PREFIX, IntentCall, IntentSigner, OneAuthClient, type PasskeyAccount, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };
381
+ export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, ETHEREUM_MESSAGE_PREFIX, IntentCall, OneAuthClient, type PasskeyAccount, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,64 @@
1
- import { O as OneAuthClient, I as IntentSigner, W as WebAuthnSignature, a as IntentCall, S as SendIntentResult } from './client-hZxAAhcl.js';
2
- export { A as AuthResult, j as AuthenticateOptions, k as AuthenticateResult, B as BalanceRequirement, a0 as BatchIntentItem, a3 as BatchIntentItemResult, Y as CheckConsentOptions, Z as CheckConsentResult, F as CloseOnStatus, i as ConnectResult, X as ConsentData, V as ConsentField, C as CreateSigningRequestResponse, D as DeveloperSignedIntent, q as EIP712Domain, s as EIP712TypeField, r as EIP712Types, E as EmbedOptions, H as ExecuteIntentResponse, K as IntentHistoryItem, J as IntentHistoryOptions, L as IntentHistoryResult, x as IntentQuote, y as IntentStatus, v as IntentTokenRequest, z as OrchestratorStatus, h as PasskeyCredential, P as PasskeyProviderConfig, a5 as PrepareBatchIntentResponse, G as PrepareIntentResponse, a4 as PreparedBatchIntent, _ as RequestConsentOptions, $ as RequestConsentResult, a1 as SendBatchIntentOptions, a2 as SendBatchIntentResult, w as SendIntentOptions, M as SendSwapOptions, N as SendSwapResult, m as SignMessageOptions, n as SignMessageResult, o as SignTypedDataOptions, p as SignTypedDataResult, e as SigningError, f as SigningErrorCode, b as SigningRequestOptions, g as SigningRequestStatus, c as SigningResult, l as SigningResultBase, d as SigningSuccess, Q as SwapQuote, R as ThemeConfig, T as TransactionAction, u as TransactionDetails, t as TransactionFees, U as UserPasskeysResponse } from './client-hZxAAhcl.js';
3
- export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-A89sCgGr.js';
1
+ import { O as OneAuthClient, W as WebAuthnSignature, I as IntentCall, S as SendIntentResult } from './client-BrMrhetG.js';
2
+ export { A as AuthResult, i as AuthenticateOptions, j as AuthenticateResult, B as BalanceRequirement, _ as BatchIntentItem, a1 as BatchIntentItemResult, V as CheckConsentOptions, X as CheckConsentResult, z as CloseOnStatus, h as ConnectResult, R as ConsentData, Q as ConsentField, C as CreateSigningRequestResponse, p as EIP712Domain, r as EIP712TypeField, q as EIP712Types, E as EmbedOptions, F as ExecuteIntentResponse, H as IntentHistoryItem, G as IntentHistoryOptions, J as IntentHistoryResult, w as IntentQuote, x as IntentStatus, u as IntentTokenRequest, y as OrchestratorStatus, g as PasskeyCredential, P as PasskeyProviderConfig, a3 as PrepareBatchIntentResponse, D as PrepareIntentResponse, a2 as PreparedBatchIntent, Y as RequestConsentOptions, Z as RequestConsentResult, $ as SendBatchIntentOptions, a0 as SendBatchIntentResult, v as SendIntentOptions, K as SendSwapOptions, L as SendSwapResult, l as SignMessageOptions, m as SignMessageResult, n as SignTypedDataOptions, o as SignTypedDataResult, d as SigningError, e as SigningErrorCode, a as SigningRequestOptions, f as SigningRequestStatus, b as SigningResult, k as SigningResultBase, c as SigningSuccess, M as SwapQuote, N as ThemeConfig, T as TransactionAction, t as TransactionDetails, s as TransactionFees, U as UserPasskeysResponse } from './client-BrMrhetG.js';
3
+ export { O as OneAuthProvider, a as OneAuthProviderOptions, c as createOneAuthProvider } from './provider-Dgv533YQ.js';
4
4
  import { Address, LocalAccount, Chain, Transport, Hex, WalletClient, Hash } from 'viem';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as React from 'react';
7
7
  export { getTokenAddress, getTokenDecimals } from '@rhinestone/sdk';
8
8
 
9
+ /**
10
+ * viem LocalAccount adapter for 1auth passkey-controlled smart accounts.
11
+ *
12
+ * Bridges viem's `LocalAccount` interface to the 1auth passkey service so that
13
+ * any viem-based library (e.g. permissionless, viem itself) can use a passkey
14
+ * account without handling WebAuthn directly. All cryptographic operations are
15
+ * delegated to the passkey service via `OneAuthClient`.
16
+ *
17
+ * @module
18
+ */
19
+
9
20
  type PasskeyAccount = LocalAccount<"1auth"> & {
10
21
  username: string;
11
22
  };
23
+ /**
24
+ * Creates a viem `LocalAccount` that delegates signing to the 1auth passkey service.
25
+ *
26
+ * The returned account satisfies the `LocalAccount` interface expected by viem's
27
+ * `createWalletClient` and similar APIs. `signTransaction` is explicitly unsupported
28
+ * because 1auth uses the intent/bundler model instead of raw signed transactions —
29
+ * callers should use `sendIntent` (via `eth_sendTransaction` on the provider) instead.
30
+ *
31
+ * All signing operations encode the resulting WebAuthn signature with
32
+ * `encodeWebAuthnSignature` so the output is directly usable with ERC-1271
33
+ * on-chain verification.
34
+ *
35
+ * @param client - A configured `OneAuthClient` instance
36
+ * @param params.address - The EVM address of the user's smart account
37
+ * @param params.username - The 1auth username associated with the account; included
38
+ * in signing requests so the passkey service can look up the correct credential
39
+ * @returns A `PasskeyAccount` extending `LocalAccount<"1auth">` with a `username` field
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * import { createWalletClient, http } from "viem";
44
+ * import { base } from "viem/chains";
45
+ * import { OneAuthClient, createPasskeyAccount } from "@rhinestone/1auth";
46
+ *
47
+ * const client = new OneAuthClient({ clientId: "my-app" });
48
+ * const account = createPasskeyAccount(client, {
49
+ * address: "0xYourSmartAccountAddress",
50
+ * username: "alice",
51
+ * });
52
+ *
53
+ * const walletClient = createWalletClient({
54
+ * account,
55
+ * chain: base,
56
+ * transport: http(),
57
+ * });
58
+ *
59
+ * const signature = await walletClient.signMessage({ message: "Hello" });
60
+ * ```
61
+ */
12
62
  declare function createPasskeyAccount(client: OneAuthClient, params: {
13
63
  address: Address;
14
64
  username: string;
@@ -20,16 +70,14 @@ declare function createPasskeyAccount(client: OneAuthClient, params: {
20
70
  interface PasskeyWalletClientConfig {
21
71
  /** User's smart account address */
22
72
  accountAddress: Address;
23
- /** Username for the passkey provider */
24
- username: string;
73
+ /** Username for the passkey provider (defaults to accountAddress) */
74
+ username?: string;
25
75
  /** Base URL of the auth API (defaults to https://passkey.1auth.box) */
26
76
  providerUrl?: string;
27
77
  /** Client identifier for this application */
28
78
  clientId: string;
29
79
  /** Optional URL of the dialog UI */
30
80
  dialogUrl?: string;
31
- /** Optional signer for developer-protected intents */
32
- signIntent?: IntentSigner;
33
81
  /** Chain configuration */
34
82
  chain: Chain;
35
83
  /** Transport (e.g., http(), webSocket()) */
@@ -69,6 +117,10 @@ interface SendCallsParams {
69
117
  token: string;
70
118
  amount: bigint;
71
119
  }[];
120
+ /** Constrain which tokens the orchestrator can use as input/payment */
121
+ sourceAssets?: string[];
122
+ /** Which chain to look for source assets on */
123
+ sourceChainId?: number;
72
124
  }
73
125
 
74
126
  /**
@@ -86,6 +138,18 @@ declare function encodeWebAuthnSignature(sig: WebAuthnSignature): Hex;
86
138
  */
87
139
  declare function hashCalls(calls: TransactionCall[]): Hex;
88
140
 
141
+ /**
142
+ * @file viem WalletClient factory backed by passkey signing.
143
+ *
144
+ * {@link createPasskeyWalletClient} returns a standard viem `WalletClient`
145
+ * augmented with a `sendCalls` method for batched ERC-4337 intents. All
146
+ * signing operations open the 1auth passkey modal so that private keys never
147
+ * leave the secure enclave on the user's device.
148
+ *
149
+ * The factory is framework-agnostic — it works in any environment that can
150
+ * run viem (React, Vue, plain Node.js scripts, etc.).
151
+ */
152
+
89
153
  /**
90
154
  * Extended WalletClient with passkey signing and batch transaction support
91
155
  */
@@ -191,15 +255,56 @@ interface BatchQueueProviderProps {
191
255
  */
192
256
  declare function BatchQueueProvider({ client, username, children, }: BatchQueueProviderProps): react_jsx_runtime.JSX.Element;
193
257
 
258
+ /**
259
+ * @file Floating UI widget for the 1auth batch transaction queue.
260
+ *
261
+ * Renders a fixed-position card anchored to the bottom-right of the viewport
262
+ * that shows how many calls are queued and on which chain. The widget is
263
+ * invisible while the queue is empty and mounts itself into the React tree
264
+ * wherever `BatchQueueProvider` wraps the application.
265
+ *
266
+ * CSS keyframe animations are injected into `document.head` once on mount
267
+ * via {@link injectStyles} so that no stylesheet import is required from the
268
+ * consumer's bundler.
269
+ */
194
270
  interface BatchQueueWidgetProps {
195
271
  /** Callback when "Sign All" is clicked - should provide username */
196
272
  onSignAll: () => void;
197
273
  }
198
274
  /**
199
- * Floating widget showing the batch queue
275
+ * Floating widget that displays the current batch transaction queue.
276
+ *
277
+ * Renders nothing while the queue is empty. When calls are present it shows a
278
+ * fixed card in the bottom-right corner of the viewport with:
279
+ * - A count badge and optional chain name in the header.
280
+ * - A "Sign All" button that invokes `onSignAll` to begin the signing ceremony.
281
+ * - An expandable list of queued calls with per-item remove buttons revealed
282
+ * on hover and a "Clear batch" footer to discard all pending calls at once.
283
+ *
284
+ * A brief scale animation (`batch-bounce-in`) plays each time a new call is
285
+ * added to the queue to draw the user's attention without interrupting flow.
286
+ *
287
+ * Must be rendered inside a `BatchQueueProvider`.
288
+ *
289
+ * @param props.onSignAll - Called when the user clicks "Sign All". The
290
+ * implementor is responsible for resolving the username and passing it to
291
+ * `useBatchQueue().signAll(username)`.
200
292
  */
201
293
  declare function BatchQueueWidget({ onSignAll }: BatchQueueWidgetProps): react_jsx_runtime.JSX.Element | null;
202
294
 
295
+ /**
296
+ * @file Chain and token registry for the 1auth SDK.
297
+ *
298
+ * Wraps `@rhinestone/sdk` chain/token data and combines it with viem's chain
299
+ * definitions to expose a filtered, testnet-aware registry. Consumers can
300
+ * look up supported chains and tokens, resolve token addresses by symbol, and
301
+ * retrieve chain metadata such as explorer URLs and default RPC endpoints.
302
+ *
303
+ * Testnet inclusion is controlled by the `includeTestnets` option on each
304
+ * function or, as a project-wide default, by the environment variables
305
+ * `NEXT_PUBLIC_ORCHESTRATOR_USE_TESTNETS` or `ORCHESTRATOR_USE_TESTNETS`.
306
+ */
307
+
203
308
  type TokenConfig = {
204
309
  symbol: string;
205
310
  address: Address;
@@ -273,4 +378,4 @@ declare function hashMessage(message: string): `0x${string}`;
273
378
  */
274
379
  declare function verifyMessageHash(message: string, signedHash: string | undefined): boolean;
275
380
 
276
- export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, ETHEREUM_MESSAGE_PREFIX, IntentCall, IntentSigner, OneAuthClient, type PasskeyAccount, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };
381
+ export { type BatchQueueContextValue, BatchQueueProvider, type BatchQueueProviderProps, BatchQueueWidget, type BatchQueueWidgetProps, type BatchedCall, type ChainFilterOptions, ETHEREUM_MESSAGE_PREFIX, IntentCall, OneAuthClient, type PasskeyAccount, type PasskeyWalletClient, type PasskeyWalletClientConfig, type SendCallsParams, SendIntentResult, type TokenConfig, type TransactionCall, WebAuthnSignature, createPasskeyAccount, createPasskeyWalletClient, encodeWebAuthnSignature, getAllSupportedChainsAndTokens, getChainById, getChainExplorerUrl, getChainName, getChainRpcUrl, getSupportedChainIds, getSupportedChains, getSupportedTokenSymbols, getSupportedTokens, getTokenSymbol, hashCalls, hashMessage, isTestnet, isTokenAddressSupported, resolveTokenAddress, useBatchQueue, verifyMessageHash };