@terminal3/t3n-sdk 5.9.0 → 5.10.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
@@ -1179,22 +1179,60 @@ interface OrgWriters {
1179
1179
  }
1180
1180
  /** Shallow runtime guard for {@link OrgWriters}. */
1181
1181
  declare function isOrgWriters(value: unknown): value is OrgWriters;
1182
+ /**
1183
+ * What kind of entity a DID names — the values of
1184
+ * {@link OrgContractDelegation.grantee_kinds}, and the same discriminator the
1185
+ * rosters classify from. It is decided by the transaction that mints the DID
1186
+ * and stored, not inferred at read time from which identity map holds a row.
1187
+ *
1188
+ * There is no "unclassified" value: a DID carrying no kind is simply absent
1189
+ * from the map. Every DID minted before the discriminator existed is in that
1190
+ * population until the backfill converges.
1191
+ */
1192
+ type DidKind = "agent" | "human" | "org";
1182
1193
  /**
1183
1194
  * Response type alias for org-delegation-get.
1184
1195
  *
1185
- * The wire body echoes the `contract_id` alongside the grant list.
1196
+ * The wire body echoes the `contract_id` alongside the grant list and, beside
1197
+ * it, one {@link DidKind} per classified grantee — so one read partitions a
1198
+ * contract's grantees into agents and humans without also enumerating the org's
1199
+ * rosters.
1200
+ *
1201
+ * The kinds sit BESIDE the grants rather than on them because `grants` doubles
1202
+ * as write input: {@link OrgDataClient.setDelegation} is a full replacement, so
1203
+ * a caller reads this list, edits it and sends it back, and the contract's write
1204
+ * boundary rejects a grant object carrying any key it does not know.
1186
1205
  */
1187
1206
  interface OrgContractDelegation {
1188
1207
  contract_id: string;
1189
1208
  grants: BoundGrant[];
1209
+ /**
1210
+ * Grantee DID → kind, one entry per grantee in `grants` that carries a kind
1211
+ * row. A grantee with no row is absent from the map: that DID is
1212
+ * unclassified, not of some fourth kind.
1213
+ *
1214
+ * The FIELD being absent is a different fact again — the environment
1215
+ * answering the read predates the classification and cannot say anything
1216
+ * about any grantee. Check the field before reading a DID out of it, or the
1217
+ * two collapse into the same lookup miss.
1218
+ */
1219
+ grantee_kinds?: Record<string, DidKind>;
1190
1220
  }
1191
1221
  /**
1192
1222
  * Shallow runtime guard for {@link OrgContractDelegation}.
1193
1223
  *
1194
- * Validates the immediate envelope (`contract_id: string`, `grants:
1195
- * array`) without recursing into each `BoundGrant`. The Rust contract
1196
- * is the source of truth for grant element shape; widening the predicate
1197
- * here would create maintenance churn against benign field additions.
1224
+ * Validates the immediate envelope (`contract_id: string`, `grants: array`) and,
1225
+ * when present, that `grantee_kinds` maps DIDs to strings. An ABSENT
1226
+ * `grantee_kinds` passes: an environment that predates the classification sends
1227
+ * no such field.
1228
+ *
1229
+ * The kind values are checked as strings, not against the closed
1230
+ * {@link DidKind} domain. A value this SDK version has never heard of is a
1231
+ * benign server-side addition, and failing the guard over it would discard the
1232
+ * whole grant list — the payload — for the sake of one advisory field. A caller
1233
+ * branching on `=== "agent"` degrades on its own. Grant elements are not
1234
+ * recursed into for the same reason: the Rust contract is the source of truth
1235
+ * for their shape.
1198
1236
  */
1199
1237
  declare function isOrgContractDelegation(value: unknown): value is OrgContractDelegation;
1200
1238
  /**
@@ -1337,6 +1375,86 @@ interface ListAgentsResponse {
1337
1375
  */
1338
1376
  unclassified?: number;
1339
1377
  }
