stanza 12.21.1 → 12.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Constants.js +1 -1
- package/Namespaces.d.ts +1 -0
- package/Namespaces.js +3 -1
- package/package.json +1 -1
- package/protocol/index.d.ts +1 -0
- package/protocol/index.js +3 -0
- package/protocol/xep0421.d.ts +11 -0
- package/protocol/xep0421.js +19 -0
package/Constants.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.JINGLE_INFO_RECEIVED_5 = exports.JINGLE_INFO_CHECKSUM_5 = exports.JINGLE
|
|
|
4
4
|
exports.sendersToDirection = sendersToDirection;
|
|
5
5
|
exports.directionToSenders = directionToSenders;
|
|
6
6
|
const Namespaces_1 = require("./Namespaces");
|
|
7
|
-
exports.VERSION = '12.
|
|
7
|
+
exports.VERSION = '12.22.0';
|
|
8
8
|
// ====================================================================
|
|
9
9
|
// Frequently Used Values
|
|
10
10
|
// ====================================================================
|
package/Namespaces.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export declare const NS_OMEMO_AXOLOTL = "eu.siacs.conversations.axolotl";
|
|
|
151
151
|
export declare const NS_OMEMO_AXOLOTL_DEVICELIST = "eu.siacs.conversations.axolotl.devicelist";
|
|
152
152
|
export declare const NS_OMEMO_AXOLOTL_BUNDLES = "eu.siacs.conversations.axolotl.bundles";
|
|
153
153
|
export declare const NS_OMEMO_AXOLOTL_BUNDLE: (deviceId: string) => string;
|
|
154
|
+
export declare const NS_OCCUPANT_0 = "urn:xmpp:occupant-id:0";
|
|
154
155
|
export declare const NS_JSON_MESSAGE_0 = "urn:xmpp:json-msg:0";
|
|
155
156
|
export declare const NS_XRD = "http://docs.oasis-open.org/ns/xri/xrd-1.0";
|
|
156
157
|
export declare const NS_JINGLE_RTP_MSID_0 = "urn:xmpp:jingle:apps:rtp:msid:0";
|
package/Namespaces.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.NS_AVATAR_METADATA = exports.NS_AVATAR_DATA = exports.NS_ROSTER_DELIMITER = exports.NS_GEOLOC = exports.NS_AMP = exports.NS_INBAND_REGISTRATION = exports.NS_REGISTER = exports.NS_XHTML_IM = exports.NS_XHTML = exports.NS_HTTP_AUTH = exports.NS_OOB_TRANSFER = exports.NS_OOB = exports.NS_SOCKS5 = exports.NS_PUBSUB_OWNER = exports.NS_PUBSUB_EVENT = exports.NS_PUBSUB_ERRORS = exports.NS_PUBSUB = exports.NS_RSM = exports.NS_SEARCH = exports.NS_VCARD_TEMP = exports.NS_ADHOC_COMMANDS = exports.NS_PRIVATE = exports.NS_BOOKMARKS = exports.NS_IBB = exports.NS_MUC_USER = exports.NS_MUC_OWNER = exports.NS_MUC_ADMIN = exports.NS_MUC = exports.NS_ADDRESS = exports.NS_DISCO_ITEMS = exports.NS_DISCO_INFO = exports.NS_LEGACY_CHAT_EVENTS = exports.NS_PRIVACY = exports.NS_LAST_ACTIVITY = exports.NS_RPC = exports.NS_DATAFORM = exports.NS_FRAMING = exports.NS_SUBSCRIPTION_PREAPPROVAL = exports.NS_ROSTER_VERSIONING = exports.NS_ROSTER = exports.NS_STARTTLS = exports.NS_STREAMS = exports.NS_STREAM = exports.NS_STANZAS = exports.NS_SESSION = exports.NS_SERVER = exports.NS_SASL = exports.NS_CLIENT = exports.NS_BIND = exports.NS_ATOM = void 0;
|
|
7
7
|
exports.NS_JINGLE_FILE_TRANSFER_4 = exports.NS_JINGLE_FILE_TRANSFER_3 = exports.NS_SOFTWARE_INFO = exports.NS_BOB = exports.NS_ATTENTION_0 = exports.NS_DATAFORM_MEDIA = exports.NS_DISCO_EXTERNAL_2 = exports.NS_DISCO_EXTERNAL_1 = exports.NS_BOSH_XMPP = exports.NS_DELAY = exports.NS_TIME = exports.NS_PING = exports.NS_SMACKS_3 = exports.NS_BLOCKING_ERRORS = exports.NS_BLOCKING = exports.NS_INVISIBLE_0 = exports.NS_RECEIPTS = exports.NS_JINGLE_RAW_UDP_1 = exports.NS_JINGLE_ICE_UDP_1 = exports.NS_NICK = exports.NS_LANG_TRANS_ITEMS = exports.NS_LANG_TRANS = exports.NS_JINGLE_RTP_VIDEO = exports.NS_JINGLE_RTP_AUDIO = exports.NS_JINGLE_RTP_INFO_1 = exports.NS_JINGLE_RTP_ERRORS_1 = exports.NS_JINGLE_RTP_1 = exports.NS_JINGLE_ERRORS_1 = exports.NS_JINGLE_1 = exports.NS_PEP_NOTIFY = exports.NS_CAPTCHA = exports.NS_ALT_CONNECTIONS_XBOSH = exports.NS_ALT_CONNECTIONS_WEBSOCKET = exports.NS_VCARD_TEMP_UPDATE = exports.NS_REACH_0 = exports.NS_ROSTER_NOTES = exports.NS_ROSTER_EXCHANGE = exports.NS_DATAFORM_LAYOUT = exports.NS_COMPRESSION = exports.NS_COMPRESSION_FEATURE = exports.NS_SHIM = exports.NS_BOSH = exports.NS_DATAFORM_VALIDATION = exports.NS_TUNE = exports.NS_DISCO_LEGACY_CAPS = exports.NS_COMPONENT = exports.NS_ACTIVITY = exports.NS_MOOD = exports.NS_VERSION = exports.NS_CHAT_STATES = void 0;
|
|
8
8
|
exports.NS_OMEMO_AXOLOTL = exports.NS_SPOILER_0 = exports.NS_EME_0 = exports.NS_REFERENCE_0 = exports.NS_JINGLE_ICE_0 = exports.NS_JINGLE_HTTP_UPLOAD_0 = exports.NS_JINGLE_HTTP_0 = exports.NS_HTTP_UPLOAD_0 = exports.NS_SID_0 = exports.NS_JINGLE_PUB_1 = exports.NS_PUSH_0 = exports.NS_DELEGATION_1 = exports.NS_JINGLE_MSG_INITIATE_0 = exports.NS_CSI_0 = exports.NS_JINGLE_DTLS_SCTP_1 = exports.NS_JINGLE_RTP_SSMA_0 = exports.NS_JINGLE_GROUPING_0 = exports.NS_JSON_0 = exports.NS_HINTS = exports.NS_CHAT_MARKERS_0 = exports.NS_JINGLE_DTLS_0 = exports.NS_IDLE_1 = exports.NS_HATS_0 = exports.NS_MAM_2 = exports.NS_MAM_1 = exports.NS_MAM_0 = exports.NS_MAM_TMP = exports.NS_PSA = exports.NS_CORRECTION_0 = exports.NS_MUC_UNIQUE = exports.NS_RTT_0 = exports.NS_HASH_NAME = exports.NS_HASHES_2 = exports.NS_HASHES_1 = exports.NS_FORWARD_0 = exports.NS_JINGLE_RTP_HDREXT_0 = exports.NS_JINGLE_RTP_RTCP_FB_0 = exports.NS_CARBONS_2 = exports.NS_DECLOAKING_0 = exports.NS_THUMBS_1 = exports.NS_THUMBS_0 = exports.NS_JINGLE_RTP_ZRTP_1 = exports.NS_JINGLE_IBB_1 = exports.NS_JINGLE_SOCKS5_1 = exports.NS_SEC_LABEL_ESS_0 = exports.NS_SEC_LABEL_CATALOG_2 = exports.NS_SEC_LABEL_0 = exports.NS_MUC_DIRECT_INVITE = exports.NS_JINGLE_XML_0 = exports.NS_JINGLE_FILE_TRANSFER_5 = void 0;
|
|
9
|
-
exports.NS_JINGLE_RTP_MSID_0 = exports.NS_XRD = exports.NS_JSON_MESSAGE_0 = exports.NS_OMEMO_AXOLOTL_BUNDLE = exports.NS_OMEMO_AXOLOTL_BUNDLES = exports.NS_OMEMO_AXOLOTL_DEVICELIST = void 0;
|
|
9
|
+
exports.NS_JINGLE_RTP_MSID_0 = exports.NS_XRD = exports.NS_JSON_MESSAGE_0 = exports.NS_OCCUPANT_0 = exports.NS_OMEMO_AXOLOTL_BUNDLE = exports.NS_OMEMO_AXOLOTL_BUNDLES = exports.NS_OMEMO_AXOLOTL_DEVICELIST = void 0;
|
|
10
10
|
// RFC 4287
|
|
11
11
|
exports.NS_ATOM = 'http://www.w3.org/2005/Atom';
|
|
12
12
|
// RFC 6120
|
|
@@ -275,6 +275,8 @@ exports.NS_OMEMO_AXOLOTL_BUNDLES = 'eu.siacs.conversations.axolotl.bundles';
|
|
|
275
275
|
// istanbul ignore next
|
|
276
276
|
const NS_OMEMO_AXOLOTL_BUNDLE = (deviceId) => `${exports.NS_OMEMO_AXOLOTL_BUNDLES}:${deviceId}`;
|
|
277
277
|
exports.NS_OMEMO_AXOLOTL_BUNDLE = NS_OMEMO_AXOLOTL_BUNDLE;
|
|
278
|
+
// XEP-0421
|
|
279
|
+
exports.NS_OCCUPANT_0 = 'urn:xmpp:occupant-id:0';
|
|
278
280
|
// XEP-0432
|
|
279
281
|
exports.NS_JSON_MESSAGE_0 = 'urn:xmpp:json-msg:0';
|
|
280
282
|
// ================================================================
|
package/package.json
CHANGED
package/protocol/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export * from './xep0359';
|
|
|
99
99
|
export * from './xep0363';
|
|
100
100
|
export * from './xep0380';
|
|
101
101
|
export * from './xep0384';
|
|
102
|
+
export * from './xep0421';
|
|
102
103
|
export * from './xrd';
|
|
103
104
|
declare const Protocol: Array<DefinitionOptions | DefinitionOptions[]>;
|
|
104
105
|
export default Protocol;
|
package/protocol/index.js
CHANGED
|
@@ -98,6 +98,7 @@ __exportStar(require("./xep0359"), exports);
|
|
|
98
98
|
__exportStar(require("./xep0363"), exports);
|
|
99
99
|
__exportStar(require("./xep0380"), exports);
|
|
100
100
|
__exportStar(require("./xep0384"), exports);
|
|
101
|
+
__exportStar(require("./xep0421"), exports);
|
|
101
102
|
__exportStar(require("./xrd"), exports);
|
|
102
103
|
const rfc3921_1 = __importDefault(require("./rfc3921"));
|
|
103
104
|
const rfc4287_1 = __importDefault(require("./rfc4287"));
|
|
@@ -179,6 +180,7 @@ const xep0359_1 = __importDefault(require("./xep0359"));
|
|
|
179
180
|
const xep0363_1 = __importDefault(require("./xep0363"));
|
|
180
181
|
const xep0380_1 = __importDefault(require("./xep0380"));
|
|
181
182
|
const xep0384_1 = __importDefault(require("./xep0384"));
|
|
183
|
+
const xep0421_1 = __importDefault(require("./xep0421"));
|
|
182
184
|
const xrd_1 = __importDefault(require("./xrd"));
|
|
183
185
|
const Protocol = [
|
|
184
186
|
rfc3921_1.default,
|
|
@@ -261,6 +263,7 @@ const Protocol = [
|
|
|
261
263
|
xep0363_1.default,
|
|
262
264
|
xep0380_1.default,
|
|
263
265
|
xep0384_1.default,
|
|
266
|
+
xep0421_1.default,
|
|
264
267
|
xrd_1.default
|
|
265
268
|
];
|
|
266
269
|
exports.default = Protocol;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ====================================================================
|
|
3
|
+
// XEP-0421: Occupant identifiers for semi-anonymous MUCs
|
|
4
|
+
// --------------------------------------------------------------------
|
|
5
|
+
// Source: https://xmpp.org/extensions/xep-0421.html
|
|
6
|
+
// Version: 1.0.1 (2025-04-09)
|
|
7
|
+
// ====================================================================
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const jxt_1 = require("../jxt");
|
|
10
|
+
const Namespaces_1 = require("../Namespaces");
|
|
11
|
+
const Protocol = [
|
|
12
|
+
(0, jxt_1.extendPresence)({
|
|
13
|
+
occupantId: (0, jxt_1.childAttribute)(Namespaces_1.NS_OCCUPANT_0, 'occupant-id', 'id')
|
|
14
|
+
}),
|
|
15
|
+
(0, jxt_1.extendMessage)({
|
|
16
|
+
occupantId: (0, jxt_1.childAttribute)(Namespaces_1.NS_OCCUPANT_0, 'occupant-id', 'id')
|
|
17
|
+
})
|
|
18
|
+
];
|
|
19
|
+
exports.default = Protocol;
|