@tinycloud/web-sdk 3.0.0-beta.0 → 3.0.0-beta.1

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.
@@ -0,0 +1,25 @@
1
+ import { type CanonicalTinyCloudIdentity, type ClientSession, type OpenKeyManageKeySigningStrategyOptions } from "@tinycloud/sdk-core";
2
+ import { TinyCloudWeb, type Config } from "./modules/tcw";
3
+ /** Configuration for one OAuth-bound canonical TinyCloud sign-in. */
4
+ export interface EstablishManageKeySessionOptions {
5
+ /** The canonical identity claim returned with a consented OAuth token. */
6
+ identity: CanonicalTinyCloudIdentity | unknown;
7
+ /** OAuth bearer signer configuration. No browser session credentials are used. */
8
+ signer: Omit<OpenKeyManageKeySigningStrategyOptions, "identity">;
9
+ /** TinyCloud client configuration, including the app's requested capabilities. */
10
+ tinycloud: Omit<Config, "provider" | "signStrategy" | "autoBootstrapAccount">;
11
+ }
12
+ /** Result of a completed TinyCloud sign-in using the OAuth canonical key. */
13
+ export interface EstablishManageKeySessionResult {
14
+ client: TinyCloudWeb;
15
+ identity: CanonicalTinyCloudIdentity;
16
+ /** The verified TinyCloud session produced by the public SDK sign-in flow. */
17
+ session: ClientSession;
18
+ }
19
+ /**
20
+ * Sign in through the public TinyCloud web SDK using a consented OAuth
21
+ * canonical key. The identity is token-bound; callers cannot select another
22
+ * address or key ID, and the signer makes cookie-free requests only.
23
+ */
24
+ export declare function establishManageKeySession(options: EstablishManageKeySessionOptions): Promise<EstablishManageKeySessionResult>;
25
+ //# sourceMappingURL=manage-key-session.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/web-sdk",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.1",
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,8 +43,8 @@
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.0",
47
- "@tinycloud/sdk-core": "3.0.0-beta.0",
46
+ "@tinycloud/node-sdk": "3.0.0-beta.1",
47
+ "@tinycloud/sdk-core": "3.0.0-beta.1",
48
48
  "@tinycloud/web-sdk-wasm": "1.7.6",
49
49
  "axios": "^1.7.9",
50
50
  "viem": "^2.45.0",