1// Copyright (c) 2017 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
8pub const JABBER_CLIENT: &'static str = "jabber:client";
9/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
10pub const XMPP_STANZAS: &'static str = "urn:ietf:params:xml:ns:xmpp-stanzas";
11
12/// XEP-0004: Data Forms
13pub const DATA_FORMS: &'static str = "jabber:x:data";
14
15/// XEP-0030: Service Discovery
16pub const DISCO_INFO: &'static str = "http://jabber.org/protocol/disco#info";
17
18/// XEP-0047: In-Band Bytestreams
19pub const IBB: &'static str = "http://jabber.org/protocol/ibb";
20
21/// XEP-0059: Result Set Management
22pub const RSM: &'static str = "http://jabber.org/protocol/rsm";
23
24/// XEP-0085: Chat State Notifications
25pub const CHATSTATES: &'static str = "http://jabber.org/protocol/chatstates";
26
27/// XEP-0166: Jingle
28pub const JINGLE: &'static str = "urn:xmpp:jingle:1";
29
30/// XEP-0184: Message Delivery Receipts
31pub const RECEIPTS: &'static str = "urn:xmpp:receipts";
32
33/// XEP-0199: XMPP Ping
34pub const PING: &'static str = "urn:xmpp:ping";
35
36/// XEP-0203: Delayed Delivery
37pub const DELAY: &'static str = "urn:xmpp:delay";
38
39/// XEP-0221: Data Forms Media Element
40pub const MEDIA_ELEMENT: &'static str = "urn:xmpp:media-element";
41
42/// XEP-0224: Attention
43pub const ATTENTION: &'static str = "urn:xmpp:attention:0";
44
45/// XEP-0234: Jingle File Transfer
46pub const JINGLE_FT: &'static str = "urn:xmpp:jingle:apps:file-transfer:5";
47/// XEP-0234: Jingle File Transfer
48pub const JINGLE_FT_ERROR: &'static str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
49
50/// XEP-0261: Jingle In-Band Bytestreams Transport Method
51pub const JINGLE_IBB: &'static str = "urn:xmpp:jingle:transports:ibb:1";
52
53/// XEP-0297: Stanza Forwarding
54pub const FORWARD: &'static str = "urn:xmpp:forward:0";
55
56/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
57pub const HASHES: &'static str = "urn:xmpp:hashes:2";
58/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
59pub const HASH_ALGO_SHA_256: &'static str = "urn:xmpp:hash-function-text-names:sha-256";
60/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
61pub const HASH_ALGO_SHA_512: &'static str = "urn:xmpp:hash-function-text-names:sha-512";
62/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
63pub const HASH_ALGO_SHA3_256: &'static str = "urn:xmpp:hash-function-text-names:sha3-256";
64/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
65pub const HASH_ALGO_SHA3_512: &'static str = "urn:xmpp:hash-function-text-names:sha3-512";
66/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
67pub const HASH_ALGO_BLAKE2B_256: &'static str = "urn:xmpp:hash-function-text-names:id-blake2b256";
68/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
69pub const HASH_ALGO_BLAKE2B_512: &'static str = "urn:xmpp:hash-function-text-names:id-blake2b512";
70
71/// XEP-0308: Last Message Correction
72pub const MESSAGE_CORRECT: &'static str = "urn:xmpp:message-correct:0";
73
74/// XEP-0313: Message Archive Management
75pub const MAM: &'static str = "urn:xmpp:mam:2";
76
77/// XEP-0359: Unique and Stable Stanza IDs
78pub const SID: &'static str = "urn:xmpp:sid:0";
79
80/// XEP-0380: Explicit Message Encryption
81pub const EME: &'static str = "urn:xmpp:eme:0";
82
83/// XEP-0390: Entity Capabilities 2.0
84pub const ECAPS2: &'static str = "urn:xmpp:caps";
85/// XEP-0390: Entity Capabilities 2.0
86pub const ECAPS2_OPTIMIZE: &'static str = "urn:xmpp:caps:optimize";