moqtail 0.11.0 → 0.12.1
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/dist/client.cjs +142 -194
- package/dist/client.d.cts +1 -10
- package/dist/client.d.ts +1 -10
- package/dist/client.js +142 -194
- package/dist/index.cjs +145 -194
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +143 -195
- package/dist/model.cjs +145 -192
- package/dist/model.d.cts +2 -2
- package/dist/model.d.ts +2 -2
- package/dist/model.js +143 -193
- package/dist/{setup_parameter-BOeGq6Mv.d.cts → setup_parameter-BgNrJRDS.d.cts} +35 -1
- package/dist/{setup_parameter-BOeGq6Mv.d.ts → setup_parameter-BgNrJRDS.d.ts} +35 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -131,6 +131,7 @@ var TerminationError = class extends MOQtailError {
|
|
|
131
131
|
|
|
132
132
|
// src/model/common/pair.ts
|
|
133
133
|
var MAX_VALUE_LENGTH = 2 ** 16 - 1;
|
|
134
|
+
var MAX_U64 = 2n ** 64n - 1n;
|
|
134
135
|
var KeyValuePair = class _KeyValuePair {
|
|
135
136
|
/**
|
|
136
137
|
* The key/type identifier for this pair.
|
|
@@ -190,11 +191,29 @@ var KeyValuePair = class _KeyValuePair {
|
|
|
190
191
|
}
|
|
191
192
|
/**
|
|
192
193
|
* Serializes this key-value pair to a frozen byte buffer.
|
|
194
|
+
* Equivalent to {@link KeyValuePair.serializeDelta} with `prevType = 0n`.
|
|
193
195
|
* @returns The serialized buffer.
|
|
194
196
|
*/
|
|
195
197
|
serialize() {
|
|
198
|
+
return this.serializeDelta(0n);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Serializes this pair's wire form, encoding the Type as a delta from
|
|
202
|
+
* `prevType` (the type of the previous KVP in the same list, or 0n if this
|
|
203
|
+
* is the first entry).
|
|
204
|
+
* @param prevType - The type of the previous KVP in the same list.
|
|
205
|
+
* @throws ProtocolViolationError if this pair's type is less than prevType
|
|
206
|
+
* (Delta Type is an unsigned varint, so the list must be sorted ascending).
|
|
207
|
+
*/
|
|
208
|
+
serializeDelta(prevType) {
|
|
209
|
+
if (this.typeValue < prevType) {
|
|
210
|
+
throw new ProtocolViolationError(
|
|
211
|
+
"KeyValuePair.serializeDelta",
|
|
212
|
+
`type ${this.typeValue} is less than previous type ${prevType}; a KVP list must be sorted by ascending type to be delta-encoded`
|
|
213
|
+
);
|
|
214
|
+
}
|
|
196
215
|
const buf = new ByteBuffer();
|
|
197
|
-
buf.putVI(this.typeValue);
|
|
216
|
+
buf.putVI(this.typeValue - prevType);
|
|
198
217
|
if (isVarInt(this)) {
|
|
199
218
|
buf.putVI(this.value);
|
|
200
219
|
} else if (isBytes(this)) {
|
|
@@ -204,13 +223,32 @@ var KeyValuePair = class _KeyValuePair {
|
|
|
204
223
|
}
|
|
205
224
|
/**
|
|
206
225
|
* Deserializes a KeyValuePair from a buffer.
|
|
226
|
+
* Equivalent to {@link KeyValuePair.deserializeDelta} with `prevType = 0n`.
|
|
207
227
|
* @param buf - The buffer to read from.
|
|
208
228
|
* @returns The deserialized KeyValuePair.
|
|
209
229
|
* @throws LengthExceedsMaxError if blob length exceeds 65535 bytes.
|
|
210
230
|
* @throws NotEnoughBytesError if buffer does not contain enough bytes.
|
|
211
231
|
*/
|
|
212
232
|
static deserialize(buf) {
|
|
213
|
-
|
|
233
|
+
return _KeyValuePair.deserializeDelta(buf, 0n);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Deserializes a wire-form KVP whose Type field is a delta from `prevType`
|
|
237
|
+
* (the type of the previous KVP in the same list, or 0n if this is the
|
|
238
|
+
* first entry).
|
|
239
|
+
* @param buf - The buffer to read from.
|
|
240
|
+
* @param prevType - The type of the previous KVP in the same list.
|
|
241
|
+
* @throws ProtocolViolationError if prevType + delta exceeds 2^64 - 1.
|
|
242
|
+
*/
|
|
243
|
+
static deserializeDelta(buf, prevType) {
|
|
244
|
+
const deltaType = buf.getVI();
|
|
245
|
+
const typeValue = prevType + deltaType;
|
|
246
|
+
if (typeValue > MAX_U64) {
|
|
247
|
+
throw new ProtocolViolationError(
|
|
248
|
+
"KeyValuePair.deserializeDelta",
|
|
249
|
+
`previous type ${prevType} plus delta type ${deltaType} exceeds 2^64 - 1`
|
|
250
|
+
);
|
|
251
|
+
}
|
|
214
252
|
if (typeValue % 2n === 0n) {
|
|
215
253
|
const value = buf.getVI();
|
|
216
254
|
return new _KeyValuePair(typeValue, value);
|
|
@@ -245,6 +283,37 @@ var KeyValuePair = class _KeyValuePair {
|
|
|
245
283
|
return false;
|
|
246
284
|
}
|
|
247
285
|
};
|
|
286
|
+
function serializeKvpList(items) {
|
|
287
|
+
const sorted = [...items].sort((a, b) => a.typeValue < b.typeValue ? -1 : a.typeValue > b.typeValue ? 1 : 0);
|
|
288
|
+
const buf = new ByteBuffer();
|
|
289
|
+
let prevType = 0n;
|
|
290
|
+
for (const kvp of sorted) {
|
|
291
|
+
buf.putBytes(kvp.serializeDelta(prevType).toUint8Array());
|
|
292
|
+
prevType = kvp.typeValue;
|
|
293
|
+
}
|
|
294
|
+
return buf.freeze();
|
|
295
|
+
}
|
|
296
|
+
function deserializeKvpList(buf, count) {
|
|
297
|
+
const n = typeof count === "bigint" ? Number(count) : count;
|
|
298
|
+
const items = new Array(n);
|
|
299
|
+
let prevType = 0n;
|
|
300
|
+
for (let i = 0; i < n; i++) {
|
|
301
|
+
const kvp = KeyValuePair.deserializeDelta(buf, prevType);
|
|
302
|
+
prevType = kvp.typeValue;
|
|
303
|
+
items[i] = kvp;
|
|
304
|
+
}
|
|
305
|
+
return items;
|
|
306
|
+
}
|
|
307
|
+
function deserializeKvpListUntilEmpty(buf) {
|
|
308
|
+
const items = [];
|
|
309
|
+
let prevType = 0n;
|
|
310
|
+
while (buf.remaining > 0) {
|
|
311
|
+
const kvp = KeyValuePair.deserializeDelta(buf, prevType);
|
|
312
|
+
prevType = kvp.typeValue;
|
|
313
|
+
items.push(kvp);
|
|
314
|
+
}
|
|
315
|
+
return items;
|
|
316
|
+
}
|
|
248
317
|
function isVarInt(pair) {
|
|
249
318
|
return pair.typeValue % 2n === 0n;
|
|
250
319
|
}
|
|
@@ -847,13 +916,7 @@ var Datagram = class _Datagram {
|
|
|
847
916
|
buf.putU8(this.publisherPriority);
|
|
848
917
|
}
|
|
849
918
|
if (exports.ObjectDatagramType.hasExtensions(this.type)) {
|
|
850
|
-
const
|
|
851
|
-
if (this.extensionHeaders) {
|
|
852
|
-
for (const header of this.extensionHeaders) {
|
|
853
|
-
extBuf.putKeyValuePair(header);
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
const extBytes = extBuf.toUint8Array();
|
|
919
|
+
const extBytes = this.extensionHeaders ? serializeKvpList(this.extensionHeaders).toUint8Array() : new Uint8Array(0);
|
|
857
920
|
buf.putLengthPrefixedBytes(extBytes);
|
|
858
921
|
}
|
|
859
922
|
if (exports.ObjectDatagramType.isStatus(this.type)) {
|
|
@@ -884,10 +947,7 @@ var Datagram = class _Datagram {
|
|
|
884
947
|
if (exports.ObjectDatagramType.hasExtensions(msgType)) {
|
|
885
948
|
const extBytes = buf.getLengthPrefixedBytes();
|
|
886
949
|
const headerBytes = new FrozenByteBuffer5(extBytes);
|
|
887
|
-
extensionHeaders =
|
|
888
|
-
while (headerBytes.remaining > 0) {
|
|
889
|
-
extensionHeaders.push(headerBytes.getKeyValuePair());
|
|
890
|
-
}
|
|
950
|
+
extensionHeaders = deserializeKvpListUntilEmpty(headerBytes);
|
|
891
951
|
}
|
|
892
952
|
let payload = null;
|
|
893
953
|
let objectStatus = null;
|
|
@@ -1059,9 +1119,7 @@ var FetchObject = class _FetchObject {
|
|
|
1059
1119
|
if (hasObjectId) buf.putVI(this.objectId);
|
|
1060
1120
|
if (hasPriority) buf.putU8(this.publisherPriority);
|
|
1061
1121
|
if (hasExtensions) {
|
|
1062
|
-
|
|
1063
|
-
for (const h of this.extensionHeaders) extBuf.putKeyValuePair(h);
|
|
1064
|
-
buf.putLengthPrefixedBytes(extBuf.toUint8Array());
|
|
1122
|
+
buf.putLengthPrefixedBytes(serializeKvpList(this.extensionHeaders).toUint8Array());
|
|
1065
1123
|
}
|
|
1066
1124
|
const payloadBytes = this.payload ?? new Uint8Array(0);
|
|
1067
1125
|
buf.putLengthPrefixedBytes(payloadBytes);
|
|
@@ -1147,10 +1205,7 @@ var FetchObject = class _FetchObject {
|
|
|
1147
1205
|
if (hasExtensions) {
|
|
1148
1206
|
const extLen = buf.getNumberVI();
|
|
1149
1207
|
const headerBytes = new FrozenByteBuffer5(buf.getBytes(extLen));
|
|
1150
|
-
extensionHeaders =
|
|
1151
|
-
while (headerBytes.remaining > 0) {
|
|
1152
|
-
extensionHeaders.push(headerBytes.getKeyValuePair());
|
|
1153
|
-
}
|
|
1208
|
+
extensionHeaders = deserializeKvpListUntilEmpty(headerBytes);
|
|
1154
1209
|
}
|
|
1155
1210
|
const payloadLen = buf.getNumberVI();
|
|
1156
1211
|
const payload = buf.getBytes(payloadLen);
|
|
@@ -1814,26 +1869,18 @@ var ImmutableExtensionsExtension = class _ImmutableExtensionsExtension {
|
|
|
1814
1869
|
extensions;
|
|
1815
1870
|
static TYPE = 11 /* ImmutableExtensions */;
|
|
1816
1871
|
toKeyValuePair() {
|
|
1817
|
-
|
|
1818
|
-
for (const kvp of this.extensions) {
|
|
1819
|
-
inner.putBytes(kvp.serialize().toUint8Array());
|
|
1820
|
-
}
|
|
1821
|
-
return KeyValuePair.tryNewBytes(_ImmutableExtensionsExtension.TYPE, inner.toUint8Array());
|
|
1872
|
+
return KeyValuePair.tryNewBytes(_ImmutableExtensionsExtension.TYPE, serializeKvpList(this.extensions).toUint8Array());
|
|
1822
1873
|
}
|
|
1823
1874
|
static fromKeyValuePair(pair) {
|
|
1824
1875
|
if (Number(pair.typeValue) !== _ImmutableExtensionsExtension.TYPE || !(pair.value instanceof Uint8Array))
|
|
1825
1876
|
return void 0;
|
|
1826
1877
|
const buf = new FrozenByteBuffer5(pair.value);
|
|
1827
|
-
const extensions =
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
"ImmutableExtensions must not contain nested ImmutableExtensions (0x0B)"
|
|
1834
|
-
);
|
|
1835
|
-
}
|
|
1836
|
-
extensions.push(inner);
|
|
1878
|
+
const extensions = deserializeKvpListUntilEmpty(buf);
|
|
1879
|
+
if (extensions.some((inner) => Number(inner.typeValue) === 11 /* ImmutableExtensions */)) {
|
|
1880
|
+
throw new ProtocolViolationError(
|
|
1881
|
+
"ImmutableExtensionsExtension.fromKeyValuePair",
|
|
1882
|
+
"ImmutableExtensions must not contain nested ImmutableExtensions (0x0B)"
|
|
1883
|
+
);
|
|
1837
1884
|
}
|
|
1838
1885
|
return new _ImmutableExtensionsExtension(extensions);
|
|
1839
1886
|
}
|
|
@@ -1920,18 +1967,11 @@ exports.TrackExtension = void 0;
|
|
|
1920
1967
|
}
|
|
1921
1968
|
TrackExtension2.toKeyValuePair = toKeyValuePair;
|
|
1922
1969
|
function deserializeAll(buf) {
|
|
1923
|
-
|
|
1924
|
-
while (buf.remaining > 0) {
|
|
1925
|
-
const kvp = KeyValuePair.deserialize(buf);
|
|
1926
|
-
result.push(fromKeyValuePair(kvp));
|
|
1927
|
-
}
|
|
1928
|
-
return result;
|
|
1970
|
+
return deserializeKvpListUntilEmpty(buf).map(fromKeyValuePair);
|
|
1929
1971
|
}
|
|
1930
1972
|
TrackExtension2.deserializeAll = deserializeAll;
|
|
1931
1973
|
function serializeInto(exts, payload) {
|
|
1932
|
-
|
|
1933
|
-
payload.putBytes(ext.toKeyValuePair().serialize().toUint8Array());
|
|
1934
|
-
}
|
|
1974
|
+
payload.putBytes(serializeKvpList(exts.map((ext) => ext.toKeyValuePair())).toUint8Array());
|
|
1935
1975
|
}
|
|
1936
1976
|
TrackExtension2.serializeInto = serializeInto;
|
|
1937
1977
|
function isDeliveryTimeout(ext) {
|
|
@@ -1972,26 +2012,21 @@ var ImmutableExtensionsObjectExtension = class _ImmutableExtensionsObjectExtensi
|
|
|
1972
2012
|
extensions;
|
|
1973
2013
|
static TYPE = 11 /* ImmutableExtensions */;
|
|
1974
2014
|
toKeyValuePair() {
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
return KeyValuePair.tryNewBytes(_ImmutableExtensionsObjectExtension.TYPE, inner.toUint8Array());
|
|
2015
|
+
return KeyValuePair.tryNewBytes(
|
|
2016
|
+
_ImmutableExtensionsObjectExtension.TYPE,
|
|
2017
|
+
serializeKvpList(this.extensions).toUint8Array()
|
|
2018
|
+
);
|
|
1980
2019
|
}
|
|
1981
2020
|
static fromKeyValuePair(pair) {
|
|
1982
2021
|
if (Number(pair.typeValue) !== _ImmutableExtensionsObjectExtension.TYPE || !(pair.value instanceof Uint8Array))
|
|
1983
2022
|
return void 0;
|
|
1984
2023
|
const buf = new FrozenByteBuffer5(pair.value);
|
|
1985
|
-
const extensions =
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
"ImmutableExtensions must not contain nested ImmutableExtensions (0x0B)"
|
|
1992
|
-
);
|
|
1993
|
-
}
|
|
1994
|
-
extensions.push(inner);
|
|
2024
|
+
const extensions = deserializeKvpListUntilEmpty(buf);
|
|
2025
|
+
if (extensions.some((inner) => Number(inner.typeValue) === 11 /* ImmutableExtensions */)) {
|
|
2026
|
+
throw new ProtocolViolationError(
|
|
2027
|
+
"ImmutableExtensionsObjectExtension.fromKeyValuePair",
|
|
2028
|
+
"ImmutableExtensions must not contain nested ImmutableExtensions (0x0B)"
|
|
2029
|
+
);
|
|
1995
2030
|
}
|
|
1996
2031
|
return new _ImmutableExtensionsObjectExtension(extensions);
|
|
1997
2032
|
}
|
|
@@ -2044,18 +2079,11 @@ exports.ObjectExtension = void 0;
|
|
|
2044
2079
|
}
|
|
2045
2080
|
ObjectExtension2.toKeyValuePair = toKeyValuePair;
|
|
2046
2081
|
function deserializeAll(buf) {
|
|
2047
|
-
|
|
2048
|
-
while (buf.remaining > 0) {
|
|
2049
|
-
const kvp = KeyValuePair.deserialize(buf);
|
|
2050
|
-
result.push(fromKeyValuePair(kvp));
|
|
2051
|
-
}
|
|
2052
|
-
return result;
|
|
2082
|
+
return deserializeKvpListUntilEmpty(buf).map(fromKeyValuePair);
|
|
2053
2083
|
}
|
|
2054
2084
|
ObjectExtension2.deserializeAll = deserializeAll;
|
|
2055
2085
|
function serializeInto(exts, payload) {
|
|
2056
|
-
|
|
2057
|
-
payload.putBytes(ext.toKeyValuePair().serialize().toUint8Array());
|
|
2058
|
-
}
|
|
2086
|
+
payload.putBytes(serializeKvpList(exts.map((ext) => ext.toKeyValuePair())).toUint8Array());
|
|
2059
2087
|
}
|
|
2060
2088
|
ObjectExtension2.serializeInto = serializeInto;
|
|
2061
2089
|
function isImmutableExtensions(ext) {
|
|
@@ -2077,6 +2105,12 @@ exports.ObjectExtension = void 0;
|
|
|
2077
2105
|
})(exports.ObjectExtension || (exports.ObjectExtension = {}));
|
|
2078
2106
|
|
|
2079
2107
|
// src/model/data/subgroup_object.ts
|
|
2108
|
+
function normalizeExtensionHeaders(extensionHeaders) {
|
|
2109
|
+
if (extensionHeaders === null || extensionHeaders.length === 0) {
|
|
2110
|
+
return null;
|
|
2111
|
+
}
|
|
2112
|
+
return extensionHeaders;
|
|
2113
|
+
}
|
|
2080
2114
|
var SubgroupObject = class _SubgroupObject {
|
|
2081
2115
|
constructor(objectId, extensionHeaders, objectStatus, payload) {
|
|
2082
2116
|
this.extensionHeaders = extensionHeaders;
|
|
@@ -2089,22 +2123,17 @@ var SubgroupObject = class _SubgroupObject {
|
|
|
2089
2123
|
payload;
|
|
2090
2124
|
objectId;
|
|
2091
2125
|
static newWithStatus(objectId, extensionHeaders, objectStatus) {
|
|
2092
|
-
return new _SubgroupObject(objectId, extensionHeaders, objectStatus, null);
|
|
2126
|
+
return new _SubgroupObject(objectId, normalizeExtensionHeaders(extensionHeaders), objectStatus, null);
|
|
2093
2127
|
}
|
|
2094
2128
|
static newWithPayload(objectId, extensionHeaders, payload) {
|
|
2095
|
-
return new _SubgroupObject(objectId, extensionHeaders, null, payload);
|
|
2129
|
+
return new _SubgroupObject(objectId, normalizeExtensionHeaders(extensionHeaders), null, payload);
|
|
2096
2130
|
}
|
|
2097
2131
|
serialize(previousObjectId) {
|
|
2098
2132
|
let objectIdDelta = previousObjectId ? this.objectId - previousObjectId - BigInt(1) : this.objectId;
|
|
2099
2133
|
const buf = new ByteBuffer();
|
|
2100
2134
|
buf.putVI(objectIdDelta);
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
for (const header of this.extensionHeaders) {
|
|
2104
|
-
extensionHeaders.putKeyValuePair(header);
|
|
2105
|
-
}
|
|
2106
|
-
const headerBytes = extensionHeaders.toUint8Array();
|
|
2107
|
-
buf.putLengthPrefixedBytes(headerBytes);
|
|
2135
|
+
if (this.extensionHeaders !== null) {
|
|
2136
|
+
buf.putLengthPrefixedBytes(serializeKvpList(this.extensionHeaders).toUint8Array());
|
|
2108
2137
|
}
|
|
2109
2138
|
if (this.payload) {
|
|
2110
2139
|
buf.putLengthPrefixedBytes(this.payload);
|
|
@@ -2119,12 +2148,9 @@ var SubgroupObject = class _SubgroupObject {
|
|
|
2119
2148
|
let objectId = previousObjectId !== void 0 ? previousObjectId + objectDelta + BigInt(1) : objectDelta;
|
|
2120
2149
|
let extensionHeaders = null;
|
|
2121
2150
|
if (hasExtensions) {
|
|
2122
|
-
extensionHeaders = [];
|
|
2123
2151
|
const extLen = buf.getNumberVI();
|
|
2124
2152
|
const headerBytes = new FrozenByteBuffer5(buf.getBytes(extLen));
|
|
2125
|
-
|
|
2126
|
-
extensionHeaders.push(headerBytes.getKeyValuePair());
|
|
2127
|
-
}
|
|
2153
|
+
extensionHeaders = deserializeKvpListUntilEmpty(headerBytes);
|
|
2128
2154
|
}
|
|
2129
2155
|
const payloadLen = buf.getNumberVI();
|
|
2130
2156
|
let objectStatus = null;
|
|
@@ -2134,7 +2160,7 @@ var SubgroupObject = class _SubgroupObject {
|
|
|
2134
2160
|
} else {
|
|
2135
2161
|
payload = buf.getBytes(payloadLen);
|
|
2136
2162
|
}
|
|
2137
|
-
return new _SubgroupObject(objectId, extensionHeaders, objectStatus, payload);
|
|
2163
|
+
return new _SubgroupObject(objectId, normalizeExtensionHeaders(extensionHeaders), objectStatus, payload);
|
|
2138
2164
|
}
|
|
2139
2165
|
};
|
|
2140
2166
|
|
|
@@ -2575,24 +2601,12 @@ exports.Header = void 0;
|
|
|
2575
2601
|
buf.checkpoint();
|
|
2576
2602
|
const type = buf.getNumberVI();
|
|
2577
2603
|
buf.restore();
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
case 19:
|
|
2585
|
-
case 20:
|
|
2586
|
-
case 21:
|
|
2587
|
-
case 24:
|
|
2588
|
-
case 25:
|
|
2589
|
-
case 26:
|
|
2590
|
-
case 27:
|
|
2591
|
-
case 28:
|
|
2592
|
-
case 29:
|
|
2593
|
-
return SubgroupHeader.deserialize(buf);
|
|
2594
|
-
default:
|
|
2595
|
-
throw new InvalidTypeError("Header::deserialize(type)", `Unknown header type: ${type}`);
|
|
2604
|
+
if (type === 5) {
|
|
2605
|
+
return FetchHeader.deserialize(buf);
|
|
2606
|
+
} else if ((type & exports.SubgroupHeaderType.REQUIRED_BIT) !== 0 && (type & 192) === 0) {
|
|
2607
|
+
return SubgroupHeader.deserialize(buf);
|
|
2608
|
+
} else {
|
|
2609
|
+
throw new InvalidTypeError("Header::deserialize(type)", `Unknown header type: ${type}`);
|
|
2596
2610
|
}
|
|
2597
2611
|
}
|
|
2598
2612
|
Header2.deserialize = deserialize;
|
|
@@ -3355,9 +3369,7 @@ var PublishNamespace = class _PublishNamespace {
|
|
|
3355
3369
|
payload.putVI(this.requestId);
|
|
3356
3370
|
payload.putTuple(this.trackNamespace);
|
|
3357
3371
|
payload.putVI(this.parameters.length);
|
|
3358
|
-
|
|
3359
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
3360
|
-
}
|
|
3372
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
3361
3373
|
const payloadBytes = payload.toUint8Array();
|
|
3362
3374
|
if (payloadBytes.length > 65535) {
|
|
3363
3375
|
throw new LengthExceedsMaxError("PublishNamespace::serialize(payloadBytes.length)", 65535, payloadBytes.length);
|
|
@@ -3378,10 +3390,7 @@ var PublishNamespace = class _PublishNamespace {
|
|
|
3378
3390
|
const requestId = buf.getVI();
|
|
3379
3391
|
const trackNamespace = buf.getTuple();
|
|
3380
3392
|
const paramCount = buf.getNumberVI();
|
|
3381
|
-
const rawParams =
|
|
3382
|
-
for (let i = 0; i < paramCount; i++) {
|
|
3383
|
-
rawParams[i] = buf.getKeyValuePair();
|
|
3384
|
-
}
|
|
3393
|
+
const rawParams = deserializeKvpList(buf, paramCount);
|
|
3385
3394
|
const parameters = MessageParameters.fromKeyValuePairs(rawParams);
|
|
3386
3395
|
return new _PublishNamespace(requestId, trackNamespace, parameters);
|
|
3387
3396
|
}
|
|
@@ -3498,9 +3507,7 @@ var ClientSetup = class _ClientSetup {
|
|
|
3498
3507
|
buf.putVI(32 /* ClientSetup */);
|
|
3499
3508
|
const payload = new ByteBuffer();
|
|
3500
3509
|
payload.putVI(this.setupParameters.length);
|
|
3501
|
-
|
|
3502
|
-
payload.putKeyValuePair(param);
|
|
3503
|
-
}
|
|
3510
|
+
payload.putBytes(serializeKvpList(this.setupParameters).toUint8Array());
|
|
3504
3511
|
const payloadBytes = payload.toUint8Array();
|
|
3505
3512
|
if (payloadBytes.length > 65535) {
|
|
3506
3513
|
throw new LengthExceedsMaxError("ClientSetup::serialize(payload_length)", 65535, payloadBytes.length);
|
|
@@ -3511,10 +3518,7 @@ var ClientSetup = class _ClientSetup {
|
|
|
3511
3518
|
}
|
|
3512
3519
|
static parsePayload(buf) {
|
|
3513
3520
|
const paramCount = buf.getNumberVI();
|
|
3514
|
-
const setupParameters =
|
|
3515
|
-
for (let i = 0; i < paramCount; i++) {
|
|
3516
|
-
setupParameters[i] = buf.getKeyValuePair();
|
|
3517
|
-
}
|
|
3521
|
+
const setupParameters = deserializeKvpList(buf, paramCount);
|
|
3518
3522
|
return new _ClientSetup(setupParameters);
|
|
3519
3523
|
}
|
|
3520
3524
|
};
|
|
@@ -3553,9 +3557,7 @@ var Fetch = class _Fetch {
|
|
|
3553
3557
|
}
|
|
3554
3558
|
}
|
|
3555
3559
|
payload.putVI(this.parameters.length);
|
|
3556
|
-
|
|
3557
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
3558
|
-
}
|
|
3560
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
3559
3561
|
const payloadBytes = payload.toUint8Array();
|
|
3560
3562
|
if (payloadBytes.length > 65535) {
|
|
3561
3563
|
throw new LengthExceedsMaxError("Fetch::serialize(payload_length)", 65535, payloadBytes.length);
|
|
@@ -3594,10 +3596,7 @@ var Fetch = class _Fetch {
|
|
|
3594
3596
|
throw new Error(`Unknown fetch type: ${fetchType}`);
|
|
3595
3597
|
}
|
|
3596
3598
|
const paramCount = buf.getNumberVI();
|
|
3597
|
-
const rawParams =
|
|
3598
|
-
for (let i = 0; i < paramCount; i++) {
|
|
3599
|
-
rawParams[i] = buf.getKeyValuePair();
|
|
3600
|
-
}
|
|
3599
|
+
const rawParams = deserializeKvpList(buf, paramCount);
|
|
3601
3600
|
const parameters = MessageParameters.fromKeyValuePairs(rawParams);
|
|
3602
3601
|
return new _Fetch(requestId, props, parameters);
|
|
3603
3602
|
}
|
|
@@ -3653,9 +3652,7 @@ var FetchOk = class _FetchOk {
|
|
|
3653
3652
|
payload.putU8(this.endOfTrack ? 1 : 0);
|
|
3654
3653
|
payload.putLocation(this.endLocation);
|
|
3655
3654
|
payload.putVI(this.parameters.length);
|
|
3656
|
-
|
|
3657
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
3658
|
-
}
|
|
3655
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
3659
3656
|
exports.TrackExtension.serializeInto(this.trackExtensions, payload);
|
|
3660
3657
|
const payloadBytes = payload.toUint8Array();
|
|
3661
3658
|
if (payloadBytes.length > 65535) {
|
|
@@ -3684,10 +3681,7 @@ var FetchOk = class _FetchOk {
|
|
|
3684
3681
|
}
|
|
3685
3682
|
const endLocation = buf.getLocation();
|
|
3686
3683
|
const paramCount = buf.getNumberVI();
|
|
3687
|
-
const rawParams =
|
|
3688
|
-
for (let i = 0; i < paramCount; i++) {
|
|
3689
|
-
rawParams[i] = buf.getKeyValuePair();
|
|
3690
|
-
}
|
|
3684
|
+
const rawParams = deserializeKvpList(buf, paramCount);
|
|
3691
3685
|
const parameters = MessageParameters.fromKeyValuePairs(rawParams);
|
|
3692
3686
|
const trackExtensions = exports.TrackExtension.deserializeAll(buf);
|
|
3693
3687
|
return new _FetchOk(requestId, endOfTrack, endLocation, parameters, trackExtensions);
|
|
@@ -3799,9 +3793,7 @@ var ServerSetup = class _ServerSetup {
|
|
|
3799
3793
|
buf.putVI(33 /* ServerSetup */);
|
|
3800
3794
|
const payload = new ByteBuffer();
|
|
3801
3795
|
payload.putVI(this.setupParameters.length);
|
|
3802
|
-
|
|
3803
|
-
payload.putKeyValuePair(param);
|
|
3804
|
-
}
|
|
3796
|
+
payload.putBytes(serializeKvpList(this.setupParameters).toUint8Array());
|
|
3805
3797
|
const payloadBytes = payload.toUint8Array();
|
|
3806
3798
|
if (payloadBytes.length > 65535) {
|
|
3807
3799
|
throw new LengthExceedsMaxError("ServerSetup::serialize(payloadBytes.length)", 65535, payloadBytes.length);
|
|
@@ -3812,10 +3804,7 @@ var ServerSetup = class _ServerSetup {
|
|
|
3812
3804
|
}
|
|
3813
3805
|
static parsePayload(buf) {
|
|
3814
3806
|
const paramCount = buf.getNumberVI();
|
|
3815
|
-
const setupParameters =
|
|
3816
|
-
for (let i = 0; i < paramCount; i++) {
|
|
3817
|
-
setupParameters[i] = buf.getKeyValuePair();
|
|
3818
|
-
}
|
|
3807
|
+
const setupParameters = deserializeKvpList(buf, paramCount);
|
|
3819
3808
|
return new _ServerSetup(setupParameters);
|
|
3820
3809
|
}
|
|
3821
3810
|
};
|
|
@@ -3858,9 +3847,7 @@ var Subscribe = class _Subscribe {
|
|
|
3858
3847
|
payload.putVI(this.requestId);
|
|
3859
3848
|
payload.putBytes(this.fullTrackName.serialize().toUint8Array());
|
|
3860
3849
|
payload.putVI(this.parameters.length);
|
|
3861
|
-
|
|
3862
|
-
payload.putBytes(param.toKeyValuePair().serialize().toUint8Array());
|
|
3863
|
-
}
|
|
3850
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
3864
3851
|
const payloadBytes = payload.toUint8Array();
|
|
3865
3852
|
buf.putU16(payloadBytes.length);
|
|
3866
3853
|
buf.putBytes(payloadBytes);
|
|
@@ -3871,8 +3858,7 @@ var Subscribe = class _Subscribe {
|
|
|
3871
3858
|
const fullTrackName = buf.getFullTrackName();
|
|
3872
3859
|
const paramCount = Number(buf.getVI());
|
|
3873
3860
|
const parameters = [];
|
|
3874
|
-
for (
|
|
3875
|
-
const kvp = KeyValuePair.deserialize(buf);
|
|
3861
|
+
for (const kvp of deserializeKvpList(buf, paramCount)) {
|
|
3876
3862
|
const param = exports.MessageParameter.fromKeyValuePair(kvp);
|
|
3877
3863
|
if (param !== void 0) parameters.push(param);
|
|
3878
3864
|
}
|
|
@@ -3949,9 +3935,7 @@ var Publish = class _Publish {
|
|
|
3949
3935
|
payload.putBytes(this.fullTrackName.serialize().toUint8Array());
|
|
3950
3936
|
payload.putVI(this.trackAlias);
|
|
3951
3937
|
payload.putVI(this.parameters.length);
|
|
3952
|
-
|
|
3953
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
3954
|
-
}
|
|
3938
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
3955
3939
|
exports.TrackExtension.serializeInto(this.trackExtensions, payload);
|
|
3956
3940
|
const payloadBytes = payload.toUint8Array();
|
|
3957
3941
|
if (payloadBytes.length > 65535) {
|
|
@@ -3966,10 +3950,7 @@ var Publish = class _Publish {
|
|
|
3966
3950
|
const fullTrackName = buf.getFullTrackName();
|
|
3967
3951
|
const trackAlias = buf.getVI();
|
|
3968
3952
|
const paramCount = buf.getNumberVI();
|
|
3969
|
-
const rawParams =
|
|
3970
|
-
for (let i = 0; i < paramCount; i++) {
|
|
3971
|
-
rawParams[i] = buf.getKeyValuePair();
|
|
3972
|
-
}
|
|
3953
|
+
const rawParams = deserializeKvpList(buf, paramCount);
|
|
3973
3954
|
const parameters = MessageParameters.fromKeyValuePairs(rawParams);
|
|
3974
3955
|
const trackExtensions = exports.TrackExtension.deserializeAll(buf);
|
|
3975
3956
|
return new _Publish(requestId, fullTrackName, trackAlias, parameters, trackExtensions);
|
|
@@ -3993,9 +3974,7 @@ var PublishOk = class _PublishOk {
|
|
|
3993
3974
|
const payload = new ByteBuffer();
|
|
3994
3975
|
payload.putVI(this.requestId);
|
|
3995
3976
|
payload.putVI(this.parameters.length);
|
|
3996
|
-
|
|
3997
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
3998
|
-
}
|
|
3977
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
3999
3978
|
const payloadBytes = payload.toUint8Array();
|
|
4000
3979
|
if (payloadBytes.length > 65535) {
|
|
4001
3980
|
throw new LengthExceedsMaxError("PublishOk::serialize(payloadBytes.length)", 65535, payloadBytes.length);
|
|
@@ -4007,10 +3986,7 @@ var PublishOk = class _PublishOk {
|
|
|
4007
3986
|
static parsePayload(buf) {
|
|
4008
3987
|
const requestId = buf.getVI();
|
|
4009
3988
|
const paramCount = buf.getVI();
|
|
4010
|
-
const kvps =
|
|
4011
|
-
for (let i = 0; i < paramCount; i++) {
|
|
4012
|
-
kvps.push(buf.getKeyValuePair());
|
|
4013
|
-
}
|
|
3989
|
+
const kvps = deserializeKvpList(buf, paramCount);
|
|
4014
3990
|
const parameters = MessageParameters.fromKeyValuePairs(kvps);
|
|
4015
3991
|
return new _PublishOk(requestId, parameters);
|
|
4016
3992
|
}
|
|
@@ -4038,9 +4014,7 @@ var SubscribeOk = class _SubscribeOk {
|
|
|
4038
4014
|
payload.putVI(this.requestId);
|
|
4039
4015
|
payload.putVI(this.trackAlias);
|
|
4040
4016
|
payload.putVI(this.parameters.length);
|
|
4041
|
-
|
|
4042
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
4043
|
-
}
|
|
4017
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
4044
4018
|
exports.TrackExtension.serializeInto(this.trackExtensions, payload);
|
|
4045
4019
|
const payloadBytes = payload.toUint8Array();
|
|
4046
4020
|
if (payloadBytes.length > 65535) {
|
|
@@ -4054,10 +4028,7 @@ var SubscribeOk = class _SubscribeOk {
|
|
|
4054
4028
|
const requestId = buf.getVI();
|
|
4055
4029
|
const trackAlias = buf.getVI();
|
|
4056
4030
|
const paramCount = buf.getNumberVI();
|
|
4057
|
-
const rawParams =
|
|
4058
|
-
for (let i = 0; i < paramCount; i++) {
|
|
4059
|
-
rawParams[i] = buf.getKeyValuePair();
|
|
4060
|
-
}
|
|
4031
|
+
const rawParams = deserializeKvpList(buf, paramCount);
|
|
4061
4032
|
const parameters = MessageParameters.fromKeyValuePairs(rawParams);
|
|
4062
4033
|
const trackExtensions = exports.TrackExtension.deserializeAll(buf);
|
|
4063
4034
|
return new _SubscribeOk(requestId, trackAlias, parameters, trackExtensions);
|
|
@@ -4084,9 +4055,7 @@ var RequestUpdate = class _RequestUpdate {
|
|
|
4084
4055
|
payload.putVI(this.requestId);
|
|
4085
4056
|
payload.putVI(this.existingRequestId);
|
|
4086
4057
|
payload.putVI(this.parameters.length);
|
|
4087
|
-
|
|
4088
|
-
payload.putBytes(param.toKeyValuePair().serialize().toUint8Array());
|
|
4089
|
-
}
|
|
4058
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
4090
4059
|
const payloadBytes = payload.toUint8Array();
|
|
4091
4060
|
if (payloadBytes.length > 65535) {
|
|
4092
4061
|
throw new LengthExceedsMaxError("RequestUpdate::serialize(payloadBytes)", 65535, payloadBytes.length);
|
|
@@ -4104,8 +4073,7 @@ var RequestUpdate = class _RequestUpdate {
|
|
|
4104
4073
|
throw new CastingError("RequestUpdate.deserialize paramCount", "bigint", "number", `${paramCountBig}`);
|
|
4105
4074
|
}
|
|
4106
4075
|
const parameters = [];
|
|
4107
|
-
for (
|
|
4108
|
-
const kvp = KeyValuePair.deserialize(buf);
|
|
4076
|
+
for (const kvp of deserializeKvpList(buf, paramCount)) {
|
|
4109
4077
|
const param = exports.MessageParameter.fromKeyValuePair(kvp);
|
|
4110
4078
|
if (param !== void 0) parameters.push(param);
|
|
4111
4079
|
}
|
|
@@ -4262,9 +4230,7 @@ var TrackStatus = class _TrackStatus {
|
|
|
4262
4230
|
payload.putVI(this.endGroup);
|
|
4263
4231
|
}
|
|
4264
4232
|
payload.putVI(this.subscribeParameters.length);
|
|
4265
|
-
|
|
4266
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
4267
|
-
}
|
|
4233
|
+
payload.putBytes(serializeKvpList(this.subscribeParameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
4268
4234
|
const payloadBytes = payload.toUint8Array();
|
|
4269
4235
|
buf.putU16(payloadBytes.length);
|
|
4270
4236
|
buf.putBytes(payloadBytes);
|
|
@@ -4287,10 +4253,7 @@ var TrackStatus = class _TrackStatus {
|
|
|
4287
4253
|
endGroup = buf.getVI();
|
|
4288
4254
|
}
|
|
4289
4255
|
const paramCount = Number(buf.getVI());
|
|
4290
|
-
const rawParams =
|
|
4291
|
-
for (let i = 0; i < paramCount; i++) {
|
|
4292
|
-
rawParams[i] = buf.getKeyValuePair();
|
|
4293
|
-
}
|
|
4256
|
+
const rawParams = deserializeKvpList(buf, paramCount);
|
|
4294
4257
|
const subscribeParameters = MessageParameters.fromKeyValuePairs(rawParams);
|
|
4295
4258
|
return new _TrackStatus(
|
|
4296
4259
|
requestId,
|
|
@@ -4408,9 +4371,7 @@ var SubscribeNamespace = class _SubscribeNamespace {
|
|
|
4408
4371
|
payload.putTuple(this.trackNamespacePrefix);
|
|
4409
4372
|
payload.putVI(this.subscribeOptions);
|
|
4410
4373
|
payload.putVI(this.parameters.length);
|
|
4411
|
-
|
|
4412
|
-
payload.putKeyValuePair(param.toKeyValuePair());
|
|
4413
|
-
}
|
|
4374
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
4414
4375
|
const payloadBytes = payload.toUint8Array();
|
|
4415
4376
|
if (payloadBytes.length > 65535) {
|
|
4416
4377
|
throw new LengthExceedsMaxError("SubscribeNamespace::serialize(payloadBytes.length)", 65535, payloadBytes.length);
|
|
@@ -4424,10 +4385,7 @@ var SubscribeNamespace = class _SubscribeNamespace {
|
|
|
4424
4385
|
const trackNamespacePrefix = buf.getTuple();
|
|
4425
4386
|
const subscribeOptions = Number(buf.getVI());
|
|
4426
4387
|
const paramCount = buf.getNumberVI();
|
|
4427
|
-
const rawParams =
|
|
4428
|
-
for (let i = 0; i < paramCount; i++) {
|
|
4429
|
-
rawParams[i] = buf.getKeyValuePair();
|
|
4430
|
-
}
|
|
4388
|
+
const rawParams = deserializeKvpList(buf, paramCount);
|
|
4431
4389
|
const parameters = MessageParameters.fromKeyValuePairs(rawParams);
|
|
4432
4390
|
return new _SubscribeNamespace(requestId, trackNamespacePrefix, subscribeOptions, parameters);
|
|
4433
4391
|
}
|
|
@@ -4478,9 +4436,7 @@ var RequestOk = class _RequestOk {
|
|
|
4478
4436
|
const payload = new ByteBuffer();
|
|
4479
4437
|
payload.putVI(this.requestId);
|
|
4480
4438
|
payload.putVI(BigInt(this.parameters.length));
|
|
4481
|
-
|
|
4482
|
-
payload.putBytes(param.toKeyValuePair().serialize().toUint8Array());
|
|
4483
|
-
}
|
|
4439
|
+
payload.putBytes(serializeKvpList(this.parameters.map((p) => p.toKeyValuePair())).toUint8Array());
|
|
4484
4440
|
const payloadBytes = payload.toUint8Array();
|
|
4485
4441
|
if (payloadBytes.length > 65535) {
|
|
4486
4442
|
throw new LengthExceedsMaxError("RequestOk::serialize(payloadBytes)", 65535, payloadBytes.length);
|
|
@@ -4497,8 +4453,7 @@ var RequestOk = class _RequestOk {
|
|
|
4497
4453
|
throw new CastingError("RequestOk.parsePayload numParams", "bigint", "number", `${numParamsBig}`);
|
|
4498
4454
|
}
|
|
4499
4455
|
const parameters = [];
|
|
4500
|
-
for (
|
|
4501
|
-
const kvp = KeyValuePair.deserialize(buf);
|
|
4456
|
+
for (const kvp of deserializeKvpList(buf, numParams)) {
|
|
4502
4457
|
const param = exports.MessageParameter.fromKeyValuePair(kvp);
|
|
4503
4458
|
if (param !== void 0) parameters.push(param);
|
|
4504
4459
|
}
|
|
@@ -4853,9 +4808,7 @@ var Switch = class _Switch {
|
|
|
4853
4808
|
payload.putBytes(this.fullTrackName.serialize().toUint8Array());
|
|
4854
4809
|
payload.putVI(this.subscriptionRequestId);
|
|
4855
4810
|
payload.putVI(this.parameters.length);
|
|
4856
|
-
|
|
4857
|
-
payload.putBytes(param.serialize().toUint8Array());
|
|
4858
|
-
}
|
|
4811
|
+
payload.putBytes(serializeKvpList(this.parameters).toUint8Array());
|
|
4859
4812
|
const payloadBytes = payload.toUint8Array();
|
|
4860
4813
|
buf.putU16(payloadBytes.length);
|
|
4861
4814
|
buf.putBytes(payloadBytes);
|
|
@@ -4866,10 +4819,7 @@ var Switch = class _Switch {
|
|
|
4866
4819
|
const fullTrackName = buf.getFullTrackName();
|
|
4867
4820
|
const subscriptionRequestId = buf.getVI();
|
|
4868
4821
|
const paramCount = Number(buf.getVI());
|
|
4869
|
-
const parameters =
|
|
4870
|
-
for (let i = 0; i < paramCount; i++) {
|
|
4871
|
-
parameters.push(KeyValuePair.deserialize(buf));
|
|
4872
|
-
}
|
|
4822
|
+
const parameters = deserializeKvpList(buf, paramCount);
|
|
4873
4823
|
return new _Switch(requestId, fullTrackName, subscriptionRequestId, parameters);
|
|
4874
4824
|
}
|
|
4875
4825
|
};
|
|
@@ -7497,7 +7447,6 @@ var MOQtailClient = class _MOQtailClient {
|
|
|
7497
7447
|
* // Register the track for live subscription
|
|
7498
7448
|
* client.addOrUpdateTrack({
|
|
7499
7449
|
* fullTrackName: { namespace: ["camera"], name: "main" },
|
|
7500
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
7501
7450
|
* trackSource: { live: liveReadableStream },
|
|
7502
7451
|
* publisherPriority: 0 // highest priority
|
|
7503
7452
|
* });
|
|
@@ -7507,7 +7456,6 @@ var MOQtailClient = class _MOQtailClient {
|
|
|
7507
7456
|
* const cache = new MemoryObjectCache(); // Caches are not yet fully supported
|
|
7508
7457
|
* client.addOrUpdateTrack({
|
|
7509
7458
|
* fullTrackName: { namespace: ["camera"], name: "main" },
|
|
7510
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
7511
7459
|
* trackSource: { live: liveReadableStream, past: cache },
|
|
7512
7460
|
* publisherPriority: 8
|
|
7513
7461
|
* });
|
|
@@ -8995,6 +8943,8 @@ exports.VideoConfig = VideoConfig;
|
|
|
8995
8943
|
exports.VideoFrameMarking = VideoFrameMarking;
|
|
8996
8944
|
exports.applyMessageParameterUpdate = applyMessageParameterUpdate;
|
|
8997
8945
|
exports.controlMessageTypeFromBigInt = controlMessageTypeFromBigInt;
|
|
8946
|
+
exports.deserializeKvpList = deserializeKvpList;
|
|
8947
|
+
exports.deserializeKvpListUntilEmpty = deserializeKvpListUntilEmpty;
|
|
8998
8948
|
exports.fetchTypeFromBigInt = fetchTypeFromBigInt;
|
|
8999
8949
|
exports.filterTypeFromBigInt = filterTypeFromBigInt;
|
|
9000
8950
|
exports.groupOrderFromNumber = groupOrderFromNumber;
|
|
@@ -9005,6 +8955,7 @@ exports.logger = logger;
|
|
|
9005
8955
|
exports.messageParameterTypeFromNumber = messageParameterTypeFromNumber;
|
|
9006
8956
|
exports.publishDoneStatusCodeFromBigInt = publishDoneStatusCodeFromBigInt;
|
|
9007
8957
|
exports.requestErrorCodeFromBigInt = requestErrorCodeFromBigInt;
|
|
8958
|
+
exports.serializeKvpList = serializeKvpList;
|
|
9008
8959
|
exports.setLogEnabledModules = setLogEnabledModules;
|
|
9009
8960
|
exports.setLogLevel = setLogLevel;
|
|
9010
8961
|
exports.setupParameterTypeFromNumber = setupParameterTypeFromNumber;
|