1378
+ /**
1379
+ * Input for `countAgentsByContract` — the org plus optional pagination. Omit
1380
+ * both `cursor` and `limit` for the first page at the default limit; pass a
1381
+ * previous response's `next_cursor` back as `cursor` to fetch the following
1382
+ * page. `limit` bounds AGENTS examined per page, exactly as it does for
1383
+ * {@link ListAgentsInput}.
1384
+ */
1385
+ interface ContractAgentCountsInput {
1386
+ orgDid: string;
1387
+ /** Opaque cursor from a previous response's `next_cursor`. */
1388
+ cursor?: string;
1389
+ /** Maximum agents to examine in this page. */
1390
+ limit?: number;
1391
+ }
1392
+ /**
1393
+ * Input for {@link OrgDataClient.countAllAgentsByContract} — the drain-to-the-end
1394
+ * form, which owns the cursor itself and therefore takes none.
1395
+ */
1396
+ interface DrainContractAgentCountsInput {
1397
+ orgDid: string;
1398
+ /**
1399
+ * Page size passed to each underlying call. It bounds the whole walk, not
1400
+ * just one page: the drain abandons a walk that has not finished within
1401
+ * `MAX_AGENT_COUNT_PAGES`, so a `limit` small enough that the org needs more
1402
+ * pages than that throws rather than returning a histogram. Leave it unset
1403
+ * unless you have a reason to shrink the page — the contract's default page
1404
+ * size is sized to cover whole orgs.
1405
+ */
1406
+ limit?: number;
1407
+ }
1408
+ /**
1409
+ * Response for `org-data-count-agents-by-contract`: ONE PAGE of the per-contract
1410
+ * tally of the org's org-owned agents holding a direct grant.
1411
+ *
1412
+ * The transpose of the per-agent `contract_count` that {@link AgentSummary}
1413
+ * carries, over the same population and the same direct-grant rule. Role-derived
1414
+ * authority is not counted on either side.
1415
+ */
1416
+ interface ContractAgentCountsResponse {
1417
+ /**
1418
+ * Contract id → how many org-owned agents hold a direct grant on it, over the
1419
+ * members THIS PAGE examined. A contract with no counted agents has no key.
1420
+ *
1421
+ * Optional because absence is a different answer from `{}`: absent means the
1422
+ * environment cannot say, `{}` means the walk ran and found no agent holding
1423
+ * anything. Reading absence as `{}` turns "cannot say" into a confident zero
1424
+ * for every contract.
1425
+ */
1426
+ agent_counts?: Record<string, number>;
1427
+ /**
1428
+ * Opaque cursor for the next page; absent on the last page. While it is
1429
+ * present the tally is PARTIAL — see
1430
+ * {@link OrgDataClient.countAgentsByContract}.
1431
+ */
1432
+ next_cursor?: string;
1433
+ /**
1434
+ * Members on THIS page that carry no kind row. They are not counted as
1435
+ * agents, so their grants raise no contract's tally: a non-zero count is why
1436
+ * a number can be lower than the grants on the edges would suggest.
1437
+ *
1438
+ * Absent when the environment runs a contract that predates the field; that
1439
+ * is "not reported", not "none".
1440
+ */
1441
+ unclassified?: number;
1442
+ }
1443
+ /**
1444
+ * Shallow runtime guard for {@link ContractAgentCountsResponse}.
1445
+ *
1446
+ * An ABSENT `agent_counts` passes: absence is itself an answer the caller has to
1447
+ * act on, and failing the guard would reach them as a shape error
1448
+ * indistinguishable from a transport fault. When present, its values are
1449
+ * checked as non-negative safe integers — callers do arithmetic on them, so a
1450
+ * string or a float there is a type lie that only surfaces once a total is
1451
+ * already wrong.
1452
+ *
1453
+ * Keys are not validated against any contract inventory. The map is keyed by
1454
+ * whatever contract ids the org's grants name, and the guard is not the place to
1455
+ * decide which of those a caller recognises.
1456
+ */
1457
+ declare function isContractAgentCountsResponse(value: unknown): value is ContractAgentCountsResponse;
1340
1458
  /** A human member's org role. The closed wire domain of {@link HumanMember}. */
1341
1459
  type MemberRole = "admin" | "member";
1342
1460
  /**
@@ -4431,6 +4549,12 @@ interface SetWritersInput {
4431
4549
  * `contract_id` is injected by the SDK from the request `contractId` (the
4432
4550
  * contract sets it server-side regardless), so callers omit it — a read-back
4433
4551
  * {@link BoundGrant}, which carries `contract_id`, is still assignable.
4552
+ *
4553
+ * A full replacement makes that round trip the normal path: read the current
4554
+ * grants, edit the list, send it back. The contract's write boundary rejects a
4555
+ * grant object carrying any key it does not know, so anything the read adds
4556
+ * about a grantee belongs beside the grants, not on them (see
4557
+ * {@link OrgContractDelegation}).
4434
4558
  */
