@tinycloud/web-sdk 2.11.0-beta.10 → 2.11.0-beta.12
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.mjs +1 -1
- package/dist/modules/tcw.d.ts +9 -1
- package/dist/openkey-session.d.ts +1 -1
- package/package.json +3 -3
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ export interface Config extends ClientConfig {
|
|
|
78
78
|
persistSession?: boolean;
|
|
79
79
|
/** Custom session storage implementation. */
|
|
80
80
|
sessionStorage?: ISessionStorage;
|
|
81
|
+
/** Whether to run node-sdk's canonical first-account bootstrap after sign-in. */
|
|
82
|
+
autoBootstrapAccount?: boolean;
|
|
81
83
|
/** Browser storage key prefix for isolating apps/environments. */
|
|
82
84
|
sessionStorageKeyPrefix?: string;
|
|
83
85
|
/** SIWE domain (default: window.location.hostname in browser, app.tinycloud.xyz otherwise) */
|
|
@@ -102,7 +104,7 @@ export interface Config extends ClientConfig {
|
|
|
102
104
|
capabilityRequest?: ComposedManifestRequest;
|
|
103
105
|
/** Strategy for TinyCloud root signature requests. */
|
|
104
106
|
signStrategy?: SignStrategy;
|
|
105
|
-
/** Include
|
|
107
|
+
/** Include canonical account registry read/create-update/list permissions in plain sessions and composed manifests. Default true. */
|
|
106
108
|
includeAccountRegistryPermissions?: boolean;
|
|
107
109
|
/** Default-off service telemetry. */
|
|
108
110
|
telemetry?: TelemetryConfig;
|
|
@@ -345,6 +347,12 @@ export declare class TinyCloudWeb {
|
|
|
345
347
|
delegateDID: string;
|
|
346
348
|
disableSubDelegation?: boolean;
|
|
347
349
|
expiryMs?: number;
|
|
350
|
+
resources?: Array<{
|
|
351
|
+
service: string;
|
|
352
|
+
space?: string;
|
|
353
|
+
path: string;
|
|
354
|
+
actions: string[];
|
|
355
|
+
}>;
|
|
348
356
|
}): Promise<PortableDelegation>;
|
|
349
357
|
delegate(params: CreateDelegationParams): Promise<Result<Delegation, DelegationError>>;
|
|
350
358
|
revokeDelegation(cid: string): Promise<Result<DelegationRevocationReceipt, DelegationError>>;
|
|
@@ -2,7 +2,7 @@ import type { ClientSession, Manifest } from "@tinycloud/sdk-core";
|
|
|
2
2
|
import { TinyCloudWeb, type Config } from "./modules/tcw";
|
|
3
3
|
declare const SESSION_EXPIRATION_MS: 3600000;
|
|
4
4
|
declare const SESSION_STORAGE_KEY_PREFIX: "coordinationos:tinycloud:session:v1:";
|
|
5
|
-
type CoordinationOsControlledConfig = "provider" | "providers" | "signStrategy" | "manifest" | "capabilityRequest" | "siweConfig" | "nonce" | "domain" | "persistSession" | "sessionStorage" | "sessionExpirationMs" | "sessionStorageKeyPrefix" | "includeAccountRegistryPermissions" | "autoCreateSpace" | "spaceCreationHandler" | "spacePrefix" | "kvPrefix";
|
|
5
|
+
type CoordinationOsControlledConfig = "provider" | "providers" | "signStrategy" | "manifest" | "capabilityRequest" | "siweConfig" | "nonce" | "domain" | "persistSession" | "sessionStorage" | "sessionExpirationMs" | "sessionStorageKeyPrefix" | "includeAccountRegistryPermissions" | "autoCreateSpace" | "autoBootstrapAccount" | "spaceCreationHandler" | "spacePrefix" | "kvPrefix";
|
|
6
6
|
export type EstablishOpenKeySessionStatus = "established" | "restored" | "missing" | "expired" | "corrupt" | "storage-unavailable" | "restore-failed" | "stale" | "disabled";
|
|
7
7
|
export interface EstablishOpenKeySessionOptions {
|
|
8
8
|
providerToken?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "2.11.0-beta.
|
|
3
|
+
"version": "2.11.0-beta.12",
|
|
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-beta.
|
|
48
|
-
"@tinycloud/sdk-core": "2.11.0-beta.
|
|
47
|
+
"@tinycloud/node-sdk": "2.11.0-beta.12",
|
|
48
|
+
"@tinycloud/sdk-core": "2.11.0-beta.12",
|
|
49
49
|
"@tinycloud/web-sdk-wasm": "1.7.6-beta.0",
|
|
50
50
|
"axios": "^1.7.9",
|
|
51
51
|
"ethers": "^5.7.2",
|