@mx-space/api-client 1.13.2 → 1.14.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.
@@ -67,6 +67,7 @@ export class ActivityController<ResponseWrapper> implements IController {
67
67
  sid,
68
68
  ts,
69
69
  displayName,
70
+ readerId,
70
71
  }: {
71
72
  roomName: string
72
73
  position: number
@@ -75,6 +76,7 @@ export class ActivityController<ResponseWrapper> implements IController {
75
76
 
76
77
  displayName?: string
77
78
  ts?: number
79
+ readerId?: string
78
80
  }) {
79
81
  return this.proxy.presence.update.post({
80
82
  data: {
@@ -83,7 +85,7 @@ export class ActivityController<ResponseWrapper> implements IController {
83
85
  ts: ts || Date.now(),
84
86
  roomName,
85
87
  sid,
86
-
88
+ readerId,
87
89
  displayName,
88
90
  },
89
91
  })
@@ -10799,14 +10799,14 @@
10799
10799
  }
10800
10800
  });
10801
10801
 
10802
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/bind.js
10802
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js
10803
10803
  function bind(fn, thisArg) {
10804
10804
  return function wrap() {
10805
10805
  return fn.apply(thisArg, arguments);
10806
10806
  };
10807
10807
  }
10808
10808
 
10809
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/utils.js
10809
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js
10810
10810
  var { toString } = Object.prototype;
10811
10811
  var { getPrototypeOf } = Object;
10812
10812
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
@@ -11185,7 +11185,7 @@
11185
11185
  asap
11186
11186
  };
11187
11187
 
11188
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/AxiosError.js
11188
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js
11189
11189
  function AxiosError(message, code, config, request, response) {
11190
11190
  Error.call(this);
11191
11191
  if (Error.captureStackTrace) {
@@ -11198,7 +11198,10 @@
11198
11198
  code && (this.code = code);
11199
11199
  config && (this.config = config);
11200
11200
  request && (this.request = request);
11201
- response && (this.response = response);
11201
+ if (response) {
11202
+ this.response = response;
11203
+ this.status = response.status ? response.status : null;
11204
+ }
11202
11205
  }
11203
11206
  utils_default.inherits(AxiosError, Error, {
11204
11207
  toJSON: function toJSON() {
@@ -11217,7 +11220,7 @@
11217
11220
  // Axios
11218
11221
  config: utils_default.toJSONObject(this.config),
11219
11222
  code: this.code,
11220
- status: this.response && this.response.status ? this.response.status : null
11223
+ status: this.status
11221
11224
  };
11222
11225
  }
11223
11226
  });
@@ -11257,11 +11260,11 @@
11257
11260
  };
11258
11261
  var AxiosError_default = AxiosError;
11259
11262
 
11260
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/node/classes/FormData.js
11263
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/node/classes/FormData.js
11261
11264
  var import_form_data = __toESM(require_form_data(), 1);
11262
11265
  var FormData_default = import_form_data.default;
11263
11266
 
11264
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/toFormData.js
11267
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js
11265
11268
  function isVisitable(thing) {
11266
11269
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
11267
11270
  }
@@ -11373,7 +11376,7 @@
11373
11376
  }
11374
11377
  var toFormData_default = toFormData;
11375
11378
 
11376
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
11379
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
11377
11380
  function encode(str) {
11378
11381
  const charMap = {
11379
11382
  "!": "%21",
@@ -11406,7 +11409,7 @@
11406
11409
  };
11407
11410
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
11408
11411
 
11409
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/buildURL.js
11412
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js
11410
11413
  function encode2(val) {
11411
11414
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
11412
11415
  }
@@ -11432,7 +11435,7 @@
11432
11435
  return url2;
11433
11436
  }
11434
11437
 
