@terminal3/t3n-sdk 4.25.0 → 4.27.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/cli/index.js +1 -1
- package/dist/index.d.ts +267 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1615,6 +1615,112 @@ interface GetAuditEventsOptions {
|
|
|
1615
1615
|
cursor?: string;
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
|
+
/**
|
|
1619
|
+
* Agent-activity audit-log wire shapes (the node's `auditlog` RPC).
|
|
1620
|
+
*
|
|
1621
|
+
* Mirrors `service::activity_audit::{ActivityReport, ReportEntry}` and
|
|
1622
|
+
* `primitives::audit_log::AuditLogEntry`. One entry per audited contract
|
|
1623
|
+
* dispatch — who called, for whom, which contract + function, and how it
|
|
1624
|
+
* ended. Entries are reconstructed from the append-only ledger on read, so
|
|
1625
|
+
* `seq_no` (the ledger index) and `hash` are derived server-side rather than
|
|
1626
|
+
* stored with the record.
|
|
1627
|
+
*
|
|
1628
|
+
* Scope is the caller's **own organisation**, resolved node-side from the
|
|
1629
|
+
* session DID: there is no scope parameter, and a page carries **every
|
|
1630
|
+
* member's** activity in that org, not just the caller's own. Metadata only —
|
|
1631
|
+
* DIDs, never display names, call arguments, or payloads.
|
|
1632
|
+
*/
|
|
1633
|
+
/**
|
|
1634
|
+
* Whether the actor is a registered agent or a human / self principal.
|
|
1635
|
+
* Decided node-side by an existence check on the actor DID in the agent
|
|
1636
|
+
* registry — never inferred from the DID's shape.
|
|
1637
|
+
*/
|
|
1638
|
+
type ActivityCallerType = "agent" | "human";
|
|
1639
|
+
/**
|
|
1640
|
+
* Host-stamped outcome of an audited dispatch.
|
|
1641
|
+
*
|
|
1642
|
+
* - `success` — the business transaction committed.
|
|
1643
|
+
* - `denied` — authorisation refused the call.
|
|
1644
|
+
* - `error` — the call was allowed but failed / rolled back.
|
|
1645
|
+
*/
|
|
1646
|
+
type ActivityOutcome = "success" | "denied" | "error";
|
|
1647
|
+
/** One audited call. */
|
|
1648
|
+
interface ActivityEntry {
|
|
1649
|
+
/**
|
|
1650
|
+
* Ledger index of the entry — its unique, ordered id. Use it as the row key
|
|
1651
|
+
* and as the ordering key: it is monotonic, whereas {@link timestamp_ms} is
|
|
1652
|
+
* per-node wall clock.
|
|
1653
|
+
*/
|
|
1654
|
+
seq_no: number;
|
|
1655
|
+
/** Hex SHA-256 of the stored entry (64 chars) — read-time tamper evidence. */
|
|
1656
|
+
hash: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Call time in Unix ms, stamped on the node that took the request. NOT a
|
|
1659
|
+
* cluster-assigned time, so entries from different nodes can be skewed by
|
|
1660
|
+
* their clock offset — order by {@link seq_no}, not by this.
|
|
1661
|
+
*/
|
|
1662
|
+
timestamp_ms: number;
|
|
1663
|
+
/** Agent vs human, from the agent-registry check on {@link actor}. */
|
|
1664
|
+
caller_type: ActivityCallerType;
|
|
1665
|
+
/** DID that actually invoked the contract. */
|
|
1666
|
+
actor: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* DID of the owner the caller acted for. Equals {@link actor} on a self /
|
|
1669
|
+
* own-authority call — never null.
|
|
1670
|
+
*/
|
|
1671
|
+
on_behalf_of: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* Organisation the acting principal belongs to — the report's scope key, so
|
|
1674
|
+
* it is identical on every row of a page. Falls back to `on_behalf_of` when
|
|
1675
|
+
* that principal is in no organisation.
|
|
1676
|
+
*/
|
|
1677
|
+
org: string;
|
|
1678
|
+
/** Contract that ran, e.g. `tee:user/contracts`. */
|
|
1679
|
+
contract: string;
|
|
1680
|
+
/** Contract function invoked, e.g. `user-upsert`. */
|
|
1681
|
+
function: string;
|
|
1682
|
+
/** success / denied / error — host-stamped from the dispatch result. */
|
|
1683
|
+
outcome: ActivityOutcome;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* One page of the organisation's activity report — **newest first**, i.e.
|
|
1687
|
+
* descending `seq_no`.
|
|
1688
|
+
*/
|
|
1689
|
+
interface ActivityReport {
|
|
1690
|
+
entries: ActivityEntry[];
|
|
1691
|
+
/**
|
|
1692
|
+
* Cursor to resume from — pass it back as
|
|
1693
|
+
* {@link GetActivityLogOptions.before_seq}. `null` once the requested window
|
|
1694
|
+
* is exhausted.
|
|
1695
|
+
*
|
|
1696
|
+
* A live cursor with **fewer rows than `limit`, or none at all**, is normal:
|
|
1697
|
+
* the node also caps how much ledger one call decrypts, and that cap can trip
|
|
1698
|
+
* before the window ends. Page until this is `null`, never on a short or
|
|
1699
|
+
* empty page.
|
|
1700
|
+
*/
|
|
1701
|
+
next_seq: number | null;
|
|
1702
|
+
}
|
|
1703
|
+
/** Params for one activity-report page. All optional; `{}` is valid. */
|
|
1704
|
+
interface GetActivityLogOptions {
|
|
1705
|
+
/** Window start, Unix ms, inclusive. Defaults to 0 (no lower bound). */
|
|
1706
|
+
from_ms?: number;
|
|
1707
|
+
/** Window end, Unix ms, inclusive. Defaults to unbounded. */
|
|
1708
|
+
to_ms?: number;
|
|
1709
|
+
/**
|
|
1710
|
+
* Cursor, inclusive — the highest `seq_no` this page may return. Omitted ⇒
|
|
1711
|
+
* start at the newest entry in the window. Pages walk downwards, so this is
|
|
1712
|
+
* the previous page's {@link ActivityReport.next_seq}.
|
|
1713
|
+
*/
|
|
1714
|
+
before_seq?: number;
|
|
1715
|
+
/**
|
|
1716
|
+
* Rows returned this page. Clamped server-side to 1–1000 (default 200).
|
|
1717
|
+
*
|
|
1718
|
+
* A page can still be shorter than this (or empty) with a live `next_seq` —
|
|
1719
|
+
* the node's own scan cap can trip first. See {@link ActivityReport.next_seq}.
|
|
1720
|
+
*/
|
|
1721
|
+
limit?: number;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1618
1724
|
/**
|
|
1619
1725
|
* Contract-discovery wire shapes.
|
|
1620
1726
|
*
|
|
@@ -1947,6 +2053,39 @@ declare class T3nClient {
|
|
|
1947
2053
|
* caller DID is bound from the session, never the body.
|
|
1948
2054
|
*/
|
|
1949
2055
|
getAuditEvents(opts?: GetAuditEventsOptions): Promise<AuditPage>;
|
|
2056
|
+
/**
|
|
2057
|
+
* Fetch one page of the caller's **organisation's** agent-activity audit log
|
|
2058
|
+
* (`auditlog`): every audited contract dispatch — actor, on-behalf-of,
|
|
2059
|
+
* contract, function, outcome — reconstructed from the append-only ledger.
|
|
2060
|
+
*
|
|
2061
|
+
* The scope organisation is resolved node-side from the session DID, so
|
|
2062
|
+
* there is no scope parameter and a caller can only ever read their own org.
|
|
2063
|
+
* The page carries **every member's** activity in that org, not just the
|
|
2064
|
+
* caller's own.
|
|
2065
|
+
*
|
|
2066
|
+
* Like {@link getAuditEvents} / {@link getUsage}, this runs the session
|
|
2067
|
+
* payload encryption: entries carry principal DIDs, so params and response
|
|
2068
|
+
* are sealed to the session key rather than sent plaintext over TLS.
|
|
2069
|
+
*
|
|
2070
|
+
* Rows come back **newest first**. Page by handing the previous page's
|
|
2071
|
+
* `next_seq` back as `before_seq`, and stop when it comes back `null` —
|
|
2072
|
+
* **not** on a short or empty page: the node also caps how much ledger a
|
|
2073
|
+
* single call decrypts, so a page can be shorter than `limit` while the window
|
|
2074
|
+
* still has rows.
|
|
2075
|
+
*
|
|
2076
|
+
* ```ts
|
|
2077
|
+
* let cursor: number | undefined;
|
|
2078
|
+
* do {
|
|
2079
|
+
* const page = await client.getActivityLog({
|
|
2080
|
+
* limit: 200,
|
|
2081
|
+
* ...(cursor !== undefined && { before_seq: cursor }),
|
|
2082
|
+
* });
|
|
2083
|
+
* render(page.entries);
|
|
2084
|
+
* cursor = page.next_seq ?? undefined;
|
|
2085
|
+
* } while (cursor !== undefined);
|
|
2086
|
+
* ```
|
|
2087
|
+
*/
|
|
2088
|
+
getActivityLog(opts?: GetActivityLogOptions): Promise<ActivityReport>;
|
|
1950
2089
|
/**
|
|
1951
2090
|
* Execute an action with an attached binary blob using multipart RPC.
|
|
1952
2091
|
*/
|
|
@@ -3176,6 +3315,67 @@ interface DataListResponse {
|
|
|
3176
3315
|
}
|
|
3177
3316
|
/** Shallow runtime guard for {@link DataListResponse}. */
|
|
3178
3317
|
declare function isDataListResponse(value: unknown): value is DataListResponse;
|
|
3318
|
+
/** Secret shape discriminator (mirrors the contract `SecretKind`). */
|
|
3319
|
+
type SecretKind = "single_value" | "json";
|
|
3320
|
+
/** Metadata common to every {@link SecretView} entry. */
|
|
3321
|
+
interface SecretViewBase {
|
|
3322
|
+
/** Secret name (the `(org, name)` key tail). */
|
|
3323
|
+
name: string;
|
|
3324
|
+
/** Monotonic version, bumped on each value rotation and ACL edit. */
|
|
3325
|
+
version: number;
|
|
3326
|
+
/** Unix seconds of the most recent write. */
|
|
3327
|
+
updated_at_secs: number;
|
|
3328
|
+
}
|
|
3329
|
+
/**
|
|
3330
|
+
* The redacted per-secret summary `org-secret-list` returns — a discriminated
|
|
3331
|
+
* union on `kind`. The value is NEVER present: a single-value exposes only its
|
|
3332
|
+
* last four characters and a json secret only its sorted top-level field names.
|
|
3333
|
+
*/
|
|
3334
|
+
type SecretView = (SecretViewBase & {
|
|
3335
|
+
kind: "single_value";
|
|
3336
|
+
/** Last four characters of the value (whole value when ≤ 4 chars). */
|
|
3337
|
+
last4: string;
|
|
3338
|
+
}) | (SecretViewBase & {
|
|
3339
|
+
kind: "json";
|
|
3340
|
+
/** Sorted top-level object field names (keys only, no values). */
|
|
3341
|
+
field_names: string[];
|
|
3342
|
+
});
|
|
3343
|
+
/** Shallow runtime guard for {@link SecretView}. */
|
|
3344
|
+
declare function isSecretView(value: unknown): value is SecretView;
|
|
3345
|
+
/**
|
|
3346
|
+
* Full secret record returned by `org-secret-get` — the value IS included
|
|
3347
|
+
* (the deliberate read-back path the READ axis exists for), along with all
|
|
3348
|
+
* three ACLs.
|
|
3349
|
+
*/
|
|
3350
|
+
interface SecretRecord {
|
|
3351
|
+
name: string;
|
|
3352
|
+
kind: SecretKind;
|
|
3353
|
+
/** The value as text: the scalar for a single-value, canonical JSON object for a json secret. */
|
|
3354
|
+
value: string;
|
|
3355
|
+
version: number;
|
|
3356
|
+
/** READ axis — DIDs allowed to read the value back. */
|
|
3357
|
+
reader_dids: string[];
|
|
3358
|
+
/** READ axis — role ids allowed to read the value back. */
|
|
3359
|
+
reader_roles: string[];
|
|
3360
|
+
/** MANAGE axis — DIDs allowed to rotate the value. */
|
|
3361
|
+
manager_dids: string[];
|
|
3362
|
+
/** MANAGE axis — role ids allowed to rotate the value. */
|
|
3363
|
+
manager_roles: string[];
|
|
3364
|
+
/** USE axis — canonical contract ids allowed to have the value injected. */
|
|
3365
|
+
contract_allowlist: string[];
|
|
3366
|
+
created_at_secs: number;
|
|
3367
|
+
updated_at_secs: number;
|
|
3368
|
+
/** DID of the caller who last wrote the record. */
|
|
3369
|
+
updated_by: string;
|
|
3370
|
+
}
|
|
3371
|
+
/** Shallow runtime guard for {@link SecretRecord}. */
|
|
3372
|
+
declare function isSecretRecord(value: unknown): value is SecretRecord;
|
|
3373
|
+
/** Response for `org-secret-list`: redacted per-kind views, no values. */
|
|
3374
|
+
interface SecretListResponse {
|
|
3375
|
+
secrets: SecretView[];
|
|
3376
|
+
}
|
|
3377
|
+
/** Shallow runtime guard for {@link SecretListResponse}. */
|
|
3378
|
+
declare function isSecretListResponse(value: unknown): value is SecretListResponse;
|
|
3179
3379
|
/** Response for `org-data-get`. */
|
|
3180
3380
|
interface DataGetResponse {
|
|
3181
3381
|
entry_id: string;
|
|
@@ -3297,6 +3497,47 @@ interface DeleteGrantsInput {
|
|
|
3297
3497
|
orgDid: string;
|
|
3298
3498
|
contractId: string;
|
|
3299
3499
|
}
|
|
3500
|
+
/**
|
|
3501
|
+
* Create or replace a secret and its three ACLs (org-admin only). `value` is
|
|
3502
|
+
* optional on a replace — omitting it preserves the stored bytes so an admin
|
|
3503
|
+
* can edit the ACLs without handling the secret; it is required on first
|
|
3504
|
+
* create. `contractAllowlist` is the USE axis: canonical contract ids allowed
|
|
3505
|
+
* to have the value injected into an outbound call.
|
|
3506
|
+
*/
|
|
3507
|
+
interface SecretWriteInput {
|
|
3508
|
+
orgDid: string;
|
|
3509
|
+
name: string;
|
|
3510
|
+
kind: SecretKind;
|
|
3511
|
+
/** The value (scalar for `single_value`; JSON object text for `json`). */
|
|
3512
|
+
value?: string;
|
|
3513
|
+
readerDids?: string[];
|
|
3514
|
+
readerRoles?: string[];
|
|
3515
|
+
managerDids?: string[];
|
|
3516
|
+
managerRoles?: string[];
|
|
3517
|
+
contractAllowlist?: string[];
|
|
3518
|
+
}
|
|
3519
|
+
/** Rotate a secret's value only (manager-gated; ACLs untouched). */
|
|
3520
|
+
interface SecretSetValueInput {
|
|
3521
|
+
orgDid: string;
|
|
3522
|
+
name: string;
|
|
3523
|
+
value: string;
|
|
3524
|
+
}
|
|
3525
|
+
/** Read (`org-secret-get`) or delete (`org-secret-delete`) a secret by name. */
|
|
3526
|
+
interface SecretNameInput {
|
|
3527
|
+
orgDid: string;
|
|
3528
|
+
name: string;
|
|
3529
|
+
}
|
|
3530
|
+
/** List an org's secrets (`org-secret-list`). */
|
|
3531
|
+
interface SecretListInput {
|
|
3532
|
+
orgDid: string;
|
|
3533
|
+
}
|
|
3534
|
+
/**
|
|
3535
|
+
* Build the snake_case `org-secret-write` wire body from the camelCase input:
|
|
3536
|
+
* the value is omitted on an ACL-only replace (so the contract preserves the
|
|
3537
|
+
* stored bytes), and each ACL / allowlist list defaults to empty. Exported so
|
|
3538
|
+
* the input-shape test can assert the mapping directly.
|
|
3539
|
+
*/
|
|
3540
|
+
declare function buildSecretWriteArgs(input: SecretWriteInput): Record<string, unknown>;
|
|
3300
3541
|
interface SetRoleInput {
|
|
3301
3542
|
orgDid: string;
|
|
3302
3543
|
role: RoleDefinition;
|
|
@@ -3497,6 +3738,20 @@ declare class OrgDataClient {
|
|
|
3497
3738
|
* Scope names are canonicalised to lowercase before storage.
|
|
3498
3739
|
*/
|
|
3499
3740
|
setWriters(input: SetWritersInput): Promise<MutationResponse>;
|
|
3741
|
+
/**
|
|
3742
|
+
* Create or replace an org secret and its three ACLs (org-admin only). Omit
|
|
3743
|
+
* `value` on a replace to edit the ACLs without handling the secret; it is
|
|
3744
|
+
* required on first create.
|
|
3745
|
+
*/
|
|
3746
|
+
secretWrite(input: SecretWriteInput): Promise<MutationResponse>;
|
|
3747
|
+
/** Rotate a secret's value only (manager-gated; ACLs untouched). */
|
|
3748
|
+
secretSetValue(input: SecretSetValueInput): Promise<MutationResponse>;
|
|
3749
|
+
/** Read a secret's value and metadata (reader-gated). */
|
|
3750
|
+
secretGet(input: SecretNameInput): Promise<SecretRecord>;
|
|
3751
|
+
/** List the org's secrets as redacted per-kind views (no values). */
|
|
3752
|
+
secretList(input: SecretListInput): Promise<SecretView[]>;
|
|
3753
|
+
/** Delete a secret entirely (org-admin only). */
|
|
3754
|
+
secretDelete(input: SecretNameInput): Promise<MutationResponse>;
|
|
3500
3755
|
/**
|
|
3501
3756
|
* Full replacement of the user-grant list for a contract.
|
|
3502
3757
|
*
|
|
@@ -3678,6 +3933,16 @@ declare class SessionOrgDataClient {
|
|
|
3678
3933
|
updateMeta(input: UpdateMetaInput): Promise<MutationResponse>;
|
|
3679
3934
|
/** Mirrors {@link OrgDataClient.setWriters}. */
|
|
3680
3935
|
setWriters(input: SetWritersInput): Promise<MutationResponse>;
|
|
3936
|
+
/** Mirrors {@link OrgDataClient.secretWrite}. */
|
|
3937
|
+
secretWrite(input: SecretWriteInput): Promise<MutationResponse>;
|
|
3938
|
+
/** Mirrors {@link OrgDataClient.secretSetValue}. */
|
|
3939
|
+
secretSetValue(input: SecretSetValueInput): Promise<MutationResponse>;
|
|
3940
|
+
/** Mirrors {@link OrgDataClient.secretGet}. */
|
|
3941
|
+
secretGet(input: SecretNameInput): Promise<SecretRecord>;
|
|
3942
|
+
/** Mirrors {@link OrgDataClient.secretList}. */
|
|
3943
|
+
secretList(input: SecretListInput): Promise<SecretView[]>;
|
|
3944
|
+
/** Mirrors {@link OrgDataClient.secretDelete}. */
|
|
3945
|
+
secretDelete(input: SecretNameInput): Promise<MutationResponse>;
|
|
3681
3946
|
/** Mirrors {@link OrgDataClient.setGrants}. */
|
|
3682
3947
|
setGrants(input: SetGrantsInput): Promise<MutationResponse>;
|
|
3683
3948
|
/** Mirrors {@link OrgDataClient.deleteGrants}. */
|
|
@@ -4664,5 +4929,5 @@ declare function tenantDidHex(tenantDid: string): string;
|
|
|
4664
4929
|
declare function validateTail(tail: string): string;
|
|
4665
4930
|
declare function canonicalTenantName(tenantDid: string, tail: string): string;
|
|
4666
4931
|
|
|
4667
|
-
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, 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, bytesToString, canonicalTenantName, clearKeyCache, clearManifestVersionFloor, compactDidFromBytes, createDefaultHandlers, createEmailOtpAuthInput, createEthAuthInput, createLogger, createMlKemPublicKeyHandler, createOidcAuthInput, createOrgDataClientFromSession, createRandomHandler, createUsageReportClientFromSession, createWorkloadAuthInput, decodeWasmErrorMessage, deriveAgentCardEntryId, eth_get_address, extractWasmError, fetchDkgAttestation, fetchMlKemPublicKey, fetchTrustedManifest, formatTokens, generateRandomString, generateUUID, getEnvironment, getEnvironmentName, getGlobalLogLevel, getLogger, getNodeUrl, getScriptVersion, invoke, isAgentCardResponse, isDataGetResponse, isDataListResponse, isListAgentsResponse, isMutationResponse, isObject, isOrgAdminStatus, isOrgContractGrants, isOrgPolicyMeta, isOrgPolicyView, isOrgUsageReport, isOrgWriters, isRoleAssignmentsResponse, isRoleGetResponse, isUnsafeTrustServer, loadConfig, loadWasmComponent, manifestToTrustAnchor, maskKeyMaterial, mergeAgentAuthEntries, mergeDiscoverDids, metamask_get_address, metamask_sign, parseAgentAuthGet, parseAgentAuthPolicy, parseContractResponse, redactSecrets, redactSecretsFromJson, requestToWire, setEnvironment, setGlobalLogLevel, setNodeUrl, stringToBytes, tenantDidHex, toAgentAuthUpdateWire, toBaseUnits, validateConfig, validateTail, verifyDkgAttestation, verifyManifestSignature, verifyTdxQuote };
|
|
4668
|
-
export type { AdmitForOrgOptions, AgentAuthEntry, AgentAuthMergeResult, AgentAuthPolicy, AgentAuthScriptGrant, AgentAuthUpdateInput, AgentCardRefInput, AgentCardResponse, AgentCardSetInput, AgentSummary, AssignRolesInput, AuthInput, BalanceRow, ChargeReason, ClientAuth, ClientHandshake, ConfigValidationResult, ContractExecuteInput, ContractKind, ContractPublishInput, ContractRegisterResult, ContractResponseSchema, ContractSetDescriptorInput, CreatePolicyInput, DataGetInput, DataGetResponse, DataListInput, DataListResponse, DelegationGrantKind, DelegationGrantRef, DeleteDataInput, DeleteGrantsInput, DeleteScopeInput, Did, Direction, DkgAttestation, DkgVerifyResult, EmailOtpAuthInput, EmailOtpCredentials, Environment, EthAuthInput, ExecuteBusinessContractOptions, ExecuteOrgDataActionOptions, FetchTrustedManifestOptions, GetUsageOptions, GrantCheckParams, GrantCheckResult, GranteeInput, GrantsGetInput, GuestToHostHandler, GuestToHostHandlers, HandshakeResult, InvokeOptions, InvokeRequest, JsonRpcRequest, JsonRpcResponse, KycPollCadence, KycPollOptions, KycStatus, KycStatusKind, ListAgentsInput, ListAgentsResponse, ListContractsParams, ListContractsResult, ListContractsScope, ListedContract, Logger, MapCreateInput, MapLifecycleStatus, MapResponse, MapUpdateInput, MapVisibility, MutationResponse, OidcAuthInput, OidcCredentials, OrgAdminStatus, OrgContractGrants, OrgDataActionWire, OrgDataClientOptions, OrgPolicyMeta, OrgPolicyView, OrgUsageReport, OrgUsageReportInput, OrgWriters, OtpChannel, OtpMergeSuggestion, OtpRequestInput, OtpRequestResult, OtpVerifyInput, OtpVerifyResult, PayrollRunRequest, PeerQuoteResult, PolicyGetInput, PurgeOrgInput, QuoteVerifyResult, ReaderSet, RemoveMemberGrantsInput, RoleAssignments, RoleAssignmentsResponse, RoleDefinition, RoleGetResponse, RoleGrant, RoleIdInput, SdkConfig, SessionCrypto, SessionId, SetGrantsInput, SetRoleInput, SetWritersInput, SignedTrustManifest, StringEncoding, SubmitUserInputArgs, SubmitUserInputResult, T3nClientConfig, TenantAdmitProjection, TenantAdmitStatus, TenantBaseClient, TenantClientConfig, TenantContractExecuteInput, TenantContractPublishInput, TenantContractSetDescriptorInput, TenantExecutionSession, TenantMapCreateInput, TenantMapUpdatePatch, TenantMeResponse, TenantSdkEnvironment, TenantSelfAdmitResult, TenantStatus, TenantTargetOptions, TokenTxKind, Transport, TrustAnchor, TrustAnchorOrUnsafe, TrustManifestPayload, UnassignRolesInput, UnsafeTrustServer, UpdateMetaInput, UsageEntry, UsagePage, UsageReportSignature, UserGrant, UserInputProfile, UserUpsertErrorKind, WasmComponent, WasmNextResult, WireBlock, WorkloadAuthInput, WriteDataInput, WriterSet, WritersGetInput };
|
|
4932
|
+
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, 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, eth_get_address, extractWasmError, fetchDkgAttestation, fetchMlKemPublicKey, fetchTrustedManifest, formatTokens, generateRandomString, generateUUID, getEnvironment, getEnvironmentName, getGlobalLogLevel, getLogger, getNodeUrl, getScriptVersion, invoke, isAgentCardResponse, isDataGetResponse, isDataListResponse, isListAgentsResponse, isMutationResponse, isObject, isOrgAdminStatus, isOrgContractGrants, isOrgPolicyMeta, isOrgPolicyView, isOrgUsageReport, isOrgWriters, isRoleAssignmentsResponse, isRoleGetResponse, isSecretListResponse, isSecretRecord, isSecretView, isUnsafeTrustServer, loadConfig, loadWasmComponent, manifestToTrustAnchor, maskKeyMaterial, mergeAgentAuthEntries, mergeDiscoverDids, metamask_get_address, metamask_sign, parseAgentAuthGet, parseAgentAuthPolicy, parseContractResponse, redactSecrets, redactSecretsFromJson, requestToWire, setEnvironment, setGlobalLogLevel, setNodeUrl, stringToBytes, tenantDidHex, toAgentAuthUpdateWire, toBaseUnits, validateConfig, validateTail, verifyDkgAttestation, verifyManifestSignature, verifyTdxQuote };
|
|
4933
|
+
export type { ActivityCallerType, ActivityEntry, ActivityOutcome, ActivityReport, AdmitForOrgOptions, AgentAuthEntry, AgentAuthMergeResult, AgentAuthPolicy, AgentAuthScriptGrant, AgentAuthUpdateInput, AgentCardRefInput, AgentCardResponse, AgentCardSetInput, AgentSummary, AssignRolesInput, AuthInput, BalanceRow, ChargeReason, ClientAuth, ClientHandshake, ConfigValidationResult, ContractExecuteInput, ContractKind, ContractPublishInput, ContractRegisterResult, ContractResponseSchema, ContractSetDescriptorInput, CreatePolicyInput, DataGetInput, DataGetResponse, DataListInput, DataListResponse, DelegationGrantKind, DelegationGrantRef, DeleteDataInput, DeleteGrantsInput, DeleteScopeInput, Did, Direction, DkgAttestation, DkgVerifyResult, EmailOtpAuthInput, EmailOtpCredentials, Environment, EthAuthInput, ExecuteBusinessContractOptions, ExecuteOrgDataActionOptions, FetchTrustedManifestOptions, GetActivityLogOptions, GetUsageOptions, GrantCheckParams, GrantCheckResult, GranteeInput, GrantsGetInput, GuestToHostHandler, GuestToHostHandlers, HandshakeResult, InvokeOptions, InvokeRequest, JsonRpcRequest, JsonRpcResponse, KycPollCadence, KycPollOptions, KycStatus, KycStatusKind, ListAgentsInput, ListAgentsResponse, ListContractsParams, ListContractsResult, ListContractsScope, ListedContract, Logger, MapCreateInput, MapLifecycleStatus, MapResponse, MapUpdateInput, MapVisibility, MutationResponse, OidcAuthInput, OidcCredentials, OrgAdminStatus, OrgContractGrants, OrgDataActionWire, OrgDataClientOptions, OrgPolicyMeta, OrgPolicyView, OrgUsageReport, OrgUsageReportInput, OrgWriters, OtpChannel, OtpMergeSuggestion, OtpRequestInput, OtpRequestResult, OtpVerifyInput, OtpVerifyResult, PayrollRunRequest, PeerQuoteResult, PolicyGetInput, PurgeOrgInput, QuoteVerifyResult, ReaderSet, RemoveMemberGrantsInput, RoleAssignments, RoleAssignmentsResponse, RoleDefinition, RoleGetResponse, RoleGrant, RoleIdInput, SdkConfig, SecretKind, SecretListInput, SecretListResponse, SecretNameInput, SecretRecord, SecretSetValueInput, SecretView, SecretWriteInput, SessionCrypto, SessionId, SetGrantsInput, SetRoleInput, SetWritersInput, SignedTrustManifest, StringEncoding, SubmitUserInputArgs, SubmitUserInputResult, T3nClientConfig, TenantAdmitProjection, TenantAdmitStatus, TenantBaseClient, TenantClientConfig, TenantContractExecuteInput, TenantContractPublishInput, TenantContractSetDescriptorInput, TenantExecutionSession, TenantMapCreateInput, TenantMapUpdatePatch, TenantMeResponse, TenantSdkEnvironment, TenantSelfAdmitResult, TenantStatus, TenantTargetOptions, TokenTxKind, Transport, TrustAnchor, TrustAnchorOrUnsafe, TrustManifestPayload, UnassignRolesInput, UnsafeTrustServer, UpdateMetaInput, UsageEntry, UsagePage, UsageReportSignature, UserGrant, UserInputProfile, UserUpsertErrorKind, WasmComponent, WasmNextResult, WireBlock, WorkloadAuthInput, WriteDataInput, WriterSet, WritersGetInput };
|