/** * Audit Logs Resource * * Read-only access to the centralized audit log system. * Provides listing, retrieval, and hash chain verification. */ import type { AuditChainVerification, AuditLogFilter, AuditLogResponse, PaginatedResponse } from "@artu-ai/shared"; export type AuditLog = AuditLogResponse; export type { AuditLogFilter, AuditChainVerification }; /** * Resource manager for audit log operations. * * Audit logs are immutable records of all resource mutations, * linked in a tamper-evident hash chain per organization+environment. * * @example * ```typescript * // List recent audit logs * const logs = await sdk.auditLogs.list({ limit: 50 }); * * // Filter by resource type * const clientLogs = await sdk.auditLogs.list({ * filter: { resource: { eq: "client" } }, * }); * * // Verify hash chain integrity * const result = await sdk.auditLogs.verify(); * console.log(result.valid); // true * ``` */ export declare class AuditLogsResource { private readonly trpc; /** * Lists audit logs with optional filtering and pagination. */ list(options?: { filter?: AuditLogFilter; cursor?: string; limit?: number; }): Promise>; /** * Retrieves a single audit log entry by ID. */ retrieve(id: string): Promise; /** * Verifies the integrity of the audit log hash chain. * * Walks the entire chain for the current organization+environment * and verifies that each record's previousHash matches the * previous record's recordHash. * * @returns Verification result with validity status and record count */ verify(): Promise; }