@terminal3/t3n-sdk 4.29.0 → 4.30.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
@@ -3287,9 +3287,17 @@ interface RoleAssignmentsResponse {
3287
3287
  }
3288
3288
  /** Shallow runtime guard for {@link RoleAssignmentsResponse}. */
3289
3289
  declare function isRoleAssignmentsResponse(value: unknown): value is RoleAssignmentsResponse;
3290
- /** The (org) key for `listAgents` — mirrors the contract's `OrgOnlyInput`. */
3290
+ /**
3291
+ * Input for `listAgents` — the org plus optional pagination. Omit both `cursor`
3292
+ * and `limit` for the first page at the default limit; pass a previous
3293
+ * response's `next_cursor` back as `cursor` to fetch the following page.
3294
+ */
3291
3295
  interface ListAgentsInput {
3292
3296
  orgDid: string;
3297
+ /** Opaque cursor from a previous response's `next_cursor`. */
3298
+ cursor?: string;
3299
+ /** Maximum agents to return in this page. */
3300
+ limit?: number;
3293
3301
  }
3294
3302
  /**
3295
3303
  * One org-owned agent in a {@link ListAgentsResponse}: the agent's DID, its
@@ -3308,9 +3316,45 @@ interface AgentSummary {
3308
3316
  }
3309
3317
  /** Response for `org-data-list-agents`. */
3310
3318
  interface ListAgentsResponse {
3311
- /** The org's org-owned agents, sorted by DID. */
3319
+ /** One PAGE of the org's org-owned agents, sorted by DID. */
3312
3320
  agents: AgentSummary[];
3321
+ /** Opaque cursor for the next page; absent on the last page. */
3322
+ next_cursor?: string;
3323
+ }
3324
+ /** A human member's org role. The closed wire domain of {@link HumanMember}. */
3325
+ type MemberRole = "admin" | "member";
3326
+ /**
3327
+ * Input for `listHumanMembers` — the org plus optional pagination. Omit both
3328
+ * `cursor` and `limit` for the first page at the default limit; pass a previous
3329
+ * response's `next_cursor` back as `cursor` to fetch the following page.
3330
+ */
3331
+ interface ListHumanMembersInput {
3332
+ orgDid: string;
3333
+ /** Opaque cursor from a previous response's `next_cursor`. */
3334
+ cursor?: string;
3335
+ /** Maximum members to return in this page. */
3336
+ limit?: number;
3313
3337
  }
3338
+ /**
3339
+ * One direct human member: DID plus org role. No profile PII (name/email are
3340
+ * out of scope and owned by `tee:user`). Mirrors the org-data `HumanMember`
3341
+ * wire shape.
3342
+ */
3343
+ interface HumanMember {
3344
+ /** The member's DID (`did:t3n:<40-hex>`). */
3345
+ did: string;
3346
+ /** The member's org role. */
3347
+ role: MemberRole;
3348
+ }
3349
+ /** Response for `org-data-list-human-members`. */
3350
+ interface ListHumanMembersResponse {
3351
+ /** One PAGE of the org's direct human members, sorted by DID. */
3352
+ members: HumanMember[];
3353
+ /** Opaque cursor for the next page; absent on the last page. */
3354
+ next_cursor?: string;
3355
+ }
3356
+ /** Shallow runtime guard for {@link ListHumanMembersResponse}. */
3357
+ declare function isListHumanMembersResponse(value: unknown): value is ListHumanMembersResponse;
3314
3358
  /** Shallow runtime guard for {@link ListAgentsResponse}. */
3315
3359
  declare function isListAgentsResponse(value: unknown): value is ListAgentsResponse;
3316
3360
  /** Response for `org-data-list`. */
