From 5b425802452fd3c205116d8ca2443e55f9e7dd0c Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Sun, 25 Oct 2026 04:44:15 +0100 Subject: [PATCH] feat: add activity feed contract --- contracts/v1/activity-list-response.json | 18 ++++++++++++++++++ fixtures/v1/activity-list.response.json | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 contracts/v1/activity-list-response.json create mode 100644 fixtures/v1/activity-list.response.json diff --git a/contracts/v1/activity-list-response.json b/contracts/v1/activity-list-response.json new file mode 100644 index 0000000..f638202 --- /dev/null +++ b/contracts/v1/activity-list-response.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://trixie.reaperofveriod.nl/contracts/v1/activity-list-response.json", + "title": "Trixie activity feed response", + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": ["event_id", "event_type", "occurred_at", "payload"], + "properties": { + "event_id": { "type": "string", "minLength": 1 }, + "event_type": { "type": "string", "pattern": "^[a-z0-9_.-]+$" }, + "occurred_at": { "type": "string", "format": "date-time" }, + "payload": { "type": "object" } + } + }, + "maxItems": 100 +} diff --git a/fixtures/v1/activity-list.response.json b/fixtures/v1/activity-list.response.json new file mode 100644 index 0000000..c2c4a69 --- /dev/null +++ b/fixtures/v1/activity-list.response.json @@ -0,0 +1,8 @@ +[ + { + "event_id": "synthetic-event-1", + "event_type": "channel.follow", + "occurred_at": "2026-10-25T12:00:00Z", + "payload": { "user_name": "SyntheticViewer" } + } +]