@terminal3/t3n-sdk 0.14.0 → 1.0.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.
@@ -108,6 +108,24 @@ export declare class T3nClient {
108
108
  * @throws {ContractResponseError} when the response is not valid JSON
109
109
  */
110
110
  executeAndDecode<T = unknown>(payload: unknown, schema?: ContractResponseSchema<T>): Promise<T>;
111
+ /**
112
+ * Return the authenticated user's Ethereum address from their
113
+ * T3N-hosted per-user wallet, as a 0x-prefixed lowercase hex string.
114
+ * Returns `null` if the user has no wallet yet (pre-backfill edge
115
+ * case — `tee:user` has not yet been migrated for this DID).
116
+ *
117
+ * Backed by the `tee:user/get-self-eth-address` contract function,
118
+ * which delegates to the signing host's `get-user-eth-address`
119
+ * primitive (T3-TS-027 §7.1). The request carries no body; the
120
+ * authenticated user's DID is read from session context by the host.
121
+ *
122
+ * Requires the session to be Authenticated (same precondition as
123
+ * {@link execute}).
124
+ *
125
+ * @throws if unauthenticated, if the node rejects the action, or if
126
+ * the response is not a JSON string / `null`.
127
+ */
128
+ getSelfEthAddress(): Promise<string | null>;
111
129
  /**
112
130
  * The server-minted session ID once handshake has completed, or
113
131
  * `null` beforehand (pentest M-1 / MAT-983).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terminal3/t3n-sdk",
3
- "version": "0.14.0",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "description": "T3n TypeScript SDK - A minimal SDK that mirrors the server's RPC handler approach",
6
6
  "main": "dist/index.js",