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: &'static str = "jabber:client";
 10/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
 11pub const XMPP_STANZAS: &'static 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: &'static str = "jabber:iq:roster";
 15
 16/// XEP-0004: Data Forms
 17pub const DATA_FORMS: &'static str = "jabber:x:data";
 18
 19/// XEP-0030: Service Discovery
 20pub const DISCO_INFO: &'static str = "http://jabber.org/protocol/disco#info";
 21
 22/// XEP-0045: Multi-User Chat
 23pub const MUC: &'static str = "http://jabber.org/protocol/muc";
 24/// XEP-0045: Multi-User Chat
 25pub const MUC_USER: &'static str = "http://jabber.org/protocol/muc#user";
 26
 27/// XEP-0047: In-Band Bytestreams
 28pub const IBB: &'static str = "http://jabber.org/protocol/ibb";
 29
 30/// XEP-0059: Result Set Management
 31pub const RSM: &'static str = "http://jabber.org/protocol/rsm";
 32
 33/// XEP-0085: Chat State Notifications
 34pub const CHATSTATES: &'static str = "http://jabber.org/protocol/chatstates";
 35
 36/// XEP-0115: Entity Capabilities
 37pub const CAPS: &'static str = "http://jabber.org/protocol/caps";
 38
 39/// XEP-0166: Jingle
 40pub const JINGLE: &'static str = "urn:xmpp:jingle:1";
 41
 42/// XEP-0184: Message Delivery Receipts
 43pub const RECEIPTS: &'static str = "urn:xmpp:receipts";
 44
 45/// XEP-0199: XMPP Ping
 46pub const PING: &'static str = "urn:xmpp:ping";
 47
 48/// XEP-0203: Delayed Delivery
 49pub const DELAY: &'static str = "urn:xmpp:delay";
 50
 51/// XEP-0221: Data Forms Media Element
 52pub const MEDIA_ELEMENT: &'static str = "urn:xmpp:media-element";
 53
 54/// XEP-0224: Attention
 55pub const ATTENTION: &'static str = "urn:xmpp:attention:0";
 56
 57/// XEP-0234: Jingle File Transfer
 58pub const JINGLE_FT: &'static str = "urn:xmpp:jingle:apps:file-transfer:5";
 59/// XEP-0234: Jingle File Transfer
 60pub const JINGLE_FT_ERROR: &'static str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
 61
 62/// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method
 63pub const JINGLE_S5B: &'static str = "urn:xmpp:jingle:transports:s5b:1";
 64
 65/// XEP-0261: Jingle In-Band Bytestreams Transport Method
 66pub const JINGLE_IBB: &'static str = "urn:xmpp:jingle:transports:ibb:1";
 67
 68/// XEP-0297: Stanza Forwarding
 69pub const FORWARD: &'static str = "urn:xmpp:forward:0";
 70
 71/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
 72pub const HASHES: &'static str = "urn:xmpp:hashes:2";
 73/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
 74pub const HASH_ALGO_SHA_256: &'static str = "urn:xmpp:hash-function-text-names:sha-256";
 75/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
 76pub const HASH_ALGO_SHA_512: &'static str = "urn:xmpp:hash-function-text-names:sha-512";
 77/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
 78pub const HASH_ALGO_SHA3_256: &'static str = "urn:xmpp:hash-function-text-names:sha3-256";
 79/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
 80pub const HASH_ALGO_SHA3_512: &'static str = "urn:xmpp:hash-function-text-names:sha3-512";
 81/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
 82pub const HASH_ALGO_BLAKE2B_256: &'static str = "urn:xmpp:hash-function-text-names:id-blake2b256";
 83/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
 84pub const HASH_ALGO_BLAKE2B_512: &'static str = "urn:xmpp:hash-function-text-names:id-blake2b512";
 85
 86/// XEP-0308: Last Message Correction
 87pub const MESSAGE_CORRECT: &'static str = "urn:xmpp:message-correct:0";
 88
 89/// XEP-0313: Message Archive Management
 90pub const MAM: &'static str = "urn:xmpp:mam:2";
 91
 92/// XEP-0319: Last User Interaction in Presence
 93pub const IDLE: &'static str = "urn:xmpp:idle:1";
 94
 95/// XEP-0359: Unique and Stable Stanza IDs
 96pub const SID: &'static str = "urn:xmpp:sid:0";
 97
 98/// XEP-0380: Explicit Message Encryption
 99pub const EME: &'static str = "urn:xmpp:eme:0";
100
101/// XEP-0390: Entity Capabilities 2.0
102pub const ECAPS2: &'static str = "urn:xmpp:caps";
103/// XEP-0390: Entity Capabilities 2.0
104pub const ECAPS2_OPTIMIZE: &'static str = "urn:xmpp:caps:optimize";