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