@terminal3/t3n-sdk 5.21.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.
@@ -4110,68 +3911,6 @@ declare class T3nClient {
4110
3911
  * too many delegatees/grants).
4111
3912
  */
4112
3913
  memberDelegationUpdate(input: MemberDelegationDoc): Promise<void>;
4113
- /**
4114
- * Revoke the caller's own agent delegations scoped to one org (detach-cascade
4115
- * `agent_auth` half). Dispatches `agent-auth-revoke-org` on
4116
- * `tee:user/contracts` (**SelfOnly**): every grant targeting a `z:<orgTid>:*`
4117
- * contract is removed from the caller's own delegation document.
4118
- *
4119
- * @param orgTid - the org's z-space tenant id (`did:t3n:<hex>` or bare
4120
- * 40-hex) — i.e. the `<tid>` in the org's `z:<tid>:…` contract names
4121
- * @deprecated Use {@link T3nClient.revokeMemberDelegationForOrg}.
4122
- */
4123
- revokeAgentAuthForOrg(orgTid: string): Promise<void>;
4124
- /**
4125
- * Read the authenticated user's own agent-auth policy — the standing grants
4126
- * delegated to agents — in the legacy camelCase shape. Dispatches
4127
- * `agent-auth-get` on `tee:authorisations/contracts` (**SelfOnly**), so this
4128
- * always returns the caller's own policy document.
4129
- *
4130
- * @returns the full policy document normalised to the camelCase write shape:
4131
- * the per-agent `agents` entries plus the document-level `discoverDids`
4132
- * discovery grants
4133
- * @throws if the session is not authenticated, or the contract refuses
4134
- * @deprecated Use {@link T3nClient.getMemberDelegation}.
4135
- */
4136
- getAgentAuth(): Promise<AgentAuthPolicy>;
4137
- /**
4138
- * Authorise an agent for one contract on the caller's own behalf, in the
4139
- * legacy camelCase shape. Read-merge-writes the caller's policy document via
4140
- * `agent-auth-update` (**SelfOnly**) with script-level union semantics, so
4141
- * other contracts' grants for this or any agent survive untouched.
4142
- *
4143
- * @param agentDid - the agent DID being authorised
4144
- * @param grant - the single script grant to set (contract, functions,
4145
- * scopes, validity, egress hosts)
4146
- * @param options - optional `discoverDids` to union into the document's
4147
- * discovery grants
4148
- * @returns the script rows preserved from the existing policy (audit aid)
4149
- * @throws if the session is not authenticated, or the contract refuses
4150
- * @deprecated Use {@link T3nClient.updateMemberDelegation} (note it drops the
4151
- * leading `agentDid` argument — the `grantee` lives on the grant).
4152
- */
4153
- updateAgentAuth(agentDid: string, grant: AgentAuthScriptGrant, options?: {
4154
- discoverDids?: string[];
4155
- }): Promise<{
4156
- preservedRows: string[];
4157
- }>;
4158
- /**
4159
- * Replace this user's agent-authorisation policy in the legacy camelCase
4160
- * shape (`tee:authorisations/contracts` → `agent-auth-update`). The supplied
4161
- * document IS the new state: an empty `agents` array revokes all agent
4162
- * access, and an omitted `discoverDids` persists an empty discovery-grant
4163
- * list. Use {@link T3nClient.updateAgentAuth} for the single-grant
4164
- * read-merge-write.
4165
- *
4166
- * The SDK emits the canonical snake_case wire via {@link toAgentAuthUpdateWire}
4167
- * (carrying `scopes` / `read_scopes` / validity alongside `functions` /
4168
- * `allowed_hosts`, plus the document-level `discover_dids`).
4169
- *
4170
- * @throws {RpcError} if the contract rejects the policy (validation failure,
4171
- * too many agents/grants).
4172
- * @deprecated Use {@link T3nClient.memberDelegationUpdate}.
4173
- */
4174
- agentAuthUpdate(input: AgentAuthUpdateInput): Promise<void>;
4175
3914
  /**
4176
3915
  * Add a batch of grants to the caller's own delegation edges
4177
3916
  * (`tee:authorisations/contracts` → `member-delegation-add-grants`,
@@ -4830,26 +4569,6 @@ interface OrgDelegationDeleteInput {
4830
4569
  orgDid: string;
4831
4570
  contractId: string;
4832
4571
  }
4833
- /**
4834
- * Legacy input for {@link OrgDataClient.setGrants}. Carries the full
4835
- * {@link UserGrant} list verbatim (grantee as `user_did`).
4836
- *
4837
- * @deprecated Use {@link OrgDelegationSetInput}.
4838
- */
4839
- interface SetGrantsInput {
4840
- orgDid: string;
4841
- contractId: string;
4842
- grants: UserGrant[];
4843
- }
4844
- /**
4845
- * Legacy input for {@link OrgDataClient.deleteGrants}.
4846
- *
4847
- * @deprecated Use {@link OrgDelegationDeleteInput}.
4848
- */
4849
- interface DeleteGrantsInput {
4850
- orgDid: string;
4851
- contractId: string;
4852
- }
4853
4572
  /**
4854
4573
  * Add a batch of org→grantee grants via {@link OrgDataClient.addDelegationGrants}.
4855
4574
  *
@@ -5032,16 +4751,6 @@ interface OrgRemoveMemberDelegationInput {
5032
4751
  /** DID (`did:t3n:<40-hex>` or bare hex) to drop from every grant list. */
