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