Skip to main content

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