xmpp_parsers/
ns.rs

1// Copyright (c) 2017-2018 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2// Copyright (c) 2017 Maxime “pep” Buquet <pep@bouah.net>
3//
4// This Source Code Form is subject to the terms of the Mozilla Public
5// License, v. 2.0. If a copy of the MPL was not distributed with this
6// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
8/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
9pub const JABBER_CLIENT: &str = "jabber:client";
10/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
11pub const XMPP_STANZAS: &str = "urn:ietf:params:xml:ns:xmpp-stanzas";
12/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
13pub const XMPP_STREAMS: &str = "urn:ietf:params:xml:ns:xmpp-streams";
14/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
15pub const STREAM: &str = "http://etherx.jabber.org/streams";
16/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
17pub const TLS: &str = "urn:ietf:params:xml:ns:xmpp-tls";
18/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
19pub const SASL: &str = "urn:ietf:params:xml:ns:xmpp-sasl";
20/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
21pub const BIND: &str = "urn:ietf:params:xml:ns:xmpp-bind";
22
23/// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
24pub const ROSTER: &str = "jabber:iq:roster";
25
26/// RFC 7395: An Extensible Messaging and Presence Protocol (XMPP) Subprotocol for WebSocket
27pub const WEBSOCKET: &str = "urn:ietf:params:xml:ns:xmpp-framing";
28
29/// XEP-0004: Data Forms
30pub const DATA_FORMS: &str = "jabber:x:data";
31
32/// XEP-0030: Service Discovery
33pub const DISCO_INFO: &str = "http://jabber.org/protocol/disco#info";
34/// XEP-0030: Service Discovery
35pub const DISCO_ITEMS: &str = "http://jabber.org/protocol/disco#items";
36
37/// XEP-0045: Multi-User Chat
38pub const MUC: &str = "http://jabber.org/protocol/muc";
39/// XEP-0045: Multi-User Chat
40pub const MUC_USER: &str = "http://jabber.org/protocol/muc#user";
41
42/// XEP-0047: In-Band Bytestreams
43pub const IBB: &str = "http://jabber.org/protocol/ibb";
44
45/// XEP-0048: Bookmarks
46pub const BOOKMARKS: &str = "storage:bookmarks";
47
48/// XEP-0049: Private XML Storage
49pub const PRIVATE: &str = "jabber:iq:private";
50
51/// XEP-0054: vcard-temp
52pub const VCARD: &str = "vcard-temp";
53
54/// XEP-0059: Result Set Management
55pub const RSM: &str = "http://jabber.org/protocol/rsm";
56
57/// XEP-0060: Publish-Subscribe
58pub const PUBSUB: &str = "http://jabber.org/protocol/pubsub";
59/// XEP-0060: Publish-Subscribe
60pub const PUBSUB_ERRORS: &str = "http://jabber.org/protocol/pubsub#errors";
61/// XEP-0060: Publish-Subscribe
62pub const PUBSUB_EVENT: &str = "http://jabber.org/protocol/pubsub#event";
63/// XEP-0060: Publish-Subscribe
64pub const PUBSUB_OWNER: &str = "http://jabber.org/protocol/pubsub#owner";
65/// XEP-0060: Publish-Subscribe node configuration
66pub const PUBSUB_CONFIGURE: &str = "http://jabber.org/protocol/pubsub#node_config";
67
68/// XEP-0066: Out of Band Data
69pub const OOB: &str = "jabber:x:oob";
70
71/// XEP-0071: XHTML-IM
72pub const XHTML_IM: &str = "http://jabber.org/protocol/xhtml-im";
73/// XEP-0071: XHTML-IM
74pub const XHTML: &str = "http://www.w3.org/1999/xhtml";
75
76/// XEP-0077: In-Band Registration
77pub const REGISTER: &str = "jabber:iq:register";
78
79/// XEP-0084: User Avatar
80pub const AVATAR_DATA: &str = "urn:xmpp:avatar:data";
81/// XEP-0084: User Avatar
82pub const AVATAR_METADATA: &str = "urn:xmpp:avatar:metadata";
83
84/// XEP-0085: Chat State Notifications
85pub const CHATSTATES: &str = "http://jabber.org/protocol/chatstates";
86
87/// XEP-0092: Software Version
88pub const VERSION: &str = "jabber:iq:version";
89
90/// XEP-0107: User Mood
91pub const MOOD: &str = "http://jabber.org/protocol/mood";
92
93/// XEP-0114: Jabber Component Protocol
94pub const COMPONENT_ACCEPT: &str = "jabber:component:accept";
95
96/// XEP-0114: Jabber Component Protocol
97pub const COMPONENT: &str = "jabber:component:accept";
98
99/// XEP-0115: Entity Capabilities
100pub const CAPS: &str = "http://jabber.org/protocol/caps";
101
102/// XEP-0118: User Tune
103pub const TUNE: &str = "http://jabber.org/protocol/tune";
104
105/// XEP-0122: Data Forms Validation
106pub const XDATA_VALIDATE: &str = "http://jabber.org/protocol/xdata-validate";
107
108/// XEP-0153: vCard-Based Avatars
109pub const VCARD_UPDATE: &str = "vcard-temp:x:update";
110
111/// XEP-0157: Contact Addresses for XMPP Services
112pub const SERVER_INFO: &str = "http://jabber.org/network/serverinfo";
113
114/// XEP-0166: Jingle
115pub const JINGLE: &str = "urn:xmpp:jingle:1";
116
117/// XEP-0167: Jingle RTP Sessions
118pub const JINGLE_RTP: &str = "urn:xmpp:jingle:apps:rtp:1";
119/// XEP-0167: Jingle RTP Sessions
120pub const JINGLE_RTP_AUDIO: &str = "urn:xmpp:jingle:apps:rtp:audio";
121/// XEP-0167: Jingle RTP Sessions
122pub const JINGLE_RTP_VIDEO: &str = "urn:xmpp:jingle:apps:rtp:video";
123
124/// XEP-0172: User Nickname
125pub const NICK: &str = "http://jabber.org/protocol/nick";
126
127/// XEP-0176: Jingle ICE-UDP Transport Method
128pub const JINGLE_ICE_UDP: &str = "urn:xmpp:jingle:transports:ice-udp:1";
129
130/// XEP-0177: Jingle Raw UDP Transport Method
131pub const JINGLE_RAW_UDP: &str = "urn:xmpp:jingle:transports:raw-udp:1";
132
133/// XEP-0184: Message Delivery Receipts
134pub const RECEIPTS: &str = "urn:xmpp:receipts";
135
136/// XEP-0191: Blocking Command
137pub const BLOCKING: &str = "urn:xmpp:blocking";
138/// XEP-0191: Blocking Command
139pub const BLOCKING_ERRORS: &str = "urn:xmpp:blocking:errors";
140
141/// XEP-0198: Stream Management
142pub const SM: &str = "urn:xmpp:sm:3";
143
144/// XEP-0199: XMPP Ping
145pub const PING: &str = "urn:xmpp:ping";
146
147/// XEP-0202: Entity Time
148pub const TIME: &str = "urn:xmpp:time";
149
150/// XEP-0203: Delayed Delivery
151pub const DELAY: &str = "urn:xmpp:delay";
152
153/// XEP-0215: External Service Discovery
154pub const EXT_DISCO: &str = "urn:xmpp:extdisco:2";
155
156/// XEP-0221: Data Forms Media Element
157pub const MEDIA_ELEMENT: &str = "urn:xmpp:media-element";
158
159/// XEP-0224: Attention
160pub const ATTENTION: &str = "urn:xmpp:attention:0";
161
162/// XEP-0231: Bits of Binary
163pub const BOB: &str = "urn:xmpp:bob";
164
165/// XEP-0234: Jingle File Transfer
166pub const JINGLE_FT: &str = "urn:xmpp:jingle:apps:file-transfer:5";
167/// XEP-0234: Jingle File Transfer
168pub const JINGLE_FT_ERROR: &str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
169
170/// XEP-0257: Client Certificate Management for SASL EXTERNAL
171pub const SASL_CERT: &str = "urn:xmpp:saslcert:1";
172
173/// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method
174pub const JINGLE_S5B: &str = "urn:xmpp:jingle:transports:s5b:1";
175
176/// XEP-0261: Jingle In-Band Bytestreams Transport Method
177pub const JINGLE_IBB: &str = "urn:xmpp:jingle:transports:ibb:1";
178
179/// XEP-0264: Jingle Content Thumbnails
180pub const JINGLE_THUMBNAILS: &str = "urn:xmpp:thumbs:1";
181
182/// XEP-0277: Microblogging over XMPP
183pub const MICROBLOG: &str = "urn:xmpp:microblog:0";
184
185/// XEP-0280: Message Carbons
186pub const CARBONS: &str = "urn:xmpp:carbons:2";
187
188/// XEP-0293: Jingle RTP Feedback Negotiation
189pub const JINGLE_RTCP_FB: &str = "urn:xmpp:jingle:apps:rtp:rtcp-fb:0";
190
191/// XEP-0294: Jingle RTP Header Extensions Negotiation
192pub const JINGLE_RTP_HDREXT: &str = "urn:xmpp:jingle:apps:rtp:rtp-hdrext:0";
193
194/// XEP-0297: Stanza Forwarding
195pub const FORWARD: &str = "urn:xmpp:forward:0";
196
197/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
198pub const HASHES: &str = "urn:xmpp:hashes:2";
199/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
200pub const HASH_ALGO_SHA_256: &str = "urn:xmpp:hash-function-text-names:sha-256";
201/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
202pub const HASH_ALGO_SHA_512: &str = "urn:xmpp:hash-function-text-names:sha-512";
203/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
204pub const HASH_ALGO_SHA3_256: &str = "urn:xmpp:hash-function-text-names:sha3-256";
205/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
206pub const HASH_ALGO_SHA3_512: &str = "urn:xmpp:hash-function-text-names:sha3-512";
207/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
208pub const HASH_ALGO_BLAKE2B_256: &str = "urn:xmpp:hash-function-text-names:id-blake2b256";
209/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
210pub const HASH_ALGO_BLAKE2B_512: &str = "urn:xmpp:hash-function-text-names:id-blake2b512";
211
212/// XEP-0301: In-Band Real Time Text
213pub const RTT: &str = "urn:xmpp:rtt:0";
214
215/// XEP-0308: Last Message Correction
216pub const MESSAGE_CORRECT: &str = "urn:xmpp:message-correct:0";
217
218/// XEP-0313: Message Archive Management
219pub const MAM: &str = "urn:xmpp:mam:2";
220
221/// XEP-0319: Last User Interaction in Presence
222pub const IDLE: &str = "urn:xmpp:idle:1";
223
224/// XEP-0320: Use of DTLS-SRTP in Jingle Sessions
225pub const JINGLE_DTLS: &str = "urn:xmpp:jingle:apps:dtls:0";
226
227/// XEP-0328: JID Prep
228pub const JID_PREP: &str = "urn:xmpp:jidprep:0";
229
230/// XEP-0335: JSON Containers
231pub const JSON_CONTAINERS: &str = "urn:xmpp:json:0";
232
233/// XEP-0338: Jingle Grouping Framework
234pub const JINGLE_GROUPING: &str = "urn:xmpp:jingle:apps:grouping:0";
235
236/// XEP-0339: Source-Specific Media Attributes in Jingle
237pub const JINGLE_SSMA: &str = "urn:xmpp:jingle:apps:rtp:ssma:0";
238
239/// XEP-0352: Client State Indication
240pub const CSI: &str = "urn:xmpp:csi:0";
241
242/// XEP-0353: Jingle Message Initiation
243pub const JINGLE_MESSAGE: &str = "urn:xmpp:jingle-message:0";
244
245/// XEP-0357: Push Notifications
246pub const PUSH: &str = "urn:xmpp:push:0";
247
248/// XEP-0359: Unique and Stable Stanza IDs
249pub const SID: &str = "urn:xmpp:sid:0";
250
251/// XEP-0363: HTTP File Upload
252pub const HTTP_UPLOAD: &str = "urn:xmpp:http:upload:0";
253
254/// XEP-0373: OpenPGP for XMPP
255pub const OX: &str = "urn:xmpp:openpgp:0";
256/// XEP-0373: OpenPGP for XMPP
257pub const OX_PUBKEYS: &str = "urn:xmpp:openpgp:0:public-keys";
258
259/// XEP-0377: Spam Reporting
260pub const SPAM_REPORTING: &str = "urn:xmpp:reporting:1";
261
262/// XEP-0380: Explicit Message Encryption
263pub const EME: &str = "urn:xmpp:eme:0";
264
265/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
266pub const LEGACY_OMEMO: &str = "eu.siacs.conversations.axolotl";
267/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
268pub const LEGACY_OMEMO_DEVICELIST: &str = "eu.siacs.conversations.axolotl.devicelist";
269/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
270pub const LEGACY_OMEMO_BUNDLES: &str = "eu.siacs.conversations.axolotl.bundles";
271
272/// XEP-0386: Bind 2
273pub const BIND2: &str = "urn:xmpp:bind:0";
274
275/// XEP-0388: Extensible SASL Profile
276pub const SASL2: &str = "urn:xmpp:sasl:2";
277
278/// XEP-0390: Entity Capabilities 2.0
279pub const ECAPS2: &str = "urn:xmpp:caps";
280/// XEP-0390: Entity Capabilities 2.0
281pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize";
282
283/// XEP-0402: PEP Native Bookmarks
284pub const BOOKMARKS2: &str = "urn:xmpp:bookmarks:1";
285/// XEP-0402: PEP Native Bookmarks
286pub const BOOKMARKS2_COMPAT: &str = "urn:xmpp:bookmarks:1#compat";
287/// XEP-0402: PEP Native Bookmarks
288pub const BOOKMARKS2_COMPAT_PEP: &str = "urn:xmpp:bookmarks:1#compat-pep";
289
290/// XEP-0421: Anonymous unique occupant identifiers for MUCs
291pub const OID: &str = "urn:xmpp:occupant-id:0";
292
293/// XEP-0440: SASL Channel-Binding Type Capability
294pub const SASL_CB: &str = "urn:xmpp:sasl-cb:0";
295
296/// XEP-0444: Message Reactions
297pub const REACTIONS: &str = "urn:xmpp:reactions:0";
298
299/// XEP-0478: Stream Limits Advertisement
300pub const STREAM_LIMITS: &str = "urn:xmpp:stream-limits:0";
301
302/// XEP-0484: Fast Authentication Streamlining Tokens
303pub const FAST: &str = "urn:xmpp:fast:0";
304
305/// XEP-0490: Message Displayed Synchronization
306pub const MDS: &str = "urn:xmpp:mds:displayed:0";
307
308/// Alias for the main namespace of the stream, that is "jabber:client" when
309/// the component feature isn’t enabled.
310#[cfg(not(feature = "component"))]
311pub const DEFAULT_NS: &str = JABBER_CLIENT;
312
313/// Alias for the main namespace of the stream, that is
314/// "jabber:component:accept" when the component feature is enabled.
315#[cfg(feature = "component")]
316pub const DEFAULT_NS: &str = COMPONENT_ACCEPT;