@terminal3/t3n-sdk 5.20.0 → 5.22.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
@@ -1232,25 +1232,6 @@ interface BoundGrant {
1232
1232
  /** Agent edge only: optional validity time-box. */
1233
1233
  window?: Validity;
1234
1234
  }
1235
- /**
1236
- * Capability grant in the pre-collapse (`UserGrant`) wire shape — the element
1237
- * of the legacy `org-policy-set-grants` input and `org-grants-get` output. The
1238
- * grantee is carried as `user_did` (not `grantee`), and there is no
1239
- * `contract_id` on the element (the enclosing {@link OrgContractGrants} carries
1240
- * it) nor any agent-edge qualifiers.
1241
- *
1242
- * @deprecated Use {@link BoundGrant}. Retained so consumers on the legacy
1243
- * org-grant vocabulary keep compiling and decoding while the contract still
1244
- * emits this shape during the delegation-vocabulary deprecation window.
1245
- */
1246
- interface UserGrant {
1247
- /** The user this grant applies to (`did:t3n:<40-hex>`). */
1248
- user_did: string;
1249
- /** WIT function names the user may invoke (e.g. `"set-records"`). */
1250
- functions: string[];
1251
- /** Data scope paths the user may access (e.g. `"example/records"`). */
1252
- scopes: string[];
1253
- }
1254
1235
  /**
1255
1236
  * Policy record for an organisation's data tier.
1256
1237
  *
@@ -1406,29 +1387,6 @@ interface OrgContractDelegation {
1406
1387
  * for their shape.
1407
1388
  */
1408
1389
  declare function isOrgContractDelegation(value: unknown): value is OrgContractDelegation;
