{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "WorkspaceDomainEventV1", "type": "object", "required": [ "event_id", "event_type", "event_version", "tenant_id", "owner_user_id", "workspace_id", "aggregate_version", "trace_id", "occurred_at", "payload" ], "properties": { "event_id": { "type": "string", "minLength": 1 }, "event_type": { "type": "string", "enum": [ "workspace.created", "workspace.updated", "message.appended", "attachment.uploaded", "document.ingest.requested", "attachment.ingest_succeeded", "attachment.ingest_failed", "artifact.version_created", "artifact.version_confirmed", "artifact.export_attached" ] }, "event_version": { "const": 1 }, "tenant_id": { "type": "string", "minLength": 1 }, "owner_user_id": { "type": "string", "minLength": 1 }, "workspace_id": { "type": "string", "minLength": 1 }, "aggregate_version": { "type": "integer", "minimum": 1 }, "run_id": { "type": "string", "minLength": 1 }, "trace_id": { "type": "string", "minLength": 1 }, "occurred_at": { "type": "string", "format": "date-time" }, "payload": { "type": "object" } }, "additionalProperties": false }