@tinycloud/web-sdk 3.2.0-beta.6 → 3.2.0-beta.8
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.
|
@@ -39,8 +39,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
39
39
|
address?: string;
|
|
40
40
|
chainId?: number;
|
|
41
41
|
issuedAt?: string;
|
|
42
|
-
jwk?: Record<string, unknown>;
|
|
43
42
|
notBefore?: string;
|
|
43
|
+
jwk?: Record<string, unknown>;
|
|
44
44
|
expirationTime?: string;
|
|
45
45
|
parents?: string[];
|
|
46
46
|
}, {
|
|
@@ -50,8 +50,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
50
50
|
address?: string;
|
|
51
51
|
chainId?: number;
|
|
52
52
|
issuedAt?: string;
|
|
53
|
-
jwk?: Record<string, unknown>;
|
|
54
53
|
notBefore?: string;
|
|
54
|
+
jwk?: Record<string, unknown>;
|
|
55
55
|
expirationTime?: string;
|
|
56
56
|
parents?: string[];
|
|
57
57
|
}>;
|
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
12
|
import { TinyCloudNode, type BootstrapWarning, type DelegateToOptions, type DelegateToResult, type ISessionStorage, type SignStrategy, type ValidatedRuntimeDelegation, type UnifiedOwnerRootInput, type UnifiedOwnerRootReceipt, type RegisterPolicyV3Input, type RegisterPolicyV3Receipt } from "@tinycloud/node-sdk/core";
|
|
13
|
-
import { IKVService, ISQLService, IDuckDbService, IDataVaultService, ISecretsService, ISpaceService, ISpace, ISharingService, ICapabilityKeyRegistry, IHooksService, IEncryptionService, DelegationManager, Delegation, DelegationRevocationReceipt, CreateDelegationParams, Result, DelegationError, ClientSession, Extension, type TelemetryConfig, ISpaceCreationHandler, type Manifest, type ComposedManifestRequest, type AccountService, type ResolvedDelegate, type PermissionEntry, type NetworkDescriptor, type CreateOwnerDelegationParams, type OwnerDelegationReceipt, type LocalNodeIdentityStore, SignInOptions } from "@tinycloud/sdk-core";
|
|
13
|
+
import { IKVService, ISQLService, IDuckDbService, IDataVaultService, ISecretsService, ISpaceService, ISpace, ISharingService, ICapabilityKeyRegistry, IHooksService, IEncryptionService, DelegationManager, Delegation, DelegationRevocationReceipt, CreateDelegationParams, Result, DelegationError, ClientSession, Extension, type TelemetryConfig, ISpaceCreationHandler, type Manifest, type ComposedManifestRequest, type AccountService, type ResolvedDelegate, type PermissionEntry, type NetworkDescriptor, type CreateOwnerDelegationParams, type OwnerDelegationReceipt, type LocalNodeIdentityStore, SignInOptions, type StorageFullEvent, type IStorageService } from "@tinycloud/sdk-core";
|
|
14
14
|
import { type BrowserProvider, type BrowserWalletProvider } from "../adapters/browserProvider";
|
|
15
15
|
import { RPCProviders, ClientConfig } from "../providers";
|
|
16
16
|
import type { NotificationConfig } from "../notifications/types";
|
|
@@ -160,6 +160,7 @@ export declare class TinyCloudWeb {
|
|
|
160
160
|
private _secrets;
|
|
161
161
|
private _credentialsService?;
|
|
162
162
|
private _shareReceiverService?;
|
|
163
|
+
private readonly storageFullHandlers;
|
|
163
164
|
/** Promise that resolves when WASM + node are ready */
|
|
164
165
|
private _initPromise;
|
|
165
166
|
/** User config */
|
|
@@ -217,6 +218,15 @@ export declare class TinyCloudWeb {
|
|
|
217
218
|
reason?: string;
|
|
218
219
|
warnings?: BootstrapWarning[];
|
|
219
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* Subscribe to `storage.full`. It fires once, on the first write any
|
|
223
|
+
* service had rejected because the owner's TinyCloud storage is full, so an
|
|
224
|
+
* app can show one read-only banner. Reads keep working. Safe to call before
|
|
225
|
+
* initialization finishes. Returns the unsubscribe function.
|
|
226
|
+
*/
|
|
227
|
+
on(event: "storage.full", handler: (event: StorageFullEvent) => void): () => void;
|
|
228
|
+
/** The owner's TinyCloud storage; `storage.status()` reads usage and plan from the node. */
|
|
229
|
+
get storage(): IStorageService;
|
|
220
230
|
/** Space-scoped SQL service for a non-primary space (e.g. the owner's `applications` space). */
|
|
221
231
|
sqlForSpace(spaceId: string): ISQLService;
|
|
222
232
|
/** Space-scoped KV service for a non-primary space (e.g. the owner's `applications` space). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "3.2.0-beta.
|
|
3
|
+
"version": "3.2.0-beta.8",
|
|
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",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@multiformats/multiaddr": "^13.0.1",
|
|
45
45
|
"@multiformats/multiaddr-to-uri": "^12.0.0",
|
|
46
|
-
"@tinycloud/node-sdk": "3.2.0-beta.
|
|
47
|
-
"@tinycloud/sdk-core": "3.2.0-beta.
|
|
46
|
+
"@tinycloud/node-sdk": "3.2.0-beta.8",
|
|
47
|
+
"@tinycloud/sdk-core": "3.2.0-beta.8",
|
|
48
48
|
"@tinycloud/share-envelope": "1.1.0",
|
|
49
49
|
"@tinycloud/share-sdk": "1.1.0",
|
|
50
50
|
"@tinycloud/web-sdk-wasm": "1.7.6",
|