@uipath/conversational-tool 1.205.0-preview.277 → 1.206.0-preview.279

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.
@@ -1,15 +1,14 @@
1
1
  import {
2
+ getOrCreateClient,
2
3
  createTrack,
3
- createTrackEvent,
4
- getOrCreateClient
5
- } from "./tool-nkyhbf79.js";
6
- import"./tool-mpvp5rqs.js";
4
+ createTrackEvent
5
+ } from "./tool-9v6hwcm1.js";
7
6
  import {
7
+ __toESM,
8
8
  __commonJS,
9
9
  __export,
10
- __require,
11
- __toESM
12
- } from "./tool-1yh8g550.js";
10
+ __require
11
+ } from "./tool-6an893wm.js";
13
12
 
14
13
  // ../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js
15
14
  var require_XMLHttpRequest = __commonJS(function(exports, module) {
@@ -170,13 +169,13 @@ var require_XMLHttpRequest = __commonJS(function(exports, module) {
170
169
  throw new Error("XMLHttpRequest: Only GET method is supported");
171
170
  }
172
171
  if (settings.async) {
173
- fs.readFile(unescape(url.pathname), function(error, data2) {
172
+ fs.readFile(unescape(url.pathname), function(error, data) {
174
173
  if (error) {
175
174
  self.handleError(error, error.errno || -1);
176
175
  } else {
177
176
  self.status = 200;
178
- self.responseText = data2.toString("utf8");
179
- self.response = data2;
177
+ self.responseText = data.toString("utf8");
178
+ self.response = data;
180
179
  setState(self.DONE);
181
180
  }
182
181
  });
@@ -241,16 +240,16 @@ var require_XMLHttpRequest = __commonJS(function(exports, module) {
241
240
  var doRequest = ssl ? https.request : http.request;
242
241
  sendFlag = true;
243
242
  self.dispatchEvent("readystatechange");
244
- var responseHandler = function(resp2) {
245
- response = resp2;
243
+ var responseHandler = function(resp) {
244
+ response = resp;
246
245
  if (response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {
247
246
  settings.url = response.headers.location;
248
- var url2 = Url.parse(settings.url);
249
- host = url2.hostname;
247
+ var url = Url.parse(settings.url);
248
+ host = url.hostname;
250
249
  var newOptions = {
251
- hostname: url2.hostname,
252
- port: url2.port,
253
- path: url2.path,
250
+ hostname: url.hostname,
251
+ port: url.port,
252
+ path: url.path,
254
253
  method: response.statusCode === 303 ? "GET" : settings.method,
255
254
  headers
256
255
  };
@@ -271,8 +270,8 @@ var require_XMLHttpRequest = __commonJS(function(exports, module) {
271
270
  self.status = response.statusCode;
272
271
  response.on("data", function(chunk) {
273
272
  if (chunk) {
274
- var data2 = Buffer.from(chunk);
275
- self.response = Buffer.concat([self.response, data2]);
273
+ var data = Buffer.from(chunk);
274
+ self.response = Buffer.concat([self.response, data]);
276
275
  }
277
276
  if (sendFlag) {
278
277
  setState(self.LOADING);
@@ -422,13 +421,13 @@ var require_ms = __commonJS(function(exports, module) {
422
421
  options = options || {};
423
422
  var type = typeof val;
424
423
  if (type === "string" && val.length > 0) {
425
- return parse2(val);
424
+ return parse(val);
426
425
  } else if (type === "number" && isFinite(val)) {
427
426
  return options.long ? fmtLong(val) : fmtShort(val);
428
427
  }
429
428
  throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
430
429
  };
431
- function parse2(str) {
430
+ function parse(str) {
432
431
  str = String(str);
433
432
  if (str.length > 100) {
434
433
  return;
@@ -1082,8 +1081,8 @@ var require_node = __commonJS(function(exports, module) {
1082
1081
  return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
1083
1082
  }
1084
1083
  function formatArgs(args) {
1085
- const { namespace: name, useColors: useColors2 } = this;
1086
- if (useColors2) {
1084
+ const { namespace: name, useColors } = this;
1085
+ if (useColors) {
1087
1086
  const c = this.color;
1088
1087
  const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
1089
1088
  const prefix = ` ${colorCode};1m${name} \x1B[0m`;
@@ -1168,19 +1167,19 @@ var require_constants = __commonJS(function(exports, module) {
1168
1167
  var require_buffer_util = __commonJS(function(exports, module) {
1169
1168
  var { EMPTY_BUFFER } = require_constants();
1170
1169
  var FastBuffer = Buffer[Symbol.species];
1171
- function concat(list, totalLength2) {
1170
+ function concat(list, totalLength) {
1172
1171
  if (list.length === 0)
1173
1172
  return EMPTY_BUFFER;
1174
1173
  if (list.length === 1)
1175
1174
  return list[0];
1176
- const target = Buffer.allocUnsafe(totalLength2);
1175
+ const target = Buffer.allocUnsafe(totalLength);
1177
1176
  let offset = 0;
1178
1177
  for (let i = 0;i < list.length; i++) {
1179
1178
  const buf = list[i];
1180
1179
  target.set(buf, offset);
1181
1180
  offset += buf.length;
1182
1181
  }
1183
- if (offset < totalLength2) {
1182
+ if (offset < totalLength) {
1184
1183
  return new FastBuffer(target.buffer, target.byteOffset, offset);
1185
1184
  }
1186
1185
  return target;
@@ -1201,8 +1200,8 @@ var require_buffer_util = __commonJS(function(exports, module) {
1201
1200
  }
1202
1201
  return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length);
1203
1202
  }
1204
- function toBuffer2(data) {
1205
- toBuffer2.readOnly = true;
1203
+ function toBuffer(data) {
1204
+ toBuffer.readOnly = true;
1206
1205
  if (Buffer.isBuffer(data))
1207
1206
  return data;
1208
1207
  let buf;
@@ -1212,7 +1211,7 @@ var require_buffer_util = __commonJS(function(exports, module) {
1212
1211
  buf = new FastBuffer(data.buffer, data.byteOffset, data.byteLength);
1213
1212
  } else {
1214
1213
  buf = Buffer.from(data);
1215
- toBuffer2.readOnly = false;
1214
+ toBuffer.readOnly = false;
1216
1215
  }
1217
1216
  return buf;
1218
1217
  }
@@ -1220,17 +1219,17 @@ var require_buffer_util = __commonJS(function(exports, module) {
1220
1219
  concat,
1221
1220
  mask: _mask,
1222
1221
  toArrayBuffer,
1223
- toBuffer: toBuffer2,
1222
+ toBuffer,
1224
1223
  unmask: _unmask
1225
1224
  };
1226
1225
  if (!process.env.WS_NO_BUFFER_UTIL) {
1227
1226
  try {
1228
1227
  const bufferUtil = (()=>{throw new Error("Cannot require module "+"bufferutil");})();
1229
- module.exports.mask = function(source, mask, output, offset, length) {
1228
+ module.exports.mask = function(source, mask2, output, offset, length) {
1230
1229
  if (length < 48)
1231
- _mask(source, mask, output, offset, length);
1230
+ _mask(source, mask2, output, offset, length);
1232
1231
  else
1233
- bufferUtil.mask(source, mask, output, offset, length);
1232
+ bufferUtil.mask(source, mask2, output, offset, length);
1234
1233
  };
1235
1234
  module.exports.unmask = function(buffer, mask) {
1236
1235
  if (buffer.length < 32)
@@ -1387,35 +1386,35 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
1387
1386
  normalizeParams(configurations) {
1388
1387
  configurations.forEach((params) => {
1389
1388
  Object.keys(params).forEach((key) => {
1390
- let value2 = params[key];
1391
- if (value2.length > 1) {
1389
+ let value = params[key];
1390
+ if (value.length > 1) {
1392
1391
  throw new Error(`Parameter "${key}" must have only a single value`);
1393
1392
  }
1394
- value2 = value2[0];
1393
+ value = value[0];
1395
1394
  if (key === "client_max_window_bits") {
1396
- if (value2 !== true) {
1397
- const num = +value2;
1395
+ if (value !== true) {
1396
+ const num = +value;
1398
1397
  if (!Number.isInteger(num) || num < 8 || num > 15) {
1399
- throw new TypeError(`Invalid value for parameter "${key}": ${value2}`);
1398
+ throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
1400
1399
  }
1401
- value2 = num;
1400
+ value = num;
1402
1401
  } else if (!this._isServer) {
1403
- throw new TypeError(`Invalid value for parameter "${key}": ${value2}`);
1402
+ throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
1404
1403
  }
1405
1404
  } else if (key === "server_max_window_bits") {
1406
- const num = +value2;
1405
+ const num = +value;
1407
1406
  if (!Number.isInteger(num) || num < 8 || num > 15) {
1408
- throw new TypeError(`Invalid value for parameter "${key}": ${value2}`);
1407
+ throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
1409
1408
  }
1410
- value2 = num;
1409
+ value = num;
1411
1410
  } else if (key === "client_no_context_takeover" || key === "server_no_context_takeover") {
1412
- if (value2 !== true) {
1413
- throw new TypeError(`Invalid value for parameter "${key}": ${value2}`);
1411
+ if (value !== true) {
1412
+ throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
1414
1413
  }
1415
1414
  } else {
1416
1415
  throw new Error(`Unknown parameter "${key}"`);
1417
1416
  }
1418
- params[key] = value2;
1417
+ params[key] = value;
1419
1418
  });
1420
1419
  });
1421
1420
  return configurations;
@@ -1463,7 +1462,7 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
1463
1462
  callback(err);
1464
1463
  return;
1465
1464
  }
1466
- const data2 = bufferUtil.concat(this._inflate[kBuffers], this._inflate[kTotalLength]);
1465
+ const data = bufferUtil.concat(this._inflate[kBuffers], this._inflate[kTotalLength]);
1467
1466
  if (this._inflate._readableState.endEmitted) {
1468
1467
  this._inflate.close();
1469
1468
  this._inflate = null;
@@ -1474,7 +1473,7 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
1474
1473
  this._inflate.reset();
1475
1474
  }
1476
1475
  }
1477
- callback(null, data2);
1476
+ callback(null, data);
1478
1477
  });
1479
1478
  }
1480
1479
  _compress(data, fin, callback) {
@@ -1496,9 +1495,9 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
1496
1495
  if (!this._deflate) {
1497
1496
  return;
1498
1497
  }
1499
- let data2 = bufferUtil.concat(this._deflate[kBuffers], this._deflate[kTotalLength]);
1498
+ let data = bufferUtil.concat(this._deflate[kBuffers], this._deflate[kTotalLength]);
1500
1499
  if (fin) {
1501
- data2 = new FastBuffer(data2.buffer, data2.byteOffset, data2.length - 4);
1500
+ data = new FastBuffer(data.buffer, data.byteOffset, data.length - 4);
1502
1501
  }
1503
1502
  this._deflate[kCallback] = null;
1504
1503
  this._deflate[kTotalLength] = 0;
@@ -1506,7 +1505,7 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
1506
1505
  if (fin && this.params[`${endpoint}_no_context_takeover`]) {
1507
1506
  this._deflate.reset();
1508
1507
  }
1509
- callback(null, data2);
1508
+ callback(null, data);
1510
1509
  });
1511
1510
  }
1512
1511
  }
@@ -1702,8 +1701,8 @@ var require_validation = __commonJS(function(exports, module) {
1702
1701
  }
1703
1702
  return true;
1704
1703
  }
1705
- function isBlob(value2) {
1706
- return hasBlob && typeof value2 === "object" && typeof value2.arrayBuffer === "function" && typeof value2.type === "string" && typeof value2.stream === "function" && (value2[Symbol.toStringTag] === "Blob" || value2[Symbol.toStringTag] === "File");
1704
+ function isBlob(value) {
1705
+ return hasBlob && typeof value === "object" && typeof value.arrayBuffer === "function" && typeof value.type === "string" && typeof value.stream === "function" && (value[Symbol.toStringTag] === "Blob" || value[Symbol.toStringTag] === "File");
1707
1706
  }
1708
1707
  module.exports = {
1709
1708
  isBlob,
@@ -2129,7 +2128,7 @@ var require_sender = __commonJS(function(exports, module) {
2129
2128
  var PerMessageDeflate = require_permessage_deflate();
2130
2129
  var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
2131
2130
  var { isBlob, isValidStatusCode } = require_validation();
2132
- var { mask: applyMask, toBuffer: toBuffer2 } = require_buffer_util();
2131
+ var { mask: applyMask, toBuffer } = require_buffer_util();
2133
2132
  var kByteLength = Symbol("kByteLength");
2134
2133
  var maskBuffer = Buffer.alloc(4);
2135
2134
  var RANDOM_POOL_SIZE = 8 * 1024;
@@ -2268,24 +2267,24 @@ var require_sender = __commonJS(function(exports, module) {
2268
2267
  }
2269
2268
  }
2270
2269
  ping(data, mask, cb) {
2271
- let byteLength2;
2270
+ let byteLength;
2272
2271
  let readOnly;
2273
2272
  if (typeof data === "string") {
2274
- byteLength2 = Buffer.byteLength(data);
2273
+ byteLength = Buffer.byteLength(data);
2275
2274
  readOnly = false;
2276
2275
  } else if (isBlob(data)) {
2277
- byteLength2 = data.size;
2276
+ byteLength = data.size;
2278
2277
  readOnly = false;
2279
2278
  } else {
2280
- data = toBuffer2(data);
2281
- byteLength2 = data.length;
2282
- readOnly = toBuffer2.readOnly;
2279
+ data = toBuffer(data);
2280
+ byteLength = data.length;
2281
+ readOnly = toBuffer.readOnly;
2283
2282
  }
2284
- if (byteLength2 > 125) {
2283
+ if (byteLength > 125) {
2285
2284
  throw new RangeError("The data size must not be greater than 125 bytes");
2286
2285
  }
2287
2286
  const options = {
2288
- [kByteLength]: byteLength2,
2287
+ [kByteLength]: byteLength,
2289
2288
  fin: true,
2290
2289
  generateMask: this._generateMask,
2291
2290
  mask,
@@ -2307,24 +2306,24 @@ var require_sender = __commonJS(function(exports, module) {
2307
2306
  }
2308
2307
  }
2309
2308
  pong(data, mask, cb) {
2310
- let byteLength2;
2309
+ let byteLength;
2311
2310
  let readOnly;
2312
2311
  if (typeof data === "string") {
2313
- byteLength2 = Buffer.byteLength(data);
2312
+ byteLength = Buffer.byteLength(data);
2314
2313
  readOnly = false;
2315
2314
  } else if (isBlob(data)) {
2316
- byteLength2 = data.size;
2315
+ byteLength = data.size;
2317
2316
  readOnly = false;
2318
2317
  } else {
2319
- data = toBuffer2(data);
2320
- byteLength2 = data.length;
2321
- readOnly = toBuffer2.readOnly;
2318
+ data = toBuffer(data);
2319
+ byteLength = data.length;
2320
+ readOnly = toBuffer.readOnly;
2322
2321
  }
2323
- if (byteLength2 > 125) {
2322
+ if (byteLength > 125) {
2324
2323
  throw new RangeError("The data size must not be greater than 125 bytes");
2325
2324
  }
2326
2325
  const options = {
2327
- [kByteLength]: byteLength2,
2326
+ [kByteLength]: byteLength,
2328
2327
  fin: true,
2329
2328
  generateMask: this._generateMask,
2330
2329
  mask,
@@ -2349,23 +2348,23 @@ var require_sender = __commonJS(function(exports, module) {
2349
2348
  const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
2350
2349
  let opcode = options.binary ? 2 : 1;
2351
2350
  let rsv1 = options.compress;
2352
- let byteLength2;
2351
+ let byteLength;
2353
2352
  let readOnly;
2354
2353
  if (typeof data === "string") {
2355
- byteLength2 = Buffer.byteLength(data);
2354
+ byteLength = Buffer.byteLength(data);
2356
2355
  readOnly = false;
2357
2356
  } else if (isBlob(data)) {
2358
- byteLength2 = data.size;
2357
+ byteLength = data.size;
2359
2358
  readOnly = false;
2360
2359
  } else {
2361
- data = toBuffer2(data);
2362
- byteLength2 = data.length;
2363
- readOnly = toBuffer2.readOnly;
2360
+ data = toBuffer(data);
2361
+ byteLength = data.length;
2362
+ readOnly = toBuffer.readOnly;
2364
2363
  }
2365
2364
  if (this._firstFragment) {
2366
2365
  this._firstFragment = false;
2367
2366
  if (rsv1 && perMessageDeflate && perMessageDeflate.params[perMessageDeflate._isServer ? "server_no_context_takeover" : "client_no_context_takeover"]) {
2368
- rsv1 = byteLength2 >= perMessageDeflate._threshold;
2367
+ rsv1 = byteLength >= perMessageDeflate._threshold;
2369
2368
  }
2370
2369
  this._compress = rsv1;
2371
2370
  } else {
@@ -2375,7 +2374,7 @@ var require_sender = __commonJS(function(exports, module) {
2375
2374
  if (options.fin)
2376
2375
  this._firstFragment = true;
2377
2376
  const opts = {
2378
- [kByteLength]: byteLength2,
2377
+ [kByteLength]: byteLength,
2379
2378
  fin: options.fin,
2380
2379
  generateMask: this._generateMask,
2381
2380
  mask: options.mask,
@@ -2406,7 +2405,7 @@ var require_sender = __commonJS(function(exports, module) {
2406
2405
  return;
2407
2406
  }
2408
2407
  this._bufferedBytes -= options[kByteLength];
2409
- const data = toBuffer2(arrayBuffer);
2408
+ const data = toBuffer(arrayBuffer);
2410
2409
  if (!compress) {
2411
2410
  this._state = DEFAULT;
2412
2411
  this.sendFrame(Sender.frame(data, options), cb);
@@ -2638,7 +2637,7 @@ var require_extension = __commonJS(function(exports, module) {
2638
2637
  else
2639
2638
  dest[name].push(elem);
2640
2639
  }
2641
- function parse2(header) {
2640
+ function parse(header) {
2642
2641
  const offers = Object.create(null);
2643
2642
  let params = Object.create(null);
2644
2643
  let mustUnescape = false;
@@ -2738,12 +2737,12 @@ var require_extension = __commonJS(function(exports, module) {
2738
2737
  }
2739
2738
  if (end === -1)
2740
2739
  end = i;
2741
- let value2 = header.slice(start, end);
2740
+ let value = header.slice(start, end);
2742
2741
  if (mustUnescape) {
2743
- value2 = value2.replace(/\\/g, "");
2742
+ value = value.replace(/\\/g, "");
2744
2743
  mustUnescape = false;
2745
2744
  }
2746
- push(params, paramName, value2);
2745
+ push(params, paramName, value);
2747
2746
  if (code === 44) {
2748
2747
  push(offers, extensionName, params);
2749
2748
  params = Object.create(null);
@@ -2791,7 +2790,7 @@ var require_extension = __commonJS(function(exports, module) {
2791
2790
  }).join(", ");
2792
2791
  }).join(", ");
2793
2792
  }
2794
- module.exports = { format, parse: parse2 };
2793
+ module.exports = { format, parse };
2795
2794
  });
2796
2795
 
2797
2796
  // ../../node_modules/ws/lib/websocket.js
@@ -2822,8 +2821,8 @@ var require_websocket = __commonJS(function(exports, module) {
2822
2821
  var {
2823
2822
  EventTarget: { addEventListener: addEventListener2, removeEventListener: removeEventListener2 }
2824
2823
  } = require_event_target();
2825
- var { format, parse: parse2 } = require_extension();
2826
- var { toBuffer: toBuffer2 } = require_buffer_util();
2824
+ var { format, parse } = require_extension();
2825
+ var { toBuffer } = require_buffer_util();
2827
2826
  var kAborted = Symbol("kAborted");
2828
2827
  var protocolVersions = [8, 13];
2829
2828
  var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
@@ -3218,7 +3217,7 @@ var require_websocket = __commonJS(function(exports, module) {
3218
3217
  }
3219
3218
  const defaultPort = isSecure ? 443 : 80;
3220
3219
  const key = randomBytes(16).toString("base64");
3221
- const request = isSecure ? https.request : http.request;
3220
+ const request3 = isSecure ? https.request : http.request;
3222
3221
  const protocolSet = new Set;
3223
3222
  let perMessageDeflate;
3224
3223
  opts.createConnection = opts.createConnection || (isSecure ? tlsConnect : netConnect);
@@ -3245,11 +3244,11 @@ var require_websocket = __commonJS(function(exports, module) {
3245
3244
  });
3246
3245
  }
3247
3246
  if (protocols.length) {
3248
- for (const protocol2 of protocols) {
3249
- if (typeof protocol2 !== "string" || !subprotocolRegex.test(protocol2) || protocolSet.has(protocol2)) {
3247
+ for (const protocol of protocols) {
3248
+ if (typeof protocol !== "string" || !subprotocolRegex.test(protocol) || protocolSet.has(protocol)) {
3250
3249
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
3251
3250
  }
3252
- protocolSet.add(protocol2);
3251
+ protocolSet.add(protocol);
3253
3252
  }
3254
3253
  opts.headers["Sec-WebSocket-Protocol"] = protocols.join(",");
3255
3254
  }
@@ -3277,8 +3276,8 @@ var require_websocket = __commonJS(function(exports, module) {
3277
3276
  const headers = options && options.headers;
3278
3277
  options = { ...options, headers: {} };
3279
3278
  if (headers) {
3280
- for (const [key2, value2] of Object.entries(headers)) {
3281
- options.headers[key2.toLowerCase()] = value2;
3279
+ for (const [key, value] of Object.entries(headers)) {
3280
+ options.headers[key.toLowerCase()] = value;
3282
3281
  }
3283
3282
  }
3284
3283
  } else if (websocket.listenerCount("redirect") === 0) {
@@ -3294,12 +3293,12 @@ var require_websocket = __commonJS(function(exports, module) {
3294
3293
  if (opts.auth && !options.headers.authorization) {
3295
3294
  options.headers.authorization = "Basic " + Buffer.from(opts.auth).toString("base64");
3296
3295
  }
3297
- req = websocket._req = request(opts);
3296
+ req = websocket._req = request3(opts);
3298
3297
  if (websocket._redirects) {
3299
3298
  websocket.emit("redirect", websocket.url, req);
3300
3299
  }
3301
3300
  } else {
3302
- req = websocket._req = request(opts);
3301
+ req = websocket._req = request3(opts);
3303
3302
  }
3304
3303
  if (opts.timeout) {
3305
3304
  req.on("timeout", () => {
@@ -3375,7 +3374,7 @@ var require_websocket = __commonJS(function(exports, module) {
3375
3374
  }
3376
3375
  let extensions;
3377
3376
  try {
3378
- extensions = parse2(secWebSocketExtensions);
3377
+ extensions = parse(secWebSocketExtensions);
3379
3378
  } catch (err) {
3380
3379
  const message = "Invalid Sec-WebSocket-Extensions header";
3381
3380
  abortHandshake(websocket, socket, message);
@@ -3447,7 +3446,7 @@ var require_websocket = __commonJS(function(exports, module) {
3447
3446
  }
3448
3447
  function sendAfterClose(websocket, data, cb) {
3449
3448
  if (data) {
3450
- const length = isBlob(data) ? data.size : toBuffer2(data).length;
3449
+ const length = isBlob(data) ? data.size : toBuffer(data).length;
3451
3450
  if (websocket._socket)
3452
3451
  websocket._sender._bufferedBytes += length;
3453
3452
  else
@@ -3617,9 +3616,9 @@ var require_stream = __commonJS(function(exports, module) {
3617
3616
  return;
3618
3617
  }
3619
3618
  let called = false;
3620
- ws.once("error", function error(err2) {
3619
+ ws.once("error", function error(err) {
3621
3620
  called = true;
3622
- callback(err2);
3621
+ callback(err);
3623
3622
  });
3624
3623
  ws.once("close", function close() {
3625
3624
  if (!called)
@@ -3672,7 +3671,7 @@ var require_stream = __commonJS(function(exports, module) {
3672
3671
  // ../../node_modules/ws/lib/subprotocol.js
3673
3672
  var require_subprotocol = __commonJS(function(exports, module) {
3674
3673
  var { tokenChars } = require_validation();
3675
- function parse2(header) {
3674
+ function parse(header) {
3676
3675
  const protocols = new Set;
3677
3676
  let start = -1;
3678
3677
  let end = -1;
@@ -3691,11 +3690,11 @@ var require_subprotocol = __commonJS(function(exports, module) {
3691
3690
  }
3692
3691
  if (end === -1)
3693
3692
  end = i;
3694
- const protocol3 = header.slice(start, end);
3695
- if (protocols.has(protocol3)) {
3696
- throw new SyntaxError(`The "${protocol3}" subprotocol is duplicated`);
3693
+ const protocol = header.slice(start, end);
3694
+ if (protocols.has(protocol)) {
3695
+ throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
3697
3696
  }
3698
- protocols.add(protocol3);
3697
+ protocols.add(protocol);
3699
3698
  start = end = -1;
3700
3699
  } else {
3701
3700
  throw new SyntaxError(`Unexpected character at index ${i}`);
@@ -3704,14 +3703,14 @@ var require_subprotocol = __commonJS(function(exports, module) {
3704
3703
  if (start === -1 || end !== -1) {
3705
3704
  throw new SyntaxError("Unexpected end of input");
3706
3705
  }
3707
- const protocol2 = header.slice(start, i);
3708
- if (protocols.has(protocol2)) {
3709
- throw new SyntaxError(`The "${protocol2}" subprotocol is duplicated`);
3706
+ const protocol = header.slice(start, i);
3707
+ if (protocols.has(protocol)) {
3708
+ throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
3710
3709
  }
3711
- protocols.add(protocol2);
3710
+ protocols.add(protocol);
3712
3711
  return protocols;
3713
3712
  }
3714
- module.exports = { parse: parse2 };
3713
+ module.exports = { parse };
3715
3714
  });
3716
3715
 
3717
3716
  // ../../node_modules/ws/lib/websocket-server.js
@@ -3943,18 +3942,18 @@ var require_websocket_server = __commonJS(function(exports, module) {
3943
3942
  ];
3944
3943
  const ws = new this.options.WebSocket(null, undefined, this.options);
3945
3944
  if (protocols.size) {
3946
- const protocol2 = this.options.handleProtocols ? this.options.handleProtocols(protocols, req) : protocols.values().next().value;
3947
- if (protocol2) {
3948
- headers.push(`Sec-WebSocket-Protocol: ${protocol2}`);
3949
- ws._protocol = protocol2;
3945
+ const protocol = this.options.handleProtocols ? this.options.handleProtocols(protocols, req) : protocols.values().next().value;
3946
+ if (protocol) {
3947
+ headers.push(`Sec-WebSocket-Protocol: ${protocol}`);
3948
+ ws._protocol = protocol;
3950
3949
  }
3951
3950
  }
3952
3951
  if (extensions[PerMessageDeflate.extensionName]) {
3953
3952
  const params = extensions[PerMessageDeflate.extensionName].params;
3954
- const value2 = extension.format({
3953
+ const value = extension.format({
3955
3954
  [PerMessageDeflate.extensionName]: [params]
3956
3955
  });
3957
- headers.push(`Sec-WebSocket-Extensions: ${value2}`);
3956
+ headers.push(`Sec-WebSocket-Extensions: ${value}`);
3958
3957
  ws._extensions = extensions;
3959
3958
  }
3960
3959
  this.emit("headers", headers, req);
@@ -4365,14 +4364,14 @@ function parse(setCookieString) {
4365
4364
  continue;
4366
4365
  }
4367
4366
  const key = subParts[0].trim();
4368
- const value2 = subParts[1].trim();
4367
+ const value = subParts[1].trim();
4369
4368
  switch (key) {
4370
4369
  case "Expires":
4371
- cookie.expires = new Date(value2);
4370
+ cookie.expires = new Date(value);
4372
4371
  break;
4373
4372
  case "Max-Age":
4374
4373
  const expiration = new Date;
4375
- expiration.setUTCSeconds(expiration.getUTCSeconds() + parseInt(value2, 10));
4374
+ expiration.setUTCSeconds(expiration.getUTCSeconds() + parseInt(value, 10));
4376
4375
  cookie.expires = expiration;
4377
4376
  break;
4378
4377
  default:
@@ -4774,9 +4773,9 @@ class Request extends $Emitter {
4774
4773
  xhr.timeout = this._opts.requestTimeout;
4775
4774
  }
4776
4775
  xhr.onreadystatechange = () => {
4777
- var _a2;
4776
+ var _a;
4778
4777
  if (xhr.readyState === 3) {
4779
- (_a2 = this._opts.cookieJar) === null || _a2 === undefined || _a2.parseCookies(xhr.getResponseHeader("set-cookie"));
4778
+ (_a = this._opts.cookieJar) === null || _a === undefined || _a.parseCookies(xhr.getResponseHeader("set-cookie"));
4780
4779
  }
4781
4780
  if (xhr.readyState !== 4)
4782
4781
  return;
@@ -4876,7 +4875,7 @@ class XHR extends BaseXHR {
4876
4875
  request(opts = {}) {
4877
4876
  var _a;
4878
4877
  Object.assign(opts, { xd: this.xd, cookieJar: (_a = this.socket) === null || _a === undefined ? undefined : _a._cookieJar }, this.opts);
4879
- return new Request((opts2) => new XMLHttpRequest2(opts2), this.uri(), opts);
4878
+ return new Request((opts) => new XMLHttpRequest2(opts), this.uri(), opts);
4880
4879
  }
4881
4880
  }
4882
4881
 
@@ -5026,13 +5025,13 @@ class WT extends Transport {
5026
5025
  encoderStream.readable.pipeTo(stream.writable);
5027
5026
  this._writer = encoderStream.writable.getWriter();
5028
5027
  const read = () => {
5029
- reader.read().then(({ done, value: value2 }) => {
5028
+ reader.read().then(({ done, value }) => {
5030
5029
  if (done) {
5031
5030
  debug5("session is closed");
5032
5031
  return;
5033
5032
  }
5034
- debug5("received chunk: %o", value2);
5035
- this.onPacket(value2);
5033
+ debug5("received chunk: %o", value);
5034
+ this.onPacket(value);
5036
5035
  read();
5037
5036
  }).catch((err) => {
5038
5037
  debug5("an error occurred while reading: %s", err);
@@ -5989,14 +5988,14 @@ class BinaryReconstructor {
5989
5988
  function isNamespaceValid(nsp) {
5990
5989
  return typeof nsp === "string";
5991
5990
  }
5992
- var isInteger = Number.isInteger || function(value2) {
5993
- return typeof value2 === "number" && isFinite(value2) && Math.floor(value2) === value2;
5991
+ var isInteger = Number.isInteger || function(value) {
5992
+ return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
5994
5993
  };
5995
5994
  function isAckIdValid(id) {
5996
5995
  return id === undefined || isInteger(id);
5997
5996
  }
5998
- function isObject(value2) {
5999
- return Object.prototype.toString.call(value2) === "[object Object]";
5997
+ function isObject(value) {
5998
+ return Object.prototype.toString.call(value) === "[object Object]";
6000
5999
  }
6001
6000
  function isDataValid(type, payload) {
6002
6001
  switch (type) {
@@ -6683,8 +6682,8 @@ class Manager extends $Emitter {
6683
6682
  _destroy(socket) {
6684
6683
  const nsps = Object.keys(this.nsps);
6685
6684
  for (const nsp of nsps) {
6686
- const socket2 = this.nsps[nsp];
6687
- if (socket2.active) {
6685
+ const socket = this.nsps[nsp];
6686
+ if (socket.active) {
6688
6687
  debug10("socket %s is still active, skipping close", nsp);
6689
6688
  return;
6690
6689
  }
@@ -6830,14 +6829,14 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
6830
6829
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
6831
6830
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6832
6831
  }
6833
- function __classPrivateFieldSet(receiver, state, value2, kind, f) {
6832
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
6834
6833
  if (kind === "m")
6835
6834
  throw new TypeError("Private method is not writable");
6836
6835
  if (kind === "a" && !f)
6837
6836
  throw new TypeError("Private accessor was defined without a setter");
6838
6837
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
6839
6838
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
6840
- return kind === "a" ? f.call(receiver, value2) : f ? f.value = value2 : state.set(receiver, value2), value2;
6839
+ return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
6841
6840
  }
6842
6841
  var CLOUD_ROLE_NAME = "uipath-ts-sdk";
6843
6842
  var sdkClient = getOrCreateClient(CLOUD_ROLE_NAME);
@@ -7171,16 +7170,16 @@ function toSearchParams(params) {
7171
7170
  const searchParams = new URLSearchParams;
7172
7171
  if (!params)
7173
7172
  return searchParams;
7174
- for (const [key, value2] of Object.entries(params)) {
7175
- if (value2 === undefined || value2 === null)
7173
+ for (const [key, value] of Object.entries(params)) {
7174
+ if (value === undefined || value === null)
7176
7175
  continue;
7177
- if (Array.isArray(value2)) {
7178
- value2.forEach((item) => {
7176
+ if (Array.isArray(value)) {
7177
+ value.forEach((item) => {
7179
7178
  if (item !== undefined && item !== null)
7180
7179
  searchParams.append(key, String(item));
7181
7180
  });
7182
7181
  } else {
7183
- searchParams.append(key, String(value2));
7182
+ searchParams.append(key, String(value));
7184
7183
  }
7185
7184
  }
7186
7185
  return searchParams;
@@ -7208,9 +7207,9 @@ function resolveRetryOptions(settings, defaults = DEFAULT_RETRY_OPTIONS) {
7208
7207
  return defaults;
7209
7208
  const { retryDelay, useExponentialBackoff, ...live } = settings;
7210
7209
  const resolved = { ...defaults };
7211
- for (const [key, value2] of Object.entries(live)) {
7212
- if (value2 !== undefined) {
7213
- resolved[key] = value2;
7210
+ for (const [key, value] of Object.entries(live)) {
7211
+ if (value !== undefined) {
7212
+ resolved[key] = value;
7214
7213
  }
7215
7214
  }
7216
7215
  if (retryDelay !== undefined && live.initialDelayMs === undefined) {
@@ -7236,8 +7235,8 @@ function computeBackoffDelay(attempt, settings) {
7236
7235
  }
7237
7236
  return Math.min(delay, settings.backoffMaxDelayMs);
7238
7237
  }
7239
- function parseRetryAfter(value2, now = Date.now()) {
7240
- const trimmed = value2?.trim();
7238
+ function parseRetryAfter(value, now = Date.now()) {
7239
+ const trimmed = value?.trim();
7241
7240
  if (!trimmed)
7242
7241
  return;
7243
7242
  const seconds = Number(trimmed);
@@ -7290,7 +7289,7 @@ function delayBeforeRetry(durationMs, signal) {
7290
7289
  signal.addEventListener("abort", onAbort);
7291
7290
  });
7292
7291
  }
7293
- async function fetchWithRetry(url2, init, options) {
7292
+ async function fetchWithRetry(url, init, options) {
7294
7293
  const settings = options.retry;
7295
7294
  const method = (init.method ?? "GET").toUpperCase();
7296
7295
  const retriesAllowed = settings.retryMethods.includes(method) ? Math.max(0, settings.maxRetries) : 0;
@@ -7300,7 +7299,7 @@ async function fetchWithRetry(url2, init, options) {
7300
7299
  let response;
7301
7300
  let failure;
7302
7301
  try {
7303
- response = await fetch(url2, { ...init, signal });
7302
+ response = await fetch(url, { ...init, signal });
7304
7303
  } catch (error) {
7305
7304
  failure = error;
7306
7305
  } finally {
@@ -7347,7 +7346,7 @@ class ApiClient {
7347
7346
  }
7348
7347
  async request(method, path, options = {}) {
7349
7348
  const normalizedPath = path.startsWith("/") ? path.substring(1) : path;
7350
- const url2 = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
7349
+ const url = new URL(`${this.config.orgName}/${this.config.tenantName}/${normalizedPath}`, this.config.baseUrl).toString();
7351
7350
  const isFormData = options.body instanceof FormData;
7352
7351
  const isBodyless = isFormData || method === "GET" || method === "HEAD";
7353
7352
  const defaultHeaders = await this.getDefaultHeaders(!isBodyless);
@@ -7361,7 +7360,7 @@ class ApiClient {
7361
7360
  ...options.headers
7362
7361
  };
7363
7362
  const searchParams = toSearchParams(options.params);
7364
- const fullUrl = searchParams.toString() ? `${url2}?${searchParams.toString()}` : url2;
7363
+ const fullUrl = searchParams.toString() ? `${url}?${searchParams.toString()}` : url;
7365
7364
  let body = undefined;
7366
7365
  if (options.body) {
7367
7366
  body = isFormData ? options.body : JSON.stringify(options.body);
@@ -7383,8 +7382,8 @@ class ApiClient {
7383
7382
  }
7384
7383
  const acceptHeader = headers["Accept"] || headers["accept"];
7385
7384
  if (acceptHeader === CONTENT_TYPES.XML) {
7386
- const text2 = await response.text();
7387
- return text2;
7385
+ const text = await response.text();
7386
+ return text;
7388
7387
  }
7389
7388
  const text = await response.text();
7390
7389
  if (!text) {
@@ -7425,9 +7424,9 @@ class ApiClient {
7425
7424
  }
7426
7425
  }
7427
7426
  var PaginationType;
7428
- (function(PaginationType2) {
7429
- PaginationType2["OFFSET"] = "offset";
7430
- PaginationType2["TOKEN"] = "token";
7427
+ (function(PaginationType) {
7428
+ PaginationType["OFFSET"] = "offset";
7429
+ PaginationType["TOKEN"] = "token";
7431
7430
  })(PaginationType || (PaginationType = {}));
7432
7431
  function resolveNestedField(data, fieldPath) {
7433
7432
  if (!data) {
@@ -7439,17 +7438,17 @@ function resolveNestedField(data, fieldPath) {
7439
7438
  if (!fieldPath.includes(".")) {
7440
7439
  return;
7441
7440
  }
7442
- let value2 = data;
7441
+ let value = data;
7443
7442
  for (const part of fieldPath.split(".")) {
7444
- value2 = value2?.[part];
7443
+ value = value?.[part];
7445
7444
  }
7446
- return value2;
7445
+ return value;
7447
7446
  }
7448
7447
  function filterUndefined(obj) {
7449
7448
  const result = {};
7450
- for (const [key, value2] of Object.entries(obj)) {
7451
- if (value2 !== undefined) {
7452
- result[key] = value2;
7449
+ for (const [key, value] of Object.entries(obj)) {
7450
+ if (value !== undefined) {
7451
+ result[key] = value;
7453
7452
  }
7454
7453
  }
7455
7454
  return result;
@@ -7556,9 +7555,9 @@ class PaginationManager {
7556
7555
  }
7557
7556
  function createHeaders(headersObj) {
7558
7557
  const headers = {};
7559
- for (const [key, value2] of Object.entries(headersObj)) {
7560
- if (value2 !== undefined && value2 !== null) {
7561
- headers[key] = value2.toString();
7558
+ for (const [key, value] of Object.entries(headersObj)) {
7559
+ if (value !== undefined && value !== null) {
7560
+ headers[key] = value.toString();
7562
7561
  }
7563
7562
  }
7564
7563
  return headers;
@@ -7593,26 +7592,26 @@ function transformData(data, fieldMapping) {
7593
7592
  return data.map((item) => transformData(item, fieldMapping));
7594
7593
  }
7595
7594
  const result = {};
7596
- for (const [key, value2] of Object.entries(data)) {
7595
+ for (const [key, value] of Object.entries(data)) {
7597
7596
  const renamedKey = fieldMapping[key] ?? key;
7598
- result[renamedKey] = value2;
7597
+ result[renamedKey] = value;
7599
7598
  }
7600
7599
  return result;
7601
7600
  }
7602
7601
  function addPrefixToKeys(obj, prefix, keys) {
7603
7602
  const result = {};
7604
- for (const [key, value2] of Object.entries(obj)) {
7603
+ for (const [key, value] of Object.entries(obj)) {
7605
7604
  if (keys.includes(key)) {
7606
- result[`${prefix}${key}`] = value2;
7605
+ result[`${prefix}${key}`] = value;
7607
7606
  } else {
7608
- result[key] = value2;
7607
+ result[key] = value;
7609
7608
  }
7610
7609
  }
7611
7610
  return result;
7612
7611
  }
7613
7612
  function reverseMap(map) {
7614
- return Object.entries(map).reduce((acc, [key, value2]) => {
7615
- acc[value2] = key;
7613
+ return Object.entries(map).reduce((acc, [key, value]) => {
7614
+ acc[value] = key;
7616
7615
  return acc;
7617
7616
  }, {});
7618
7617
  }
@@ -7834,21 +7833,21 @@ class PaginationHelpers {
7834
7833
  }
7835
7834
  }
7836
7835
  var UiPathMetaTags;
7837
- (function(UiPathMetaTags2) {
7838
- UiPathMetaTags2["CLIENT_ID"] = "uipath:client-id";
7839
- UiPathMetaTags2["SCOPE"] = "uipath:scope";
7840
- UiPathMetaTags2["ORG_NAME"] = "uipath:org-name";
7841
- UiPathMetaTags2["ORG_ID"] = "uipath:org-id";
7842
- UiPathMetaTags2["TENANT_NAME"] = "uipath:tenant-name";
7843
- UiPathMetaTags2["BASE_URL"] = "uipath:base-url";
7844
- UiPathMetaTags2["REDIRECT_URI"] = "uipath:redirect-uri";
7845
- UiPathMetaTags2["CDN_BASE"] = "uipath:cdn-base";
7846
- UiPathMetaTags2["APP_BASE"] = "uipath:app-base";
7847
- UiPathMetaTags2["FOLDER_KEY"] = "uipath:folder-key";
7836
+ (function(UiPathMetaTags) {
7837
+ UiPathMetaTags["CLIENT_ID"] = "uipath:client-id";
7838
+ UiPathMetaTags["SCOPE"] = "uipath:scope";
7839
+ UiPathMetaTags["ORG_NAME"] = "uipath:org-name";
7840
+ UiPathMetaTags["ORG_ID"] = "uipath:org-id";
7841
+ UiPathMetaTags["TENANT_NAME"] = "uipath:tenant-name";
7842
+ UiPathMetaTags["BASE_URL"] = "uipath:base-url";
7843
+ UiPathMetaTags["REDIRECT_URI"] = "uipath:redirect-uri";
7844
+ UiPathMetaTags["CDN_BASE"] = "uipath:cdn-base";
7845
+ UiPathMetaTags["APP_BASE"] = "uipath:app-base";
7846
+ UiPathMetaTags["FOLDER_KEY"] = "uipath:folder-key";
7848
7847
  })(UiPathMetaTags || (UiPathMetaTags = {}));
7849
7848
  var UiPathElementIds;
7850
- (function(UiPathElementIds2) {
7851
- UiPathElementIds2["RESOURCE_OVERRIDES"] = "uipath-overrides";
7849
+ (function(UiPathElementIds) {
7850
+ UiPathElementIds["RESOURCE_OVERRIDES"] = "uipath-overrides";
7852
7851
  })(UiPathElementIds || (UiPathElementIds = {}));
7853
7852
  function missingConfigMessage(found, context) {
7854
7853
  if (isBrowser) {
@@ -7860,8 +7859,8 @@ function missingConfigMessage(found, context) {
7860
7859
  UiPathMetaTags.CLIENT_ID, UiPathMetaTags.REDIRECT_URI, UiPathMetaTags.SCOPE;
7861
7860
  var BASE64URL_DASH_RE = /-/g;
7862
7861
  var BASE64URL_UNDERSCORE_RE = /_/g;
7863
- function base64UrlToBase64(value2) {
7864
- const base64 = value2.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
7862
+ function base64UrlToBase64(value) {
7863
+ const base64 = value.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
7865
7864
  return base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
7866
7865
  }
7867
7866
  function decodeJwtClaims(token) {
@@ -7928,15 +7927,15 @@ var IDENTITY_ERROR_ID_PARAM = "errorId";
7928
7927
  var IDENTITY_ERROR_CODE_PARAM = "errorCode";
7929
7928
  var BODY_SNIPPET_LENGTH = 160;
7930
7929
  var CONFIG_HINT = "Set `organizationId` in the SDK configuration.";
7931
- function isAuthorizeRequest(url2) {
7932
- return url2.pathname.endsWith(`/${IDENTITY_ENDPOINTS.AUTHORIZE}`);
7930
+ function isAuthorizeRequest(url) {
7931
+ return url.pathname.endsWith(`/${IDENTITY_ENDPOINTS.AUTHORIZE}`);
7933
7932
  }
7934
- function withoutQuery(url2) {
7935
- const parsed = new URL(url2);
7933
+ function withoutQuery(url) {
7934
+ const parsed = new URL(url);
7936
7935
  return `${parsed.origin}${parsed.pathname}`;
7937
7936
  }
7938
- function readIdentityError(url2) {
7939
- const errorId = url2.searchParams.get(IDENTITY_ERROR_ID_PARAM);
7937
+ function readIdentityError(url) {
7938
+ const errorId = url.searchParams.get(IDENTITY_ERROR_ID_PARAM);
7940
7939
  if (errorId) {
7941
7940
  try {
7942
7941
  const base64 = errorId.replace(DASH_REGEX, "+").replace(UNDERSCORE_REGEX, "/");
@@ -7948,10 +7947,10 @@ function readIdentityError(url2) {
7948
7947
  return description ? `${error} (${description})` : error;
7949
7948
  }
7950
7949
  } catch {
7951
- return url2.searchParams.get(IDENTITY_ERROR_CODE_PARAM) ?? undefined;
7950
+ return url.searchParams.get(IDENTITY_ERROR_CODE_PARAM) ?? undefined;
7952
7951
  }
7953
7952
  }
7954
- return url2.searchParams.get(IDENTITY_ERROR_CODE_PARAM) ?? undefined;
7953
+ return url.searchParams.get(IDENTITY_ERROR_CODE_PARAM) ?? undefined;
7955
7954
  }
7956
7955
  async function describeResponse(response) {
7957
7956
  const body = (await response.text().catch(() => "")).replace(WHITESPACE_REGEX, " ").trim();
@@ -7998,16 +7997,16 @@ function extractOrganizationId(location2) {
7998
7997
  return;
7999
7998
  }
8000
7999
  async function lookupOrganizationIdForPat(baseUrl, orgName) {
8001
- let url2 = buildAuthorizeUrl(baseUrl, orgName);
8000
+ let url = buildAuthorizeUrl(baseUrl, orgName);
8002
8001
  for (let hop = 0;hop < MAX_REDIRECT_HOPS; hop++) {
8003
- const response = await fetchWithRetry(url2, { redirect: "manual", headers: tracingHeaders() }, { retry: DEFAULT_RETRY_OPTIONS });
8002
+ const response = await fetchWithRetry(url, { redirect: "manual", headers: tracingHeaders() }, { retry: DEFAULT_RETRY_OPTIONS });
8004
8003
  const location2 = response.headers.get("location");
8005
8004
  if (!location2) {
8006
8005
  throw new ValidationError({
8007
8006
  message: `Could not resolve the organization id for '${orgName}': Identity answered ` + `${await describeResponse(response)} instead of redirecting. ${CONFIG_HINT}`
8008
8007
  });
8009
8008
  }
8010
- const target = new URL(location2, url2);
8009
+ const target = new URL(location2, url);
8011
8010
  const organizationId = extractOrganizationId(target);
8012
8011
  if (organizationId) {
8013
8012
  return organizationId;
@@ -8021,10 +8020,10 @@ async function lookupOrganizationIdForPat(baseUrl, orgName) {
8021
8020
  message: `Could not resolve the organization id for '${orgName}': Identity rejected the lookup ` + `with ${identityError}. ${CONFIG_HINT}`
8022
8021
  });
8023
8022
  }
8024
- url2 = isAuthorizeRequest(target) ? buildAuthorizeUrl(target.origin, orgName) : target.toString();
8023
+ url = isAuthorizeRequest(target) ? buildAuthorizeUrl(target.origin, orgName) : target.toString();
8025
8024
  }
8026
8025
  throw new ValidationError({
8027
- message: `Could not resolve the organization id for '${orgName}': gave up after ${MAX_REDIRECT_HOPS} ` + `redirects (last: ${withoutQuery(url2)}). ${CONFIG_HINT}`
8026
+ message: `Could not resolve the organization id for '${orgName}': gave up after ${MAX_REDIRECT_HOPS} ` + `redirects (last: ${withoutQuery(url)}). ${CONFIG_HINT}`
8028
8027
  });
8029
8028
  }
8030
8029
 
@@ -8045,7 +8044,7 @@ class OrganizationIdResolver {
8045
8044
  return __classPrivateFieldGet(this, _OrganizationIdResolver_organizationId, "f");
8046
8045
  }
8047
8046
  }
8048
- _OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function _OrganizationIdResolver_resolve2() {
8047
+ _OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function _OrganizationIdResolver_resolve() {
8049
8048
  const { organizationId, orgName, baseUrl } = this.config;
8050
8049
  if (organizationId) {
8051
8050
  return organizationId;
@@ -8291,35 +8290,35 @@ var MessageMap = {
8291
8290
  ...CommonFieldMap
8292
8291
  };
8293
8292
  var MessageRole;
8294
- (function(MessageRole2) {
8295
- MessageRole2["System"] = "system";
8296
- MessageRole2["User"] = "user";
8297
- MessageRole2["Assistant"] = "assistant";
8293
+ (function(MessageRole) {
8294
+ MessageRole["System"] = "system";
8295
+ MessageRole["User"] = "user";
8296
+ MessageRole["Assistant"] = "assistant";
8298
8297
  })(MessageRole || (MessageRole = {}));
8299
8298
  var InterruptType;
8300
- (function(InterruptType2) {
8301
- InterruptType2["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
8299
+ (function(InterruptType) {
8300
+ InterruptType["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
8302
8301
  })(InterruptType || (InterruptType = {}));
8303
8302
  var SortOrder;
8304
- (function(SortOrder2) {
8305
- SortOrder2["Ascending"] = "ascending";
8306
- SortOrder2["Descending"] = "descending";
8303
+ (function(SortOrder) {
8304
+ SortOrder["Ascending"] = "ascending";
8305
+ SortOrder["Descending"] = "descending";
8307
8306
  })(SortOrder || (SortOrder = {}));
8308
8307
  var FeedbackRating;
8309
- (function(FeedbackRating2) {
8310
- FeedbackRating2["Positive"] = "positive";
8311
- FeedbackRating2["Negative"] = "negative";
8308
+ (function(FeedbackRating) {
8309
+ FeedbackRating["Positive"] = "positive";
8310
+ FeedbackRating["Negative"] = "negative";
8312
8311
  })(FeedbackRating || (FeedbackRating = {}));
8313
8312
  var InputStreamSpeechSensitivity;
8314
- (function(InputStreamSpeechSensitivity2) {
8315
- InputStreamSpeechSensitivity2["Unspecified"] = "UNSPECIFIED";
8316
- InputStreamSpeechSensitivity2["High"] = "HIGH";
8317
- InputStreamSpeechSensitivity2["Low"] = "LOW";
8313
+ (function(InputStreamSpeechSensitivity) {
8314
+ InputStreamSpeechSensitivity["Unspecified"] = "UNSPECIFIED";
8315
+ InputStreamSpeechSensitivity["High"] = "HIGH";
8316
+ InputStreamSpeechSensitivity["Low"] = "LOW";
8318
8317
  })(InputStreamSpeechSensitivity || (InputStreamSpeechSensitivity = {}));
8319
8318
  var CitationErrorType;
8320
- (function(CitationErrorType2) {
8321
- CitationErrorType2["CitationNotEnded"] = "CitationNotEnded";
8322
- CitationErrorType2["CitationNotStarted"] = "CitationNotStarted";
8319
+ (function(CitationErrorType) {
8320
+ CitationErrorType["CitationNotEnded"] = "CitationNotEnded";
8321
+ CitationErrorType["CitationNotStarted"] = "CitationNotStarted";
8323
8322
  })(CitationErrorType || (CitationErrorType = {}));
8324
8323
  function createConversationMethods(conversationData, service, sessionMethods, exchangeService) {
8325
8324
  return {
@@ -8421,25 +8420,25 @@ var UserSettingsMap = {
8421
8420
  ...CommonFieldMap
8422
8421
  };
8423
8422
  var JobState;
8424
- (function(JobState2) {
8425
- JobState2["Pending"] = "Pending";
8426
- JobState2["Running"] = "Running";
8427
- JobState2["Stopping"] = "Stopping";
8428
- JobState2["Terminating"] = "Terminating";
8429
- JobState2["Faulted"] = "Faulted";
8430
- JobState2["Successful"] = "Successful";
8431
- JobState2["Stopped"] = "Stopped";
8432
- JobState2["Suspended"] = "Suspended";
8433
- JobState2["Resumed"] = "Resumed";
8434
- JobState2["Cancelled"] = "Cancelled";
8435
- JobState2["Unknown"] = "Unknown";
8423
+ (function(JobState) {
8424
+ JobState["Pending"] = "Pending";
8425
+ JobState["Running"] = "Running";
8426
+ JobState["Stopping"] = "Stopping";
8427
+ JobState["Terminating"] = "Terminating";
8428
+ JobState["Faulted"] = "Faulted";
8429
+ JobState["Successful"] = "Successful";
8430
+ JobState["Stopped"] = "Stopped";
8431
+ JobState["Suspended"] = "Suspended";
8432
+ JobState["Resumed"] = "Resumed";
8433
+ JobState["Cancelled"] = "Cancelled";
8434
+ JobState["Unknown"] = "Unknown";
8436
8435
  })(JobState || (JobState = {}));
8437
8436
  var ConnectionState;
8438
- (function(ConnectionState2) {
8439
- ConnectionState2["Enabled"] = "Enabled";
8440
- ConnectionState2["Disabled"] = "Disabled";
8441
- ConnectionState2["Expired"] = "Expired";
8442
- ConnectionState2["Failed"] = "Failed";
8437
+ (function(ConnectionState) {
8438
+ ConnectionState["Enabled"] = "Enabled";
8439
+ ConnectionState["Disabled"] = "Disabled";
8440
+ ConnectionState["Expired"] = "Expired";
8441
+ ConnectionState["Failed"] = "Failed";
8443
8442
  })(ConnectionState || (ConnectionState = {}));
8444
8443
  var ConnectionAuthMap = {
8445
8444
  expiresAt: "expiresTime"
@@ -8451,30 +8450,30 @@ class ConversationEventValidationError extends Error {
8451
8450
  class ConversationEventInvalidOperationError extends Error {
8452
8451
  }
8453
8452
  var EventErrorId;
8454
- (function(EventErrorId2) {
8455
- EventErrorId2["AGENT_COULD_NOT_BE_STARTED"] = "AGENT_COULD_NOT_BE_STARTED";
8456
- EventErrorId2["SESSION_START_PROCESSING_FAILED"] = "SESSION_START_PROCESSING_FAILED";
8457
- EventErrorId2["CLIENT_EVENT_PROCESSING_FAILED"] = "CLIENT_EVENT_PROCESSING_FAILED";
8458
- EventErrorId2["EXCHANGE_COULD_NOT_BE_CREATED"] = "EXCHANGE_COULD_NOT_BE_CREATED";
8459
- EventErrorId2["MESSAGE_COULD_NOT_BE_CREATED"] = "MESSAGE_COULD_NOT_BE_CREATED";
8460
- EventErrorId2["COULD_NOT_CREATE_CONTENT_PART"] = "COULD_NOT_CREATE_CONTENT_PART";
8461
- EventErrorId2["COULD_SIGNAL_USER_ACTIVITY"] = "COULD_SIGNAL_USER_ACTIVITY";
8462
- EventErrorId2["AGENT_EVENT_PROCESSING_FAILED"] = "AGENT_EVENT_PROCESSING_FAILED";
8463
- EventErrorId2["COULD_NOT_ENSURE_EXCHANGE"] = "COULD_NOT_ENSURE_EXCHANGE";
8464
- EventErrorId2["COULD_NOT_CREATE_MESSAGE"] = "COULD_NOT_CREATE_MESSAGE";
8465
- EventErrorId2["CONTENT_PART_HAS_CITATION_ERRORS"] = "CONTENT_PART_HAS_CITATION_ERRORS";
8466
- EventErrorId2["EXCHANGE_START_PROCESSING_FAILED"] = "EXCHANGE_START_PROCESSING_FAILED";
8467
- EventErrorId2["EXCHANGE_END_PROCESSING_FAILED"] = "EXCHANGE_END_PROCESSING_FAILED";
8468
- EventErrorId2["MESSAGE_START_PROCESSING_FAILED"] = "MESSAGE_START_PROCESSING_FAILED";
8469
- EventErrorId2["MESSAGE_END_PROCESSING_FAILED"] = "MESSAGE_END_PROCESSING_FAILED";
8470
- EventErrorId2["CONTENT_PART_START_PROCESSING_FAILED"] = "CONTENT_PART_START_PROCESSING_FAILED";
8471
- EventErrorId2["COULD_NOT_CREATE_TOOL_CALL"] = "COULD_NOT_CREATE_TOOL_CALL";
8472
- EventErrorId2["TOOL_CALL_START_PROCESSING_FAILED"] = "TOOL_CALL_START_PROCESSING_FAILED";
8473
- EventErrorId2["TOOL_CALL_END_PROCESSING_FAILED"] = "TOOL_CALL_END_PROCESSING_FAILED";
8474
- EventErrorId2["COULD_NOT_CREATE_INTERRUPT"] = "COULD_NOT_CREATE_INTERRUPT";
8475
- EventErrorId2["COULD_NOT_END_INTERRUPT"] = "COULD_NOT_END_INTERRUPT";
8476
- EventErrorId2["TEXT_CONTENT_PART_PROCESSING_FAILED"] = "TEXT_CONTENT_PART_PROCESSING_FAILED";
8477
- EventErrorId2["EXTERNAL_CONTENT_PART_PROCESSING_FAILED"] = "EXTERNAL_CONTENT_PART_PROCESSING_FAILED";
8453
+ (function(EventErrorId) {
8454
+ EventErrorId["AGENT_COULD_NOT_BE_STARTED"] = "AGENT_COULD_NOT_BE_STARTED";
8455
+ EventErrorId["SESSION_START_PROCESSING_FAILED"] = "SESSION_START_PROCESSING_FAILED";
8456
+ EventErrorId["CLIENT_EVENT_PROCESSING_FAILED"] = "CLIENT_EVENT_PROCESSING_FAILED";
8457
+ EventErrorId["EXCHANGE_COULD_NOT_BE_CREATED"] = "EXCHANGE_COULD_NOT_BE_CREATED";
8458
+ EventErrorId["MESSAGE_COULD_NOT_BE_CREATED"] = "MESSAGE_COULD_NOT_BE_CREATED";
8459
+ EventErrorId["COULD_NOT_CREATE_CONTENT_PART"] = "COULD_NOT_CREATE_CONTENT_PART";
8460
+ EventErrorId["COULD_SIGNAL_USER_ACTIVITY"] = "COULD_SIGNAL_USER_ACTIVITY";
8461
+ EventErrorId["AGENT_EVENT_PROCESSING_FAILED"] = "AGENT_EVENT_PROCESSING_FAILED";
8462
+ EventErrorId["COULD_NOT_ENSURE_EXCHANGE"] = "COULD_NOT_ENSURE_EXCHANGE";
8463
+ EventErrorId["COULD_NOT_CREATE_MESSAGE"] = "COULD_NOT_CREATE_MESSAGE";
8464
+ EventErrorId["CONTENT_PART_HAS_CITATION_ERRORS"] = "CONTENT_PART_HAS_CITATION_ERRORS";
8465
+ EventErrorId["EXCHANGE_START_PROCESSING_FAILED"] = "EXCHANGE_START_PROCESSING_FAILED";
8466
+ EventErrorId["EXCHANGE_END_PROCESSING_FAILED"] = "EXCHANGE_END_PROCESSING_FAILED";
8467
+ EventErrorId["MESSAGE_START_PROCESSING_FAILED"] = "MESSAGE_START_PROCESSING_FAILED";
8468
+ EventErrorId["MESSAGE_END_PROCESSING_FAILED"] = "MESSAGE_END_PROCESSING_FAILED";
8469
+ EventErrorId["CONTENT_PART_START_PROCESSING_FAILED"] = "CONTENT_PART_START_PROCESSING_FAILED";
8470
+ EventErrorId["COULD_NOT_CREATE_TOOL_CALL"] = "COULD_NOT_CREATE_TOOL_CALL";
8471
+ EventErrorId["TOOL_CALL_START_PROCESSING_FAILED"] = "TOOL_CALL_START_PROCESSING_FAILED";
8472
+ EventErrorId["TOOL_CALL_END_PROCESSING_FAILED"] = "TOOL_CALL_END_PROCESSING_FAILED";
8473
+ EventErrorId["COULD_NOT_CREATE_INTERRUPT"] = "COULD_NOT_CREATE_INTERRUPT";
8474
+ EventErrorId["COULD_NOT_END_INTERRUPT"] = "COULD_NOT_END_INTERRUPT";
8475
+ EventErrorId["TEXT_CONTENT_PART_PROCESSING_FAILED"] = "TEXT_CONTENT_PART_PROCESSING_FAILED";
8476
+ EventErrorId["EXTERNAL_CONTENT_PART_PROCESSING_FAILED"] = "EXTERNAL_CONTENT_PART_PROCESSING_FAILED";
8478
8477
  })(EventErrorId || (EventErrorId = {}));
8479
8478
 
8480
8479
  class ConversationEventHelperBase {
@@ -8597,35 +8596,8 @@ class ConversationEventHelperBase {
8597
8596
  }
8598
8597
  }
8599
8598
  }
8600
- var isInlineValue = (value2) => value2 !== undefined && value2 !== null && ("inline" in value2);
8601
- function assertInlineValue(value2) {
8602
- if (!isInlineValue(value2)) {
8603
- throw new TypeError("Value is not an InlineValue");
8604
- }
8605
- }
8606
- var isExternalValue = (value2) => value2 !== undefined && value2 !== null && ("uri" in value2);
8607
- function assertExternalValue(value2) {
8608
- if (!isExternalValue(value2)) {
8609
- throw new TypeError("Value is not an ExternalValue");
8610
- }
8611
- }
8612
- function isCitationSourceUrl(citationSource) {
8613
- return typeof citationSource.url === "string";
8614
- }
8615
- function assertCitationSourceUrl(citationSource) {
8616
- if (!isCitationSourceUrl(citationSource)) {
8617
- throw new TypeError("Object is not a CitationSourceUrl");
8618
- }
8619
- }
8620
- function isCitationSourceMedia(citationSource) {
8621
- return typeof citationSource.url === "undefined";
8622
- }
8623
- function assertCitationSourceMedia(citationSource) {
8624
- if (!isCitationSourceMedia(citationSource)) {
8625
- throw new TypeError("Object is not a CitationSourceMedia");
8626
- }
8627
- }
8628
-
8599
+ var isInlineValue = (value) => value !== undefined && value !== null && ("inline" in value);
8600
+ var isExternalValue = (value) => value !== undefined && value !== null && ("uri" in value);
8629
8601
  class ContentPartEventHelper extends ConversationEventHelperBase {
8630
8602
  constructor(message, contentPartId, startEventMaybe) {
8631
8603
  super(message.manager);
@@ -10341,9 +10313,6 @@ class ContentPartHelper {
10341
10313
  return await fetch(this.data.uri);
10342
10314
  }
10343
10315
  }
10344
- function transformExchanges(exchanges) {
10345
- return exchanges.map((exchange) => transformExchange(exchange));
10346
- }
10347
10316
  function transformExchange(exchange) {
10348
10317
  const transformed = transformData(exchange, ExchangeMap);
10349
10318
  const { messages, ...rest } = transformed;
@@ -10420,17 +10389,17 @@ __decorate([
10420
10389
  track("ConversationalAgent.Exchanges.CreateFeedback")
10421
10390
  ], ExchangeService.prototype, "createFeedback", null);
10422
10391
  var ConnectionStatus;
10423
- (function(ConnectionStatus2) {
10424
- ConnectionStatus2["Disconnected"] = "Disconnected";
10425
- ConnectionStatus2["Connecting"] = "Connecting";
10426
- ConnectionStatus2["Connected"] = "Connected";
10392
+ (function(ConnectionStatus) {
10393
+ ConnectionStatus["Disconnected"] = "Disconnected";
10394
+ ConnectionStatus["Connecting"] = "Connecting";
10395
+ ConnectionStatus["Connected"] = "Connected";
10427
10396
  })(ConnectionStatus || (ConnectionStatus = {}));
10428
10397
  var LogLevel;
10429
- (function(LogLevel2) {
10430
- LogLevel2["Debug"] = "debug";
10431
- LogLevel2["Info"] = "info";
10432
- LogLevel2["Warn"] = "warn";
10433
- LogLevel2["Error"] = "error";
10398
+ (function(LogLevel) {
10399
+ LogLevel["Debug"] = "debug";
10400
+ LogLevel["Info"] = "info";
10401
+ LogLevel["Warn"] = "warn";
10402
+ LogLevel["Error"] = "error";
10434
10403
  })(LogLevel || (LogLevel = {}));
10435
10404
  var LOG_LEVELS = [LogLevel.Debug, LogLevel.Info, LogLevel.Warn, LogLevel.Error];
10436
10405
 
@@ -10471,14 +10440,14 @@ class WebSocketLogger {
10471
10440
  }
10472
10441
  var CLOUD_WEBSOCKET_PATH = "/autopilotforeveryone_/websocket_/socket.io";
10473
10442
  function parseWebSocketUrl(baseUrl, path) {
10474
- const url2 = new URL(baseUrl);
10475
- const isSecure = url2.protocol === "https:";
10443
+ const url = new URL(baseUrl);
10444
+ const isSecure = url.protocol === "https:";
10476
10445
  const wsProtocol = isSecure ? "wss:" : "ws:";
10477
- const host = `${wsProtocol}//${url2.host}`;
10446
+ const host = `${wsProtocol}//${url.host}`;
10478
10447
  if (path) {
10479
10448
  return { host, path };
10480
10449
  }
10481
- if (url2.hostname === "localhost" || url2.hostname === "127.0.0.1") {
10450
+ if (url.hostname === "localhost" || url.hostname === "127.0.0.1") {
10482
10451
  return { host, path: "/socket.io" };
10483
10452
  }
10484
10453
  return { host, path: CLOUD_WEBSOCKET_PATH };
@@ -10803,8 +10772,8 @@ class SessionManager {
10803
10772
  capturedSocket.on("disconnect", (reason) => {
10804
10773
  const affectedConversations = this._socketToConversations.get(capturedSocket);
10805
10774
  if (affectedConversations) {
10806
- const conversationIds2 = Array.from(affectedConversations);
10807
- for (const convId of conversationIds2) {
10775
+ const conversationIds = Array.from(affectedConversations);
10776
+ for (const convId of conversationIds) {
10808
10777
  this._eventDispatcher?.dispatch({
10809
10778
  conversationId: convId,
10810
10779
  conversationError: {
@@ -11072,8 +11041,8 @@ function selectMimeType(source, responseType) {
11072
11041
  if (responseType && responseType !== OCTET_STREAM) {
11073
11042
  return responseType;
11074
11043
  }
11075
- const extension2 = source.title?.toLowerCase().match(/\.[^.]*$/)?.[0];
11076
- return extension2 && EXTENSION_TO_MIME_TYPE[extension2] || responseType || OCTET_STREAM;
11044
+ const extension = source.title?.toLowerCase().match(/\.[^.]*$/)?.[0];
11045
+ return extension && EXTENSION_TO_MIME_TYPE[extension] || responseType || OCTET_STREAM;
11077
11046
  }
11078
11047
 
11079
11048
  class UserSettingsService extends BaseService {
@@ -11208,63 +11177,12 @@ __decorate([
11208
11177
  track("ConversationalAgent.GetConnectionAuthUrl")
11209
11178
  ], ConversationalAgentService.prototype, "getConnectionAuthUrl", null);
11210
11179
  export {
11211
- AgentMap,
11212
- AsyncInputStreamEventHelper,
11213
- AsyncInputStreamEventHelperImpl,
11214
- AsyncToolCallEventHelper,
11215
- AsyncToolCallEventHelperImpl,
11216
- CitationErrorType,
11217
- ConnectionAuthMap,
11218
- ConnectionState,
11219
- ContentPartEventHelper,
11220
- ContentPartEventHelperImpl,
11221
- ContentPartHelper,
11222
- ConversationEventHelperBase,
11223
- ConversationEventHelperManager,
11224
- ConversationEventHelperManagerImpl,
11225
- ConversationEventInvalidOperationError,
11226
- ConversationEventValidationError,
11227
- ConversationGetAllFilterMap,
11228
- ConversationMap,
11229
- ConversationalAgentService as ConversationalAgent,
11230
11180
  ConversationalAgentService,
11231
- EventErrorId,
11232
- ExchangeEventHelper,
11233
- ExchangeEventHelperImpl,
11234
- ExchangeMap,
11235
11181
  ExchangeService,
11236
- ExchangeService as Exchanges,
11237
11182
  FeedbackRating,
11238
- InputStreamSpeechSensitivity,
11239
- InterruptType,
11240
- LogLevel,
11241
- MessageEventHelper,
11242
- MessageEventHelperImpl,
11243
- MessageMap,
11244
11183
  MessageRole,
11245
11184
  MessageService,
11246
- MessageService as Messages,
11247
- SessionEventHelper,
11248
- SessionEventHelperImpl,
11249
- SortOrder,
11250
- ToolCallEventHelper,
11251
- ToolCallEventHelperImpl,
11252
- UserSettingsService as UserSettings,
11253
- UserSettingsMap,
11254
- UserSettingsService,
11255
- assertCitationSourceMedia,
11256
- assertCitationSourceUrl,
11257
- assertExternalValue,
11258
- assertInlineValue,
11259
- createAgentWithMethods,
11260
- createConversationWithMethods,
11261
- isCitationSourceMedia,
11262
- isCitationSourceUrl,
11263
- isExternalValue,
11264
- isInlineValue,
11265
- transformExchange,
11266
- transformExchanges,
11267
- transformMessage
11185
+ UserSettingsService
11268
11186
  };
11269
11187
 
11270
- //# debugId=82FA92620D258D7364756E2164756E21
11188
+ //# debugId=4F24C894B681FB8964756E2164756E21