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-0070: Verifying HTTP Requests via XMPP
72pub const HTTP_AUTH: &str = "http://jabber.org/protocol/http-auth";
73
74/// XEP-0071: XHTML-IM
75pub const XHTML_IM: &str = "http://jabber.org/protocol/xhtml-im";
76/// XEP-0071: XHTML-IM
77pub const XHTML: &str = "http://www.w3.org/1999/xhtml";
78
79/// XEP-0077: In-Band Registration
80pub const REGISTER: &str = "jabber:iq:register";
81
82/// XEP-0084: User Avatar
83pub const AVATAR_DATA: &str = "urn:xmpp:avatar:data";
84/// XEP-0084: User Avatar
85pub const AVATAR_METADATA: &str = "urn:xmpp:avatar:metadata";
86
87/// XEP-0085: Chat State Notifications
88pub const CHATSTATES: &str = "http://jabber.org/protocol/chatstates";
89
90/// XEP-0092: Software Version
91pub const VERSION: &str = "jabber:iq:version";
92
93/// XEP-0107: User Mood
94pub const MOOD: &str = "http://jabber.org/protocol/mood";
95
96/// XEP-0114: Jabber Component Protocol
97pub const COMPONENT_ACCEPT: &str = "jabber:component:accept";
98
99/// XEP-0114: Jabber Component Protocol
100pub const COMPONENT: &str = "jabber:component:accept";
101
102/// XEP-0115: Entity Capabilities
103pub const CAPS: &str = "http://jabber.org/protocol/caps";
104
105/// XEP-0118: User Tune
106pub const TUNE: &str = "http://jabber.org/protocol/tune";
107
108/// XEP-0122: Data Forms Validation
109pub const XDATA_VALIDATE: &str = "http://jabber.org/protocol/xdata-validate";
110
111/// XEP-0153: vCard-Based Avatars
112pub const VCARD_UPDATE: &str = "vcard-temp:x:update";
113
114/// XEP-0157: Contact Addresses for XMPP Services
115pub const SERVER_INFO: &str = "http://jabber.org/network/serverinfo";
116
117/// XEP-0166: Jingle
118pub const JINGLE: &str = "urn:xmpp:jingle:1";
119
120/// XEP-0167: Jingle RTP Sessions
121pub const JINGLE_RTP: &str = "urn:xmpp:jingle:apps:rtp:1";
122/// XEP-0167: Jingle RTP Sessions
123pub const JINGLE_RTP_AUDIO: &str = "urn:xmpp:jingle:apps:rtp:audio";
124/// XEP-0167: Jingle RTP Sessions
125pub const JINGLE_RTP_VIDEO: &str = "urn:xmpp:jingle:apps:rtp:video";
126
127/// XEP-0172: User Nickname
128pub const NICK: &str = "http://jabber.org/protocol/nick";
129
130/// XEP-0176: Jingle ICE-UDP Transport Method
131pub const JINGLE_ICE_UDP: &str = "urn:xmpp:jingle:transports:ice-udp:1";
132
133/// XEP-0177: Jingle Raw UDP Transport Method
134pub const JINGLE_RAW_UDP: &str = "urn:xmpp:jingle:transports:raw-udp:1";
135
136/// XEP-0184: Message Delivery Receipts
137pub const RECEIPTS: &str = "urn:xmpp:receipts";
138
139/// XEP-0191: Blocking Command
140pub const BLOCKING: &str = "urn:xmpp:blocking";
141/// XEP-0191: Blocking Command
142pub const BLOCKING_ERRORS: &str = "urn:xmpp:blocking:errors";
143
144/// XEP-0198: Stream Management
145pub const SM: &str = "urn:xmpp:sm:3";
146
147/// XEP-0199: XMPP Ping
148pub const PING: &str = "urn:xmpp:ping";
149
150/// XEP-0202: Entity Time
151pub const TIME: &str = "urn:xmpp:time";
152
153/// XEP-0203: Delayed Delivery
154pub const DELAY: &str = "urn:xmpp:delay";
155
156/// XEP-0215: External Service Discovery
157pub const EXT_DISCO: &str = "urn:xmpp:extdisco:2";
158
159/// XEP-0221: Data Forms Media Element
160pub const MEDIA_ELEMENT: &str = "urn:xmpp:media-element";
161
162/// XEP-0224: Attention
163pub const ATTENTION: &str = "urn:xmpp:attention:0";
164
165/// XEP-0231: Bits of Binary
166pub const BOB: &str = "urn:xmpp:bob";
167
168/// XEP-0234: Jingle File Transfer
169pub const JINGLE_FT: &str = "urn:xmpp:jingle:apps:file-transfer:5";
170/// XEP-0234: Jingle File Transfer
171pub const JINGLE_FT_ERROR: &str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
172
173/// XEP-0257: Client Certificate Management for SASL EXTERNAL
174pub const SASL_CERT: &str = "urn:xmpp:saslcert:1";
175
176/// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method
177pub const JINGLE_S5B: &str = "urn:xmpp:jingle:transports:s5b:1";
178
179/// XEP-0261: Jingle In-Band Bytestreams Transport Method
180pub const JINGLE_IBB: &str = "urn:xmpp:jingle:transports:ibb:1";
181
182/// XEP-0264: Jingle Content Thumbnails
183pub const JINGLE_THUMBNAILS: &str = "urn:xmpp:thumbs:1";
184
185/// XEP-0277: Microblogging over XMPP
186pub const MICROBLOG: &str = "urn:xmpp:microblog:0";
187
188/// XEP-0280: Message Carbons
189pub const CARBONS: &str = "urn:xmpp:carbons:2";
190
191/// XEP-0293: Jingle RTP Feedback Negotiation
192pub const JINGLE_RTCP_FB: &str = "urn:xmpp:jingle:apps:rtp:rtcp-fb:0";
193
194/// XEP-0294: Jingle RTP Header Extensions Negotiation
195pub const JINGLE_RTP_HDREXT: &str = "urn:xmpp:jingle:apps:rtp:rtp-hdrext:0";
196
197/// XEP-0297: Stanza Forwarding
198pub const FORWARD: &str = "urn:xmpp:forward:0";
199
200/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
201pub const HASHES: &str = "urn:xmpp:hashes:2";
202/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
203pub const HASH_ALGO_SHA_256: &str = "urn:xmpp:hash-function-text-names:sha-256";
204/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
205pub const HASH_ALGO_SHA_512: &str = "urn:xmpp:hash-function-text-names:sha-512";
206/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
207pub const HASH_ALGO_SHA3_256: &str = "urn:xmpp:hash-function-text-names:sha3-256";
208/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
209pub const HASH_ALGO_SHA3_512: &str = "urn:xmpp:hash-function-text-names:sha3-512";
210/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
211pub const HASH_ALGO_BLAKE2B_256: &str = "urn:xmpp:hash-function-text-names:id-blake2b256";
212/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
213pub const HASH_ALGO_BLAKE2B_512: &str = "urn:xmpp:hash-function-text-names:id-blake2b512";
214
215/// XEP-0301: In-Band Real Time Text
216pub const RTT: &str = "urn:xmpp:rtt:0";
217
218/// XEP-0308: Last Message Correction
219pub const MESSAGE_CORRECT: &str = "urn:xmpp:message-correct:0";
220
221/// XEP-0313: Message Archive Management
222pub const MAM: &str = "urn:xmpp:mam:2";
223
224/// XEP-0319: Last User Interaction in Presence
225pub const IDLE: &str = "urn:xmpp:idle:1";
226
227/// XEP-0320: Use of DTLS-SRTP in Jingle Sessions
228pub const JINGLE_DTLS: &str = "urn:xmpp:jingle:apps:dtls:0";
229
230/// XEP-0328: JID Prep
231pub const JID_PREP: &str = "urn:xmpp:jidprep:0";
232
233/// XEP-0335: JSON Containers
234pub const JSON_CONTAINERS: &str = "urn:xmpp:json:0";
235
236/// XEP-0338: Jingle Grouping Framework
237pub const JINGLE_GROUPING: &str = "urn:xmpp:jingle:apps:grouping:0";
238
239/// XEP-0339: Source-Specific Media Attributes in Jingle
240pub const JINGLE_SSMA: &str = "urn:xmpp:jingle:apps:rtp:ssma:0";
241
242/// XEP-0352: Client State Indication
243pub const CSI: &str = "urn:xmpp:csi:0";
244
245/// XEP-0353: Jingle Message Initiation
246pub const JINGLE_MESSAGE: &str = "urn:xmpp:jingle-message:0";
247
248/// XEP-0357: Push Notifications
249pub const PUSH: &str = "urn:xmpp:push:0";
250
251/// XEP-0359: Unique and Stable Stanza IDs
252pub const SID: &str = "urn:xmpp:sid:0";
253
254/// XEP-0363: HTTP File Upload
255pub const HTTP_UPLOAD: &str = "urn:xmpp:http:upload:0";
256
257/// XEP-0373: OpenPGP for XMPP
258pub const OX: &str = "urn:xmpp:openpgp:0";
259/// XEP-0373: OpenPGP for XMPP
260pub const OX_PUBKEYS: &str = "urn:xmpp:openpgp:0:public-keys";
261
262/// XEP-0377: Spam Reporting
263pub const SPAM_REPORTING: &str = "urn:xmpp:reporting:1";
264
265/// XEP-0380: Explicit Message Encryption
266pub const EME: &str = "urn:xmpp:eme:0";
267
268/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
269pub const LEGACY_OMEMO: &str = "eu.siacs.conversations.axolotl";
270/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
271pub const LEGACY_OMEMO_DEVICELIST: &str = "eu.siacs.conversations.axolotl.devicelist";
272/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
273pub const LEGACY_OMEMO_BUNDLES: &str = "eu.siacs.conversations.axolotl.bundles";
274
275/// XEP-0386: Bind 2
276pub const BIND2: &str = "urn:xmpp:bind:0";
277
278/// XEP-0388: Extensible SASL Profile
279pub const SASL2: &str = "urn:xmpp:sasl:2";
280
281/// XEP-0390: Entity Capabilities 2.0
282pub const ECAPS2: &str = "urn:xmpp:caps";
283/// XEP-0390: Entity Capabilities 2.0
284pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize";
285
286/// XEP-0402: PEP Native Bookmarks
287pub const BOOKMARKS2: &str = "urn:xmpp:bookmarks:1";
288/// XEP-0402: PEP Native Bookmarks
289pub const BOOKMARKS2_COMPAT: &str = "urn:xmpp:bookmarks:1#compat";
290/// XEP-0402: PEP Native Bookmarks
291pub const BOOKMARKS2_COMPAT_PEP: &str = "urn:xmpp:bookmarks:1#compat-pep";
292
293/// XEP-0421: Anonymous unique occupant identifiers for MUCs
294pub const OID: &str = "urn:xmpp:occupant-id:0";
295
296/// XEP-0440: SASL Channel-Binding Type Capability
297pub const SASL_CB: &str = "urn:xmpp:sasl-cb:0";
298
299/// XEP-0444: Message Reactions
300pub const REACTIONS: &str = "urn:xmpp:reactions:0";
301
302/// XEP-0478: Stream Limits Advertisement
303pub const STREAM_LIMITS: &str = "urn:xmpp:stream-limits:0";
304
305/// XEP-0484: Fast Authentication Streamlining Tokens
306pub const FAST: &str = "urn:xmpp:fast:0";
307
308/// XEP-0490: Message Displayed Synchronization
309pub const MDS: &str = "urn:xmpp:mds:displayed:0";
310
311/// Alias for the main namespace of the stream, that is "jabber:client" when
312/// the component feature isn’t enabled.
313#[cfg(not(feature = "component"))]
314pub const DEFAULT_NS: &str = JABBER_CLIENT;
315
316/// Alias for the main namespace of the stream, that is
317/// "jabber:component:accept" when the component feature is enabled.
318#[cfg(feature = "component")]
319pub const DEFAULT_NS: &str = COMPONENT_ACCEPT;