@axiom-lattice/client-sdk 8.4.1 → 8.5.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.mts CHANGED
@@ -1413,6 +1413,79 @@ interface StreamEvent {
1413
1413
  event: string;
1414
1414
  data: Record<string, unknown>;
1415
1415
  }
1416
+ /** Origin of a durable run record. */
1417
+ type AgentRunSource = "run_api" | "legacy" | "project_task";
1418
+ /** Derived monitor kind for a persisted thread. */
1419
+ type ThreadMonitorKind = "conversation" | "room_presence" | "task_execution" | "open_api" | "web_app" | "cron" | "channel";
1420
+ /** Filters accepted by `client.monitor.threads.list`. */
1421
+ interface ThreadMonitorQuery {
1422
+ limit?: number;
1423
+ offset?: number;
1424
+ kind?: ThreadMonitorKind;
1425
+ assistantId?: string;
1426
+ createdAfter?: string;
1427
+ }
1428
+ /** Safe thread projection returned by the tenant monitor. */
1429
+ interface ThreadMonitorRecord {
1430
+ id: string;
1431
+ tenantId: string;
1432
+ assistantId: string;
1433
+ kind: ThreadMonitorKind;
1434
+ workspaceId?: string;
1435
+ projectId?: string;
1436
+ roomId?: string;
1437
+ taskId?: string;
1438
+ createdAt: string;
1439
+ updatedAt: string;
1440
+ expiresAt?: string;
1441
+ }
1442
+ /** Filters accepted by `client.monitor.runs.list`. */
1443
+ interface AgentRunMonitorQuery {
1444
+ limit?: number;
1445
+ offset?: number;
1446
+ status?: AgentRunStatus;
1447
+ source?: AgentRunSource;
1448
+ assistantId?: string;
1449
+ createdAfter?: string;
1450
+ }
1451
+ /** Safe run projection returned by the tenant monitor. */
1452
+ interface AgentRunMonitorRecord {
1453
+ runId: string;
1454
+ tenantId: string;
1455
+ assistantId: string;
1456
+ threadId: string;
1457
+ workspaceId?: string;
1458
+ projectId?: string;
1459
+ taskId?: string;
1460
+ status: AgentRunStatus;
1461
+ source: AgentRunSource;
1462
+ owner: string | null;
1463
+ attempts: number;
1464
+ error: string | null;
1465
+ cancelRequested: boolean;
1466
+ leaseExpiresAt: number | null;
1467
+ createdAt: number;
1468
+ updatedAt: number;
1469
+ startedAt: number | null;
1470
+ finishedAt: number | null;
1471
+ messageId?: string | null;
1472
+ inputPreview?: string | null;
1473
+ }
1474
+ /** Tenant monitor overview payload. */
1475
+ interface TenantMonitorOverview {
1476
+ since: string;
1477
+ counts: Record<AgentRunStatus, number>;
1478
+ oldestPendingAgeMs: number | null;
1479
+ stuckRunning: number;
1480
+ pendingThreads: number;
1481
+ }
1482
+ /** Generic server-paginated result. */
1483
+ interface MonitorPage<T> {
1484
+ records: T[];
1485
+ total: number;
1486
+ limit: number;
1487
+ offset: number;
1488
+ }
1416
1489
 
1417
1490
  /** Completion evidence accepted by the task lifecycle endpoint. */
1418
1491
  interface CompleteTaskInput {
@@ -1921,13 +1994,17 @@ declare abstract class AbstractClient {
1921
1994
  */
1922
1995
  auditLogs: (params?: {
1923
1996
  credentialId?: string;
1997
+ projectId?: string;
1924
1998
  domain?: string;
1925
- status?: "ok" | "error";
1999
+ action?: string;
2000
+ status?: "ok" | "error" | "cancelled";
1926
2001
  from?: string;
1927
2002
  to?: string;
1928
2003
  limit?: number;
1929
2004
  offset?: number;
1930
2005
  }) => Promise<OpenAuditLogRecord[]>;
2006
+ /** Read one tenant-scoped Open audit record by id. */
2007
+ auditLog: (id: string) => Promise<OpenAuditLogRecord>;
1931
2008
  };
1932
2009
  /**
1933
2010
  * MCP Apps namespace for resolving UI resources and proxying allow-listed
@@ -2452,6 +2529,20 @@ declare abstract class AbstractClient {
2452
2529
  */
2453
2530
  cancelActive: (threadId: string, assistantId?: string) => Promise<RunCancelActiveResult>;
2454
2531
  };
2532
+ /**
2533
+ * Read-only tenant monitor surface (owner/admin only on the server).
2534
+ */
2535
+ monitor: {
2536
+ overview: (options?: {
2537
+ sinceHours?: number;
2538
+ }) => Promise<TenantMonitorOverview>;
2539
+ threads: {
2540
+ list: (query?: ThreadMonitorQuery) => Promise<MonitorPage<ThreadMonitorRecord>>;
2541
+ };
2542
+ runs: {
2543
+ list: (query?: AgentRunMonitorQuery) => Promise<MonitorPage<AgentRunMonitorRecord>>;
2544
+ };
2545
+ };
2455
2546
  /**
2456
2547
  * Tenant-scoped namespaced key-value store (viewer/editor surface).
2457
2548
  */
