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 STREAM: &str = "http://etherx.jabber.org/streams";
 14/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
 15pub const TLS: &str = "urn:ietf:params:xml:ns:xmpp-tls";
 16/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
 17pub const SASL: &str = "urn:ietf:params:xml:ns:xmpp-sasl";
 18/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
 19pub const BIND: &str = "urn:ietf:params:xml:ns:xmpp-bind";
 20
 21/// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
 22pub const ROSTER: &str = "jabber:iq:roster";
 23
 24/// RFC 7395: An Extensible Messaging and Presence Protocol (XMPP) Subprotocol for WebSocket
 25pub const WEBSOCKET: &str = "urn:ietf:params:xml:ns:xmpp-framing";
 26
 27/// XEP-0004: Data Forms
 28pub const DATA_FORMS: &str = "jabber:x:data";
 29
 30/// XEP-0030: Service Discovery
 31pub const DISCO_INFO: &str = "http://jabber.org/protocol/disco#info";
 32/// XEP-0030: Service Discovery
 33pub const DISCO_ITEMS: &str = "http://jabber.org/protocol/disco#items";
 34
 35/// XEP-0045: Multi-User Chat
 36pub const MUC: &str = "http://jabber.org/protocol/muc";
 37/// XEP-0045: Multi-User Chat
 38pub const MUC_USER: &str = "http://jabber.org/protocol/muc#user";
 39
 40/// XEP-0047: In-Band Bytestreams
 41pub const IBB: &str = "http://jabber.org/protocol/ibb";
 42
 43/// XEP-0048: Bookmarks
 44pub const BOOKMARKS: &str = "storage:bookmarks";
 45
 46/// XEP-0059: Result Set Management
 47pub const RSM: &str = "http://jabber.org/protocol/rsm";
 48
 49/// XEP-0060: Publish-Subscribe
 50pub const PUBSUB: &str = "http://jabber.org/protocol/pubsub";
 51/// XEP-0060: Publish-Subscribe
 52pub const PUBSUB_ERRORS: &str = "http://jabber.org/protocol/pubsub#errors";
 53/// XEP-0060: Publish-Subscribe
 54pub const PUBSUB_EVENT: &str = "http://jabber.org/protocol/pubsub#event";
 55/// XEP-0060: Publish-Subscribe
 56pub const PUBSUB_OWNER: &str = "http://jabber.org/protocol/pubsub#owner";
 57/// XEP-0060: Publish-Subscribe node configuration
 58pub const PUBSUB_CONFIGURE: &str = "http://jabber.org/protocol/pubsub#node_config";
 59
 60/// XEP-0071: XHTML-IM
 61pub const XHTML_IM: &str = "http://jabber.org/protocol/xhtml-im";
 62/// XEP-0071: XHTML-IM
 63pub const XHTML: &str = "http://www.w3.org/1999/xhtml";
 64
 65/// XEP-0077: In-Band Registration
 66pub const REGISTER: &str = "jabber:iq:register";
 67
 68/// XEP-0084: User Avatar
 69pub const AVATAR_DATA: &str = "urn:xmpp:avatar:data";
 70/// XEP-0084: User Avatar
 71pub const AVATAR_METADATA: &str = "urn:xmpp:avatar:metadata";
 72
 73/// XEP-0085: Chat State Notifications
 74pub const CHATSTATES: &str = "http://jabber.org/protocol/chatstates";
 75
 76/// XEP-0092: Software Version
 77pub const VERSION: &str = "jabber:iq:version";
 78
 79/// XEP-0107: User Mood
 80pub const MOOD: &str = "http://jabber.org/protocol/mood";
 81
 82/// XEP-0114: Jabber Component Protocol
 83pub const COMPONENT_ACCEPT: &str = "jabber:component:accept";
 84
 85/// XEP-0114: Jabber Component Protocol
 86pub const COMPONENT: &str = "jabber:component:accept";
 87
 88/// XEP-0115: Entity Capabilities
 89pub const CAPS: &str = "http://jabber.org/protocol/caps";
 90
 91/// XEP-0118: User Tune
 92pub const TUNE: &str = "http://jabber.org/protocol/tune";
 93
 94/// XEP-0157: Contact Addresses for XMPP Services
 95pub const SERVER_INFO: &str = "http://jabber.org/network/serverinfo";
 96
 97/// XEP-0166: Jingle
 98pub const JINGLE: &str = "urn:xmpp:jingle:1";
 99