5033
4752
  memberDid: string;
5034
4753
  }
5035
- /**
5036
- * Legacy input for {@link OrgDataClient.removeMemberGrants}.
5037
- *
5038
- * @deprecated Use {@link OrgRemoveMemberDelegationInput}.
5039
- */
5040
- interface RemoveMemberGrantsInput {
5041
- orgDid: string;
5042
- /** DID (`did:t3n:<40-hex>` or bare hex) to drop from every grant list. */
5043
- memberDid: string;
5044
- }
5045
4754
  interface PolicyGetInput {
5046
4755
  orgDid: string;
5047
4756
  }
@@ -5053,15 +4762,6 @@ interface OrgDelegationGetInput {
5053
4762
  orgDid: string;
5054
4763
  contractId: string;
5055
4764
  }
5056
- /**
5057
- * Legacy input for {@link OrgDataClient.grantsGet}.
5058
- *
5059
- * @deprecated Use {@link OrgDelegationGetInput}.
5060
- */
5061
- interface GrantsGetInput {
5062
- orgDid: string;
5063
- contractId: string;
5064
- }
5065
4765
  interface DataListInput {
5066
4766
  orgDid: string;
5067
4767
  scope: string;
@@ -5204,15 +4904,6 @@ declare class OrgDataClient {
5204
4904
  * Delete the grant entry for a contract entirely.
5205
4905
  */
5206
4906
  deleteDelegation(input: OrgDelegationDeleteInput): Promise<MutationResponse>;
5207
- /**
5208
- * Full replacement of the user-grant list for a contract, in the legacy
5209
- * `UserGrant` wire shape (grantee as `user_did`). Passing an empty list
5210
- * removes the entry. Dispatches the legacy `org-policy-set-grants` function
5211
- * the contract still accepts during the deprecation window.
5212
- *
5213
- * @deprecated Use {@link OrgDataClient.setDelegation}.
5214
- */
5215
- setGrants(input: SetGrantsInput): Promise<MutationResponse>;
5216
4907
  /**
5217
4908
  * Add a batch of org→grantee grants (org-admin only).
5218
4909
  *
@@ -5229,13 +4920,6 @@ declare class OrgDataClient {
5229
4920
  * verbatim (each already carries its `contract_id`).
5230
4921
  */
5231
4922
  addDelegationGrants(input: OrgDelegationAddGrantsInput): Promise<MutationResponse>;
5232
- /**
5233
- * Delete the grant entry for a contract entirely, via the legacy
5234
- * `org-policy-delete-grants` function.
5235
- *
5236
- * @deprecated Use {@link OrgDataClient.deleteDelegation}.
5237
- */
5238
- deleteGrants(input: DeleteGrantsInput): Promise<MutationResponse>;
5239
4923
  /**
5240
4924
  * Remove a batch of `(grantee, contract_id)` org grants (org-admin only).
5241
4925
  *
@@ -5392,13 +5076,6 @@ declare class OrgDataClient {
5392
5076
  * `deleted_entries` reports how many contract grant lists were rewritten.
5393
5077
  */
5394
5078
  removeMemberDelegation(input: OrgRemoveMemberDelegationInput): Promise<MutationResponse>;
5395
- /**
5396
- * Detach-cascade grant sweep via the legacy `org-remove-member-grants`
5397
- * function.
5398
- *
5399
- * @deprecated Use {@link OrgDataClient.removeMemberDelegation}.
5400
- */
5401
- removeMemberGrants(input: RemoveMemberGrantsInput): Promise<MutationResponse>;
5402
5079
  /** Read the policy metadata for an org (admin-only). */
5403
5080
  policyGet(input: PolicyGetInput): Promise<OrgPolicyMeta>;
5404
5081
  /**
@@ -5456,13 +5133,6 @@ declare class OrgDataClient {
5456
5133
  * live is still returned.
5457
5134
  */
5458
5135
  getDelegation(input: OrgDelegationGetInput): Promise<OrgContractDelegation>;
5459
- /**
5460
- * Read the grant list for a contract (admin-only) in the legacy `UserGrant`
5461
- * wire shape, via the legacy `org-grants-get` function.
5462
- *
5463
- * @deprecated Use {@link OrgDataClient.getDelegation}.
5464
- */
5465
- grantsGet(input: GrantsGetInput): Promise<OrgContractGrants>;
5466
5136
  /**
5467
5137
  * List entry IDs for a scope (admin-only), paginated.
5468
5138
  *
@@ -5571,20 +5241,8 @@ declare class SessionOrgDataClient {
5571
5241
  setDelegation(input: OrgDelegationSetInput): Promise<MutationResponse>;
5572
5242
  /** Mirrors {@link OrgDataClient.deleteDelegation}. */
5573
5243
  deleteDelegation(input: OrgDelegationDeleteInput): Promise<MutationResponse>;
5574
- /**
5575
- * Mirrors {@link OrgDataClient.setGrants}.
5576
- *
5577
- * @deprecated Use {@link SessionOrgDataClient.setDelegation}.
5578
- */
5579
- setGrants(input: SetGrantsInput): Promise<MutationResponse>;
5580
5244
  /** Mirrors {@link OrgDataClient.addDelegationGrants}. */
5581
5245
  addDelegationGrants(input: OrgDelegationAddGrantsInput): Promise<MutationResponse>;
5582
- /**
5583
- * Mirrors {@link OrgDataClient.deleteGrants}.
5584
- *
5585
- * @deprecated Use {@link SessionOrgDataClient.deleteDelegation}.
5586
- */
5587
- deleteGrants(input: DeleteGrantsInput): Promise<MutationResponse>;
5588
5246
  /** Mirrors {@link OrgDataClient.removeDelegationGrants}. */
5589
5247
  removeDelegationGrants(input: OrgDelegationRemoveGrantsInput): Promise<MutationResponse>;
5590
5248
  /**
@@ -5643,12 +5301,6 @@ declare class SessionOrgDataClient {
5643
5301
  purgeOrg(input: PurgeOrgInput): Promise<MutationResponse>;
5644
5302
  /** Mirrors {@link OrgDataClient.removeMemberDelegation}. */
5645
5303
  removeMemberDelegation(input: OrgRemoveMemberDelegationInput): Promise<MutationResponse>;
5646
- /**
5647
- * Mirrors {@link OrgDataClient.removeMemberGrants}.
5648
- *
5649
- * @deprecated Use {@link SessionOrgDataClient.removeMemberDelegation}.
5650
- */
5651
- removeMemberGrants(input: RemoveMemberGrantsInput): Promise<MutationResponse>;
5652
5304
  /** Mirrors {@link OrgDataClient.policyGet}. */
5653
5305
  policyGet(input: PolicyGetInput): Promise<OrgPolicyMeta>;
5654
5306
  /** Mirrors {@link OrgDataClient.policyView}. */
@@ -5659,12 +5311,6 @@ declare class SessionOrgDataClient {
5659
5311
  writersGet(input: WritersGetInput): Promise<OrgWriters>;
5660
5312
  /** Mirrors {@link OrgDataClient.getDelegation}. */
5661
5313
  getDelegation(input: OrgDelegationGetInput): Promise<OrgContractDelegation>;
5662
- /**
5663
- * Mirrors {@link OrgDataClient.grantsGet}.
5664
- *
5665
- * @deprecated Use {@link SessionOrgDataClient.getDelegation}.
5666
- */
5667
- grantsGet(input: GrantsGetInput): Promise<OrgContractGrants>;
5668
5314
  /** Mirrors {@link OrgDataClient.dataList}. */
5669
5315
  dataList(input: DataListInput): Promise<DataListResponse>;
5670
5316
  /** Mirrors {@link OrgDataClient.dataGet}. */
@@ -6904,5 +6550,5 @@ declare function tenantDidHex(tenantDid: string): string;
6904
6550
  declare function validateTail(tail: string): string;
6905
6551
  declare function canonicalTenantName(tenantDid: string, tail: string): string;
6906
6552
 
6907
- 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 };
6908
- 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 };