|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://schemas.srcos.ai/v2/BearHistoryEvent.json", |
| 4 | + "title": "BearHistoryEvent", |
| 5 | + "description": "Governed BearBrowser browser-state event for local-first sync and OpsHistory export.", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": false, |
| 8 | + "required": ["eventId", "specVersion", "profileClass", "eventClass", "occurredAt", "payloadMode", "policyDecisionRefs"], |
| 9 | + "properties": { |
| 10 | + "eventId": { "type": "string", "pattern": "^urn:srcos:bearhistory-event:" }, |
| 11 | + "specVersion": { "type": "string" }, |
| 12 | + "profileClass": { "type": "string", "enum": ["human-secure", "agent-runtime"] }, |
| 13 | + "eventClass": { |
| 14 | + "type": "string", |
| 15 | + "enum": ["navigation", "tab-session", "download-metadata", "capture-metadata", "automation-action", "credential-boundary", "policy-decision", "artifact-ref", "redaction-tombstone"] |
| 16 | + }, |
| 17 | + "occurredAt": { "type": "string", "format": "date-time" }, |
| 18 | + "sessionRef": { "type": ["string", "null"] }, |
| 19 | + "opsHistoryEventRef": { "type": ["string", "null"] }, |
| 20 | + "payloadMode": { "type": "string", "enum": ["metadata-only", "summary", "ref-only", "inline-bounded", "redacted"] }, |
| 21 | + "payload": { "type": ["object", "null"], "additionalProperties": true }, |
| 22 | + "artifactRefs": { "type": "array", "items": { "type": "string" }, "default": [] }, |
| 23 | + "redactionRefs": { "type": "array", "items": { "type": "string" }, "default": [] }, |
| 24 | + "policyDecisionRefs": { "type": "array", "items": { "type": "string" } }, |
| 25 | + "profileBoundary": { |
| 26 | + "type": "object", |
| 27 | + "additionalProperties": false, |
| 28 | + "properties": { |
| 29 | + "humanProfileExportAllowed": { "type": "boolean" }, |
| 30 | + "agentRuntimeExportAllowed": { "type": "boolean" }, |
| 31 | + "credentialMaterialIncluded": { "type": "boolean" }, |
| 32 | + "cookieMaterialIncluded": { "type": "boolean" } |
| 33 | + } |
| 34 | + } |
| 35 | + } |
| 36 | +} |
0 commit comments