@terminal3/t3n-sdk 5.15.2 → 5.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
@@ -1148,6 +1148,46 @@ interface Validity {
1148
1148
  valid_from_secs?: number;
1149
1149
  valid_until_secs?: number;
1150
1150
  }
1151
+ /**
1152
+ * A verb a grantee holds on a {@link WireScope} path. Mirrors the org-data
1153
+ * `Access` wire enum (lowercase). **Only `"read"` is enforced** — `"write"` and
1154
+ * `"delete"` are declared-only; nothing in the node checks them yet. Do not
1155
+ * treat granting or withholding either as a security boundary.
1156
+ */
1157
+ type ScopeAccessVerb = "read" | "write" | "delete";
1158
+ /**
1159
+ * One scoped data-path entry in a grant's `scopes` list — the unified shape
1160
+ * replacing the retired pair of parallel string lists (`scopes` +
1161
+ * `read_scopes`) where the verb was implied by which list a path appeared in.
1162
+ * Mirrors the org-data `WireScopeGroup` wire shape.
1163
+ */
1164
+ interface WireScope {
1165
+ /** Data scope path the grantee may access (e.g. `"example/records"`). */
1166
+ path: string;
1167
+ /** Verbs the grantee holds on `path`. Must be non-empty. */
1168
+ access: ScopeAccessVerb[];
1169
+ }
1170
+ /**
1171
+ * Build a read-only {@link WireScope} list from bare paths — the common case,
1172
+ * since `"read"` is the only enforced verb. Mirrors the node integration
1173
+ * test harness's own `read_only_scopes` convention.
1174
+ */
1175
+ declare function readOnlyScopes(paths: string[]): WireScope[];
1176
+ /**
1177
+ * Fan a legacy multi-function grant intent out into one row per function,
1178
+ * each sharing `base` verbatim. `base` is whatever the caller already built
1179
+ * (grantee, scopes, and any qualifiers it chose to include) minus `function`;
1180
+ * this only adds the mechanical per-function loop so every call site fans out
1181
+ * identically instead of re-deriving the shape.
1182
+ *
1183
+ * Rows that need to vary a field PER function (e.g. a direct-read function
1184
+ * carrying a narrower scope than its siblings — see `grantZPayrollAgent`)
1185
+ * build their own `.map()` instead; this helper is for the common case where
1186
+ * every fanned-out row is identical apart from `function`.
1187
+ */
1188
+ declare function fanOutGrant<T extends {
1189
+ function: string;
1190
+ }>(base: Omit<T, "function">, functions: string[]): T[];
1151
1191
  /**
1152
1192
  * A grantee-bound capability grant — the element of BOTH grant-management
1153
1193
  * surfaces: the org edge (`org-delegation-set` input / `org-delegation-get`
@@ -1157,10 +1197,16 @@ interface Validity {
1157
1197
  *
1158
1198
  * Mirrors the org-data `BoundGrant` wire shape verbatim (snake_case, no casing
1159
1199
  * transform): `grantee` followed by the flattened capability body. The org edge
1160
- * populates only `functions` + `scopes`; the delegation edge additionally
1161
- * carries the qualifiers `version_req` / `read_scopes` / `allowed_hosts` and the
1162
- * validity `window`. All qualifier fields are optional and omitted from the wire when
1200
+ * populates only `function` + `scopes`; the delegation edge additionally
1201
+ * carries the qualifiers `version_req` / `allowed_hosts` and the validity
1202
+ * `window`. All qualifier fields are optional and omitted from the wire when
1163
1203
  * absent (never sent as `null`), so an org grant simply leaves them unset.
1204
+ *
1205
+ * **One function per grant**: a client authorising a grantee on several
1206
+ * functions posts several rows, each carrying the full `scopes` that function
1207
+ * needs — there is no more multi-function fan-out on the wire. The contract
1208
+ * keeps at most one grant per `(grantee, contract_id, function)`; a later row
1209
+ * with the same triple replaces the earlier one.
1164
1210
  */