11435
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/InterceptorManager.js
11438
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js
11436
11439
  var InterceptorManager = class {
11437
11440
  constructor() {
11438
11441
  this.handlers = [];
@@ -11496,18 +11499,18 @@
11496
11499
  };
11497
11500
  var InterceptorManager_default = InterceptorManager;
11498
11501
 
11499
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/defaults/transitional.js
11502
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js
11500
11503
  var transitional_default = {
11501
11504
  silentJSONParsing: true,
11502
11505
  forcedJSONParsing: true,
11503
11506
  clarifyTimeoutError: false
11504
11507
  };
11505
11508
 
11506
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11509
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11507
11510
  var import_url = __toESM(__require("url"), 1);
11508
11511
  var URLSearchParams_default = import_url.default.URLSearchParams;
11509
11512
 
11510
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/node/index.js
11513
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/node/index.js
11511
11514
  var node_default = {
11512
11515
  isNode: true,
11513
11516
  classes: {
@@ -11518,31 +11521,31 @@
11518
11521
  protocols: ["http", "https", "file", "data"]
11519
11522
  };
11520
11523
 
11521
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/common/utils.js
11524
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js
11522
11525
  var utils_exports = {};
11523
11526
  __export(utils_exports, {
11524
11527
  hasBrowserEnv: () => hasBrowserEnv,
11525
11528
  hasStandardBrowserEnv: () => hasStandardBrowserEnv,
11526
11529
  hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
11530
+ navigator: () => _navigator,
11527
11531
  origin: () => origin
11528
11532
  });
11529
11533
  var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
11530
- var hasStandardBrowserEnv = ((product) => {
11531
- return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
11532
- })(typeof navigator !== "undefined" && navigator.product);
11534
+ var _navigator = typeof navigator === "object" && navigator || void 0;
11535
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
11533
11536
  var hasStandardBrowserWebWorkerEnv = (() => {
11534
11537
  return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
11535
11538
  self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
11536
11539
  })();
11537
11540
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
11538
11541
 
11539
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/platform/index.js
11542
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js
11540
11543
  var platform_default = {
11541
11544
  ...utils_exports,
11542
11545
  ...node_default
11543
11546
  };
11544
11547
 
11545
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/toURLEncodedForm.js
11548
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
11546
11549
  function toURLEncodedForm(data, options) {
11547
11550
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
11548
11551
  visitor: function(value, key, path, helpers) {
@@ -11555,7 +11558,7 @@
11555
11558
  }, options));
11556
11559
  }
11557
11560
 
11558
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/formDataToJSON.js
11561
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js
11559
11562
  function parsePropPath(name) {
11560
11563
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
11561
11564
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -11608,7 +11611,7 @@
11608
11611
  }
11609
11612
  var formDataToJSON_default = formDataToJSON;
11610
11613
 
