MCPcopy
hub / github.com/simstudioai/sim / AuditLogParams

Interface AuditLogParams

packages/audit/src/log.ts:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7const logger = createLogger('AuditLog')
8
9interface AuditLogParams {
10 workspaceId?: string | null
11 actorId: string
12 action: AuditActionType
13 resourceType: AuditResourceTypeValue
14 resourceId?: string
15 actorName?: string | null
16 actorEmail?: string | null
17 resourceName?: string
18 description?: string
19 metadata?: Record<string, unknown>
20 request?: { headers: { get(name: string): string | null } }
21}
22
23function getClientIp(request: { headers: { get(name: string): string | null } }): string {
24 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected