2018-03-01 09:01:35 +00:00
|
|
|
|
// Copyright (c) 2017-2018 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
2019-06-26 00:06:38 +00:00
|
|
|
|
// Copyright (c) 2017 Maxime “pep” Buquet <pep@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";
|
2018-02-20 16:01:12 +00:00
|
|
|
|
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
|
2018-03-01 09:08:30 +00:00
|
|
|
|
pub const STREAM: &str = "http://etherx.jabber.org/streams";
|
|
|
|
|
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
|
2020-05-29 23:14:29 +00:00
|
|
|
|
pub const TLS: &str = "urn:ietf:params:xml:ns:xmpp-tls";
|
|
|
|
|
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
|
2018-02-20 16:01:12 +00:00
|
|
|
|
pub const SASL: &str = "urn:ietf:params:xml:ns:xmpp-sasl";
|
2018-02-20 16:43:19 +00:00
|
|
|
|
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
|
|
|
|
|
pub const BIND: &str = "urn:ietf:params:xml:ns:xmpp-bind";
|
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
|
|
|
|
|
2018-02-20 15:20:45 +00:00
|
|
|
|
/// RFC 7395: An Extensible Messaging and Presence Protocol (XMPP) Subprotocol for WebSocket
|
|
|
|
|
pub const WEBSOCKET: &str = "urn:ietf:params:xml:ns:xmpp-framing";
|
|
|
|
|
|
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
|
|
|
|
|
2018-05-29 13:04:16 +00:00
|
|
|
|
/// XEP-0048: Bookmarks
|
|
|
|
|
pub const BOOKMARKS: &str = "storage:bookmarks";
|
|
|
|
|
|
2023-12-16 14:14:28 +00:00
|
|
|
|
/// XEP-0049: Private XML Storage
|
|
|
|
|
pub const PRIVATE: &str = "jabber:iq:private";
|
|
|
|
|
|
2024-01-10 20:50:34 +00:00
|
|
|
|
/// XEP-0054: vcard-temp
|
|
|
|
|
pub const VCARD: &str = "vcard-temp";
|
|
|
|
|
|
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";
|
2019-12-01 02:05:45 +00:00
|
|
|
|
/// XEP-0060: Publish-Subscribe node configuration
|
|
|
|
|
pub const PUBSUB_CONFIGURE: &str = "http://jabber.org/protocol/pubsub#node_config";
|
2017-06-11 13:48:31 +00:00
|
|
|
|
|
2024-04-15 14:19:24 +00:00
|
|
|
|
/// XEP-0066: Out of Band Data
|
|
|
|
|
pub const OOB: &str = "jabber:x:oob";
|
|
|
|
|
|
2019-08-25 17:01:51 +00:00
|
|
|
|
/// XEP-0071: XHTML-IM
|
|
|
|
|
pub const XHTML_IM: &str = "http://jabber.org/protocol/xhtml-im";
|
|
|
|
|
/// XEP-0071: XHTML-IM
|
|
|
|
|
pub const XHTML: &str = "http://www.w3.org/1999/xhtml";
|
|
|
|
|
|
2017-06-25 20:03:48 +00:00
|
|
|
|
/// XEP-0077: In-Band Registration
|
|
|
|
|
pub const REGISTER: &str = "jabber:iq:register";
|
|
|
|
|
|
2019-01-25 01:57:37 +00:00
|
|
|
|
/// XEP-0084: User Avatar
|
|
|
|
|
pub const AVATAR_DATA: &str = "urn:xmpp:avatar:data";
|
|
|
|
|
/// XEP-0084: User Avatar
|
|
|
|
|
pub const AVATAR_METADATA: &str = "urn:xmpp:avatar:metadata";
|
|
|
|
|
|
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-07-29 10:45:45 +00:00
|
|
|
|
/// XEP-0092: Software Version
|
|
|
|
|
pub const VERSION: &str = "jabber:iq:version";
|
|
|
|
|
|
2017-11-24 05:20:36 +00:00
|
|
|
|
/// XEP-0107: User Mood
|
|
|
|
|
pub const MOOD: &str = "http://jabber.org/protocol/mood";
|
|
|
|
|
|
2017-07-29 05:49:02 +00:00
|
|
|
|
/// XEP-0114: Jabber Component Protocol
|
|
|
|
|
pub const COMPONENT_ACCEPT: &str = "jabber:component:accept";
|
|
|
|
|
|
2018-03-01 09:57:01 +00:00
|
|
|
|
/// XEP-0114: Jabber Component Protocol
|
|
|
|
|
pub const COMPONENT: &str = "jabber:component:accept";
|
|
|
|
|
|
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
|
|
|
|
|
2019-09-05 13:37:34 +00:00
|
|
|
|
/// XEP-0118: User Tune
|
|
|
|
|
pub const TUNE: &str = "http://jabber.org/protocol/tune";
|
|
|
|
|
|
2024-01-10 22:22:16 +00:00
|
|
|
|
/// XEP-0153: vCard-Based Avatars
|
|
|
|
|
pub const VCARD_UPDATE: &str = "vcard-temp:x:update";
|
|
|
|
|
|
2019-01-26 20:05:48 +00:00
|
|
|
|
/// XEP-0157: Contact Addresses for XMPP Services
|
|
|
|
|
pub const SERVER_INFO: &str = "http://jabber.org/network/serverinfo";
|
|
|
|
|
|
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
|
|
|
|
|
2019-02-27 17:13:06 +00:00
|
|
|
|
/// XEP-0167: Jingle RTP Sessions
|
|
|
|
|
pub const JINGLE_RTP: &str = "urn:xmpp:jingle:apps:rtp:1";
|
|
|
|
|
/// XEP-0167: Jingle RTP Sessions
|
|
|
|
|
pub const JINGLE_RTP_AUDIO: &str = "urn:xmpp:jingle:apps:rtp:audio";
|
|
|
|
|
/// XEP-0167: Jingle RTP Sessions
|
|
|
|
|
pub const JINGLE_RTP_VIDEO: &str = "urn:xmpp:jingle:apps:rtp:video";
|
|
|
|
|
|
2018-05-14 15:43:03 +00:00
|
|
|
|
/// XEP-0172: User Nickname
|
|
|
|
|
pub const NICK: &str = "http://jabber.org/protocol/nick";
|
|
|
|
|
|
2019-02-27 17:13:18 +00:00
|
|
|
|
/// XEP-0176: Jingle ICE-UDP Transport Method
|
|
|
|
|
pub const JINGLE_ICE_UDP: &str = "urn:xmpp:jingle:transports:ice-udp:1";
|
|
|
|
|
|
2020-12-09 23:23:03 +00:00
|
|
|
|
/// XEP-0177: Jingle Raw UDP Transport Method
|
|
|
|
|
pub const JINGLE_RAW_UDP: &str = "urn:xmpp:jingle:transports:raw-udp: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
|
|
|
|
|
2017-10-31 15:48:11 +00:00
|
|
|
|
/// XEP-0191: Blocking Command
|
|
|
|
|
pub const BLOCKING: &str = "urn:xmpp:blocking";
|
|
|
|
|
/// XEP-0191: Blocking Command
|
|
|
|
|
pub const BLOCKING_ERRORS: &str = "urn:xmpp:blocking:errors";
|
|
|
|
|
|
2018-05-18 17:04:02 +00:00
|
|
|
|
/// XEP-0198: Stream Management
|
|
|
|
|
pub const SM: &str = "urn:xmpp:sm:3";
|
|
|
|
|
|
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
|
|
|
|
|
2019-04-22 09:58:13 +00:00
|
|
|
|
/// XEP-0202: Entity Time
|
|
|
|
|
pub const TIME: &str = "urn:xmpp:time";
|
|
|
|
|
|
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
|
|
|
|
|
2021-10-11 10:36:53 +00:00
|
|
|
|
/// XEP-0215: External Service Discovery
|
|
|
|
|
pub const EXT_DISCO: &str = "urn:xmpp:extdisco:2";
|
|
|
|
|
|
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
|
|
|
|
|
2019-07-31 11:51:18 +00:00
|
|
|
|
/// XEP-0231: Bits of Binary
|
|
|
|
|
pub const BOB: &str = "urn:xmpp:bob";
|
|
|
|
|
|
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
|
|
|
|
|
2019-09-08 13:53:55 +00:00
|
|
|
|
/// XEP-0257: Client Certificate Management for SASL EXTERNAL
|
|
|
|
|
pub const SASL_CERT: &str = "urn:xmpp:saslcert:1";
|
|
|
|
|
|
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
|
|
|
|
|
2024-02-03 22:19:40 +00:00
|
|
|
|
/// XEP-0264: Jingle Content Thumbnails
|
|
|
|
|
pub const JINGLE_THUMBNAILS: &str = "urn:xmpp:thumbs:1";
|
|
|
|
|
|
2019-04-19 22:03:50 +00:00
|
|
|
|
/// XEP-0277: Microblogging over XMPP
|
|
|
|
|
pub const MICROBLOG: &str = "urn:xmpp:microblog:0";
|
|
|
|
|
|
2019-07-17 19:55:16 +00:00
|
|
|
|
/// XEP-0280: Message Carbons
|
|
|
|
|
pub const CARBONS: &str = "urn:xmpp:carbons:2";
|
|
|
|
|
|
2019-10-12 17:10:50 +00:00
|
|
|
|
/// XEP-0293: Jingle RTP Feedback Negotiation
|
|
|
|
|
pub const JINGLE_RTCP_FB: &str = "urn:xmpp:jingle:apps:rtp:rtcp-fb:0";
|
|
|
|
|
|
2024-05-13 20:54:26 +00:00
|
|
|
|
/// XEP-0294: Jingle RTP Header Extensions Negotiation
|
2020-11-27 19:50:30 +00:00
|
|
|
|
pub const JINGLE_RTP_HDREXT: &str = "urn:xmpp:jingle:apps:rtp:rtp-hdrext:0";
|
|
|
|
|
|
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
|
|
|
|
|
2022-03-22 15:01:47 +00:00
|
|
|
|
/// XEP-0301: In-Band Real Time Text
|
|
|
|
|
pub const RTT: &str = "urn:xmpp:rtt:0";
|
|
|
|
|
|
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
|
|
|
|
|
2019-02-28 12:32:52 +00:00
|
|
|
|
/// XEP-0320: Use of DTLS-SRTP in Jingle Sessions
|
|
|
|
|
pub const JINGLE_DTLS: &str = "urn:xmpp:jingle:apps:dtls:0";
|
2019-09-07 14:32:03 +00:00
|
|
|
|
|
2019-09-08 14:09:49 +00:00
|
|
|
|
/// XEP-0328: JID Prep
|
|
|
|
|
pub const JID_PREP: &str = "urn:xmpp:jidprep:0";
|
|
|
|
|
|
2020-11-27 19:54:26 +00:00
|
|
|
|
/// XEP-0338: Jingle Grouping Framework
|
|
|
|
|
pub const JINGLE_GROUPING: &str = "urn:xmpp:jingle:apps:grouping:0";
|
|
|
|
|
|
2019-10-12 16:17:04 +00:00
|
|
|
|
/// XEP-0339: Source-Specific Media Attributes in Jingle
|
|
|
|
|
pub const JINGLE_SSMA: &str = "urn:xmpp:jingle:apps:rtp:ssma:0";
|
|
|
|
|
|
2019-09-07 14:32:03 +00:00
|
|
|
|
/// XEP-0352: Client State Indication
|
|
|
|
|
pub const CSI: &str = "urn:xmpp:csi:0";
|
2019-02-28 12:32:52 +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
|
|
|
|
|
2021-12-25 21:55:36 +00:00
|
|
|
|
/// XEP-0363: HTTP File Upload
|
|
|
|
|
pub const HTTP_UPLOAD: &str = "urn:xmpp:http:upload:0";
|
|
|
|
|
|
2020-03-26 18:13:45 +00:00
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_CORE: &str = "urn:xmpp:mix:core:1";
|
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_CORE_SEARCHABLE: &str = "urn:xmpp:mix:core:1#searchable";
|
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_CORE_CREATE_CHANNEL: &str = "urn:xmpp:mix:core:1#create-channel";
|
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_NODES_PRESENCE: &str = "urn:xmpp:mix:nodes:presence";
|
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_NODES_PARTICIPANTS: &str = "urn:xmpp:mix:nodes:participants";
|
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_NODES_MESSAGES: &str = "urn:xmpp:mix:nodes:messages";
|
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_NODES_CONFIG: &str = "urn:xmpp:mix:nodes:config";
|
|
|
|
|
/// XEP-0369: Mediated Information eXchange (MIX)
|
|
|
|
|
pub const MIX_NODES_INFO: &str = "urn:xmpp:mix:nodes:info";
|
|
|
|
|
|
2019-03-30 17:47:07 +00:00
|
|
|
|
/// XEP-0373: OpenPGP for XMPP
|
|
|
|
|
pub const OX: &str = "urn:xmpp:openpgp:0";
|
|
|
|
|
/// XEP-0373: OpenPGP for XMPP
|
|
|
|
|
pub const OX_PUBKEYS: &str = "urn:xmpp:openpgp:0:public-keys";
|
|
|
|
|
|
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
|
|
|
|
|
2022-03-30 16:40:16 +00:00
|
|
|
|
/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
|
|
|
|
|
pub const LEGACY_OMEMO: &str = "eu.siacs.conversations.axolotl";
|
|
|
|
|
/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
|
|
|
|
|
pub const LEGACY_OMEMO_DEVICELIST: &str = "eu.siacs.conversations.axolotl.devicelist";
|
|
|
|
|
/// XEP-0384: OMEMO Encryption (experimental version 0.3.0)
|
|
|
|
|
pub const LEGACY_OMEMO_BUNDLES: &str = "eu.siacs.conversations.axolotl.bundles";
|
|
|
|
|
|
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";
|
2017-07-29 05:49:02 +00:00
|
|
|
|
|
2022-01-03 11:34:24 +00:00
|
|
|
|
/// XEP-0402: PEP Native Bookmarks
|
2020-09-29 16:12:18 +00:00
|
|
|
|
pub const BOOKMARKS2: &str = "urn:xmpp:bookmarks:1";
|
2022-01-03 11:34:24 +00:00
|
|
|
|
/// XEP-0402: PEP Native Bookmarks
|
|
|
|
|
pub const BOOKMARKS2_COMPAT: &str = "urn:xmpp:bookmarks:1#compat";
|
|
|
|
|
/// XEP-0402: PEP Native Bookmarks
|
|
|
|
|
pub const BOOKMARKS2_COMPAT_PEP: &str = "urn:xmpp:bookmarks:1#compat-pep";
|
2019-09-28 23:47:21 +00:00
|
|
|
|
|
2019-07-17 15:30:52 +00:00
|
|
|
|
/// XEP-0421: Anonymous unique occupant identifiers for MUCs
|
|
|
|
|
pub const OID: &str = "urn:xmpp:occupant-id:0";
|
|
|
|
|
|
2022-12-30 14:16:33 +00:00
|
|
|
|
/// XEP-0444: Message Reactions
|
|
|
|
|
pub const REACTIONS: &str = "urn:xmpp:reactions:0";
|
|
|
|
|
|
2024-06-19 17:15:34 +00:00
|
|
|
|
/// XEP-0122: Data Forms Validation
|
|
|
|
|
pub const XDATA_VALIDATE: &str = "http://jabber.org/protocol/xdata-validate";
|
|
|
|
|
|
2018-08-08 16:48:05 +00:00
|
|
|
|
/// Alias for the main namespace of the stream, that is "jabber:client" when
|
|
|
|
|
/// the component feature isn’t enabled.
|
2017-07-29 05:49:02 +00:00
|
|
|
|
#[cfg(not(feature = "component"))]
|
|
|
|
|
pub const DEFAULT_NS: &str = JABBER_CLIENT;
|
2018-08-08 16:48:05 +00:00
|
|
|
|
|
|
|
|
|
/// Alias for the main namespace of the stream, that is
|
|
|
|
|
/// "jabber:component:accept" when the component feature is enabled.
|
2017-07-29 05:49:02 +00:00
|
|
|
|
#[cfg(feature = "component")]
|
|
|
|
|
pub const DEFAULT_NS: &str = COMPONENT_ACCEPT;
|