1409
- /**
1410
- * Response type alias for the legacy `org-grants-get`.
1411
- *
1412
- * Same envelope as {@link OrgContractDelegation} (`contract_id` + a grant
1413
- * list), but each grant is the legacy {@link UserGrant} shape (`user_did`
1414
- * rather than `grantee`), matching what the contract emits during the
1415
- * deprecation window.
1416
- *
1417
- * @deprecated Use {@link OrgContractDelegation}.
1418
- */
1419
- interface OrgContractGrants {
1420
- contract_id: string;
1421
- grants: UserGrant[];
1422
- }
1423
- /**
1424
- * Shallow runtime guard for {@link OrgContractGrants}. Validates the immediate
1425
- * envelope (`contract_id: string`, `grants: array`) only — the same structural
1426
- * check as {@link isOrgContractDelegation}, since the two responses share an
1427
- * envelope and differ only in the grant element shape.
1428
- *
1429
- * @deprecated Use {@link isOrgContractDelegation}.
1430
- */
1431
- declare function isOrgContractGrants(value: unknown): value is OrgContractGrants;
1432
1390
  /**
1433
1391
  * One grant inside a role: a capability body (functions + scopes, without the
1434
1392
  * grantee, which is bound at assignment time) plus the target contract.
@@ -1910,163 +1868,6 @@ interface RemoveTarget {
1910
1868
  contract_id?: string;
1911
1869
  }
1912
1870
 
1913
- /**
1914
- * Agent-auth grants — the pre-collapse (camelCase) delegation surface, retained
1915
- * as a deprecated compatibility layer alongside the flat, snake_case
1916
- * {@link MemberDelegationDoc} surface in `./member-delegation`.
1917
- *
1918
- * `AGENT_AUTH_MAP` is keyed by the *user* DID — one policy document per user,
1919
- * global across orgs, with at most one entry per agent DID. Reads
1920
- * (`agent-auth-get`) and writes (`agent-auth-update`) on
1921
- * `tee:authorisations/contracts` (the policy's owning contract) are
1922
- * **SelfOnly**: only the user, authenticated as themselves, may read or write
1923
- * their own grants.
1924
- *
1925
- * The write shape carries `scopes` + a validity window: the agent's delegated
1926
- * org-data scopes, and an optional `[valid_from_secs, valid_until_secs]`
1927
- * window. The ≤ cap *length* check is enforced contract-side at write time; the
1928
- * expiry gate is host-side at read time.
1929
- *
1930
- * The merge below is a script-level union: writing a grant for one
1931
- * `(agent_did, script_name)` preserves every other script row on that agent's
1932
- * entry, and every other agent's entry, unchanged.
1933
- *
1934
- * @deprecated Use `./member-delegation` (`MemberDelegationDoc`,
1935
- * `parseMemberDelegationDoc`, `mergeGrants`) and the `*MemberDelegation*`
1936
- * client methods. This module maps onto the legacy `agent-auth-*` wire the
1937
- * contract still accepts during the delegation-vocabulary deprecation window.
1938
- */
1939
-
1940
- /**
1941
- * A single script grant in the camelCase write-request shape.
1942
- *
1943
- * @deprecated Use `BoundGrant` from `../org-data/types`.
1944
- */
1945
- interface AgentAuthScriptGrant {
1946
- /** Contract name, or `"*"`. */
1947
- scriptName: string;
1948
- /** Optional semver requirement; `null` to match any version. */
1949
- versionReq?: string | null;
1950
- /** Functions the agent may invoke on this contract. */
1951
- functions: string[];
1952
- /** Org-data scopes delegated to the agent for the contract functions to
1953
- * read on its behalf. */
1954
- scopes?: string[];
1955
- /** Direct-read scopes the agent may enumerate itself, via whichever read
1956
- * function the contract exposes for direct enumeration. A strict subset of
1957
- * `scopes` (enforced contract-side). */
1958
- readScopes?: string[];
1959
- /** Optional validity-window start (unix seconds). */
1960
- validFromSecs?: number | null;
1961
- /** Optional validity-window end (unix seconds). */
1962
- validUntilSecs?: number | null;
1963
- /** Egress hosts the agent may reach for this contract. */
1964
- allowedHosts: string[];
1965
- }
1966
- /**
1967
- * One agent's entry in the write-request shape.
1968
- *
1969
- * @deprecated Use the flat `BoundGrant` list on `MemberDelegationDoc`.
1970
- */
1971
- interface AgentAuthEntry {
1972
- agentDid: string;
1973
- scripts: AgentAuthScriptGrant[];
1974
- }
1975
- /**
1976
- * The full agent-auth policy document in the camelCase write shape:
1977
- * the per-agent grants plus the document-level discovery grants.
1978
- *
1979
- * `discoverDids` (contract wire: `discover_dids`) is the list of DIDs the user
1980
- * lets their registered agents *enumerate the contracts of* via
1981
- * `listContracts`: an org DID grants org-mode discovery, the user's own DID
1982
- * grants self-mode discovery. It lives at document level — not on a script
1983
- * grant — because discovery must surface contracts the agent cannot yet call.
1984
- * The node's discovery gate additionally requires the calling agent to be named
1985
- * in `agents` (subject binding), so an unregistered agent discovers nothing
1986
- * regardless of this list.
1987
- *
1988
- * Every entry must be a canonical `did:t3n:<40-hex>` identifier. The legacy
1989
- * document is converted onto the current one before it is stored, and that
1990
- * conversion decodes each entry, so anything else refuses the write with the
1991
- * failing index named.
1992
- *
1993
- * @deprecated Use {@link MemberDelegationDoc}.
1994
- */
1995
- interface AgentAuthPolicy {
1996
- agents: AgentAuthEntry[];
1997
- /** Document-level discovery grants (`did:t3n:<40-hex>` entries). */
1998
- discoverDids: string[];
1999
- }
2000
- /**
2001
- * Parse a full `agent-auth-get` response (the stored snake_case policy
2002
- * document) into the camelCase write shape, including the document-level
2003
- * `discover_dids`. A `null` / absent response is the empty policy.
2004
- *
2005
- * @deprecated Use `parseMemberDelegationDoc`.
2006
- */
2007
- declare function parseAgentAuthPolicy(response: unknown): AgentAuthPolicy;
2008
- /**
2009
- * Extract the `agents` array from an `agent-auth-get` response.
2010
- *
2011
- * @deprecated Read `MemberDelegationDoc.grants` instead.
2012
- */
2013
- declare function parseAgentAuthGet(response: unknown): AgentAuthEntry[];
2014
- /** @deprecated Use `GrantsMergeResult` from `./member-delegation`. */
2015
- interface AgentAuthMergeResult {
2016
- /** Full merged `agents` list, ready for `agent-auth-update`. */
2017
- agents: AgentAuthEntry[];
2018
- /** `"<agentDid> → <scriptName>"` rows preserved from the existing policy. */
2019
- preservedRows: string[];
2020
- }
2021
- /**
2022
- * Input to the full-document write {@link T3nClient.agentAuthUpdate}. The
2023
- * document IS the new state: an empty `agents` list revokes all agent access,
2024
- * and an omitted / empty `discoverDids` persists an empty discovery-grant list
2025
- * (the contract has no per-field merge). Mirrors the contract `AgentAuthPolicy`.
2026
- *
2027
- * @deprecated Use {@link MemberDelegationDoc}.
2028
- */
2029
- interface AgentAuthUpdateInput {
2030
- agents: AgentAuthEntry[];
2031
- /** Document-level discovery grants — see {@link AgentAuthPolicy}. */
2032
- discoverDids?: string[];
2033
- }
2034
- /**
2035
- * Serialise a camelCase policy document to the contract's canonical snake_case
2036
- * `agent-auth-update` wire (`agent_did` / `script_name` / `version_req` /
2037
- * `read_scopes` / `valid_from_secs` / `valid_until_secs` / `allowed_hosts` /
2038
- * `discover_dids`). Absent optionals are omitted (never sent as `null`); empty
2039
- * `scopes` / `read_scopes` are omitted (the contract defaults both to empty).
2040
- * `functions` and `allowed_hosts` are always emitted — the contract requires
2041
- * explicit functions (`["*"]` = all) and reads an absent `allowed_hosts` as
2042
- * deny-all egress. The document-level `discover_dids` is emitted only when
2043
- * non-empty; the contract defaults an absent list to empty.
2044
- *
2045
- * Discovery DIDs are copied through verbatim — no canonicalisation, no dedupe —
2046
- * so a non-canonical or repeated entry is refused by the contract rather than
2047
- * quietly repaired here. Build the list with `mergeDiscoverDids`.
2048
- *
2049
- * @deprecated The new write path passes `MemberDelegationDoc` straight through
2050
- * with no casing transform.
2051
- */
2052
- declare function toAgentAuthUpdateWire(agents: AgentAuthEntry[], discoverDids?: string[]): {
2053
- agents: Array<{
2054
- agent_did: string;
2055
- scripts: Array<Record<string, unknown>>;
2056
- }>;
2057
- discover_dids?: string[];
2058
- };
2059
- /**
2060
- * Merge new agent entries into the existing policy with script-level union
2061
- * semantics: for an agent DID present on both sides, script rows whose
2062
- * `scriptName` is not being written are preserved; rows with a matching
2063
- * `scriptName` are replaced by the new grant. Entries for other agent DIDs
2064
- * pass through unchanged.
2065
- *
2066
- * @deprecated Use `mergeGrants` from `./member-delegation`.
2067
- */
2068
- declare function mergeAgentAuthEntries(existing: AgentAuthEntry[], newEntries: AgentAuthEntry[]): AgentAuthMergeResult;
2069
-
2070
1871
  /**
2071
1872
  * KYC types for the `tee:user/contracts::kyc-status` short-poll
2072
1873
  * function.
@@ -3074,6 +2875,14 @@ declare class T3nClient {
3074
2875
  */
