@tinycloud/web-sdk 3.0.0-beta.5 → 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.
@@ -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
  }>;
@@ -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,10 +310,12 @@ 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
+ /** Authorize a short-lived, one-use v3 delivery against the signed envelope and roots. */
318
+ authorizeShareDeliveryV3(input: Parameters<TinyCloudNode["authorizeShareDeliveryV3"]>[0]): ReturnType<TinyCloudNode["authorizeShareDeliveryV3"]>;
317
319
  /**
318
320
  * Issue a delegation using the capability-chain flow (spec:
319
321
  * `.claude/specs/capability-chain.md`). When the requested permissions
@@ -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.5",
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.5",
47
- "@tinycloud/sdk-core": "3.0.0-beta.5",
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.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",