/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Read-only representation of a ``DMAuditLogEntry``. * * Handles both model and manual entries; fields that don't apply to a given * entry come back null (e.g. ``resource_type`` for a login event, ``event_type`` * for a model change). */ export type AuditLogEntry = { /** * Audit log entry ID */ id: number; /** * When the action occurred */ timestamp: string; /** * Manual event category; null for model (CRUD) changes. */ event_type: string | null; /** * create, update, delete, or access */ action: string; /** * Username of the actor, if any */ actor_username: string | null; /** * Email of the actor, if any */ actor_email: string | null; /** * Model of the affected resource (CRUD entries). */ resource_type: string | null; /** * PK of the affected resource. */ resource_id: string | null; /** * Human-readable label for the entry. */ resource_repr: string | null; /** * Field-level changes (CRUD entries). */ changes: Record | null; /** * Event payload (manual events). */ metadata: Record | null; /** * Client IP, when captured. */ remote_addr: string | null; };