UNPKG

@fnlb-project/stanza

Version:

Modern XMPP in the browser, with a JSON API

31 lines (30 loc) 1.19 kB
"use strict"; // ==================================================================== // XEP-0144: Roster Item Exchange // -------------------------------------------------------------------- // Source: https://xmpp.org/extensions/xep-0144.html // Version: 1.1.1 (2017-11-28) // ==================================================================== Object.defineProperty(exports, "__esModule", { value: true }); const jxt_1 = require("../jxt"); const Namespaces_1 = require("../Namespaces"); const Protocol = [ (0, jxt_1.extendMessage)({ rosterExchange: (0, jxt_1.splicePath)(Namespaces_1.NS_ROSTER_EXCHANGE, 'x', 'rosterExchange', true) }), (0, jxt_1.extendIQ)({ rosterExchange: (0, jxt_1.splicePath)(Namespaces_1.NS_ROSTER_EXCHANGE, 'x', 'rosterExchange', true) }), { element: 'item', fields: { action: (0, jxt_1.attribute)('action'), groups: (0, jxt_1.multipleChildText)(null, 'group'), jid: (0, jxt_1.JIDAttribute)('jid'), name: (0, jxt_1.attribute)('name') }, namespace: Namespaces_1.NS_ROSTER_EXCHANGE, path: 'rosterExchange' } ]; exports.default = Protocol;