Annotate

mod_rest/res/schema-xmpp.json @ 4519:ea1fd703bb27

mod_rest: Convert XEP-0039 to datamapping
author Kim Alvefur <zash@zash.se>
date Mon, 22 Mar 2021 00:21:27 +0100
parent 4518:073f5397c1d2
child 4520:bd320ec2c2fc
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" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 "delay" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 "format" : "date-time",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 "title" : "XEP-0203: Delayed Delivery",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 "name" : "delay",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 "namespace" : "urn:xmpp:delay",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10 "x_single_attribute" : "stamp"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 "from" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 "description" : "the sender of the stanza",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 "example" : "bob@example.net",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 "format" : "xmpp-jid",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 "id" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 "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
24 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 "lang" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 "description" : "Language code",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 "example" : "en",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 "attribute" : true,
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 "prefix" : "xml"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 "nick" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 "name" : "nick",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 "namespace" : "http://jabber.org/protocol/nick"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
45 "to" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
46 "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
47 "example" : "alice@another.example",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
48 "format" : "xmpp-jid",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 "type" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55 "description" : "Stanza type",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
57 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
58 "attribute" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
59 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
60 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
61 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
62 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
63 "iq" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
64 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
65 "ping" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
66 "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
67 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
68 true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
69 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
70 "title" : "XEP-0199: XMPP Ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
71 "type" : "boolean",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
72 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
73 "name" : "ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
74 "namespace" : "urn:xmpp:ping",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
75 "x_name_is_value" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77 },
4519
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
78 "stats" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
79 "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
80 "items" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
81 "properties" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
82 "name" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
83 "type" : "string",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
84 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
85 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
86 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
87 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
88 "unit" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
89 "type" : "string",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
90 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
91 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
92 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
93 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
94 "value" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
95 "type" : "number",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
96 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
97 "attribute" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
98 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
99 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
100 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
101 "type" : "object",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
102 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
103 "name" : "stat"
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
104 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
105 },
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
106 "title" : "XEP-0039: Statistics Gathering",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
107 "type" : "array",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
108 "xml" : {
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
109 "name" : "query",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
110 "namespace" : "http://jabber.org/protocol/stats",
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
111 "wrapped" : true
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
112 }
ea1fd703bb27 mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents: 4518
diff changeset
113 },
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
114 "version" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 "description" : "Ask about software version information",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117 "name" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 "example" : "My Software",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
119 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
120 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
121 "os" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
122 "example" : "Linux",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
125 "version" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 "example" : "1.0.0",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127 "type" : "string"
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
130 "required" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
131 "name",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
132 "version"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
133 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
134 "title" : "XEP-0092: Software Version",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
135 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
136 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
137 "name" : "query",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
138 "namespace" : "jabber:iq:version"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
139 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
140 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
141 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
142 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
143 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
144 "name" : "iq"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
145 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
146 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
147 "message" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
148 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
149 "body" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
150 "description" : "Human-readable chat message",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
151 "example" : "Hello, World!",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
152 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
153 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
154 "replace" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
155 "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
156 "title" : "XEP-0308: Last Message Correction",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
157 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
158 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
159 "name" : "replace",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
160 "namespace" : "urn:xmpp:message-correct:0",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
161 "x_single_attribute" : "id"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
162 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
163 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
164 "state" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
165 "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
166 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
167 "active",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
168 "inactive",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
169 "gone",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
170 "composing",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
171 "paused"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
172 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
173 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
174 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
175 "namespace" : "http://jabber.org/protocol/chatstates",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
176 "x_name_is_value" : true
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
177 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
178 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
179 "subject" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
180 "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
181 "example" : "Talking about stuff",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
182 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
183 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
184 "thread" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
185 "description" : "Message thread identifier",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
186 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
187 "id" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
188 "type" : "string",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
189 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
190 "text" : true
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 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
193 "parent" : {
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 "type" : "object"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
201 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
202 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
203 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
204 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
205 "name" : "message"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
206 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
207 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
208 "presence" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
209 "properties" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
210 "priority" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
211 "description" : "Presence priority",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
212 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
213 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
214 "show" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
215 "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
216 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
217 "away",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
218 "chat",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
219 "dnd",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
220 "xa"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
221 ],
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
222 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
223 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
224 "status" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
225 "description" : "Textual status message.",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
226 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
227 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
228 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
229 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
230 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
231 "name" : "presence"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
232 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
233 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
234 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
235 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
236 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
237 "name" : "xmpp",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
238 "namespace" : "jabber:client"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
239 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
240 }