100/// XEP-0167: Jingle RTP Sessions
101pub const JINGLE_RTP: &str = "urn:xmpp:jingle:apps:rtp:1";
102/// XEP-0167: Jingle RTP Sessions
103pub const JINGLE_RTP_AUDIO: &str = "urn:xmpp:jingle:apps:rtp:audio";
104/// XEP-0167: Jingle RTP Sessions
105pub const JINGLE_RTP_VIDEO: &str = "urn:xmpp:jingle:apps:rtp:video";
106
107/// XEP-0172: User Nickname
108pub const NICK: &str = "http://jabber.org/protocol/nick";
109
110/// XEP-0176: Jingle ICE-UDP Transport Method
111pub const JINGLE_ICE_UDP: &str = "urn:xmpp:jingle:transports:ice-udp:1";
112
113/// XEP-0177: Jingle Raw UDP Transport Method
114pub const JINGLE_RAW_UDP: &str = "urn:xmpp:jingle:transports:raw-udp:1";
115
116/// XEP-0184: Message Delivery Receipts
117pub const RECEIPTS: &str = "urn:xmpp:receipts";
118
119/// XEP-0191: Blocking Command
120pub const BLOCKING: &str = "urn:xmpp:blocking";
121/// XEP-0191: Blocking Command
122pub const BLOCKING_ERRORS: &str = "urn:xmpp:blocking:errors";
123
124/// XEP-0198: Stream Management
125pub const SM: &str = "urn:xmpp:sm:3";
126
127/// XEP-0199: XMPP Ping
128pub const PING: &str = "urn:xmpp:ping";
129
130/// XEP-0202: Entity Time
131pub const TIME: &str = "urn:xmpp:time";
132
133/// XEP-0203: Delayed Delivery
134pub const DELAY: &str = "urn:xmpp:delay";
135
136/// XEP-0215: External Service Discovery
137pub const EXT_DISCO: &str = "urn:xmpp:extdisco:2";
138
139/// XEP-0221: Data Forms Media Element
140pub const MEDIA_ELEMENT: &str = "urn:xmpp:media-element";
141
142/// XEP-0224: Attention
143pub const ATTENTION: &str = "urn:xmpp:attention:0";
144
145/// XEP-0231: Bits of Binary
146pub const BOB: &str = "urn:xmpp:bob";
147
148/// XEP-0234: Jingle File Transfer
149pub const JINGLE_FT: &str = "urn:xmpp:jingle:apps:file-transfer:5";
150/// XEP-0234: Jingle File Transfer
151pub const JINGLE_FT_ERROR: &str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
152
153/// XEP-0257: Client Certificate Management for SASL EXTERNAL
154pub const SASL_CERT: &str = "urn:xmpp:saslcert:1";
155
156/// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method
157pub const JINGLE_S5B: &str = "urn:xmpp:jingle:transports:s5b:1";
158
159/// XEP-0261: Jingle In-Band Bytestreams Transport Method
160pub const JINGLE_IBB: &str = "urn:xmpp:jingle:transports:ibb:1";
161
162/// XEP-0277: Microblogging over XMPP
163pub const MICROBLOG: &str = "urn:xmpp:microblog:0";
164
165/// XEP-0280: Message Carbons
166pub const CARBONS: &str = "urn:xmpp:carbons:2";
167
168/// XEP-0293: Jingle RTP Feedback Negotiation
169pub const JINGLE_RTCP_FB: &str = "urn:xmpp:jingle:apps:rtp:rtcp-fb:0";
170
171/// XEP-0294: Jingle RTP Header Extensions Negociation
172pub const JINGLE_RTP_HDREXT: &str = "urn:xmpp:jingle:apps:rtp:rtp-hdrext:0";
173
174/// XEP-0297: Stanza Forwarding
175pub const FORWARD: &str = "urn:xmpp:forward:0";
176
177/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
178pub const HASHES: &str = "urn:xmpp:hashes:2";
179/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
180pub const HASH_ALGO_SHA_256: &str = "urn:xmpp:hash-function-text-names:sha-256";
181/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
182pub const HASH_ALGO_SHA_512: &str = "urn:xmpp:hash-function-text-names:sha-512";
183/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
184pub const HASH_ALGO_SHA3_256: &str = "urn:xmpp:hash-function-text-names:sha3-256";
185/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
186pub const HASH_ALGO_SHA3_512: &str = "urn:xmpp:hash-function-text-names:sha3-512";
187/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
188pub const HASH_ALGO_BLAKE2B_256: &str = "urn:xmpp:hash-function-text-names:id-blake2b256";
189/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
190pub const HASH_ALGO_BLAKE2B_512: &str = "urn:xmpp:hash-function-text-names:id-blake2b512";
191
192/// XEP-0301: In-Band Real Time Text
193pub const RTT: &str = "urn:xmpp:rtt:0";
194
195/// XEP-0308: Last Message Correction
196pub const MESSAGE_CORRECT: &str = "urn:xmpp:message-correct:0";
197
198/// XEP-0313: Message Archive Management
199pub const MAM: &str = "urn:xmpp:mam:2";
200
201/// XEP-0319: Last User Interaction in Presence
202pub const IDLE: &str = "urn:xmpp:idle:1";
203
204/// XEP-0320: Use of DTLS-SRTP in Jingle Sessions
205pub const JINGLE_DTLS: &str = "urn:xmpp:jingle:apps:dtls:0";
206
207/// XEP-0328: JID Prep
208pub const JID_PREP: &str = "urn:xmpp:jidprep:0";
209
210/// XEP-0338: Jingle Grouping Framework
211pub const JINGLE_GROUPING: &str = "urn:xmpp:jingle:apps:grouping:0";
212
213/// XEP-0339: Source-Specific Media Attributes in Jingle
214pub const JINGLE_SSMA: &str = "urn:xmpp:jingle:apps:rtp:ssma:0";
215
216/// XEP-0352: Client State Indication
217pub const CSI: &str = "urn:xmpp:csi:0";
218
219/// XEP-0353: Jingle Message Initiation
220pub const JINGLE_MESSAGE: &str = "urn:xmpp:jingle-message:0";
221
222/// XEP-0359: Unique and Stable Stanza IDs
223pub const SID: &str = "urn:xmpp:sid:0";
224
225/// XEP-0363: HTTP File Upload
226pub const HTTP_UPLOAD: &str = "urn:xmpp:http:upload:0";
227
228/// XEP-0369: Mediated Information eXchange (MIX)
229pub const MIX_CORE: &str = "urn:xmpp:mix:core:1";
230/// XEP-0369: Mediated Information eXchange (MIX)
231pub const MIX_CORE_SEARCHABLE: &str = "urn:xmpp:mix:core:1#searchable";
232/// XEP-0369: Mediated Information eXchange (MIX)
233pub const MIX_CORE_CREATE_CHANNEL: &str = "urn:xmpp:mix:core:1#create-channel";
234/// XEP-0369: Mediated Information eXchange (MIX)
235pub const MIX_NODES_PRESENCE: &str = "urn:xmpp:mix:nodes:presence";
236/// XEP-0369: Mediated Information eXchange (MIX)
237pub const MIX_NODES_PARTICIPANTS: &str = "urn:xmpp:mix:nodes:participants";
238/// XEP-0369: Mediated Information eXchange (MIX)
239pub const MIX_NODES_MESSAGES: &str = "urn:xmpp:mix:nodes:messages";
240/// XEP-0369: Mediated Information eXchange (MIX)
241pub const MIX_NODES_CONFIG: &str = "urn:xmpp:mix:nodes:config";
242/// XEP-0369: Mediated Information eXchange (MIX)
243pub const MIX_NODES_INFO: &str = "urn:xmpp:mix:nodes:info";
244
245/// XEP-0373: OpenPGP for XMPP
246pub const OX: &str = "urn:xmpp:openpgp:0";
247/// XEP-0373: OpenPGP for XMPP
248pub const OX_PUBKEYS: &str = "urn:xmpp:openpgp:0:public-keys";
249
250/// XEP-0380: Explicit Message Encryption
251pub const EME: &str = "urn:xmpp:eme:0";
252
253/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
254pub const LEGACY_OMEMO: &str = "eu.siacs.conversations.axolotl";
255/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
256pub const LEGACY_OMEMO_DEVICELIST: &str = "eu.siacs.conversations.axolotl.devicelist";
257/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
258pub const LEGACY_OMEMO_BUNDLES: &str = "eu.siacs.conversations.axolotl.bundles";
259
260/// XEP-0390: Entity Capabilities 2.0
261pub const ECAPS2: &str = "urn:xmpp:caps";
262/// XEP-0390: Entity Capabilities 2.0
263pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize";
264
265/// XEP-0402: PEP Native Bookmarks
266pub const BOOKMARKS2: &str = "urn:xmpp:bookmarks:1";
267/// XEP-0402: PEP Native Bookmarks
268pub const BOOKMARKS2_COMPAT: &str = "urn:xmpp:bookmarks:1#compat";
269/// XEP-0402: PEP Native Bookmarks
270pub const BOOKMARKS2_COMPAT_PEP: &str = "urn:xmpp:bookmarks:1#compat-pep";
271
272/// XEP-0421: Anonymous unique occupant identifiers for MUCs
273pub const OID: &str = "urn:xmpp:occupant-id:0";
274
275/// XEP-0444: Message Reactions
276pub const REACTIONS: &str = "urn:xmpp:reactions:0";
277
278/// Alias for the main namespace of the stream, that is "jabber:client" when
279/// the component feature isn’t enabled.
280#[cfg(not(feature = "component"))]
281pub const DEFAULT_NS: &str = JABBER_CLIENT;
282
283/// Alias for the main namespace of the stream, that is
284/// "jabber:component:accept" when the component feature is enabled.
285#[cfg(feature = "component")]
286pub const DEFAULT_NS: &str = COMPONENT_ACCEPT;