{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"/developers/webhooks/cloudevent.schema.json","title":"Matrix Agent Bridge webhook CloudEvent","description":"Structured CloudEvents 1.0 profile accepted by Matrix Agent Bridge webhook sources.","type":"object","required":["specversion","id","source","type","time","data"],"properties":{"specversion":{"const":"1.0"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^(?:\\S|\\S[^\\u0000-\\u001F\\u007F]*\\S)$"},"source":{"type":"string","minLength":1,"maxLength":512,"pattern":"^(?:\\S|\\S[^\\u0000-\\u001F\\u007F]*\\S)$"},"type":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9](?:[A-Za-z0-9._-]{0,254}[A-Za-z0-9])?$"},"time":{"type":"string","format":"date-time","maxLength":64,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"},"subject":{"type":"string","minLength":1,"maxLength":512,"pattern":"^(?:\\S|\\S[^\\u0000-\\u001F\\u007F]*\\S)$"},"datacontenttype":{"const":"application/json"},"data":{"x-matrix-agent-bridge-max-depth":16}},"additionalProperties":false}