@tinycloud/web-sdk 3.0.0-beta.6 → 3.0.0-beta.7
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/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modules/tcw.d.ts +5 -5
- package/dist/notifications/types.schema.d.ts +2 -2
- package/package.json +5 -5
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
|
-
import { TinyCloudNode, type BootstrapWarning, type DelegateToOptions, type DelegateToResult, type ISessionStorage, type SignStrategy, type ValidatedRuntimeDelegation, type UnifiedOwnerRootInput, type UnifiedOwnerRootReceipt } 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
|
|
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";
|
|
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";
|
|
@@ -310,9 +310,9 @@ export declare class TinyCloudWeb {
|
|
|
310
310
|
createOwnerDelegation(params: CreateOwnerDelegationParams extends infer PermissionShape ? PermissionShape extends CreateOwnerDelegationParams ? Omit<PermissionShape, "spaceId"> & {
|
|
311
311
|
readonly spaceId?: string;
|
|
312
312
|
} : never : never): Promise<OwnerDelegationReceipt>;
|
|
313
|
-
/** Register
|
|
314
|
-
|
|
315
|
-
/**
|
|
313
|
+
/** Register signed policy material through the Node-owned Policy/v3 runtime. */
|
|
314
|
+
registerPolicy(params: Omit<RegisterPolicyV3Input, "nodeOrigin" | "fetch">): Promise<RegisterPolicyV3Receipt>;
|
|
315
|
+
/** @deprecated Policy/v2 delivery transport is retired. Use authorizeShareDeliveryV3. */
|
|
316
316
|
authorizeShareDelivery(input: Parameters<TinyCloudNode["authorizeShareDelivery"]>[0]): ReturnType<TinyCloudNode["authorizeShareDelivery"]>;
|
|
317
317
|
/** Authorize a short-lived, one-use v3 delivery against the signed envelope and roots. */
|
|
318
318
|
authorizeShareDeliveryV3(input: Parameters<TinyCloudNode["authorizeShareDeliveryV3"]>[0]): ReturnType<TinyCloudNode["authorizeShareDeliveryV3"]>;
|
|
@@ -54,8 +54,8 @@ export declare const ToastSchema: z.ZodObject<{
|
|
|
54
54
|
timestamp: z.ZodNumber;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
description?: string;
|
|
57
|
-
type?: "error" | "success" | "warning" | "info" | "loading";
|
|
58
57
|
id?: string;
|
|
58
|
+
type?: "error" | "success" | "warning" | "info" | "loading";
|
|
59
59
|
title?: string;
|
|
60
60
|
duration?: number;
|
|
61
61
|
action?: {
|
|
@@ -65,8 +65,8 @@ export declare const ToastSchema: z.ZodObject<{
|
|
|
65
65
|
timestamp?: number;
|
|
66
66
|
}, {
|
|
67
67
|
description?: string;
|
|
68
|
-
type?: "error" | "success" | "warning" | "info" | "loading";
|
|
69
68
|
id?: string;
|
|
69
|
+
type?: "error" | "success" | "warning" | "info" | "loading";
|
|
70
70
|
title?: string;
|
|
71
71
|
duration?: number;
|
|
72
72
|
action?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.7",
|
|
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,10 +43,10 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@multiformats/multiaddr": "^13.0.1",
|
|
45
45
|
"@multiformats/multiaddr-to-uri": "^12.0.0",
|
|
46
|
-
"@tinycloud/node-sdk": "3.0.0-beta.
|
|
47
|
-
"@tinycloud/sdk-core": "3.0.0-beta.
|
|
48
|
-
"@tinycloud/share-envelope": "0.2.1-beta.
|
|
49
|
-
"@tinycloud/share-sdk": "0.3.0-beta.
|
|
46
|
+
"@tinycloud/node-sdk": "3.0.0-beta.7",
|
|
47
|
+
"@tinycloud/sdk-core": "3.0.0-beta.7",
|
|
48
|
+
"@tinycloud/share-envelope": "0.2.1-beta.2",
|
|
49
|
+
"@tinycloud/share-sdk": "0.3.0-beta.2",
|
|
50
50
|
"@tinycloud/web-sdk-wasm": "1.7.6",
|
|
51
51
|
"axios": "^1.7.9",
|
|
52
52
|
"viem": "^2.45.0",
|