Public declaration syntax from forge-swift/Sources/ForgeTelemetry/AuditTrail.swift Original source SHA-256: 97192f127dae5ed38bfb9dbf2919d2544c45c701a0343003f99b0149c3945cbb Function bodies and constant values are omitted. This is not the complete implementation. Source line 20 public enum AuditEntryKind: String, Codable, Sendable, Hashable, CaseIterable Source line 50 public struct AuditEntry: Codable, Sendable, Equatable Source line 52 public let id: String /// The kind of operation recorded. public let kind: AuditEntryKind /// The agent DID that performed the operation. public let agentDid: String /// When the operation occurred. public let timestamp: Timestamp /// Operation-specific details. public let details: JSONValue /// Optional Ed25519 signature over the entry. /// /// When present, the signature covers the canonical JSON serialization /// of (id, kind, agentDid, timestamp, details). Verification uses the /// agent's public key from their OAS DID document. public let signature: String? /// Creates a new audit entry. /// /// - Parameters: /// - id: Unique entry identifier. Defaults to a new UUID. /// - kind: The kind of operation. /// - agentDid: The agent DID. /// - details: Operation-specific details. /// - signature: Optional signature. /// - timestamp: When the operation occurred. Defaults to now. public init( Source line 54 public let kind: AuditEntryKind /// The agent DID that performed the operation. public let agentDid: String /// When the operation occurred. public let timestamp: Timestamp /// Operation-specific details. public let details: JSONValue /// Optional Ed25519 signature over the entry. /// /// When present, the signature covers the canonical JSON serialization /// of (id, kind, agentDid, timestamp, details). Verification uses the /// agent's public key from their OAS DID document. public let signature: String? /// Creates a new audit entry. /// /// - Parameters: /// - id: Unique entry identifier. Defaults to a new UUID. /// - kind: The kind of operation. /// - agentDid: The agent DID. /// - details: Operation-specific details. /// - signature: Optional signature. /// - timestamp: When the operation occurred. Defaults to now. public init( id: String; Source line 56 public let agentDid: String /// When the operation occurred. public let timestamp: Timestamp /// Operation-specific details. public let details: JSONValue /// Optional Ed25519 signature over the entry. /// /// When present, the signature covers the canonical JSON serialization /// of (id, kind, agentDid, timestamp, details). Verification uses the /// agent's public key from their OAS DID document. public let signature: String? /// Creates a new audit entry. /// /// - Parameters: /// - id: Unique entry identifier. Defaults to a new UUID. /// - kind: The kind of operation. /// - agentDid: The agent DID. /// - details: Operation-specific details. /// - signature: Optional signature. /// - timestamp: When the operation occurred. Defaults to now. public init( id: String; Source line 58 public let timestamp: Timestamp /// Operation-specific details. public let details: JSONValue /// Optional Ed25519 signature over the entry. /// /// When present, the signature covers the canonical JSON serialization /// of (id, kind, agentDid, timestamp, details). Verification uses the /// agent's public key from their OAS DID document. public let signature: String? /// Creates a new audit entry. /// /// - Parameters: /// - id: Unique entry identifier. Defaults to a new UUID. /// - kind: The kind of operation. /// - agentDid: The agent DID. /// - details: Operation-specific details. /// - signature: Optional signature. /// - timestamp: When the operation occurred. Defaults to now. public init( id: String; Source line 60 public let details: JSONValue /// Optional Ed25519 signature over the entry. /// /// When present, the signature covers the canonical JSON serialization /// of (id, kind, agentDid, timestamp, details). Verification uses the /// agent's public key from their OAS DID document. public let signature: String? /// Creates a new audit entry. /// /// - Parameters: /// - id: Unique entry identifier. Defaults to a new UUID. /// - kind: The kind of operation. /// - agentDid: The agent DID. /// - details: Operation-specific details. /// - signature: Optional signature. /// - timestamp: When the operation occurred. Defaults to now. public init( id: String; Source line 66 public let signature: String? /// Creates a new audit entry. /// /// - Parameters: /// - id: Unique entry identifier. Defaults to a new UUID. /// - kind: The kind of operation. /// - agentDid: The agent DID. /// - details: Operation-specific details. /// - signature: Optional signature. /// - timestamp: When the operation occurred. Defaults to now. public init( id: String; Source line 77 public init( id: String; Source line 111 public final class AuditTrail: @unchecked Sendable Source line 113 public let agentDid: String private var _entries: [AuditEntry]; Source line 124 public init(agentDid: String, maxEntries: Int; Source line 138 public func append( kind: AuditEntryKind, details: JSONValue; Source line 166 public func entries() -> [AuditEntry] Source line 173 public var count: Int Source line 183 public func entries(ofKind kind: AuditEntryKind) -> [AuditEntry] Source line 195 public func entries(from: Timestamp, to: Timestamp) -> [AuditEntry]