11611
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/defaults/index.js
11614
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js
11612
11615
  function stringifySafely(rawValue, parser, encoder) {
11613
11616
  if (utils_default.isString(rawValue)) {
11614
11617
  try {
@@ -11717,7 +11720,7 @@
11717
11720
  });
11718
11721
  var defaults_default = defaults;
11719
11722
 
11720
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/parseHeaders.js
11723
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js
11721
11724
  var ignoreDuplicateOf = utils_default.toObjectSet([
11722
11725
  "age",
11723
11726
  "authorization",
@@ -11762,7 +11765,7 @@
11762
11765
  return parsed;
11763
11766
  };
11764
11767
 
11765
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/AxiosHeaders.js
11768
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js
11766
11769
  var $internals = Symbol("internals");
11767
11770
  function normalizeHeader(header) {
11768
11771
  return header && String(header).trim().toLowerCase();
@@ -11983,7 +11986,7 @@
11983
11986
  utils_default.freezeMethods(AxiosHeaders);
11984
11987
  var AxiosHeaders_default = AxiosHeaders;
11985
11988
 
11986
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/transformData.js
11989
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js
11987
11990
  function transformData(fns, response) {
11988
11991
  const config = this || defaults_default;
11989
11992
  const context = response || config;
@@ -11996,12 +11999,12 @@
11996
11999
  return data;
11997
12000
  }
11998
12001
 
11999
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/cancel/isCancel.js
12002
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js
12000
12003
  function isCancel(value) {
12001
12004
  return !!(value && value.__CANCEL__);
12002
12005
  }
12003
12006
 
12004
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/cancel/CanceledError.js
12007
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js
12005
12008
  function CanceledError(message, config, request) {
12006
12009
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
12007
12010
  this.name = "CanceledError";
@@ -12011,7 +12014,7 @@
12011
12014
  });
12012
12015
  var CanceledError_default = CanceledError;
12013
12016
 
12014
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/settle.js
12017
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js
12015
12018
  function settle(resolve, reject, response) {
12016
12019
  const validateStatus2 = response.config.validateStatus;
12017
12020
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -12027,17 +12030,17 @@
12027
12030
  }
12028
12031
  }
12029
12032
 
12030
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/isAbsoluteURL.js
12033
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
12031
12034
  function isAbsoluteURL(url2) {
12032
12035
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
12033
12036
  }
12034
12037
 
12035
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/combineURLs.js
12038
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js
12036
12039
  function combineURLs(baseURL, relativeURL) {
12037
12040
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
12038
12041
  }
12039
12042
 
12040
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/buildFullPath.js
12043
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js
12041
12044
  function buildFullPath(baseURL, requestedURL) {
12042
12045
  if (baseURL && !isAbsoluteURL(requestedURL)) {
12043
12046
  return combineURLs(baseURL, requestedURL);
@@ -12045,7 +12048,7 @@
12045
12048
  return requestedURL;
12046
12049
  }
12047
12050
 
12048
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12051
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
12049
12052
  var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
12050
12053
  var import_http = __toESM(__require("http"), 1);
12051
12054
  var import_https = __toESM(__require("https"), 1);
@@ -12053,16 +12056,16 @@
12053
12056
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
12054
12057
  var import_zlib = __toESM(__require("zlib"), 1);
12055
12058
 
12056
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/env/data.js
12057
- var VERSION = "1.7.4";
12059
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js
12060
+ var VERSION = "1.7.7";
12058
12061
 
12059
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/parseProtocol.js
12062
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js
12060
12063
  function parseProtocol(url2) {
12061
12064
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
12062
12065
  return match && match[1] || "";
12063
12066
  }
12064
12067
 
12065
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/fromDataURI.js
12068
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/fromDataURI.js
12066
12069
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
12067
12070
  function fromDataURI(uri, asBlob, options) {
12068
12071
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -12091,10 +12094,10 @@
12091
12094
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
12092
12095
  }
12093
12096
 
12094
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12097
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
12095
12098
  var import_stream4 = __toESM(__require("stream"), 1);
12096
12099
 
12097
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/AxiosTransformStream.js
12100
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
12098
12101
  var import_stream = __toESM(__require("stream"), 1);
12099
12102
  var kInternals = Symbol("internals");
12100
12103
  var AxiosTransformStream = class extends import_stream.default.Transform {
@@ -12209,14 +12212,14 @@
12209
12212
  };
12210
12213
  var AxiosTransformStream_default = AxiosTransformStream;
12211
12214
 
12212
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12215
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
12213
12216
  var import_events = __require("events");
12214
12217
 
12215
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/formDataToStream.js
12218
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToStream.js
12216
12219
  var import_util = __require("util");
12217
12220
  var import_stream2 = __require("stream");
12218
12221
 
12219
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/readBlob.js
12222
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/readBlob.js
12220
12223
  var { asyncIterator } = Symbol;
12221
12224
  var readBlob = async function* (blob) {
12222
12225
  if (blob.stream) {
@@ -12231,7 +12234,7 @@
12231
12234
  };
12232
12235
  var readBlob_default = readBlob;
12233
12236
 
12234
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/formDataToStream.js
12237
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToStream.js
12235
12238
  var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
12236
12239
  var textEncoder = new import_util.TextEncoder();
12237
12240
  var CRLF = "\r\n";
@@ -12310,7 +12313,7 @@
12310
12313
  };
12311
12314
  var formDataToStream_default = formDataToStream;
12312
12315
 
12313
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12316
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12314
12317
  var import_stream3 = __toESM(__require("stream"), 1);
12315
12318
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
12316
12319
  __transform(chunk, encoding, callback) {
@@ -12332,7 +12335,7 @@
12332
12335
  };
12333
12336
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
12334
12337
 
12335
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/callbackify.js
12338
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/callbackify.js
12336
12339
  var callbackify = (fn, reducer) => {
12337
12340
  return utils_default.isAsyncFn(fn) ? function(...args) {
12338
12341
  const cb = args.pop();
@@ -12347,7 +12350,7 @@
12347
12350
  };
12348
12351
  var callbackify_default = callbackify;
12349
12352
 
12350
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/speedometer.js
12353
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js
12351
12354
  function speedometer(samplesCount, min) {
12352
12355
  samplesCount = samplesCount || 10;
12353
12356
  const bytes = new Array(samplesCount);
@@ -12383,7 +12386,7 @@
12383
12386
  }
12384
12387
  var speedometer_default = speedometer;
12385
12388
 
12386
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/throttle.js
12389
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js
12387
12390
  function throttle(fn, freq) {
12388
12391
  let timestamp = 0;
12389
12392
  let threshold = 1e3 / freq;
@@ -12418,7 +12421,7 @@
12418
12421
  }
12419
12422
  var throttle_default = throttle;
12420
12423
 
12421
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/progressEventReducer.js
12424
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js
12422
12425
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
12423
12426
  let bytesNotified = 0;
12424
12427
  const _speedometer = speedometer_default(50, 250);
@@ -12453,7 +12456,7 @@
12453
12456
  };
12454
12457
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
12455
12458
 
12456
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/http.js
12459
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/http.js
12457
12460
  var zlibOptions = {
12458
12461
  flush: import_zlib.default.constants.Z_SYNC_FLUSH,
12459
12462
  finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
@@ -12592,7 +12595,7 @@
12592
12595
  }
12593
12596
  }
12594
12597
  const fullPath = buildFullPath(config.baseURL, config.url);
12595
- const parsed = new URL(fullPath, utils_default.hasBrowserEnv ? platform_default.origin : void 0);
12598
+ const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
12596
12599
  const protocol = parsed.protocol || supportedProtocols[0];
12597
12600
  if (protocol === "data:") {
12598
12601
  let convertedData;
@@ -12751,7 +12754,7 @@
12751
12754
  if (config.socketPath) {
12752
12755
  options.socketPath = config.socketPath;
12753
12756
  } else {
12754
- options.hostname = parsed.hostname;
12757
+ options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
12755
12758
  options.port = parsed.port;
12756
12759
  setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
12757
12760
  }
@@ -12953,12 +12956,12 @@
12953
12956
  });
