# HG changeset patch # User Kim Alvefur # Date 1619362388 -7200 # Node ID cce0e1ec8a74ea049859b8fef90c71b9d5f0b141 # Parent c50fac0f3cbf9e7a1c005933e2bfb5f24a9fed78 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas diff -r c50fac0f3cbf -r cce0e1ec8a74 mod_rest/res/openapi.yaml --- a/mod_rest/res/openapi.yaml Sun Apr 25 16:45:06 2021 +0200 +++ b/mod_rest/res/openapi.yaml Sun Apr 25 16:53:08 2021 +0200 @@ -420,6 +420,41 @@ enum: - true + invite: + type: object + description: Invite to a group chat + required: + - jid + xml: + name: x + namespace: jabber:x:conference + properties: + jid: + type: string + description: Address of the group chat + format: xmpp-jid + xml: + attribute: true + reason: + type: string + description: Optional message by the inviter + xml: + attribute: true + password: + type: string + description: Password for the group chat, if required + xml: + attribute: true + thread: + type: string + xml: + attribute: true + continue: + type: boolean + description: Whether the group chat continues a one-to-one chat + xml: + attribute: true + html: description: HTML version of 'body' example:

Hello!

diff -r c50fac0f3cbf -r cce0e1ec8a74 mod_rest/res/schema-xmpp.json --- a/mod_rest/res/schema-xmpp.json Sun Apr 25 16:45:06 2021 +0200 +++ b/mod_rest/res/schema-xmpp.json Sun Apr 25 16:53:08 2021 +0200 @@ -306,6 +306,50 @@ "namespace" : "urn:xmpp:forward:0" } }, + "invite" : { + "properties" : { + "continue" : { + "type" : "boolean", + "xml" : { + "attribute" : true + } + }, + "jid" : { + "format" : "xmpp-jid", + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "password" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "reason" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "thread" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "required" : [ + "jid" + ], + "titel" : "XEP-0249: Direct MUC Invitations", + "type" : "object", + "xml" : { + "name" : "x", + "namespace" : "jabber:x:conference" + } + }, "markable" : { "title" : "XEP-0333: Chat Markers", "type" : "boolean",