Skip to main content

agentAuditService

Workspace API


Workspace API / services/agentAuditService

services/agentAuditService

Interfaces

AgentAuditLogEntry

Defined in: services/agentAuditService.ts:12

Properties

action

action: "create" | "publish" | "rollback" | "import_from_console" | "update"

Defined in: services/agentAuditService.ts:13

agent_id

agent_id: string

Defined in: services/agentAuditService.ts:14

version_id?

optional version_id: string

Defined in: services/agentAuditService.ts:15

user_id

user_id: string

Defined in: services/agentAuditService.ts:16

organization_id

organization_id: string

Defined in: services/agentAuditService.ts:17

metadata?

optional metadata: Record<string, unknown>

Defined in: services/agentAuditService.ts:18

Functions

writeAgentPublishAuditLog()

writeAgentPublishAuditLog(agentId, versionId, userId, organizationId, metadata?): Promise<void>

Defined in: services/agentAuditService.ts:24

Write audit log entry for agent publish operations

Parameters

agentId

string

versionId

string

userId

string

organizationId

string

metadata?

Record<string, unknown>

Returns

Promise<void>


writeAgentRollbackAuditLog()

writeAgentRollbackAuditLog(agentId, versionId, userId, organizationId, metadata?): Promise<void>

Defined in: services/agentAuditService.ts:44

Write audit log entry for agent rollback operations

Parameters

agentId

string

versionId

string

userId

string

organizationId

string

metadata?

Record<string, unknown>

Returns

Promise<void>


writeAgentAuditLog()

writeAgentAuditLog(entry): Promise<void>

Defined in: services/agentAuditService.ts:67

Write audit log entry for agent operations

Inserts audit trail into the skills_agent_versions.metadata field and creates a log entry for long-term audit compliance.

Parameters

entry

AgentAuditLogEntry

Returns

Promise<void>


getAgentAuditTrail()

getAgentAuditTrail(agentId): Promise<Record<string, unknown>[]>

Defined in: services/agentAuditService.ts:138

Get audit trail for an agent

Parameters

agentId

string

Returns

Promise<Record<string, unknown>[]>


getAgentVersionAuditTrail()

getAgentVersionAuditTrail(versionId): Promise<Record<string, unknown>[]>

Defined in: services/agentAuditService.ts:165

Get audit trail for a specific agent version

Parameters

versionId

string

Returns

Promise<Record<string, unknown>[]>