@tinycloud/web-sdk 3.0.0-beta.11 → 3.0.0-beta.13

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.
@@ -74,7 +74,7 @@ export interface Config extends ClientConfig {
74
74
  * modal handler is in use.
75
75
  */
76
76
  spaceCreationTimeoutMs?: number;
77
- /** Session expiration time in milliseconds (default: 1 hour) */
77
+ /** Session expiration time in milliseconds (default: 30 days, `EXPIRY.SESSION_MS`) */
78
78
  sessionExpirationMs?: number;
79
79
  /** Persist browser sessions so signIn() can restore before prompting. Default true. */
80
80
  persistSession?: boolean;
@@ -17,6 +17,7 @@ export type ShareReceiveProgress = {
17
17
  } | {
18
18
  readonly state: "credential-acquisition";
19
19
  readonly status: "started" | "completed";
20
+ readonly mailbox?: string;
20
21
  } | {
21
22
  readonly state: "policy-admission";
22
23
  readonly status: "started" | "completed";
@@ -77,6 +78,11 @@ export interface ShareImportAccountClient {
77
78
  export type ShareReceiverRecipient = {
78
79
  readonly kind: "exactEmail";
79
80
  readonly email: string;
81
+ }
82
+ /** Anyone who proves a mailbox whose issuer-derived domain equals `domain` exactly. */
83
+ | {
84
+ readonly kind: "emailDomain";
85
+ readonly domain: string;
80
86
  };
81
87
  export interface ReceivedShare {
82
88
  readonly identity: ShareReceiverIdentity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/web-sdk",
3
- "version": "3.0.0-beta.11",
3
+ "version": "3.0.0-beta.13",
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.11",
47
- "@tinycloud/sdk-core": "3.0.0-beta.11",
46
+ "@tinycloud/node-sdk": "3.0.0-beta.13",
47
+ "@tinycloud/sdk-core": "3.0.0-beta.13",
48
48
  "@tinycloud/share-envelope": "1.0.0-beta.4",
49
- "@tinycloud/share-sdk": "1.0.0-beta.4",
49
+ "@tinycloud/share-sdk": "1.0.0-beta.5",
50
50
  "@tinycloud/web-sdk-wasm": "1.7.6",
51
51
  "axios": "^1.7.9",
52
52
  "viem": "^2.45.0",