UNPKG

n8n

Version:

n8n Workflow Automation Tool

47 lines (46 loc) 1.68 kB
import { EventMessageTypeNames } from 'n8n-workflow'; import type { JsonObject, JsonValue, WorkflowSettings } from 'n8n-workflow'; import type { EventNamesAuditType } from '.'; import { AbstractEventMessage } from './abstract-event-message'; import type { AbstractEventMessageOptions } from './abstract-event-message-options'; import type { AbstractEventPayload } from './abstract-event-payload'; export interface EventPayloadAudit extends AbstractEventPayload { msg?: JsonValue; userId?: string; userEmail?: string; firstName?: string; lastName?: string; credentialName?: string; credentialType?: string; credentialId?: string; workflowId?: string; workflowName?: string; activeVersionId?: string | null; deactivatedVersionId?: string | null; versionId?: string; versionName?: string | null; versionDescription?: string | null; settingsChanged?: Record<string, { from: JsonValue; to: JsonValue; }>; variableId?: string; variableKey?: string; executionId?: string; ipAddress?: string; userAgent?: string; redactionPolicy?: WorkflowSettings.RedactionPolicy; rejectionReason?: string; } export interface EventMessageAuditOptions extends AbstractEventMessageOptions { eventName: EventNamesAuditType; payload?: EventPayloadAudit; } export declare class EventMessageAudit extends AbstractEventMessage { readonly __type = EventMessageTypeNames.audit; eventName: EventNamesAuditType; payload: EventPayloadAudit; constructor(options: EventMessageAuditOptions); setPayload(payload: EventPayloadAudit): this; deserialize(data: JsonObject): this; }