3075
2876
  private finalizedPayload;
3076
2877
  private did;
2878
+ /**
2879
+ * Address the last OIDC login proved, read from its `Finish` reply.
2880
+ * `null` when the login proved none — the claim its provider row governs
2881
+ * carried no usable address — which is the case that still needs
2882
+ * `otpRequest` / `otpVerify` before `submitUserInput`.
2883
+ * Exposed through {@link getProvenEmail}.
2884
+ */
2885
+ private provenEmail;
3077
2886
  private handshakeResult;
3078
2887
  constructor(config: T3nClientConfig);
3079
2888
  /**
@@ -3130,7 +2939,9 @@ declare class T3nClient {
3130
2939
  * Validates the `oidc_auth_action` tag before reading `did`: a decodable but
3131
2940
  * non-`Finish` reply is reported as such rather than silently misread as a
3132
2941
  * missing DID (which would discard whatever the server actually said). Returns
3133
- * the session {@link Did}.
2942
+ * the session {@link Did}, and records the reply's `proven_email` — absent on
2943
+ * the workload reply and on any node older than the field — for
2944
+ * {@link getProvenEmail}.
3134
2945
  */
3135
2946
  private parseFinishDid;
3136
2947
  /**
@@ -4100,68 +3911,6 @@ declare class T3nClient {
4100
3911
  * too many delegatees/grants).
4101
3912
  */
4102
3913
  memberDelegationUpdate(input: MemberDelegationDoc): Promise<void>;
4103
- /**
4104
- * Revoke the caller's own agent delegations scoped to one org (detach-cascade
4105
- * `agent_auth` half). Dispatches `agent-auth-revoke-org` on
4106
- * `tee:user/contracts` (**SelfOnly**): every grant targeting a `z:<orgTid>:*`
4107
- * contract is removed from the caller's own delegation document.
4108
- *
4109
- * @param orgTid - the org's z-space tenant id (`did:t3n:<hex>` or bare
4110
- * 40-hex) — i.e. the `<tid>` in the org's `z:<tid>:…` contract names
4111
- * @deprecated Use {@link T3nClient.revokeMemberDelegationForOrg}.
4112
- */
4113
- revokeAgentAuthForOrg(orgTid: string): Promise<void>;
4114
- /**
4115
- * Read the authenticated user's own agent-auth policy — the standing grants
4116
- * delegated to agents — in the legacy camelCase shape. Dispatches
4117
- * `agent-auth-get` on `tee:authorisations/contracts` (**SelfOnly**), so this
4118
- * always returns the caller's own policy document.
4119
- *
4120
- * @returns the full policy document normalised to the camelCase write shape:
4121
- * the per-agent `agents` entries plus the document-level `discoverDids`
4122
- * discovery grants
4123
- * @throws if the session is not authenticated, or the contract refuses
4124
- * @deprecated Use {@link T3nClient.getMemberDelegation}.
4125
- */
4126
- getAgentAuth(): Promise<AgentAuthPolicy>;
4127
- /**
4128
- * Authorise an agent for one contract on the caller's own behalf, in the
4129
- * legacy camelCase shape. Read-merge-writes the caller's policy document via
4130
- * `agent-auth-update` (**SelfOnly**) with script-level union semantics, so
4131
- * other contracts' grants for this or any agent survive untouched.
4132
- *
4133
- * @param agentDid - the agent DID being authorised
4134
- * @param grant - the single script grant to set (contract, functions,
4135
- * scopes, validity, egress hosts)
4136
- * @param options - optional `discoverDids` to union into the document's
4137
- * discovery grants
4138
- * @returns the script rows preserved from the existing policy (audit aid)
4139
- * @throws if the session is not authenticated, or the contract refuses
4140
- * @deprecated Use {@link T3nClient.updateMemberDelegation} (note it drops the
4141
- * leading `agentDid` argument — the `grantee` lives on the grant).
4142
- */
4143
- updateAgentAuth(agentDid: string, grant: AgentAuthScriptGrant, options?: {
4144
- discoverDids?: string[];
4145
- }): Promise<{
4146
- preservedRows: string[];
4147
- }>;
4148
- /**
4149
- * Replace this user's agent-authorisation policy in the legacy camelCase
4150
- * shape (`tee:authorisations/contracts` → `agent-auth-update`). The supplied
4151
- * document IS the new state: an empty `agents` array revokes all agent
4152
- * access, and an omitted `discoverDids` persists an empty discovery-grant
4153
- * list. Use {@link T3nClient.updateAgentAuth} for the single-grant
4154
- * read-merge-write.
4155
- *
4156
- * The SDK emits the canonical snake_case wire via {@link toAgentAuthUpdateWire}
4157
- * (carrying `scopes` / `read_scopes` / validity alongside `functions` /
4158
- * `allowed_hosts`, plus the document-level `discover_dids`).
4159
- *
4160
- * @throws {RpcError} if the contract rejects the policy (validation failure,
4161
- * too many agents/grants).
4162
- * @deprecated Use {@link T3nClient.memberDelegationUpdate}.
4163
- */
4164
- agentAuthUpdate(input: AgentAuthUpdateInput): Promise<void>;
4165
3914
  /**
4166
3915
  * Add a batch of grants to the caller's own delegation edges
4167
3916
  * (`tee:authorisations/contracts` → `member-delegation-add-grants`,
@@ -4290,6 +4039,14 @@ declare class T3nClient {
4290
4039
  getSessionId(): SessionId | null;
4291
4040
  getStatus(): SessionStatus;
4292
4041
  getDid(): Did | null;
4042
+ /**
4043
+ * The address the last OIDC login proved, or `null` if it proved none.
4044
+ *
4045
+ * Lets a caller prompt for an address at the point of entry rather than
4046
+ * discovering it is missing from an `email_not_verified` refusal on
4047
+ * `submitUserInput`. A node older than this field always reports `null`.
4048
+ */
4049
+ getProvenEmail(): string | null;
4293
4050
  getLastSetCookie(): string | null;
