commit 1ad8467942e4018d5c951b2ed76826631b62bd6d Author: Quixos Template Publisher Date: Sat Jan 1 00:00:00 2000 +0000 Export template source from c5854ac7629ac10f984b745270bdd022e2eed236:quixos-instance/interfaces/event-stream diff --git a/.quixos-template-source.json b/.quixos-template-source.json new file mode 100644 index 0000000..04714c7 --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "c5854ac7629ac10f984b745270bdd022e2eed236", + "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..3902e25 --- /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 "c5854ac7629ac10f984b745270bdd022e2eed236"; } + +}