@tinycloud/web-sdk 3.12.0-beta.15 → 3.12.0-beta.16
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.
|
@@ -3,7 +3,9 @@ export interface RuntimeGrantStore {
|
|
|
3
3
|
loadRuntimeGrants(address: string): Promise<PortableDelegation[]>;
|
|
4
4
|
saveRuntimeGrants(address: string, grants: readonly PortableDelegation[]): Promise<void>;
|
|
5
5
|
}
|
|
6
|
-
/**
|
|
6
|
+
/** Serialize short storage mutations while grant activation runs independently. */
|
|
7
|
+
export declare function serializeRuntimeGrantMutation<T>(store: RuntimeGrantStore | undefined, mutation: () => Promise<T>): Promise<T>;
|
|
8
|
+
/** Bound for the automatic post-restore grant reactivation wait. */
|
|
7
9
|
export declare const RESTORE_GRANT_BUDGET_MS = 4000;
|
|
8
10
|
interface Resource {
|
|
9
11
|
readonly service: string;
|
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -196,8 +196,9 @@ export interface ShareReceiveResult<T = unknown> {
|
|
|
196
196
|
export declare class TinyCloudWeb {
|
|
197
197
|
private openkeySignInInFlight;
|
|
198
198
|
private prepareSignInToken;
|
|
199
|
-
/**
|
|
199
|
+
/** Time bound for the background hosting probe. */
|
|
200
200
|
private spaceHostingCapMs;
|
|
201
|
+
private restoredNetworkWork?;
|
|
201
202
|
private preparedSignIn?;
|
|
202
203
|
private invalidatePreparedSignIn;
|
|
203
204
|
/** The connected wallet's raw EIP-1193 provider. */
|
|
@@ -334,7 +335,7 @@ export declare class TinyCloudWeb {
|
|
|
334
335
|
get delegations(): DelegationManager;
|
|
335
336
|
get capabilityRegistry(): ICapabilityKeyRegistry;
|
|
336
337
|
get spaceId(): string | undefined;
|
|
337
|
-
/**
|
|
338
|
+
/** Hosting display hint bound to account, space and host, corrected by the automatic background probe. */
|
|
338
339
|
get spaceHosting(): SpaceHosting;
|
|
339
340
|
get accountSpaceId(): string | undefined;
|
|
340
341
|
get account(): AccountService;
|
|
@@ -384,6 +385,7 @@ export declare class TinyCloudWeb {
|
|
|
384
385
|
private trackRestoreAddress;
|
|
385
386
|
private untrackRestoreAddress;
|
|
386
387
|
restoreSession(address?: string): Promise<SessionRestoreResult>;
|
|
388
|
+
private startRestoredNetworkWork;
|
|
387
389
|
/** One node read for the restored session, held to {@link spaceHostingCapMs}; past it, or on any failure, the answer stays unknown. */
|
|
388
390
|
private probeSpaceHosting;
|
|
389
391
|
private spaceHostingInFlight?;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "3.12.0-beta.
|
|
3
|
+
"version": "3.12.0-beta.16",
|
|
4
4
|
"description": "A set of tools and utilities to help you build your app with TinyCloud.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@multiformats/multiaddr": "^13.0.1",
|
|
68
68
|
"@multiformats/multiaddr-to-uri": "^12.0.0",
|
|
69
69
|
"@noble/curves": "^1.9.7",
|
|
70
|
-
"@tinycloud/node-sdk": "3.12.0-beta.
|
|
71
|
-
"@tinycloud/replica": "0.4.5-beta.
|
|
72
|
-
"@tinycloud/sdk-core": "3.12.0-beta.
|
|
70
|
+
"@tinycloud/node-sdk": "3.12.0-beta.16",
|
|
71
|
+
"@tinycloud/replica": "0.4.5-beta.5",
|
|
72
|
+
"@tinycloud/sdk-core": "3.12.0-beta.16",
|
|
73
73
|
"@tinycloud/share-envelope": "1.5.0",
|
|
74
74
|
"@tinycloud/share-sdk": "1.5.0-beta.0",
|
|
75
75
|
"@tinycloud/web-sdk-wasm": "1.7.7",
|