annotate mod_rest/res/schema-xmpp.json @ 4520:bd320ec2c2fc

mod_rest: Declare presence priority an integer in -128..127 per RFC6121 util.datamapper doesn't actually understand min/max, but it's informative and the schema could be used to validate the input at some point.
author Kim Alvefur <zash@zash.se>
date Mon, 22 Mar 2021 00:45:10 +0100
parents ea1fd703bb27
children 6e20e6bf96f0
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",
4520
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
212 "maximum" : 127,
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
213 "minimum" : -128,
bd320ec2c2fc mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents: 4519
diff changeset
214 "type" : "integer"
4518
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
215 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
216 "show" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
217 "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
218 "enum" : [
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
219 "away",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
220 "chat",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
221 "dnd",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
222 "xa"
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 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
225 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
226 "status" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
227 "description" : "Textual status message.",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
228 "type" : "string"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
229 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
230 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
231 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
232 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
233 "name" : "presence"
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 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
236 },
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
237 "type" : "object",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
238 "xml" : {
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
239 "name" : "xmpp",
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
240 "namespace" : "jabber:client"
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
241 }
073f5397c1d2 mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff changeset
242 }