4294
4051
  getLastResponseHeaders(): Record<string, string>;
4295
4052
  isAuthenticated(): boolean;
@@ -4812,26 +4569,6 @@ interface OrgDelegationDeleteInput {
4812
4569
  orgDid: string;
4813
4570
  contractId: string;
4814
4571
  }
4815
- /**
4816
- * Legacy input for {@link OrgDataClient.setGrants}. Carries the full
4817
- * {@link UserGrant} list verbatim (grantee as `user_did`).
4818
- *
4819
- * @deprecated Use {@link OrgDelegationSetInput}.
4820
- */
4821
- interface SetGrantsInput {
4822
- orgDid: string;
4823
- contractId: string;
4824
- grants: UserGrant[];
4825
- }
4826
- /**
4827
- * Legacy input for {@link OrgDataClient.deleteGrants}.
4828
- *
4829
- * @deprecated Use {@link OrgDelegationDeleteInput}.
4830
- */
4831
- interface DeleteGrantsInput {
4832
- orgDid: string;
4833
- contractId: string;
4834
- }
4835
4572
  /**
4836
4573
  * Add a batch of org→grantee grants via {@link OrgDataClient.addDelegationGrants}.
4837
4574
  *
@@ -5014,16 +4751,6 @@ interface OrgRemoveMemberDelegationInput {
5014
4751
  /** DID (`did:t3n:<40-hex>` or bare hex) to drop from every grant list. */
5015
4752
  memberDid: string;
5016
4753
  }
5017
- /**
5018
- * Legacy input for {@link OrgDataClient.removeMemberGrants}.
5019
- *
5020
- * @deprecated Use {@link OrgRemoveMemberDelegationInput}.
5021
- */
5022
- interface RemoveMemberGrantsInput {
5023
- orgDid: string;
5024
- /** DID (`did:t3n:<40-hex>` or bare hex) to drop from every grant list. */
5025
- memberDid: string;
5026
- }
5027
4754
  interface PolicyGetInput {
5028
4755
  orgDid: string;
5029
4756
  }
@@ -5035,15 +4762,6 @@ interface OrgDelegationGetInput {
5035
4762
  orgDid: string;
5036
4763
  contractId: string;
5037
4764
  }