12954
12957
  };
12955
12958
 
12956
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/isURLSameOrigin.js
12959
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
12957
12960
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
12958
12961
  // Standard browser envs have full support of the APIs needed to test
12959
12962
  // whether the request URL is of the same origin as current location.
12960
12963
  function standardBrowserEnv() {
12961
- const msie = /(msie|trident)/i.test(navigator.userAgent);
12964
+ const msie = platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent);
12962
12965
  const urlParsingNode = document.createElement("a");
12963
12966
  let originURL;
12964
12967
  function resolveURL(url2) {
@@ -12994,7 +12997,7 @@
12994
12997
  }()
12995
12998
  );
12996
12999
 
12997
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/cookies.js
13000
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js
12998
13001
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
12999
13002
  // Standard browser envs support document.cookie
13000
13003
  {
@@ -13027,7 +13030,7 @@
13027
13030
  }
13028
13031
  );
13029
13032
 
13030
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/mergeConfig.js
13033
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js
13031
13034
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
13032
13035
  function mergeConfig(config1, config2) {
13033
13036
  config2 = config2 || {};
@@ -13107,7 +13110,7 @@
13107
13110
  return config;
13108
13111
  }
13109
13112
 
13110
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/resolveConfig.js
13113
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js
13111
13114
  var resolveConfig_default = (config) => {
13112
13115
  const newConfig = mergeConfig({}, config);
13113
13116
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
@@ -13140,7 +13143,7 @@
13140
13143
  return newConfig;
13141
13144
  };