@@ -3936,4 +4027,4 @@ declare class McpAppShareRuntimeClient implements McpAppShareRuntimeClientApi {
3936
4027
  private parse;
3937
4028
  }
3938
4029
 
3939
- export { type A2AKeyListItem, type A2AKeysListResponse, type AbortAgentParams, AbstractClient, type AddPlatformTenantMemberInput, type AddProjectBotMembershipInput, type AddProjectMembershipInput, type AgentCron, type AgentGraphTree, type AgentRunStatus, type AgentState, type AgentWebAppsListResponse, ApiError, type ApproveOidcIdentityClaimInput, type ArchiveInput, type Assistant, type AssistantListResponse, type AssistantResponse, AuthenticationError, type BrandingSettingsView, type CapabilityBundleListResponse, type ChatResponse, type ChatSendOptions, type ChatStreamOptions, Client, type ClientConfig, type CommandInputRespondArgs, type CommandInputRespondResult, type CommandRunStartArgs, type CommandRunStartInput, type CommandRunStartResult, type CompleteTaskInput, type CompleteTaskResponse, type CopiedThread, type CreateA2AKeyInput, type CreateAssistantOptions, type CreateCronInput, type CreateInviteLinkInput, type CreateOidcProviderInput, type CreatePlatformTenantInput, type CreatePlatformUserInput, type CreateProjectRequest, type CreateStatelessCronInput, type CreateThreadCronInput, type CreateThreadOptions, type CreateWorkspaceRequest, type CronCountFilters, type CronMultitaskStrategy, type CronOnRunCompleted, type CronSearchFilters, type DatabaseConfigResponse, type DatabaseConfigsListResponse, type DatasourcesListResponse, type ExportBundle, type ExportConfigResult, type ExportConfirmationRequired, type ExportDownload, type ExportEntityIds, type ExportEntityPreview, type ExportEntityPreviewMap, ExportImportClient, type ExportableEntity, type ExportableTypeInfo, type FileItem, type GatewayInfo, type GetMessagesOptions, type GetScheduledTasksOptions, type GrantPlatformMemberInput, type GrantPlatformMemberResult, type ImportApplyResult, type ImportConflict, type ImportEntityResult, type ImportInsertion, type ImportPreviewError, type ImportPreviewResult, type ImportResolution, type ImportResolutions, type ImportSource, type InvalidCapabilityBundleSummary, type InviteLinkClaimResult, type InviteLinkSummary, type KeyExposure, type ListAgentWebAppsParams, type ListProjectRoomMessagesOptions, type ListThreadsOptions, type LocalA2ATemplatesListResponse, McpAppShareRuntimeClient, type McpAppShareRuntimeClientApi, type McpAppShareRuntimeClientOptions, type McpServerResponse, type McpServersListResponse, type McpUiResourceResponse, type MetricsConfigResponse, type MetricsConfigsListResponse, type MutationExpectedUpdatedAt, NetworkError, type NormalizedToolResult, type OidcIdentityClaimExistingUser, type OidcIdentityClaimSummary, OidcProviderClientError, type OidcProviderSummary, type OidcProviderTestResult, OidcProvidersClient, type OpenAuditLogRecord, type PendingMessage, type PlatformAuditQuery, type PlatformAuditRecord, PlatformClient, PlatformClientError, type PlatformEnvironmentDiagnostics, type PlatformEnvironmentEndpoints, type PlatformEnvironmentRuntime, type PlatformEnvironmentSettings, type PlatformEnvironmentView, type PlatformInvitationSummary, type PlatformMemberSummary, type PlatformModelProvidersClient, type PlatformOpsClient, type PlatformOpsConfig, type PlatformRateLimitPolicyView, type PlatformRateLimitsView, type PlatformSettingsSnapshot, type PlatformTenant, type PlatformTenantMember, type PlatformUserSummary, type Project, type ProjectCapabilitiesResponse, type ProjectKind, type ProjectRecord, type ProjectRoomBotRecord, ProjectRoomClientError, type ProjectRoomDispatchErrorCode, type ProjectRoomDispatchResult, type ProjectRoomInterruptAnswerInput, type ProjectRoomMembershipRecord, type ProjectRoomMessageRecord, type ProjectRoomPublicBotRecord, type ProjectRoomPublicMembershipRecord, type ProjectRoomRecord, type ProjectRoomSendResult, ProjectRoomsClient, type PruneThreadInput, type PruneThreadResult, type RegisterToolOptions, type RemovePendingMessageOptions, ResourcesClient, type ResumeProjectRoomInterruptInput, type ResumeStreamOptions, type RetryConfig, type RoomEventScopeRecord, RoomEventsClient, type RunCancelActiveResult, type RunCancelOptions, type RunCancelResult, type RunCreateInput, type RunCreateOptions, type RunCreateResult, type RunOptions, type RunRecord, RuntimeAxiomClient, type RuntimeAxiomIdentity, ScheduleExecutionType, type ScheduledTask, ScheduledTaskStatus, type ScheduledTasksListResponse, type SendProjectRoomMessageInput, type StorageType, type StoreItem, type StorePutInput, type StoreSearchInput, type StreamCallbacks, type StreamEvent, type SystemMetrics, type SystemMetricsChunk, type SystemMetricsWorker, type TaskCommandInput, type TaskCommandResponse, type TaskLifecycleWarning, type TaskResponse, type TasksListResponse, type TestConnectionResponse, type TestMcpServerResponse, type TestOidcProviderInput, type TestStoredOidcProviderOverrides, type Thread, type ThreadEvent, type ThreadEventStreamError, type ThreadEventStreamOptions, type ThreadHistoryPage, type ThreadListResponse, type ThreadResponse, type ThreadStatusInfo, type ThreadSuperstepInput, type Tool, type ToolResponse, type ToolsListResponse, type Transport, type UpdateAgentCronInput, type UpdateAssistantOptions, type UpdateBrandingSettingsInput, type UpdateOidcProviderInput, type UpdatePlatformSettingsInput, type UpdatePlatformTenantInput, type UpdatePlatformUserInput, type UpdateProjectBotMembershipInput, type UpdateProjectMembershipInput, type UpdateProjectRequest, type UpdateThreadOptions, type UpdateWorkspaceRequest, WeChatClient, type Workspace, WorkspaceClient, type WorkspaceMemberRecord, WorkspaceMembersClient, type WorkspaceRoomBusinessEvent, type WorkspaceRoomControlEvent, type WorkspaceRoomEntryRecord, type WorkspaceRoomEventConnection, type WorkspaceRoomEventFrame, type WorkspaceRoomKnownBusinessEvent, type WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
4030
+ export { type A2AKeyListItem, type A2AKeysListResponse, type AbortAgentParams, AbstractClient, type AddPlatformTenantMemberInput, type AddProjectBotMembershipInput, type AddProjectMembershipInput, type AgentCron, type AgentGraphTree, type AgentRunMonitorQuery, type AgentRunMonitorRecord, type AgentRunSource, type AgentRunStatus, type AgentState, type AgentWebAppsListResponse, ApiError, type ApproveOidcIdentityClaimInput, type ArchiveInput, type Assistant, type AssistantListResponse, type AssistantResponse, AuthenticationError, type BrandingSettingsView, type CapabilityBundleListResponse, type ChatResponse, type ChatSendOptions, type ChatStreamOptions, Client, type ClientConfig, type CommandInputRespondArgs, type CommandInputRespondResult, type CommandRunStartArgs, type CommandRunStartInput, type CommandRunStartResult, type CompleteTaskInput, type CompleteTaskResponse, type CopiedThread, type CreateA2AKeyInput, type CreateAssistantOptions, type CreateCronInput, type CreateInviteLinkInput, type CreateOidcProviderInput, type CreatePlatformTenantInput, type CreatePlatformUserInput, type CreateProjectRequest, type CreateStatelessCronInput, type CreateThreadCronInput, type CreateThreadOptions, type CreateWorkspaceRequest, type CronCountFilters, type CronMultitaskStrategy, type CronOnRunCompleted, type CronSearchFilters, type DatabaseConfigResponse, type DatabaseConfigsListResponse, type DatasourcesListResponse, type ExportBundle, type ExportConfigResult, type ExportConfirmationRequired, type ExportDownload, type ExportEntityIds, type ExportEntityPreview, type ExportEntityPreviewMap, ExportImportClient, type ExportableEntity, type ExportableTypeInfo, type FileItem, type GatewayInfo, type GetMessagesOptions, type GetScheduledTasksOptions, type GrantPlatformMemberInput, type GrantPlatformMemberResult, type ImportApplyResult, type ImportConflict, type ImportEntityResult, type ImportInsertion, type ImportPreviewError, type ImportPreviewResult, type ImportResolution, type ImportResolutions, type ImportSource, type InvalidCapabilityBundleSummary, type InviteLinkClaimResult, type InviteLinkSummary, type KeyExposure, type ListAgentWebAppsParams, type ListProjectRoomMessagesOptions, type ListThreadsOptions, type LocalA2ATemplatesListResponse, McpAppShareRuntimeClient, type McpAppShareRuntimeClientApi, type McpAppShareRuntimeClientOptions, type McpServerResponse, type McpServersListResponse, type McpUiResourceResponse, type MetricsConfigResponse, type MetricsConfigsListResponse, type MonitorPage, type MutationExpectedUpdatedAt, NetworkError, type NormalizedToolResult, type OidcIdentityClaimExistingUser, type OidcIdentityClaimSummary, OidcProviderClientError, type OidcProviderSummary, type OidcProviderTestResult, OidcProvidersClient, type OpenAuditLogRecord, type PendingMessage, type PlatformAuditQuery, type PlatformAuditRecord, PlatformClient, PlatformClientError, type PlatformEnvironmentDiagnostics, type PlatformEnvironmentEndpoints, type PlatformEnvironmentRuntime, type PlatformEnvironmentSettings, type PlatformEnvironmentView, type PlatformInvitationSummary, type PlatformMemberSummary, type PlatformModelProvidersClient, type PlatformOpsClient, type PlatformOpsConfig, type PlatformRateLimitPolicyView, type PlatformRateLimitsView, type PlatformSettingsSnapshot, type PlatformTenant, type PlatformTenantMember, type PlatformUserSummary, type Project, type ProjectCapabilitiesResponse, type ProjectKind, type ProjectRecord, type ProjectRoomBotRecord, ProjectRoomClientError, type ProjectRoomDispatchErrorCode, type ProjectRoomDispatchResult, type ProjectRoomInterruptAnswerInput, type ProjectRoomMembershipRecord, type ProjectRoomMessageRecord, type ProjectRoomPublicBotRecord, type ProjectRoomPublicMembershipRecord, type ProjectRoomRecord, type ProjectRoomSendResult, ProjectRoomsClient, type PruneThreadInput, type PruneThreadResult, type RegisterToolOptions, type RemovePendingMessageOptions, ResourcesClient, type ResumeProjectRoomInterruptInput, type ResumeStreamOptions, type RetryConfig, type RoomEventScopeRecord, RoomEventsClient, type RunCancelActiveResult, type RunCancelOptions, type RunCancelResult, type RunCreateInput, type RunCreateOptions, type RunCreateResult, type RunOptions, type RunRecord, RuntimeAxiomClient, type RuntimeAxiomIdentity, ScheduleExecutionType, type ScheduledTask, ScheduledTaskStatus, type ScheduledTasksListResponse, type SendProjectRoomMessageInput, type StorageType, type StoreItem, type StorePutInput, type StoreSearchInput, type StreamCallbacks, type StreamEvent, type SystemMetrics, type SystemMetricsChunk, type SystemMetricsWorker, type TaskCommandInput, type TaskCommandResponse, type TaskLifecycleWarning, type TaskResponse, type TasksListResponse, type TenantMonitorOverview, type TestConnectionResponse, type TestMcpServerResponse, type TestOidcProviderInput, type TestStoredOidcProviderOverrides, type Thread, type ThreadEvent, type ThreadEventStreamError, type ThreadEventStreamOptions, type ThreadHistoryPage, type ThreadListResponse, type ThreadMonitorKind, type ThreadMonitorQuery, type ThreadMonitorRecord, type ThreadResponse, type ThreadStatusInfo, type ThreadSuperstepInput, type Tool, type ToolResponse, type ToolsListResponse, type Transport, type UpdateAgentCronInput, type UpdateAssistantOptions, type UpdateBrandingSettingsInput, type UpdateOidcProviderInput, type UpdatePlatformSettingsInput, type UpdatePlatformTenantInput, type UpdatePlatformUserInput, type UpdateProjectBotMembershipInput, type UpdateProjectMembershipInput, type UpdateProjectRequest, type UpdateThreadOptions, type UpdateWorkspaceRequest, WeChatClient, type Workspace, WorkspaceClient, type WorkspaceMemberRecord, WorkspaceMembersClient, type WorkspaceRoomBusinessEvent, type WorkspaceRoomControlEvent, type WorkspaceRoomEntryRecord, type WorkspaceRoomEventConnection, type WorkspaceRoomEventFrame, type WorkspaceRoomKnownBusinessEvent, type WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
package/dist/index.d.ts CHANGED
@@ -1413,6 +1413,79 @@ interface StreamEvent {
1413
1413
  event: string;
1414
1414
  data: Record<string, unknown>;
1415
1415
  }
1416
+ /** Origin of a durable run record. */
1417
+ type AgentRunSource = "run_api" | "legacy" | "project_task";
1418
+ /** Derived monitor kind for a persisted thread. */
1419
+ type ThreadMonitorKind = "conversation" | "room_presence" | "task_execution" | "open_api" | "web_app" | "cron" | "channel";
1420
+ /** Filters accepted by `client.monitor.threads.list`. */
1421
+ interface ThreadMonitorQuery {
1422
+ limit?: number;
1423
+ offset?: number;
1424
+ kind?: ThreadMonitorKind;
1425
+ assistantId?: string;
1426
+ createdAfter?: string;
1427
+ }
1428
+ /** Safe thread projection returned by the tenant monitor. */
1429
+ interface ThreadMonitorRecord {
1430
+ id: string;
1431
+ tenantId: string;
1432
+ assistantId: string;
1433
+ kind: ThreadMonitorKind;
1434
+ workspaceId?: string;
1435
+ projectId?: string;
1436
+ roomId?: string;
1437
+ taskId?: string;
1438
+ createdAt: string;
1439
+ updatedAt: string;
1440
+ expiresAt?: string;
1441
+ }
1442
+ /** Filters accepted by `client.monitor.runs.list`. */
1443
+ interface AgentRunMonitorQuery {
1444
+ limit?: number;
1445
+ offset?: number;
1446
+ status?: AgentRunStatus;
1447
+ source?: AgentRunSource;
1448
+ assistantId?: string;
1449
+ createdAfter?: string;
1450
+ }
1451
+ /** Safe run projection returned by the tenant monitor. */
1452
+ interface AgentRunMonitorRecord {
1453
+ runId: string;
1454
+ tenantId: string;
1455
+ assistantId: string;
1456
+ threadId: string;
1457
+ workspaceId?: string;
1458
+ projectId?: string;
1459
+ taskId?: string;
1460
+ status: AgentRunStatus;
1461
+ source: AgentRunSource;
1462
+ owner: string | null;
1463
+ attempts: number;
1464
+ error: string | null;
1465
+ cancelRequested: boolean;
1466
+ leaseExpiresAt: number | null;
1467
+ createdAt: number;
1468
+ updatedAt: number;
1469
+ startedAt: number | null;
1470
+ finishedAt: number | null;
1471
+ messageId?: string | null;
1472
+ inputPreview?: string | null;
1473
+ }
1474
+ /** Tenant monitor overview payload. */
1475
+ interface TenantMonitorOverview {
1476
+ since: string;
1477
+ counts: Record<AgentRunStatus, number>;
1478
+ oldestPendingAgeMs: number | null;
1479
+ stuckRunning: number;
1480
+ pendingThreads: number;
1481
+ }
1482
+ /** Generic server-paginated result. */
1483
+ interface MonitorPage<T> {
1484
+ records: T[];
1485
+ total: number;
1486
+ limit: number;
1487
+ offset: number;
1488
+ }
1416
1489
 
1417
1490
  /** Completion evidence accepted by the task lifecycle endpoint. */
1418
1491
  interface CompleteTaskInput {
@@ -1921,13 +1994,17 @@ declare abstract class AbstractClient {
1921
1994
  */
1922
1995
  auditLogs: (params?: {
1923
1996
  credentialId?: string;
1997
+ projectId?: string;
1924
1998
  domain?: string;
1925
- status?: "ok" | "error";
1999
+ action?: string;
2000
+ status?: "ok" | "error" | "cancelled";
1926
2001
  from?: string;
1927
2002
  to?: string;
1928
2003
  limit?: number;
1929
2004
  offset?: number;
1930
2005
  }) => Promise<OpenAuditLogRecord[]>;
2006
+ /** Read one tenant-scoped Open audit record by id. */
2007
+ auditLog: (id: string) => Promise<OpenAuditLogRecord>;
1931
2008
  };
1932
2009
  /**
1933
2010
  * MCP Apps namespace for resolving UI resources and proxying allow-listed
@@ -2452,6 +2529,20 @@ declare abstract class AbstractClient {
2452
2529
  */
2453
2530
  cancelActive: (threadId: string, assistantId?: string) => Promise<RunCancelActiveResult>;
2454
2531
  };
2532
+ /**
2533
+ * Read-only tenant monitor surface (owner/admin only on the server).
2534
+ */
2535
+ monitor: {
2536
+ overview: (options?: {
2537
+ sinceHours?: number;
2538
+ }) => Promise<TenantMonitorOverview>;
2539
+ threads: {
2540
+ list: (query?: ThreadMonitorQuery) => Promise<MonitorPage<ThreadMonitorRecord>>;
2541
+ };
2542
+ runs: {
2543
+ list: (query?: AgentRunMonitorQuery) => Promise<MonitorPage<AgentRunMonitorRecord>>;
2544
+ };
2545
+ };
2455
2546
  /**
2456
2547
  * Tenant-scoped namespaced key-value store (viewer/editor surface).
2457
2548
  */
@@ -3936,4 +4027,4 @@ declare class McpAppShareRuntimeClient implements McpAppShareRuntimeClientApi {
3936
4027
  private parse;
3937
4028
  }
3938
4029
 
3939
- export { type A2AKeyListItem, type A2AKeysListResponse, type AbortAgentParams, AbstractClient, type AddPlatformTenantMemberInput, type AddProjectBotMembershipInput, type AddProjectMembershipInput, type AgentCron, type AgentGraphTree, type AgentRunStatus, type AgentState, type AgentWebAppsListResponse, ApiError, type ApproveOidcIdentityClaimInput, type ArchiveInput, type Assistant, type AssistantListResponse, type AssistantResponse, AuthenticationError, type BrandingSettingsView, type CapabilityBundleListResponse, type ChatResponse, type ChatSendOptions, type ChatStreamOptions, Client, type ClientConfig, type CommandInputRespondArgs, type CommandInputRespondResult, type CommandRunStartArgs, type CommandRunStartInput, type CommandRunStartResult, type CompleteTaskInput, type CompleteTaskResponse, type CopiedThread, type CreateA2AKeyInput, type CreateAssistantOptions, type CreateCronInput, type CreateInviteLinkInput, type CreateOidcProviderInput, type CreatePlatformTenantInput, type CreatePlatformUserInput, type CreateProjectRequest, type CreateStatelessCronInput, type CreateThreadCronInput, type CreateThreadOptions, type CreateWorkspaceRequest, type CronCountFilters, type CronMultitaskStrategy, type CronOnRunCompleted, type CronSearchFilters, type DatabaseConfigResponse, type DatabaseConfigsListResponse, type DatasourcesListResponse, type ExportBundle, type ExportConfigResult, type ExportConfirmationRequired, type ExportDownload, type ExportEntityIds, type ExportEntityPreview, type ExportEntityPreviewMap, ExportImportClient, type ExportableEntity, type ExportableTypeInfo, type FileItem, type GatewayInfo, type GetMessagesOptions, type GetScheduledTasksOptions, type GrantPlatformMemberInput, type GrantPlatformMemberResult, type ImportApplyResult, type ImportConflict, type ImportEntityResult, type ImportInsertion, type ImportPreviewError, type ImportPreviewResult, type ImportResolution, type ImportResolutions, type ImportSource, type InvalidCapabilityBundleSummary, type InviteLinkClaimResult, type InviteLinkSummary, type KeyExposure, type ListAgentWebAppsParams, type ListProjectRoomMessagesOptions, type ListThreadsOptions, type LocalA2ATemplatesListResponse, McpAppShareRuntimeClient, type McpAppShareRuntimeClientApi, type McpAppShareRuntimeClientOptions, type McpServerResponse, type McpServersListResponse, type McpUiResourceResponse, type MetricsConfigResponse, type MetricsConfigsListResponse, type MutationExpectedUpdatedAt, NetworkError, type NormalizedToolResult, type OidcIdentityClaimExistingUser, type OidcIdentityClaimSummary, OidcProviderClientError, type OidcProviderSummary, type OidcProviderTestResult, OidcProvidersClient, type OpenAuditLogRecord, type PendingMessage, type PlatformAuditQuery, type PlatformAuditRecord, PlatformClient, PlatformClientError, type PlatformEnvironmentDiagnostics, type PlatformEnvironmentEndpoints, type PlatformEnvironmentRuntime, type PlatformEnvironmentSettings, type PlatformEnvironmentView, type PlatformInvitationSummary, type PlatformMemberSummary, type PlatformModelProvidersClient, type PlatformOpsClient, type PlatformOpsConfig, type PlatformRateLimitPolicyView, type PlatformRateLimitsView, type PlatformSettingsSnapshot, type PlatformTenant, type PlatformTenantMember, type PlatformUserSummary, type Project, type ProjectCapabilitiesResponse, type ProjectKind, type ProjectRecord, type ProjectRoomBotRecord, ProjectRoomClientError, type ProjectRoomDispatchErrorCode, type ProjectRoomDispatchResult, type ProjectRoomInterruptAnswerInput, type ProjectRoomMembershipRecord, type ProjectRoomMessageRecord, type ProjectRoomPublicBotRecord, type ProjectRoomPublicMembershipRecord, type ProjectRoomRecord, type ProjectRoomSendResult, ProjectRoomsClient, type PruneThreadInput, type PruneThreadResult, type RegisterToolOptions, type RemovePendingMessageOptions, ResourcesClient, type ResumeProjectRoomInterruptInput, type ResumeStreamOptions, type RetryConfig, type RoomEventScopeRecord, RoomEventsClient, type RunCancelActiveResult, type RunCancelOptions, type RunCancelResult, type RunCreateInput, type RunCreateOptions, type RunCreateResult, type RunOptions, type RunRecord, RuntimeAxiomClient, type RuntimeAxiomIdentity, ScheduleExecutionType, type ScheduledTask, ScheduledTaskStatus, type ScheduledTasksListResponse, type SendProjectRoomMessageInput, type StorageType, type StoreItem, type StorePutInput, type StoreSearchInput, type StreamCallbacks, type StreamEvent, type SystemMetrics, type SystemMetricsChunk, type SystemMetricsWorker, type TaskCommandInput, type TaskCommandResponse, type TaskLifecycleWarning, type TaskResponse, type TasksListResponse, type TestConnectionResponse, type TestMcpServerResponse, type TestOidcProviderInput, type TestStoredOidcProviderOverrides, type Thread, type ThreadEvent, type ThreadEventStreamError, type ThreadEventStreamOptions, type ThreadHistoryPage, type ThreadListResponse, type ThreadResponse, type ThreadStatusInfo, type ThreadSuperstepInput, type Tool, type ToolResponse, type ToolsListResponse, type Transport, type UpdateAgentCronInput, type UpdateAssistantOptions, type UpdateBrandingSettingsInput, type UpdateOidcProviderInput, type UpdatePlatformSettingsInput, type UpdatePlatformTenantInput, type UpdatePlatformUserInput, type UpdateProjectBotMembershipInput, type UpdateProjectMembershipInput, type UpdateProjectRequest, type UpdateThreadOptions, type UpdateWorkspaceRequest, WeChatClient, type Workspace, WorkspaceClient, type WorkspaceMemberRecord, WorkspaceMembersClient, type WorkspaceRoomBusinessEvent, type WorkspaceRoomControlEvent, type WorkspaceRoomEntryRecord, type WorkspaceRoomEventConnection, type WorkspaceRoomEventFrame, type WorkspaceRoomKnownBusinessEvent, type WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
4030
+ export { type A2AKeyListItem, type A2AKeysListResponse, type AbortAgentParams, AbstractClient, type AddPlatformTenantMemberInput, type AddProjectBotMembershipInput, type AddProjectMembershipInput, type AgentCron, type AgentGraphTree, type AgentRunMonitorQuery, type AgentRunMonitorRecord, type AgentRunSource, type AgentRunStatus, type AgentState, type AgentWebAppsListResponse, ApiError, type ApproveOidcIdentityClaimInput, type ArchiveInput, type Assistant, type AssistantListResponse, type AssistantResponse, AuthenticationError, type BrandingSettingsView, type CapabilityBundleListResponse, type ChatResponse, type ChatSendOptions, type ChatStreamOptions, Client, type ClientConfig, type CommandInputRespondArgs, type CommandInputRespondResult, type CommandRunStartArgs, type CommandRunStartInput, type CommandRunStartResult, type CompleteTaskInput, type CompleteTaskResponse, type CopiedThread, type CreateA2AKeyInput, type CreateAssistantOptions, type CreateCronInput, type CreateInviteLinkInput, type CreateOidcProviderInput, type CreatePlatformTenantInput, type CreatePlatformUserInput, type CreateProjectRequest, type CreateStatelessCronInput, type CreateThreadCronInput, type CreateThreadOptions, type CreateWorkspaceRequest, type CronCountFilters, type CronMultitaskStrategy, type CronOnRunCompleted, type CronSearchFilters, type DatabaseConfigResponse, type DatabaseConfigsListResponse, type DatasourcesListResponse, type ExportBundle, type ExportConfigResult, type ExportConfirmationRequired, type ExportDownload, type ExportEntityIds, type ExportEntityPreview, type ExportEntityPreviewMap, ExportImportClient, type ExportableEntity, type ExportableTypeInfo, type FileItem, type GatewayInfo, type GetMessagesOptions, type GetScheduledTasksOptions, type GrantPlatformMemberInput, type GrantPlatformMemberResult, type ImportApplyResult, type ImportConflict, type ImportEntityResult, type ImportInsertion, type ImportPreviewError, type ImportPreviewResult, type ImportResolution, type ImportResolutions, type ImportSource, type InvalidCapabilityBundleSummary, type InviteLinkClaimResult, type InviteLinkSummary, type KeyExposure, type ListAgentWebAppsParams, type ListProjectRoomMessagesOptions, type ListThreadsOptions, type LocalA2ATemplatesListResponse, McpAppShareRuntimeClient, type McpAppShareRuntimeClientApi, type McpAppShareRuntimeClientOptions, type McpServerResponse, type McpServersListResponse, type McpUiResourceResponse, type MetricsConfigResponse, type MetricsConfigsListResponse, type MonitorPage, type MutationExpectedUpdatedAt, NetworkError, type NormalizedToolResult, type OidcIdentityClaimExistingUser, type OidcIdentityClaimSummary, OidcProviderClientError, type OidcProviderSummary, type OidcProviderTestResult, OidcProvidersClient, type OpenAuditLogRecord, type PendingMessage, type PlatformAuditQuery, type PlatformAuditRecord, PlatformClient, PlatformClientError, type PlatformEnvironmentDiagnostics, type PlatformEnvironmentEndpoints, type PlatformEnvironmentRuntime, type PlatformEnvironmentSettings, type PlatformEnvironmentView, type PlatformInvitationSummary, type PlatformMemberSummary, type PlatformModelProvidersClient, type PlatformOpsClient, type PlatformOpsConfig, type PlatformRateLimitPolicyView, type PlatformRateLimitsView, type PlatformSettingsSnapshot, type PlatformTenant, type PlatformTenantMember, type PlatformUserSummary, type Project, type ProjectCapabilitiesResponse, type ProjectKind, type ProjectRecord, type ProjectRoomBotRecord, ProjectRoomClientError, type ProjectRoomDispatchErrorCode, type ProjectRoomDispatchResult, type ProjectRoomInterruptAnswerInput, type ProjectRoomMembershipRecord, type ProjectRoomMessageRecord, type ProjectRoomPublicBotRecord, type ProjectRoomPublicMembershipRecord, type ProjectRoomRecord, type ProjectRoomSendResult, ProjectRoomsClient, type PruneThreadInput, type PruneThreadResult, type RegisterToolOptions, type RemovePendingMessageOptions, ResourcesClient, type ResumeProjectRoomInterruptInput, type ResumeStreamOptions, type RetryConfig, type RoomEventScopeRecord, RoomEventsClient, type RunCancelActiveResult, type RunCancelOptions, type RunCancelResult, type RunCreateInput, type RunCreateOptions, type RunCreateResult, type RunOptions, type RunRecord, RuntimeAxiomClient, type RuntimeAxiomIdentity, ScheduleExecutionType, type ScheduledTask, ScheduledTaskStatus, type ScheduledTasksListResponse, type SendProjectRoomMessageInput, type StorageType, type StoreItem, type StorePutInput, type StoreSearchInput, type StreamCallbacks, type StreamEvent, type SystemMetrics, type SystemMetricsChunk, type SystemMetricsWorker, type TaskCommandInput, type TaskCommandResponse, type TaskLifecycleWarning, type TaskResponse, type TasksListResponse, type TenantMonitorOverview, type TestConnectionResponse, type TestMcpServerResponse, type TestOidcProviderInput, type TestStoredOidcProviderOverrides, type Thread, type ThreadEvent, type ThreadEventStreamError, type ThreadEventStreamOptions, type ThreadHistoryPage, type ThreadListResponse, type ThreadMonitorKind, type ThreadMonitorQuery, type ThreadMonitorRecord, type ThreadResponse, type ThreadStatusInfo, type ThreadSuperstepInput, type Tool, type ToolResponse, type ToolsListResponse, type Transport, type UpdateAgentCronInput, type UpdateAssistantOptions, type UpdateBrandingSettingsInput, type UpdateOidcProviderInput, type UpdatePlatformSettingsInput, type UpdatePlatformTenantInput, type UpdatePlatformUserInput, type UpdateProjectBotMembershipInput, type UpdateProjectMembershipInput, type UpdateProjectRequest, type UpdateThreadOptions, type UpdateWorkspaceRequest, WeChatClient, type Workspace, WorkspaceClient, type WorkspaceMemberRecord, WorkspaceMembersClient, type WorkspaceRoomBusinessEvent, type WorkspaceRoomControlEvent, type WorkspaceRoomEntryRecord, type WorkspaceRoomEventConnection, type WorkspaceRoomEventFrame, type WorkspaceRoomKnownBusinessEvent, type WorkspaceRoomUnknownBusinessEvent, WorkspaceRoomsClient, createSimpleMessageMerger, normalizeToolResult };
package/dist/index.js CHANGED
@@ -2286,7 +2286,9 @@ var AbstractClient = class {
2286
2286
  auditLogs: async (params) => {
2287
2287
  const searchParams = new URLSearchParams();
2288
2288
  if (params?.credentialId) searchParams.set("credentialId", params.credentialId);
2289
+ if (params?.projectId) searchParams.set("projectId", params.projectId);
2289
2290
  if (params?.domain) searchParams.set("domain", params.domain);
2291
+ if (params?.action) searchParams.set("action", params.action);
2290
2292
  if (params?.status) searchParams.set("status", params.status);
2291
2293
  if (params?.from) searchParams.set("from", params.from);
2292
2294
  if (params?.to) searchParams.set("to", params.to);
@@ -2295,6 +2297,11 @@ var AbstractClient = class {
2295
2297
  const qs = searchParams.toString();
2296
2298
  const response = await this.makeRequest(`/api/open/audit${qs ? `?${qs}` : ""}`);
2297
2299
  return response.data.records;
2300
+ },
2301
+ /** Read one tenant-scoped Open audit record by id. */
2302
+ auditLog: async (id) => {
2303
+ const response = await this.makeRequest(`/api/open/audit/${encodeURIComponent(id)}`);
2304
+ return response.data.record;
2298
2305
  }
2299
2306
  };
2300
2307
  /**
@@ -3210,6 +3217,47 @@ var AbstractClient = class {
3210
3217
  );
3211
3218
  }
3212
3219
  };
3220
+ /**
3221
+ * Read-only tenant monitor surface (owner/admin only on the server).
3222
+ */
3223
+ this.monitor = {
3224
+ overview: async (options) => {
3225
+ const params = new URLSearchParams();
3226
+ if (options?.sinceHours !== void 0) {
3227
+ params.set("sinceHours", String(options.sinceHours));
3228
+ }
3229
+ const query = params.toString();
3230
+ const response = await this.makeRequest(`/api/tenant-monitor/overview${query ? `?${query}` : ""}`);
3231
+ return response.data;
3232
+ },
3233
+ threads: {
3234
+ list: async (query = {}) => {
3235
+ const params = new URLSearchParams();
3236
+ if (query.limit !== void 0) params.set("limit", String(query.limit));
3237
+ if (query.offset !== void 0) params.set("offset", String(query.offset));
3238
+ if (query.kind) params.set("kind", query.kind);
3239
+ if (query.assistantId) params.set("assistantId", query.assistantId);
3240
+ if (query.createdAfter) params.set("createdAfter", query.createdAfter);
3241
+ const suffix = params.toString();
3242
+ const response = await this.makeRequest(`/api/tenant-monitor/threads${suffix ? `?${suffix}` : ""}`);
3243
+ return response.data;
3244
+ }
3245
+ },
3246
+ runs: {
3247
+ list: async (query = {}) => {
3248
+ const params = new URLSearchParams();
3249
+ if (query.limit !== void 0) params.set("limit", String(query.limit));
3250
+ if (query.offset !== void 0) params.set("offset", String(query.offset));
3251
+ if (query.status) params.set("status", query.status);
3252
+ if (query.source) params.set("source", query.source);
3253
+ if (query.assistantId) params.set("assistantId", query.assistantId);
3254
+ if (query.createdAfter) params.set("createdAfter", query.createdAfter);
3255
+ const suffix = params.toString();
3256
+ const response = await this.makeRequest(`/api/tenant-monitor/runs${suffix ? `?${suffix}` : ""}`);
3257
+ return response.data;
3258
+ }
3259
+ }
3260
+ };
3213
3261
  /**
3214
3262
  * Tenant-scoped namespaced key-value store (viewer/editor surface).
3215
3263
  */