@tinycloud/web-sdk 3.0.0-beta.6 → 3.0.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
- notBefore?: string;
43
42
  jwk?: Record<string, unknown>;
43
+ notBefore?: string;
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
- notBefore?: string;
54
53
  jwk?: Record<string, unknown>;
54
+ notBefore?: string;
55
55
  expirationTime?: string;
56
56
  parents?: string[];
57
57
  }>;
@@ -26,6 +26,7 @@ export declare class WebSecretsService implements ISecretsService {
26
26
  put(name: string, value: string, options?: SecretScopeOptions): ReturnType<ISecretsService["put"]>;
27
27
  delete(name: string, options?: SecretScopeOptions): ReturnType<ISecretsService["delete"]>;
28
28
  list(options?: SecretScopeOptions): ReturnType<ISecretsService["list"]>;
29
+ listAll(): ReturnType<ISecretsService["listAll"]>;
29
30
  private get service();
30
31
  private ensureMutationPermission;
31
32
  private restoreUnlockAfterEscalation;
@@ -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 RegisterOwnerSharePolicyParams, type OwnerSharePolicyRegistrationReceipt, type LocalNodeIdentityStore, SignInOptions } from "@tinycloud/sdk-core";
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 an owner-bound addressed sharing policy through TinyCloud Node. */
314
- registerOwnerSharePolicy(params: RegisterOwnerSharePolicyParams): Promise<OwnerSharePolicyRegistrationReceipt>;
315
- /** Authorize a short-lived, one-use v2 delivery using the authenticated invocation chain. */
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"]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/web-sdk",
3
- "version": "3.0.0-beta.6",
3
+ "version": "3.0.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,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.6",
47
- "@tinycloud/sdk-core": "3.0.0-beta.6",
48
- "@tinycloud/share-envelope": "0.2.1-beta.1",
49
- "@tinycloud/share-sdk": "0.3.0-beta.1",
46
+ "@tinycloud/node-sdk": "3.0.0-beta.8",
47
+ "@tinycloud/sdk-core": "3.0.0-beta.8",
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",