4435
4559
  type SetGrantInput = Omit<BoundGrant, "contract_id">;
4436
4560
  interface OrgDelegationSetInput {
@@ -4921,6 +5045,56 @@ declare class OrgDataClient {
4921
5045
  * back as `cursor` until it is absent.
4922
5046
  */
4923
5047
  listHumanMembers(input: ListHumanMembersInput): Promise<ListHumanMembersResponse>;
5048
+ /**
5049
+ * Count, per contract, how many of the org's org-owned agents hold a direct
5050
+ * grant on it — ONE PAGE (org-admin only).
5051
+ *
5052
+ * The transpose of {@link listAgents}' `contract_count`: same population, same
5053
+ * direct-grant rule, inverted contract-side so a per-contract column costs one
5054
+ * call rather than a roster drain plus an inversion.
5055
+ *
5056
+ * **This is a page, not an answer.** A present `next_cursor` means the tally
5057
+ * covers only the members examined so far: every value is a lower bound and a
5058
+ * missing key means nothing. Reading a number off such a page yields an
5059
+ * under-count shaped exactly like a complete one. Prefer
5060
+ * {@link countAllAgentsByContract}, which owns the walk and refuses to return
5061
+ * anything partial; reach for this method only when you are driving the cursor
5062
+ * yourself.
5063
+ *
5064
+ * On a walk that ended with no cursor, a missing key IS a zero — the tally is
5065
+ * derived from the agents' grants, so a contract no agent holds never gets a
5066
+ * key. Seed your own contract inventory at 0 and fill it from the result.
5067
+ *
5068
+ * A member of no known kind is not counted as an agent, so its grants raise no
5069
+ * contract's tally. `unclassified` reports that population per page, for the
5070
+ * same reason {@link listAgents} does: it says a number could be low because a
5071
+ * grant-holder is unclassified rather than because the grants are absent.
5072
+ */
5073
+ countAgentsByContract(input: ContractAgentCountsInput): Promise<ContractAgentCountsResponse>;
5074
+ /**
5075
+ * Drain {@link countAgentsByContract} to the end and return the complete
5076
+ * per-contract histogram (org-admin only).
5077
+ *
5078
+ * Drain-or-throw: a mid-walk failure rejects rather than resolving with a
5079
+ * partial tally, so the result is either the whole histogram or nothing. That
5080
+ * is the point of the helper — a partial histogram is indistinguishable from a
5081
+ * complete one, and rendering it shows a confidently low number where "unknown"
5082
+ * belongs.
5083
+ *
5084
+ * ```ts
5085
+ * const counts = await orgData.countAllAgentsByContract({ orgDid });
5086
+ * const perContract = new Map(contractIds.map((id) => [id, counts[id] ?? 0]));
5087
+ * ```
5088
+ *
5089
+ * Seed from your own contract list, as above: a contract with no agents has no
5090
+ * key, and an environment that cannot answer throws instead of returning `{}`.
5091
+ *
5092
+ * The histogram is the whole return value; the per-page `unclassified` counts
5093
+ * are not aggregated into it. Where an environment may still hold unclassified
5094
+ * DIDs, read that count from {@link listAgents} — one walk, same population —
5095
+ * before presenting these numbers as final.
5096
+ */
5097
+ countAllAgentsByContract(input: DrainContractAgentCountsInput): Promise<Record<string, number>>;
4924
5098
  /**
4925
5099
  * Write a data entry to the org's scope.
4926
5100
  *
@@ -4986,7 +5160,37 @@ declare class OrgDataClient {
4986
5160
  amIAdmin(input: PolicyGetInput): Promise<boolean>;
4987
5161
  /** Read the writer list for a scope (admin-only). */
4988
5162
  writersGet(input: WritersGetInput): Promise<OrgWriters>;
4989
- /** Read the grant list for a contract (admin-only). */
5163
+ /**
5164
+ * Read the grant list for a contract (admin-only), plus a `grantee_kinds` map
5165
+ * naming each grantee's principal kind.
5166
+ *
5167
+ * Partitioning a contract's grantees into agents and humans — or counting
5168
+ * either — therefore takes this one call, with no roster enumeration and no DID
5169
+ * intersection by the caller:
5170
+ *
5171
+ * ```ts
5172
+ * const { grants, grantee_kinds } = await orgData.getDelegation({ orgDid, contractId });
5173
+ * if (grantee_kinds === undefined) {
5174
+ * // This environment cannot classify — fall back, or show the count as unknown.
5175
+ * } else {
5176
+ * const agents = grants.filter((g) => grantee_kinds[g.grantee] === "agent");
5177
+ * }
5178
+ * ```
5179
+ *
5180
+ * A kind is the grantee's stored discriminator, read beside `grants` so the
5181
+ * grant objects stay valid input to {@link OrgDataClient.setDelegation}. Two
5182
+ * different absences meet here. A grantee missing from a PRESENT map carries
5183
+ * no kind row — unclassified, and not counted as an agent. A map that is
5184
+ * absent ENTIRELY is an environment that predates the classification and can
5185
+ * say nothing about any grantee, which is why the check above comes before any
5186
+ * per-DID lookup: collapsing the two with a `grantee_kinds = {}` default
5187
+ * counts every grantee as not-an-agent, giving a zero no caller can tell from
5188
+ * a true zero.
5189
+ *
5190
+ * Direct grants AS RECORDED: role-derived authority is not listed, and no
5191
+ * validity window is applied, so a grant that is recorded but not currently
5192
+ * live is still returned.
5193
+ */
4990
5194
  getDelegation(input: OrgDelegationGetInput): Promise<OrgContractDelegation>;
4991
5195
  /**
4992
5196
  * Read the grant list for a contract (admin-only) in the legacy `UserGrant`
@@ -5159,6 +5363,12 @@ declare class SessionOrgDataClient {
5159
5363
  listAgents(input: ListAgentsInput): Promise<ListAgentsResponse>;
5160
5364
  /** Mirrors {@link OrgDataClient.listHumanMembers}. */
5161
5365
  listHumanMembers(input: ListHumanMembersInput): Promise<ListHumanMembersResponse>;
5366
+ /** Mirrors {@link OrgDataClient.countAgentsByContract} — one PAGE, so a
5367
+ * present `next_cursor` means the tally is still partial. */
5368
+ countAgentsByContract(input: ContractAgentCountsInput): Promise<ContractAgentCountsResponse>;
5369
+ /** Mirrors {@link OrgDataClient.countAllAgentsByContract} — drain-or-throw,
5370
+ * never a partial histogram. */
5371
+ countAllAgentsByContract(input: DrainContractAgentCountsInput): Promise<Record<string, number>>;
5162
5372
  /** Mirrors {@link OrgDataClient.writeData}. */
5163
5373
  writeData(input: WriteDataInput): Promise<MutationResponse>;
5164
5374
  /** Mirrors {@link OrgDataClient.deleteData}. */
@@ -6381,5 +6591,5 @@ declare function tenantDidHex(tenantDid: string): string;
6381
6591
  declare function validateTail(tail: string): string;
6382
6592
  declare function canonicalTenantName(tenantDid: string, tail: string): string;
6383
6593
 
6384
- 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, discoverCheckDelegation, discoverDescribeContract, discoverDescribeFunction, discoverListContracts, discoverWhoami, eth_get_address, extractWasmError, fetchDkgAttestation, fetchMlKemPublicKey, fetchTrustedManifest, formatTokens, generateRandomString, generateUUID, getContractVersion, getEnvironment, getEnvironmentName, getGlobalLogLevel, getLogger, getNodeUrl, invoke, isAgentCardResponse, isAgentEgressGetResponse, 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, stringToBytes, tenantDidHex, toAgentAuthUpdateWire, toBaseUnits, validateConfig, validateTail, verifyDkgAttestation, verifyManifestSignature, verifyTdxQuote };
6385
- 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, ConfigValidationResult, 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, Direction, DiscoverOptions, DkgAttestation, DkgVerifyResult, 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, 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, WasmComponent, WasmNextResult, WhoamiResult, WireBlock, WorkloadAuthInput, WriteDataInput, WriterSet, WritersGetInput };
6594
+ 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, discoverCheckDelegation, discoverDescribeContract, discoverDescribeFunction, discoverListContracts, discoverWhoami, eth_get_address, extractWasmError, fetchDkgAttestation, fetchMlKemPublicKey, 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, stringToBytes, tenantDidHex, toAgentAuthUpdateWire, toBaseUnits, validateConfig, validateTail, verifyDkgAttestation, verifyManifestSignature, verifyTdxQuote };
6595
+ 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, 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, 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, WasmComponent, WasmNextResult, WhoamiResult, WireBlock, WorkloadAuthInput, WriteDataInput, WriterSet, WritersGetInput };