From 2e386c1e6396f35f3489b9b4c05b22aba23a8357 Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Sun, 25 Oct 2026 05:02:48 +0100 Subject: [PATCH] add Guest Star collaboration contract --- .../v1/collaboration-session-response.json | 23 +++++++++++++++++++ .../v1/collaboration-session.response.json | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 contracts/v1/collaboration-session-response.json create mode 100644 fixtures/v1/collaboration-session.response.json diff --git a/contracts/v1/collaboration-session-response.json b/contracts/v1/collaboration-session-response.json new file mode 100644 index 0000000..ab80da5 --- /dev/null +++ b/contracts/v1/collaboration-session-response.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": ["object", "null"], + "additionalProperties": false, + "required": ["id", "guests"], + "properties": { + "id": { "type": "string" }, + "guests": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": ["user_id"], + "properties": { + "user_id": { "type": "string" }, + "user_display_name": { "type": ["string", "null"] }, + "slot_id": { "type": ["string", "null"] }, + "is_live": { "type": ["boolean", "null"] } + } + } + } + } +} diff --git a/fixtures/v1/collaboration-session.response.json b/fixtures/v1/collaboration-session.response.json new file mode 100644 index 0000000..2c6d83c --- /dev/null +++ b/fixtures/v1/collaboration-session.response.json @@ -0,0 +1,4 @@ +{ + "id": "guest-star-session-1", + "guests": [] +}