@tinycloud/web-sdk 3.3.0-beta.19 → 3.3.0-beta.21

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
  }>;
@@ -10,7 +10,7 @@
10
10
  * @packageDocumentation
11
11
  */
12
12
  import { TinyCloudNode, type ReplicationModuleLoaders, TinyCloudNodeConfig, 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, type StorageFullEvent, type IStorageService } from "@tinycloud/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, type OnNodeNotFound, type RegistryPolicy, type RegistrySequenceStore, SignInOptions, type StorageFullEvent, type IStorageService } from "@tinycloud/sdk-core";
14
14
  import { type BrowserProvider, type BrowserWalletProvider } from "../adapters/browserProvider";
15
15
  import { BrowserWalletSigner } from "../adapters/BrowserWalletSigner";
16
16
  import { RPCProviders, ClientConfig } from "../providers";
@@ -41,8 +41,28 @@ export interface Config extends ClientConfig {
41
41
  tinycloudHosts?: string[];
42
42
  /** TinyCloud location registry URL. Default: https://registry.tinycloud.xyz. */
43
43
  tinycloudRegistryUrl?: string | null;
44
- /** Fallback TinyCloud hosts. Default: hosted TinyCloud node. */
44
+ /**
45
+ * Fallback TinyCloud hosts. Default: hosted TinyCloud node. Used only by the
46
+ * default `registryPolicy` ("legacy-fallback"), whose silent fallback is
47
+ * deprecated and will be removed in a future major release.
48
+ */
45
49
  tinycloudFallbackHosts?: string[] | null;
50
+ /**
51
+ * How sign-in uses the location registry when no `tinycloudHosts` are set.
52
+ * Default `"legacy-fallback"` (deprecated). `"fail-closed"` routes on the
53
+ * registry verdict for the wallet address and refuses automatic space
54
+ * creation on a host the owner's registry record does not list, or when
55
+ * the registry gives no verdict. See `TinyCloudNodeConfig.registryPolicy`.
56
+ */
57
+ registryPolicy?: RegistryPolicy;
58
+ /** `fail-closed` only: host for owners with no registry record. Default https://node.tinycloud.xyz; `null` refuses them. */
59
+ newUserHost?: string | null;
60
+ /** `fail-closed` only: chain ID of the v1 registry subject built from the wallet address. Default 1. */
61
+ registryChainId?: number;
62
+ /** `fail-closed` only: highest registry sequence seen per owner. Default: a `localStorage`-backed store. */
63
+ registrySequenceStore?: RegistrySequenceStore;
64
+ /** `fail-closed` only: retry, use another host (not identity-checked; it persists with the session), or abort when sign-in resolves no host. Without it, sign-in throws. */
65
+ onNodeNotFound?: OnNodeNotFound;
46
66
  /** Probe configured/registered local nodes before registry/fallback resolution. Default: true. */
47
67
  autoDiscoverLocalNode?: boolean;
48
68
  /** Local loopback node URL to probe. Omit to avoid probing loopback. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/web-sdk",
3
- "version": "3.3.0-beta.19",
3
+ "version": "3.3.0-beta.21",
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",
@@ -54,11 +54,11 @@
54
54
  "@multiformats/multiaddr": "^13.0.1",
55
55
  "@multiformats/multiaddr-to-uri": "^12.0.0",
56
56
  "@noble/curves": "^1.9.7",
57
- "@tinycloud/node-sdk": "3.3.0-beta.18",
57
+ "@tinycloud/node-sdk": "3.3.0-beta.21",
58
58
  "@tinycloud/replica": "0.3.0-beta.5",
59
- "@tinycloud/sdk-core": "3.3.0-beta.18",
60
- "@tinycloud/share-envelope": "1.1.0",
61
- "@tinycloud/share-sdk": "1.2.0-beta.4",
59
+ "@tinycloud/sdk-core": "3.3.0-beta.21",
60
+ "@tinycloud/share-envelope": "1.2.0-beta.0",
61
+ "@tinycloud/share-sdk": "1.2.0-beta.5",
62
62
  "@tinycloud/web-sdk-wasm": "1.7.6",
63
63
  "axios": "^1.7.9",
64
64
  "viem": "^2.45.0",