@tinycloud/web-sdk 3.11.2 → 3.11.3
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.
|
@@ -35,10 +35,10 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
domain?: string;
|
|
37
37
|
actions?: Record<string, Record<string, string[]>>;
|
|
38
|
+
chainId?: number;
|
|
39
|
+
address?: string;
|
|
38
40
|
spaceId?: string;
|
|
39
41
|
jwk?: Record<string, unknown>;
|
|
40
|
-
address?: string;
|
|
41
|
-
chainId?: number;
|
|
42
42
|
issuedAt?: string;
|
|
43
43
|
notBefore?: string;
|
|
44
44
|
expirationTime?: string;
|
|
@@ -46,10 +46,10 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
46
46
|
}, {
|
|
47
47
|
domain?: string;
|
|
48
48
|
actions?: Record<string, Record<string, string[]>>;
|
|
49
|
+
chainId?: number;
|
|
50
|
+
address?: string;
|
|
49
51
|
spaceId?: string;
|
|
50
52
|
jwk?: Record<string, unknown>;
|
|
51
|
-
address?: string;
|
|
52
|
-
chainId?: number;
|
|
53
53
|
issuedAt?: string;
|
|
54
54
|
notBefore?: string;
|
|
55
55
|
expirationTime?: string;
|
|
@@ -112,16 +112,16 @@ export declare const HostConfigSchema: z.ZodObject<{
|
|
|
112
112
|
peerId: z.ZodString;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
114
|
domain?: string;
|
|
115
|
-
spaceId?: string;
|
|
116
|
-
address?: string;
|
|
117
115
|
chainId?: number;
|
|
116
|
+
address?: string;
|
|
117
|
+
spaceId?: string;
|
|
118
118
|
issuedAt?: string;
|
|
119
119
|
peerId?: string;
|
|
120
120
|
}, {
|
|
121
121
|
domain?: string;
|
|
122
|
-
spaceId?: string;
|
|
123
|
-
address?: string;
|
|
124
122
|
chainId?: number;
|
|
123
|
+
address?: string;
|
|
124
|
+
spaceId?: string;
|
|
125
125
|
issuedAt?: string;
|
|
126
126
|
peerId?: string;
|
|
127
127
|
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type PersistedSessionData } from "@tinycloud/sdk-core";
|
|
2
|
+
export declare class SessionAccountMismatchError extends Error {
|
|
3
|
+
readonly code = "ACCOUNT_MISMATCH";
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
6
|
+
/** Address-only callers retain their existing chain selection; DID/CAIP callers pin it. */
|
|
7
|
+
export declare function requestedRestoreAccount(account: string): {
|
|
8
|
+
address: string;
|
|
9
|
+
chainId?: number;
|
|
10
|
+
};
|
|
11
|
+
/** Bind the request to the verified CACAO owner before restoring any session state. */
|
|
12
|
+
export declare function assertRequestedRestoreAccount(requested: string, session: Pick<PersistedSessionData, "address" | "chainId" | "tinycloudSession">): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=restoreAccount.d.ts.map
|