Mercurial > prosody-modules
annotate mod_rest/res/schema-xmpp.json @ 4720:71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Oct 2021 14:20:16 +0200 |
parents | 63c91f2a86e5 |
children | 611bc06c4160 |
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" : { |
4720
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
65 "gateway" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
66 "properties" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
67 "desc" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
68 "type" : "text" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
69 }, |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
70 "jid" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
71 "type" : "string" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
72 }, |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
73 "prompt" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
74 "type" : "string" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
75 } |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
76 }, |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
77 "title" : "XEP-0100: Gateway Interaction", |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
78 "type" : "object", |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
79 "xml" : { |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
80 "name" : "query", |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
81 "namespace" : "jabber:iq:gateway" |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
82 } |
71bec9c21dcd
mod_rest: Add XEP-0100 gateway to mapping schema
Kim Alvefur <zash@zash.se>
parents:
4633
diff
changeset
|
83 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
84 "lastactivity" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
85 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
86 "seconds" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
87 "minimum" : 0, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
88 "type" : "integer", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
89 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
90 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
91 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
92 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
93 "status" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
94 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
95 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
96 "text" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
97 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
98 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
99 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
100 "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
|
101 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
102 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
103 "name" : "query", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
104 "namespace" : "jabber:iq:last" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
105 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
106 }, |
4523
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
107 "oob" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
108 "properties" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
109 "desc" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
110 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
111 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
112 "url" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
113 "format" : "uri", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
114 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
115 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
116 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
117 "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
|
118 "type" : "object", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
119 "xml" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
120 "name" : "query", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
121 "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
|
122 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
123 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
124 "ping" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
125 "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
|
126 "enum" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
127 true |
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 "title" : "XEP-0199: XMPP Ping", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
130 "type" : "boolean", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
131 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
132 "name" : "ping", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
133 "namespace" : "urn:xmpp:ping", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
134 "x_name_is_value" : true |
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 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
137 "register" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
138 "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
|
139 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
140 "address" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
141 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
142 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
143 "city" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
144 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
145 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
146 "date" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
147 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
148 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
149 "email" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
150 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
151 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
152 "first" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
153 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
154 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
155 "instructions" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
156 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
157 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
158 "key" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
159 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
160 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
161 "last" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
162 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
163 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
164 "misc" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
165 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
166 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
167 "name" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
168 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
169 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
170 "nick" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
171 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
172 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
173 "password" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
174 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
175 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
176 "phone" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
177 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
178 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
179 "registered" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
180 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
181 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
182 "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
|
183 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
184 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
185 "remove" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
186 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
187 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
188 "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
|
189 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
190 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
191 "state" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
192 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
193 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
194 "text" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
195 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
196 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
197 "url" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
198 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
199 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
200 "username" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
201 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
202 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
203 "zip" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
204 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
205 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
206 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
207 "required" : [ |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
208 "username", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
209 "password" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
210 ], |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
211 "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
|
212 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
213 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
214 "name" : "query", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
215 "namespace" : "jabber:iq:register" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
216 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
217 }, |
4519
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
218 "stats" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
219 "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
|
220 "items" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
221 "properties" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
222 "name" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
223 "type" : "string", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
224 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
225 "attribute" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
226 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
227 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
228 "unit" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
229 "type" : "string", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
230 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
231 "attribute" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
232 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
233 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
234 "value" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
235 "type" : "number", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
236 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
237 "attribute" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
238 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
239 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
240 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
241 "type" : "object", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
242 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
243 "name" : "stat" |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
244 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
245 }, |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
246 "title" : "XEP-0039: Statistics Gathering", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
247 "type" : "array", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
248 "xml" : { |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
249 "name" : "query", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
250 "namespace" : "http://jabber.org/protocol/stats", |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
251 "wrapped" : true |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
252 } |
ea1fd703bb27
mod_rest: Convert XEP-0039 to datamapping
Kim Alvefur <zash@zash.se>
parents:
4518
diff
changeset
|
253 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
254 "version" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
255 "description" : "Ask about software version information", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
256 "properties" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
257 "name" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
258 "example" : "My Software", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
259 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
260 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
261 "os" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
262 "example" : "Linux", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
263 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
264 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
265 "version" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
266 "example" : "1.0.0", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
267 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
268 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
269 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
270 "required" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
271 "name", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
272 "version" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
273 ], |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
274 "title" : "XEP-0092: Software Version", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
275 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
276 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
277 "name" : "query", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
278 "namespace" : "jabber:iq:version" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
279 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
280 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
281 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
282 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
283 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
284 "name" : "iq" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
285 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
286 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
287 "message" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
288 "properties" : { |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
289 "attach_to" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
290 "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
|
291 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
292 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
293 "name" : "attach-to", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
294 "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
|
295 "x_single_attribute" : "id" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
296 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
297 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
298 "body" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
299 "description" : "Human-readable chat message", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
300 "example" : "Hello, World!", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
301 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
302 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
303 "displayed" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
304 "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
|
305 "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
|
306 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
307 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
308 "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
|
309 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
310 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
311 "fallback" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
312 "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
|
313 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
314 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
315 "name" : "fallback", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
316 "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
|
317 "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
|
318 } |
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 "forwarded" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
321 "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
|
322 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
323 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
324 "name" : "forwarded", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
325 "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
|
326 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
327 }, |
4549
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
328 "invite" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
329 "properties" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
330 "continue" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
331 "type" : "boolean", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
332 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
333 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
334 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
335 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
336 "jid" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
337 "format" : "xmpp-jid", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
338 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
339 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
340 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
341 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
342 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
343 "password" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
344 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
345 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
346 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
347 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
348 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
349 "reason" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
350 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
351 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
352 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
353 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
354 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
355 "thread" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
356 "type" : "string", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
357 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
358 "attribute" : true |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
359 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
360 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
361 }, |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
362 "required" : [ |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
363 "jid" |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
364 ], |
4633
63c91f2a86e5
mod_rest: Fix typo (thanks codespell)
Kim Alvefur <zash@zash.se>
parents:
4549
diff
changeset
|
365 "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
|
366 "type" : "object", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
367 "xml" : { |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
368 "name" : "x", |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
369 "namespace" : "jabber:x:conference" |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
370 } |
cce0e1ec8a74
mod_rest: Add XEP-0249: Direct MUC Invitations to schemas
Kim Alvefur <zash@zash.se>
parents:
4547
diff
changeset
|
371 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
372 "markable" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
373 "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
|
374 "type" : "boolean", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
375 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
376 "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
|
377 "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
|
378 } |
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 "occupant_id" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
381 "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
|
382 "type" : "string", |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
383 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
384 "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
|
385 "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
|
386 "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
|
387 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
388 }, |
4523
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
389 "oob" : { |
4547
a9e997d5eb94
mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents:
4534
diff
changeset
|
390 "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
|
391 "properties" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
392 "desc" : { |
4547
a9e997d5eb94
mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents:
4534
diff
changeset
|
393 "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
|
394 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
395 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
396 "url" : { |
4547
a9e997d5eb94
mod_rest: Replace 'oob_url' with datamapper-native 'oob'
Kim Alvefur <zash@zash.se>
parents:
4534
diff
changeset
|
397 "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
|
398 "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
|
399 "format" : "uri", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
400 "type" : "string" |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
401 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
402 }, |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
403 "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
|
404 "type" : "object", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
405 "xml" : { |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
406 "name" : "x", |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
407 "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
|
408 } |
6e20e6bf96f0
mod_rest: Add XEP-0066 to mapping schema (breaking from previous jsonmap)
Kim Alvefur <zash@zash.se>
parents:
4520
diff
changeset
|
409 }, |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
410 "reactions" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
411 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
412 "id" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
413 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
414 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
415 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
416 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
417 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
418 "reactions" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
419 "items" : { |
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 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
422 "name" : "reaction" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
423 } |
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 "type" : "array", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
426 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
427 "name" : "reactions", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
428 "wrapped" : false |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
429 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
430 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
431 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
432 "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
|
433 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
434 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
435 "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
|
436 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
437 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
438 "reference" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
439 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
440 "begin" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
441 "minimum" : 0, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
442 "type" : "integer", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
443 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
444 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
445 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
446 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
447 "end" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
448 "minimum" : 0, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
449 "type" : "integer", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
450 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
451 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
452 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
453 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
454 "type" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
455 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
456 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
457 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
458 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
459 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
460 "uri" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
461 "format" : "uri", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
462 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
463 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
464 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
465 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
466 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
467 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
468 "required" : [ |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
469 "type", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
470 "uri" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
471 ], |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
472 "title" : "XEP-0372: References", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
473 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
474 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
475 "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
|
476 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
477 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
478 "replace" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
479 "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
|
480 "title" : "XEP-0308: Last Message Correction", |
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 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
483 "name" : "replace", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
484 "namespace" : "urn:xmpp:message-correct:0", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
485 "x_single_attribute" : "id" |
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 }, |
4534
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
488 "stanza_ids" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
489 "items" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
490 "properties" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
491 "by" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
492 "format" : "xmpp-jid", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
493 "type" : "string", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
494 "xml" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
495 "attribute" : true |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
496 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
497 }, |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
498 "id" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
499 "type" : "string", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
500 "xml" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
501 "attribute" : true |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
502 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
503 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
504 }, |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
505 "required" : [ |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
506 "id", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
507 "by" |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
508 ], |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
509 "type" : "object", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
510 "xml" : { |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
511 "name" : "stanza-id", |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
512 "namespace" : "urn:xmpp:sid:0" |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
513 } |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
514 }, |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
515 "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
|
516 "type" : "array" |
9837c73826d2
mod_rest: Add XEP-0359 ids to schema mapping
Kim Alvefur <zash@zash.se>
parents:
4533
diff
changeset
|
517 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
518 "state" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
519 "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
|
520 "enum" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
521 "active", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
522 "inactive", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
523 "gone", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
524 "composing", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
525 "paused" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
526 ], |
4531
60fe204b980f
mod_rest: Add a 'title' to XEP-0085 mapping (for documentation)
Kim Alvefur <zash@zash.se>
parents:
4530
diff
changeset
|
527 "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
|
528 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
529 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
530 "namespace" : "http://jabber.org/protocol/chatstates", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
531 "x_name_is_value" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
532 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
533 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
534 "subject" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
535 "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
|
536 "example" : "Talking about stuff", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
537 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
538 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
539 "thread" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
540 "description" : "Message thread identifier", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
541 "properties" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
542 "id" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
543 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
544 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
545 "text" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
546 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
547 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
548 "parent" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
549 "type" : "string", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
550 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
551 "attribute" : true |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
552 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
553 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
554 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
555 "type" : "object" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
556 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
557 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
558 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
559 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
560 "name" : "message" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
561 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
562 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
563 "presence" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
564 "properties" : { |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
565 "caps" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
566 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
567 "ext" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
568 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
569 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
570 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
571 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
572 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
573 "hash" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
574 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
575 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
576 "attribute" : true |
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 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
579 "node" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
580 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
581 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
582 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
583 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
584 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
585 "ver" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
586 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
587 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
588 "attribute" : true |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
589 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
590 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
591 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
592 "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
|
593 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
594 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
595 "name" : "c", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
596 "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
|
597 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
598 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
599 "idle_since" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
600 "format" : "date-time", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
601 "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
|
602 "type" : "string", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
603 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
604 "name" : "idle", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
605 "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
|
606 "x_single_attribute" : "since" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
607 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
608 }, |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
609 "priority" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
610 "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
|
611 "maximum" : 127, |
bd320ec2c2fc
mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents:
4519
diff
changeset
|
612 "minimum" : -128, |
bd320ec2c2fc
mod_rest: Declare presence priority an integer in -128..127 per RFC6121
Kim Alvefur <zash@zash.se>
parents:
4519
diff
changeset
|
613 "type" : "integer" |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
614 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
615 "show" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
616 "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
|
617 "enum" : [ |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
618 "away", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
619 "chat", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
620 "dnd", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
621 "xa" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
622 ], |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
623 "type" : "string" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
624 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
625 "status" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
626 "description" : "Textual status message.", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
627 "type" : "string" |
4530
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
628 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
629 "vcard_update" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
630 "properties" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
631 "photo" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
632 "type" : "string" |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
633 } |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
634 }, |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
635 "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
|
636 "type" : "object", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
637 "xml" : { |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
638 "name" : "x", |
33c149d0261d
mod_rest: Add mappings for a whole pile of XEPs
Kim Alvefur <zash@zash.se>
parents:
4523
diff
changeset
|
639 "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
|
640 } |
4518
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
641 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
642 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
643 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
644 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
645 "name" : "presence" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
646 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
647 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
648 }, |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
649 "type" : "object", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
650 "xml" : { |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
651 "name" : "xmpp", |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
652 "namespace" : "jabber:client" |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
653 } |
073f5397c1d2
mod_rest: Replace most mappings by using util.datamapper
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
654 } |