ns.rs

  1// Copyright (c) 2017 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
  2// Copyright (c) 2017 Maxime “pep” Buquet <pep+code@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 SASL: &str = "urn:ietf:params:xml:ns:xmpp-sasl";
 14
 15/// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
 16pub const ROSTER: &str = "jabber:iq:roster";
 17
 18/// RFC 7395: An Extensible Messaging and Presence Protocol (XMPP) Subprotocol for WebSocket
 19pub const WEBSOCKET: &str = "urn:ietf:params:xml:ns:xmpp-framing";
 20
 21/// XEP-0004: Data Forms
 22pub const DATA_FORMS: &str = "jabber:x:data";
 23
 24/// XEP-0030: Service Discovery
 25pub const DISCO_INFO: &str = "http://jabber.org/protocol/disco#info";
 26/// XEP-0030: Service Discovery
 27pub const DISCO_ITEMS: &str = "http://jabber.org/protocol/disco#items";
 28
 29/// XEP-0045: Multi-User Chat
 30pub const MUC: &str = "http://jabber.org/protocol/muc";
 31/// XEP-0045: Multi-User Chat
 32pub const MUC_USER: &str = "http://jabber.org/protocol/muc#user";
 33
 34/// XEP-0047: In-Band Bytestreams
 35pub const IBB: &str = "http://jabber.org/protocol/ibb";
 36
 37/// XEP-0059: Result Set Management
 38pub const RSM: &str = "http://jabber.org/protocol/rsm";
 39
 40/// XEP-0060: Publish-Subscribe
 41pub const PUBSUB: &str = "http://jabber.org/protocol/pubsub";
 42/// XEP-0060: Publish-Subscribe
 43pub const PUBSUB_ERRORS: &str = "http://jabber.org/protocol/pubsub#errors";
 44/// XEP-0060: Publish-Subscribe
 45pub const PUBSUB_EVENT: &str = "http://jabber.org/protocol/pubsub#event";
 46/// XEP-0060: Publish-Subscribe
 47pub const PUBSUB_OWNER: &str = "http://jabber.org/protocol/pubsub#owner";
 48
 49/// XEP-0077: In-Band Registration
 50pub const REGISTER: &str = "jabber:iq:register";
 51
 52/// XEP-0085: Chat State Notifications
 53pub const CHATSTATES: &str = "http://jabber.org/protocol/chatstates";
 54
 55/// XEP-0092: Software Version
 56pub const VERSION: &str = "jabber:iq:version";
 57
 58/// XEP-0107: User Mood
 59pub const MOOD: &str = "http://jabber.org/protocol/mood";
 60
 61/// XEP-0114: Jabber Component Protocol
 62pub const COMPONENT_ACCEPT: &str = "jabber:component:accept";
 63
 64/// XEP-0115: Entity Capabilities
 65pub const CAPS: &str = "http://jabber.org/protocol/caps";
 66
 67/// XEP-0166: Jingle
 68pub const JINGLE: &str = "urn:xmpp:jingle:1";
 69
 70/// XEP-0184: Message Delivery Receipts
 71pub const RECEIPTS: &str = "urn:xmpp:receipts";
 72
 73/// XEP-0191: Blocking Command
 74pub const BLOCKING: &str = "urn:xmpp:blocking";
 75/// XEP-0191: Blocking Command
 76pub const BLOCKING_ERRORS: &str = "urn:xmpp:blocking:errors";
 77
 78/// XEP-0199: XMPP Ping
 79pub const PING: &str = "urn:xmpp:ping";
 80
 81/// XEP-0203: Delayed Delivery
 82pub const DELAY: &str = "urn:xmpp:delay";
 83
 84/// XEP-0221: Data Forms Media Element
 85pub const MEDIA_ELEMENT: &str = "urn:xmpp:media-element";
 86
 87/// XEP-0224: Attention
 88pub const ATTENTION: &str = "urn:xmpp:attention:0";
 89
 90/// XEP-0234: Jingle File Transfer
 91pub const JINGLE_FT: &str = "urn:xmpp:jingle:apps:file-transfer:5";
 92/// XEP-0234: Jingle File Transfer
 93pub const JINGLE_FT_ERROR: &str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
 94
 95/// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method
 96pub const JINGLE_S5B: &str = "urn:xmpp:jingle:transports:s5b:1";
 97
 98/// XEP-0261: Jingle In-Band Bytestreams Transport Method
 99pub const JINGLE_IBB: &str = "urn:xmpp:jingle:transports:ibb:1";
100
101/// XEP-0297: Stanza Forwarding
102pub const FORWARD: &str = "urn:xmpp:forward:0";
103
104/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
105pub const HASHES: &str = "urn:xmpp:hashes:2";
106/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
107pub const HASH_ALGO_SHA_256: &str = "urn:xmpp:hash-function-text-names:sha-256";
108/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
109pub const HASH_ALGO_SHA_512: &str = "urn:xmpp:hash-function-text-names:sha-512";
110/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
111pub const HASH_ALGO_SHA3_256: &str = "urn:xmpp:hash-function-text-names:sha3-256";
112/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
113pub const HASH_ALGO_SHA3_512: &str = "urn:xmpp:hash-function-text-names:sha3-512";
114/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
115pub const HASH_ALGO_BLAKE2B_256: &str = "urn:xmpp:hash-function-text-names:id-blake2b256";
116/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
117pub const HASH_ALGO_BLAKE2B_512: &str = "urn:xmpp:hash-function-text-names:id-blake2b512";
118
119/// XEP-0308: Last Message Correction
120pub const MESSAGE_CORRECT: &str = "urn:xmpp:message-correct:0";
121
122/// XEP-0313: Message Archive Management
123pub const MAM: &str = "urn:xmpp:mam:2";
124
125/// XEP-0319: Last User Interaction in Presence
126pub const IDLE: &str = "urn:xmpp:idle:1";
127
128/// XEP-0353: Jingle Message Initiation
129pub const JINGLE_MESSAGE: &str = "urn:xmpp:jingle-message:0";
130
131/// XEP-0359: Unique and Stable Stanza IDs
132pub const SID: &str = "urn:xmpp:sid:0";
133
134/// XEP-0380: Explicit Message Encryption
135pub const EME: &str = "urn:xmpp:eme:0";
136
137/// XEP-0390: Entity Capabilities 2.0
138pub const ECAPS2: &str = "urn:xmpp:caps";
139/// XEP-0390: Entity Capabilities 2.0
140pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize";
141
142#[cfg(not(feature = "component"))]
143pub const DEFAULT_NS: &str = JABBER_CLIENT;
144#[cfg(feature = "component")]
145pub const DEFAULT_NS: &str = COMPONENT_ACCEPT;