@tinycloud/web-sdk 2.11.0 → 2.11.1-beta.0
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/credentials/browser.d.ts +18 -2
- package/dist/credentials/element.d.ts +42 -0
- package/dist/credentials/index.d.ts +1 -0
- package/dist/credentials/interpreter.d.ts +6 -1
- package/dist/credentials/service.d.ts +2 -1
- package/dist/credentials/types.d.ts +92 -9
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/modules/tcw.d.ts +9 -1
- package/package.json +3 -3
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
|
-
import { TinyCloudNode, type BootstrapWarning, type DelegateToOptions, type DelegateToResult, type ISessionStorage, type SignStrategy } from "@tinycloud/node-sdk/core";
|
|
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
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 RegisterOwnerSharePolicyParams, type OwnerSharePolicyRegistrationReceipt, type LocalNodeIdentityStore, SignInOptions } from "@tinycloud/sdk-core";
|
|
14
14
|
import type { providers } from "ethers";
|
|
15
15
|
import { RPCProviders, ClientConfig } from "../providers";
|
|
@@ -275,9 +275,17 @@ export declare class TinyCloudWeb {
|
|
|
275
275
|
get isWalletConnected(): boolean;
|
|
276
276
|
/** Sign protocol bytes with the established session key without exposing key material. */
|
|
277
277
|
signSessionBytes(bytes: Uint8Array): Promise<Uint8Array>;
|
|
278
|
+
createUnifiedOwnerRoot(input: UnifiedOwnerRootInput): Promise<UnifiedOwnerRootReceipt>;
|
|
278
279
|
autoSignCredentialBytes(bytes: Uint8Array): Promise<Uint8Array | undefined>;
|
|
279
280
|
approveCredentialBytes(bytes: Uint8Array): Promise<Uint8Array>;
|
|
281
|
+
activateCompactRuntimeDelegation(input: {
|
|
282
|
+
readonly authorization: string;
|
|
283
|
+
readonly cid: string;
|
|
284
|
+
readonly host: string;
|
|
285
|
+
}): Promise<ValidatedRuntimeDelegation>;
|
|
280
286
|
credentialSpaceOwnerDid(spaceId: string): string;
|
|
287
|
+
/** Root authorization CID of the active session, which {@link session} omits. */
|
|
288
|
+
accountAuthorizationCid(): string;
|
|
281
289
|
extend(_extension: Extension): void;
|
|
282
290
|
cleanup(): void;
|
|
283
291
|
connectWallet(provider: providers.ExternalProvider | providers.Web3Provider, options?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "2.11.0",
|
|
3
|
+
"version": "2.11.1-beta.0",
|
|
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",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@metamask/detect-provider": "^1.2.0",
|
|
45
45
|
"@multiformats/multiaddr": "^13.0.1",
|
|
46
46
|
"@multiformats/multiaddr-to-uri": "^12.0.0",
|
|
47
|
-
"@tinycloud/node-sdk": "2.11.0",
|
|
48
|
-
"@tinycloud/sdk-core": "2.11.0",
|
|
47
|
+
"@tinycloud/node-sdk": "2.11.1-beta.0",
|
|
48
|
+
"@tinycloud/sdk-core": "2.11.1-beta.0",
|
|
49
49
|
"@tinycloud/web-sdk-wasm": "1.7.6",
|
|
50
50
|
"axios": "^1.7.9",
|
|
51
51
|
"ethers": "^5.7.2",
|