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