Overview
Thecompliance sub-client provides tools for regulatory compliance: organization-wide summaries, bulk exports of grants and audit entries, and full evidence packs with chain integrity verification.
compliance.getSummary()
Get an organization-wide compliance summary with aggregate counts for agents, grants, audit entries, and policies.Parameters
string
ISO 8601 start date for the summary window.
string
ISO 8601 end date for the summary window.
Response: ComplianceSummary
string
ISO 8601 timestamp when the summary was generated.
object
Agent counts:
{ total, active, suspended, revoked }.object
Grant counts:
{ total, active, revoked, expired }.object
Audit entry counts:
{ total, success, failure, blocked }.object
Policy counts:
{ total }.string
The organization’s current plan.
compliance.exportGrants()
Export all grants, optionally filtered by status and date range.Parameters
string
ISO 8601 start date filter.
string
ISO 8601 end date filter.
'active' | 'revoked' | 'expired'
Filter by grant status.
Response: ComplianceGrantsExport
string
ISO 8601 timestamp when the export was generated.
number
Total number of exported grants.
Grant[]
Array of grant objects.
compliance.exportAudit()
Export all audit entries, optionally filtered by date range, agent, or status.Parameters
string
ISO 8601 start date filter.
string
ISO 8601 end date filter.
string
Filter by agent ID.
'success' | 'failure' | 'blocked'
Filter by action status.
Response: ComplianceAuditExport
string
ISO 8601 timestamp when the export was generated.
number
Total number of exported entries.
AuditEntry[]
Array of audit entry objects.
compliance.evidencePack()
Generate a full evidence pack for compliance frameworks (SOC 2, GDPR, or both). Includes a summary, all grants, audit entries, policies, and chain integrity verification.Parameters
'soc2' | 'gdpr' | 'all'
The compliance framework to generate evidence for. Defaults to
'all'.string
ISO 8601 start date for the evidence window.
string
ISO 8601 end date for the evidence window.
Response: EvidencePack
object
Metadata:
{ schemaVersion, generatedAt, since?, until?, framework }.object
Aggregate counts for agents, grants, audit entries, policies, and plan.
Grant[]
All grants in the evidence window.
AuditEntry[]
All audit entries in the evidence window.
Policy[]
All active policies.
ChainIntegrity
Chain integrity verification result.
ChainIntegrity
boolean
Whether the hash chain is intact.
number
Number of entries verified.
string | null
ISO 8601 timestamp of the first broken link, or
null if the chain is intact.