/** * @deprecated Legacy audit log types. Use OCSF types from './ocsf.js' and * the audit_event table instead. These will be removed once the v2 audit * system fully replaces the legacy audit_log table. */ import { UserType } from '../../index.js'; import { ApiLocationContext } from '../api/index.js'; import { ApiResourceTiming } from '../common/timing.js'; import { ApiRunStatus } from './apiRunDetails.js'; /** @deprecated Use OCSF resource types instead. */ export declare enum AuditLogEntityType { APPLICATION = 0, WORKFLOW = 1, SCHEDULED_JOB = 2, DATASOURCE = 3, FOLDER = 4, APPLICATION_API = 5, PAGE = 6 } type BaseAuditLogEntity = { name: string; id: string; }; type ApplicationAuditLogEntity = BaseAuditLogEntity & { type: AuditLogEntityType.APPLICATION; applicationId: string; devEnvEnabled: boolean; }; type ApplicationApiAuditLogEntity = BaseAuditLogEntity & { type: AuditLogEntityType.APPLICATION_API; applicationId: string; devEnvEnabled: boolean; }; type NonApplicationAuditLogEntity = BaseAuditLogEntity & { type: Exclude; }; /** @deprecated Use OCSF resource types instead. */ export type AuditLogEntity = ApplicationAuditLogEntity | ApplicationApiAuditLogEntity | NonApplicationAuditLogEntity; /** @deprecated Use OCSFStatusId instead. */ export declare enum AuditLogStatusFilter { ALL = "All", SUCCESS = "Success", RUNNING = "Running", ABORTED = "Aborted", ERROR = "Error" } export declare const ABANDONED_EXECUTION_THRESH_MINUTES = 30; /** @deprecated Use OCSFClassUid / OCSFActivityId instead. */ export declare enum AuditLogEventType { API_RUN = 0, INTEGRATION_QUERY = 1 } /** @deprecated Use OCSFAuditEvent instead. */ export interface AuditLogDetails { type: AuditLogEventType; endTime?: Date; target: string; locationContext?: ApiLocationContext; status?: ApiRunStatus; error?: string; timing?: ApiResourceTiming; } /** @deprecated Use OCSFAuditEvent instead. */ export type AuditLogDto = { id?: string; name?: string; entityId: string; entityType: AuditLogEntityType; organizationId?: string; deployed: boolean; startTime: Date; endTime?: Date | null; source?: string; type?: AuditLogEventType; details?: AuditLogDetails; steps?: StepDetail[]; agentId?: string; userType?: UserType | null; routePath?: string; }; interface StepDetail { name: string; id: string; pluginId: string; datasourceId: string; error?: string; startTimeUtc?: Date; executionTimeMs?: number; } /** @deprecated The v2 audit API uses cursor-based pagination. */ export declare const AUDIT_LOG_PAGINATION_LIMIT = 5000; export {}; //# sourceMappingURL=audit.d.ts.map