13142
13145
 
13143
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/xhr.js
13146
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js
13144
13147
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
13145
13148
  var xhr_default = isXHRAdapterSupported && function(config) {
13146
13149
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -13267,42 +13270,43 @@
13267
13270
  });
13268
13271
  };
13269
13272
 
13270
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/composeSignals.js
13273
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js
13271
13274
  var composeSignals = (signals, timeout) => {
13272
- let controller = new AbortController();
13273
- let aborted;
13274
- const onabort = function(cancel) {
13275
- if (!aborted) {
13276
- aborted = true;
13277
- unsubscribe();
13278
- const err = cancel instanceof Error ? cancel : this.reason;
13279
- controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
13280
- }
13281
- };
13282
- let timer = timeout && setTimeout(() => {
13283
- onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
13284
- }, timeout);
13285
- const unsubscribe = () => {
13286
- if (signals) {
13287
- timer && clearTimeout(timer);
13275
+ const { length } = signals = signals ? signals.filter(Boolean) : [];
13276
+ if (timeout || length) {
13277
+ let controller = new AbortController();
13278
+ let aborted;
13279
+ const onabort = function(reason) {
13280
+ if (!aborted) {
13281
+ aborted = true;
13282
+ unsubscribe();
13283
+ const err = reason instanceof Error ? reason : this.reason;
13284
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
13285
+ }
13286
+ };
13287
+ let timer = timeout && setTimeout(() => {
13288
13288
  timer = null;
13289
- signals.forEach((signal2) => {
13290
- signal2 && (signal2.removeEventListener ? signal2.removeEventListener("abort", onabort) : signal2.unsubscribe(onabort));
13291
- });
13292
- signals = null;
13293
- }
13294
- };
13295
- signals.forEach((signal2) => signal2 && signal2.addEventListener && signal2.addEventListener("abort", onabort));
13296
- const { signal } = controller;
13297
- signal.unsubscribe = unsubscribe;
13298
- return [signal, () => {
13299
- timer && clearTimeout(timer);
13300
- timer = null;
13301
- }];
13289
+ onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
13290
+ }, timeout);
13291
+ const unsubscribe = () => {
13292
+ if (signals) {
13293
+ timer && clearTimeout(timer);
13294
+ timer = null;
13295
+ signals.forEach((signal2) => {
13296
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
13297
+ });
13298
+ signals = null;
13299
+ }
13300
+ };
13301
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
13302
+ const { signal } = controller;
13303
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
13304
+ return signal;
13305
+ }
13302
13306
  };
13303
13307
  var composeSignals_default = composeSignals;
13304
13308
 
13305
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/trackStream.js
13309
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js
13306
13310
  var streamChunk = function* (chunk, chunkSize) {
13307
13311
  let len = chunk.byteLength;
13308
13312
  if (!chunkSize || len < chunkSize) {
@@ -13317,13 +13321,31 @@
13317
13321
  pos = end;
13318
13322
  }
13319
13323
  };
