@tinycloud/web-sdk 3.14.0-beta.9 → 3.17.0
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/README.md +2 -2
- package/dist/delegations-issued.cjs +1 -1
- package/dist/delegations-issued.mjs +1 -1
- package/dist/delegations-renewal.cjs +1 -1
- package/dist/delegations-renewal.mjs +1 -1
- package/dist/encryption-keys.cjs +1 -1
- package/dist/encryption-keys.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/modals.cjs +1 -1
- package/dist/modals.mjs +1 -1
- package/dist/modules/WebSecretsService.d.ts +19 -4
- package/dist/modules/requestPermissionsCore.d.ts +10 -1
- package/dist/modules/runtimeGrantPersistence.d.ts +42 -2
- package/dist/modules/tcw.d.ts +99 -11
- package/dist/notifications/PermissionRequestModal.d.ts +10 -0
- package/dist/notifications/permissionExpansion.d.ts +6 -0
- package/dist/notifications/permissionExpansionBridge.d.ts +2 -0
- package/dist/notifications/permissionLine.d.ts +90 -0
- package/dist/registry-publish.d.ts +72 -0
- package/dist/runtime-grants.cjs +1 -1
- package/dist/runtime-grants.mjs +1 -1
- package/dist/secret-read.cjs +1 -1
- package/dist/secret-read.mjs +1 -1
- package/dist/space-hosting-entry.d.ts +1 -1
- package/dist/space-hosting.cjs +1 -1
- package/dist/space-hosting.mjs +1 -1
- package/package.json +13 -8
package/README.md
CHANGED
|
@@ -567,6 +567,6 @@ The web SDK includes implicit account bootstrap permissions only at the approved
|
|
|
567
567
|
|
|
568
568
|
`autoBootstrapAccount: false` disables account bootstrap and its implicit sign-in permissions, including in the node SDK. `includeAccountRegistryPermissions: false` omits the implicit account registry bundle. Setting either option to `true` does not enable first-party bootstrap at another origin. The policy uses the actual page origin, independently of a configured SIWE domain.
|
|
569
569
|
|
|
570
|
-
A third-party sign-in with no registered account route returns `ACCOUNT_SETUP_REQUIRED` with `setupUrl: "https://tinycloud.one
|
|
570
|
+
A third-party sign-in with no registered account route returns `ACCOUNT_SETUP_REQUIRED` with `setupUrl: "https://tinycloud.one/?finish-setup=registry"`. It returns before signing unless the app asks only for its own `applications` space, holds an uncaveated `tinycloud.kv/list` or `tinycloud.space/info` on it, and asks for nothing that hosts, creates or deletes a space. In that case, after the owner's consent, the SDK sends one `/delegate` to the default node `https://node.tinycloud.xyz` and then one read of that space (`kv/list` with limit 1, or `space/info`). Only a 2xx response continues the sign-in. Any other answer returns `ACCOUNT_SETUP_REQUIRED` and discards the session: no session is stored and the session key is dropped so the wallet's signature is not reused. No second `/delegate` is ever sent. When the `/delegate` may have been accepted (it was accepted, or the answer was a 5xx, a network error or a timeout), the SDK also sends one `/session/retire` to the default node, best effort; overlapping sign-ins can misattribute that cleanup (TC-4154). A `/delegate` the node refused (4xx) is only discarded locally. A network error, timeout or 5xx on the `/delegate` or on that read fails with a different, non-setup error, after the same cleanup. Nothing is created or written to the registry, and the node may keep the delegation until it is retired or reaches its signed expiry. Complete setup at the setup URL and retry. Registry availability errors retain their existing behavior. Setup status for accounts that already have a registry record is unchanged.
|
|
571
571
|
|
|
572
|
-
Details: TC-2931
|
|
572
|
+
Details: TC-2931, TC-4082
|