--- 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: <body><p>Hello!</p></body>
--- 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",