@aurum-sdk/core 0.1.5 → 0.2.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.mts CHANGED
@@ -98,7 +98,8 @@ declare class Aurum {
98
98
  * Opens the wallet connection modal or connects directly to a specific wallet.
99
99
  *
100
100
  * @param walletId - Optional wallet ID for direct connection (bypasses modal).
101
- * Cannot be 'email' or 'walletconnect' (use their dedicated methods).
101
+ * Cannot be 'email' (use emailAuthStart/emailAuthVerify).
102
+ * For 'walletconnect', opens the WalletConnect modal directly.
102
103
  * @returns The connected wallet address
103
104
  * @throws Error if user closes the modal without connecting a wallet
104
105
  *
@@ -110,6 +111,9 @@ declare class Aurum {
110
111
  * // Or connect directly to a specific wallet
111
112
  * import { WalletId } from '@aurum-sdk/types';
112
113
  * const address = await aurum.connect(WalletId.MetaMask);
114
+ *
115
+ * // Open WalletConnect modal directly
116
+ * const address = await aurum.connect(WalletId.WalletConnect);
113
117
  * ```
114
118
  */
115
119
  connect(walletId?: WalletId): Promise<`0x${string}`>;
@@ -203,7 +207,7 @@ declare class Aurum {
203
207
  * import { WalletId } from '@aurum-sdk/types';
204
208
  *
205
209
  * aurum.updateWalletsConfig({
206
- * exclude: [WalletId.Email, WalletId.AppKit],
210
+ * exclude: [WalletId.Email, WalletId.WalletConnect],
207
211
  * });
208
212
  * ```
209
213
  */
@@ -213,14 +217,14 @@ declare class Aurum {
213
217
  * Updates internal state so getUserInfo(), isConnected(), etc. work correctly.
214
218
  * @internal Used by ConnectWidget - not intended for direct use
215
219
  */
216
- handleWidgetConnection(result: WalletConnectionResult): Promise<void>;
220
+ handleWidgetConnection(result: WalletConnectionResult): Promise<UserInfo>;
217
221
  /**
218
222
  * Starts the email authentication flow by sending an OTP to the provided email.
219
223
  * Use with `emailAuthVerify()` to complete the connection.
220
224
  *
221
225
  * @param email - The email address to send the OTP to
222
226
  * @returns Object containing flowId to use with emailAuthVerify
223
- * @throws Error if email wallet is not configured
227
+ * @throws Error if email wallet is not enabled
224
228
  *
225
229
  * @example
226
230
  * ```typescript
@@ -252,7 +256,7 @@ declare class Aurum {
252
256
  * Use this for building custom QR code UIs instead of using the built-in modal.
253
257
  *
254
258
  * @returns Object containing the URI and a function to wait for the connection
255
- * @throws Error if WalletConnect is not configured
259
+ * @throws Error if WalletConnect is not enabled
256
260
  *
257
261
  * @example
258
262
  * ```typescript
package/dist/index.d.ts CHANGED
@@ -98,7 +98,8 @@ declare class Aurum {
98
98
  * Opens the wallet connection modal or connects directly to a specific wallet.
99
99
  *
100
100
  * @param walletId - Optional wallet ID for direct connection (bypasses modal).
101
- * Cannot be 'email' or 'walletconnect' (use their dedicated methods).
101
+ * Cannot be 'email' (use emailAuthStart/emailAuthVerify).
102
+ * For 'walletconnect', opens the WalletConnect modal directly.
102
103
  * @returns The connected wallet address
103
104
  * @throws Error if user closes the modal without connecting a wallet
104
105
  *
@@ -110,6 +111,9 @@ declare class Aurum {
110
111
  * // Or connect directly to a specific wallet
111
112
  * import { WalletId } from '@aurum-sdk/types';
112
113
  * const address = await aurum.connect(WalletId.MetaMask);
114
+ *
115
+ * // Open WalletConnect modal directly
116
+ * const address = await aurum.connect(WalletId.WalletConnect);
113
117
  * ```
114
118
  */
115
119
  connect(walletId?: WalletId): Promise<`0x${string}`>;
@@ -203,7 +207,7 @@ declare class Aurum {
203
207
  * import { WalletId } from '@aurum-sdk/types';
204
208
  *
205
209
  * aurum.updateWalletsConfig({
206
- * exclude: [WalletId.Email, WalletId.AppKit],
210
+ * exclude: [WalletId.Email, WalletId.WalletConnect],
207
211
  * });
208
212
  * ```
209
213
  */
@@ -213,14 +217,14 @@ declare class Aurum {
213
217
  * Updates internal state so getUserInfo(), isConnected(), etc. work correctly.
214
218
  * @internal Used by ConnectWidget - not intended for direct use
215
219
  */
216
- handleWidgetConnection(result: WalletConnectionResult): Promise<void>;
220
+ handleWidgetConnection(result: WalletConnectionResult): Promise<UserInfo>;
217
221
  /**
218
222
  * Starts the email authentication flow by sending an OTP to the provided email.
219
223
  * Use with `emailAuthVerify()` to complete the connection.
220
224
  *
221
225
  * @param email - The email address to send the OTP to
222
226
  * @returns Object containing flowId to use with emailAuthVerify
223
- * @throws Error if email wallet is not configured
227
+ * @throws Error if email wallet is not enabled
224
228
  *
225
229
  * @example
226
230
  * ```typescript
@@ -252,7 +256,7 @@ declare class Aurum {
252
256
  * Use this for building custom QR code UIs instead of using the built-in modal.
253
257
  *
254
258
  * @returns Object containing the URI and a function to wait for the connection
255
- * @throws Error if WalletConnect is not configured
259
+ * @throws Error if WalletConnect is not enabled
256
260
  *
257
261
  * @example
258
262
  * ```typescript