@terminal3/t3n-sdk 4.11.0 → 4.12.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
@@ -939,8 +939,9 @@ declare function parseContractResponse<T = unknown>(raw: string, schema?: Contra
939
939
  * `AGENT_AUTH_MAP` is keyed by the *user* DID — one policy document per
940
940
  * user, global across orgs, with at most one entry per agent DID. Reads
941
941
  * (`agent-auth-get`) and writes (`agent-auth-update`) on
942
- * `tee:user/contracts` are **SelfOnly**: only the user, authenticated as
943
- * themselves, may read or write their own grants. This is the user-approval
942
+ * `tee:authorisations/contracts` (the policy's owning contract) are
943
+ * **SelfOnly**: only the user, authenticated as themselves, may read or
944
+ * write their own grants. This is the user-approval
944
945
  * proof the per-call delegation credential's `user_sig` used to carry.
945
946
  *
946
947
  * The write shape gained `scopes` + a validity window: the
@@ -1974,8 +1975,9 @@ declare class T3nClient {
1974
1975
  /**
1975
1976
  * Read the authenticated user's own agent-auth policy — the standing
1976
1977
  * grants delegated to agents. Dispatches `agent-auth-get` on
1977
- * `tee:user/contracts`, which is **SelfOnly**, so this always returns the
1978
- * caller's own `AGENT_AUTH_MAP[self]` document.
1978
+ * `tee:authorisations/contracts` (the policy's owning contract), which is
1979
+ * **SelfOnly**, so this always returns the caller's own
1980
+ * `AGENT_AUTH_MAP[self]` document.
1979
1981
  *
1980
1982
  * @returns the full policy document (normalised to the camelCase write
1981
1983
  * shape): the per-agent `agents` entries plus the document-level
@@ -2044,6 +2046,14 @@ declare class T3nClient {
2044
2046
  * implicit.
2045
2047
  */
2046
2048
  private executeUserContract;
2049
+ /**
2050
+ * Same glue as {@link executeUserContract}, parameterised over the
2051
+ * target system contract — the agent-auth wrappers dispatch on
2052
+ * `tee:authorisations/contracts` (the authorisation policy's owning
2053
+ * contract) while the rest of the user-contract surface stays on
2054
+ * `tee:user/contracts`.
2055
+ */
2056
+ private executeSystemContract;
2047
2057
  /**
2048
2058
  * Return the authenticated user's Ethereum address from their
2049
2059
  * T3N-hosted per-user wallet, as a 0x-prefixed lowercase hex string.