13320
- var readBytes = async function* (iterable, chunkSize, encode3) {
13321
- for await (const chunk of iterable) {
13322
- yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : await encode3(String(chunk)), chunkSize);
13324
+ var readBytes = async function* (iterable, chunkSize) {
13325
+ for await (const chunk of readStream(iterable)) {
13326
+ yield* streamChunk(chunk, chunkSize);
13323
13327
  }
13324
13328
  };
13325
- var trackStream = (stream4, chunkSize, onProgress, onFinish, encode3) => {
13326
- const iterator = readBytes(stream4, chunkSize, encode3);
13329
+ var readStream = async function* (stream4) {
13330
+ if (stream4[Symbol.asyncIterator]) {
13331
+ yield* stream4;
13332
+ return;
13333
+ }
13334
+ const reader = stream4.getReader();
13335
+ try {
13336
+ for (; ; ) {
13337
+ const { done, value } = await reader.read();
13338
+ if (done) {
13339
+ break;
13340
+ }
13341
+ yield value;
13342
+ }
13343
+ } finally {
13344
+ await reader.cancel();
13345
+ }
13346
+ };
13347
+ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
13348
+ const iterator = readBytes(stream4, chunkSize);
13327
13349
  let bytes = 0;
13328
13350
  let done;
13329
13351
  let _onFinish = (e) => {
@@ -13361,7 +13383,7 @@
13361
13383
  });
13362
13384
  };
13363
13385
 
13364
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/fetch.js
13386
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js
13365
13387
  var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
13366
13388
  var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
13367
13389
  var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
@@ -13404,7 +13426,11 @@
13404
13426
  return body.size;
13405
13427
  }
13406
13428
  if (utils_default.isSpecCompliantForm(body)) {
13407
- return (await new Request(body).arrayBuffer()).byteLength;
13429
+ const _request = new Request(platform_default.origin, {
13430
+ method: "POST",
13431
+ body
13432
+ });
13433
+ return (await _request.arrayBuffer()).byteLength;
13408
13434
  }
13409
13435
  if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
13410
13436
  return body.byteLength;
@@ -13436,14 +13462,11 @@
13436
13462
  fetchOptions
13437
13463
  } = resolveConfig_default(config);
13438
13464
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
13439
- let [composedSignal, stopTimeout] = signal || cancelToken || timeout ? composeSignals_default([signal, cancelToken], timeout) : [];
13440
- let finished, request;
13441
- const onFinish = () => {
13442
- !finished && setTimeout(() => {
13443
- composedSignal && composedSignal.unsubscribe();
13444
- });
13445
- finished = true;
13446
- };
13465
+ let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
13466
+ let request;
13467
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
13468
+ composedSignal.unsubscribe();
13469
+ });
13447
13470
  let requestContentLength;
13448
13471
  try {
13449
13472
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
@@ -13461,12 +13484,13 @@
13461
13484
  requestContentLength,
13462
13485
  progressEventReducer(asyncDecorator(onUploadProgress))
13463
13486
  );
13464
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
13487
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
13465
13488
  }
13466
13489
  }
13467
13490
  if (!utils_default.isString(withCredentials)) {
13468
13491
  withCredentials = withCredentials ? "include" : "omit";
13469
13492
  }
13493
+ const isCredentialsSupported = "credentials" in Request.prototype;
13470
13494
  request = new Request(url2, {
13471
13495
  ...fetchOptions,
13472
13496
  signal: composedSignal,
@@ -13474,11 +13498,11 @@
13474
13498
  headers: headers.normalize().toJSON(),
13475
13499
  body: data,
13476
13500
  duplex: "half",
13477
- credentials: withCredentials
13501
+ credentials: isCredentialsSupported ? withCredentials : void 0
13478
13502
  });
13479
13503
  let response = await fetch(request);
13480
13504
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
13481
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
13505
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
13482
13506
  const options = {};
13483
13507
  ["status", "statusText", "headers"].forEach((prop) => {
13484
13508
  options[prop] = response[prop];
@@ -13491,15 +13515,14 @@
13491
13515
  response = new Response(
13492
13516
  trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
13493
13517
  flush && flush();
13494
- isStreamResponse && onFinish();
13495
- }, encodeText),
13518
+ unsubscribe && unsubscribe();
13519
+ }),
13496
13520
  options
