// SPDX-License-Identifier: Apache-2.0
// Copyright 2024-2026 Vorion LLC
// =============================================================================
// AUDIT SEVERITY & OUTCOME
// =============================================================================
export const AUDIT_SEVERITIES = ['info', 'warning', 'error', 'critical'];
export const AUDIT_OUTCOMES = ['success', 'failure', 'partial'];
// =============================================================================
// AUDIT EVENT CATEGORIES
// =============================================================================
export const AUDIT_CATEGORIES = [
    'intent',
    'policy',
    'escalation',
    'authentication',
    'authorization',
    'data',
    'system',
    'admin',
];
// =============================================================================
// AUDIT EVENT TYPES
// =============================================================================
export const AUDIT_EVENT_TYPES = {
    // Intent lifecycle
    'intent.created': { category: 'intent', severity: 'info' },
    'intent.submitted': { category: 'intent', severity: 'info' },
    'intent.evaluation.started': { category: 'intent', severity: 'info' },
    'intent.evaluation.completed': { category: 'intent', severity: 'info' },
    'intent.approved': { category: 'intent', severity: 'info' },
    'intent.denied': { category: 'intent', severity: 'warning' },
    'intent.escalated': { category: 'intent', severity: 'warning' },
    'intent.execution.started': { category: 'intent', severity: 'info' },
    'intent.completed': { category: 'intent', severity: 'info' },
    'intent.failed': { category: 'intent', severity: 'error' },
    'intent.cancelled': { category: 'intent', severity: 'warning' },
    'intent.status.changed': { category: 'intent', severity: 'info' },
    'intent.replayed': { category: 'intent', severity: 'info' },
    'intent.deleted': { category: 'intent', severity: 'warning' },
    // Policy events
    'policy.created': { category: 'policy', severity: 'info' },
    'policy.updated': { category: 'policy', severity: 'info' },
    'policy.published': { category: 'policy', severity: 'info' },
    'policy.deprecated': { category: 'policy', severity: 'warning' },
    'policy.archived': { category: 'policy', severity: 'warning' },
    'policy.evaluation.started': { category: 'policy', severity: 'info' },
    'policy.evaluation.completed': { category: 'policy', severity: 'info' },
    'policy.violation': { category: 'policy', severity: 'warning' },
    // Escalation events
    'escalation.created': { category: 'escalation', severity: 'warning' },
    'escalation.acknowledged': { category: 'escalation', severity: 'info' },
    'escalation.approved': { category: 'escalation', severity: 'info' },
    'escalation.rejected': { category: 'escalation', severity: 'warning' },
    'escalation.timeout': { category: 'escalation', severity: 'error' },
    'escalation.cancelled': { category: 'escalation', severity: 'warning' },
    'escalation.sla.breached': { category: 'escalation', severity: 'critical' },
    // Authentication events
    'auth.login': { category: 'authentication', severity: 'info' },
    'auth.logout': { category: 'authentication', severity: 'info' },
    'auth.failed': { category: 'authentication', severity: 'warning' },
    'auth.token.issued': { category: 'authentication', severity: 'info' },
    'auth.token.revoked': { category: 'authentication', severity: 'info' },
    'auth.token.expired': { category: 'authentication', severity: 'info' },
    // Authorization events
    'authz.denied': { category: 'authorization', severity: 'warning' },
    'authz.granted': { category: 'authorization', severity: 'info' },
    'authz.elevated': { category: 'authorization', severity: 'warning' },
    // Data events
    'data.read': { category: 'data', severity: 'info' },
    'data.created': { category: 'data', severity: 'info' },
    'data.updated': { category: 'data', severity: 'info' },
    'data.deleted': { category: 'data', severity: 'warning' },
    'data.exported': { category: 'data', severity: 'warning' },
    // System events
    'system.startup': { category: 'system', severity: 'info' },
    'system.shutdown': { category: 'system', severity: 'info' },
    'system.error': { category: 'system', severity: 'error' },
    'system.warning': { category: 'system', severity: 'warning' },
    'system.config.changed': { category: 'system', severity: 'info' },
    // Admin events
    'admin.user.created': { category: 'admin', severity: 'info' },
    'admin.user.updated': { category: 'admin', severity: 'info' },
    'admin.user.deleted': { category: 'admin', severity: 'warning' },
    'admin.permission.granted': { category: 'admin', severity: 'info' },
    'admin.permission.revoked': { category: 'admin', severity: 'warning' },
    'admin.user_modified': { category: 'admin', severity: 'info' },
    'admin.token_revoked': { category: 'admin', severity: 'warning' },
    // Access events
    'access.denied': { category: 'authorization', severity: 'warning' },
    'access.granted': { category: 'authorization', severity: 'info' },
    // Trust events
    'trust_score.updated': { category: 'data', severity: 'info' },
    'trust_score.recalculated': { category: 'data', severity: 'info' },
    // Escalation assignment events
    'escalation.assigned': { category: 'escalation', severity: 'info' },
    // Policy lifecycle events (already exist but ensure complete)
    'policy.deleted': { category: 'policy', severity: 'warning' },
};
// =============================================================================
// ACTOR TYPES
// =============================================================================
export const ACTOR_TYPES = ['user', 'agent', 'service', 'system'];
// =============================================================================
// TARGET TYPES
// =============================================================================
export const TARGET_TYPES = [
    'intent',
    'policy',
    'escalation',
    'entity',
    'tenant',
    'user',
    'system',
];
//# sourceMappingURL=types.js.map