Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,16 @@
"fileMatch": ["loki.yml", "loki.yaml"],
"url": "https://www.schemastore.org/loki.json"
},
{
"name": "LogVault Audit Event",
"description": "Audit trail event schema for LogVault\nhttps://logvault.eu/docs",
"fileMatch": [
"logvault-event.json",
"logvault-events.json",
"**/audit-events/*.json"
],
"url": "https://json.schemastore.org/logvault-audit-event.json"
},
{
"name": "Azure Pipelines",
"description": "Azure Pipelines YAML pipelines definition",
Expand Down
57 changes: 57 additions & 0 deletions src/schemas/json/logvault-audit-event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/logvault-audit-event.json",
"title": "LogVault Audit Event",
"description": "Schema for audit trail events. LogVault provides compliance-ready audit logging for SaaS applications.\nhttps://logvault.eu/docs",
"type": "object",
"required": ["action", "actorId"],
"properties": {
"action": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_.]*$",
"minLength": 3,
"maxLength": 100,
"description": "Event action in resource.action format (e.g., user.login, api_key.created)",
"examples": [
"user.login",
"user.created",
"api_key.created",
"team.member_invited",
"subscription.cancelled"
]
},
"actorId": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Identifier of the entity performing the action",
"examples": ["user_abc123", "service_billing", "system"]
},
"actorType": {
"type": "string",
"description": "Type of actor",
"default": "user",
"examples": ["user", "service", "system", "api_key"]
},
"targetId": {
"type": "string",
"maxLength": 255,
"description": "Identifier of the entity being acted upon"
},
"targetType": {
"type": "string",
"maxLength": 100,
"description": "Type of the target entity"
},
"metadata": {
"type": "object",
"description": "Additional event context",
"additionalProperties": true
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp of the event"
}
}
}
12 changes: 12 additions & 0 deletions src/test/logvault-audit-event/logvault-audit-event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"action": "user.login",
"actorId": "user_abc123",
"actorType": "user",
"metadata": {
"ip": "192.168.1.100",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
},
"targetId": "session_xyz789",
"targetType": "session",
"timestamp": "2025-12-05T10:30:00Z"
}
Loading