13497
13521
  );
13498
13522
  }
13499
13523
  responseType = responseType || "text";
13500
13524
  let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
13501
- !isStreamResponse && onFinish();
13502
- stopTimeout && stopTimeout();
13525
+ !isStreamResponse && unsubscribe && unsubscribe();
13503
13526
  return await new Promise((resolve, reject) => {
13504
13527
  settle(resolve, reject, {
13505
13528
  data: responseData,
@@ -13511,7 +13534,7 @@
13511
13534
  });
13512
13535
  });
13513
13536
  } catch (err) {
13514
- onFinish();
13537
+ unsubscribe && unsubscribe();
13515
13538
  if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
13516
13539
  throw Object.assign(
13517
13540
  new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
@@ -13524,7 +13547,7 @@
13524
13547
  }
13525
13548
  });
13526
13549
 
13527
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/adapters/adapters.js
13550
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js
13528
13551
  var knownAdapters = {
13529
13552
  http: http_default,
13530
13553
  xhr: xhr_default,
@@ -13578,7 +13601,7 @@
13578
13601
  adapters: knownAdapters
13579
13602
  };
13580
13603
 
13581
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/dispatchRequest.js
13604
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js
13582
13605
  function throwIfCancellationRequested(config) {
13583
13606
  if (config.cancelToken) {
13584
13607
  config.cancelToken.throwIfRequested();
@@ -13623,7 +13646,7 @@
13623
13646
  });
13624
13647
  }
13625
13648
 
13626
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/validator.js
13649
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js
13627
13650
  var validators = {};
13628
13651
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
13629
13652
  validators[type] = function validator(thing) {
@@ -13681,7 +13704,7 @@
13681
13704
  validators
13682
13705
  };
13683
13706
 
13684
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/Axios.js
13707
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js
13685
13708
  var validators2 = validator_default.validators;
13686
13709
  var Axios = class {
13687
13710
  constructor(instanceConfig) {
@@ -13844,7 +13867,7 @@
13844
13867
  });
13845
13868
  var Axios_default = Axios;
13846
13869
 
