UNPKG

@fnlb-project/stanza

Version:

Modern XMPP in the browser, with a JSON API

37 lines (36 loc) 1.36 kB
"use strict"; // ==================================================================== // XEP-0048: Bookmarks // -------------------------------------------------------------------- // Source: https://xmpp.org/extensions/xep-0048.html // Version: 1.1 (2007-11-07) // ==================================================================== Object.defineProperty(exports, "__esModule", { value: true }); const jxt_1 = require("../jxt"); const Namespaces_1 = require("../Namespaces"); const Protocol = [ { aliases: [ { path: 'bookmarkStorage', impliedType: true }, { path: 'iq.privateStorage.bookmarks', impliedType: true }, ...(0, jxt_1.pubsubItemContentAliases)() ], element: 'storage', namespace: Namespaces_1.NS_BOOKMARKS, type: Namespaces_1.NS_BOOKMARKS, typeField: 'itemType' }, { aliases: [{ path: 'bookmarkStorage.rooms', multiple: true }], element: 'conference', fields: { autoJoin: (0, jxt_1.booleanAttribute)('autojoin'), jid: (0, jxt_1.JIDAttribute)('jid'), name: (0, jxt_1.attribute)('name'), nick: (0, jxt_1.childText)(null, 'nick'), password: (0, jxt_1.childText)(null, 'password') }, namespace: Namespaces_1.NS_BOOKMARKS } ]; exports.default = Protocol;