@terminal3/t3n-sdk 4.16.0 → 4.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/dist/index.d.ts CHANGED
@@ -1883,11 +1883,9 @@ declare class T3nClient {
1883
1883
  * Like {@link getAuditEvents} / {@link execute}, this runs the
1884
1884
  * session-payload encryption: balance and ledger history are
1885
1885
  * self-only data, so the request params and response are sealed to
1886
- * the session key rather than sent plaintext over TLS. (Transitional:
1887
- * the node still accepts the legacy plaintext shape during the
1888
- * staggered rollout, so a leaked `Session-Id` alone is not fully
1889
- * de-fanged on this endpoint until the sealed shape becomes
1890
- * mandatory.)
1886
+ * the session key rather than sent plaintext over TLS. The node
1887
+ * **requires** the sealed shape — a bare `Session-Id` without a blob
1888
+ * that opens under the session key is rejected.
1891
1889
  */
1892
1890
  getUsage(opts?: GetUsageOptions): Promise<UsagePage>;
1893
1891
  /**
@@ -1897,10 +1895,9 @@ declare class T3nClient {
1897
1895
  * session-payload encryption: the balance is self-only data, so the
1898
1896
  * request (an empty sealed blob showing possession of the session
1899
1897
  * key) and the response are sealed to the session key rather than
1900
- * sent plaintext over TLS. (Transitional: the node still accepts the
1901
- * legacy plaintext shape during the staggered rollout.) Prefer this
1902
- * over reading `getUsage().balance` when only the credit row is
1903
- * needed.
1898
+ * sent plaintext over TLS. The node **requires** the sealed shape — a
1899
+ * bare `Session-Id` is not enough. Prefer this over reading
1900
+ * `getUsage().balance` when only the credit row is needed.
1904
1901
  */
1905
1902
  getBalance(): Promise<BalanceRow>;
1906
1903
  /**
@@ -2007,15 +2004,19 @@ declare class T3nClient {
2007
2004
  * returned exactly once here and is never persisted or recoverable
2008
2005
  * afterwards, so the caller must capture it immediately.
2009
2006
  *
2010
- * Atomic registration + card hosting: pass `options.agentUri` and the
2011
- * SAME transaction also writes the agent-registry record (URI + the
2012
- * org's publish-consent link, born together) and — unless
2013
- * `options.defaultCard === false` — hosts a PRIVATE card for the new
2014
- * agent in the org's `agent-cards` scope. The card body is
2007
+ * Atomic provisioning + card hosting: the SAME transaction mints the
2008
+ * agent, writes the agent-registry record (owner binding + the org's
2009
+ * publish-consent link), and — unless `options.defaultCard === false` —
2010
+ * hosts a PRIVATE card in the org's `agent-cards` scope. The card body is
2015
2011
  * `options.card` when given (object or pre-serialised JSON string);
2016
2012
  * otherwise the CONTRACT builds and hosts its default (which can even
2017
2013
  * name the agent DID, minted inside the same transaction).
2018
2014
  *
2015
+ * `options.agentUri` is **optional**: a T3N-hosted card is served at
2016
+ * `/api/agent-card/<did>`, so an agent needs no external URI. Pass one
2017
+ * only to record an external endpoint in the DID document's
2018
+ * `AgentService`; the card is hosted either way.
2019
+ *
2019
2020
  * The card is deliberately NOT published: an org-bound agent must not
2020
2021
  * become world-discoverable as a side effect of provisioning. Publish
2021
2022
  * explicitly with `agentCardPublish` (one call — the consent link