From f16598353a4a46248e7c2f310bd1b0d955cbfa58 Mon Sep 17 00:00:00 2001 From: Quixos Template Publisher Date: Sat, 1 Jan 2000 00:00:00 +0000 Subject: [PATCH] Export template source from 5468ae6723e5b82ad240ca3b51ee4a39dd1fb83b:quixos-instance/interfaces/event-stream --- .quixos-template-source.json | 4 ++++ interface.qx | 13 +++++++++++++ quixos.lock | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 .quixos-template-source.json create mode 100644 interface.qx create mode 100644 quixos.lock diff --git a/.quixos-template-source.json b/.quixos-template-source.json new file mode 100644 index 0000000..1ba8d02 --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "5468ae6723e5b82ad240ca3b51ee4a39dd1fb83b", + "sourcePath": "quixos-instance/interfaces/event-stream" +} diff --git a/interface.qx b/interface.qx new file mode 100644 index 0000000..0607317 --- /dev/null +++ b/interface.qx @@ -0,0 +1,13 @@ +// Required server support; a checked installed implementation may additionally predict locally. +interface EventStream id "interface:org.quixos.events:stream" revision "interface:org.quixos.events:stream@1" { + operation publish id "events:publish" : Payload -> record {publication:string;} { + call id "events:publish:call" execution transaction; + } + queryable value head id "events:head" : optional { + get id "events:head:get" execution snapshot; + } + operation readPage id "events:read-page" : record {after:optional;limit:uint32;} + -> record {entries:list;next:optional;asOfHead:optional;} { + call id "events:read-page:call" execution snapshot; + } +} diff --git a/quixos.lock b/quixos.lock new file mode 100644 index 0000000..afbdb2f --- /dev/null +++ b/quixos.lock @@ -0,0 +1,4 @@ +quixos-lock version 1 { + quixos source { repository "https://gitea.internal.quixos.org/quixos/quixos.git"; commit "5468ae6723e5b82ad240ca3b51ee4a39dd1fb83b"; } + +}