@bounded-sh/core 0.0.61 → 0.0.63
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/client/config.d.ts +6 -6
- package/dist/types.d.ts +5 -3
- package/package.json +1 -1
package/dist/client/config.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export interface ClientConfig {
|
|
|
5
5
|
/** Auth method. Configure exactly one method at init time.
|
|
6
6
|
* Bounded Auth is the default restore/logout surface; start email, social,
|
|
7
7
|
* and optional text login with loginWithRedirect/loginWithPopup.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Default email/social auth includes a Turnkey Solana wallet. 'phantom'
|
|
9
|
+
* connects an existing Solana wallet instead. Guests use signInAnonymously(), not
|
|
10
10
|
* authMethod. */
|
|
11
11
|
authMethod: 'none' | 'email' | 'guest' | 'wallet' | 'evm-wallet' | 'rainbowkit' | 'coinbase-smart-wallet' | 'onboard' | 'phantom' | 'mobile-wallet-adapter' | 'privy' | 'privy-expo';
|
|
12
12
|
wsApiUrl: string;
|
|
@@ -92,10 +92,10 @@ export interface ClientConfig {
|
|
|
92
92
|
network?: string | null;
|
|
93
93
|
rpcUrl?: string | null;
|
|
94
94
|
};
|
|
95
|
-
/** LOGIN MODE for the unified login widget (default '
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
95
|
+
/** LOGIN MODE for the unified login widget (default 'turnkey'). 'turnkey' runs
|
|
96
|
+
* Turnkey-native email OTP INLINE in the widget (no second Bounded OTP).
|
|
97
|
+
* 'bounded' explicitly selects the legacy Better Auth email flow; social and
|
|
98
|
+
* external-wallet lanes are unchanged. A per-call openBoundedWidget({ authMode })
|
|
99
99
|
* can override this. */
|
|
100
100
|
authMode?: 'bounded' | 'turnkey';
|
|
101
101
|
/** TEXT for the unified login widget. `title` replaces the default "Sign in"
|
package/dist/types.d.ts
CHANGED
|
@@ -28,7 +28,9 @@ export interface User {
|
|
|
28
28
|
/**
|
|
29
29
|
* Universal stable identity of the user (resolves @user.id). For wallet/SIWS
|
|
30
30
|
* logins this EQUALS `address`; for email/social (Bounded Better Auth) logins
|
|
31
|
-
* it is the account identity
|
|
31
|
+
* it is the account identity and `address` is normally the default Turnkey
|
|
32
|
+
* wallet. `address` may be null for explicit wallet opt-out and unsupported
|
|
33
|
+
* login types. Derived from the
|
|
32
34
|
* idToken's `custom:userId` claim. Used for ownership/membership/identity.
|
|
33
35
|
*
|
|
34
36
|
* Optional only for manually constructed users or invalid legacy tokens. New
|
|
@@ -36,8 +38,8 @@ export interface User {
|
|
|
36
38
|
*/
|
|
37
39
|
id?: string;
|
|
38
40
|
/**
|
|
39
|
-
* REAL onchain wallet address. Present for wallet/SIWS logins
|
|
40
|
-
* email
|
|
41
|
+
* REAL onchain wallet address. Present for wallet/SIWS logins and normally for
|
|
42
|
+
* email/social logins through the default Turnkey wallet. Kept for
|
|
41
43
|
* backwards compatibility — for wallet users `id === address`.
|
|
42
44
|
*/
|
|
43
45
|
address: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bounded-sh/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.63",
|
|
4
4
|
"description": "Shared client, data-plane, and transport primitives for Bounded, the full-stack app builder and runtime for AI-built apps: policy-enforced operations, files, functions, and realtime.",
|
|
5
5
|
"homepage": "https://bounded.sh/docs/sdk",
|
|
6
6
|
"main": "./dist/index.js",
|