annotate mod_rest/res/schema-xmpp.json @ 4741:3f2342eacb26

mod_rest: Add XEP-0059 mapping Will be useful for MAM
author Kim Alvefur <zash@zash.se>
date Thu, 04 Nov 2021 19:46:38 +0100
parents beeacb25dea9
children b7df2c61a144
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 "_common" : {
4740
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
3 "dataform" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
4 "properties" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
5 "fields" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
6 "items" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
7 "properties" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
8 "desc" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
9 "type" : "string"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
10 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
11 "label" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
12 "type" : "string",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
13 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
14 "attribute" : true
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
15 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
16 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
17 "options" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
18 "items" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
19 "properties" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
20 "label" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
21 "type" : "string",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
22 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
23 "attribute" : true
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
24 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
25 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
26 "value" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
27 "type" : "string"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
28 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
29 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
30 "type" : "object",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
31 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
32 "name" : "option"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
33 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
34 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
35 "type" : "array"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
36 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
37 "required" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
38 "type" : "boolean",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
39 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
40 "x_name_is_value" : true
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
41 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
42 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
43 "type" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
44 "enum" : [
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
45 "boolean",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
46 "fixed",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
47 "hidden",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
48 "jid-multi",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
49 "jid-single",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
50 "list-multi",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
51 "list-single",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
52 "text-multi",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
53 "text-private",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
54 "text-single"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
55 ],
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
56 "type" : "string",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
57 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
58 "attribute" : true
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
59 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
60 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
61 "values" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
62 "items" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
63 "type" : "string",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
64 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
65 "name" : "value"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
66 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
67 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
68 "type" : "array"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
69 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
70 "var" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
71 "type" : "string",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
72 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
73 "attribute" : true
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
74 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
75 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
76 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
77 "type" : "object",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
78 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
79 "name" : "field"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
80 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
81 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
82 "type" : "array"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
83 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
84 "instructions" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
85 "type" : "string"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
86 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
87 "title" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
88 "type" : "string"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
89 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
90 "type" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
91 "enum" : [
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
92 "cancel",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
93 "form",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
94 "result",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
95 "submit"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
96 ],
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
97 "type" : "string",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
98 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
99 "attribute" : true
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
100 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
101 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
102 },
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
103 "title" : "XEP-0004: Data Forms",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
104 "type" : "object",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
105 "xml" : {
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
106 "name" : "x",
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
107 "namespace" : "jabber:x:data"
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
108 }
beeacb25dea9 mod_rest: Add XEP-0004 mapping for future reuse
Kim Alvefur <zash@zash.se>
parents: 4733
diff changeset
109 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
110 "delay" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
111 "format" : "date-time",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 "title" : "XEP-0203: Delayed Delivery",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
113 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
114 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 "name" : "delay",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116 "namespace" : "urn:xmpp:delay",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117 "x_single_attribute" : "stamp"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
119 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
120 "from" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
121 "description" : "the sender of the stanza",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
122 "example" : "bob@example.net",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 "format" : "xmpp-jid",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
125 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
128 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
129 "id" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
130 "description" : "Reasonably unique id. mod_rest generates one if left out.",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
131 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
132 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
133 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
134 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
135 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
136 "lang" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
137 "description" : "Language code",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
138 "example" : "en",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
139 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
140 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
141 "attribute" : true,
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
142 "prefix" : "xml"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
143 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
144 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
145 "nick" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
146 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
147 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
148 "name" : "nick",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
149 "namespace" : "http://jabber.org/protocol/nick"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
150 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
151 },
4741
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
152 "rsm" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
153 "properties" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
154 "after" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
155 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
156 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
157 "before" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
158 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
159 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
160 "count" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
161 "type" : "integer"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
162 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
163 "first" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
164 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
165 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
166 "index" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
167 "type" : "integer"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
168 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
169 "last" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
170 "type" : "string"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
171 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
172 "max" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
173 "type" : "integer"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
174 }
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
175 },
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
176 "title" : "XEP-0059: Result Set Management",
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
177 "type" : "object",
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
178 "xml" : {
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
179 "name" : "set",
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
180 "namespace" : "http://jabber.org/protocol/rsm"
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
181 }
3f2342eacb26 mod_rest: Add XEP-0059 mapping
Kim Alvefur <zash@zash.se>
parents: 4740
diff changeset
182 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
183 "to" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
184 "description" : "the intended recipient for the stanza",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
185 "example" : "alice@another.example",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
186 "format" : "xmpp-jid",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
187 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
188 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
189 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
190 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
191 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
192 "type" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
193 "description" : "Stanza type",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
194 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
195 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
196 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
197 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
198 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
199 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
200 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
201 "iq" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
202 "properties" : {
4726
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
203 "extdisco" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
204 "properties" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
205 "services" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
206 "items" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
207 "properties" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
208 "expires" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
209 "format" : "datetime",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
210 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
211 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
212 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
213 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
214 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
215 "host" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
216 "required" : true,
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
217 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
218 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
219 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
220 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
221 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
222 "name" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
223 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
224 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
225 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
226 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
227 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
228 "password" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
229 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
230 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
231 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
232 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
233 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
234 "port" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
235 "type" : "integer",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
236 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
237 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
238 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
239 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
240 "restricted" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
241 "type" : "boolean",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
242 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
243 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
244 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
245 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
246 "transport" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
247 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
248 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
249 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
250 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
251 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
252 "type" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
253 "required" : true,
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
254 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
255 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
256 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
257 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
258 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
259 "username" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
260 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
261 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
262 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
263 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
264 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
265 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
266 "type" : "object",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
267 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
268 "name" : "service"
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
269 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
270 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
271 "type" : "array"
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
272 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
273 "type" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
274 "type" : "string",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
275 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
276 "attribute" : true
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
277 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
278 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
279 },
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
280 "title" : "XEP-0215: External Service Discovery",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
281 "type" : "object",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
282 "xml" : {
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
283 "name" : "services",
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
284 "namespace" : "urn:xmpp:extdisco:2"
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
285 }
611bc06c4160 mod_rest: Add mapping for XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents: 4720
diff changeset
286 },
4720
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
287 "gateway" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
288 "properties" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
289 "desc" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
290 "type" : "text"
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
291 },
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
292 "jid" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
293 "type" : "string"
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
294 },
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
295 "prompt" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
296 "type" : "string"
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
297 }
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
298 },
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
299 "title" : "XEP-0100: Gateway Interaction",
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
300 "type" : "object",
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
301 "xml" : {
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
302 "name" : "query",
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
303 "namespace" : "jabber:iq:gateway"
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
304 }
71bec9c21dcd mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents: 4633
diff changeset
305 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
306 "lastactivity" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
307 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
308 "seconds" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
309 "minimum" : 0,
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
310 "type" : "integer",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
311 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
312 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
313 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
314 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
315 "status" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
316 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
317 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
318 "text" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
319 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
320 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
321 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
322 "title" : "XEP-0012: Last Activity",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
323 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
324 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
325 "name" : "query",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
326 "namespace" : "jabber:iq:last"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
327 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
328 },
4523
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
329 "oob" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
330 "properties" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
331 "desc" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
332 "type" : "string"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
333 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
334 "url" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
335 "format" : "uri",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
336 "type" : "string"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
337 }
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
338 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
339 "title" : "XEP-0066: Out of Band Data",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
340 "type" : "object",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
341 "xml" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
342 "name" : "query",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
343 "namespace" : "jabber:iq:oob"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
344 }
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
345 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
346 "ping" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
347 "description" : "Test reachability of some XMPP address",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
348 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
349 true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
350 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
351 "title" : "XEP-0199: XMPP Ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
352 "type" : "boolean",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
353 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
354 "name" : "ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
355 "namespace" : "urn:xmpp:ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
356 "x_name_is_value" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
357 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
358 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
359 "register" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
360 "description" : "Register with a service",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
361 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
362 "address" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
363 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
364 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
365 "city" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
366 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
367 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
368 "date" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
369 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
370 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
371 "email" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
372 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
373 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
374 "first" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
375 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
376 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
377 "instructions" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
378 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
379 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
380 "key" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
381 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
382 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
383 "last" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
384 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
385 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
386 "misc" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
387 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
388 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
389 "name" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
390 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
391 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
392 "nick" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
393 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
394 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
395 "password" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
396 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
397 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
398 "phone" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
399 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
400 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
401 "registered" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
402 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
403 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
404 "x_name_is_value" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
405 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
406 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
407 "remove" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
408 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
409 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
410 "x_name_is_value" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
411 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
412 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
413 "state" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
414 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
415 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
416 "text" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
417 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
418 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
419 "url" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
420 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
421 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
422 "username" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
423 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
424 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
425 "zip" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
426 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
427 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
428 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
429 "required" : [
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
430 "username",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
431 "password"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
432 ],
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
433 "title" : "XEP-0077: In-Band Registration",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
434 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
435 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
436 "name" : "query",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
437 "namespace" : "jabber:iq:register"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
438 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
439 },
4519
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
440 "stats" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
441 "description" : "Simple statistics gathering, array of (name, unit, value) tuples.",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
442 "items" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
443 "properties" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
444 "name" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
445 "type" : "string",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
446 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
447 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
448 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
449 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
450 "unit" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
451 "type" : "string",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
452 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
453 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
454 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
455 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
456 "value" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
457 "type" : "number",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
458 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
459 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
460 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
461 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
462 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
463 "type" : "object",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
464 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
465 "name" : "stat"
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
466 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
467 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
468 "title" : "XEP-0039: Statistics Gathering",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
469 "type" : "array",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
470 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
471 "name" : "query",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
472 "namespace" : "http://jabber.org/protocol/stats",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
473 "wrapped" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
474 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
475 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
476 "version" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
477 "description" : "Ask about software version information",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
478 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
479 "name" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
480 "example" : "My Software",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
481 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
482 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
483 "os" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
484 "example" : "Linux",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
485 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
486 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
487 "version" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
488 "example" : "1.0.0",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
489 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
490 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
491 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
492 "required" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
493 "name",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
494 "version"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
495 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
496 "title" : "XEP-0092: Software Version",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
497 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
498 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
499 "name" : "query",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
500 "namespace" : "jabber:iq:version"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
501 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
502 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
503 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
504 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
505 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
506 "name" : "iq"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
507 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
508 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
509 "message" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
510 "properties" : {
4733
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
511 "archive" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
512 "properties" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
513 "forward" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
514 "$ref" : "#forwarded"
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
515 },
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
516 "queryid" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
517 "type" : "string",
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
518 "xml" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
519 "attribute" : true
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
520 }
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
521 }
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
522 },
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
523 "type" : "object",
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
524 "xml" : {
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
525 "name" : "result",
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
526 "namespace" : "urn:xmpp:mam:2"
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
527 }
755dd83e9214 mod_rest: Add JSON mapping of XEP-0313 archive result container
Kim Alvefur <zash@zash.se>
parents: 4732
diff changeset
528 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
529 "attach_to" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
530 "title" : "XEP-0367: Message Attaching",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
531 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
532 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
533 "name" : "attach-to",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
534 "namespace" : "urn:xmpp:message-attaching:1",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
535 "x_single_attribute" : "id"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
536 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
537 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
538 "body" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
539 "description" : "Human-readable chat message",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
540 "example" : "Hello, World!",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
541 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
542 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
543 "displayed" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
544 "description" : "Message ID of a message that has been displayed",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
545 "title" : "XEP-0333: Chat Markers",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
546 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
547 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
548 "namespace" : "urn:xmpp:chat-markers:0"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
549 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
550 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
551 "fallback" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
552 "title" : "XEP-0428: Fallback Indication",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
553 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
554 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
555 "name" : "fallback",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
556 "namespace" : "urn:xmpp:fallback:0",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
557 "x_name_is_value" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
558 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
559 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
560 "forwarded" : {
4732
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
561 "properties" : {
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
562 "delay" : {
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
563 "$ref" : "#_common/delay"
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
564 },
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
565 "message" : {
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
566 "type" : "object",
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
567 "xml" : {
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
568 "namespace" : "jabber:client"
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
569 }
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
570 }
607cac9b9393 mod_rest: Add recursive properties of XEP-0297 forwarded container
Kim Alvefur <zash@zash.se>
parents: 4726
diff changeset
571 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
572 "title" : "XEP-0297: Stanza Forwarding",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
573 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
574 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
575 "name" : "forwarded",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
576 "namespace" : "urn:xmpp:forward:0"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
577 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
578 },
4549
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
579 "invite" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
580 "properties" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
581 "continue" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
582 "type" : "boolean",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
583 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
584 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
585 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
586 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
587 "jid" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
588 "format" : "xmpp-jid",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
589 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
590 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
591 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
592 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
593 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
594 "password" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
595 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
596 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
597 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
598 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
599 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
600 "reason" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
601 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
602 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
603 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
604 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
605 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
606 "thread" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
607 "type" : "string",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
608 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
609 "attribute" : true
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
610 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
611 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
612 },
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
613 "required" : [
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
614 "jid"
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
615 ],
4633
63c91f2a86e5 mod_rest: Fix typo (thanks codespell)
Kim Alvefur <zash@zash.se>
parents: 4549
diff changeset
616 "title" : "XEP-0249: Direct MUC Invitations",
4549
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
617 "type" : "object",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
618 "xml" : {
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
619 "name" : "x",
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
620 "namespace" : "jabber:x:conference"
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
621 }
cce0e1ec8a74 mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents: 4547
diff changeset
622 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
623 "markable" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
624 "title" : "XEP-0333: Chat Markers",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
625 "type" : "boolean",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
626 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
627 "namespace" : "urn:xmpp:chat-markers:0",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
628 "x_name_is_value" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
629 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
630 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
631 "occupant_id" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
632 "title" : "XEP-0421: Anonymous unique occupant identifiers for MUCs",
4533
578375759510 mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag
Kim Alvefur <zash@zash.se>
parents: 4531
diff changeset
633 "type" : "string",
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
634 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
635 "name" : "occupant-id",
4533
578375759510 mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag
Kim Alvefur <zash@zash.se>
parents: 4531
diff changeset
636 "namespace" : "urn:xmpp:occupant-id:0",
578375759510 mod_rest: Remodel occupant-id (XEP-0421) as single attribute tag
Kim Alvefur <zash@zash.se>
parents: 4531
diff changeset
637 "x_single_attribute" : "id"
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
638 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
639 },
4523
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
640 "oob" : {
4547
a9e997d5eb94 mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents: 4534
diff changeset
641 "description" : "Reference a media file",
4523
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
642 "properties" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
643 "desc" : {
4547
a9e997d5eb94 mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents: 4534
diff changeset
644 "description" : "Optional description",
4523
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
645 "type" : "string"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
646 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
647 "url" : {
4547
a9e997d5eb94 mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents: 4534
diff changeset
648 "description" : "The URL of the attached media file",
a9e997d5eb94 mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents: 4534
diff changeset
649 "example" : "https://media.example.net/thisfile.jpg",
4523
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
650 "format" : "uri",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
651 "type" : "string"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
652 }
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
653 },
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
654 "title" : "XEP-0066: Out of Band Data",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
655 "type" : "object",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
656 "xml" : {
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
657 "name" : "x",
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
658 "namespace" : "jabber:x:oob"
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
659 }
6e20e6bf96f0 mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents: 4520
diff changeset
660 },
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
661 "reactions" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
662 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
663 "id" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
664 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
665 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
666 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
667 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
668 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
669 "reactions" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
670 "items" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
671 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
672 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
673 "name" : "reaction"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
674 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
675 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
676 "type" : "array",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
677 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
678 "name" : "reactions",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
679 "wrapped" : false
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
680 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
681 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
682 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
683 "title" : "XEP-0444: Message Reactions",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
684 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
685 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
686 "namespace" : "urn:xmpp:reactions:0"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
687 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
688 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
689 "reference" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
690 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
691 "begin" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
692 "minimum" : 0,
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
693 "type" : "integer",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
694 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
695 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
696 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
697 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
698 "end" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
699 "minimum" : 0,
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
700 "type" : "integer",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
701 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
702 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
703 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
704 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
705 "type" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
706 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
707 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
708 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
709 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
710 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
711 "uri" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
712 "format" : "uri",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
713 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
714 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
715 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
716 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
717 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
718 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
719 "required" : [
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
720 "type",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
721 "uri"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
722 ],
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
723 "title" : "XEP-0372: References",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
724 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
725 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
726 "namespace" : "urn:xmpp:reference:0"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
727 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
728 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
729 "replace" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
730 "description" : "For indicating that a message is a correction of the last sent message.",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
731 "title" : "XEP-0308: Last Message Correction",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
732 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
733 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
734 "name" : "replace",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
735 "namespace" : "urn:xmpp:message-correct:0",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
736 "x_single_attribute" : "id"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
737 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
738 },
4534
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
739 "stanza_ids" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
740 "items" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
741 "properties" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
742 "by" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
743 "format" : "xmpp-jid",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
744 "type" : "string",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
745 "xml" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
746 "attribute" : true
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
747 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
748 },
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
749 "id" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
750 "type" : "string",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
751 "xml" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
752 "attribute" : true
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
753 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
754 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
755 },
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
756 "required" : [
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
757 "id",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
758 "by"
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
759 ],
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
760 "type" : "object",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
761 "xml" : {
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
762 "name" : "stanza-id",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
763 "namespace" : "urn:xmpp:sid:0"
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
764 }
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
765 },
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
766 "title" : "XEP-0359: Unique and Stable Stanza IDs",
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
767 "type" : "array"
9837c73826d2 mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents: 4533
diff changeset
768 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
769 "state" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
770 "description" : "Chat state notifications, e.g. \"is typing...\"",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
771 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
772 "active",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
773 "inactive",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
774 "gone",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
775 "composing",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
776 "paused"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
777 ],
4531
60fe204b980f mod_rest: Add a 'title' to XEP-0085 mapping (for documentation)
Kim Alvefur <zash@zash.se>
parents: 4530
diff changeset
778 "title" : "XEP-0085: Chat State Notifications",
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
779 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
780 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
781 "namespace" : "http://jabber.org/protocol/chatstates",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
782 "x_name_is_value" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
783 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
784 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
785 "subject" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
786 "description" : "Subject of message or group chat",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
787 "example" : "Talking about stuff",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
788 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
789 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
790 "thread" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
791 "description" : "Message thread identifier",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
792 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
793 "id" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
794 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
795 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
796 "text" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
797 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
798 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
799 "parent" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
800 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
801 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
802 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
803 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
804 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
805 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
806 "type" : "object"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
807 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
808 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
809 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
810 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
811 "name" : "message"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
812 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
813 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
814 "presence" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
815 "properties" : {
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
816 "caps" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
817 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
818 "ext" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
819 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
820 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
821 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
822 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
823 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
824 "hash" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
825 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
826 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
827 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
828 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
829 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
830 "node" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
831 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
832 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
833 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
834 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
835 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
836 "ver" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
837 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
838 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
839 "attribute" : true
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
840 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
841 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
842 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
843 "title" : "XEP-0115: Entity Capabilities",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
844 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
845 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
846 "name" : "c",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
847 "namespace" : "http://jabber.org/protocol/caps"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
848 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
849 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
850 "idle_since" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
851 "format" : "date-time",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
852 "title" : "XEP-0319: Last User Interaction in Presence",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
853 "type" : "string",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
854 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
855 "name" : "idle",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
856 "namespace" : "urn:xmpp:idle:1",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
857 "x_single_attribute" : "since"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
858 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
859 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
860 "priority" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
861 "description" : "Presence priority",
4520
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
862 "maximum" : 127,
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
863 "minimum" : -128,
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
864 "type" : "integer"
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
865 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
866 "show" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
867 "description" : "indicator of availability, ie away or not",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
868 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
869 "away",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
870 "chat",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
871 "dnd",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
872 "xa"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
873 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
874 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
875 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
876 "status" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
877 "description" : "Textual status message.",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
878 "type" : "string"
4530
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
879 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
880 "vcard_update" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
881 "properties" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
882 "photo" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
883 "type" : "string"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
884 }
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
885 },
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
886 "title" : "XEP-0153: vCard-Based Avatars",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
887 "type" : "object",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
888 "xml" : {
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
889 "name" : "x",
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
890 "namespace" : "vcard-temp:x:update"
33c149d0261d mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents: 4523
diff changeset
891 }
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
892 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
893 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
894 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
895 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
896 "name" : "presence"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
897 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
898 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
899 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
900 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
901 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
902 "name" : "xmpp",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
903 "namespace" : "jabber:client"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
904 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
905 }