@terminal3/t3n-sdk 3.1.0 → 3.3.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/dist/index.d.ts +28 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/client/actions.d.ts +9 -0
- package/dist/src/client/org-data.d.ts +7 -0
- package/dist/src/client/t3n-client.d.ts +22 -1
- package/dist/wasm/generated/session.core.wasm +0 -0
- package/dist/wasm/generated/session.js +557 -148
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1433,6 +1433,27 @@ declare class T3nClient {
|
|
|
1433
1433
|
* 3. Sends `SubmitIdToken` with the nonce-bearing token → receives DID.
|
|
1434
1434
|
*/
|
|
1435
1435
|
authenticate(authInput: AuthInput): Promise<Did>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Add an Ethereum wallet as an additional authenticator on the
|
|
1438
|
+
* already-authenticated account.
|
|
1439
|
+
*
|
|
1440
|
+
* Proves control of the wallet via SIWE and links it to the session's
|
|
1441
|
+
* EXISTING DID (resolved server-side from the session) — it does NOT
|
|
1442
|
+
* mint a new DID and does NOT change the session: `this.did` and
|
|
1443
|
+
* `this.status` are left untouched, and no new cookie is issued.
|
|
1444
|
+
*
|
|
1445
|
+
* Requires a completed {@link authenticate} first (e.g. an OIDC
|
|
1446
|
+
* login). Only Ethereum is supported — OIDC/email identities are
|
|
1447
|
+
* established at login, not added afterwards.
|
|
1448
|
+
*
|
|
1449
|
+
* Reuses the same client-side eth state machine as login, but posts
|
|
1450
|
+
* to the authenticated `auth.add-authenticator` route. If the wallet
|
|
1451
|
+
* is already linked to a different account, the server rejects with a
|
|
1452
|
+
* typed `eth_auth_map_conflict` error (resolve via account merge).
|
|
1453
|
+
*
|
|
1454
|
+
* @returns the existing DID the wallet was linked to.
|
|
1455
|
+
*/
|
|
1456
|
+
addAuthMethod(authInput: EthAuthInput): Promise<Did>;
|
|
1436
1457
|
/**
|
|
1437
1458
|
* OIDC two-step authentication with session-binding nonce.
|
|
1438
1459
|
*
|
|
@@ -2418,6 +2439,13 @@ interface OrgDataClientOptions extends ExecuteOrgDataActionOptions {
|
|
|
2418
2439
|
* auth challenge flow automatically.
|
|
2419
2440
|
*/
|
|
2420
2441
|
handlers?: GuestToHostHandlers;
|
|
2442
|
+
/**
|
|
2443
|
+
* Extra headers added to every `/api/rpc` request the internal
|
|
2444
|
+
* `T3nClient` makes. Mirrors `T3nClientConfig.headers` — needed when
|
|
2445
|
+
* the node sits behind an edge policy that gates `/api/rpc` on a
|
|
2446
|
+
* header (e.g. the staging Cloud Armor bypass token).
|
|
2447
|
+
*/
|
|
2448
|
+
headers?: Record<string, string>;
|
|
2421
2449
|
}
|
|
2422
2450
|
/**
|
|
2423
2451
|
* Client for session-authenticated org-data contract execution.
|