@uipath/conversational-tool 1.205.0-preview.276 → 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.
- package/README.md +42 -0
- package/dist/{cas-client-09ntqztk.js → cas-client-jqyxk1dc.js} +23 -17
- package/dist/{getMachineId-bsd-t2xa1xja.js → getMachineId-bsd-gq25bn5m.js} +3 -3
- package/dist/{getMachineId-darwin-rnf93px2.js → getMachineId-darwin-g1g93zw1.js} +3 -3
- package/dist/{getMachineId-linux-ef2vse73.js → getMachineId-linux-gapvcvwf.js} +2 -2
- package/dist/{getMachineId-unsupported-sgg8gaae.js → getMachineId-unsupported-4zwvzkvs.js} +2 -2
- package/dist/{getMachineId-win-0q96gyd6.js → getMachineId-win-spwpdy3q.js} +3 -3
- package/dist/{index-nr509xjn.js → index-764qyyq8.js} +276 -358
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +9 -11
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{tool-yerrea90.js → tool-1f0pnfrv.js} +1 -1
- package/dist/{tool-mpvp5rqs.js → tool-3spqea6t.js} +30 -30
- package/dist/{tool-1yh8g550.js → tool-6an893wm.js} +12 -3
- package/dist/{tool-nkyhbf79.js → tool-9v6hwcm1.js} +43 -43
- package/dist/{tool-3a0mhv82.js → tool-gmy31v7s.js} +1906 -1369
- package/dist/{tool-3dfktcw7.js → tool-pkvhm356.js} +1588 -1161
- package/dist/tool.js +8 -10
- package/package.json +2 -2
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getOrCreateClient,
|
|
2
3
|
createTrack,
|
|
3
|
-
createTrackEvent
|
|
4
|
-
|
|
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
|
-
|
|
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,
|
|
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 =
|
|
179
|
-
self.response =
|
|
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(
|
|
245
|
-
response =
|
|
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
|
|
249
|
-
host =
|
|
247
|
+
var url = Url.parse(settings.url);
|
|
248
|
+
host = url.hostname;
|
|
250
249
|
var newOptions = {
|
|
251
|
-
hostname:
|
|
252
|
-
port:
|
|
253
|
-
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
|
|
275
|
-
self.response = Buffer.concat([self.response,
|
|
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
|
|
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
|
|
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
|
|
1086
|
-
if (
|
|
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,
|
|
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(
|
|
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 <
|
|
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
|
|
1205
|
-
|
|
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
|
-
|
|
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
|
|
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,
|
|
1228
|
+
module.exports.mask = function(source, mask2, output, offset, length) {
|
|
1230
1229
|
if (length < 48)
|
|
1231
|
-
_mask(source,
|
|
1230
|
+
_mask(source, mask2, output, offset, length);
|
|
1232
1231
|
else
|
|
1233
|
-
bufferUtil.mask(source,
|
|
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
|
|
1391
|
-
if (
|
|
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
|
-
|
|
1393
|
+
value = value[0];
|
|
1395
1394
|
if (key === "client_max_window_bits") {
|
|
1396
|
-
if (
|
|
1397
|
-
const num = +
|
|
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}": ${
|
|
1398
|
+
throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
|
|
1400
1399
|
}
|
|
1401
|
-
|
|
1400
|
+
value = num;
|
|
1402
1401
|
} else if (!this._isServer) {
|
|
1403
|
-
throw new TypeError(`Invalid value for parameter "${key}": ${
|
|
1402
|
+
throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
|
|
1404
1403
|
}
|
|
1405
1404
|
} else if (key === "server_max_window_bits") {
|
|
1406
|
-
const num = +
|
|
1405
|
+
const num = +value;
|
|
1407
1406
|
if (!Number.isInteger(num) || num < 8 || num > 15) {
|
|
1408
|
-
throw new TypeError(`Invalid value for parameter "${key}": ${
|
|
1407
|
+
throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
|
|
1409
1408
|
}
|
|
1410
|
-
|
|
1409
|
+
value = num;
|
|
1411
1410
|
} else if (key === "client_no_context_takeover" || key === "server_no_context_takeover") {
|
|
1412
|
-
if (
|
|
1413
|
-
throw new TypeError(`Invalid value for parameter "${key}": ${
|
|
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] =
|
|
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
|
|
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,
|
|
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
|
|
1498
|
+
let data = bufferUtil.concat(this._deflate[kBuffers], this._deflate[kTotalLength]);
|
|
1500
1499
|
if (fin) {
|
|
1501
|
-
|
|
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,
|
|
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(
|
|
1706
|
-
return hasBlob && typeof
|
|
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
|
|
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
|
|
2270
|
+
let byteLength;
|
|
2272
2271
|
let readOnly;
|
|
2273
2272
|
if (typeof data === "string") {
|
|
2274
|
-
|
|
2273
|
+
byteLength = Buffer.byteLength(data);
|
|
2275
2274
|
readOnly = false;
|
|
2276
2275
|
} else if (isBlob(data)) {
|
|
2277
|
-
|
|
2276
|
+
byteLength = data.size;
|
|
2278
2277
|
readOnly = false;
|
|
2279
2278
|
} else {
|
|
2280
|
-
data =
|
|
2281
|
-
|
|
2282
|
-
readOnly =
|
|
2279
|
+
data = toBuffer(data);
|
|
2280
|
+
byteLength = data.length;
|
|
2281
|
+
readOnly = toBuffer.readOnly;
|
|
2283
2282
|
}
|
|
2284
|
-
if (
|
|
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]:
|
|
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
|
|
2309
|
+
let byteLength;
|
|
2311
2310
|
let readOnly;
|
|
2312
2311
|
if (typeof data === "string") {
|
|
2313
|
-
|
|
2312
|
+
byteLength = Buffer.byteLength(data);
|
|
2314
2313
|
readOnly = false;
|
|
2315
2314
|
} else if (isBlob(data)) {
|
|
2316
|
-
|
|
2315
|
+
byteLength = data.size;
|
|
2317
2316
|
readOnly = false;
|
|
2318
2317
|
} else {
|
|
2319
|
-
data =
|
|
2320
|
-
|
|
2321
|
-
readOnly =
|
|
2318
|
+
data = toBuffer(data);
|
|
2319
|
+
byteLength = data.length;
|
|
2320
|
+
readOnly = toBuffer.readOnly;
|
|
2322
2321
|
}
|
|
2323
|
-
if (
|
|
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]:
|
|
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
|
|
2351
|
+
let byteLength;
|
|
2353
2352
|
let readOnly;
|
|
2354
2353
|
if (typeof data === "string") {
|
|
2355
|
-
|
|
2354
|
+
byteLength = Buffer.byteLength(data);
|
|
2356
2355
|
readOnly = false;
|
|
2357
2356
|
} else if (isBlob(data)) {
|
|
2358
|
-
|
|
2357
|
+
byteLength = data.size;
|
|
2359
2358
|
readOnly = false;
|
|
2360
2359
|
} else {
|
|
2361
|
-
data =
|
|
2362
|
-
|
|
2363
|
-
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 =
|
|
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]:
|
|
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 =
|
|
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
|
|
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
|
|
2740
|
+
let value = header.slice(start, end);
|
|
2742
2741
|
if (mustUnescape) {
|
|
2743
|
-
|
|
2742
|
+
value = value.replace(/\\/g, "");
|
|
2744
2743
|
mustUnescape = false;
|
|
2745
2744
|
}
|
|
2746
|
-
push(params, paramName,
|
|
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
|
|
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
|
|
2826
|
-
var { toBuffer
|
|
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
|
|
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
|
|
3249
|
-
if (typeof
|
|
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(
|
|
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 [
|
|
3281
|
-
options.headers[
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 :
|
|
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(
|
|
3619
|
+
ws.once("error", function error(err) {
|
|
3621
3620
|
called = true;
|
|
3622
|
-
callback(
|
|
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
|
|
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
|
|
3695
|
-
if (protocols.has(
|
|
3696
|
-
throw new SyntaxError(`The "${
|
|
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(
|
|
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
|
|
3708
|
-
if (protocols.has(
|
|
3709
|
-
throw new SyntaxError(`The "${
|
|
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(
|
|
3710
|
+
protocols.add(protocol);
|
|
3712
3711
|
return protocols;
|
|
3713
3712
|
}
|
|
3714
|
-
module.exports = { parse
|
|
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
|
|
3947
|
-
if (
|
|
3948
|
-
headers.push(`Sec-WebSocket-Protocol: ${
|
|
3949
|
-
ws._protocol =
|
|
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
|
|
3953
|
+
const value = extension.format({
|
|
3955
3954
|
[PerMessageDeflate.extensionName]: [params]
|
|
3956
3955
|
});
|
|
3957
|
-
headers.push(`Sec-WebSocket-Extensions: ${
|
|
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
|
|
4367
|
+
const value = subParts[1].trim();
|
|
4369
4368
|
switch (key) {
|
|
4370
4369
|
case "Expires":
|
|
4371
|
-
cookie.expires = new Date(
|
|
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(
|
|
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
|
|
4776
|
+
var _a;
|
|
4778
4777
|
if (xhr.readyState === 3) {
|
|
4779
|
-
(
|
|
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((
|
|
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
|
|
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",
|
|
5035
|
-
this.onPacket(
|
|
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(
|
|
5993
|
-
return typeof
|
|
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(
|
|
5999
|
-
return Object.prototype.toString.call(
|
|
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
|
|
6687
|
-
if (
|
|
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,
|
|
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,
|
|
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,
|
|
7175
|
-
if (
|
|
7173
|
+
for (const [key, value] of Object.entries(params)) {
|
|
7174
|
+
if (value === undefined || value === null)
|
|
7176
7175
|
continue;
|
|
7177
|
-
if (Array.isArray(
|
|
7178
|
-
|
|
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(
|
|
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,
|
|
7212
|
-
if (
|
|
7213
|
-
resolved[key] =
|
|
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(
|
|
7240
|
-
const trimmed =
|
|
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(
|
|
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(
|
|
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
|
|
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() ? `${
|
|
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
|
|
7387
|
-
return
|
|
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(
|
|
7429
|
-
|
|
7430
|
-
|
|
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
|
|
7441
|
+
let value = data;
|
|
7443
7442
|
for (const part of fieldPath.split(".")) {
|
|
7444
|
-
|
|
7443
|
+
value = value?.[part];
|
|
7445
7444
|
}
|
|
7446
|
-
return
|
|
7445
|
+
return value;
|
|
7447
7446
|
}
|
|
7448
7447
|
function filterUndefined(obj) {
|
|
7449
7448
|
const result = {};
|
|
7450
|
-
for (const [key,
|
|
7451
|
-
if (
|
|
7452
|
-
result[key] =
|
|
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,
|
|
7560
|
-
if (
|
|
7561
|
-
headers[key] =
|
|
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,
|
|
7595
|
+
for (const [key, value] of Object.entries(data)) {
|
|
7597
7596
|
const renamedKey = fieldMapping[key] ?? key;
|
|
7598
|
-
result[renamedKey] =
|
|
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,
|
|
7603
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
7605
7604
|
if (keys.includes(key)) {
|
|
7606
|
-
result[`${prefix}${key}`] =
|
|
7605
|
+
result[`${prefix}${key}`] = value;
|
|
7607
7606
|
} else {
|
|
7608
|
-
result[key] =
|
|
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,
|
|
7615
|
-
acc[
|
|
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(
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
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(
|
|
7851
|
-
|
|
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(
|
|
7864
|
-
const base64 =
|
|
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(
|
|
7932
|
-
return
|
|
7930
|
+
function isAuthorizeRequest(url) {
|
|
7931
|
+
return url.pathname.endsWith(`/${IDENTITY_ENDPOINTS.AUTHORIZE}`);
|
|
7933
7932
|
}
|
|
7934
|
-
function withoutQuery(
|
|
7935
|
-
const parsed = new URL(
|
|
7933
|
+
function withoutQuery(url) {
|
|
7934
|
+
const parsed = new URL(url);
|
|
7936
7935
|
return `${parsed.origin}${parsed.pathname}`;
|
|
7937
7936
|
}
|
|
7938
|
-
function readIdentityError(
|
|
7939
|
-
const errorId =
|
|
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
|
|
7950
|
+
return url.searchParams.get(IDENTITY_ERROR_CODE_PARAM) ?? undefined;
|
|
7952
7951
|
}
|
|
7953
7952
|
}
|
|
7954
|
-
return
|
|
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
|
|
8000
|
+
let url = buildAuthorizeUrl(baseUrl, orgName);
|
|
8002
8001
|
for (let hop = 0;hop < MAX_REDIRECT_HOPS; hop++) {
|
|
8003
|
-
const response = await fetchWithRetry(
|
|
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,
|
|
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
|
-
|
|
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(
|
|
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
|
|
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(
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
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(
|
|
8301
|
-
|
|
8299
|
+
(function(InterruptType) {
|
|
8300
|
+
InterruptType["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
|
|
8302
8301
|
})(InterruptType || (InterruptType = {}));
|
|
8303
8302
|
var SortOrder;
|
|
8304
|
-
(function(
|
|
8305
|
-
|
|
8306
|
-
|
|
8303
|
+
(function(SortOrder) {
|
|
8304
|
+
SortOrder["Ascending"] = "ascending";
|
|
8305
|
+
SortOrder["Descending"] = "descending";
|
|
8307
8306
|
})(SortOrder || (SortOrder = {}));
|
|
8308
8307
|
var FeedbackRating;
|
|
8309
|
-
(function(
|
|
8310
|
-
|
|
8311
|
-
|
|
8308
|
+
(function(FeedbackRating) {
|
|
8309
|
+
FeedbackRating["Positive"] = "positive";
|
|
8310
|
+
FeedbackRating["Negative"] = "negative";
|
|
8312
8311
|
})(FeedbackRating || (FeedbackRating = {}));
|
|
8313
8312
|
var InputStreamSpeechSensitivity;
|
|
8314
|
-
(function(
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
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(
|
|
8321
|
-
|
|
8322
|
-
|
|
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(
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
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(
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
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(
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
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 = (
|
|
8601
|
-
|
|
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(
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
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(
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
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
|
|
10475
|
-
const isSecure =
|
|
10443
|
+
const url = new URL(baseUrl);
|
|
10444
|
+
const isSecure = url.protocol === "https:";
|
|
10476
10445
|
const wsProtocol = isSecure ? "wss:" : "ws:";
|
|
10477
|
-
const host = `${wsProtocol}//${
|
|
10446
|
+
const host = `${wsProtocol}//${url.host}`;
|
|
10478
10447
|
if (path) {
|
|
10479
10448
|
return { host, path };
|
|
10480
10449
|
}
|
|
10481
|
-
if (
|
|
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
|
|
10807
|
-
for (const convId of
|
|
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
|
|
11076
|
-
return
|
|
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
|
-
|
|
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=
|
|
11188
|
+
//# debugId=4F24C894B681FB8964756E2164756E21
|