5038
- /**
5039
- * Legacy input for {@link OrgDataClient.grantsGet}.
5040
- *
5041
- * @deprecated Use {@link OrgDelegationGetInput}.
5042
- */
5043
- interface GrantsGetInput {
5044
- orgDid: string;
5045
- contractId: string;
5046
- }
5047
4765
  interface DataListInput {
5048
4766
  orgDid: string;
5049
4767
  scope: string;
@@ -5186,15 +4904,6 @@ declare class OrgDataClient {
5186
4904
  * Delete the grant entry for a contract entirely.
5187
4905
  */
5188
4906
  deleteDelegation(input: OrgDelegationDeleteInput): Promise<MutationResponse>;
5189
- /**
5190
- * Full replacement of the user-grant list for a contract, in the legacy
5191
- * `UserGrant` wire shape (grantee as `user_did`). Passing an empty list
5192
- * removes the entry. Dispatches the legacy `org-policy-set-grants` function
5193
- * the contract still accepts during the deprecation window.
5194
- *
5195
- * @deprecated Use {@link OrgDataClient.setDelegation}.
5196
- */
5197
- setGrants(input: SetGrantsInput): Promise<MutationResponse>;
5198
4907
  /**
5199
4908
  * Add a batch of org→grantee grants (org-admin only).
5200
4909
  *
@@ -5211,13 +4920,6 @@ declare class OrgDataClient {
5211
4920
  * verbatim (each already carries its `contract_id`).
5212
4921
  */
5213
4922
  addDelegationGrants(input: OrgDelegationAddGrantsInput): Promise<MutationResponse>;
5214
- /**
5215
- * Delete the grant entry for a contract entirely, via the legacy
5216
- * `org-policy-delete-grants` function.
5217
- *
5218
- * @deprecated Use {@link OrgDataClient.deleteDelegation}.
5219
- */
5220
- deleteGrants(input: DeleteGrantsInput): Promise<MutationResponse>;
5221
4923
  /**
5222
4924
  * Remove a batch of `(grantee, contract_id)` org grants (org-admin only).
5223
4925
  *
@@ -5374,13 +5076,6 @@ declare class OrgDataClient {
5374
5076
  * `deleted_entries` reports how many contract grant lists were rewritten.
5375
5077
  */
5376
5078
  removeMemberDelegation(input: OrgRemoveMemberDelegationInput): Promise<MutationResponse>;
5377
- /**
5378
- * Detach-cascade grant sweep via the legacy `org-remove-member-grants`
5379
- * function.
5380
- *
5381
- * @deprecated Use {@link OrgDataClient.removeMemberDelegation}.
5382
- */
5383
- removeMemberGrants(input: RemoveMemberGrantsInput): Promise<MutationResponse>;
5384
5079
  /** Read the policy metadata for an org (admin-only). */
5385
5080
  policyGet(input: PolicyGetInput): Promise<OrgPolicyMeta>;
5386
5081
  /**
@@ -5438,13 +5133,6 @@ declare class OrgDataClient {
5438
5133
  * live is still returned.
5439
5134
  */
5440
5135
  getDelegation(input: OrgDelegationGetInput): Promise<OrgContractDelegation>;
5441
- /**
5442
- * Read the grant list for a contract (admin-only) in the legacy `UserGrant`
5443
- * wire shape, via the legacy `org-grants-get` function.
5444
- *
5445
- * @deprecated Use {@link OrgDataClient.getDelegation}.
5446
- */
5447
- grantsGet(input: GrantsGetInput): Promise<OrgContractGrants>;
5448
5136
  /**
5449
5137
  * List entry IDs for a scope (admin-only), paginated.
5450
5138
  *
@@ -5553,20 +5241,8 @@ declare class SessionOrgDataClient {
5553
5241
  setDelegation(input: OrgDelegationSetInput): Promise<MutationResponse>;
5554
5242
  /** Mirrors {@link OrgDataClient.deleteDelegation}. */
5555
5243
  deleteDelegation(input: OrgDelegationDeleteInput): Promise<MutationResponse>;
5556
- /**
5557
- * Mirrors {@link OrgDataClient.setGrants}.
5558
- *
5559
- * @deprecated Use {@link SessionOrgDataClient.setDelegation}.
5560
- */
5561
- setGrants(input: SetGrantsInput): Promise<MutationResponse>;
5562
5244
  /** Mirrors {@link OrgDataClient.addDelegationGrants}. */
5563
5245
  addDelegationGrants(input: OrgDelegationAddGrantsInput): Promise<MutationResponse>;
5564
- /**
5565
- * Mirrors {@link OrgDataClient.deleteGrants}.
5566
- *
5567
- * @deprecated Use {@link SessionOrgDataClient.deleteDelegation}.
5568
- */
5569
- deleteGrants(input: DeleteGrantsInput): Promise<MutationResponse>;
5570
5246
  /** Mirrors {@link OrgDataClient.removeDelegationGrants}. */
5571
5247
  removeDelegationGrants(input: OrgDelegationRemoveGrantsInput): Promise<MutationResponse>;
5572
5248
  /**
@@ -5625,12 +5301,6 @@ declare class SessionOrgDataClient {
5625
5301
  purgeOrg(input: PurgeOrgInput): Promise<MutationResponse>;
5626
5302
  /** Mirrors {@link OrgDataClient.removeMemberDelegation}. */
5627
5303
  removeMemberDelegation(input: OrgRemoveMemberDelegationInput): Promise<MutationResponse>;
5628
- /**
5629
- * Mirrors {@link OrgDataClient.removeMemberGrants}.
5630
- *
5631
- * @deprecated Use {@link SessionOrgDataClient.removeMemberDelegation}.
5632
- */
5633
- removeMemberGrants(input: RemoveMemberGrantsInput): Promise<MutationResponse>;
5634
5304
  /** Mirrors {@link OrgDataClient.policyGet}. */
5635
5305
  policyGet(input: PolicyGetInput): Promise<OrgPolicyMeta>;
5636
5306
  /** Mirrors {@link OrgDataClient.policyView}. */
@@ -5641,12 +5311,6 @@ declare class SessionOrgDataClient {
5641
5311
  writersGet(input: WritersGetInput): Promise<OrgWriters>;
5642
5312
  /** Mirrors {@link OrgDataClient.getDelegation}. */
5643
5313
  getDelegation(input: OrgDelegationGetInput): Promise<OrgContractDelegation>;
5644
- /**
5645
- * Mirrors {@link OrgDataClient.grantsGet}.
5646
- *
5647
- * @deprecated Use {@link SessionOrgDataClient.getDelegation}.
5648
- */
5649
- grantsGet(input: GrantsGetInput): Promise<OrgContractGrants>;
5650
5314
  /** Mirrors {@link OrgDataClient.dataList}. */
5651
5315
  dataList(input: DataListInput): Promise<DataListResponse>;
5652
5316
  /** Mirrors {@link OrgDataClient.dataGet}. */
@@ -6886,5 +6550,5 @@ declare function tenantDidHex(tenantDid: string): string;
6886
6550
  declare function validateTail(tail: string): string;
6887
6551
  declare function canonicalTenantName(tenantDid: string, tail: string): string;
6888
6552
 
6889
- export { AGENT_CARDS_SCOPE, AuthMethod, AuthenticationError, BASE_UNITS_PER_TOKEN, ContractResponseError, DEFAULT_ENVIRONMENT, DEFAULT_INDIVIDUAL_THRESHOLD_CENTS, DEFAULT_KYC_POLL_CADENCE, HandshakeError, HttpTransport, InvokeError, KycStatusTimeoutError, LogLevel, MockTransport, NODE_URLS, OrgDataClient, OtpRateLimitedError, RpcError, SessionExpiredError, SessionOrgDataClient, SessionStateError, SessionStatus, SessionUsageReportClient, T3nClient, T3nConfigError, T3nError, TERMINAL_KYC_STATUSES, TOKEN_DECIMALS, TenantClient, TenantContractsNamespace, TenantMapsNamespace, TenantNamespace, TenantSdkValidationError, TenantTokenNamespace, UnsupportedTenantSdkOperationError, UserUpsertError, WasmError, WireEncodingError, Z_PAYROLL_AUDIT_READ_FUNCTIONS, Z_PAYROLL_RUN_FUNCTIONS, _b64uEncode, assertShape, b64uDecodeStrict, b64uEncodeBytes, buildSecretWriteArgs, bytesToString, canonicalTenantName, clearKeyCache, clearManifestVersionFloor, compactDidFromBytes, createDefaultHandlers, createEmailOtpAuthInput, createEthAuthInput, createLogger, createMlKemPublicKeyHandler, createOidcAuthInput, createOrgDataClientFromSession, createRandomHandler, createUsageReportClientFromSession, createWorkloadAuthInput, decodeWasmErrorMessage, deriveAgentCardEntryId, detectQuoteVendor, discoverCheckDelegation, discoverDescribeContract, discoverDescribeFunction, discoverListContracts, discoverWhoami, eth_get_address, extractWasmError, fanOutGrant, fetchDkgAttestation, fetchMlKemPublicKey, fetchSevSnpCollateral, fetchTrustedManifest, formatTokens, generateRandomString, generateUUID, getContractVersion, getEnvironment, getEnvironmentName, getGlobalLogLevel, getLogger, getNodeUrl, invoke, isAgentCardResponse, isAgentEgressGetResponse, isContractAgentCountsResponse, isDataGetResponse, isDataListResponse, isListAgentsResponse, isListHumanMembersResponse, isMutationResponse, isObject, isOrgAdminStatus, isOrgContractDelegation, isOrgContractGrants, isOrgPolicyMeta, isOrgPolicyView, isOrgUsageReport, isOrgWriters, isRoleAssignmentsResponse, isRoleGetResponse, isSecretListResponse, isSecretRecord, isSecretView, isUnsafeTrustServer, loadConfig, loadWasmComponent, manifestToTrustAnchor, maskKeyMaterial, mergeAgentAuthEntries, mergeDiscoverDids, mergeGrants, metamask_get_address, metamask_sign, parseAgentAuthGet, parseAgentAuthPolicy, parseContractResponse, parseMemberDelegationDoc, readOnlyScopes, redactSecrets, redactSecretsFromJson, requestToWire, resolveTrustAnchor, setEnvironment, setGlobalLogLevel, setNodeUrl, sevSnpVcekUrl, stringToBytes, tenantDidHex, toAgentAuthUpdateWire, toBaseUnits, validateConfig, validateTail, verifyDkgAttestation, verifyManifestSignature, verifySevSnpReport, verifyTdxQuote };
6890
- export type { ActivityCallerType, ActivityEntry, ActivityExportFile, ActivityExportStatus, ActivityOutcome, ActivityReport, AdminActionAuth, AdmitForOrgOptions, AgentAuthEntry, AgentAuthMergeResult, AgentAuthPolicy, AgentAuthScriptGrant, AgentAuthUpdateInput, AgentCardRefInput, AgentCardResponse, AgentCardSetInput, AgentEgressEntry, AgentEgressGetResponse, AgentEgressRefInput, AgentSummary, AssignRolesInput, AuthInput, BalanceRow, BoundGrant, ChargeReason, ClientAuth, ClientHandshake, ComputePayrollRequest, ConfigValidationResult, ContractAgentCountsInput, ContractAgentCountsResponse, ContractDescriptorDocument, ContractDescriptorFacets, ContractExecuteInput, ContractKind, ContractLifecycleStatus, ContractListDetailedOptions, ContractListDetailedPage, ContractPublishInput, ContractRegisterResult, ContractResponseSchema, ContractSetDescriptorInput, ContractUnsetDescriptorInput, ContractUnsetDescriptorResult, CreatePolicyInput, DataGetInput, DataGetResponse, DataListInput, DataListResponse, DelegationGrantKind, DelegationGrantRef, DeleteDataInput, DeleteGrantsInput, DeleteScopeInput, DescribeContractParams, DescribeContractResult, DescribeFunctionParams, DescribeFunctionResult, DetailedContract, Did, DidKind, Direction, DiscoverOptions, DkgAttestation, DkgVerifyResult, DrainContractAgentCountsInput, EmailOtpAuthInput, EmailOtpCredentials, Environment, EthAuthInput, ExecuteBusinessContractOptions, ExecuteOrgDataActionOptions, ExportActivityLogOptions, FetchTrustedManifestOptions, FunctionDescriptorEntry, GetActivityLogOptions, GetUsageOptions, GrantCheckParams, GrantCheckResult, GranteeInput, GrantsGetInput, GrantsMergeResult, GuestToHostHandler, GuestToHostHandlers, HandshakeResult, HumanMember, InvokeOptions, InvokeRequest, JsonRpcRequest, JsonRpcResponse, KycPollCadence, KycPollOptions, KycStatus, KycStatusKind, ListAgentsInput, ListAgentsResponse, ListContractsParams, ListContractsResult, ListContractsScope, ListHumanMembersInput, ListHumanMembersResponse, ListedContract, Logger, MapCreateInput, MapLifecycleStatus, MapResponse, MapUpdateInput, MapVisibility, MemberDelegationDoc, MemberRole, MutationResponse, OidcAuthInput, OidcCredentials, OrgAdminStatus, OrgContractDelegation, OrgContractGrants, OrgDataActionWire, OrgDataClientOptions, OrgDelegationAddGrantsInput, OrgDelegationDeleteInput, OrgDelegationGetInput, OrgDelegationRemoveGrantsInput, OrgDelegationSetInput, OrgPolicyMeta, OrgPolicyView, OrgRemoveGrantTarget, OrgRemoveMemberDelegationInput, OrgUsageReport, OrgUsageReportInput, OrgWriters, OtpChannel, OtpMergeSuggestion, OtpRequestInput, OtpRequestResult, OtpVerifyInput, OtpVerifyResult, PayrollRunRequest, PeerQuoteResult, PolicyGetInput, PurgeOrgInput, QuoteVerifyResult, ReaderSet, RemoveMemberGrantsInput, RemoveTarget, RoleAssignments, RoleAssignmentsResponse, RoleDefinition, RoleGetResponse, RoleGrant, RoleIdInput, ScopeAccessVerb, SdkConfig, SecretKind, SecretListInput, SecretListResponse, SecretNameInput, SecretRecord, SecretSetValueInput, SecretView, SecretWriteInput, SessionCrypto, SessionId, SetAgentEgressInput, SetDefaultQuotasOptions, SetGrantsInput, SetRoleInput, SetWritersInput, SevSnpCollateral, SevSnpVerifyResult, SignedTrustManifest, StringEncoding, SubmitUserInputArgs, SubmitUserInputResult, T3nClientConfig, TenantAdmitProjection, TenantAdmitStatus, TenantBaseClient, TenantClientConfig, TenantContractExecuteInput, TenantContractPublishInput, TenantContractSetDescriptorInput, TenantContractUnsetDescriptorInput, TenantExecutionSession, TenantMapCreateInput, TenantMapUpdatePatch, TenantMeResponse, TenantSdkEnvironment, TenantSelfAdmitResult, TenantStatus, TenantTargetOptions, TokenTxKind, Transport, TrustAnchor, TrustAnchorOrUnsafe, TrustAnchorSource, TrustManifestPayload, UnassignRolesInput, UnsafeTrustServer, UpdateMetaInput, UpdateQuotasOptions, UsageEntry, UsagePage, UsageReportSignature, UserGrant, UserInputProfile, UserUpsertErrorKind, Validity, VcekUrlResult, WasmComponent, WasmNextResult, WhoamiResult, WireBlock, WireScope, WorkloadAuthInput, WriteDataInput, WriterSet, WritersGetInput };
6553
+ export { AGENT_CARDS_SCOPE, AuthMethod, AuthenticationError, BASE_UNITS_PER_TOKEN, ContractResponseError, DEFAULT_ENVIRONMENT, DEFAULT_INDIVIDUAL_THRESHOLD_CENTS, DEFAULT_KYC_POLL_CADENCE, HandshakeError, HttpTransport, InvokeError, KycStatusTimeoutError, LogLevel, MockTransport, NODE_URLS, OrgDataClient, OtpRateLimitedError, RpcError, SessionExpiredError, SessionOrgDataClient, SessionStateError, SessionStatus, SessionUsageReportClient, T3nClient, T3nConfigError, T3nError, TERMINAL_KYC_STATUSES, TOKEN_DECIMALS, TenantClient, TenantContractsNamespace, TenantMapsNamespace, TenantNamespace, TenantSdkValidationError, TenantTokenNamespace, UnsupportedTenantSdkOperationError, UserUpsertError, WasmError, WireEncodingError, Z_PAYROLL_AUDIT_READ_FUNCTIONS, Z_PAYROLL_RUN_FUNCTIONS, _b64uEncode, assertShape, b64uDecodeStrict, b64uEncodeBytes, buildSecretWriteArgs, bytesToString, canonicalTenantName, clearKeyCache, clearManifestVersionFloor, compactDidFromBytes, createDefaultHandlers, createEmailOtpAuthInput, createEthAuthInput, createLogger, createMlKemPublicKeyHandler, createOidcAuthInput, createOrgDataClientFromSession, createRandomHandler, createUsageReportClientFromSession, createWorkloadAuthInput, decodeWasmErrorMessage, deriveAgentCardEntryId, detectQuoteVendor, discoverCheckDelegation, discoverDescribeContract, discoverDescribeFunction, discoverListContracts, discoverWhoami, eth_get_address, extractWasmError, fanOutGrant, fetchDkgAttestation, fetchMlKemPublicKey, fetchSevSnpCollateral, fetchTrustedManifest, formatTokens, generateRandomString, generateUUID, getContractVersion, getEnvironment, getEnvironmentName, getGlobalLogLevel, getLogger, getNodeUrl, invoke, isAgentCardResponse, isAgentEgressGetResponse, isContractAgentCountsResponse, isDataGetResponse, isDataListResponse, isListAgentsResponse, isListHumanMembersResponse, isMutationResponse, isObject, isOrgAdminStatus, isOrgContractDelegation, isOrgPolicyMeta, isOrgPolicyView, isOrgUsageReport, isOrgWriters, isRoleAssignmentsResponse, isRoleGetResponse, isSecretListResponse, isSecretRecord, isSecretView, isUnsafeTrustServer, loadConfig, loadWasmComponent, manifestToTrustAnchor, maskKeyMaterial, mergeDiscoverDids, mergeGrants, metamask_get_address, metamask_sign, parseContractResponse, parseMemberDelegationDoc, readOnlyScopes, redactSecrets, redactSecretsFromJson, requestToWire, resolveTrustAnchor, setEnvironment, setGlobalLogLevel, setNodeUrl, sevSnpVcekUrl, stringToBytes, tenantDidHex, toBaseUnits, validateConfig, validateTail, verifyDkgAttestation, verifyManifestSignature, verifySevSnpReport, verifyTdxQuote };
6554
+ export type { ActivityCallerType, ActivityEntry, ActivityExportFile, ActivityExportStatus, ActivityOutcome, ActivityReport, AdminActionAuth, AdmitForOrgOptions, AgentCardRefInput, AgentCardResponse, AgentCardSetInput, AgentEgressEntry, AgentEgressGetResponse, AgentEgressRefInput, AgentSummary, AssignRolesInput, AuthInput, BalanceRow, BoundGrant, ChargeReason, ClientAuth, ClientHandshake, ComputePayrollRequest, ConfigValidationResult, ContractAgentCountsInput, ContractAgentCountsResponse, ContractDescriptorDocument, ContractDescriptorFacets, ContractExecuteInput, ContractKind, ContractLifecycleStatus, ContractListDetailedOptions, ContractListDetailedPage, ContractPublishInput, ContractRegisterResult, ContractResponseSchema, ContractSetDescriptorInput, ContractUnsetDescriptorInput, ContractUnsetDescriptorResult, CreatePolicyInput, DataGetInput, DataGetResponse, DataListInput, DataListResponse, DelegationGrantKind, DelegationGrantRef, DeleteDataInput, DeleteScopeInput, DescribeContractParams, DescribeContractResult, DescribeFunctionParams, DescribeFunctionResult, DetailedContract, Did, DidKind, Direction, DiscoverOptions, DkgAttestation, DkgVerifyResult, DrainContractAgentCountsInput, EmailOtpAuthInput, EmailOtpCredentials, Environment, EthAuthInput, ExecuteBusinessContractOptions, ExecuteOrgDataActionOptions, ExportActivityLogOptions, FetchTrustedManifestOptions, FunctionDescriptorEntry, GetActivityLogOptions, GetUsageOptions, GrantCheckParams, GrantCheckResult, GranteeInput, GrantsMergeResult, GuestToHostHandler, GuestToHostHandlers, HandshakeResult, HumanMember, InvokeOptions, InvokeRequest, JsonRpcRequest, JsonRpcResponse, KycPollCadence, KycPollOptions, KycStatus, KycStatusKind, ListAgentsInput, ListAgentsResponse, ListContractsParams, ListContractsResult, ListContractsScope, ListHumanMembersInput, ListHumanMembersResponse, ListedContract, Logger, MapCreateInput, MapLifecycleStatus, MapResponse, MapUpdateInput, MapVisibility, MemberDelegationDoc, MemberRole, MutationResponse, OidcAuthInput, OidcCredentials, OrgAdminStatus, OrgContractDelegation, OrgDataActionWire, OrgDataClientOptions, OrgDelegationAddGrantsInput, OrgDelegationDeleteInput, OrgDelegationGetInput, OrgDelegationRemoveGrantsInput, OrgDelegationSetInput, OrgPolicyMeta, OrgPolicyView, OrgRemoveGrantTarget, OrgRemoveMemberDelegationInput, OrgUsageReport, OrgUsageReportInput, OrgWriters, OtpChannel, OtpMergeSuggestion, OtpRequestInput, OtpRequestResult, OtpVerifyInput, OtpVerifyResult, PayrollRunRequest, PeerQuoteResult, PolicyGetInput, PurgeOrgInput, QuoteVerifyResult, ReaderSet, RemoveTarget, RoleAssignments, RoleAssignmentsResponse, RoleDefinition, RoleGetResponse, RoleGrant, RoleIdInput, ScopeAccessVerb, SdkConfig, SecretKind, SecretListInput, SecretListResponse, SecretNameInput, SecretRecord, SecretSetValueInput, SecretView, SecretWriteInput, SessionCrypto, SessionId, SetAgentEgressInput, SetDefaultQuotasOptions, SetRoleInput, SetWritersInput, SevSnpCollateral, SevSnpVerifyResult, SignedTrustManifest, StringEncoding, SubmitUserInputArgs, SubmitUserInputResult, T3nClientConfig, TenantAdmitProjection, TenantAdmitStatus, TenantBaseClient, TenantClientConfig, TenantContractExecuteInput, TenantContractPublishInput, TenantContractSetDescriptorInput, TenantContractUnsetDescriptorInput, TenantExecutionSession, TenantMapCreateInput, TenantMapUpdatePatch, TenantMeResponse, TenantSdkEnvironment, TenantSelfAdmitResult, TenantStatus, TenantTargetOptions, TokenTxKind, Transport, TrustAnchor, TrustAnchorOrUnsafe, TrustAnchorSource, TrustManifestPayload, UnassignRolesInput, UnsafeTrustServer, UpdateMetaInput, UpdateQuotasOptions, UsageEntry, UsagePage, UsageReportSignature, UserInputProfile, UserUpsertErrorKind, Validity, VcekUrlResult, WasmComponent, WasmNextResult, WhoamiResult, WireBlock, WireScope, WorkloadAuthInput, WriteDataInput, WriterSet, WritersGetInput };