wapi-client 0.10.11 → 0.10.13

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.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  isImportDataFnInput
48
48
  } from "./fns/import-data/import-data.guards";
49
49
  var _a;
50
- var CLIENT_VERSION = (_a = '0.10.11') != null ? _a : "";
50
+ var CLIENT_VERSION = (_a = '0.10.13') != null ? _a : "";
51
51
  var Client = class {
52
52
  /**
53
53
  * @internal
@@ -57,13 +57,17 @@ var Client = class {
57
57
  this.api = _apiClient;
58
58
  this.$connect = _apiClient.$connect;
59
59
  if (initialConf) {
60
- this.configure(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, initialConf.token && { token: initialConf.token }), initialConf.sendingTimeout && {
60
+ this.configure(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, initialConf.token && { token: initialConf.token }), initialConf.sendingTimeout && {
61
61
  sendingTimeout: initialConf.sendingTimeout
62
62
  }), initialConf.connectingTimeout && {
63
63
  connectingTimeout: initialConf.connectingTimeout
64
64
  }), initialConf.reconnectingTimeout && {
65
65
  reconnectingTimeout: initialConf.reconnectingTimeout
66
- }), initialConf.hooks && { hooks: initialConf.hooks }));
66
+ }), initialConf.hooks && { hooks: initialConf.hooks }), initialConf.connectionName && {
67
+ connectionName: initialConf.connectionName
68
+ }), initialConf.httpSkipInitialAuthConnection && {
69
+ httpSkipInitialAuthConnection: initialConf.httpSkipInitialAuthConnection
70
+ }));
67
71
  }
68
72
  }
69
73
  /**
@@ -159,14 +163,6 @@ var Client = class {
159
163
  }
160
164
  return this;
161
165
  }
162
- /**
163
- * Get current config key value (token)
164
- * ```javascript
165
- *
166
- * const token = wapiClient.getConfig('token');
167
- *
168
- * ```
169
- */
170
166
  getConfig(key) {
171
167
  return this.config[key];
172
168
  }
@@ -1801,7 +1797,9 @@ function createClientWithWS(opts, config) {
1801
1797
  function createClientWithHttp(opts, config) {
1802
1798
  const httpClient = createHttpClient(opts, {
1803
1799
  connectingTimeout: config == null ? void 0 : config.connectingTimeout,
1804
- reconnectingTimeout: config == null ? void 0 : config.reconnectingTimeout
1800
+ reconnectingTimeout: config == null ? void 0 : config.reconnectingTimeout,
1801
+ httpSkipInitialAuthConnection: config == null ? void 0 : config.httpSkipInitialAuthConnection,
1802
+ connectionName: config == null ? void 0 : config.connectionName
1805
1803
  });
1806
1804
  return new Client(httpClient, config);
1807
1805
  }
@@ -699,7 +699,7 @@ function categorizeErrorCode(code) {
699
699
  const type = ERROR_CODE_TO_TYPE[code];
700
700
  if (!type) {
701
701
  const group2 = Object.entries(ERROR_GROUPS).find(
702
- ([key, group3]) => code >= group3.min && code <= group3.max
702
+ ([, group3]) => code >= group3.min && code <= group3.max
703
703
  );
704
704
  return {
705
705
  group: group2 == null ? void 0 : group2[0],
@@ -722,7 +722,9 @@ function categorizeErrorCode(code) {
722
722
  };
723
723
  }
724
724
  function getError({ code, message, data }) {
725
- let { group, type } = categorizeErrorCode(code);
725
+ const categoryInfo = categorizeErrorCode(code);
726
+ let type = categoryInfo.type;
727
+ const group = categoryInfo.group;
726
728
  message = message && message !== type ? message : ERRORS[type].description;
727
729
  let novelCode = void 0;
728
730
  if (group && group !== "JSONRPC" && type === void 0) {
@@ -661,7 +661,7 @@ function categorizeErrorCode(code) {
661
661
  const type = ERROR_CODE_TO_TYPE[code];
662
662
  if (!type) {
663
663
  const group2 = Object.entries(ERROR_GROUPS).find(
664
- ([key, group3]) => code >= group3.min && code <= group3.max
664
+ ([, group3]) => code >= group3.min && code <= group3.max
665
665
  );
666
666
  return {
667
667
  group: group2 == null ? void 0 : group2[0],
@@ -684,7 +684,9 @@ function categorizeErrorCode(code) {
684
684
  };
685
685
  }
686
686
  function getError({ code, message, data }) {
687
- let { group, type } = categorizeErrorCode(code);
687
+ const categoryInfo = categorizeErrorCode(code);
688
+ let type = categoryInfo.type;
689
+ const group = categoryInfo.group;
688
690
  message = message && message !== type ? message : ERRORS[type].description;
689
691
  let novelCode = void 0;
690
692
  if (group && group !== "JSONRPC" && type === void 0) {
@@ -699,7 +699,7 @@ function categorizeErrorCode(code) {
699
699
  const type = ERROR_CODE_TO_TYPE[code];
700
700
  if (!type) {
701
701
  const group2 = Object.entries(ERROR_GROUPS).find(
702
- ([key, group3]) => code >= group3.min && code <= group3.max
702
+ ([, group3]) => code >= group3.min && code <= group3.max
703
703
  );
704
704
  return {
705
705
  group: group2 == null ? void 0 : group2[0],
@@ -722,7 +722,9 @@ function categorizeErrorCode(code) {
722
722
  };
723
723
  }
724
724
  function getError({ code, message, data }) {
725
- let { group, type } = categorizeErrorCode(code);
725
+ const categoryInfo = categorizeErrorCode(code);
726
+ let type = categoryInfo.type;
727
+ const group = categoryInfo.group;
726
728
  message = message && message !== type ? message : ERRORS[type].description;
727
729
  let novelCode = void 0;
728
730
  if (group && group !== "JSONRPC" && type === void 0) {
@@ -661,7 +661,7 @@ function categorizeErrorCode(code) {
661
661
  const type = ERROR_CODE_TO_TYPE[code];
662
662
  if (!type) {
663
663
  const group2 = Object.entries(ERROR_GROUPS).find(
664
- ([key, group3]) => code >= group3.min && code <= group3.max
664
+ ([, group3]) => code >= group3.min && code <= group3.max
665
665
  );
666
666
  return {
667
667
  group: group2 == null ? void 0 : group2[0],
@@ -684,7 +684,9 @@ function categorizeErrorCode(code) {
684
684
  };
685
685
  }
686
686
  function getError({ code, message, data }) {
687
- let { group, type } = categorizeErrorCode(code);
687
+ const categoryInfo = categorizeErrorCode(code);
688
+ let type = categoryInfo.type;
689
+ const group = categoryInfo.group;
688
690
  message = message && message !== type ? message : ERRORS[type].description;
689
691
  let novelCode = void 0;
690
692
  if (group && group !== "JSONRPC" && type === void 0) {
@@ -47,7 +47,7 @@ var ReadStream = class extends import_stream.Readable {
47
47
  constructor(options) {
48
48
  super(options);
49
49
  }
50
- // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-function
50
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
51
51
  _read(size) {
52
52
  }
53
53
  };
@@ -29,7 +29,7 @@ var ReadStream = class extends Readable {
29
29
  constructor(options) {
30
30
  super(options);
31
31
  }
32
- // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-function
32
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
33
  _read(size) {
34
34
  }
35
35
  };
@@ -224,7 +224,8 @@ function getConnectionUrl(config) {
224
224
  apikey: config.apikey,
225
225
  apisecret: config.apisecret,
226
226
  db: config.database,
227
- clientVersion: config.clientVersion
227
+ clientVersion: config.clientVersion,
228
+ connectionName: config.connectionName
228
229
  });
229
230
  }
230
231
  function getConnectionParams(config) {
@@ -181,7 +181,8 @@ function getConnectionUrl(config) {
181
181
  apikey: config.apikey,
182
182
  apisecret: config.apisecret,
183
183
  db: config.database,
184
- clientVersion: config.clientVersion
184
+ clientVersion: config.clientVersion,
185
+ connectionName: config.connectionName
185
186
  });
186
187
  }
187
188
  function getConnectionParams(config) {
@@ -707,7 +707,8 @@ function getConnectionUrl(config) {
707
707
  apikey: config.apikey,
708
708
  apisecret: config.apisecret,
709
709
  db: config.database,
710
- clientVersion: config.clientVersion
710
+ clientVersion: config.clientVersion,
711
+ connectionName: config.connectionName
711
712
  });
712
713
  }
713
714
  function getConnectionParams(config) {
package/dist/lib/utils.js CHANGED
@@ -683,7 +683,8 @@ function getConnectionUrl(config) {
683
683
  apikey: config.apikey,
684
684
  apisecret: config.apisecret,
685
685
  db: config.database,
686
- clientVersion: config.clientVersion
686
+ clientVersion: config.clientVersion,
687
+ connectionName: config.connectionName
687
688
  });
688
689
  }
689
690
  function getConnectionParams(config) {
@@ -3175,11 +3175,12 @@ var require_utils = __commonJS({
3175
3175
  "node_modules/fast-uri/lib/utils.js"(exports, module2) {
3176
3176
  "use strict";
3177
3177
  var { HEX } = require_scopedChars();
3178
+ var IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
3178
3179
  function normalizeIPv4(host) {
3179
3180
  if (findToken(host, ".") < 3) {
3180
3181
  return { host, isIPV4: false };
3181
3182
  }
3182
- const matches = host.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u) || [];
3183
+ const matches = host.match(IPV4_REG) || [];
3183
3184
  const [address] = matches;
3184
3185
  if (address) {
3185
3186
  return { host: stripLeadingZeros(address, "."), isIPV4: true };
@@ -3265,7 +3266,7 @@ var require_utils = __commonJS({
3265
3266
  output.address = address.join("");
3266
3267
  return output;
3267
3268
  }
3268
- function normalizeIPv6(host, opts = {}) {
3269
+ function normalizeIPv6(host) {
3269
3270
  if (findToken(host, ":") < 2) {
3270
3271
  return { host, isIPV6: false };
3271
3272
  }
@@ -3362,7 +3363,7 @@ var require_utils = __commonJS({
3362
3363
  }
3363
3364
  return components;
3364
3365
  }
3365
- function recomposeAuthority(components, options) {
3366
+ function recomposeAuthority(components) {
3366
3367
  const uriTokens = [];
3367
3368
  if (components.userinfo !== void 0) {
3368
3369
  uriTokens.push(components.userinfo);
@@ -3374,7 +3375,7 @@ var require_utils = __commonJS({
3374
3375
  if (ipV4res.isIPV4) {
3375
3376
  host = ipV4res.host;
3376
3377
  } else {
3377
- const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false });
3378
+ const ipV6res = normalizeIPv6(ipV4res.host);
3378
3379
  if (ipV6res.isIPV6 === true) {
3379
3380
  host = `[${ipV6res.escapedHost}]`;
3380
3381
  } else {
@@ -3404,7 +3405,7 @@ var require_utils = __commonJS({
3404
3405
  var require_schemes = __commonJS({
3405
3406
  "node_modules/fast-uri/lib/schemes.js"(exports, module2) {
3406
3407
  "use strict";
3407
- var UUID_REG = /^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;
3408
+ var UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu;
3408
3409
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3409
3410
  function isSecure(wsComponents) {
3410
3411
  return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
@@ -3665,10 +3666,9 @@ var require_fast_uri = __commonJS({
3665
3666
  }
3666
3667
  }
3667
3668
  if (options.reference !== "suffix" && components.scheme) {
3668
- uriTokens.push(components.scheme);
3669
- uriTokens.push(":");
3669
+ uriTokens.push(components.scheme, ":");
3670
3670
  }
3671
- const authority = recomposeAuthority(components, options);
3671
+ const authority = recomposeAuthority(components);
3672
3672
  if (authority !== void 0) {
3673
3673
  if (options.reference !== "suffix") {
3674
3674
  uriTokens.push("//");
@@ -3689,16 +3689,14 @@ var require_fast_uri = __commonJS({
3689
3689
  uriTokens.push(s);
3690
3690
  }
3691
3691
  if (components.query !== void 0) {
3692
- uriTokens.push("?");
3693
- uriTokens.push(components.query);
3692
+ uriTokens.push("?", components.query);
3694
3693
  }
3695
3694
  if (components.fragment !== void 0) {
3696
- uriTokens.push("#");
3697
- uriTokens.push(components.fragment);
3695
+ uriTokens.push("#", components.fragment);
3698
3696
  }
3699
3697
  return uriTokens.join("");
3700
3698
  }
3701
- var hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
3699
+ var hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
3702
3700
  function nonSimpleDomain(value) {
3703
3701
  let code = 0;
3704
3702
  for (let i = 0, len = value.length; i < len; ++i) {
@@ -3739,7 +3737,7 @@ var require_fast_uri = __commonJS({
3739
3737
  if (parsed.host) {
3740
3738
  const ipv4result = normalizeIPv4(parsed.host);
3741
3739
  if (ipv4result.isIPV4 === false) {
3742
- const ipv6result = normalizeIPv6(ipv4result.host, { isIPV4: false });
3740
+ const ipv6result = normalizeIPv6(ipv4result.host);
3743
3741
  parsed.host = ipv6result.host.toLowerCase();
3744
3742
  isIP = ipv6result.isIPV6;
3745
3743
  } else {
@@ -3747,7 +3745,7 @@ var require_fast_uri = __commonJS({
3747
3745
  isIP = true;
3748
3746
  }
3749
3747
  }
3750
- if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && !parsed.path && parsed.query === void 0) {
3748
+ if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) {
3751
3749
  parsed.reference = "same-document";
3752
3750
  } else if (parsed.scheme === void 0) {
3753
3751
  parsed.reference = "relative";
@@ -3773,16 +3771,13 @@ var require_fast_uri = __commonJS({
3773
3771
  if (gotEncoding && parsed.scheme !== void 0) {
3774
3772
  parsed.scheme = unescape(parsed.scheme);
3775
3773
  }
3776
- if (gotEncoding && parsed.userinfo !== void 0) {
3777
- parsed.userinfo = unescape(parsed.userinfo);
3778
- }
3779
3774
  if (gotEncoding && parsed.host !== void 0) {
3780
3775
  parsed.host = unescape(parsed.host);
3781
3776
  }
3782
- if (parsed.path !== void 0 && parsed.path.length) {
3777
+ if (parsed.path) {
3783
3778
  parsed.path = escape(unescape(parsed.path));
3784
3779
  }
3785
- if (parsed.fragment !== void 0 && parsed.fragment.length) {
3780
+ if (parsed.fragment) {
3786
3781
  parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3787
3782
  }
3788
3783
  }
@@ -3170,11 +3170,12 @@ var require_utils = __commonJS({
3170
3170
  "node_modules/fast-uri/lib/utils.js"(exports, module) {
3171
3171
  "use strict";
3172
3172
  var { HEX } = require_scopedChars();
3173
+ var IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
3173
3174
  function normalizeIPv4(host) {
3174
3175
  if (findToken(host, ".") < 3) {
3175
3176
  return { host, isIPV4: false };
3176
3177
  }
3177
- const matches = host.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u) || [];
3178
+ const matches = host.match(IPV4_REG) || [];
3178
3179
  const [address] = matches;
3179
3180
  if (address) {
3180
3181
  return { host: stripLeadingZeros(address, "."), isIPV4: true };
@@ -3260,7 +3261,7 @@ var require_utils = __commonJS({
3260
3261
  output.address = address.join("");
3261
3262
  return output;
3262
3263
  }
3263
- function normalizeIPv6(host, opts = {}) {
3264
+ function normalizeIPv6(host) {
3264
3265
  if (findToken(host, ":") < 2) {
3265
3266
  return { host, isIPV6: false };
3266
3267
  }
@@ -3357,7 +3358,7 @@ var require_utils = __commonJS({
3357
3358
  }
3358
3359
  return components;
3359
3360
  }
3360
- function recomposeAuthority(components, options) {
3361
+ function recomposeAuthority(components) {
3361
3362
  const uriTokens = [];
3362
3363
  if (components.userinfo !== void 0) {
3363
3364
  uriTokens.push(components.userinfo);
@@ -3369,7 +3370,7 @@ var require_utils = __commonJS({
3369
3370
  if (ipV4res.isIPV4) {
3370
3371
  host = ipV4res.host;
3371
3372
  } else {
3372
- const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false });
3373
+ const ipV6res = normalizeIPv6(ipV4res.host);
3373
3374
  if (ipV6res.isIPV6 === true) {
3374
3375
  host = `[${ipV6res.escapedHost}]`;
3375
3376
  } else {
@@ -3399,7 +3400,7 @@ var require_utils = __commonJS({
3399
3400
  var require_schemes = __commonJS({
3400
3401
  "node_modules/fast-uri/lib/schemes.js"(exports, module) {
3401
3402
  "use strict";
3402
- var UUID_REG = /^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;
3403
+ var UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu;
3403
3404
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3404
3405
  function isSecure(wsComponents) {
3405
3406
  return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
@@ -3660,10 +3661,9 @@ var require_fast_uri = __commonJS({
3660
3661
  }
3661
3662
  }
3662
3663
  if (options.reference !== "suffix" && components.scheme) {
3663
- uriTokens.push(components.scheme);
3664
- uriTokens.push(":");
3664
+ uriTokens.push(components.scheme, ":");
3665
3665
  }
3666
- const authority = recomposeAuthority(components, options);
3666
+ const authority = recomposeAuthority(components);
3667
3667
  if (authority !== void 0) {
3668
3668
  if (options.reference !== "suffix") {
3669
3669
  uriTokens.push("//");
@@ -3684,16 +3684,14 @@ var require_fast_uri = __commonJS({
3684
3684
  uriTokens.push(s);
3685
3685
  }
3686
3686
  if (components.query !== void 0) {
3687
- uriTokens.push("?");
3688
- uriTokens.push(components.query);
3687
+ uriTokens.push("?", components.query);
3689
3688
  }
3690
3689
  if (components.fragment !== void 0) {
3691
- uriTokens.push("#");
3692
- uriTokens.push(components.fragment);
3690
+ uriTokens.push("#", components.fragment);
3693
3691
  }
3694
3692
  return uriTokens.join("");
3695
3693
  }
3696
- var hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
3694
+ var hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
3697
3695
  function nonSimpleDomain(value) {
3698
3696
  let code = 0;
3699
3697
  for (let i = 0, len = value.length; i < len; ++i) {
@@ -3734,7 +3732,7 @@ var require_fast_uri = __commonJS({
3734
3732
  if (parsed.host) {
3735
3733
  const ipv4result = normalizeIPv4(parsed.host);
3736
3734
  if (ipv4result.isIPV4 === false) {
3737
- const ipv6result = normalizeIPv6(ipv4result.host, { isIPV4: false });
3735
+ const ipv6result = normalizeIPv6(ipv4result.host);
3738
3736
  parsed.host = ipv6result.host.toLowerCase();
3739
3737
  isIP = ipv6result.isIPV6;
3740
3738
  } else {
@@ -3742,7 +3740,7 @@ var require_fast_uri = __commonJS({
3742
3740
  isIP = true;
3743
3741
  }
3744
3742
  }
3745
- if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && !parsed.path && parsed.query === void 0) {
3743
+ if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) {
3746
3744
  parsed.reference = "same-document";
3747
3745
  } else if (parsed.scheme === void 0) {
3748
3746
  parsed.reference = "relative";
@@ -3768,16 +3766,13 @@ var require_fast_uri = __commonJS({
3768
3766
  if (gotEncoding && parsed.scheme !== void 0) {
3769
3767
  parsed.scheme = unescape(parsed.scheme);
3770
3768
  }
3771
- if (gotEncoding && parsed.userinfo !== void 0) {
3772
- parsed.userinfo = unescape(parsed.userinfo);
3773
- }
3774
3769
  if (gotEncoding && parsed.host !== void 0) {
3775
3770
  parsed.host = unescape(parsed.host);
3776
3771
  }
3777
- if (parsed.path !== void 0 && parsed.path.length) {
3772
+ if (parsed.path) {
3778
3773
  parsed.path = escape(unescape(parsed.path));
3779
3774
  }
3780
- if (parsed.fragment !== void 0 && parsed.fragment.length) {
3775
+ if (parsed.fragment) {
3781
3776
  parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3782
3777
  }
3783
3778
  }
@@ -12029,6 +12029,7 @@ declare module 'wapi-client/api/ws-client' {
12029
12029
  export interface EWapiConnectionOptions extends WapiConnectionOptions {
12030
12030
  rejectUnauthorized: boolean;
12031
12031
  clientVersion: string;
12032
+ connectionName?: string;
12032
12033
  }
12033
12034
  export class WsClient extends BaseClient {
12034
12035
  private _pingTimeout;
@@ -12065,6 +12066,8 @@ declare module 'wapi-client/api/index' {
12065
12066
  export interface ConnectionConfig {
12066
12067
  connectingTimeout?: number;
12067
12068
  reconnectingTimeout?: number;
12069
+ connectionName?: string;
12070
+ httpSkipInitialAuthConnection?: boolean;
12068
12071
  }
12069
12072
  export { BaseClient, WsClient, HttpClient, createWsClient, createHttpClient };
12070
12073
  interface JSONRPCRequestSchema { [key: string]: any; }
@@ -12212,7 +12215,8 @@ declare module 'wapi-client/client' {
12212
12215
  *
12213
12216
  * ```
12214
12217
  */
12215
- getConfig(key: keyof Omit<ClientConfig, 'hooks'>): number | string | undefined;
12218
+ getConfig(key: 'httpSkipInitialAuthConnection'): boolean | undefined;
12219
+ getConfig(key: keyof Omit<ClientConfig, 'hooks' | 'httpSkipInitialAuthConnection'>): number | string | undefined;
12216
12220
  /**
12217
12221
  *
12218
12222
  * Aggregate Transfers using either a simple filter or queryBuilder