Deploy SQLite WAL SHA256 audit core, modular sources, and per-ministry Charcoal dispatcher
This commit is contained in:
parent
ea32bde3ac
commit
1e003c2f50
6 changed files with 190 additions and 0 deletions
13
core/audit_sources/source_discord.py
Normal file
13
core/audit_sources/source_discord.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from core.audit_core import emit_audit
|
||||
|
||||
def log_discord_human_action(ministry: str, sphere_label: str, actor_name: str, actor_discord_id: str, action: str, target: str = "", details: dict = None):
|
||||
payload = {"sphere": sphere_label, **(details or {})}
|
||||
return emit_audit(
|
||||
ministry=ministry,
|
||||
source="discord",
|
||||
actor_name=actor_name,
|
||||
actor_discord_id=actor_discord_id,
|
||||
action=action,
|
||||
target=target,
|
||||
details=payload
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue