@tinycloud/web-sdk 3.12.0-beta.20 → 3.12.0-beta.22
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/adapters/BrowserSessionStorage.d.ts +10 -3
- package/dist/adapters/BrowserWasmBindings.d.ts +2 -0
- package/dist/delegations-issued.cjs +1 -1
- package/dist/delegations-issued.mjs +1 -1
- package/dist/delegations-renewal-entry.d.ts +3 -0
- package/dist/delegations-renewal.cjs +2 -0
- package/dist/delegations-renewal.cjs.LICENSE.txt +21 -0
- package/dist/delegations-renewal.mjs +2 -0
- package/dist/delegations-renewal.mjs.LICENSE.txt +21 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modules/Storage/tinycloud/module.d.ts +1 -0
- package/dist/modules/tcw.d.ts +11 -0
- package/package.json +4 -4
|
@@ -6,6 +6,7 @@ export declare const prepareSession: TinyCloudModule['prepareSession'];
|
|
|
6
6
|
export declare const completeSessionSetup: TinyCloudModule['completeSessionSetup'];
|
|
7
7
|
export declare const invoke: InvokeFunction;
|
|
8
8
|
export declare const invokeAny: TinyCloudModule['invokeAny'];
|
|
9
|
+
export declare const invokeDelegationStatus: TinyCloudModule["invokeDelegationStatus"];
|
|
9
10
|
export declare const generateHostSIWEMessage: TinyCloudModule['generateHostSIWEMessage'];
|
|
10
11
|
export declare const siweToDelegationHeaders: TinyCloudModule['siweToDelegationHeaders'];
|
|
11
12
|
export {};
|
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -385,6 +385,13 @@ export declare class TinyCloudWeb {
|
|
|
385
385
|
private trackRestoreAddress;
|
|
386
386
|
private untrackRestoreAddress;
|
|
387
387
|
restoreSession(address?: string): Promise<SessionRestoreResult>;
|
|
388
|
+
/**
|
|
389
|
+
* Restore an expired browser session only when the owner-signed lease admission
|
|
390
|
+
* and the node's independently verified renewal history extend its authority.
|
|
391
|
+
* The lease authorization must come from an owner-approved source, not storage metadata.
|
|
392
|
+
*/
|
|
393
|
+
restoreSessionWithRenewal(leaseAuthorization: string, address?: string): Promise<SessionRestoreResult>;
|
|
394
|
+
private restoreSessionInternal;
|
|
388
395
|
private startRestoredNetworkWork;
|
|
389
396
|
/** One node read for the restored session, held to {@link spaceHostingCapMs}; past it, or on any failure, the answer stays unknown. */
|
|
390
397
|
private probeSpaceHosting;
|
|
@@ -469,6 +476,10 @@ export declare class TinyCloudWeb {
|
|
|
469
476
|
disableSubDelegation?: boolean;
|
|
470
477
|
expiryMs?: number;
|
|
471
478
|
}): Promise<PortableDelegation>;
|
|
479
|
+
/** Owner-sign and admit a bounded renewal lease for the current session. */
|
|
480
|
+
createRenewalLease(expiresAt: Date): Promise<Awaited<ReturnType<TinyCloudNode["createRenewalLease"]>>>;
|
|
481
|
+
/** Verify current node-admitted renewal authority for the current session. */
|
|
482
|
+
getRenewalEffectiveExpiry(leaseAuthorization: string): Promise<number>;
|
|
472
483
|
/** Create and activate a wallet-rooted delegation for an ephemeral share key. */
|
|
473
484
|
createOwnerDelegation(params: CreateOwnerDelegationParams extends infer PermissionShape ? PermissionShape extends CreateOwnerDelegationParams ? Omit<PermissionShape, "spaceId"> & {
|
|
474
485
|
readonly spaceId?: string;
|
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.22",
|
|
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,12 +67,12 @@
|
|
|
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.
|
|
70
|
+
"@tinycloud/node-sdk": "3.12.0-beta.22",
|
|
71
71
|
"@tinycloud/replica": "0.4.5-beta.6",
|
|
72
|
-
"@tinycloud/sdk-core": "3.12.0-beta.
|
|
72
|
+
"@tinycloud/sdk-core": "3.12.0-beta.22",
|
|
73
73
|
"@tinycloud/share-envelope": "1.6.0-beta.0",
|
|
74
74
|
"@tinycloud/share-sdk": "1.5.0-beta.2",
|
|
75
|
-
"@tinycloud/web-sdk-wasm": "1.7.
|
|
75
|
+
"@tinycloud/web-sdk-wasm": "1.7.8-beta.0",
|
|
76
76
|
"axios": "^1.7.9",
|
|
77
77
|
"viem": "^2.45.0",
|
|
78
78
|
"zod": "^3.22.0"
|