@@ -3787,11 +3831,15 @@ declare class OrgDataClient {
3787
3831
  /** Read a grantee's assigned role ids (org-admin only). */
3788
3832
  getRoleAssignments(input: GranteeInput): Promise<RoleAssignmentsResponse>;
3789
3833
  /**
3790
- * List the org's org-owned agents, each with its display name and the number
3791
- * of distinct contracts it can access via a direct grant (org-admin only).
3834
+ * List ONE PAGE of the org's org-owned agents, each with its display name and
3835
+ * the number of distinct contracts it can access via a direct grant
3836
+ * (org-admin only).
3792
3837
  *
3793
- * The name comes from the agent's private card (falling back to the DID), so
3794
- * the caller renders the roster without fetching each agent's card.
3838
+ * The response carries at most `limit` agents plus an optional `next_cursor`;
3839
+ * to enumerate every agent, pass the returned `next_cursor` back as `cursor`
3840
+ * until it is absent. The name comes from the agent's private card (falling
3841
+ * back to the DID), so the caller renders the roster without fetching each
3842
+ * agent's card.
3795
3843
  *
3796
3844
  * Rides the generic contract-execute funnel (`this.call` →
3797
3845
  * `executeOrgDataAction` → `client.executeAndDecode`) like every other
@@ -3799,6 +3847,17 @@ declare class OrgDataClient {
3799
3847
  * access is not counted.
3800
3848
  */
3801
3849
  listAgents(input: ListAgentsInput): Promise<ListAgentsResponse>;
3850
+ /**
3851
+ * List ONE PAGE of the org's direct HUMAN members, each with its org role
3852
+ * (`admin`|`member`) (org-admin only). A human is a member absent from the
3853
+ * agent registry — the exact complement of {@link listAgents}.
3854
+ *
3855
+ * No profile PII (name/email) is returned; the roster is DID + role only
3856
+ * (AI-175). The response carries at most `limit` members plus an optional
3857
+ * `next_cursor`; to enumerate every member, pass the returned `next_cursor`
3858
+ * back as `cursor` until it is absent.
3859
+ */
3860
+ listHumanMembers(input: ListHumanMembersInput): Promise<ListHumanMembersResponse>;
3802
3861
  /**
3803
3862
  * Write a data entry to the org's scope.
3804
3863
  *
@@ -3973,6 +4032,8 @@ declare class SessionOrgDataClient {
3973
4032
  getRoleAssignments(input: GranteeInput): Promise<RoleAssignmentsResponse>;
3974
4033
  /** Mirrors {@link OrgDataClient.listAgents}. */
3975
4034
  listAgents(input: ListAgentsInput): Promise<ListAgentsResponse>;
4035
+ /** Mirrors {@link OrgDataClient.listHumanMembers}. */
4036
+ listHumanMembers(input: ListHumanMembersInput): Promise<ListHumanMembersResponse>;
3976
4037
  /** Mirrors {@link OrgDataClient.writeData}. */
3977
4038
  writeData(input: WriteDataInput): Promise<MutationResponse>;
3978
4039
  /** Mirrors {@link OrgDataClient.deleteData}. */
@@ -5031,5 +5092,5 @@ declare function tenantDidHex(tenantDid: string): string;
5031
5092
  declare function validateTail(tail: string): string;
5032
5093
  declare function canonicalTenantName(tenantDid: string, tail: string): string;
5033
5094
 
5034
- 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 };
5035
- export type { ActivityCallerType, ActivityEntry, ActivityOutcome, ActivityReport, AdmitForOrgOptions, AgentAuthEntry, AgentAuthMergeResult, AgentAuthPolicy, AgentAuthScriptGrant, AgentAuthUpdateInput, AgentCardRefInput, AgentCardResponse, AgentCardSetInput, AgentSummary, AssignRolesInput, AuthInput, BalanceRow, ChargeReason, ClientAuth, ClientHandshake, ConfigValidationResult, ContractDescriptorFacets, ContractExecuteInput, ContractKind, ContractLifecycleStatus, ContractListDetailedOptions, ContractListDetailedPage, ContractPublishInput, ContractRegisterResult, ContractResponseSchema, ContractSetDescriptorInput, CreatePolicyInput, DataGetInput, DataGetResponse, DataListInput, DataListResponse, DelegationGrantKind, DelegationGrantRef, DeleteDataInput, DeleteGrantsInput, DeleteScopeInput, DetailedContract, 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 };
5095
+ 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, isListHumanMembersResponse, 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 };
5096
+ export type { ActivityCallerType, ActivityEntry, ActivityOutcome, ActivityReport, AdmitForOrgOptions, AgentAuthEntry, AgentAuthMergeResult, AgentAuthPolicy, AgentAuthScriptGrant, AgentAuthUpdateInput, AgentCardRefInput, AgentCardResponse, AgentCardSetInput, AgentSummary, AssignRolesInput, AuthInput, BalanceRow, ChargeReason, ClientAuth, ClientHandshake, ConfigValidationResult, ContractDescriptorFacets, ContractExecuteInput, ContractKind, ContractLifecycleStatus, ContractListDetailedOptions, ContractListDetailedPage, ContractPublishInput, ContractRegisterResult, ContractResponseSchema, ContractSetDescriptorInput, CreatePolicyInput, DataGetInput, DataGetResponse, DataListInput, DataListResponse, DelegationGrantKind, DelegationGrantRef, DeleteDataInput, DeleteGrantsInput, DeleteScopeInput, DetailedContract, Did, Direction, DkgAttestation, DkgVerifyResult, EmailOtpAuthInput, EmailOtpCredentials, Environment, EthAuthInput, ExecuteBusinessContractOptions, ExecuteOrgDataActionOptions, FetchTrustedManifestOptions, GetActivityLogOptions, GetUsageOptions, GrantCheckParams, GrantCheckResult, GranteeInput, GrantsGetInput, 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, MemberRole, 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 };