13847
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/cancel/CancelToken.js
13870
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js
13848
13871
  var CancelToken = class _CancelToken {
13849
13872
  constructor(executor) {
13850
13873
  if (typeof executor !== "function") {
@@ -13916,6 +13939,15 @@
13916
13939
  this._listeners.splice(index, 1);
13917
13940
  }
13918
13941
  }
13942
+ toAbortSignal() {
13943
+ const controller = new AbortController();
13944
+ const abort = (err) => {
13945
+ controller.abort(err);
13946
+ };
13947
+ this.subscribe(abort);
13948
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
13949
+ return controller.signal;
13950
+ }
13919
13951
  /**
13920
13952
  * Returns an object that contains a new `CancelToken` and a function that, when called,
13921
13953
  * cancels the `CancelToken`.
@@ -13933,19 +13965,19 @@
13933
13965
  };
13934
13966
  var CancelToken_default = CancelToken;
13935
13967
 
13936
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/spread.js
13968
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js
13937
13969
  function spread(callback) {
13938
13970
  return function wrap(arr) {
13939
13971
  return callback.apply(null, arr);
13940
13972
  };
13941
13973
  }
13942
13974
 
13943
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/isAxiosError.js
13975
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js
13944
13976
  function isAxiosError(payload) {
13945
13977
  return utils_default.isObject(payload) && payload.isAxiosError === true;
13946
13978
  }
13947
13979
 
13948
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/helpers/HttpStatusCode.js
13980
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js
13949
13981
  var HttpStatusCode = {
13950
13982
  Continue: 100,
13951
13983
  SwitchingProtocols: 101,
@@ -14016,7 +14048,7 @@
14016
14048
  });
14017
14049
  var HttpStatusCode_default = HttpStatusCode;
14018
14050
 
14019
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/axios.js
14051
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js
14020
14052
  function createInstance(defaultConfig) {
14021
14053
  const context = new Axios_default(defaultConfig);
14022
14054
  const instance = bind(Axios_default.prototype.request, context);
@@ -14049,7 +14081,7 @@
14049
14081
  axios.default = axios;
14050
14082
  var axios_default = axios;
14051
14083
 
14052
- // ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/index.js
14084
+ // ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js
14053
14085
  var {
14054
14086
  Axios: Axios2,
14055
14087
  AxiosError: AxiosError2,
package/dist/index.cjs CHANGED
@@ -231,7 +231,8 @@ var ActivityController = class {
231
231
  roomName,
232
232
  sid,
233
233
  ts,
234
- displayName
234
+ displayName,
235
+ readerId
235
236
  }) {
236
237
  return this.proxy.presence.update.post({
237
238
  data: {
@@ -240,6 +241,7 @@ var ActivityController = class {
240
241
  ts: ts || Date.now(),
241
242
  roomName,
242
243
  sid,
244
+ readerId,
243
245
  displayName
244
246
  }
245
247
  });
package/dist/index.d.cts CHANGED
@@ -362,13 +362,14 @@ declare class ActivityController<ResponseWrapper> implements IController {
362
362
  *
363
363
  * @support core >= 5.0.0
364
364
  */
365
- updatePresence({ identity, position, roomName, sid, ts, displayName, }: {
365
+ updatePresence({ identity, position, roomName, sid, ts, displayName, readerId, }: {
366
366
  roomName: string;
367
367
  position: number;
368
368
  identity: string;
369
369
  sid: string;
370
370
  displayName?: string;
371
371
  ts?: number;
372
+ readerId?: string;
372
373
  }): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
373
374
  [key: string]: any;
374
375
  data: unknown;
package/dist/index.d.ts CHANGED
@@ -362,13 +362,14 @@ declare class ActivityController<ResponseWrapper> implements IController {
362
362
  *
363
363
  * @support core >= 5.0.0
364
364
  */
365
- updatePresence({ identity, position, roomName, sid, ts, displayName, }: {
365
+ updatePresence({ identity, position, roomName, sid, ts, displayName, readerId, }: {
366
366
  roomName: string;
367
367
  position: number;
368
368
  identity: string;
369
369
  sid: string;
370
370
  displayName?: string;
371
371
  ts?: number;
372
+ readerId?: string;
372
373
  }): RequestProxyResult<unknown, ResponseWrapper, ResponseWrapper extends unknown ? {
373
374
  [key: string]: any;
374
375
  data: unknown;
@@ -166,7 +166,8 @@
166
166
  roomName,
167
167
  sid,
168
168
  ts,
169
- displayName
169
+ displayName,
170
+ readerId
170
171
  }) {
171
172
  return this.proxy.presence.update.post({
172
173
  data: {
@@ -175,6 +176,7 @@
175
176
  ts: ts || Date.now(),
176
177
  roomName,
177
178
  sid,
179
+ readerId,
178
180
  displayName
179
181
  }
180
182
  });
package/dist/index.js CHANGED
@@ -164,7 +164,8 @@ var ActivityController = class {
164
164
  roomName,
165
165
  sid,
166
166
  ts,
167
- displayName
167
+ displayName,
168
+ readerId
168
169
  }) {
169
170
  return this.proxy.presence.update.post({
170
171
  data: {
@@ -173,6 +174,7 @@ var ActivityController = class {
173
174
  ts: ts || Date.now(),
174
175
  roomName,
175
176
  sid,
177
+ readerId,
176
178
  displayName
177
179
  }
178
180
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "1.13.2",
3
+ "version": "1.14.0",
4
4
  "type": "module",
5
5
  "description": "A api client for mx-space server@next",
6
6
  "author": "Innei",