UNPKG

@fnlb-project/stanza

Version:

Modern XMPP in the browser, with a JSON API

28 lines (27 loc) 1 kB
"use strict"; // ==================================================================== // XEP-0231: Bits of Binary // -------------------------------------------------------------------- // Source: https://xmpp.org/extensions/xep-0231.html // Version: Version 1.0 (2008-09-03) // ==================================================================== Object.defineProperty(exports, "__esModule", { value: true }); const jxt_1 = require("../jxt"); const Namespaces_1 = require("../Namespaces"); const Protocol = { aliases: [ 'iq.bits', { path: 'message.bits', multiple: true }, { path: 'presence.bits', multiple: true }, { path: 'iq.jingle.bits', multiple: true } ], element: 'data', fields: { cid: (0, jxt_1.attribute)('cid'), data: (0, jxt_1.textBuffer)('base64'), maxAge: (0, jxt_1.integerAttribute)('max-age'), mediaType: (0, jxt_1.attribute)('type') }, namespace: Namespaces_1.NS_BOB }; exports.default = Protocol;