@tinycloud/web-sdk 3.12.0-beta.12 → 3.12.0-beta.14

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.
@@ -36,10 +36,10 @@ export declare const SessionConfigSchema: z.ZodObject<{
36
36
  domain?: string;
37
37
  actions?: Record<string, Record<string, string[]>>;
38
38
  spaceId?: string;
39
- jwk?: Record<string, unknown>;
40
39
  address?: string;
41
40
  chainId?: number;
42
41
  issuedAt?: string;
42
+ jwk?: Record<string, unknown>;
43
43
  notBefore?: string;
44
44
  expirationTime?: string;
45
45
  parents?: string[];
@@ -47,10 +47,10 @@ export declare const SessionConfigSchema: z.ZodObject<{
47
47
  domain?: string;
48
48
  actions?: Record<string, Record<string, string[]>>;
49
49
  spaceId?: string;
50
- jwk?: Record<string, unknown>;
51
50
  address?: string;
52
51
  chainId?: number;
53
52
  issuedAt?: string;
53
+ jwk?: Record<string, unknown>;
54
54
  notBefore?: string;
55
55
  expirationTime?: string;
56
56
  parents?: string[];
@@ -78,18 +78,18 @@ export declare const SessionSchema: z.ZodObject<{
78
78
  verificationMethod: z.ZodString;
79
79
  }, "strip", z.ZodTypeAny, {
80
80
  spaceId?: string;
81
- jwk?: Record<string, unknown>;
82
81
  delegationHeader?: {
83
82
  Authorization?: string;
84
83
  };
84
+ jwk?: Record<string, unknown>;
85
85
  delegationCid?: string;
86
86
  verificationMethod?: string;
87
87
  }, {
88
88
  spaceId?: string;
89
- jwk?: Record<string, unknown>;
90
89
  delegationHeader?: {
91
90
  Authorization?: string;
92
91
  };
92
+ jwk?: Record<string, unknown>;
93
93
  delegationCid?: string;
94
94
  verificationMethod?: string;
95
95
  }>;
@@ -15,8 +15,6 @@ import type { PortableDelegation } from "@tinycloud/node-sdk/core";
15
15
  export interface RequestPermissionsCoreDeps {
16
16
  /** Current stored manifest. Must be defined — caller validates first. */
17
17
  manifest: Manifest;
18
- /** Authenticated owner from the current node, never from a requested resource. */
19
- ownerDid?: string;
20
18
  /**
21
19
  * Show the permission request modal. Resolves with `{ approved }`
22
20
  * once the user interacts. In tests this is a stub; in production it
@@ -51,11 +49,6 @@ export interface RequestPermissionsOptions {
51
49
  * the same error text.
52
50
  */
53
51
  export declare function validateAdditionalPermissions(additional: PermissionEntry[]): void;
54
- /**
55
- * Normalize only encryption key creation here. Other runtime entries retain
56
- * their existing Web consent representation; the node validates them.
57
- */
58
- export declare function normalizeRuntimeKeyCreatePermissions(additional: PermissionEntry[], ownerDid?: string): PermissionEntry[];
59
52
  /**
60
53
  * Core escalation flow. See the TinyCloudWeb.requestPermissions JSDoc
61
54
  * for the full spec-level description — this function is the plumbing.
@@ -26,7 +26,7 @@ export declare function isPanelGrant(grant: PortableDelegation, address: string)
26
26
  * Stores the panel's own grants among `grants` for `address`, replacing a stored grant with the same cid. Other
27
27
  * delegations (an app's larger grant that already covered the request) are never stored.
28
28
  */
29
- export declare function rememberRuntimeGrants(store: RuntimeGrantStore, address: string, grants: readonly PortableDelegation[]): Promise<void>;
29
+ export declare function rememberRuntimeGrants(store: RuntimeGrantStore, address: string, grants: readonly PortableDelegation[], isCurrent?: () => boolean): Promise<void>;
30
30
  /**
31
31
  * Activates each stored grant through `use` (the SDK's validated activation). A grant refused for good is removed from
32
32
  * storage; the others stay, including one whose activation failed for a transient reason. Waits at most `budgetMs`;
@@ -230,6 +230,7 @@ export declare class TinyCloudWeb {
230
230
  /** The signer set with `setRuntimePermissionSigner`, with the session it was set for. */
231
231
  private runtimeSigner?;
232
232
  private signOutInFlight;
233
+ private signOutOperation?;
233
234
  private persistedRestoreBlocked;
234
235
  private signOutCleanupFailed;
235
236
  private remoteSignOutTimeoutMs;
@@ -521,8 +522,6 @@ export declare class TinyCloudWeb {
521
522
  * On approve, this does not mutate the manifest or force a new sign-in.
522
523
  * The underlying node creates a secondary delegation to the current
523
524
  * session key and records it in the invocation permission map.
524
- * Exact current-owner `default/share/<id>` key creation is bound to this
525
- * live signed session across consent. Native shells cannot request it.
526
525
  *
527
526
  * `options.expiryMs` sets the requested lifetime of the issued step-up
528
527
  * delegation, in milliseconds. Omitted, the node's default applies. The
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/web-sdk",
3
- "version": "3.12.0-beta.12",
3
+ "version": "3.12.0-beta.14",
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",
@@ -67,11 +67,11 @@
67
67
  "@multiformats/multiaddr": "^13.0.1",
68
68
  "@multiformats/multiaddr-to-uri": "^12.0.0",
69
69
  "@noble/curves": "^1.9.7",
70
- "@tinycloud/node-sdk": "3.12.0-beta.12",
70
+ "@tinycloud/node-sdk": "3.12.0-beta.14",
71
71
  "@tinycloud/replica": "0.4.5-beta.4",
72
- "@tinycloud/sdk-core": "3.12.0-beta.12",
72
+ "@tinycloud/sdk-core": "3.12.0-beta.14",
73
73
  "@tinycloud/share-envelope": "1.5.0",
74
- "@tinycloud/share-sdk": "1.4.4",
74
+ "@tinycloud/share-sdk": "1.5.0-beta.0",
75
75
  "@tinycloud/web-sdk-wasm": "1.7.7",
76
76
  "axios": "^1.7.9",
77
77
  "viem": "^2.45.0",