1165
1211
  interface BoundGrant {
1166
1212
  /** The principal (`did:t3n:<40-hex>`) this grant applies to — a user or an
@@ -1169,16 +1215,18 @@ interface BoundGrant {
1169
1215
  /** Target contract id (canonical name, e.g. `"tee:z-payroll/contracts"`), or
1170
1216
  * `"*"`. On a read this echoes the queried contract. */
1171
1217
  contract_id: string;
1172
- /** WIT function names the grantee may invoke (e.g. `"set-records"`; `["*"]`
1173
- * matches all). */
1174
- functions: string[];
1175
- /** Data scope paths the grantee may access (e.g. `"example/records"`). */
1176
- scopes: string[];
1218
+ /** The single WIT function this grant confers (e.g. `"set-records"`), or
1219
+ * `"*"` for every function on the contract (agent edge only). */
1220
+ function: string;
1221
+ /** Data scopes the grantee may access via `function`. */
1222
+ scopes: WireScope[];
1177
1223
  /** Agent edge only: optional semver requirement; omitted matches any version. */
1178
1224
  version_req?: string;
1179
- /** Agent edge only: direct-read scopes the grantee may enumerate itself — a
1180
- * subset of `scopes` (enforced contract-side). */
1181
- read_scopes?: string[];
1225
+ /** Agent edge only, read-only artefact: the retired `read_scopes` cap carried
1226
+ * forward from a row written under the earlier multi-function-per-grant
1227
+ * shape. New writes never set this — express a direct-read function's
1228
+ * narrower scope as that function's own `scopes` instead. */
1229
+ legacy_read_scopes?: WireScope[];
1182
1230
  /** Agent edge only: egress hosts the grantee may reach for this contract. */
1183
1231
  allowed_hosts?: string[];
1184
1232
  /** Agent edge only: optional validity time-box. */
@@ -1750,11 +1798,11 @@ interface OrgDataActionWire {
1750
1798
  * their own grants. This is the user-approval proof the per-call delegation
1751
1799
  * credential's `user_sig` used to carry.
1752
1800
  *
1753
- * A grant carries `functions`, the agent's delegated org-data `scopes`, the
1754
- * direct-enumerable `read_scopes`, egress `allowed_hosts`, an optional semver
1755
- * `version_req`, and an optional validity `window`. The ≤ cap *length* check is
1756
- * enforced contract-side at write time; the expiry gate is host-side at read
1757
- * time.
1801
+ * A grant carries the single `function` it confers (one function per grant
1802
+ * row), the agent's delegated org-data `scopes`, egress `allowed_hosts`, an
1803
+ * optional semver `version_req`, and an optional validity `window`. The ≤
1804
+ * cap *length* check is enforced contract-side at write time; the expiry gate
1805
+ * is host-side at read time.
1758
1806
  *
1759
1807
  * The SDK is a literal snake_case mirror of the wire: {@link BoundGrant} IS the
1760
1808
  * wire grant shape, so reads and writes pass through untouched — there is no
@@ -1805,15 +1853,23 @@ declare function parseMemberDelegationDoc(response: unknown): MemberDelegationDo
1805
1853
  interface GrantsMergeResult {
1806
1854
  /** Full merged grant list, ready for `member-delegation-update`. */
1807
1855
  grants: BoundGrant[];
1808
- /** `"<grantee> → <contract_id>"` rows preserved from the existing policy. */
1856
+ /** `"<grantee> → <contract_id> (<function>)"` rows preserved from the
1857
+ * existing policy. */
1809
1858
  preservedRows: string[];
1810
1859
  }
1811
1860
  /**
1812
- * Merge new grant rows into the existing flat list with `(grantee, contract_id)`
1813
- * union semantics: an existing row whose `(grantee, contract_id)` matches a new
1814
- * row is replaced; every other existing row is preserved (and reported in
1815
- * `preservedRows` as an audit aid). New rows for a `(grantee, contract_id)` not
1861
+ * Merge new grant rows into the existing flat list with
1862
+ * `(grantee, contract_id, function)` union semantics: an existing row whose
1863
+ * triple matches a new row is replaced; every other existing row is preserved
1864
+ * (and reported in `preservedRows` as an audit aid). New rows for a triple not
1816
1865
  * already present are appended.
1866
+ *
1867
+ * The key is the full triple, not just `(grantee, contract_id)`: a legacy
1868
+ * multi-function row now fans out into one row per function, and the
1869
+ * contract's own uniqueness rule is "at most one grant per
1870
+ * `(grantee, contract_id, function)`" (`DuplicateGranteeFunction`). Keying on
1871
+ * the pair alone would make granting a second function on the same contract
1872
+ * silently drop the first function's row instead of adding beside it.
1817
1873
  */
1818
1874
  declare function mergeGrants(existing: BoundGrant[], additions: BoundGrant[]): GrantsMergeResult;
1819
1875
  /**
@@ -3460,22 +3516,37 @@ declare class T3nClient {
3460
3516
  * already exists from creation). All-or-nothing: any refusal creates
3461
3517
  * no agent, no record, no card.
3462
3518
  *
3519
+ * `options.initialCredits` pre-funds the new agent, in the SAME
3520
+ * transaction as creation, from the owning organisation's own T3N
3521
+ * balance — a freshly created agent otherwise starts with zero credit
3522
+ * and every metered action it takes fails, since metered actions bill
3523
+ * the acting DID's own balance. Internally dispatches into
3524
+ * `tee:admin.agent-credit-transfer` over contracts-call; the caller must
3525
+ * still be an admin of `organisationDid` (already required for
3526
+ * `create-agent` itself) and the org's own balance must cover the
3527
+ * amount, or the whole call refuses and nothing is created. To instead
3528
+ * fund an agent from your own personal balance, or any time after
3529
+ * creation, use {@link fundAgent}.
3530
+ *
3463
3531
  * @param organisationDid - the owning organisation's DID
3464
3532
  * (`did:t3n:<40-hex>`); the caller must be one of its admins
3465
3533
  * @param name - human-readable agent name (1..=128 bytes)
3466
- * @param options - optional atomic registration + card hosting
3534
+ * @param options - optional atomic registration + card hosting +
3535
+ * initial credit funding (`initialCredits`, in base units)
3467
3536
  * @returns the new agent's DID and its one-time opaque `apiKey` + `keyId`,
3468
3537
  * plus `agentUri` / `cardEntryId` (the hosted PRIVATE card's entry id)
3469
3538
  * when the atomic path ran
3470
3539
  * @throws if the session is not authenticated, or if the contract
3471
3540
  * refuses (e.g. the caller is not an admin of `organisationDid`, the
3472
- * name is empty / too long, or the card fails validation — in which
3541
+ * name is empty / too long, the card fails validation, or
3542
+ * `initialCredits` exceeds the org's available balance — in which
3473
3543
  * case NOTHING was created)
3474
3544
  */
3475
3545
  createAgent(organisationDid: string, name: string, options?: {
3476
3546
  agentUri?: string;
3477
3547
  card?: object | string;
3478
3548
  defaultCard?: boolean;
3549
+ initialCredits?: number;
3479
3550
  }): Promise<{
3480
3551
  agentDid: Did;
3481
3552
  apiKey: string;
@@ -3483,6 +3554,52 @@ declare class T3nClient {
3483
3554
  agentUri?: string;
3484
3555
  cardEntryId?: string;
3485
3556
  }>;
3557
+ /**
3558
+ * Fund an agent DID's T3N credit balance so it can act. A freshly
3559
+ * created agent starts with zero credit (unless `createAgent` was called
3560
+ * with `initialCredits`), and every metered action is billed to the
3561
+ * agent's own DID — so an unfunded agent's first call fails.
3562
+ * Use this to fund an agent any time after it was created (not just at
3563
+ * creation).
3564
+ *
3565
+ * Dispatches `fund-agent` on `tee:organisation/contracts`, which forwards
3566
+ * into `tee:admin.agent-credit-transfer` over contracts-call. By default
3567
+ * the transfer comes from the CALLER'S OWN balance (self-funding) —
3568
+ * `tee:admin` requires the caller to administer at least one organisation
3569
+ * `agentDid` belongs to. Pass `options.fromOrg` to instead fund from an
3570
+ * organisation's own balance — `tee:admin` then requires the caller to
3571
+ * administer `fromOrg` AND `agentDid` to actually be a member of it.
3572
+ *
3573
+ * Authorisation is organisation MEMBERSHIP, not a check that `agentDid`
3574
+ * is specifically an agent: a human member of the same organisation is
3575
+ * an equally valid recipient (deliberate — see the WIT doc on
3576
+ * `agent-credit-transfer` in the contracts repo). `tee:admin`
3577
+ * independently re-verifies this before moving any credit, regardless of
3578
+ * what this SDK call or `tee:organisation` checked — this call can never
3579
+ * reach a DID with no membership row under an organisation the caller
3580
+ * administers, or move more than the source's real available balance.
3581
+ *
3582
+ * @param agentDid - the agent to fund (`did:t3n:<40-hex>` or bare hex)
3583
+ * @param amount - credit to transfer, in base units (see
3584
+ * {@link formatTokens} / {@link toBaseUnits} in `src/token/`). u128 on
3585
+ * the wire as a JSON number, same convention as {@link BalanceRow} —
3586
+ * values above `Number.MAX_SAFE_INTEGER` are not currently
3587
+ * representable; split into multiple calls if you need to move more.
3588
+ * @param options - `note` (recorded on the ledger's tx log — never put
3589
+ * secrets or PII in it, it's visible in both parties' usage feeds) and
3590
+ * `fromOrg` (fund from an org's balance instead of the caller's own)
3591
+ * @returns the ledger transaction's sequence number for this transfer
3592
+ * @throws if the session is not authenticated, if the caller does not
3593
+ * administer any organisation `agentDid` belongs to (or isn't an admin
3594
+ * of `options.fromOrg`, or `agentDid` isn't a member of `fromOrg`), or
3595
+ * if the source balance is insufficient
3596
+ */
3597
+ fundAgent(agentDid: string, amount: number, options?: {
3598
+ note?: string;
3599
+ fromOrg?: string;
3600
+ }): Promise<{
3601
+ seqNo: number;
3602
+ }>;
3486
3603
  /**
3487
3604
  * Normalise an organisation / user DID to the bare 40-hex form the
3488
3605
  * `tee:organisation` contract's organisation-lifecycle exports
@@ -3643,15 +3760,21 @@ declare class T3nClient {
3643
3760
  * Authorise a delegatee for one contract on the caller's own behalf
3644
3761
  * (envelope-free authorisation). Read-merge-writes the
3645
3762
  * caller's delegation edge in `ROLE_ASSIGNMENTS_MAP` via `member-delegation-update`
3646
- * (**SelfOnly**) with `(grantee, contract_id)` union semantics, so other
3647
- * contracts' grants for this or any delegatee survive untouched.
3763
+ * (**SelfOnly**) with `(grantee, contract_id, function)` union semantics, so
3764
+ * other contracts' and other functions' grants for this or any delegatee
3765
+ * survive untouched.
3648
3766
  *
3649
3767
  * The grant is the flat wire {@link BoundGrant}: its `grantee` is the delegatee
3650
- * DID being authorised, and it carries `functions`, the delegated org-data
3651
- * `scopes`, direct-read `read_scopes`, egress `allowed_hosts`, an optional
3652
- * semver `version_req`, and an optional validity `window`. The ≤ cap *length*
3653
- * check is enforced contract-side at write time; the expiry gate is host-side
3654
- * at read time.
3768
+ * DID being authorised, and it carries the single `function` it confers (one
3769
+ * function per row), the delegated org-data `scopes`, egress
3770
+ * `allowed_hosts`, an optional semver `version_req`, and an optional validity
3771
+ * `window`. The ≤ cap *length* check is enforced contract-side at write time;
3772
+ * the expiry gate is host-side at read time.
3773
+ *
3774
+ * Authorising a delegatee on several functions takes several rows — pass an
3775
+ * array to write them in the same read-merge-write, rather than calling this
3776
+ * once per function (which would race against itself: each call re-reads the
3777
+ * document, so a second call's merge could miss the first call's write).
3655
3778
  *
3656
3779
  * This is the write surface `getDelegationInstructions` produces the
3657
3780
  * parameters for. The caller MUST be the delegating user, authenticated as
@@ -3663,16 +3786,16 @@ declare class T3nClient {
3663
3786
  * standing discovery), and any `options.discoverDids` are unioned in
3664
3787
  * (order-preserving, deduplicated).
3665
3788
  *
3666
- * @param grant - the single grant to set — a {@link BoundGrant} whose
3667
- * `grantee` is the delegatee DID being authorised (contract_id, functions,
3668
- * scopes, window, egress hosts)
3789
+ * @param grant - the grant(s) to set — one or more {@link BoundGrant} rows
3790
+ * whose `grantee` is the delegatee DID being authorised (contract_id,
3791
+ * function, scopes, window, egress hosts)
3669
3792
  * @param options - optional `discoverDids` to union into the document's
3670
3793
  * discovery grants (org DIDs for org-mode `listContracts`, the caller's
3671
3794
  * own DID for self mode)
3672
3795
  * @returns the grant rows preserved from the existing policy (audit aid)
3673
3796
  * @throws if the session is not authenticated, or the contract refuses
3674
3797
  */
3675
- updateMemberDelegation(grant: BoundGrant, options?: {
3798
+ updateMemberDelegation(grant: BoundGrant | BoundGrant[], options?: {
3676
3799
  discoverDids?: string[];
3677
3800
  }): Promise<{
3678
3801
  preservedRows: string[];
@@ -6763,5 +6886,5 @@ declare function tenantDidHex(tenantDid: string): string;
6763
6886
  declare function validateTail(tail: string): string;
6764
6887
  declare function canonicalTenantName(tenantDid: string, tail: string): string;
6765
6888
 
6766
- 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, 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, redactSecrets, redactSecretsFromJson, requestToWire, resolveTrustAnchor, setEnvironment, setGlobalLogLevel, setNodeUrl, sevSnpVcekUrl, stringToBytes, tenantDidHex, toAgentAuthUpdateWire, toBaseUnits, validateConfig, validateTail, verifyDkgAttestation, verifyManifestSignature, verifySevSnpReport, verifyTdxQuote };
6767
- 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, 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, WorkloadAuthInput, WriteDataInput, WriterSet, WritersGetInput };
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 };