2017-04-29 21:14:34 +00:00
|
|
|
// Copyright (c) 2017 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
2017-05-30 21:02:56 +00:00
|
|
|
// Copyright (c) 2017 Maxime “pep” Buquet <pep+code@bouah.net>
|
2017-04-29 21:14:34 +00:00
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-04-21 00:06:30 +00:00
|
|
|
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const JABBER_CLIENT: &str = "jabber:client";
|
2017-05-01 00:24:45 +00:00
|
|
|
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const XMPP_STANZAS: &str = "urn:ietf:params:xml:ns:xmpp-stanzas";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
2017-05-28 15:30:43 +00:00
|
|
|
/// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const ROSTER: &str = "jabber:iq:roster";
|
2017-05-28 15:30:43 +00:00
|
|
|
|
2017-04-21 00:06:30 +00:00
|
|
|
/// XEP-0004: Data Forms
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const DATA_FORMS: &str = "jabber:x:data";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
|
|
|
/// XEP-0030: Service Discovery
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const DISCO_INFO: &str = "http://jabber.org/protocol/disco#info";
|
2017-07-21 16:33:58 +00:00
|
|
|
/// XEP-0030: Service Discovery
|
|
|
|
pub const DISCO_ITEMS: &str = "http://jabber.org/protocol/disco#items";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
2017-05-30 21:02:56 +00:00
|
|
|
/// XEP-0045: Multi-User Chat
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const MUC: &str = "http://jabber.org/protocol/muc";
|
2017-05-31 01:54:47 +00:00
|
|
|
/// XEP-0045: Multi-User Chat
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const MUC_USER: &str = "http://jabber.org/protocol/muc#user";
|
2017-05-30 21:02:56 +00:00
|
|
|
|
2017-04-21 00:06:30 +00:00
|
|
|
/// XEP-0047: In-Band Bytestreams
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const IBB: &str = "http://jabber.org/protocol/ibb";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
2017-04-29 03:37:18 +00:00
|
|
|
/// XEP-0059: Result Set Management
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const RSM: &str = "http://jabber.org/protocol/rsm";
|
2017-04-29 03:37:18 +00:00
|
|
|
|
2017-06-11 13:48:31 +00:00
|
|
|
/// XEP-0060: Publish-Subscribe
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const PUBSUB: &str = "http://jabber.org/protocol/pubsub";
|
2017-06-11 13:48:31 +00:00
|
|
|
/// XEP-0060: Publish-Subscribe
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const PUBSUB_ERRORS: &str = "http://jabber.org/protocol/pubsub#errors";
|
2017-06-11 13:48:31 +00:00
|
|
|
/// XEP-0060: Publish-Subscribe
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const PUBSUB_EVENT: &str = "http://jabber.org/protocol/pubsub#event";
|
2017-06-11 13:48:31 +00:00
|
|
|
/// XEP-0060: Publish-Subscribe
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const PUBSUB_OWNER: &str = "http://jabber.org/protocol/pubsub#owner";
|
2017-06-11 13:48:31 +00:00
|
|
|
|
2017-06-25 20:03:48 +00:00
|
|
|
/// XEP-0077: In-Band Registration
|
|
|
|
pub const REGISTER: &str = "jabber:iq:register";
|
|
|
|
|
2017-04-21 00:06:30 +00:00
|
|
|
/// XEP-0085: Chat State Notifications
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const CHATSTATES: &str = "http://jabber.org/protocol/chatstates";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
2017-05-25 01:34:03 +00:00
|
|
|
/// XEP-0115: Entity Capabilities
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const CAPS: &str = "http://jabber.org/protocol/caps";
|
2017-05-25 01:34:03 +00:00
|
|
|
|
2017-04-21 00:06:30 +00:00
|
|
|
/// XEP-0166: Jingle
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const JINGLE: &str = "urn:xmpp:jingle:1";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
|
|
|
/// XEP-0184: Message Delivery Receipts
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const RECEIPTS: &str = "urn:xmpp:receipts";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
|
|
|
/// XEP-0199: XMPP Ping
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const PING: &str = "urn:xmpp:ping";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
2017-04-21 02:57:34 +00:00
|
|
|
/// XEP-0203: Delayed Delivery
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const DELAY: &str = "urn:xmpp:delay";
|
2017-04-21 02:57:34 +00:00
|
|
|
|
2017-04-21 00:06:30 +00:00
|
|
|
/// XEP-0221: Data Forms Media Element
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const MEDIA_ELEMENT: &str = "urn:xmpp:media-element";
|
2017-04-21 00:06:30 +00:00
|
|
|
|
2017-04-21 00:53:47 +00:00
|
|
|
/// XEP-0224: Attention
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const ATTENTION: &str = "urn:xmpp:attention:0";
|
2017-04-21 00:53:47 +00:00
|
|
|
|
2017-04-22 16:39:21 +00:00
|
|
|
/// XEP-0234: Jingle File Transfer
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const JINGLE_FT: &str = "urn:xmpp:jingle:apps:file-transfer:5";
|
2017-04-22 16:39:21 +00:00
|
|
|
/// XEP-0234: Jingle File Transfer
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const JINGLE_FT_ERROR: &str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
|
2017-04-22 16:39:21 +00:00
|
|
|
|
2017-05-06 11:49:30 +00:00
|
|
|
/// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const JINGLE_S5B: &str = "urn:xmpp:jingle:transports:s5b:1";
|
2017-05-06 11:49:30 +00:00
|
|
|
|
2017-04-22 18:15:48 +00:00
|
|
|
/// XEP-0261: Jingle In-Band Bytestreams Transport Method
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const JINGLE_IBB: &str = "urn:xmpp:jingle:transports:ibb:1";
|
2017-04-22 18:15:48 +00:00
|
|
|
|
2017-04-29 02:50:49 +00:00
|
|
|
/// XEP-0297: Stanza Forwarding
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const FORWARD: &str = "urn:xmpp:forward:0";
|
2017-04-29 02:50:49 +00:00
|
|
|
|
2017-04-21 03:21:16 +00:00
|
|
|
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const HASHES: &str = "urn:xmpp:hashes:2";
|
2017-04-23 16:30:07 +00:00
|
|
|
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const HASH_ALGO_SHA_256: &str = "urn:xmpp:hash-function-text-names:sha-256";
|
2017-04-23 16:30:07 +00:00
|
|
|
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const HASH_ALGO_SHA_512: &str = "urn:xmpp:hash-function-text-names:sha-512";
|
2017-04-23 16:30:07 +00:00
|
|
|
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const HASH_ALGO_SHA3_256: &str = "urn:xmpp:hash-function-text-names:sha3-256";
|
2017-04-23 16:30:07 +00:00
|
|
|
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const HASH_ALGO_SHA3_512: &str = "urn:xmpp:hash-function-text-names:sha3-512";
|
2017-04-23 16:30:07 +00:00
|
|
|
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const HASH_ALGO_BLAKE2B_256: &str = "urn:xmpp:hash-function-text-names:id-blake2b256";
|
2017-04-23 16:30:07 +00:00
|
|
|
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const HASH_ALGO_BLAKE2B_512: &str = "urn:xmpp:hash-function-text-names:id-blake2b512";
|
2017-04-21 03:21:16 +00:00
|
|
|
|
2017-04-21 01:07:44 +00:00
|
|
|
/// XEP-0308: Last Message Correction
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const MESSAGE_CORRECT: &str = "urn:xmpp:message-correct:0";
|
2017-04-21 01:07:44 +00:00
|
|
|
|
2017-04-29 05:07:00 +00:00
|
|
|
/// XEP-0313: Message Archive Management
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const MAM: &str = "urn:xmpp:mam:2";
|
2017-04-29 05:07:00 +00:00
|
|
|
|
2017-05-21 19:22:48 +00:00
|
|
|
/// XEP-0319: Last User Interaction in Presence
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const IDLE: &str = "urn:xmpp:idle:1";
|
2017-05-21 19:22:48 +00:00
|
|
|
|
2017-07-15 10:38:44 +00:00
|
|
|
/// XEP-0353: Jingle Message Initiation
|
|
|
|
pub const JINGLE_MESSAGE: &str = "urn:xmpp:jingle-message:0";
|
|
|
|
|
2017-04-29 02:23:50 +00:00
|
|
|
/// XEP-0359: Unique and Stable Stanza IDs
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const SID: &str = "urn:xmpp:sid:0";
|
2017-04-29 02:23:50 +00:00
|
|
|
|
2017-04-21 02:45:05 +00:00
|
|
|
/// XEP-0380: Explicit Message Encryption
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const EME: &str = "urn:xmpp:eme:0";
|
2017-04-21 02:45:05 +00:00
|
|
|
|
2017-04-21 00:06:30 +00:00
|
|
|
/// XEP-0390: Entity Capabilities 2.0
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const ECAPS2: &str = "urn:xmpp:caps";
|
2017-04-21 00:06:30 +00:00
|
|
|
/// XEP-0390: Entity Capabilities 2.0
|
2017-06-12 21:49:27 +00:00
|
|
|
pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize";
|