Code
Branches
CI
Releases
Discussions
Prompts
Settings
ocho / ios / LChatCore / Tests / LChatCoreTests / Fixtures / webhooks-vector.json
Download this file
1 { 2 "description": "Incoming-webhook events (issue #610, docs/webhooks.md) — native's half of the ignore-unclaimed-types contract. Twin of test/event-vectors/webhooks.json; keep the event payloads in step.", 3 "vectors": [ 4 { 5 "name": "github-workflow-run", 6 "event": { 7 "type": "webhooks.github", 8 "name": "CI runs", 9 "uid": "hookuser123", 10 "ts": 1752710400000, 11 "hook": { "id": "wh-abc123", "ns": "github" }, 12 "req": { 13 "method": "POST", 14 "path": "/", 15 "query": {}, 16 "headers": { 17 "Content-Type": "application/json", 18 "X-Github-Event": "workflow_run", 19 "X-Github-Delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958" 20 }, 21 "body": "{\"action\":\"completed\",\"workflow_run\":{\"status\":\"completed\",\"conclusion\":\"success\"}}" 22 } 23 } 24 }, 25 { 26 "name": "binary-body-custom-namespace", 27 "event": { 28 "type": "webhooks.sensor-net", 29 "name": "Greenhouse", 30 "uid": "hookuser456", 31 "ts": 1752710500000, 32 "hook": { "id": "wh-def456", "ns": "sensor-net" }, 33 "req": { 34 "method": "PUT", 35 "path": "/readings", 36 "query": { "site": ["7"] }, 37 "headers": { "Content-Type": "application/octet-stream" }, 38 "body": "AAECAwQF", 39 "body_b64": true 40 } 41 } 42 } 43 ] 44 } 45