@uipath/data-fabric-tool 1.205.0-preview.281 → 1.206.0-preview.282
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 +41 -0
- package/dist/{entities-inline-baef06jh.js → entities-inline-2t6gm4dg.js} +67 -52
- package/dist/{federated-payload-9pzxpsw5.js → federated-payload-5aj381w4.js} +61 -26
- package/dist/{getMachineId-bsd-67w37xtj.js → getMachineId-bsd-hr7dy73y.js} +3 -3
- package/dist/{getMachineId-darwin-4g3xfpfp.js → getMachineId-darwin-k0c7ykqv.js} +3 -3
- package/dist/{getMachineId-linux-a4p6fb9w.js → getMachineId-linux-f0m4gd78.js} +2 -2
- package/dist/{getMachineId-unsupported-77w362eh.js → getMachineId-unsupported-e99prk6h.js} +2 -2
- package/dist/{getMachineId-win-9cfxg9c8.js → getMachineId-win-zqh7yjfs.js} +3 -3
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +11 -13
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{packager-tool-pz3g5mpk.js → packager-tool-0j0r03b9.js} +3 -3
- package/dist/{packager-tool-bndhpxxj.js → packager-tool-4b88bsfh.js} +30 -30
- package/dist/{packager-tool-2wp1xwz4.js → packager-tool-4h93ssh9.js} +6 -6
- package/dist/{packager-tool-m0btwdsf.js → packager-tool-8h3n7zh5.js} +207 -3
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/{packager-tool-2czkpqb0.js → packager-tool-ggemp2c3.js} +1 -1
- package/dist/{packager-tool-r0r0wqk6.js → packager-tool-k1j9cp3v.js} +164 -60
- package/dist/{packager-tool-w9r3qa12.js → packager-tool-rmg1jqy3.js} +1183 -1166
- package/dist/{packager-tool-xnrdmg37.js → packager-tool-xskp1rxe.js} +1494 -1214
- package/dist/packager-tool.js +5 -6
- package/dist/tool.js +10 -12
- package/package.json +2 -2
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_src
|
|
3
|
-
} from "./packager-tool-bndhpxxj.js";
|
|
4
1
|
import {
|
|
5
2
|
getFileSystem
|
|
6
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-xskp1rxe.js";
|
|
4
|
+
import {
|
|
5
|
+
require_src
|
|
6
|
+
} from "./packager-tool-4b88bsfh.js";
|
|
7
7
|
import {
|
|
8
|
+
__toESM,
|
|
8
9
|
__commonJS,
|
|
9
|
-
__require
|
|
10
|
-
|
|
11
|
-
} from "./packager-tool-1de529jm.js";
|
|
10
|
+
__require
|
|
11
|
+
} from "./packager-tool-epsr41wx.js";
|
|
12
12
|
|
|
13
13
|
// ../../node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/api-logs/build/src/types/LogRecord.js
|
|
14
14
|
var require_LogRecord = __commonJS(function(exports) {
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SeverityNumber = undefined;
|
|
17
17
|
var SeverityNumber;
|
|
18
|
-
(function(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
18
|
+
(function(SeverityNumber) {
|
|
19
|
+
SeverityNumber[SeverityNumber["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
20
|
+
SeverityNumber[SeverityNumber["TRACE"] = 1] = "TRACE";
|
|
21
|
+
SeverityNumber[SeverityNumber["TRACE2"] = 2] = "TRACE2";
|
|
22
|
+
SeverityNumber[SeverityNumber["TRACE3"] = 3] = "TRACE3";
|
|
23
|
+
SeverityNumber[SeverityNumber["TRACE4"] = 4] = "TRACE4";
|
|
24
|
+
SeverityNumber[SeverityNumber["DEBUG"] = 5] = "DEBUG";
|
|
25
|
+
SeverityNumber[SeverityNumber["DEBUG2"] = 6] = "DEBUG2";
|
|
26
|
+
SeverityNumber[SeverityNumber["DEBUG3"] = 7] = "DEBUG3";
|
|
27
|
+
SeverityNumber[SeverityNumber["DEBUG4"] = 8] = "DEBUG4";
|
|
28
|
+
SeverityNumber[SeverityNumber["INFO"] = 9] = "INFO";
|
|
29
|
+
SeverityNumber[SeverityNumber["INFO2"] = 10] = "INFO2";
|
|
30
|
+
SeverityNumber[SeverityNumber["INFO3"] = 11] = "INFO3";
|
|
31
|
+
SeverityNumber[SeverityNumber["INFO4"] = 12] = "INFO4";
|
|
32
|
+
SeverityNumber[SeverityNumber["WARN"] = 13] = "WARN";
|
|
33
|
+
SeverityNumber[SeverityNumber["WARN2"] = 14] = "WARN2";
|
|
34
|
+
SeverityNumber[SeverityNumber["WARN3"] = 15] = "WARN3";
|
|
35
|
+
SeverityNumber[SeverityNumber["WARN4"] = 16] = "WARN4";
|
|
36
|
+
SeverityNumber[SeverityNumber["ERROR"] = 17] = "ERROR";
|
|
37
|
+
SeverityNumber[SeverityNumber["ERROR2"] = 18] = "ERROR2";
|
|
38
|
+
SeverityNumber[SeverityNumber["ERROR3"] = 19] = "ERROR3";
|
|
39
|
+
SeverityNumber[SeverityNumber["ERROR4"] = 20] = "ERROR4";
|
|
40
|
+
SeverityNumber[SeverityNumber["FATAL"] = 21] = "FATAL";
|
|
41
|
+
SeverityNumber[SeverityNumber["FATAL2"] = 22] = "FATAL2";
|
|
42
|
+
SeverityNumber[SeverityNumber["FATAL3"] = 23] = "FATAL3";
|
|
43
|
+
SeverityNumber[SeverityNumber["FATAL4"] = 24] = "FATAL4";
|
|
44
44
|
})(SeverityNumber = exports.SeverityNumber || (exports.SeverityNumber = {}));
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -2444,9 +2444,9 @@ var require_ExportResult = __commonJS(function(exports) {
|
|
|
2444
2444
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2445
2445
|
exports.ExportResultCode = undefined;
|
|
2446
2446
|
var ExportResultCode;
|
|
2447
|
-
(function(
|
|
2448
|
-
|
|
2449
|
-
|
|
2447
|
+
(function(ExportResultCode) {
|
|
2448
|
+
ExportResultCode[ExportResultCode["SUCCESS"] = 0] = "SUCCESS";
|
|
2449
|
+
ExportResultCode[ExportResultCode["FAILED"] = 1] = "FAILED";
|
|
2450
2450
|
})(ExportResultCode = exports.ExportResultCode || (exports.ExportResultCode = {}));
|
|
2451
2451
|
});
|
|
2452
2452
|
|
|
@@ -2698,8 +2698,8 @@ var require_rpc_metadata = __commonJS(function(exports) {
|
|
|
2698
2698
|
var api_1 = require_src();
|
|
2699
2699
|
var RPC_METADATA_KEY = (0, api_1.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA");
|
|
2700
2700
|
var RPCType;
|
|
2701
|
-
(function(
|
|
2702
|
-
|
|
2701
|
+
(function(RPCType) {
|
|
2702
|
+
RPCType["HTTP"] = "http";
|
|
2703
2703
|
})(RPCType = exports.RPCType || (exports.RPCType = {}));
|
|
2704
2704
|
function setRPCMetadata(context, meta) {
|
|
2705
2705
|
return context.setValue(RPC_METADATA_KEY, meta);
|
|
@@ -3568,19 +3568,19 @@ var require_getMachineId = __commonJS(function(exports) {
|
|
|
3568
3568
|
if (!getMachineIdImpl) {
|
|
3569
3569
|
switch (process2.platform) {
|
|
3570
3570
|
case "darwin":
|
|
3571
|
-
getMachineIdImpl = (await import("./getMachineId-darwin-
|
|
3571
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-k0c7ykqv.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3572
3572
|
break;
|
|
3573
3573
|
case "linux":
|
|
3574
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
3574
|
+
getMachineIdImpl = (await import("./getMachineId-linux-f0m4gd78.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3575
3575
|
break;
|
|
3576
3576
|
case "freebsd":
|
|
3577
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
3577
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-hr7dy73y.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3578
3578
|
break;
|
|
3579
3579
|
case "win32":
|
|
3580
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
3580
|
+
getMachineIdImpl = (await import("./getMachineId-win-zqh7yjfs.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3581
3581
|
break;
|
|
3582
3582
|
default:
|
|
3583
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
3583
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-e99prk6h.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3584
3584
|
break;
|
|
3585
3585
|
}
|
|
3586
3586
|
}
|
|
@@ -3688,8 +3688,8 @@ var require_ProcessDetector = __commonJS(function(exports) {
|
|
|
3688
3688
|
attributes[semconv_1.ATTR_PROCESS_COMMAND] = process.argv[1];
|
|
3689
3689
|
}
|
|
3690
3690
|
try {
|
|
3691
|
-
const
|
|
3692
|
-
attributes[semconv_1.ATTR_PROCESS_OWNER] =
|
|
3691
|
+
const userInfo2 = os.userInfo();
|
|
3692
|
+
attributes[semconv_1.ATTR_PROCESS_OWNER] = userInfo2.username;
|
|
3693
3693
|
} catch (e) {
|
|
3694
3694
|
api_1.diag.debug(`error obtaining process owner: ${e}`);
|
|
3695
3695
|
}
|
|
@@ -5165,10 +5165,10 @@ function prefixIssues(path, issues) {
|
|
|
5165
5165
|
function unwrapMessage(message) {
|
|
5166
5166
|
return typeof message === "string" ? message : message?.message;
|
|
5167
5167
|
}
|
|
5168
|
-
function finalizeIssue(iss, ctx,
|
|
5168
|
+
function finalizeIssue(iss, ctx, config) {
|
|
5169
5169
|
const full = { ...iss, path: iss.path ?? [] };
|
|
5170
5170
|
if (!iss.message) {
|
|
5171
|
-
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(
|
|
5171
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
|
|
5172
5172
|
full.message = message;
|
|
5173
5173
|
}
|
|
5174
5174
|
delete full.inst;
|
|
@@ -5215,7 +5215,7 @@ var initializer$1 = (inst, def) => {
|
|
|
5215
5215
|
};
|
|
5216
5216
|
var $ZodError = $constructor("$ZodError", initializer$1);
|
|
5217
5217
|
var $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
5218
|
-
function flattenError(error, mapper = (
|
|
5218
|
+
function flattenError(error, mapper = (issue) => issue.message) {
|
|
5219
5219
|
const fieldErrors = {};
|
|
5220
5220
|
const formErrors = [];
|
|
5221
5221
|
for (const sub of error.issues) {
|
|
@@ -5228,29 +5228,29 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
5228
5228
|
}
|
|
5229
5229
|
return { formErrors, fieldErrors };
|
|
5230
5230
|
}
|
|
5231
|
-
function formatError(error, mapper = (
|
|
5231
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
5232
5232
|
const fieldErrors = { _errors: [] };
|
|
5233
|
-
const processError = (
|
|
5234
|
-
for (const
|
|
5235
|
-
if (
|
|
5236
|
-
|
|
5237
|
-
} else if (
|
|
5238
|
-
processError({ issues:
|
|
5239
|
-
} else if (
|
|
5240
|
-
processError({ issues:
|
|
5241
|
-
} else if (
|
|
5242
|
-
fieldErrors._errors.push(mapper(
|
|
5233
|
+
const processError = (error) => {
|
|
5234
|
+
for (const issue of error.issues) {
|
|
5235
|
+
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
5236
|
+
issue.errors.map((issues) => processError({ issues }));
|
|
5237
|
+
} else if (issue.code === "invalid_key") {
|
|
5238
|
+
processError({ issues: issue.issues });
|
|
5239
|
+
} else if (issue.code === "invalid_element") {
|
|
5240
|
+
processError({ issues: issue.issues });
|
|
5241
|
+
} else if (issue.path.length === 0) {
|
|
5242
|
+
fieldErrors._errors.push(mapper(issue));
|
|
5243
5243
|
} else {
|
|
5244
5244
|
let curr = fieldErrors;
|
|
5245
5245
|
let i = 0;
|
|
5246
|
-
while (i <
|
|
5247
|
-
const el =
|
|
5248
|
-
const terminal = i ===
|
|
5246
|
+
while (i < issue.path.length) {
|
|
5247
|
+
const el = issue.path[i];
|
|
5248
|
+
const terminal = i === issue.path.length - 1;
|
|
5249
5249
|
if (!terminal) {
|
|
5250
5250
|
curr[el] = curr[el] || { _errors: [] };
|
|
5251
5251
|
} else {
|
|
5252
5252
|
curr[el] = curr[el] || { _errors: [] };
|
|
5253
|
-
curr[el]._errors.push(mapper(
|
|
5253
|
+
curr[el]._errors.push(mapper(issue));
|
|
5254
5254
|
}
|
|
5255
5255
|
curr = curr[el];
|
|
5256
5256
|
i++;
|
|
@@ -5402,10 +5402,10 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
5402
5402
|
const val = payload.value;
|
|
5403
5403
|
return !nullish(val) && val.length !== undefined;
|
|
5404
5404
|
});
|
|
5405
|
-
inst._zod.onattach.push((
|
|
5406
|
-
const curr =
|
|
5405
|
+
inst._zod.onattach.push((inst) => {
|
|
5406
|
+
const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
5407
5407
|
if (def.maximum < curr)
|
|
5408
|
-
|
|
5408
|
+
inst._zod.bag.maximum = def.maximum;
|
|
5409
5409
|
});
|
|
5410
5410
|
inst._zod.check = (payload) => {
|
|
5411
5411
|
const input = payload.value;
|
|
@@ -5431,10 +5431,10 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
5431
5431
|
const val = payload.value;
|
|
5432
5432
|
return !nullish(val) && val.length !== undefined;
|
|
5433
5433
|
});
|
|
5434
|
-
inst._zod.onattach.push((
|
|
5435
|
-
const curr =
|
|
5434
|
+
inst._zod.onattach.push((inst) => {
|
|
5435
|
+
const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
5436
5436
|
if (def.minimum > curr)
|
|
5437
|
-
|
|
5437
|
+
inst._zod.bag.minimum = def.minimum;
|
|
5438
5438
|
});
|
|
5439
5439
|
inst._zod.check = (payload) => {
|
|
5440
5440
|
const input = payload.value;
|
|
@@ -5460,8 +5460,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
5460
5460
|
const val = payload.value;
|
|
5461
5461
|
return !nullish(val) && val.length !== undefined;
|
|
5462
5462
|
});
|
|
5463
|
-
inst._zod.onattach.push((
|
|
5464
|
-
const bag =
|
|
5463
|
+
inst._zod.onattach.push((inst) => {
|
|
5464
|
+
const bag = inst._zod.bag;
|
|
5465
5465
|
bag.minimum = def.length;
|
|
5466
5466
|
bag.maximum = def.length;
|
|
5467
5467
|
bag.length = def.length;
|
|
@@ -5487,8 +5487,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
5487
5487
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
5488
5488
|
var _a, _b;
|
|
5489
5489
|
$ZodCheck.init(inst, def);
|
|
5490
|
-
inst._zod.onattach.push((
|
|
5491
|
-
const bag =
|
|
5490
|
+
inst._zod.onattach.push((inst) => {
|
|
5491
|
+
const bag = inst._zod.bag;
|
|
5492
5492
|
bag.format = def.format;
|
|
5493
5493
|
if (def.pattern) {
|
|
5494
5494
|
bag.patterns ?? (bag.patterns = new Set);
|
|
@@ -5543,8 +5543,8 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
|
|
|
5543
5543
|
const escapedRegex = escapeRegex(def.includes);
|
|
5544
5544
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
5545
5545
|
def.pattern = pattern;
|
|
5546
|
-
inst._zod.onattach.push((
|
|
5547
|
-
const bag =
|
|
5546
|
+
inst._zod.onattach.push((inst) => {
|
|
5547
|
+
const bag = inst._zod.bag;
|
|
5548
5548
|
bag.patterns ?? (bag.patterns = new Set);
|
|
5549
5549
|
bag.patterns.add(pattern);
|
|
5550
5550
|
});
|
|
@@ -5566,8 +5566,8 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
|
|
|
5566
5566
|
$ZodCheck.init(inst, def);
|
|
5567
5567
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
5568
5568
|
def.pattern ?? (def.pattern = pattern);
|
|
5569
|
-
inst._zod.onattach.push((
|
|
5570
|
-
const bag =
|
|
5569
|
+
inst._zod.onattach.push((inst) => {
|
|
5570
|
+
const bag = inst._zod.bag;
|
|
5571
5571
|
bag.patterns ?? (bag.patterns = new Set);
|
|
5572
5572
|
bag.patterns.add(pattern);
|
|
5573
5573
|
});
|
|
@@ -5589,8 +5589,8 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
|
|
|
5589
5589
|
$ZodCheck.init(inst, def);
|
|
5590
5590
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
5591
5591
|
def.pattern ?? (def.pattern = pattern);
|
|
5592
|
-
inst._zod.onattach.push((
|
|
5593
|
-
const bag =
|
|
5592
|
+
inst._zod.onattach.push((inst) => {
|
|
5593
|
+
const bag = inst._zod.bag;
|
|
5594
5594
|
bag.patterns ?? (bag.patterns = new Set);
|
|
5595
5595
|
bag.patterns.add(pattern);
|
|
5596
5596
|
});
|
|
@@ -5677,10 +5677,10 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5677
5677
|
inst._zod.run = inst._zod.parse;
|
|
5678
5678
|
});
|
|
5679
5679
|
} else {
|
|
5680
|
-
const runChecks = (payload,
|
|
5680
|
+
const runChecks = (payload, checks, ctx) => {
|
|
5681
5681
|
let isAborted = aborted(payload);
|
|
5682
5682
|
let asyncResult;
|
|
5683
|
-
for (const ch of
|
|
5683
|
+
for (const ch of checks) {
|
|
5684
5684
|
if (ch._zod.def.when) {
|
|
5685
5685
|
const shouldRun = ch._zod.def.when(payload);
|
|
5686
5686
|
if (!shouldRun)
|
|
@@ -5726,7 +5726,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5726
5726
|
if (checkResult instanceof Promise) {
|
|
5727
5727
|
if (ctx.async === false)
|
|
5728
5728
|
throw new $ZodAsyncError;
|
|
5729
|
-
return checkResult.then((
|
|
5729
|
+
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
5730
5730
|
}
|
|
5731
5731
|
return inst._zod.parse(checkResult, ctx);
|
|
5732
5732
|
};
|
|
@@ -5737,8 +5737,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5737
5737
|
if (ctx.direction === "backward") {
|
|
5738
5738
|
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
5739
5739
|
if (canary instanceof Promise) {
|
|
5740
|
-
return canary.then((
|
|
5741
|
-
return handleCanaryResult(
|
|
5740
|
+
return canary.then((canary) => {
|
|
5741
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
5742
5742
|
});
|
|
5743
5743
|
}
|
|
5744
5744
|
return handleCanaryResult(canary, payload, ctx);
|
|
@@ -5747,7 +5747,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5747
5747
|
if (result instanceof Promise) {
|
|
5748
5748
|
if (ctx.async === false)
|
|
5749
5749
|
throw new $ZodAsyncError;
|
|
5750
|
-
return result.then((
|
|
5750
|
+
return result.then((result) => runChecks(result, checks, ctx));
|
|
5751
5751
|
}
|
|
5752
5752
|
return runChecks(result, checks, ctx);
|
|
5753
5753
|
};
|
|
@@ -5772,7 +5772,7 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
5772
5772
|
if (def.coerce)
|
|
5773
5773
|
try {
|
|
5774
5774
|
payload.value = String(payload.value);
|
|
5775
|
-
} catch (
|
|
5775
|
+
} catch (_) {}
|
|
5776
5776
|
if (typeof payload.value === "string")
|
|
5777
5777
|
return payload;
|
|
5778
5778
|
payload.issues.push({
|
|
@@ -5997,8 +5997,8 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
5997
5997
|
function isValidBase64URL(data) {
|
|
5998
5998
|
if (!base64url.test(data))
|
|
5999
5999
|
return false;
|
|
6000
|
-
const
|
|
6001
|
-
const padded =
|
|
6000
|
+
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
6001
|
+
const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
|
|
6002
6002
|
return isValidBase64(padded);
|
|
6003
6003
|
}
|
|
6004
6004
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
@@ -6119,7 +6119,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
6119
6119
|
issues: []
|
|
6120
6120
|
}, ctx);
|
|
6121
6121
|
if (result instanceof Promise) {
|
|
6122
|
-
proms.push(result.then((
|
|
6122
|
+
proms.push(result.then((result) => handleArrayResult(result, payload, i)));
|
|
6123
6123
|
} else {
|
|
6124
6124
|
handleArrayResult(result, payload, i);
|
|
6125
6125
|
}
|
|
@@ -6176,7 +6176,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
6176
6176
|
}
|
|
6177
6177
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
6178
6178
|
if (r instanceof Promise) {
|
|
6179
|
-
proms.push(r.then((
|
|
6179
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
|
|
6180
6180
|
} else {
|
|
6181
6181
|
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
6182
6182
|
}
|
|
@@ -6247,7 +6247,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
6247
6247
|
const isOptionalOut = el._zod.optout === "optional";
|
|
6248
6248
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
6249
6249
|
if (r instanceof Promise) {
|
|
6250
|
-
proms.push(r.then((
|
|
6250
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
|
|
6251
6251
|
} else {
|
|
6252
6252
|
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
6253
6253
|
}
|
|
@@ -6418,8 +6418,8 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
6418
6418
|
}
|
|
6419
6419
|
if (!async)
|
|
6420
6420
|
return handleUnionResults(results, payload, inst, ctx);
|
|
6421
|
-
return Promise.all(results).then((
|
|
6422
|
-
return handleUnionResults(
|
|
6421
|
+
return Promise.all(results).then((results) => {
|
|
6422
|
+
return handleUnionResults(results, payload, inst, ctx);
|
|
6423
6423
|
});
|
|
6424
6424
|
};
|
|
6425
6425
|
});
|
|
@@ -6431,8 +6431,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
|
|
|
6431
6431
|
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
6432
6432
|
const async = left instanceof Promise || right instanceof Promise;
|
|
6433
6433
|
if (async) {
|
|
6434
|
-
return Promise.all([left, right]).then(([
|
|
6435
|
-
return handleIntersectionResults(payload,
|
|
6434
|
+
return Promise.all([left, right]).then(([left, right]) => {
|
|
6435
|
+
return handleIntersectionResults(payload, left, right);
|
|
6436
6436
|
});
|
|
6437
6437
|
}
|
|
6438
6438
|
return handleIntersectionResults(payload, left, right);
|
|
@@ -6550,8 +6550,8 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
6550
6550
|
const _out = def.transform(payload.value, payload);
|
|
6551
6551
|
if (ctx.async) {
|
|
6552
6552
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
6553
|
-
return output.then((
|
|
6554
|
-
payload.value =
|
|
6553
|
+
return output.then((output) => {
|
|
6554
|
+
payload.value = output;
|
|
6555
6555
|
return payload;
|
|
6556
6556
|
});
|
|
6557
6557
|
}
|
|
@@ -6631,7 +6631,7 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
|
6631
6631
|
}
|
|
6632
6632
|
const result = def.innerType._zod.run(payload, ctx);
|
|
6633
6633
|
if (result instanceof Promise) {
|
|
6634
|
-
return result.then((
|
|
6634
|
+
return result.then((result) => handleDefaultResult(result, def));
|
|
6635
6635
|
}
|
|
6636
6636
|
return handleDefaultResult(result, def);
|
|
6637
6637
|
};
|
|
@@ -6665,7 +6665,7 @@ var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def
|
|
|
6665
6665
|
inst._zod.parse = (payload, ctx) => {
|
|
6666
6666
|
const result = def.innerType._zod.run(payload, ctx);
|
|
6667
6667
|
if (result instanceof Promise) {
|
|
6668
|
-
return result.then((
|
|
6668
|
+
return result.then((result) => handleNonOptionalResult(result, inst));
|
|
6669
6669
|
}
|
|
6670
6670
|
return handleNonOptionalResult(result, inst);
|
|
6671
6671
|
};
|
|
@@ -6692,13 +6692,13 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
6692
6692
|
}
|
|
6693
6693
|
const result = def.innerType._zod.run(payload, ctx);
|
|
6694
6694
|
if (result instanceof Promise) {
|
|
6695
|
-
return result.then((
|
|
6696
|
-
payload.value =
|
|
6697
|
-
if (
|
|
6695
|
+
return result.then((result) => {
|
|
6696
|
+
payload.value = result.value;
|
|
6697
|
+
if (result.issues.length) {
|
|
6698
6698
|
payload.value = def.catchValue({
|
|
6699
6699
|
...payload,
|
|
6700
6700
|
error: {
|
|
6701
|
-
issues:
|
|
6701
|
+
issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
6702
6702
|
},
|
|
6703
6703
|
input: payload.value
|
|
6704
6704
|
});
|
|
@@ -6731,13 +6731,13 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
6731
6731
|
if (ctx.direction === "backward") {
|
|
6732
6732
|
const right = def.out._zod.run(payload, ctx);
|
|
6733
6733
|
if (right instanceof Promise) {
|
|
6734
|
-
return right.then((
|
|
6734
|
+
return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
6735
6735
|
}
|
|
6736
6736
|
return handlePipeResult(right, def.in, ctx);
|
|
6737
6737
|
}
|
|
6738
6738
|
const left = def.in._zod.run(payload, ctx);
|
|
6739
6739
|
if (left instanceof Promise) {
|
|
6740
|
-
return left.then((
|
|
6740
|
+
return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
6741
6741
|
}
|
|
6742
6742
|
return handlePipeResult(left, def.out, ctx);
|
|
6743
6743
|
};
|
|
@@ -6780,7 +6780,7 @@ var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
|
6780
6780
|
const input = payload.value;
|
|
6781
6781
|
const r = def.fn(input);
|
|
6782
6782
|
if (r instanceof Promise) {
|
|
6783
|
-
return r.then((
|
|
6783
|
+
return r.then((r) => handleRefineResult(r, payload, input, inst));
|
|
6784
6784
|
}
|
|
6785
6785
|
handleRefineResult(r, payload, input, inst);
|
|
6786
6786
|
return;
|
|
@@ -7333,7 +7333,7 @@ function extractDefs(ctx, schema) {
|
|
|
7333
7333
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
7334
7334
|
if (ctx.external) {
|
|
7335
7335
|
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
7336
|
-
const uriGenerator = ctx.external.uri ?? ((
|
|
7336
|
+
const uriGenerator = ctx.external.uri ?? ((id) => id);
|
|
7337
7337
|
if (externalId) {
|
|
7338
7338
|
return { ref: uriGenerator(externalId) };
|
|
7339
7339
|
}
|
|
@@ -7358,11 +7358,11 @@ function extractDefs(ctx, schema) {
|
|
|
7358
7358
|
seen.def = { ...seen.schema };
|
|
7359
7359
|
if (defId)
|
|
7360
7360
|
seen.defId = defId;
|
|
7361
|
-
const
|
|
7362
|
-
for (const key in
|
|
7363
|
-
delete
|
|
7361
|
+
const schema = seen.schema;
|
|
7362
|
+
for (const key in schema) {
|
|
7363
|
+
delete schema[key];
|
|
7364
7364
|
}
|
|
7365
|
-
|
|
7365
|
+
schema.$ref = ref;
|
|
7366
7366
|
};
|
|
7367
7367
|
if (ctx.cycles === "throw") {
|
|
7368
7368
|
for (const entry of ctx.seen.entries()) {
|
|
@@ -7410,8 +7410,8 @@ function finalize(ctx, schema) {
|
|
|
7410
7410
|
const seen = ctx.seen.get(zodSchema);
|
|
7411
7411
|
if (seen.ref === null)
|
|
7412
7412
|
return;
|
|
7413
|
-
const
|
|
7414
|
-
const _cached = { ...
|
|
7413
|
+
const schema = seen.def ?? seen.schema;
|
|
7414
|
+
const _cached = { ...schema };
|
|
7415
7415
|
const ref = seen.ref;
|
|
7416
7416
|
seen.ref = null;
|
|
7417
7417
|
if (ref) {
|
|
@@ -7419,28 +7419,28 @@ function finalize(ctx, schema) {
|
|
|
7419
7419
|
const refSeen = ctx.seen.get(ref);
|
|
7420
7420
|
const refSchema = refSeen.schema;
|
|
7421
7421
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
7422
|
-
|
|
7423
|
-
|
|
7422
|
+
schema.allOf = schema.allOf ?? [];
|
|
7423
|
+
schema.allOf.push(refSchema);
|
|
7424
7424
|
} else {
|
|
7425
|
-
Object.assign(
|
|
7425
|
+
Object.assign(schema, refSchema);
|
|
7426
7426
|
}
|
|
7427
|
-
Object.assign(
|
|
7427
|
+
Object.assign(schema, _cached);
|
|
7428
7428
|
const isParentRef = zodSchema._zod.parent === ref;
|
|
7429
7429
|
if (isParentRef) {
|
|
7430
|
-
for (const key in
|
|
7430
|
+
for (const key in schema) {
|
|
7431
7431
|
if (key === "$ref" || key === "allOf")
|
|
7432
7432
|
continue;
|
|
7433
7433
|
if (!(key in _cached)) {
|
|
7434
|
-
delete
|
|
7434
|
+
delete schema[key];
|
|
7435
7435
|
}
|
|
7436
7436
|
}
|
|
7437
7437
|
}
|
|
7438
7438
|
if (refSchema.$ref && refSeen.def) {
|
|
7439
|
-
for (const key in
|
|
7439
|
+
for (const key in schema) {
|
|
7440
7440
|
if (key === "$ref" || key === "allOf")
|
|
7441
7441
|
continue;
|
|
7442
|
-
if (key in refSeen.def && JSON.stringify(
|
|
7443
|
-
delete
|
|
7442
|
+
if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {
|
|
7443
|
+
delete schema[key];
|
|
7444
7444
|
}
|
|
7445
7445
|
}
|
|
7446
7446
|
}
|
|
@@ -7450,13 +7450,13 @@ function finalize(ctx, schema) {
|
|
|
7450
7450
|
flattenRef(parent);
|
|
7451
7451
|
const parentSeen = ctx.seen.get(parent);
|
|
7452
7452
|
if (parentSeen?.schema.$ref) {
|
|
7453
|
-
|
|
7453
|
+
schema.$ref = parentSeen.schema.$ref;
|
|
7454
7454
|
if (parentSeen.def) {
|
|
7455
|
-
for (const key in
|
|
7455
|
+
for (const key in schema) {
|
|
7456
7456
|
if (key === "$ref" || key === "allOf")
|
|
7457
7457
|
continue;
|
|
7458
|
-
if (key in parentSeen.def && JSON.stringify(
|
|
7459
|
-
delete
|
|
7458
|
+
if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
7459
|
+
delete schema[key];
|
|
7460
7460
|
}
|
|
7461
7461
|
}
|
|
7462
7462
|
}
|
|
@@ -7464,7 +7464,7 @@ function finalize(ctx, schema) {
|
|
|
7464
7464
|
}
|
|
7465
7465
|
ctx.override({
|
|
7466
7466
|
zodSchema,
|
|
7467
|
-
jsonSchema:
|
|
7467
|
+
jsonSchema: schema,
|
|
7468
7468
|
path: seen.path ?? []
|
|
7469
7469
|
});
|
|
7470
7470
|
};
|
|
@@ -7833,14 +7833,14 @@ var initializer = (inst, issues) => {
|
|
|
7833
7833
|
value: (mapper) => flattenError(inst, mapper)
|
|
7834
7834
|
},
|
|
7835
7835
|
addIssue: {
|
|
7836
|
-
value: (
|
|
7837
|
-
inst.issues.push(
|
|
7836
|
+
value: (issue) => {
|
|
7837
|
+
inst.issues.push(issue);
|
|
7838
7838
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
7839
7839
|
}
|
|
7840
7840
|
},
|
|
7841
7841
|
addIssues: {
|
|
7842
|
-
value: (
|
|
7843
|
-
inst.issues.push(...
|
|
7842
|
+
value: (issues) => {
|
|
7843
|
+
inst.issues.push(...issues);
|
|
7844
7844
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
7845
7845
|
}
|
|
7846
7846
|
},
|
|
@@ -7889,7 +7889,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
7889
7889
|
});
|
|
7890
7890
|
};
|
|
7891
7891
|
inst.with = inst.check;
|
|
7892
|
-
inst.clone = (
|
|
7892
|
+
inst.clone = (def, params) => clone(inst, def, params);
|
|
7893
7893
|
inst.brand = () => inst;
|
|
7894
7894
|
inst.register = (reg, meta) => {
|
|
7895
7895
|
reg.add(inst, meta);
|
|
@@ -7920,8 +7920,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
7920
7920
|
inst.or = (arg) => union([inst, arg]);
|
|
7921
7921
|
inst.and = (arg) => intersection(inst, arg);
|
|
7922
7922
|
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
7923
|
-
inst.default = (
|
|
7924
|
-
inst.prefault = (
|
|
7923
|
+
inst.default = (def) => _default(inst, def);
|
|
7924
|
+
inst.prefault = (def) => prefault(inst, def);
|
|
7925
7925
|
inst.catch = (params) => _catch(inst, params);
|
|
7926
7926
|
inst.pipe = (target) => pipe(inst, target);
|
|
7927
7927
|
inst.readonly = () => readonly(inst);
|
|
@@ -8252,8 +8252,8 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
8252
8252
|
};
|
|
8253
8253
|
const output = def.transform(payload.value, payload);
|
|
8254
8254
|
if (output instanceof Promise) {
|
|
8255
|
-
return output.then((
|
|
8256
|
-
payload.value =
|
|
8255
|
+
return output.then((output) => {
|
|
8256
|
+
payload.value = output;
|
|
8257
8257
|
return payload;
|
|
8258
8258
|
});
|
|
8259
8259
|
}
|
|
@@ -8465,11 +8465,11 @@ function getExpiryMs(expiresAt) {
|
|
|
8465
8465
|
const ms = expiresAt instanceof Date ? expiresAt.getTime() : new Date(expiresAt).getTime();
|
|
8466
8466
|
return Number.isNaN(ms) ? 0 : ms;
|
|
8467
8467
|
}
|
|
8468
|
-
function hasOAuthConfig(
|
|
8469
|
-
return Boolean(
|
|
8468
|
+
function hasOAuthConfig(config) {
|
|
8469
|
+
return Boolean(config.clientId && config.redirectUri && config.scope);
|
|
8470
8470
|
}
|
|
8471
|
-
function hasSecretConfig(
|
|
8472
|
-
return Boolean(
|
|
8471
|
+
function hasSecretConfig(config) {
|
|
8472
|
+
return Boolean(config.secret);
|
|
8473
8473
|
}
|
|
8474
8474
|
|
|
8475
8475
|
class UiPathError extends Error {
|
|
@@ -8612,78 +8612,78 @@ class NetworkError extends UiPathError {
|
|
|
8612
8612
|
}
|
|
8613
8613
|
}
|
|
8614
8614
|
var TaskUserType;
|
|
8615
|
-
(function(
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8615
|
+
(function(TaskUserType) {
|
|
8616
|
+
TaskUserType["User"] = "User";
|
|
8617
|
+
TaskUserType["Robot"] = "Robot";
|
|
8618
|
+
TaskUserType["DirectoryUser"] = "DirectoryUser";
|
|
8619
|
+
TaskUserType["DirectoryGroup"] = "DirectoryGroup";
|
|
8620
|
+
TaskUserType["DirectoryRobot"] = "DirectoryRobot";
|
|
8621
|
+
TaskUserType["DirectoryExternalApplication"] = "DirectoryExternalApplication";
|
|
8622
8622
|
})(TaskUserType || (TaskUserType = {}));
|
|
8623
8623
|
var TaskType;
|
|
8624
|
-
(function(
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8624
|
+
(function(TaskType) {
|
|
8625
|
+
TaskType["Form"] = "FormTask";
|
|
8626
|
+
TaskType["External"] = "ExternalTask";
|
|
8627
|
+
TaskType["App"] = "AppTask";
|
|
8628
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
8629
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
8630
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
8631
|
+
TaskType["QuickForm"] = "QuickFormTask";
|
|
8632
8632
|
})(TaskType || (TaskType = {}));
|
|
8633
8633
|
var TaskPriority;
|
|
8634
|
-
(function(
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8634
|
+
(function(TaskPriority) {
|
|
8635
|
+
TaskPriority["Low"] = "Low";
|
|
8636
|
+
TaskPriority["Medium"] = "Medium";
|
|
8637
|
+
TaskPriority["High"] = "High";
|
|
8638
|
+
TaskPriority["Critical"] = "Critical";
|
|
8639
8639
|
})(TaskPriority || (TaskPriority = {}));
|
|
8640
8640
|
var TaskStatus;
|
|
8641
|
-
(function(
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8641
|
+
(function(TaskStatus) {
|
|
8642
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
8643
|
+
TaskStatus["Pending"] = "Pending";
|
|
8644
|
+
TaskStatus["Completed"] = "Completed";
|
|
8645
8645
|
})(TaskStatus || (TaskStatus = {}));
|
|
8646
8646
|
var TaskSlaCriteria;
|
|
8647
|
-
(function(
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8647
|
+
(function(TaskSlaCriteria) {
|
|
8648
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
8649
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
8650
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
8651
8651
|
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
8652
8652
|
var TaskSlaStatus;
|
|
8653
|
-
(function(
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8653
|
+
(function(TaskSlaStatus) {
|
|
8654
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
8655
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
8656
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
8657
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
8658
8658
|
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
8659
8659
|
var TaskSourceName;
|
|
8660
|
-
(function(
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8660
|
+
(function(TaskSourceName) {
|
|
8661
|
+
TaskSourceName["Agent"] = "Agent";
|
|
8662
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
8663
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
8664
|
+
TaskSourceName["Default"] = "Default";
|
|
8665
8665
|
})(TaskSourceName || (TaskSourceName = {}));
|
|
8666
8666
|
var TaskActivityType;
|
|
8667
|
-
(function(
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8667
|
+
(function(TaskActivityType) {
|
|
8668
|
+
TaskActivityType["Created"] = "Created";
|
|
8669
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
8670
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
8671
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
8672
|
+
TaskActivityType["Saved"] = "Saved";
|
|
8673
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
8674
|
+
TaskActivityType["Completed"] = "Completed";
|
|
8675
|
+
TaskActivityType["Commented"] = "Commented";
|
|
8676
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
8677
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
8678
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
8679
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
8680
8680
|
})(TaskActivityType || (TaskActivityType = {}));
|
|
8681
8681
|
var TaskAssignmentCriteria;
|
|
8682
|
-
(function(
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8682
|
+
(function(TaskAssignmentCriteria) {
|
|
8683
|
+
TaskAssignmentCriteria["SingleUser"] = "SingleUser";
|
|
8684
|
+
TaskAssignmentCriteria["Workload"] = "Workload";
|
|
8685
|
+
TaskAssignmentCriteria["AllUsers"] = "AllUsers";
|
|
8686
|
+
TaskAssignmentCriteria["RoundRobin"] = "RoundRobin";
|
|
8687
8687
|
})(TaskAssignmentCriteria || (TaskAssignmentCriteria = {}));
|
|
8688
8688
|
var ORCHESTRATOR_BASE = "orchestrator_";
|
|
8689
8689
|
var PIMS_BASE = "pims_";
|
|
@@ -8884,9 +8884,9 @@ var TASK_TYPE_ENDPOINTS = {
|
|
|
8884
8884
|
[TaskType.QuickForm]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID
|
|
8885
8885
|
};
|
|
8886
8886
|
var ActionCenterEventNames;
|
|
8887
|
-
(function(
|
|
8888
|
-
|
|
8889
|
-
|
|
8887
|
+
(function(ActionCenterEventNames) {
|
|
8888
|
+
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
8889
|
+
ActionCenterEventNames["REFRESHTOKEN"] = "AC.refreshToken";
|
|
8890
8890
|
})(ActionCenterEventNames || (ActionCenterEventNames = {}));
|
|
8891
8891
|
var AUTHENTICATION_TIMEOUT = 8000;
|
|
8892
8892
|
function isTokenExpired(tokenInfo) {
|
|
@@ -8923,7 +8923,7 @@ function requestHostToken(options) {
|
|
|
8923
8923
|
statusCode: HttpStatus.UNAUTHORIZED
|
|
8924
8924
|
})), AUTHENTICATION_TIMEOUT);
|
|
8925
8925
|
try {
|
|
8926
|
-
const responsePromise = waitForMessage((
|
|
8926
|
+
const responsePromise = waitForMessage((event) => event.origin === pinnedOrigin && event.data?.eventType === responseEventType, controller.signal);
|
|
8927
8927
|
sendRequest();
|
|
8928
8928
|
const event = await responsePromise;
|
|
8929
8929
|
const token = extractToken(event.data);
|
|
@@ -8943,8 +8943,8 @@ function requestHostToken(options) {
|
|
|
8943
8943
|
}
|
|
8944
8944
|
|
|
8945
8945
|
class ActionCenterTokenManager {
|
|
8946
|
-
constructor(
|
|
8947
|
-
this.config =
|
|
8946
|
+
constructor(config, onTokenRefreshed) {
|
|
8947
|
+
this.config = config;
|
|
8948
8948
|
this.onTokenRefreshed = onTokenRefreshed;
|
|
8949
8949
|
this.parentOrigin = new URLSearchParams(window.location.search).get("basedomain");
|
|
8950
8950
|
this.refreshPromise = null;
|
|
@@ -8996,9 +8996,9 @@ class ActionCenterTokenManager {
|
|
|
8996
8996
|
}
|
|
8997
8997
|
}
|
|
8998
8998
|
var UipEmbeddedEventNames;
|
|
8999
|
-
(function(
|
|
9000
|
-
|
|
9001
|
-
|
|
8999
|
+
(function(UipEmbeddedEventNames) {
|
|
9000
|
+
UipEmbeddedEventNames["REFRESH_TOKEN"] = "UIP.refreshToken";
|
|
9001
|
+
UipEmbeddedEventNames["TOKEN_REFRESHED"] = "UIP.tokenRefreshed";
|
|
9002
9002
|
})(UipEmbeddedEventNames || (UipEmbeddedEventNames = {}));
|
|
9003
9003
|
function parseExpiresAt(raw) {
|
|
9004
9004
|
const d = new Date(raw);
|
|
@@ -9016,18 +9016,18 @@ function extractToken(data) {
|
|
|
9016
9016
|
}
|
|
9017
9017
|
|
|
9018
9018
|
class EmbeddedTokenManager {
|
|
9019
|
-
constructor(parentOrigin,
|
|
9019
|
+
constructor(parentOrigin, config, onTokenRefreshed) {
|
|
9020
9020
|
this.parentOrigin = parentOrigin;
|
|
9021
9021
|
this.onTokenRefreshed = onTokenRefreshed;
|
|
9022
9022
|
this.refreshPromise = null;
|
|
9023
9023
|
this.cancelRefresh = null;
|
|
9024
|
-
if (!
|
|
9024
|
+
if (!config.clientId || !config.scope) {
|
|
9025
9025
|
throw new ValidationError({
|
|
9026
9026
|
message: "EmbeddedTokenManager requires clientId and scope to be configured for host-delegated authentication"
|
|
9027
9027
|
});
|
|
9028
9028
|
}
|
|
9029
|
-
this.clientId =
|
|
9030
|
-
this.scope =
|
|
9029
|
+
this.clientId = config.clientId;
|
|
9030
|
+
this.scope = config.scope;
|
|
9031
9031
|
}
|
|
9032
9032
|
async refreshAccessToken(tokenInfo) {
|
|
9033
9033
|
if (!isTokenExpired(tokenInfo)) {
|
|
@@ -9099,16 +9099,16 @@ function encodeBase64(str) {
|
|
|
9099
9099
|
return Buffer.from(data).toString("base64");
|
|
9100
9100
|
}
|
|
9101
9101
|
}
|
|
9102
|
-
function decodeBase64(
|
|
9102
|
+
function decodeBase64(base64) {
|
|
9103
9103
|
let bytes;
|
|
9104
9104
|
if (isBrowser) {
|
|
9105
|
-
const binaryString = atob(
|
|
9105
|
+
const binaryString = atob(base64);
|
|
9106
9106
|
bytes = new Uint8Array(binaryString.length);
|
|
9107
9107
|
for (let i = 0;i < binaryString.length; i++) {
|
|
9108
9108
|
bytes[i] = binaryString.charCodeAt(i);
|
|
9109
9109
|
}
|
|
9110
9110
|
} else {
|
|
9111
|
-
bytes = new Uint8Array(Buffer.from(
|
|
9111
|
+
bytes = new Uint8Array(Buffer.from(base64, "base64"));
|
|
9112
9112
|
}
|
|
9113
9113
|
const decoder = new TextDecoder;
|
|
9114
9114
|
return decoder.decode(bytes);
|
|
@@ -9129,8 +9129,8 @@ function encodeFolderPathHeader(folderPath) {
|
|
|
9129
9129
|
var BASE64URL_DASH_RE = /-/g;
|
|
9130
9130
|
var BASE64URL_UNDERSCORE_RE = /_/g;
|
|
9131
9131
|
function base64UrlToBase64(value) {
|
|
9132
|
-
const
|
|
9133
|
-
return
|
|
9132
|
+
const base64 = value.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
|
|
9133
|
+
return base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
|
|
9134
9134
|
}
|
|
9135
9135
|
function decodeJwtClaims(token) {
|
|
9136
9136
|
try {
|
|
@@ -9149,18 +9149,18 @@ function extractUserIdFromToken(token) {
|
|
|
9149
9149
|
}
|
|
9150
9150
|
|
|
9151
9151
|
class TokenManager {
|
|
9152
|
-
constructor(executionContext,
|
|
9152
|
+
constructor(executionContext, config, isOAuth = false) {
|
|
9153
9153
|
this.executionContext = executionContext;
|
|
9154
|
-
this.config =
|
|
9154
|
+
this.config = config;
|
|
9155
9155
|
this.isOAuth = isOAuth;
|
|
9156
9156
|
this.refreshPromise = null;
|
|
9157
9157
|
this.actionCenterTokenManager = null;
|
|
9158
9158
|
this.embeddedTokenManager = null;
|
|
9159
9159
|
if (isInActionCenter) {
|
|
9160
|
-
this.actionCenterTokenManager = new ActionCenterTokenManager(
|
|
9160
|
+
this.actionCenterTokenManager = new ActionCenterTokenManager(config, (tokenInfo) => this.setToken(tokenInfo));
|
|
9161
9161
|
this.isOAuth = false;
|
|
9162
9162
|
} else if (hostEmbeddingOrigin) {
|
|
9163
|
-
this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin,
|
|
9163
|
+
this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin, config, (tokenInfo) => this.setToken(tokenInfo));
|
|
9164
9164
|
this.isOAuth = false;
|
|
9165
9165
|
}
|
|
9166
9166
|
}
|
|
@@ -9355,13 +9355,13 @@ class TokenManager {
|
|
|
9355
9355
|
var GUID_REGEX$2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
9356
9356
|
|
|
9357
9357
|
class AuthService {
|
|
9358
|
-
constructor(
|
|
9358
|
+
constructor(config, executionContext) {
|
|
9359
9359
|
const isCallback = AuthService.isInOAuthCallback();
|
|
9360
9360
|
const storedContext = isCallback ? AuthService.getStoredOAuthContext() : null;
|
|
9361
9361
|
if (!isCallback) {
|
|
9362
9362
|
AuthService._clearStoredOAuthContext();
|
|
9363
9363
|
}
|
|
9364
|
-
const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(
|
|
9364
|
+
const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(config, storedContext) : config;
|
|
9365
9365
|
this.config = effectiveConfig;
|
|
9366
9366
|
const isOAuth = hasOAuthConfig(effectiveConfig);
|
|
9367
9367
|
this.tokenManager = new TokenManager(executionContext, effectiveConfig, isOAuth);
|
|
@@ -9404,9 +9404,9 @@ class AuthService {
|
|
|
9404
9404
|
sessionStorage.removeItem(AUTH_STORAGE_KEYS.CODE_VERIFIER);
|
|
9405
9405
|
} catch {}
|
|
9406
9406
|
}
|
|
9407
|
-
static _mergeConfigWithContext(
|
|
9407
|
+
static _mergeConfigWithContext(config, context) {
|
|
9408
9408
|
return {
|
|
9409
|
-
...
|
|
9409
|
+
...config,
|
|
9410
9410
|
baseUrl: context.baseUrl,
|
|
9411
9411
|
orgName: context.orgName,
|
|
9412
9412
|
tenantName: context.tenantName,
|
|
@@ -9418,7 +9418,7 @@ class AuthService {
|
|
|
9418
9418
|
getTokenManager() {
|
|
9419
9419
|
return this.tokenManager;
|
|
9420
9420
|
}
|
|
9421
|
-
async authenticate(
|
|
9421
|
+
async authenticate(config) {
|
|
9422
9422
|
if (!isBrowser) {
|
|
9423
9423
|
return false;
|
|
9424
9424
|
}
|
|
@@ -9431,18 +9431,18 @@ class AuthService {
|
|
|
9431
9431
|
if (this.tokenManager.hasValidToken()) {
|
|
9432
9432
|
return true;
|
|
9433
9433
|
}
|
|
9434
|
-
if (!hasOAuthConfig(
|
|
9434
|
+
if (!hasOAuthConfig(config)) {
|
|
9435
9435
|
throw new Error("OAuth configuration incomplete: clientId, redirectUri, and scope are required for OAuth callback");
|
|
9436
9436
|
}
|
|
9437
|
-
const result = await this._authenticateWithOAuth(
|
|
9437
|
+
const result = await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
|
|
9438
9438
|
return result;
|
|
9439
9439
|
}
|
|
9440
9440
|
const loadedFromStorage = this.tokenManager.loadFromStorage();
|
|
9441
9441
|
if (loadedFromStorage && this.tokenManager.hasValidToken()) {
|
|
9442
9442
|
return true;
|
|
9443
9443
|
}
|
|
9444
|
-
if (hasOAuthConfig(
|
|
9445
|
-
return await this._authenticateWithOAuth(
|
|
9444
|
+
if (hasOAuthConfig(config)) {
|
|
9445
|
+
return await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
|
|
9446
9446
|
}
|
|
9447
9447
|
return false;
|
|
9448
9448
|
}
|
|
@@ -9515,9 +9515,9 @@ class AuthService {
|
|
|
9515
9515
|
}
|
|
9516
9516
|
generateCodeVerifier() {
|
|
9517
9517
|
if (isBrowser) {
|
|
9518
|
-
const
|
|
9519
|
-
crypto.getRandomValues(
|
|
9520
|
-
return this._base64URLEncode(
|
|
9518
|
+
const array = new Uint8Array(32);
|
|
9519
|
+
crypto.getRandomValues(array);
|
|
9520
|
+
return this._base64URLEncode(array);
|
|
9521
9521
|
} else {
|
|
9522
9522
|
try {
|
|
9523
9523
|
const crypto2 = __require("crypto");
|
|
@@ -9602,8 +9602,8 @@ class AuthService {
|
|
|
9602
9602
|
return token;
|
|
9603
9603
|
}
|
|
9604
9604
|
_base64URLEncode(buffer) {
|
|
9605
|
-
const
|
|
9606
|
-
return
|
|
9605
|
+
const base64 = btoa(String.fromCharCode(...buffer));
|
|
9606
|
+
return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
9607
9607
|
}
|
|
9608
9608
|
async _initiateOAuthFlow(clientId, redirectUri, scope) {
|
|
9609
9609
|
const codeVerifier = this.generateCodeVerifier();
|
|
@@ -9647,21 +9647,21 @@ class AuthService {
|
|
|
9647
9647
|
}
|
|
9648
9648
|
}
|
|
9649
9649
|
var UiPathMetaTags;
|
|
9650
|
-
(function(
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9650
|
+
(function(UiPathMetaTags) {
|
|
9651
|
+
UiPathMetaTags["CLIENT_ID"] = "uipath:client-id";
|
|
9652
|
+
UiPathMetaTags["SCOPE"] = "uipath:scope";
|
|
9653
|
+
UiPathMetaTags["ORG_NAME"] = "uipath:org-name";
|
|
9654
|
+
UiPathMetaTags["ORG_ID"] = "uipath:org-id";
|
|
9655
|
+
UiPathMetaTags["TENANT_NAME"] = "uipath:tenant-name";
|
|
9656
|
+
UiPathMetaTags["BASE_URL"] = "uipath:base-url";
|
|
9657
|
+
UiPathMetaTags["REDIRECT_URI"] = "uipath:redirect-uri";
|
|
9658
|
+
UiPathMetaTags["CDN_BASE"] = "uipath:cdn-base";
|
|
9659
|
+
UiPathMetaTags["APP_BASE"] = "uipath:app-base";
|
|
9660
|
+
UiPathMetaTags["FOLDER_KEY"] = "uipath:folder-key";
|
|
9661
9661
|
})(UiPathMetaTags || (UiPathMetaTags = {}));
|
|
9662
9662
|
var UiPathElementIds;
|
|
9663
|
-
(function(
|
|
9664
|
-
|
|
9663
|
+
(function(UiPathElementIds) {
|
|
9664
|
+
UiPathElementIds["RESOURCE_OVERRIDES"] = "uipath-overrides";
|
|
9665
9665
|
})(UiPathElementIds || (UiPathElementIds = {}));
|
|
9666
9666
|
function readEnv(name) {
|
|
9667
9667
|
const globals = globalThis;
|
|
@@ -9686,24 +9686,24 @@ var UiPathEnvVars = {
|
|
|
9686
9686
|
function loadFromEnvironment() {
|
|
9687
9687
|
if (isBrowser)
|
|
9688
9688
|
return null;
|
|
9689
|
-
const
|
|
9689
|
+
const config = {
|
|
9690
9690
|
baseUrl: readEnv(UiPathEnvVars.BASE_URL),
|
|
9691
9691
|
orgName: readEnv(UiPathEnvVars.ORG_NAME),
|
|
9692
9692
|
tenantName: readEnv(UiPathEnvVars.TENANT_NAME),
|
|
9693
9693
|
secret: readEnv(UiPathEnvVars.ACCESS_TOKEN)
|
|
9694
9694
|
};
|
|
9695
|
-
return Object.values(
|
|
9695
|
+
return Object.values(config).some(Boolean) ? config : null;
|
|
9696
9696
|
}
|
|
9697
9697
|
var BASE_FIELDS = ["baseUrl", "orgName", "tenantName"];
|
|
9698
9698
|
var OAUTH_FIELDS = ["clientId", "redirectUri", "scope"];
|
|
9699
9699
|
var AUTH_FIELDS = ["secret", ...OAUTH_FIELDS];
|
|
9700
9700
|
var HTTP_PROTOCOLS = new Set(["http:", "https:"]);
|
|
9701
|
-
function hasRequiredBaseFields(
|
|
9702
|
-
return Boolean(
|
|
9701
|
+
function hasRequiredBaseFields(config) {
|
|
9702
|
+
return Boolean(config.baseUrl && config.orgName && config.tenantName);
|
|
9703
9703
|
}
|
|
9704
|
-
function hasValidAuthConfig(
|
|
9705
|
-
const hasSecret = hasSecretConfig(
|
|
9706
|
-
const hasOAuth = hasOAuthConfig(
|
|
9704
|
+
function hasValidAuthConfig(config) {
|
|
9705
|
+
const hasSecret = hasSecretConfig(config);
|
|
9706
|
+
const hasOAuth = hasOAuthConfig(config);
|
|
9707
9707
|
return hasSecret !== hasOAuth;
|
|
9708
9708
|
}
|
|
9709
9709
|
function nonBlank(value) {
|
|
@@ -9729,11 +9729,11 @@ function joinNames(names) {
|
|
|
9729
9729
|
return names.join("");
|
|
9730
9730
|
return `${names.slice(0, -1).join(", ")} and ${names.slice(-1).join("")}`;
|
|
9731
9731
|
}
|
|
9732
|
-
function isCompleteConfig(
|
|
9733
|
-
return hasRequiredBaseFields(
|
|
9732
|
+
function isCompleteConfig(config) {
|
|
9733
|
+
return hasRequiredBaseFields(config) && hasValidAuthConfig(config);
|
|
9734
9734
|
}
|
|
9735
|
-
function compactConfig(
|
|
9736
|
-
return Object.fromEntries(Object.entries(
|
|
9735
|
+
function compactConfig(config) {
|
|
9736
|
+
return Object.fromEntries(Object.entries(config).filter(([, value]) => value !== undefined));
|
|
9737
9737
|
}
|
|
9738
9738
|
function normalizeBaseUrl(url) {
|
|
9739
9739
|
return url.endsWith("/") ? url.slice(0, -1) : url;
|
|
@@ -9776,31 +9776,31 @@ function missingConfigMessage(found, context) {
|
|
|
9776
9776
|
return `UiPath SDK configuration not found. ${guidance}`;
|
|
9777
9777
|
return `UiPath SDK configuration is incomplete: ${describeGaps(found)}. ${guidance}`;
|
|
9778
9778
|
}
|
|
9779
|
-
function missingContextMessage(
|
|
9779
|
+
function missingContextMessage(config, context) {
|
|
9780
9780
|
const missing = [];
|
|
9781
|
-
if (!hasRequiredBaseFields(
|
|
9781
|
+
if (!hasRequiredBaseFields(config)) {
|
|
9782
9782
|
if (!context.platform) {
|
|
9783
9783
|
const variables = [];
|
|
9784
|
-
if (!
|
|
9784
|
+
if (!config.baseUrl)
|
|
9785
9785
|
variables.push(UiPathEnvVars.BASE_URL);
|
|
9786
|
-
if (!
|
|
9786
|
+
if (!config.orgName)
|
|
9787
9787
|
variables.push(UiPathEnvVars.ORG_NAME);
|
|
9788
|
-
if (!
|
|
9788
|
+
if (!config.tenantName)
|
|
9789
9789
|
variables.push(UiPathEnvVars.TENANT_NAME);
|
|
9790
9790
|
missing.push(`ctx.platform is null (or set ${joinNames(variables)})`);
|
|
9791
9791
|
} else {
|
|
9792
|
-
if (!
|
|
9792
|
+
if (!config.baseUrl) {
|
|
9793
9793
|
const baseUrl = nonBlank(context.platform.baseUrl);
|
|
9794
9794
|
const problem = baseUrl === undefined ? "is empty" : `"${baseUrl}" is not an http(s) URL`;
|
|
9795
9795
|
missing.push(`ctx.platform.baseUrl ${problem} (or set ${UiPathEnvVars.BASE_URL})`);
|
|
9796
9796
|
}
|
|
9797
|
-
if (!
|
|
9797
|
+
if (!config.orgName)
|
|
9798
9798
|
missing.push(`ctx.platform.orgId is empty (or set ${UiPathEnvVars.ORG_NAME})`);
|
|
9799
|
-
if (!
|
|
9799
|
+
if (!config.tenantName)
|
|
9800
9800
|
missing.push(`ctx.platform.tenantId is empty (or set ${UiPathEnvVars.TENANT_NAME})`);
|
|
9801
9801
|
}
|
|
9802
9802
|
}
|
|
9803
|
-
if (!hasSecretConfig(
|
|
9803
|
+
if (!hasSecretConfig(config) && !hasOAuthConfig(config)) {
|
|
9804
9804
|
missing.push(`ctx.robot.accessToken is null (or set ${UiPathEnvVars.ACCESS_TOKEN})`);
|
|
9805
9805
|
}
|
|
9806
9806
|
if (missing.length === 0) {
|
|
@@ -9908,10 +9908,10 @@ function parseRetryAfter(value, now = Date.now()) {
|
|
|
9908
9908
|
const seconds = Number(trimmed);
|
|
9909
9909
|
if (Number.isFinite(seconds))
|
|
9910
9910
|
return Math.max(0, seconds * 1000);
|
|
9911
|
-
const
|
|
9912
|
-
if (Number.isNaN(
|
|
9911
|
+
const date = Date.parse(trimmed);
|
|
9912
|
+
if (Number.isNaN(date))
|
|
9913
9913
|
return;
|
|
9914
|
-
return Math.max(0,
|
|
9914
|
+
return Math.max(0, date - now);
|
|
9915
9915
|
}
|
|
9916
9916
|
function wait(durationMs) {
|
|
9917
9917
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, durationMs)));
|
|
@@ -10018,8 +10018,8 @@ function readIdentityError(url) {
|
|
|
10018
10018
|
const errorId = url.searchParams.get(IDENTITY_ERROR_ID_PARAM);
|
|
10019
10019
|
if (errorId) {
|
|
10020
10020
|
try {
|
|
10021
|
-
const
|
|
10022
|
-
const json = decodeBase64(
|
|
10021
|
+
const base64 = errorId.replace(DASH_REGEX, "+").replace(UNDERSCORE_REGEX, "/");
|
|
10022
|
+
const json = decodeBase64(base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "="));
|
|
10023
10023
|
const data = JSON.parse(json).Data;
|
|
10024
10024
|
const error = typeof data?.Error === "string" ? data.Error : undefined;
|
|
10025
10025
|
const description = typeof data?.ErrorDescription === "string" ? data.ErrorDescription : undefined;
|
|
@@ -10108,9 +10108,9 @@ async function lookupOrganizationIdForPat(baseUrl, orgName) {
|
|
|
10108
10108
|
}
|
|
10109
10109
|
|
|
10110
10110
|
class OrganizationIdResolver {
|
|
10111
|
-
constructor(
|
|
10111
|
+
constructor(config, tokenManager) {
|
|
10112
10112
|
_OrganizationIdResolver_instances.add(this);
|
|
10113
|
-
this.config =
|
|
10113
|
+
this.config = config;
|
|
10114
10114
|
this.tokenManager = tokenManager;
|
|
10115
10115
|
_OrganizationIdResolver_organizationId.set(this, undefined);
|
|
10116
10116
|
}
|
|
@@ -10124,7 +10124,7 @@ class OrganizationIdResolver {
|
|
|
10124
10124
|
return __classPrivateFieldGet(this, _OrganizationIdResolver_organizationId, "f");
|
|
10125
10125
|
}
|
|
10126
10126
|
}
|
|
10127
|
-
_OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function
|
|
10127
|
+
_OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function _OrganizationIdResolver_resolve() {
|
|
10128
10128
|
const { organizationId, orgName, baseUrl } = this.config;
|
|
10129
10129
|
if (organizationId) {
|
|
10130
10130
|
return organizationId;
|
|
@@ -10189,7 +10189,7 @@ function getMetaTagContent(name) {
|
|
|
10189
10189
|
function loadFromMetaTags() {
|
|
10190
10190
|
if (!isBrowser)
|
|
10191
10191
|
return null;
|
|
10192
|
-
const
|
|
10192
|
+
const config = {
|
|
10193
10193
|
clientId: getMetaTagContent(UiPathMetaTags.CLIENT_ID),
|
|
10194
10194
|
scope: getMetaTagContent(UiPathMetaTags.SCOPE),
|
|
10195
10195
|
orgName: getMetaTagContent(UiPathMetaTags.ORG_NAME),
|
|
@@ -10199,8 +10199,8 @@ function loadFromMetaTags() {
|
|
|
10199
10199
|
redirectUri: getMetaTagContent(UiPathMetaTags.REDIRECT_URI),
|
|
10200
10200
|
folderKey: getMetaTagContent(UiPathMetaTags.FOLDER_KEY)
|
|
10201
10201
|
};
|
|
10202
|
-
const hasAnyValue = Object.values(
|
|
10203
|
-
return hasAnyValue ?
|
|
10202
|
+
const hasAnyValue = Object.values(config).some(Boolean);
|
|
10203
|
+
return hasAnyValue ? config : null;
|
|
10204
10204
|
}
|
|
10205
10205
|
function isFunctionContext(value) {
|
|
10206
10206
|
return "platform" in value || "robot" in value;
|
|
@@ -10208,13 +10208,13 @@ function isFunctionContext(value) {
|
|
|
10208
10208
|
function configFromFunctionContext(context) {
|
|
10209
10209
|
const { platform, robot } = context;
|
|
10210
10210
|
const baseUrl = nonBlank(platform?.baseUrl);
|
|
10211
|
-
const
|
|
10211
|
+
const config = {
|
|
10212
10212
|
baseUrl: baseUrl === undefined ? undefined : toHttpOrigin(baseUrl) ?? undefined,
|
|
10213
10213
|
orgName: nonBlank(platform?.orgId),
|
|
10214
10214
|
tenantName: nonBlank(platform?.tenantId),
|
|
10215
10215
|
secret: nonBlank(robot?.accessToken)
|
|
10216
10216
|
};
|
|
10217
|
-
return Object.values(
|
|
10217
|
+
return Object.values(config).some(Boolean) ? config : null;
|
|
10218
10218
|
}
|
|
10219
10219
|
function folderKeyFromFunctionContext(context) {
|
|
10220
10220
|
return nonBlank(context.platform?.folderKey);
|
|
@@ -10234,7 +10234,7 @@ var _UiPath_initializeWithConfig;
|
|
|
10234
10234
|
var _UiPath_mergeConfigSources;
|
|
10235
10235
|
var _UiPath_loadConfig;
|
|
10236
10236
|
var UiPath$1 = class UiPath {
|
|
10237
|
-
constructor(
|
|
10237
|
+
constructor(config) {
|
|
10238
10238
|
_UiPath_instances.add(this);
|
|
10239
10239
|
_UiPath_config.set(this, undefined);
|
|
10240
10240
|
_UiPath_authService.set(this, undefined);
|
|
@@ -10246,12 +10246,12 @@ var UiPath$1 = class UiPath {
|
|
|
10246
10246
|
_UiPath_metaOrgId.set(this, undefined);
|
|
10247
10247
|
_UiPath_metaTenantId.set(this, undefined);
|
|
10248
10248
|
let resolved;
|
|
10249
|
-
if (
|
|
10250
|
-
__classPrivateFieldSet(this, _UiPath_functionContext,
|
|
10251
|
-
__classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(
|
|
10252
|
-
resolved = configFromFunctionContext(
|
|
10249
|
+
if (config && isFunctionContext(config)) {
|
|
10250
|
+
__classPrivateFieldSet(this, _UiPath_functionContext, config, "f");
|
|
10251
|
+
__classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(config), "f");
|
|
10252
|
+
resolved = configFromFunctionContext(config) ?? undefined;
|
|
10253
10253
|
} else {
|
|
10254
|
-
resolved =
|
|
10254
|
+
resolved = config;
|
|
10255
10255
|
}
|
|
10256
10256
|
const configFromMetaTags = loadFromMetaTags();
|
|
10257
10257
|
__classPrivateFieldSet(this, _UiPath_metaFolderKey, configFromMetaTags?.folderKey, "f");
|
|
@@ -10340,19 +10340,19 @@ var UiPath$1 = class UiPath {
|
|
|
10340
10340
|
__classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
|
|
10341
10341
|
}
|
|
10342
10342
|
};
|
|
10343
|
-
_a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap, _UiPath_initialized = new WeakMap, _UiPath_partialConfig = new WeakMap, _UiPath_metaFolderKey = new WeakMap, _UiPath_contextFolderKey = new WeakMap, _UiPath_functionContext = new WeakMap, _UiPath_metaOrgId = new WeakMap, _UiPath_metaTenantId = new WeakMap, _UiPath_instances = new WeakSet, _UiPath_initializeWithConfig = function
|
|
10344
|
-
const hasSecretAuth = hasSecretConfig(
|
|
10345
|
-
const hasOAuthAuth = hasOAuthConfig(
|
|
10343
|
+
_a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap, _UiPath_initialized = new WeakMap, _UiPath_partialConfig = new WeakMap, _UiPath_metaFolderKey = new WeakMap, _UiPath_contextFolderKey = new WeakMap, _UiPath_functionContext = new WeakMap, _UiPath_metaOrgId = new WeakMap, _UiPath_metaTenantId = new WeakMap, _UiPath_instances = new WeakSet, _UiPath_initializeWithConfig = function _UiPath_initializeWithConfig(config) {
|
|
10344
|
+
const hasSecretAuth = hasSecretConfig(config);
|
|
10345
|
+
const hasOAuthAuth = hasOAuthConfig(config);
|
|
10346
10346
|
const internalConfig = new UiPathConfig({
|
|
10347
|
-
baseUrl: normalizeBaseUrl(
|
|
10348
|
-
orgName:
|
|
10349
|
-
tenantName:
|
|
10350
|
-
organizationId:
|
|
10351
|
-
secret: hasSecretAuth ?
|
|
10352
|
-
clientId: hasOAuthAuth ?
|
|
10353
|
-
redirectUri: hasOAuthAuth ?
|
|
10354
|
-
scope: hasOAuthAuth ?
|
|
10355
|
-
enforceSso:
|
|
10347
|
+
baseUrl: normalizeBaseUrl(config.baseUrl),
|
|
10348
|
+
orgName: config.orgName,
|
|
10349
|
+
tenantName: config.tenantName,
|
|
10350
|
+
organizationId: config.organizationId,
|
|
10351
|
+
secret: hasSecretAuth ? config.secret : undefined,
|
|
10352
|
+
clientId: hasOAuthAuth ? config.clientId : undefined,
|
|
10353
|
+
redirectUri: hasOAuthAuth ? config.redirectUri : undefined,
|
|
10354
|
+
scope: hasOAuthAuth ? config.scope : undefined,
|
|
10355
|
+
enforceSso: config.enforceSso
|
|
10356
10356
|
});
|
|
10357
10357
|
const executionContext = new ExecutionContext;
|
|
10358
10358
|
__classPrivateFieldSet(this, _UiPath_authService, new AuthService(internalConfig, executionContext), "f");
|
|
@@ -10370,27 +10370,27 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
|
|
|
10370
10370
|
tenantName: internalConfig.tenantName
|
|
10371
10371
|
};
|
|
10372
10372
|
telemetryClient.initialize({
|
|
10373
|
-
baseUrl:
|
|
10373
|
+
baseUrl: config.baseUrl,
|
|
10374
10374
|
orgId: __classPrivateFieldGet(this, _UiPath_metaOrgId, "f"),
|
|
10375
10375
|
tenantId: __classPrivateFieldGet(this, _UiPath_metaTenantId, "f"),
|
|
10376
|
-
orgName:
|
|
10377
|
-
tenantName:
|
|
10378
|
-
clientId: hasOAuthAuth ?
|
|
10379
|
-
redirectUri: hasOAuthAuth ?
|
|
10376
|
+
orgName: config.orgName,
|
|
10377
|
+
tenantName: config.tenantName,
|
|
10378
|
+
clientId: hasOAuthAuth ? config.clientId : undefined,
|
|
10379
|
+
redirectUri: hasOAuthAuth ? config.redirectUri : undefined
|
|
10380
10380
|
});
|
|
10381
10381
|
trackEvent("Sdk.Auth");
|
|
10382
10382
|
if (hasSecretAuth || isInActionCenter || hostEmbeddingOrigin) {
|
|
10383
|
-
__classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(
|
|
10383
|
+
__classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(config.secret ?? "");
|
|
10384
10384
|
__classPrivateFieldSet(this, _UiPath_initialized, true, "f");
|
|
10385
10385
|
}
|
|
10386
|
-
}, _UiPath_mergeConfigSources = function
|
|
10386
|
+
}, _UiPath_mergeConfigSources = function _UiPath_mergeConfigSources(metaConfig, config) {
|
|
10387
10387
|
const environment = loadFromEnvironment();
|
|
10388
|
-
const layers = [environment, metaConfig,
|
|
10388
|
+
const layers = [environment, metaConfig, config].filter((layer) => Boolean(layer)).map((layer) => compactConfig(layer));
|
|
10389
10389
|
if (layers.length === 0)
|
|
10390
10390
|
return;
|
|
10391
10391
|
const merged = layers.reduce((acc, layer) => ({ ...acc, ...layer }), {});
|
|
10392
|
-
const namesSecret =
|
|
10393
|
-
const namesOAuth = Boolean(
|
|
10392
|
+
const namesSecret = config ? hasSecretConfig(config) : false;
|
|
10393
|
+
const namesOAuth = Boolean(config?.clientId || config?.redirectUri || config?.scope);
|
|
10394
10394
|
if (namesSecret !== namesOAuth) {
|
|
10395
10395
|
if (namesSecret) {
|
|
10396
10396
|
delete merged.clientId;
|
|
@@ -10403,10 +10403,10 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
|
|
|
10403
10403
|
const mergedHasSecret = hasSecretConfig(merged);
|
|
10404
10404
|
const mergedHasOAuth = hasOAuthConfig(merged);
|
|
10405
10405
|
if (mergedHasSecret && mergedHasOAuth) {
|
|
10406
|
-
throw new Error(conflictingAuthMessage({ config
|
|
10406
|
+
throw new Error(conflictingAuthMessage({ config, metaConfig, environment }));
|
|
10407
10407
|
}
|
|
10408
10408
|
return merged;
|
|
10409
|
-
}, _UiPath_loadConfig = function
|
|
10409
|
+
}, _UiPath_loadConfig = function _UiPath_loadConfig() {
|
|
10410
10410
|
const metaConfig = loadFromMetaTags();
|
|
10411
10411
|
__classPrivateFieldSet(this, _UiPath_metaFolderKey, metaConfig?.folderKey, "f");
|
|
10412
10412
|
__classPrivateFieldSet(this, _UiPath_metaOrgId, metaConfig?.organizationId ?? metaConfig?.orgName, "f");
|
|
@@ -10605,8 +10605,8 @@ function toSearchParams(params) {
|
|
|
10605
10605
|
return searchParams;
|
|
10606
10606
|
}
|
|
10607
10607
|
class ApiClient {
|
|
10608
|
-
constructor(
|
|
10609
|
-
this.config =
|
|
10608
|
+
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
10609
|
+
this.config = config;
|
|
10610
10610
|
this.executionContext = executionContext;
|
|
10611
10611
|
this.clientConfig = clientConfig;
|
|
10612
10612
|
this.tokenManager = tokenManager;
|
|
@@ -10660,8 +10660,8 @@ class ApiClient {
|
|
|
10660
10660
|
}
|
|
10661
10661
|
const acceptHeader = headers["Accept"] || headers["accept"];
|
|
10662
10662
|
if (acceptHeader === CONTENT_TYPES.XML) {
|
|
10663
|
-
const
|
|
10664
|
-
return
|
|
10663
|
+
const text = await response.text();
|
|
10664
|
+
return text;
|
|
10665
10665
|
}
|
|
10666
10666
|
const text = await response.text();
|
|
10667
10667
|
if (!text) {
|
|
@@ -10702,9 +10702,9 @@ class ApiClient {
|
|
|
10702
10702
|
}
|
|
10703
10703
|
}
|
|
10704
10704
|
var PaginationType;
|
|
10705
|
-
(function(
|
|
10706
|
-
|
|
10707
|
-
|
|
10705
|
+
(function(PaginationType) {
|
|
10706
|
+
PaginationType["OFFSET"] = "offset";
|
|
10707
|
+
PaginationType["TOKEN"] = "token";
|
|
10708
10708
|
})(PaginationType || (PaginationType = {}));
|
|
10709
10709
|
function resolveNestedField(data, fieldPath) {
|
|
10710
10710
|
if (!data) {
|
|
@@ -10866,8 +10866,8 @@ var PROCESS_INSTANCE_TOKEN_PARAMS = {
|
|
|
10866
10866
|
TOKEN_PARAM: "nextPage"
|
|
10867
10867
|
};
|
|
10868
10868
|
function toISOUtc(value) {
|
|
10869
|
-
const
|
|
10870
|
-
return isNaN(
|
|
10869
|
+
const date = new Date(value + " UTC");
|
|
10870
|
+
return isNaN(date.getTime()) ? value : date.toISOString();
|
|
10871
10871
|
}
|
|
10872
10872
|
function transformData(data, fieldMapping) {
|
|
10873
10873
|
if (data == null) {
|
|
@@ -11138,51 +11138,51 @@ class PaginationHelpers {
|
|
|
11138
11138
|
totalCount
|
|
11139
11139
|
};
|
|
11140
11140
|
}
|
|
11141
|
-
static async getAll(
|
|
11141
|
+
static async getAll(config, options) {
|
|
11142
11142
|
const optionsWithDefaults = options || {};
|
|
11143
11143
|
const { folderId, pageSize, cursor, jumpToPage, ...restOptions } = optionsWithDefaults;
|
|
11144
11144
|
const isPaginationRequested = PaginationHelpers.hasPaginationParameters(options || {});
|
|
11145
11145
|
let processedOptions = restOptions;
|
|
11146
|
-
if (
|
|
11147
|
-
processedOptions =
|
|
11146
|
+
if (config.processParametersFn) {
|
|
11147
|
+
processedOptions = config.processParametersFn(restOptions, folderId);
|
|
11148
11148
|
}
|
|
11149
|
-
const excludeKeys =
|
|
11149
|
+
const excludeKeys = config.excludeFromPrefix || [];
|
|
11150
11150
|
const keysToPrefix = Object.keys(processedOptions).filter((k) => !excludeKeys.includes(k));
|
|
11151
11151
|
const prefixedOptions = addPrefixToKeys(processedOptions, ODATA_PREFIX, keysToPrefix);
|
|
11152
11152
|
const paginationOptions = {
|
|
11153
11153
|
paginationType: PaginationType.OFFSET,
|
|
11154
11154
|
itemsField: DEFAULT_ITEMS_FIELD,
|
|
11155
11155
|
totalCountField: DEFAULT_TOTAL_COUNT_FIELD,
|
|
11156
|
-
...
|
|
11156
|
+
...config.pagination
|
|
11157
11157
|
};
|
|
11158
11158
|
if (isPaginationRequested) {
|
|
11159
11159
|
return PaginationHelpers.getAllPaginated({
|
|
11160
|
-
serviceAccess:
|
|
11161
|
-
getEndpoint:
|
|
11160
|
+
serviceAccess: config.serviceAccess,
|
|
11161
|
+
getEndpoint: config.getEndpoint,
|
|
11162
11162
|
folderId,
|
|
11163
|
-
headers:
|
|
11163
|
+
headers: config.headers,
|
|
11164
11164
|
paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
|
|
11165
11165
|
additionalParams: prefixedOptions,
|
|
11166
|
-
queryParams:
|
|
11167
|
-
transformFn:
|
|
11168
|
-
method:
|
|
11166
|
+
queryParams: config.queryParams,
|
|
11167
|
+
transformFn: config.transformFn,
|
|
11168
|
+
method: config.method,
|
|
11169
11169
|
options: {
|
|
11170
11170
|
...paginationOptions,
|
|
11171
|
-
paginationParams:
|
|
11171
|
+
paginationParams: config.pagination?.paginationParams
|
|
11172
11172
|
}
|
|
11173
11173
|
});
|
|
11174
11174
|
}
|
|
11175
|
-
const byFolderEndpoint =
|
|
11175
|
+
const byFolderEndpoint = config.getByFolderEndpoint || config.getEndpoint(folderId);
|
|
11176
11176
|
return PaginationHelpers.getAllNonPaginated({
|
|
11177
|
-
serviceAccess:
|
|
11178
|
-
getAllEndpoint:
|
|
11177
|
+
serviceAccess: config.serviceAccess,
|
|
11178
|
+
getAllEndpoint: config.getEndpoint(),
|
|
11179
11179
|
getByFolderEndpoint: byFolderEndpoint,
|
|
11180
11180
|
folderId,
|
|
11181
|
-
headers:
|
|
11181
|
+
headers: config.headers,
|
|
11182
11182
|
additionalParams: prefixedOptions,
|
|
11183
|
-
queryParams:
|
|
11184
|
-
transformFn:
|
|
11185
|
-
method:
|
|
11183
|
+
queryParams: config.queryParams,
|
|
11184
|
+
transformFn: config.transformFn,
|
|
11185
|
+
method: config.method,
|
|
11186
11186
|
options: {
|
|
11187
11187
|
itemsField: paginationOptions.itemsField,
|
|
11188
11188
|
totalCountField: paginationOptions.totalCountField
|
|
@@ -11195,8 +11195,8 @@ var _BaseService_apiClient;
|
|
|
11195
11195
|
class BaseService {
|
|
11196
11196
|
constructor(instance, headers) {
|
|
11197
11197
|
_BaseService_apiClient.set(this, undefined);
|
|
11198
|
-
const { config
|
|
11199
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(
|
|
11198
|
+
const { config, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry.get(instance);
|
|
11199
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
11200
11200
|
this.config = { folderKey, metaFolderKey };
|
|
11201
11201
|
}
|
|
11202
11202
|
async getValidAuthToken() {
|
|
@@ -11461,25 +11461,25 @@ function createEntityWithMethods(entityData, service) {
|
|
|
11461
11461
|
return Object.assign({}, entityData, methods);
|
|
11462
11462
|
}
|
|
11463
11463
|
var EntityFieldDataType;
|
|
11464
|
-
(function(
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11464
|
+
(function(EntityFieldDataType) {
|
|
11465
|
+
EntityFieldDataType["UUID"] = "UUID";
|
|
11466
|
+
EntityFieldDataType["STRING"] = "STRING";
|
|
11467
|
+
EntityFieldDataType["INTEGER"] = "INTEGER";
|
|
11468
|
+
EntityFieldDataType["DATETIME"] = "DATETIME";
|
|
11469
|
+
EntityFieldDataType["DATETIME_WITH_TZ"] = "DATETIME_WITH_TZ";
|
|
11470
|
+
EntityFieldDataType["DECIMAL"] = "DECIMAL";
|
|
11471
|
+
EntityFieldDataType["FLOAT"] = "FLOAT";
|
|
11472
|
+
EntityFieldDataType["DOUBLE"] = "DOUBLE";
|
|
11473
|
+
EntityFieldDataType["DATE"] = "DATE";
|
|
11474
|
+
EntityFieldDataType["BOOLEAN"] = "BOOLEAN";
|
|
11475
|
+
EntityFieldDataType["BIG_INTEGER"] = "BIG_INTEGER";
|
|
11476
|
+
EntityFieldDataType["MULTILINE_TEXT"] = "MULTILINE_TEXT";
|
|
11477
|
+
EntityFieldDataType["MULTILINE_MAX"] = "MULTILINE_MAX";
|
|
11478
|
+
EntityFieldDataType["FILE"] = "FILE";
|
|
11479
|
+
EntityFieldDataType["CHOICE_SET_SINGLE"] = "CHOICE_SET_SINGLE";
|
|
11480
|
+
EntityFieldDataType["CHOICE_SET_MULTIPLE"] = "CHOICE_SET_MULTIPLE";
|
|
11481
|
+
EntityFieldDataType["AUTO_NUMBER"] = "AUTO_NUMBER";
|
|
11482
|
+
EntityFieldDataType["RELATIONSHIP"] = "RELATIONSHIP";
|
|
11483
11483
|
})(EntityFieldDataType || (EntityFieldDataType = {}));
|
|
11484
11484
|
var LogicalOperator$1;
|
|
11485
11485
|
(function(LogicalOperator) {
|
|
@@ -11487,105 +11487,105 @@ var LogicalOperator$1;
|
|
|
11487
11487
|
LogicalOperator[LogicalOperator["Or"] = 1] = "Or";
|
|
11488
11488
|
})(LogicalOperator$1 || (LogicalOperator$1 = {}));
|
|
11489
11489
|
var QueryFilterOperator;
|
|
11490
|
-
(function(
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11490
|
+
(function(QueryFilterOperator) {
|
|
11491
|
+
QueryFilterOperator["Equals"] = "=";
|
|
11492
|
+
QueryFilterOperator["NotEquals"] = "!=";
|
|
11493
|
+
QueryFilterOperator["GreaterThan"] = ">";
|
|
11494
|
+
QueryFilterOperator["LessThan"] = "<";
|
|
11495
|
+
QueryFilterOperator["GreaterThanOrEqual"] = ">=";
|
|
11496
|
+
QueryFilterOperator["LessThanOrEqual"] = "<=";
|
|
11497
|
+
QueryFilterOperator["Contains"] = "contains";
|
|
11498
|
+
QueryFilterOperator["NotContains"] = "not contains";
|
|
11499
|
+
QueryFilterOperator["StartsWith"] = "startswith";
|
|
11500
|
+
QueryFilterOperator["EndsWith"] = "endswith";
|
|
11501
|
+
QueryFilterOperator["In"] = "in";
|
|
11502
|
+
QueryFilterOperator["NotIn"] = "not in";
|
|
11503
11503
|
})(QueryFilterOperator || (QueryFilterOperator = {}));
|
|
11504
11504
|
var EntityAggregateFunction;
|
|
11505
|
-
(function(
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11505
|
+
(function(EntityAggregateFunction) {
|
|
11506
|
+
EntityAggregateFunction["Count"] = "COUNT";
|
|
11507
|
+
EntityAggregateFunction["Sum"] = "SUM";
|
|
11508
|
+
EntityAggregateFunction["Avg"] = "AVG";
|
|
11509
|
+
EntityAggregateFunction["Min"] = "MIN";
|
|
11510
|
+
EntityAggregateFunction["Max"] = "MAX";
|
|
11511
11511
|
})(EntityAggregateFunction || (EntityAggregateFunction = {}));
|
|
11512
11512
|
var EntityHavingOperator;
|
|
11513
|
-
(function(
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11513
|
+
(function(EntityHavingOperator) {
|
|
11514
|
+
EntityHavingOperator["Equals"] = "=";
|
|
11515
|
+
EntityHavingOperator["NotEquals"] = "!=";
|
|
11516
|
+
EntityHavingOperator["GreaterThan"] = ">";
|
|
11517
|
+
EntityHavingOperator["GreaterThanOrEqual"] = ">=";
|
|
11518
|
+
EntityHavingOperator["LessThan"] = "<";
|
|
11519
|
+
EntityHavingOperator["LessThanOrEqual"] = "<=";
|
|
11520
11520
|
})(EntityHavingOperator || (EntityHavingOperator = {}));
|
|
11521
11521
|
var EntityMultiEntityWriteOperation;
|
|
11522
|
-
(function(
|
|
11523
|
-
|
|
11524
|
-
|
|
11522
|
+
(function(EntityMultiEntityWriteOperation) {
|
|
11523
|
+
EntityMultiEntityWriteOperation["Insert"] = "Insert";
|
|
11524
|
+
EntityMultiEntityWriteOperation["Update"] = "Update";
|
|
11525
11525
|
})(EntityMultiEntityWriteOperation || (EntityMultiEntityWriteOperation = {}));
|
|
11526
11526
|
var EntityType;
|
|
11527
|
-
(function(
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11527
|
+
(function(EntityType) {
|
|
11528
|
+
EntityType["Entity"] = "Entity";
|
|
11529
|
+
EntityType["ChoiceSet"] = "ChoiceSet";
|
|
11530
|
+
EntityType["InternalEntity"] = "InternalEntity";
|
|
11531
|
+
EntityType["SystemEntity"] = "SystemEntity";
|
|
11532
11532
|
})(EntityType || (EntityType = {}));
|
|
11533
11533
|
var EntityClass;
|
|
11534
|
-
(function(
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11534
|
+
(function(EntityClass) {
|
|
11535
|
+
EntityClass["Native"] = "Native";
|
|
11536
|
+
EntityClass["Federated"] = "Federated";
|
|
11537
|
+
EntityClass["Case"] = "Case";
|
|
11538
11538
|
})(EntityClass || (EntityClass = {}));
|
|
11539
11539
|
var ReferenceType;
|
|
11540
|
-
(function(
|
|
11541
|
-
|
|
11540
|
+
(function(ReferenceType) {
|
|
11541
|
+
ReferenceType["ManyToOne"] = "ManyToOne";
|
|
11542
11542
|
})(ReferenceType || (ReferenceType = {}));
|
|
11543
11543
|
var FieldDisplayType;
|
|
11544
|
-
(function(
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11544
|
+
(function(FieldDisplayType) {
|
|
11545
|
+
FieldDisplayType["Basic"] = "Basic";
|
|
11546
|
+
FieldDisplayType["Relationship"] = "Relationship";
|
|
11547
|
+
FieldDisplayType["File"] = "File";
|
|
11548
|
+
FieldDisplayType["ChoiceSetSingle"] = "ChoiceSetSingle";
|
|
11549
|
+
FieldDisplayType["ChoiceSetMultiple"] = "ChoiceSetMultiple";
|
|
11550
|
+
FieldDisplayType["AutoNumber"] = "AutoNumber";
|
|
11551
11551
|
})(FieldDisplayType || (FieldDisplayType = {}));
|
|
11552
11552
|
var DataDirectionType;
|
|
11553
|
-
(function(
|
|
11554
|
-
|
|
11555
|
-
|
|
11553
|
+
(function(DataDirectionType) {
|
|
11554
|
+
DataDirectionType["ReadOnly"] = "ReadOnly";
|
|
11555
|
+
DataDirectionType["ReadAndWrite"] = "ReadAndWrite";
|
|
11556
11556
|
})(DataDirectionType || (DataDirectionType = {}));
|
|
11557
11557
|
var JoinType;
|
|
11558
|
-
(function(
|
|
11559
|
-
|
|
11560
|
-
|
|
11558
|
+
(function(JoinType) {
|
|
11559
|
+
JoinType["LeftJoin"] = "LeftJoin";
|
|
11560
|
+
JoinType["InnerJoin"] = "InnerJoin";
|
|
11561
11561
|
})(JoinType || (JoinType = {}));
|
|
11562
11562
|
var EntityClassId;
|
|
11563
|
-
(function(
|
|
11564
|
-
|
|
11565
|
-
|
|
11563
|
+
(function(EntityClassId) {
|
|
11564
|
+
EntityClassId[EntityClassId["Native"] = 9] = "Native";
|
|
11565
|
+
EntityClassId[EntityClassId["Federated"] = 10] = "Federated";
|
|
11566
11566
|
})(EntityClassId || (EntityClassId = {}));
|
|
11567
11567
|
var EntityFieldConstraint;
|
|
11568
|
-
(function(
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11568
|
+
(function(EntityFieldConstraint) {
|
|
11569
|
+
EntityFieldConstraint["LengthLimit"] = "lengthLimit";
|
|
11570
|
+
EntityFieldConstraint["MaxValue"] = "maxValue";
|
|
11571
|
+
EntityFieldConstraint["MinValue"] = "minValue";
|
|
11572
|
+
EntityFieldConstraint["DecimalPrecision"] = "decimalPrecision";
|
|
11573
11573
|
})(EntityFieldConstraint || (EntityFieldConstraint = {}));
|
|
11574
11574
|
var SqlFieldType;
|
|
11575
|
-
(function(
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11575
|
+
(function(SqlFieldType) {
|
|
11576
|
+
SqlFieldType["UNIQUEIDENTIFIER"] = "UNIQUEIDENTIFIER";
|
|
11577
|
+
SqlFieldType["NVARCHAR"] = "NVARCHAR";
|
|
11578
|
+
SqlFieldType["INT"] = "INT";
|
|
11579
|
+
SqlFieldType["DATETIME2"] = "DATETIME2";
|
|
11580
|
+
SqlFieldType["DATETIMEOFFSET"] = "DATETIMEOFFSET";
|
|
11581
|
+
SqlFieldType["FLOAT"] = "FLOAT";
|
|
11582
|
+
SqlFieldType["REAL"] = "REAL";
|
|
11583
|
+
SqlFieldType["BIGINT"] = "BIGINT";
|
|
11584
|
+
SqlFieldType["DATE"] = "DATE";
|
|
11585
|
+
SqlFieldType["BIT"] = "BIT";
|
|
11586
|
+
SqlFieldType["DECIMAL"] = "DECIMAL";
|
|
11587
|
+
SqlFieldType["MULTILINE"] = "MULTILINE";
|
|
11588
|
+
SqlFieldType["MULTILINE_MAX"] = "MULTILINE_MAX";
|
|
11589
11589
|
})(SqlFieldType || (SqlFieldType = {}));
|
|
11590
11590
|
var ENTITY_TYPE_IDS = {
|
|
11591
11591
|
[EntityType.ChoiceSet]: 1
|
|
@@ -11744,13 +11744,13 @@ function readOverrides() {
|
|
|
11744
11744
|
}
|
|
11745
11745
|
}
|
|
11746
11746
|
function resolveOverride(resourceType, name, folderPath) {
|
|
11747
|
-
const
|
|
11748
|
-
if (!
|
|
11747
|
+
const table = readOverrides();
|
|
11748
|
+
if (!table)
|
|
11749
11749
|
return;
|
|
11750
11750
|
const bindingType = resourceType.toLowerCase();
|
|
11751
11751
|
const scopedKey = folderPath ? `${bindingType}.${name}.${folderPath}` : undefined;
|
|
11752
11752
|
const unscopedKey = `${bindingType}.${name}`;
|
|
11753
|
-
const entry = (scopedKey &&
|
|
11753
|
+
const entry = (scopedKey && table[scopedKey]) ?? table[unscopedKey];
|
|
11754
11754
|
if (!entry)
|
|
11755
11755
|
return;
|
|
11756
11756
|
return {
|
|
@@ -12747,9 +12747,9 @@ __decorate([
|
|
|
12747
12747
|
track("Choicesets.DeleteValuesById")
|
|
12748
12748
|
], ChoiceSetService.prototype, "deleteValuesById", null);
|
|
12749
12749
|
var DataFabricRoleType;
|
|
12750
|
-
(function(
|
|
12751
|
-
|
|
12752
|
-
|
|
12750
|
+
(function(DataFabricRoleType) {
|
|
12751
|
+
DataFabricRoleType["System"] = "System";
|
|
12752
|
+
DataFabricRoleType["UserDefined"] = "UserDefined";
|
|
12753
12753
|
})(DataFabricRoleType || (DataFabricRoleType = {}));
|
|
12754
12754
|
function isRecord$1(value) {
|
|
12755
12755
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -12786,16 +12786,16 @@ __decorate([
|
|
|
12786
12786
|
track("DataFabricRoles.GetAll")
|
|
12787
12787
|
], DataFabricRoleService.prototype, "getAll", null);
|
|
12788
12788
|
var DataFabricDirectoryEntityType;
|
|
12789
|
-
(function(
|
|
12790
|
-
|
|
12791
|
-
|
|
12792
|
-
|
|
12789
|
+
(function(DataFabricDirectoryEntityType) {
|
|
12790
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["User"] = 0] = "User";
|
|
12791
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Group"] = 1] = "Group";
|
|
12792
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Application"] = 2] = "Application";
|
|
12793
12793
|
})(DataFabricDirectoryEntityType || (DataFabricDirectoryEntityType = {}));
|
|
12794
12794
|
var DataFabricDirectoryEntityTypeName;
|
|
12795
|
-
(function(
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12795
|
+
(function(DataFabricDirectoryEntityTypeName) {
|
|
12796
|
+
DataFabricDirectoryEntityTypeName["User"] = "User";
|
|
12797
|
+
DataFabricDirectoryEntityTypeName["Group"] = "Group";
|
|
12798
|
+
DataFabricDirectoryEntityTypeName["Application"] = "Application";
|
|
12799
12799
|
})(DataFabricDirectoryEntityTypeName || (DataFabricDirectoryEntityTypeName = {}));
|
|
12800
12800
|
var DEFAULT_DIRECTORY_PAGE_SIZE = 100;
|
|
12801
12801
|
var MAX_DIRECTORY_PAGE_SIZE = 100;
|
|
@@ -13105,27 +13105,27 @@ function createProcessInstanceWithMethods(instanceData, service) {
|
|
|
13105
13105
|
return Object.assign({}, instanceData, methods);
|
|
13106
13106
|
}
|
|
13107
13107
|
var ProcessIncidentStatus;
|
|
13108
|
-
(function(
|
|
13109
|
-
|
|
13110
|
-
|
|
13108
|
+
(function(ProcessIncidentStatus) {
|
|
13109
|
+
ProcessIncidentStatus["Open"] = "Open";
|
|
13110
|
+
ProcessIncidentStatus["Closed"] = "Closed";
|
|
13111
13111
|
})(ProcessIncidentStatus || (ProcessIncidentStatus = {}));
|
|
13112
13112
|
var ProcessIncidentType;
|
|
13113
|
-
(function(
|
|
13114
|
-
|
|
13115
|
-
|
|
13116
|
-
|
|
13113
|
+
(function(ProcessIncidentType) {
|
|
13114
|
+
ProcessIncidentType["System"] = "System";
|
|
13115
|
+
ProcessIncidentType["User"] = "User";
|
|
13116
|
+
ProcessIncidentType["Deployment"] = "Deployment";
|
|
13117
13117
|
})(ProcessIncidentType || (ProcessIncidentType = {}));
|
|
13118
13118
|
var ProcessIncidentSeverity;
|
|
13119
|
-
(function(
|
|
13120
|
-
|
|
13121
|
-
|
|
13119
|
+
(function(ProcessIncidentSeverity) {
|
|
13120
|
+
ProcessIncidentSeverity["Error"] = "Error";
|
|
13121
|
+
ProcessIncidentSeverity["Warning"] = "Warning";
|
|
13122
13122
|
})(ProcessIncidentSeverity || (ProcessIncidentSeverity = {}));
|
|
13123
13123
|
var DebugMode;
|
|
13124
|
-
(function(
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13124
|
+
(function(DebugMode) {
|
|
13125
|
+
DebugMode["None"] = "None";
|
|
13126
|
+
DebugMode["Default"] = "Default";
|
|
13127
|
+
DebugMode["StepByStep"] = "StepByStep";
|
|
13128
|
+
DebugMode["SingleStep"] = "SingleStep";
|
|
13129
13129
|
})(DebugMode || (DebugMode = {}));
|
|
13130
13130
|
function createCaseMethods(caseData, service) {
|
|
13131
13131
|
return {
|
|
@@ -13172,63 +13172,63 @@ function createCaseWithMethods(caseData, service) {
|
|
|
13172
13172
|
return Object.assign({}, caseData, methods);
|
|
13173
13173
|
}
|
|
13174
13174
|
var CaseInstanceMessageName;
|
|
13175
|
-
(function(
|
|
13176
|
-
|
|
13177
|
-
|
|
13175
|
+
(function(CaseInstanceMessageName) {
|
|
13176
|
+
CaseInstanceMessageName["UserSelectStage"] = "UserSelectStage";
|
|
13177
|
+
CaseInstanceMessageName["UserAdhocTrigger"] = "UserAdhocTrigger";
|
|
13178
13178
|
})(CaseInstanceMessageName || (CaseInstanceMessageName = {}));
|
|
13179
13179
|
var SlaSummaryStatus;
|
|
13180
|
-
(function(
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
|
|
13184
|
-
|
|
13185
|
-
|
|
13180
|
+
(function(SlaSummaryStatus) {
|
|
13181
|
+
SlaSummaryStatus["ON_TRACK"] = "On Track";
|
|
13182
|
+
SlaSummaryStatus["AT_RISK"] = "At Risk";
|
|
13183
|
+
SlaSummaryStatus["OVERDUE"] = "Overdue";
|
|
13184
|
+
SlaSummaryStatus["COMPLETED"] = "Completed";
|
|
13185
|
+
SlaSummaryStatus["UNKNOWN"] = "Unknown";
|
|
13186
13186
|
})(SlaSummaryStatus || (SlaSummaryStatus = {}));
|
|
13187
13187
|
var InstanceStatus;
|
|
13188
|
-
(function(
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13188
|
+
(function(InstanceStatus) {
|
|
13189
|
+
InstanceStatus["UNKNOWN"] = "";
|
|
13190
|
+
InstanceStatus["CANCELLED"] = "Cancelled";
|
|
13191
|
+
InstanceStatus["CANCELING"] = "Canceling";
|
|
13192
|
+
InstanceStatus["COMPLETED"] = "Completed";
|
|
13193
|
+
InstanceStatus["FAULTED"] = "Faulted";
|
|
13194
|
+
InstanceStatus["PAUSED"] = "Paused";
|
|
13195
|
+
InstanceStatus["PAUSING"] = "Pausing";
|
|
13196
|
+
InstanceStatus["PENDING"] = "Pending";
|
|
13197
|
+
InstanceStatus["RESUMING"] = "Resuming";
|
|
13198
|
+
InstanceStatus["RETRYING"] = "Retrying";
|
|
13199
|
+
InstanceStatus["RUNNING"] = "Running";
|
|
13200
|
+
InstanceStatus["UPGRADING"] = "Upgrading";
|
|
13201
13201
|
})(InstanceStatus || (InstanceStatus = {}));
|
|
13202
13202
|
var StageTaskType;
|
|
13203
|
-
(function(
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13203
|
+
(function(StageTaskType) {
|
|
13204
|
+
StageTaskType["EXTERNAL_AGENT"] = "external-agent";
|
|
13205
|
+
StageTaskType["RPA"] = "rpa";
|
|
13206
|
+
StageTaskType["AGENTIC_PROCESS"] = "process";
|
|
13207
|
+
StageTaskType["AGENT"] = "agent";
|
|
13208
|
+
StageTaskType["ACTION"] = "action";
|
|
13209
|
+
StageTaskType["API_WORKFLOW"] = "api-workflow";
|
|
13210
13210
|
})(StageTaskType || (StageTaskType = {}));
|
|
13211
13211
|
var EscalationRecipientScope;
|
|
13212
|
-
(function(
|
|
13213
|
-
|
|
13214
|
-
|
|
13212
|
+
(function(EscalationRecipientScope) {
|
|
13213
|
+
EscalationRecipientScope["USER"] = "user";
|
|
13214
|
+
EscalationRecipientScope["USER_GROUP"] = "usergroup";
|
|
13215
13215
|
})(EscalationRecipientScope || (EscalationRecipientScope = {}));
|
|
13216
13216
|
var EscalationActionType;
|
|
13217
|
-
(function(
|
|
13218
|
-
|
|
13217
|
+
(function(EscalationActionType) {
|
|
13218
|
+
EscalationActionType["NOTIFICATION"] = "notification";
|
|
13219
13219
|
})(EscalationActionType || (EscalationActionType = {}));
|
|
13220
13220
|
var EscalationTriggerType;
|
|
13221
|
-
(function(
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13221
|
+
(function(EscalationTriggerType) {
|
|
13222
|
+
EscalationTriggerType["SLA_BREACHED"] = "sla-breached";
|
|
13223
|
+
EscalationTriggerType["AT_RISK"] = "at-risk";
|
|
13224
|
+
EscalationTriggerType["NONE"] = "None";
|
|
13225
13225
|
})(EscalationTriggerType || (EscalationTriggerType = {}));
|
|
13226
13226
|
var SLADurationUnit;
|
|
13227
|
-
(function(
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13227
|
+
(function(SLADurationUnit) {
|
|
13228
|
+
SLADurationUnit["HOURS"] = "h";
|
|
13229
|
+
SLADurationUnit["DAYS"] = "d";
|
|
13230
|
+
SLADurationUnit["WEEKS"] = "w";
|
|
13231
|
+
SLADurationUnit["MONTHS"] = "m";
|
|
13232
13232
|
})(SLADurationUnit || (SLADurationUnit = {}));
|
|
13233
13233
|
function createCaseInstanceMethods(instanceData, service) {
|
|
13234
13234
|
return {
|
|
@@ -13310,16 +13310,16 @@ function createCaseInstanceWithMethods(instanceData, service) {
|
|
|
13310
13310
|
return Object.assign({}, instanceData, methods);
|
|
13311
13311
|
}
|
|
13312
13312
|
var TimeInterval;
|
|
13313
|
-
(function(
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13313
|
+
(function(TimeInterval) {
|
|
13314
|
+
TimeInterval["Hour"] = "HOUR";
|
|
13315
|
+
TimeInterval["Day"] = "DAY";
|
|
13316
|
+
TimeInterval["Week"] = "WEEK";
|
|
13317
13317
|
})(TimeInterval || (TimeInterval = {}));
|
|
13318
13318
|
var InstanceFinalStatus;
|
|
13319
|
-
(function(
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13319
|
+
(function(InstanceFinalStatus) {
|
|
13320
|
+
InstanceFinalStatus["Completed"] = "Completed";
|
|
13321
|
+
InstanceFinalStatus["Faulted"] = "Faulted";
|
|
13322
|
+
InstanceFinalStatus["Cancelled"] = "Cancelled";
|
|
13323
13323
|
})(InstanceFinalStatus || (InstanceFinalStatus = {}));
|
|
13324
13324
|
function buildInsightsTopBody(startTime, endTime, isCaseManagement, options) {
|
|
13325
13325
|
return {
|
|
@@ -13707,11 +13707,11 @@ class MaestroProcessesService extends BaseService {
|
|
|
13707
13707
|
});
|
|
13708
13708
|
const response = await this.get(MAESTRO_ENDPOINTS.PROCESSES.GET_ALL, { params });
|
|
13709
13709
|
const processes = response.data?.processes || [];
|
|
13710
|
-
const processesWithName = processes.map((
|
|
13711
|
-
...
|
|
13712
|
-
name:
|
|
13710
|
+
const processesWithName = processes.map((process2) => ({
|
|
13711
|
+
...process2,
|
|
13712
|
+
name: process2.packageId
|
|
13713
13713
|
}));
|
|
13714
|
-
return processesWithName.map((
|
|
13714
|
+
return processesWithName.map((process2) => createProcessWithMethods(process2, this));
|
|
13715
13715
|
}
|
|
13716
13716
|
async getIncidents(processKey, folderKey) {
|
|
13717
13717
|
const rawResponse = await this.get(MAESTRO_ENDPOINTS.INCIDENTS.GET_BY_PROCESS(processKey), {
|
|
@@ -13721,7 +13721,7 @@ class MaestroProcessesService extends BaseService {
|
|
|
13721
13721
|
}
|
|
13722
13722
|
async getTopRunCount(startTime, endTime, options) {
|
|
13723
13723
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, false, options));
|
|
13724
|
-
return (data ?? []).map((
|
|
13724
|
+
return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
|
|
13725
13725
|
}
|
|
13726
13726
|
async getTopElementFailedCount(startTime, endTime, options) {
|
|
13727
13727
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, false, options));
|
|
@@ -13751,7 +13751,7 @@ class MaestroProcessesService extends BaseService {
|
|
|
13751
13751
|
}
|
|
13752
13752
|
async getTopExecutionDuration(startTime, endTime, options) {
|
|
13753
13753
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, false, options));
|
|
13754
|
-
return (data ?? []).map((
|
|
13754
|
+
return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
|
|
13755
13755
|
}
|
|
13756
13756
|
async getElementStats(request) {
|
|
13757
13757
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
|
|
@@ -13804,8 +13804,8 @@ __decorate([
|
|
|
13804
13804
|
track("ProcessIncidents.getAll")
|
|
13805
13805
|
], ProcessIncidentsService.prototype, "getAll", null);
|
|
13806
13806
|
var ProcessType;
|
|
13807
|
-
(function(
|
|
13808
|
-
|
|
13807
|
+
(function(ProcessType) {
|
|
13808
|
+
ProcessType["CaseManagement"] = "CaseManagement";
|
|
13809
13809
|
})(ProcessType || (ProcessType = {}));
|
|
13810
13810
|
|
|
13811
13811
|
class CasesService extends BaseService {
|
|
@@ -13826,7 +13826,7 @@ class CasesService extends BaseService {
|
|
|
13826
13826
|
}
|
|
13827
13827
|
async getTopRunCount(startTime, endTime, options) {
|
|
13828
13828
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, true, options));
|
|
13829
|
-
return (data ?? []).map((
|
|
13829
|
+
return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
|
|
13830
13830
|
}
|
|
13831
13831
|
async getTopElementFailedCount(startTime, endTime, options) {
|
|
13832
13832
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, true, options));
|
|
@@ -13856,7 +13856,7 @@ class CasesService extends BaseService {
|
|
|
13856
13856
|
}
|
|
13857
13857
|
async getTopExecutionDuration(startTime, endTime, options) {
|
|
13858
13858
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, true, options));
|
|
13859
|
-
return (data ?? []).map((
|
|
13859
|
+
return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
|
|
13860
13860
|
}
|
|
13861
13861
|
async getElementStats(request) {
|
|
13862
13862
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
|
|
@@ -14068,7 +14068,7 @@ class FolderScopedService extends BaseService {
|
|
|
14068
14068
|
}
|
|
14069
14069
|
return response.data?.value;
|
|
14070
14070
|
}
|
|
14071
|
-
async getByNameLookup(resourceType, endpoint, name, options,
|
|
14071
|
+
async getByNameLookup(resourceType, endpoint, name, options, transform, responseFieldMap, callerLabel) {
|
|
14072
14072
|
const validatedName = validateName(resourceType, name);
|
|
14073
14073
|
const { folderId, folderKey, folderPath, ...queryOptions } = options;
|
|
14074
14074
|
const override = resolveOverride(resourceType, validatedName, folderPath);
|
|
@@ -14099,11 +14099,11 @@ class FolderScopedService extends BaseService {
|
|
|
14099
14099
|
});
|
|
14100
14100
|
}
|
|
14101
14101
|
return {
|
|
14102
|
-
result:
|
|
14102
|
+
result: transform(items[0]),
|
|
14103
14103
|
effectiveFolder: { folderId, folderKey, folderPath: resolvedFolderPath }
|
|
14104
14104
|
};
|
|
14105
14105
|
}
|
|
14106
|
-
async getByKeyLookup(resourceType, endpoint, key, options,
|
|
14106
|
+
async getByKeyLookup(resourceType, endpoint, key, options, transform, responseFieldMap, callerLabel) {
|
|
14107
14107
|
const label = callerLabel ?? `${resourceType}.getByKey`;
|
|
14108
14108
|
const trimmedKey = key?.trim();
|
|
14109
14109
|
if (!trimmedKey || !GUID_REGEX.test(trimmedKey)) {
|
|
@@ -14132,7 +14132,7 @@ class FolderScopedService extends BaseService {
|
|
|
14132
14132
|
throw new NotFoundError({ message: `${resourceType} with key '${trimmedKey}' not found.` });
|
|
14133
14133
|
}
|
|
14134
14134
|
return {
|
|
14135
|
-
result:
|
|
14135
|
+
result: transform(items[0]),
|
|
14136
14136
|
effectiveFolder: { folderId, folderKey, folderPath }
|
|
14137
14137
|
};
|
|
14138
14138
|
}
|
|
@@ -14184,7 +14184,7 @@ class TaskService extends FolderScopedService {
|
|
|
14184
14184
|
const optionsWithFolder = { ...options, folderId };
|
|
14185
14185
|
return PaginationHelpers.getAll({
|
|
14186
14186
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
14187
|
-
getEndpoint: (
|
|
14187
|
+
getEndpoint: (folderId) => TASK_ENDPOINTS.GET_TASK_USERS(folderId),
|
|
14188
14188
|
getByFolderEndpoint: TASK_ENDPOINTS.GET_TASK_USERS(folderId),
|
|
14189
14189
|
transformFn: transformUserResponse,
|
|
14190
14190
|
pagination: {
|
|
@@ -14794,17 +14794,17 @@ __decorate([
|
|
|
14794
14794
|
track("CaseInstances.GetStagesSlaSummary")
|
|
14795
14795
|
], CaseInstancesService.prototype, "getStagesSlaSummary", null);
|
|
14796
14796
|
var AssetValueScope;
|
|
14797
|
-
(function(
|
|
14798
|
-
|
|
14799
|
-
|
|
14797
|
+
(function(AssetValueScope) {
|
|
14798
|
+
AssetValueScope["Global"] = "Global";
|
|
14799
|
+
AssetValueScope["PerRobot"] = "PerRobot";
|
|
14800
14800
|
})(AssetValueScope || (AssetValueScope = {}));
|
|
14801
14801
|
var AssetValueType;
|
|
14802
|
-
(function(
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14802
|
+
(function(AssetValueType) {
|
|
14803
|
+
AssetValueType["Text"] = "Text";
|
|
14804
|
+
AssetValueType["Bool"] = "Bool";
|
|
14805
|
+
AssetValueType["Integer"] = "Integer";
|
|
14806
|
+
AssetValueType["Credential"] = "Credential";
|
|
14807
|
+
AssetValueType["Secret"] = "Secret";
|
|
14808
14808
|
})(AssetValueType || (AssetValueType = {}));
|
|
14809
14809
|
async function resolveRefToId(ref, resolvers, callerLabel) {
|
|
14810
14810
|
if (!ref) {
|
|
@@ -15310,11 +15310,11 @@ __decorate([
|
|
|
15310
15310
|
track("Buckets.DeleteFile")
|
|
15311
15311
|
], BucketService.prototype, "deleteFile", null);
|
|
15312
15312
|
var BucketOptions;
|
|
15313
|
-
(function(
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15317
|
-
|
|
15313
|
+
(function(BucketOptions) {
|
|
15314
|
+
BucketOptions["None"] = "None";
|
|
15315
|
+
BucketOptions["ReadOnly"] = "ReadOnly";
|
|
15316
|
+
BucketOptions["AuditReadAccess"] = "AuditReadAccess";
|
|
15317
|
+
BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
15318
15318
|
})(BucketOptions || (BucketOptions = {}));
|
|
15319
15319
|
function createJobMethods(jobData, service) {
|
|
15320
15320
|
return {
|
|
@@ -15442,146 +15442,146 @@ __decorate([
|
|
|
15442
15442
|
track("Attachments.Create")
|
|
15443
15443
|
], AttachmentService.prototype, "create", null);
|
|
15444
15444
|
var PackageType;
|
|
15445
|
-
(function(
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
|
|
15454
|
-
|
|
15455
|
-
|
|
15456
|
-
|
|
15457
|
-
|
|
15445
|
+
(function(PackageType) {
|
|
15446
|
+
PackageType["Undefined"] = "Undefined";
|
|
15447
|
+
PackageType["Process"] = "Process";
|
|
15448
|
+
PackageType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15449
|
+
PackageType["WebApp"] = "WebApp";
|
|
15450
|
+
PackageType["Agent"] = "Agent";
|
|
15451
|
+
PackageType["TestAutomationProcess"] = "TestAutomationProcess";
|
|
15452
|
+
PackageType["Api"] = "Api";
|
|
15453
|
+
PackageType["MCPServer"] = "MCPServer";
|
|
15454
|
+
PackageType["BusinessRules"] = "BusinessRules";
|
|
15455
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
15456
|
+
PackageType["Flow"] = "Flow";
|
|
15457
|
+
PackageType["Function"] = "Function";
|
|
15458
15458
|
})(PackageType || (PackageType = {}));
|
|
15459
15459
|
var JobPriority;
|
|
15460
|
-
(function(
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15460
|
+
(function(JobPriority) {
|
|
15461
|
+
JobPriority["Low"] = "Low";
|
|
15462
|
+
JobPriority["Normal"] = "Normal";
|
|
15463
|
+
JobPriority["High"] = "High";
|
|
15464
15464
|
})(JobPriority || (JobPriority = {}));
|
|
15465
15465
|
var TargetFramework;
|
|
15466
|
-
(function(
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15466
|
+
(function(TargetFramework) {
|
|
15467
|
+
TargetFramework["Legacy"] = "Legacy";
|
|
15468
|
+
TargetFramework["Windows"] = "Windows";
|
|
15469
|
+
TargetFramework["Portable"] = "Portable";
|
|
15470
15470
|
})(TargetFramework || (TargetFramework = {}));
|
|
15471
15471
|
var RobotSize;
|
|
15472
|
-
(function(
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15472
|
+
(function(RobotSize) {
|
|
15473
|
+
RobotSize["Small"] = "Small";
|
|
15474
|
+
RobotSize["Standard"] = "Standard";
|
|
15475
|
+
RobotSize["Medium"] = "Medium";
|
|
15476
|
+
RobotSize["Large"] = "Large";
|
|
15477
15477
|
})(RobotSize || (RobotSize = {}));
|
|
15478
15478
|
var RemoteControlAccess;
|
|
15479
|
-
(function(
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15479
|
+
(function(RemoteControlAccess) {
|
|
15480
|
+
RemoteControlAccess["None"] = "None";
|
|
15481
|
+
RemoteControlAccess["ReadOnly"] = "ReadOnly";
|
|
15482
|
+
RemoteControlAccess["Full"] = "Full";
|
|
15483
15483
|
})(RemoteControlAccess || (RemoteControlAccess = {}));
|
|
15484
15484
|
var StartStrategy;
|
|
15485
|
-
(function(
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15485
|
+
(function(StartStrategy) {
|
|
15486
|
+
StartStrategy["All"] = "All";
|
|
15487
|
+
StartStrategy["Specific"] = "Specific";
|
|
15488
|
+
StartStrategy["RobotCount"] = "RobotCount";
|
|
15489
|
+
StartStrategy["JobsCount"] = "JobsCount";
|
|
15490
|
+
StartStrategy["ModernJobsCount"] = "ModernJobsCount";
|
|
15491
15491
|
})(StartStrategy || (StartStrategy = {}));
|
|
15492
15492
|
var PackageSourceType;
|
|
15493
|
-
(function(
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15508
|
-
|
|
15509
|
-
|
|
15510
|
-
|
|
15511
|
-
|
|
15512
|
-
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
|
|
15516
|
-
|
|
15493
|
+
(function(PackageSourceType) {
|
|
15494
|
+
PackageSourceType["Manual"] = "Manual";
|
|
15495
|
+
PackageSourceType["Schedule"] = "Schedule";
|
|
15496
|
+
PackageSourceType["Queue"] = "Queue";
|
|
15497
|
+
PackageSourceType["StudioWeb"] = "StudioWeb";
|
|
15498
|
+
PackageSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
15499
|
+
PackageSourceType["StudioDesktop"] = "StudioDesktop";
|
|
15500
|
+
PackageSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
15501
|
+
PackageSourceType["Apps"] = "Apps";
|
|
15502
|
+
PackageSourceType["SAP"] = "SAP";
|
|
15503
|
+
PackageSourceType["HttpTrigger"] = "HttpTrigger";
|
|
15504
|
+
PackageSourceType["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
|
|
15505
|
+
PackageSourceType["RobotAPI"] = "RobotAPI";
|
|
15506
|
+
PackageSourceType["Assistant"] = "Assistant";
|
|
15507
|
+
PackageSourceType["CommandLine"] = "CommandLine";
|
|
15508
|
+
PackageSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
15509
|
+
PackageSourceType["Autopilot"] = "Autopilot";
|
|
15510
|
+
PackageSourceType["TestManager"] = "TestManager";
|
|
15511
|
+
PackageSourceType["AgentService"] = "AgentService";
|
|
15512
|
+
PackageSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15513
|
+
PackageSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
15514
|
+
PackageSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
15515
|
+
PackageSourceType["AgentHub"] = "AgentHub";
|
|
15516
|
+
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
15517
15517
|
})(PackageSourceType || (PackageSourceType = {}));
|
|
15518
15518
|
var JobSourceType;
|
|
15519
|
-
(function(
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15537
|
-
|
|
15538
|
-
|
|
15539
|
-
|
|
15540
|
-
|
|
15541
|
-
|
|
15542
|
-
|
|
15543
|
-
|
|
15519
|
+
(function(JobSourceType) {
|
|
15520
|
+
JobSourceType["Manual"] = "Manual";
|
|
15521
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
15522
|
+
JobSourceType["Agent"] = "Agent";
|
|
15523
|
+
JobSourceType["Queue"] = "Queue";
|
|
15524
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
15525
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
15526
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
15527
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
15528
|
+
JobSourceType["Apps"] = "Apps";
|
|
15529
|
+
JobSourceType["SAP"] = "SAP";
|
|
15530
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
15531
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
15532
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
15533
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
15534
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
15535
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
15536
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
15537
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
15538
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15539
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
15540
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
15541
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
15542
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
15543
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
15544
15544
|
})(JobSourceType || (JobSourceType = {}));
|
|
15545
15545
|
var StopStrategy;
|
|
15546
|
-
(function(
|
|
15547
|
-
|
|
15548
|
-
|
|
15546
|
+
(function(StopStrategy) {
|
|
15547
|
+
StopStrategy["SoftStop"] = "SoftStop";
|
|
15548
|
+
StopStrategy["Kill"] = "Kill";
|
|
15549
15549
|
})(StopStrategy || (StopStrategy = {}));
|
|
15550
15550
|
var RuntimeType;
|
|
15551
|
-
(function(
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15551
|
+
(function(RuntimeType) {
|
|
15552
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
15553
|
+
RuntimeType["Attended"] = "Attended";
|
|
15554
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
15555
|
+
RuntimeType["Development"] = "Development";
|
|
15556
|
+
RuntimeType["Studio"] = "Studio";
|
|
15557
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
15558
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
15559
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
15560
|
+
RuntimeType["Headless"] = "Headless";
|
|
15561
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
15562
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
15563
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
15564
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
15565
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
15566
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
15567
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
15568
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
15569
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
15570
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
15571
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
15572
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15573
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
15574
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
15575
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
15576
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
15577
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
15578
|
+
RuntimeType["Flow"] = "Flow";
|
|
15579
15579
|
})(RuntimeType || (RuntimeType = {}));
|
|
15580
15580
|
var JobType;
|
|
15581
|
-
(function(
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15581
|
+
(function(JobType) {
|
|
15582
|
+
JobType["Unattended"] = "Unattended";
|
|
15583
|
+
JobType["Attended"] = "Attended";
|
|
15584
|
+
JobType["ServerlessGeneric"] = "ServerlessGeneric";
|
|
15585
15585
|
})(JobType || (JobType = {}));
|
|
15586
15586
|
|
|
15587
15587
|
class JobService extends FolderScopedService {
|
|
@@ -15799,43 +15799,43 @@ __decorate([
|
|
|
15799
15799
|
track("Jobs.LinkAttachment")
|
|
15800
15800
|
], JobService.prototype, "linkAttachment", null);
|
|
15801
15801
|
var JobSubState;
|
|
15802
|
-
(function(
|
|
15803
|
-
|
|
15804
|
-
|
|
15802
|
+
(function(JobSubState) {
|
|
15803
|
+
JobSubState["WithFaults"] = "WITH_FAULTS";
|
|
15804
|
+
JobSubState["Manually"] = "MANUALLY";
|
|
15805
15805
|
})(JobSubState || (JobSubState = {}));
|
|
15806
15806
|
var ServerlessJobType;
|
|
15807
|
-
(function(
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15817
|
-
|
|
15807
|
+
(function(ServerlessJobType) {
|
|
15808
|
+
ServerlessJobType["RobotJob"] = "RobotJob";
|
|
15809
|
+
ServerlessJobType["WebApp"] = "WebApp";
|
|
15810
|
+
ServerlessJobType["LoadTest"] = "LoadTest";
|
|
15811
|
+
ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
|
|
15812
|
+
ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
|
|
15813
|
+
ServerlessJobType["JsApi"] = "JsApi";
|
|
15814
|
+
ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
|
|
15815
|
+
ServerlessJobType["MCPServer"] = "MCPServer";
|
|
15816
|
+
ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
15817
|
+
ServerlessJobType["PythonAgent"] = "PythonAgent";
|
|
15818
15818
|
})(ServerlessJobType || (ServerlessJobType = {}));
|
|
15819
15819
|
var JobState;
|
|
15820
|
-
(function(
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
|
|
15820
|
+
(function(JobState) {
|
|
15821
|
+
JobState["Pending"] = "Pending";
|
|
15822
|
+
JobState["Running"] = "Running";
|
|
15823
|
+
JobState["Stopping"] = "Stopping";
|
|
15824
|
+
JobState["Terminating"] = "Terminating";
|
|
15825
|
+
JobState["Faulted"] = "Faulted";
|
|
15826
|
+
JobState["Successful"] = "Successful";
|
|
15827
|
+
JobState["Stopped"] = "Stopped";
|
|
15828
|
+
JobState["Suspended"] = "Suspended";
|
|
15829
|
+
JobState["Resumed"] = "Resumed";
|
|
15830
|
+
JobState["Cancelled"] = "Cancelled";
|
|
15831
|
+
JobState["Unknown"] = "Unknown";
|
|
15832
15832
|
})(JobState || (JobState = {}));
|
|
15833
15833
|
var ConnectionState;
|
|
15834
|
-
(function(
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15834
|
+
(function(ConnectionState) {
|
|
15835
|
+
ConnectionState["Enabled"] = "Enabled";
|
|
15836
|
+
ConnectionState["Disabled"] = "Disabled";
|
|
15837
|
+
ConnectionState["Expired"] = "Expired";
|
|
15838
|
+
ConnectionState["Failed"] = "Failed";
|
|
15839
15839
|
})(ConnectionState || (ConnectionState = {}));
|
|
15840
15840
|
var ProcessMap = {
|
|
15841
15841
|
lastModificationTime: "lastModifiedTime",
|
|
@@ -15853,7 +15853,7 @@ var ProcessMap = {
|
|
|
15853
15853
|
|
|
15854
15854
|
class ProcessService extends FolderScopedService {
|
|
15855
15855
|
async getAll(options) {
|
|
15856
|
-
const transformProcessResponse = (
|
|
15856
|
+
const transformProcessResponse = (process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap);
|
|
15857
15857
|
const apiOptions = options ? transformOptions(options, ProcessMap) : options;
|
|
15858
15858
|
return PaginationHelpers.getAll({
|
|
15859
15859
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
@@ -15927,7 +15927,7 @@ class ProcessService extends FolderScopedService {
|
|
|
15927
15927
|
params: apiOptions,
|
|
15928
15928
|
headers
|
|
15929
15929
|
});
|
|
15930
|
-
const transformedProcess = response.data?.value.map((
|
|
15930
|
+
const transformedProcess = response.data?.value.map((process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap));
|
|
15931
15931
|
return transformedProcess;
|
|
15932
15932
|
}
|
|
15933
15933
|
async getById(id, folderId, options = {}) {
|
|
@@ -16016,37 +16016,37 @@ function resolveLegacyIdentity(request, folderPath) {
|
|
|
16016
16016
|
return { identity: {} };
|
|
16017
16017
|
}
|
|
16018
16018
|
var QueuePriority;
|
|
16019
|
-
(function(
|
|
16020
|
-
|
|
16021
|
-
|
|
16022
|
-
|
|
16019
|
+
(function(QueuePriority) {
|
|
16020
|
+
QueuePriority["High"] = "High";
|
|
16021
|
+
QueuePriority["Normal"] = "Normal";
|
|
16022
|
+
QueuePriority["Low"] = "Low";
|
|
16023
16023
|
})(QueuePriority || (QueuePriority = {}));
|
|
16024
16024
|
var QueueItemStatus;
|
|
16025
|
-
(function(
|
|
16026
|
-
|
|
16027
|
-
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16025
|
+
(function(QueueItemStatus) {
|
|
16026
|
+
QueueItemStatus["New"] = "New";
|
|
16027
|
+
QueueItemStatus["InProgress"] = "InProgress";
|
|
16028
|
+
QueueItemStatus["Failed"] = "Failed";
|
|
16029
|
+
QueueItemStatus["Successful"] = "Successful";
|
|
16030
|
+
QueueItemStatus["Abandoned"] = "Abandoned";
|
|
16031
|
+
QueueItemStatus["Retried"] = "Retried";
|
|
16032
|
+
QueueItemStatus["Deleted"] = "Deleted";
|
|
16033
16033
|
})(QueueItemStatus || (QueueItemStatus = {}));
|
|
16034
16034
|
var QueueItemReviewStatus;
|
|
16035
|
-
(function(
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
|
|
16035
|
+
(function(QueueItemReviewStatus) {
|
|
16036
|
+
QueueItemReviewStatus["None"] = "None";
|
|
16037
|
+
QueueItemReviewStatus["InReview"] = "InReview";
|
|
16038
|
+
QueueItemReviewStatus["Verified"] = "Verified";
|
|
16039
|
+
QueueItemReviewStatus["Retried"] = "Retried";
|
|
16040
16040
|
})(QueueItemReviewStatus || (QueueItemReviewStatus = {}));
|
|
16041
16041
|
var QueueExceptionType;
|
|
16042
|
-
(function(
|
|
16043
|
-
|
|
16044
|
-
|
|
16042
|
+
(function(QueueExceptionType) {
|
|
16043
|
+
QueueExceptionType["ApplicationException"] = "ApplicationException";
|
|
16044
|
+
QueueExceptionType["BusinessException"] = "BusinessException";
|
|
16045
16045
|
})(QueueExceptionType || (QueueExceptionType = {}));
|
|
16046
16046
|
var QueueTransactionOutcome;
|
|
16047
|
-
(function(
|
|
16048
|
-
|
|
16049
|
-
|
|
16047
|
+
(function(QueueTransactionOutcome) {
|
|
16048
|
+
QueueTransactionOutcome["Successful"] = "Successful";
|
|
16049
|
+
QueueTransactionOutcome["Failed"] = "Failed";
|
|
16050
16050
|
})(QueueTransactionOutcome || (QueueTransactionOutcome = {}));
|
|
16051
16051
|
function createQueueMethods(queueData, service) {
|
|
16052
16052
|
return {
|
|
@@ -16135,14 +16135,14 @@ class QueueService extends FolderScopedService {
|
|
|
16135
16135
|
}
|
|
16136
16136
|
async getById(id, folderIdOrOptions, options = {}) {
|
|
16137
16137
|
if (typeof folderIdOrOptions === "number") {
|
|
16138
|
-
const
|
|
16139
|
-
const
|
|
16140
|
-
const
|
|
16141
|
-
const
|
|
16142
|
-
headers
|
|
16143
|
-
params:
|
|
16138
|
+
const headers = createHeaders({ [FOLDER_ID]: folderIdOrOptions });
|
|
16139
|
+
const apiFieldOptions = transformOptions(options, QueueMap);
|
|
16140
|
+
const apiOptions = addPrefixToKeys(apiFieldOptions, ODATA_PREFIX, Object.keys(apiFieldOptions));
|
|
16141
|
+
const response = await this.get(QUEUE_ENDPOINTS.GET_BY_ID(id), {
|
|
16142
|
+
headers,
|
|
16143
|
+
params: apiOptions
|
|
16144
16144
|
});
|
|
16145
|
-
return transformData(pascalToCamelCaseKeys(
|
|
16145
|
+
return transformData(pascalToCamelCaseKeys(response.data), QueueMap);
|
|
16146
16146
|
}
|
|
16147
16147
|
const { folderId, folderKey, folderPath, ...queryOptions } = folderIdOrOptions ?? {};
|
|
16148
16148
|
const headers = resolveFolderHeaders({
|
|
@@ -16334,10 +16334,10 @@ var TaskCatalogMap = {
|
|
|
16334
16334
|
lastModificationTime: "lastModifiedTime"
|
|
16335
16335
|
};
|
|
16336
16336
|
var TaskCatalogRetentionAction;
|
|
16337
|
-
(function(
|
|
16338
|
-
|
|
16339
|
-
|
|
16340
|
-
|
|
16337
|
+
(function(TaskCatalogRetentionAction) {
|
|
16338
|
+
TaskCatalogRetentionAction["Delete"] = "Delete";
|
|
16339
|
+
TaskCatalogRetentionAction["Archive"] = "Archive";
|
|
16340
|
+
TaskCatalogRetentionAction["None"] = "None";
|
|
16341
16341
|
})(TaskCatalogRetentionAction || (TaskCatalogRetentionAction = {}));
|
|
16342
16342
|
|
|
16343
16343
|
class TaskCatalogService extends FolderScopedService {
|
|
@@ -16437,7 +16437,7 @@ __decorate([
|
|
|
16437
16437
|
track("TaskCatalogs.UpdateByName")
|
|
16438
16438
|
], TaskCatalogService.prototype, "updateByName", null);
|
|
16439
16439
|
|
|
16440
|
-
class
|
|
16440
|
+
class UiPath extends UiPath$1 {
|
|
16441
16441
|
constructor() {
|
|
16442
16442
|
super(...arguments);
|
|
16443
16443
|
this._services = new Map;
|
|
@@ -16485,38 +16485,38 @@ class UiPath2 extends UiPath$1 {
|
|
|
16485
16485
|
}
|
|
16486
16486
|
}
|
|
16487
16487
|
var FunctionHttpMethod;
|
|
16488
|
-
(function(
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16488
|
+
(function(FunctionHttpMethod) {
|
|
16489
|
+
FunctionHttpMethod["Get"] = "Get";
|
|
16490
|
+
FunctionHttpMethod["Post"] = "Post";
|
|
16491
|
+
FunctionHttpMethod["Put"] = "Put";
|
|
16492
|
+
FunctionHttpMethod["Patch"] = "Patch";
|
|
16493
|
+
FunctionHttpMethod["Delete"] = "Delete";
|
|
16494
16494
|
})(FunctionHttpMethod || (FunctionHttpMethod = {}));
|
|
16495
16495
|
var FolderType;
|
|
16496
|
-
(function(
|
|
16497
|
-
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16496
|
+
(function(FolderType) {
|
|
16497
|
+
FolderType["Standard"] = "Standard";
|
|
16498
|
+
FolderType["Personal"] = "Personal";
|
|
16499
|
+
FolderType["Virtual"] = "Virtual";
|
|
16500
|
+
FolderType["Solution"] = "Solution";
|
|
16501
|
+
FolderType["DebugSolution"] = "DebugSolution";
|
|
16502
16502
|
})(FolderType || (FolderType = {}));
|
|
16503
16503
|
var FolderProvisionType;
|
|
16504
|
-
(function(
|
|
16505
|
-
|
|
16506
|
-
|
|
16504
|
+
(function(FolderProvisionType) {
|
|
16505
|
+
FolderProvisionType["Manual"] = "Manual";
|
|
16506
|
+
FolderProvisionType["Automatic"] = "Automatic";
|
|
16507
16507
|
})(FolderProvisionType || (FolderProvisionType = {}));
|
|
16508
16508
|
var FolderPermissionModel;
|
|
16509
|
-
(function(
|
|
16510
|
-
|
|
16511
|
-
|
|
16509
|
+
(function(FolderPermissionModel) {
|
|
16510
|
+
FolderPermissionModel["InheritFromTenant"] = "InheritFromTenant";
|
|
16511
|
+
FolderPermissionModel["FineGrained"] = "FineGrained";
|
|
16512
16512
|
})(FolderPermissionModel || (FolderPermissionModel = {}));
|
|
16513
16513
|
var FolderFeedType;
|
|
16514
|
-
(function(
|
|
16515
|
-
|
|
16516
|
-
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16514
|
+
(function(FolderFeedType) {
|
|
16515
|
+
FolderFeedType["Undefined"] = "Undefined";
|
|
16516
|
+
FolderFeedType["Processes"] = "Processes";
|
|
16517
|
+
FolderFeedType["Libraries"] = "Libraries";
|
|
16518
|
+
FolderFeedType["PersonalWorkspace"] = "PersonalWorkspace";
|
|
16519
|
+
FolderFeedType["FolderHierarchy"] = "FolderHierarchy";
|
|
16520
16520
|
})(FolderFeedType || (FolderFeedType = {}));
|
|
16521
16521
|
var CommonFieldMap = {
|
|
16522
16522
|
createdAt: "createdTime",
|
|
@@ -16535,35 +16535,35 @@ var MessageMap = {
|
|
|
16535
16535
|
...CommonFieldMap
|
|
16536
16536
|
};
|
|
16537
16537
|
var MessageRole;
|
|
16538
|
-
(function(
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16538
|
+
(function(MessageRole) {
|
|
16539
|
+
MessageRole["System"] = "system";
|
|
16540
|
+
MessageRole["User"] = "user";
|
|
16541
|
+
MessageRole["Assistant"] = "assistant";
|
|
16542
16542
|
})(MessageRole || (MessageRole = {}));
|
|
16543
16543
|
var InterruptType;
|
|
16544
|
-
(function(
|
|
16545
|
-
|
|
16544
|
+
(function(InterruptType) {
|
|
16545
|
+
InterruptType["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
|
|
16546
16546
|
})(InterruptType || (InterruptType = {}));
|
|
16547
16547
|
var SortOrder;
|
|
16548
|
-
(function(
|
|
16549
|
-
|
|
16550
|
-
|
|
16548
|
+
(function(SortOrder) {
|
|
16549
|
+
SortOrder["Ascending"] = "ascending";
|
|
16550
|
+
SortOrder["Descending"] = "descending";
|
|
16551
16551
|
})(SortOrder || (SortOrder = {}));
|
|
16552
16552
|
var FeedbackRating;
|
|
16553
|
-
(function(
|
|
16554
|
-
|
|
16555
|
-
|
|
16553
|
+
(function(FeedbackRating) {
|
|
16554
|
+
FeedbackRating["Positive"] = "positive";
|
|
16555
|
+
FeedbackRating["Negative"] = "negative";
|
|
16556
16556
|
})(FeedbackRating || (FeedbackRating = {}));
|
|
16557
16557
|
var InputStreamSpeechSensitivity;
|
|
16558
|
-
(function(
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
16558
|
+
(function(InputStreamSpeechSensitivity) {
|
|
16559
|
+
InputStreamSpeechSensitivity["Unspecified"] = "UNSPECIFIED";
|
|
16560
|
+
InputStreamSpeechSensitivity["High"] = "HIGH";
|
|
16561
|
+
InputStreamSpeechSensitivity["Low"] = "LOW";
|
|
16562
16562
|
})(InputStreamSpeechSensitivity || (InputStreamSpeechSensitivity = {}));
|
|
16563
16563
|
var CitationErrorType;
|
|
16564
|
-
(function(
|
|
16565
|
-
|
|
16566
|
-
|
|
16564
|
+
(function(CitationErrorType) {
|
|
16565
|
+
CitationErrorType["CitationNotEnded"] = "CitationNotEnded";
|
|
16566
|
+
CitationErrorType["CitationNotStarted"] = "CitationNotStarted";
|
|
16567
16567
|
})(CitationErrorType || (CitationErrorType = {}));
|
|
16568
16568
|
var AgentMap = {
|
|
16569
16569
|
...CommonFieldMap
|
|
@@ -16572,477 +16572,477 @@ var UserSettingsMap = {
|
|
|
16572
16572
|
...CommonFieldMap
|
|
16573
16573
|
};
|
|
16574
16574
|
var FeedbackStatus;
|
|
16575
|
-
(function(
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16575
|
+
(function(FeedbackStatus) {
|
|
16576
|
+
FeedbackStatus[FeedbackStatus["Pending"] = 0] = "Pending";
|
|
16577
|
+
FeedbackStatus[FeedbackStatus["Approved"] = 1] = "Approved";
|
|
16578
|
+
FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
|
|
16579
16579
|
})(FeedbackStatus || (FeedbackStatus = {}));
|
|
16580
16580
|
var AgentListSortColumn;
|
|
16581
|
-
(function(
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
|
|
16581
|
+
(function(AgentListSortColumn) {
|
|
16582
|
+
AgentListSortColumn["AgentName"] = "AgentName";
|
|
16583
|
+
AgentListSortColumn["ParentProcess"] = "ParentProcess";
|
|
16584
|
+
AgentListSortColumn["LastRun"] = "LastRun";
|
|
16585
|
+
AgentListSortColumn["HealthScore"] = "HealthScore";
|
|
16586
|
+
AgentListSortColumn["LastIncident"] = "LastIncident";
|
|
16587
|
+
AgentListSortColumn["FolderName"] = "FolderName";
|
|
16588
|
+
AgentListSortColumn["QuantityAGU"] = "QuantityAGU";
|
|
16589
|
+
AgentListSortColumn["QuantityPLTU"] = "QuantityPLTU";
|
|
16590
|
+
AgentListSortColumn["FolderPath"] = "FolderPath";
|
|
16591
16591
|
})(AgentListSortColumn || (AgentListSortColumn = {}));
|
|
16592
16592
|
var AgentErrorSortColumn;
|
|
16593
|
-
(function(
|
|
16594
|
-
|
|
16595
|
-
|
|
16596
|
-
|
|
16597
|
-
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
|
|
16602
|
-
|
|
16603
|
-
|
|
16604
|
-
|
|
16605
|
-
|
|
16593
|
+
(function(AgentErrorSortColumn) {
|
|
16594
|
+
AgentErrorSortColumn["AgentId"] = "AgentId";
|
|
16595
|
+
AgentErrorSortColumn["AgentName"] = "AgentName";
|
|
16596
|
+
AgentErrorSortColumn["ParentProcessName"] = "ParentProcessName";
|
|
16597
|
+
AgentErrorSortColumn["ErrorTitle"] = "ErrorTitle";
|
|
16598
|
+
AgentErrorSortColumn["FirstSeenStartTime"] = "FirstSeenStartTime";
|
|
16599
|
+
AgentErrorSortColumn["ExecutionCount"] = "ExecutionCount";
|
|
16600
|
+
AgentErrorSortColumn["Type"] = "Type";
|
|
16601
|
+
AgentErrorSortColumn["FirstSeenFolderName"] = "FirstSeenFolderName";
|
|
16602
|
+
AgentErrorSortColumn["FirstSeenFolderPath"] = "FirstSeenFolderPath";
|
|
16603
|
+
AgentErrorSortColumn["LastSeenStartTime"] = "LastSeenStartTime";
|
|
16604
|
+
AgentErrorSortColumn["LastSeenFolderName"] = "LastSeenFolderName";
|
|
16605
|
+
AgentErrorSortColumn["LastSeenFolderPath"] = "LastSeenFolderPath";
|
|
16606
16606
|
})(AgentErrorSortColumn || (AgentErrorSortColumn = {}));
|
|
16607
16607
|
var AgentType;
|
|
16608
|
-
(function(
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16608
|
+
(function(AgentType) {
|
|
16609
|
+
AgentType["Autonomous"] = "Autonomous";
|
|
16610
|
+
AgentType["Conversational"] = "Conversational";
|
|
16611
|
+
AgentType["Coded"] = "Coded";
|
|
16612
16612
|
})(AgentType || (AgentType = {}));
|
|
16613
16613
|
var AgentExecutionType;
|
|
16614
|
-
(function(
|
|
16615
|
-
|
|
16616
|
-
|
|
16614
|
+
(function(AgentExecutionType) {
|
|
16615
|
+
AgentExecutionType["Debug"] = "Debug";
|
|
16616
|
+
AgentExecutionType["Runtime"] = "Runtime";
|
|
16617
16617
|
})(AgentExecutionType || (AgentExecutionType = {}));
|
|
16618
16618
|
var AgentMemoryExecutionType;
|
|
16619
|
-
(function(
|
|
16620
|
-
|
|
16621
|
-
|
|
16619
|
+
(function(AgentMemoryExecutionType) {
|
|
16620
|
+
AgentMemoryExecutionType["Debug"] = "Debug";
|
|
16621
|
+
AgentMemoryExecutionType["Runtime"] = "Runtime";
|
|
16622
16622
|
})(AgentMemoryExecutionType || (AgentMemoryExecutionType = {}));
|
|
16623
16623
|
var DocumentActionPriority;
|
|
16624
|
-
(function(
|
|
16625
|
-
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
|
|
16624
|
+
(function(DocumentActionPriority) {
|
|
16625
|
+
DocumentActionPriority["Low"] = "Low";
|
|
16626
|
+
DocumentActionPriority["Medium"] = "Medium";
|
|
16627
|
+
DocumentActionPriority["High"] = "High";
|
|
16628
|
+
DocumentActionPriority["Critical"] = "Critical";
|
|
16629
16629
|
})(DocumentActionPriority || (DocumentActionPriority = {}));
|
|
16630
16630
|
var DocumentActionStatus;
|
|
16631
|
-
(function(
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16631
|
+
(function(DocumentActionStatus) {
|
|
16632
|
+
DocumentActionStatus["Unassigned"] = "Unassigned";
|
|
16633
|
+
DocumentActionStatus["Pending"] = "Pending";
|
|
16634
|
+
DocumentActionStatus["Completed"] = "Completed";
|
|
16635
16635
|
})(DocumentActionStatus || (DocumentActionStatus = {}));
|
|
16636
16636
|
var DocumentActionType;
|
|
16637
|
-
(function(
|
|
16638
|
-
|
|
16639
|
-
|
|
16637
|
+
(function(DocumentActionType) {
|
|
16638
|
+
DocumentActionType["Validation"] = "Validation";
|
|
16639
|
+
DocumentActionType["Classification"] = "Classification";
|
|
16640
16640
|
})(DocumentActionType || (DocumentActionType = {}));
|
|
16641
16641
|
var ProjectProperties;
|
|
16642
|
-
(function(
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16642
|
+
(function(ProjectProperties) {
|
|
16643
|
+
ProjectProperties["IsPredefined"] = "IsPredefined";
|
|
16644
|
+
ProjectProperties["SupportsTags"] = "SupportsTags";
|
|
16645
|
+
ProjectProperties["SupportsVersions"] = "SupportsVersions";
|
|
16646
|
+
ProjectProperties["IsSplittingEnabled"] = "IsSplittingEnabled";
|
|
16647
16647
|
})(ProjectProperties || (ProjectProperties = {}));
|
|
16648
16648
|
var ProjectType;
|
|
16649
|
-
(function(
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16649
|
+
(function(ProjectType) {
|
|
16650
|
+
ProjectType["Classic"] = "Classic";
|
|
16651
|
+
ProjectType["Modern"] = "Modern";
|
|
16652
|
+
ProjectType["IXP"] = "IXP";
|
|
16653
|
+
ProjectType["Unknown"] = "Unknown";
|
|
16654
16654
|
})(ProjectType || (ProjectType = {}));
|
|
16655
16655
|
var ResourceStatus;
|
|
16656
|
-
(function(
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
16656
|
+
(function(ResourceStatus) {
|
|
16657
|
+
ResourceStatus["Unknown"] = "Unknown";
|
|
16658
|
+
ResourceStatus["NotStarted"] = "NotStarted";
|
|
16659
|
+
ResourceStatus["ExportInProgress"] = "ExportInProgress";
|
|
16660
|
+
ResourceStatus["ExportCompleted"] = "ExportCompleted";
|
|
16661
|
+
ResourceStatus["InProgress"] = "InProgress";
|
|
16662
|
+
ResourceStatus["Suspended"] = "Suspended";
|
|
16663
|
+
ResourceStatus["Resuming"] = "Resuming";
|
|
16664
|
+
ResourceStatus["Available"] = "Available";
|
|
16665
|
+
ResourceStatus["Error"] = "Error";
|
|
16666
|
+
ResourceStatus["Deleting"] = "Deleting";
|
|
16667
16667
|
})(ResourceStatus || (ResourceStatus = {}));
|
|
16668
16668
|
var ResourceType;
|
|
16669
|
-
(function(
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
|
|
16673
|
-
|
|
16669
|
+
(function(ResourceType) {
|
|
16670
|
+
ResourceType["Specialized"] = "Specialized";
|
|
16671
|
+
ResourceType["Generative"] = "Generative";
|
|
16672
|
+
ResourceType["Custom"] = "Custom";
|
|
16673
|
+
ResourceType["Unknown"] = "Unknown";
|
|
16674
16674
|
})(ResourceType || (ResourceType = {}));
|
|
16675
16675
|
var MarkupType;
|
|
16676
|
-
(function(
|
|
16677
|
-
|
|
16678
|
-
|
|
16679
|
-
|
|
16680
|
-
|
|
16676
|
+
(function(MarkupType) {
|
|
16677
|
+
MarkupType["Unknown"] = "Unknown";
|
|
16678
|
+
MarkupType["Circled"] = "Circled";
|
|
16679
|
+
MarkupType["Underlined"] = "Underlined";
|
|
16680
|
+
MarkupType["Strikethrough"] = "Strikethrough";
|
|
16681
16681
|
})(MarkupType || (MarkupType = {}));
|
|
16682
16682
|
var ProcessingSource;
|
|
16683
|
-
(function(
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
|
|
16688
|
-
|
|
16683
|
+
(function(ProcessingSource) {
|
|
16684
|
+
ProcessingSource["Unknown"] = "Unknown";
|
|
16685
|
+
ProcessingSource["Ocr"] = "Ocr";
|
|
16686
|
+
ProcessingSource["Pdf"] = "Pdf";
|
|
16687
|
+
ProcessingSource["PlainText"] = "PlainText";
|
|
16688
|
+
ProcessingSource["PdfAndOcr"] = "PdfAndOcr";
|
|
16689
16689
|
})(ProcessingSource || (ProcessingSource = {}));
|
|
16690
16690
|
var Rotation;
|
|
16691
|
-
(function(
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16691
|
+
(function(Rotation) {
|
|
16692
|
+
Rotation["None"] = "None";
|
|
16693
|
+
Rotation["Rotated90"] = "Rotated90";
|
|
16694
|
+
Rotation["Rotated180"] = "Rotated180";
|
|
16695
|
+
Rotation["Rotated270"] = "Rotated270";
|
|
16696
|
+
Rotation["Other"] = "Other";
|
|
16697
16697
|
})(Rotation || (Rotation = {}));
|
|
16698
16698
|
var SectionType;
|
|
16699
|
-
(function(
|
|
16700
|
-
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
|
|
16699
|
+
(function(SectionType) {
|
|
16700
|
+
SectionType["Vertical"] = "Vertical";
|
|
16701
|
+
SectionType["Paragraph"] = "Paragraph";
|
|
16702
|
+
SectionType["Header"] = "Header";
|
|
16703
|
+
SectionType["Footer"] = "Footer";
|
|
16704
|
+
SectionType["Table"] = "Table";
|
|
16705
16705
|
})(SectionType || (SectionType = {}));
|
|
16706
16706
|
var TextType;
|
|
16707
|
-
(function(
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
|
|
16713
|
-
|
|
16714
|
-
|
|
16715
|
-
|
|
16716
|
-
|
|
16717
|
-
|
|
16718
|
-
|
|
16707
|
+
(function(TextType) {
|
|
16708
|
+
TextType["Unknown"] = "Unknown";
|
|
16709
|
+
TextType["Text"] = "Text";
|
|
16710
|
+
TextType["Checkbox"] = "Checkbox";
|
|
16711
|
+
TextType["Handwriting"] = "Handwriting";
|
|
16712
|
+
TextType["Barcode"] = "Barcode";
|
|
16713
|
+
TextType["QRcode"] = "QRcode";
|
|
16714
|
+
TextType["Stamp"] = "Stamp";
|
|
16715
|
+
TextType["Logo"] = "Logo";
|
|
16716
|
+
TextType["Circle"] = "Circle";
|
|
16717
|
+
TextType["Underline"] = "Underline";
|
|
16718
|
+
TextType["Cut"] = "Cut";
|
|
16719
16719
|
})(TextType || (TextType = {}));
|
|
16720
16720
|
var WordGroupType;
|
|
16721
|
-
(function(
|
|
16722
|
-
|
|
16723
|
-
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
|
|
16721
|
+
(function(WordGroupType) {
|
|
16722
|
+
WordGroupType["Sentence"] = "Sentence";
|
|
16723
|
+
WordGroupType["TableCell"] = "TableCell";
|
|
16724
|
+
WordGroupType["TableRowEnd"] = "TableRowEnd";
|
|
16725
|
+
WordGroupType["Heading"] = "Heading";
|
|
16726
|
+
WordGroupType["Other"] = "Other";
|
|
16727
16727
|
})(WordGroupType || (WordGroupType = {}));
|
|
16728
16728
|
var ModelKind;
|
|
16729
|
-
(function(
|
|
16730
|
-
|
|
16731
|
-
|
|
16729
|
+
(function(ModelKind) {
|
|
16730
|
+
ModelKind["Extractor"] = "Extractor";
|
|
16731
|
+
ModelKind["Classifier"] = "Classifier";
|
|
16732
16732
|
})(ModelKind || (ModelKind = {}));
|
|
16733
16733
|
var ModelType;
|
|
16734
|
-
(function(
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
|
|
16734
|
+
(function(ModelType) {
|
|
16735
|
+
ModelType["IXP"] = "IXP";
|
|
16736
|
+
ModelType["Modern"] = "Modern";
|
|
16737
|
+
ModelType["Predefined"] = "Predefined";
|
|
16738
16738
|
})(ModelType || (ModelType = {}));
|
|
16739
16739
|
var ErrorSeverity;
|
|
16740
|
-
(function(
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
|
|
16740
|
+
(function(ErrorSeverity) {
|
|
16741
|
+
ErrorSeverity["Info"] = "Info";
|
|
16742
|
+
ErrorSeverity["Warning"] = "Warning";
|
|
16743
|
+
ErrorSeverity["Error"] = "Error";
|
|
16744
16744
|
})(ErrorSeverity || (ErrorSeverity = {}));
|
|
16745
16745
|
var ClassifierDocumentTypeType;
|
|
16746
|
-
(function(
|
|
16747
|
-
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
|
|
16746
|
+
(function(ClassifierDocumentTypeType) {
|
|
16747
|
+
ClassifierDocumentTypeType["FormsAi"] = "FormsAi";
|
|
16748
|
+
ClassifierDocumentTypeType["SemiStructuredAi"] = "SemiStructuredAi";
|
|
16749
|
+
ClassifierDocumentTypeType["Helix"] = "Helix";
|
|
16750
|
+
ClassifierDocumentTypeType["Unknown"] = "Unknown";
|
|
16751
16751
|
})(ClassifierDocumentTypeType || (ClassifierDocumentTypeType = {}));
|
|
16752
16752
|
var CreateTaskPriority;
|
|
16753
|
-
(function(
|
|
16754
|
-
|
|
16755
|
-
|
|
16756
|
-
|
|
16757
|
-
|
|
16753
|
+
(function(CreateTaskPriority) {
|
|
16754
|
+
CreateTaskPriority["Low"] = "Low";
|
|
16755
|
+
CreateTaskPriority["Medium"] = "Medium";
|
|
16756
|
+
CreateTaskPriority["High"] = "High";
|
|
16757
|
+
CreateTaskPriority["Critical"] = "Critical";
|
|
16758
16758
|
})(CreateTaskPriority || (CreateTaskPriority = {}));
|
|
16759
16759
|
var GptFieldType;
|
|
16760
|
-
(function(
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
|
|
16765
|
-
|
|
16766
|
-
|
|
16760
|
+
(function(GptFieldType) {
|
|
16761
|
+
GptFieldType["Address"] = "Address";
|
|
16762
|
+
GptFieldType["Boolean"] = "Boolean";
|
|
16763
|
+
GptFieldType["Date"] = "Date";
|
|
16764
|
+
GptFieldType["Name"] = "Name";
|
|
16765
|
+
GptFieldType["Number"] = "Number";
|
|
16766
|
+
GptFieldType["Text"] = "Text";
|
|
16767
16767
|
})(GptFieldType || (GptFieldType = {}));
|
|
16768
16768
|
var JobStatus;
|
|
16769
|
-
(function(
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16769
|
+
(function(JobStatus) {
|
|
16770
|
+
JobStatus["Succeeded"] = "Succeeded";
|
|
16771
|
+
JobStatus["Failed"] = "Failed";
|
|
16772
|
+
JobStatus["Running"] = "Running";
|
|
16773
|
+
JobStatus["NotStarted"] = "NotStarted";
|
|
16774
16774
|
})(JobStatus || (JobStatus = {}));
|
|
16775
16775
|
var ValidationDisplayMode;
|
|
16776
|
-
(function(
|
|
16777
|
-
|
|
16778
|
-
|
|
16776
|
+
(function(ValidationDisplayMode) {
|
|
16777
|
+
ValidationDisplayMode["Classic"] = "Classic";
|
|
16778
|
+
ValidationDisplayMode["Compact"] = "Compact";
|
|
16779
16779
|
})(ValidationDisplayMode || (ValidationDisplayMode = {}));
|
|
16780
16780
|
var ResultsDataSource;
|
|
16781
|
-
(function(
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16781
|
+
(function(ResultsDataSource) {
|
|
16782
|
+
ResultsDataSource["Automatic"] = "Automatic";
|
|
16783
|
+
ResultsDataSource["Manual"] = "Manual";
|
|
16784
|
+
ResultsDataSource["ManuallyChanged"] = "ManuallyChanged";
|
|
16785
|
+
ResultsDataSource["Defaulted"] = "Defaulted";
|
|
16786
|
+
ResultsDataSource["External"] = "External";
|
|
16787
16787
|
})(ResultsDataSource || (ResultsDataSource = {}));
|
|
16788
16788
|
var ComparisonOperator;
|
|
16789
|
-
(function(
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
|
|
16789
|
+
(function(ComparisonOperator) {
|
|
16790
|
+
ComparisonOperator["Equals"] = "Equals";
|
|
16791
|
+
ComparisonOperator["NotEquals"] = "NotEquals";
|
|
16792
|
+
ComparisonOperator["Greater"] = "Greater";
|
|
16793
|
+
ComparisonOperator["Less"] = "Less";
|
|
16794
|
+
ComparisonOperator["GreaterOrEqual"] = "GreaterOrEqual";
|
|
16795
|
+
ComparisonOperator["LessOrEqual"] = "LessOrEqual";
|
|
16796
16796
|
})(ComparisonOperator || (ComparisonOperator = {}));
|
|
16797
16797
|
var Criticality;
|
|
16798
|
-
(function(
|
|
16799
|
-
|
|
16800
|
-
|
|
16798
|
+
(function(Criticality) {
|
|
16799
|
+
Criticality["Must"] = "Must";
|
|
16800
|
+
Criticality["Should"] = "Should";
|
|
16801
16801
|
})(Criticality || (Criticality = {}));
|
|
16802
16802
|
var FieldType;
|
|
16803
|
-
(function(
|
|
16804
|
-
|
|
16805
|
-
|
|
16806
|
-
|
|
16807
|
-
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
16813
|
-
|
|
16814
|
-
|
|
16815
|
-
|
|
16803
|
+
(function(FieldType) {
|
|
16804
|
+
FieldType["Text"] = "Text";
|
|
16805
|
+
FieldType["Number"] = "Number";
|
|
16806
|
+
FieldType["Date"] = "Date";
|
|
16807
|
+
FieldType["Name"] = "Name";
|
|
16808
|
+
FieldType["Address"] = "Address";
|
|
16809
|
+
FieldType["Keyword"] = "Keyword";
|
|
16810
|
+
FieldType["Set"] = "Set";
|
|
16811
|
+
FieldType["Boolean"] = "Boolean";
|
|
16812
|
+
FieldType["Table"] = "Table";
|
|
16813
|
+
FieldType["Internal"] = "Internal";
|
|
16814
|
+
FieldType["FieldGroup"] = "FieldGroup";
|
|
16815
|
+
FieldType["MonetaryQuantity"] = "MonetaryQuantity";
|
|
16816
16816
|
})(FieldType || (FieldType = {}));
|
|
16817
16817
|
var LogicalOperator;
|
|
16818
|
-
(function(
|
|
16819
|
-
|
|
16820
|
-
|
|
16818
|
+
(function(LogicalOperator) {
|
|
16819
|
+
LogicalOperator["AND"] = "AND";
|
|
16820
|
+
LogicalOperator["OR"] = "OR";
|
|
16821
16821
|
})(LogicalOperator || (LogicalOperator = {}));
|
|
16822
16822
|
var RuleType;
|
|
16823
|
-
(function(
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16827
|
-
|
|
16828
|
-
|
|
16829
|
-
|
|
16830
|
-
|
|
16831
|
-
|
|
16832
|
-
|
|
16833
|
-
|
|
16834
|
-
|
|
16835
|
-
|
|
16836
|
-
|
|
16823
|
+
(function(RuleType) {
|
|
16824
|
+
RuleType["Mandatory"] = "Mandatory";
|
|
16825
|
+
RuleType["PossibleValues"] = "PossibleValues";
|
|
16826
|
+
RuleType["Regex"] = "Regex";
|
|
16827
|
+
RuleType["StartsWith"] = "StartsWith";
|
|
16828
|
+
RuleType["EndsWith"] = "EndsWith";
|
|
16829
|
+
RuleType["FixedLength"] = "FixedLength";
|
|
16830
|
+
RuleType["IsNumeric"] = "IsNumeric";
|
|
16831
|
+
RuleType["IsDate"] = "IsDate";
|
|
16832
|
+
RuleType["IsEmail"] = "IsEmail";
|
|
16833
|
+
RuleType["Contains"] = "Contains";
|
|
16834
|
+
RuleType["Expression"] = "Expression";
|
|
16835
|
+
RuleType["TableExpression"] = "TableExpression";
|
|
16836
|
+
RuleType["IsEmpty"] = "IsEmpty";
|
|
16837
16837
|
})(RuleType || (RuleType = {}));
|
|
16838
16838
|
var ActionStatus;
|
|
16839
|
-
(function(
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
|
|
16839
|
+
(function(ActionStatus) {
|
|
16840
|
+
ActionStatus["Unassigned"] = "Unassigned";
|
|
16841
|
+
ActionStatus["Pending"] = "Pending";
|
|
16842
|
+
ActionStatus["Completed"] = "Completed";
|
|
16843
16843
|
})(ActionStatus || (ActionStatus = {}));
|
|
16844
16844
|
var PolicyEvaluationResult;
|
|
16845
|
-
(function(
|
|
16846
|
-
|
|
16847
|
-
|
|
16848
|
-
|
|
16849
|
-
|
|
16845
|
+
(function(PolicyEvaluationResult) {
|
|
16846
|
+
PolicyEvaluationResult["Allow"] = "Allow";
|
|
16847
|
+
PolicyEvaluationResult["Deny"] = "Deny";
|
|
16848
|
+
PolicyEvaluationResult["SimulatedAllow"] = "SimulatedAllow";
|
|
16849
|
+
PolicyEvaluationResult["SimulatedDeny"] = "SimulatedDeny";
|
|
16850
16850
|
})(PolicyEvaluationResult || (PolicyEvaluationResult = {}));
|
|
16851
16851
|
var PlatformSettingKey;
|
|
16852
|
-
(function(
|
|
16853
|
-
|
|
16854
|
-
|
|
16855
|
-
|
|
16856
|
-
|
|
16857
|
-
|
|
16858
|
-
|
|
16859
|
-
|
|
16860
|
-
|
|
16852
|
+
(function(PlatformSettingKey) {
|
|
16853
|
+
PlatformSettingKey["UserLanguage"] = "UserLanguage.Language";
|
|
16854
|
+
PlatformSettingKey["UserLanguageDate"] = "UserLanguage.Date";
|
|
16855
|
+
PlatformSettingKey["UserTheme"] = "UserTheme.Theme";
|
|
16856
|
+
PlatformSettingKey["UserAccessibility"] = "UserAccessibility.Accessibility";
|
|
16857
|
+
PlatformSettingKey["UserAlert"] = "UserAlert.AlertDuration";
|
|
16858
|
+
PlatformSettingKey["UserCaseAppOrder"] = "UserCase.AppOrderByTenant";
|
|
16859
|
+
PlatformSettingKey["UserCasePinnedInstancesByTenant"] = "UserCase.PinnedInstancesByTenant";
|
|
16860
|
+
PlatformSettingKey["UserCaseInstancesTableFiltersByTenant"] = "UserCase.InstancesTableFiltersByTenant";
|
|
16861
16861
|
})(PlatformSettingKey || (PlatformSettingKey = {}));
|
|
16862
16862
|
var PlatformUserType;
|
|
16863
|
-
(function(
|
|
16864
|
-
|
|
16865
|
-
|
|
16866
|
-
|
|
16867
|
-
|
|
16868
|
-
|
|
16869
|
-
|
|
16863
|
+
(function(PlatformUserType) {
|
|
16864
|
+
PlatformUserType["User"] = "user";
|
|
16865
|
+
PlatformUserType["Robot"] = "robot";
|
|
16866
|
+
PlatformUserType["DirectoryUser"] = "directoryUser";
|
|
16867
|
+
PlatformUserType["DirectoryGroup"] = "directoryGroup";
|
|
16868
|
+
PlatformUserType["RobotAccount"] = "robotAccount";
|
|
16869
|
+
PlatformUserType["Application"] = "application";
|
|
16870
16870
|
})(PlatformUserType || (PlatformUserType = {}));
|
|
16871
16871
|
var PlatformUserCategory;
|
|
16872
|
-
(function(
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16872
|
+
(function(PlatformUserCategory) {
|
|
16873
|
+
PlatformUserCategory["Local"] = "local";
|
|
16874
|
+
PlatformUserCategory["LinkedLocal"] = "linkedLocal";
|
|
16875
|
+
PlatformUserCategory["Directory"] = "directory";
|
|
16876
16876
|
})(PlatformUserCategory || (PlatformUserCategory = {}));
|
|
16877
16877
|
var PlatformUserSortField;
|
|
16878
|
-
(function(
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
|
|
16887
|
-
|
|
16888
|
-
|
|
16889
|
-
|
|
16890
|
-
|
|
16891
|
-
|
|
16892
|
-
|
|
16878
|
+
(function(PlatformUserSortField) {
|
|
16879
|
+
PlatformUserSortField["Id"] = "Id";
|
|
16880
|
+
PlatformUserSortField["UserName"] = "UserName";
|
|
16881
|
+
PlatformUserSortField["Email"] = "Email";
|
|
16882
|
+
PlatformUserSortField["EmailConfirmed"] = "EmailConfirmed";
|
|
16883
|
+
PlatformUserSortField["Name"] = "Name";
|
|
16884
|
+
PlatformUserSortField["Surname"] = "Surname";
|
|
16885
|
+
PlatformUserSortField["DisplayName"] = "DisplayName";
|
|
16886
|
+
PlatformUserSortField["CreatedTime"] = "CreationTime";
|
|
16887
|
+
PlatformUserSortField["LastModifiedTime"] = "LastModificationTime";
|
|
16888
|
+
PlatformUserSortField["LastLoginTime"] = "LastLoginTime";
|
|
16889
|
+
PlatformUserSortField["IsActive"] = "IsActive";
|
|
16890
|
+
PlatformUserSortField["Type"] = "Type";
|
|
16891
|
+
PlatformUserSortField["Category"] = "Category";
|
|
16892
|
+
PlatformUserSortField["InvitationAccepted"] = "InvitationAccepted";
|
|
16893
16893
|
})(PlatformUserSortField || (PlatformUserSortField = {}));
|
|
16894
16894
|
var PlatformUserSortOrder;
|
|
16895
|
-
(function(
|
|
16896
|
-
|
|
16897
|
-
|
|
16895
|
+
(function(PlatformUserSortOrder) {
|
|
16896
|
+
PlatformUserSortOrder["Ascending"] = "asc";
|
|
16897
|
+
PlatformUserSortOrder["Descending"] = "desc";
|
|
16898
16898
|
})(PlatformUserSortOrder || (PlatformUserSortOrder = {}));
|
|
16899
16899
|
var PlatformRoleType;
|
|
16900
|
-
(function(
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16900
|
+
(function(PlatformRoleType) {
|
|
16901
|
+
PlatformRoleType["BuiltIn"] = "BUILTIN";
|
|
16902
|
+
PlatformRoleType["Platform"] = "PLATFORM";
|
|
16903
|
+
PlatformRoleType["Custom"] = "CUSTOM";
|
|
16904
16904
|
})(PlatformRoleType || (PlatformRoleType = {}));
|
|
16905
16905
|
var PlatformRoleScopeType;
|
|
16906
|
-
(function(
|
|
16907
|
-
|
|
16908
|
-
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16906
|
+
(function(PlatformRoleScopeType) {
|
|
16907
|
+
PlatformRoleScopeType["Organization"] = "ORGANIZATION";
|
|
16908
|
+
PlatformRoleScopeType["Tenant"] = "TENANT";
|
|
16909
|
+
PlatformRoleScopeType["Project"] = "PROJECT";
|
|
16910
|
+
PlatformRoleScopeType["Process"] = "PROCESS";
|
|
16911
|
+
PlatformRoleScopeType["App"] = "APP";
|
|
16912
|
+
PlatformRoleScopeType["Mixed"] = "MIXED";
|
|
16913
16913
|
})(PlatformRoleScopeType || (PlatformRoleScopeType = {}));
|
|
16914
16914
|
var PlatformActionScopeType;
|
|
16915
|
-
(function(
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16915
|
+
(function(PlatformActionScopeType) {
|
|
16916
|
+
PlatformActionScopeType["Any"] = "ANY";
|
|
16917
|
+
PlatformActionScopeType["None"] = "NONE";
|
|
16918
|
+
PlatformActionScopeType["Organization"] = "ORGANIZATION";
|
|
16919
|
+
PlatformActionScopeType["Tenant"] = "TENANT";
|
|
16920
|
+
PlatformActionScopeType["Folder"] = "FOLDER";
|
|
16921
|
+
PlatformActionScopeType["Project"] = "PROJECT";
|
|
16922
|
+
PlatformActionScopeType["Process"] = "PROCESS";
|
|
16923
16923
|
})(PlatformActionScopeType || (PlatformActionScopeType = {}));
|
|
16924
16924
|
var PlatformPrincipalType;
|
|
16925
|
-
(function(
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16925
|
+
(function(PlatformPrincipalType) {
|
|
16926
|
+
PlatformPrincipalType["User"] = "User";
|
|
16927
|
+
PlatformPrincipalType["Group"] = "Group";
|
|
16928
|
+
PlatformPrincipalType["ExternalApplication"] = "ExternalApplication";
|
|
16929
|
+
PlatformPrincipalType["Robot"] = "Robot";
|
|
16930
16930
|
})(PlatformPrincipalType || (PlatformPrincipalType = {}));
|
|
16931
16931
|
var PlatformRoleSortField;
|
|
16932
|
-
(function(
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
|
|
16936
|
-
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
16932
|
+
(function(PlatformRoleSortField) {
|
|
16933
|
+
PlatformRoleSortField["Id"] = "Id";
|
|
16934
|
+
PlatformRoleSortField["Name"] = "OriginalRoleName";
|
|
16935
|
+
PlatformRoleSortField["UniqueName"] = "UniqueName";
|
|
16936
|
+
PlatformRoleSortField["Description"] = "Description";
|
|
16937
|
+
PlatformRoleSortField["Type"] = "Type";
|
|
16938
|
+
PlatformRoleSortField["ScopeType"] = "ScopeType";
|
|
16939
|
+
PlatformRoleSortField["OrganizationId"] = "OrganizationId";
|
|
16940
|
+
PlatformRoleSortField["TenantId"] = "TenantId";
|
|
16941
|
+
PlatformRoleSortField["OwnerService"] = "OwnerService";
|
|
16942
|
+
PlatformRoleSortField["OwnerServiceId"] = "OwnerServiceId";
|
|
16943
|
+
PlatformRoleSortField["CreatedBy"] = "CreatedBy";
|
|
16944
|
+
PlatformRoleSortField["CreatedTime"] = "CreatedOn";
|
|
16945
|
+
PlatformRoleSortField["UpdatedBy"] = "UpdatedBy";
|
|
16946
|
+
PlatformRoleSortField["UpdatedTime"] = "UpdatedOn";
|
|
16947
16947
|
})(PlatformRoleSortField || (PlatformRoleSortField = {}));
|
|
16948
16948
|
var PlatformRoleSortOrder;
|
|
16949
|
-
(function(
|
|
16950
|
-
|
|
16951
|
-
|
|
16949
|
+
(function(PlatformRoleSortOrder) {
|
|
16950
|
+
PlatformRoleSortOrder["Ascending"] = "Asc";
|
|
16951
|
+
PlatformRoleSortOrder["Descending"] = "Desc";
|
|
16952
16952
|
})(PlatformRoleSortOrder || (PlatformRoleSortOrder = {}));
|
|
16953
16953
|
var PlatformGroupType;
|
|
16954
|
-
(function(
|
|
16955
|
-
|
|
16956
|
-
|
|
16954
|
+
(function(PlatformGroupType) {
|
|
16955
|
+
PlatformGroupType["BuiltIn"] = "builtIn";
|
|
16956
|
+
PlatformGroupType["Custom"] = "custom";
|
|
16957
16957
|
})(PlatformGroupType || (PlatformGroupType = {}));
|
|
16958
16958
|
var LifeCycleStage;
|
|
16959
|
-
(function(
|
|
16960
|
-
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16959
|
+
(function(LifeCycleStage) {
|
|
16960
|
+
LifeCycleStage["PREVIEW"] = "PREVIEW";
|
|
16961
|
+
LifeCycleStage["GA"] = "GA";
|
|
16962
|
+
LifeCycleStage["DEPRECATED"] = "DEPRECATED";
|
|
16963
|
+
LifeCycleStage["CUSTOM"] = "CUSTOM";
|
|
16964
16964
|
})(LifeCycleStage || (LifeCycleStage = {}));
|
|
16965
16965
|
var SpanStatus;
|
|
16966
|
-
(function(
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
|
|
16966
|
+
(function(SpanStatus) {
|
|
16967
|
+
SpanStatus["Unset"] = "Unset";
|
|
16968
|
+
SpanStatus["Ok"] = "Ok";
|
|
16969
|
+
SpanStatus["Error"] = "Error";
|
|
16970
|
+
SpanStatus["Running"] = "Running";
|
|
16971
|
+
SpanStatus["Restricted"] = "Restricted";
|
|
16972
|
+
SpanStatus["Cancelled"] = "Cancelled";
|
|
16973
16973
|
})(SpanStatus || (SpanStatus = {}));
|
|
16974
16974
|
var SpanSource;
|
|
16975
|
-
(function(
|
|
16976
|
-
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
16975
|
+
(function(SpanSource) {
|
|
16976
|
+
SpanSource["Testing"] = "Testing";
|
|
16977
|
+
SpanSource["Agents"] = "Agents";
|
|
16978
|
+
SpanSource["ProcessOrchestration"] = "ProcessOrchestration";
|
|
16979
|
+
SpanSource["ApiWorkflows"] = "ApiWorkflows";
|
|
16980
|
+
SpanSource["Robots"] = "Robots";
|
|
16981
|
+
SpanSource["ConversationalAgentsService"] = "ConversationalAgentsService";
|
|
16982
|
+
SpanSource["IntegrationServiceTrigger"] = "IntegrationServiceTrigger";
|
|
16983
|
+
SpanSource["Playground"] = "Playground";
|
|
16984
|
+
SpanSource["Governance"] = "Governance";
|
|
16985
|
+
SpanSource["IXPUnstructuredAndComplexDocuments"] = "IXPUnstructuredAndComplexDocuments";
|
|
16986
|
+
SpanSource["CodedAgents"] = "CodedAgents";
|
|
16987
|
+
SpanSource["IXPCommunicationsMining"] = "IXPCommunicationsMining";
|
|
16988
|
+
SpanSource["EnterpriseContextService"] = "EnterpriseContextService";
|
|
16989
|
+
SpanSource["MCP"] = "MCP";
|
|
16990
|
+
SpanSource["A2A"] = "A2A";
|
|
16991
|
+
SpanSource["Serverless"] = "Serverless";
|
|
16992
16992
|
})(SpanSource || (SpanSource = {}));
|
|
16993
16993
|
var SpanVerbosityLevel;
|
|
16994
|
-
(function(
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
16994
|
+
(function(SpanVerbosityLevel) {
|
|
16995
|
+
SpanVerbosityLevel["Verbose"] = "Verbose";
|
|
16996
|
+
SpanVerbosityLevel["Trace"] = "Trace";
|
|
16997
|
+
SpanVerbosityLevel["Information"] = "Information";
|
|
16998
|
+
SpanVerbosityLevel["Warning"] = "Warning";
|
|
16999
|
+
SpanVerbosityLevel["Error"] = "Error";
|
|
17000
|
+
SpanVerbosityLevel["Critical"] = "Critical";
|
|
17001
|
+
SpanVerbosityLevel["Off"] = "Off";
|
|
17002
17002
|
})(SpanVerbosityLevel || (SpanVerbosityLevel = {}));
|
|
17003
17003
|
var SpanExecutionType;
|
|
17004
|
-
(function(
|
|
17005
|
-
|
|
17006
|
-
|
|
17004
|
+
(function(SpanExecutionType) {
|
|
17005
|
+
SpanExecutionType["Debug"] = "Debug";
|
|
17006
|
+
SpanExecutionType["Runtime"] = "Runtime";
|
|
17007
17007
|
})(SpanExecutionType || (SpanExecutionType = {}));
|
|
17008
17008
|
var SpanPermissionStatus;
|
|
17009
|
-
(function(
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17009
|
+
(function(SpanPermissionStatus) {
|
|
17010
|
+
SpanPermissionStatus["Allow"] = "Allow";
|
|
17011
|
+
SpanPermissionStatus["PartialBlock"] = "PartialBlock";
|
|
17012
|
+
SpanPermissionStatus["Block"] = "Block";
|
|
17013
17013
|
})(SpanPermissionStatus || (SpanPermissionStatus = {}));
|
|
17014
17014
|
var SpanAttachmentProvider;
|
|
17015
|
-
(function(
|
|
17016
|
-
|
|
17017
|
-
|
|
17015
|
+
(function(SpanAttachmentProvider) {
|
|
17016
|
+
SpanAttachmentProvider["Orchestrator"] = "Orchestrator";
|
|
17017
|
+
SpanAttachmentProvider["LLMOps"] = "LLMOps";
|
|
17018
17018
|
})(SpanAttachmentProvider || (SpanAttachmentProvider = {}));
|
|
17019
17019
|
var SpanAttachmentDirection;
|
|
17020
|
-
(function(
|
|
17021
|
-
|
|
17022
|
-
|
|
17023
|
-
|
|
17020
|
+
(function(SpanAttachmentDirection) {
|
|
17021
|
+
SpanAttachmentDirection["None"] = "None";
|
|
17022
|
+
SpanAttachmentDirection["In"] = "In";
|
|
17023
|
+
SpanAttachmentDirection["Out"] = "Out";
|
|
17024
17024
|
})(SpanAttachmentDirection || (SpanAttachmentDirection = {}));
|
|
17025
17025
|
var AgentGovernanceMode;
|
|
17026
|
-
(function(
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
17026
|
+
(function(AgentGovernanceMode) {
|
|
17027
|
+
AgentGovernanceMode["Audit"] = "AUDIT";
|
|
17028
|
+
AgentGovernanceMode["Enforce"] = "ENFORCE";
|
|
17029
|
+
AgentGovernanceMode["Unknown"] = "Unknown";
|
|
17030
17030
|
})(AgentGovernanceMode || (AgentGovernanceMode = {}));
|
|
17031
17031
|
var AgentGovernanceVerdict;
|
|
17032
|
-
(function(
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17032
|
+
(function(AgentGovernanceVerdict) {
|
|
17033
|
+
AgentGovernanceVerdict["Allow"] = "ALLOW";
|
|
17034
|
+
AgentGovernanceVerdict["Deny"] = "DENY";
|
|
17035
|
+
AgentGovernanceVerdict["Unknown"] = "Unknown";
|
|
17036
17036
|
})(AgentGovernanceVerdict || (AgentGovernanceVerdict = {}));
|
|
17037
17037
|
var AgentGovernanceSection;
|
|
17038
|
-
(function(
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
17044
|
-
|
|
17045
|
-
|
|
17038
|
+
(function(AgentGovernanceSection) {
|
|
17039
|
+
AgentGovernanceSection["Totals"] = "totals";
|
|
17040
|
+
AgentGovernanceSection["Hook"] = "hook";
|
|
17041
|
+
AgentGovernanceSection["Agent"] = "agent";
|
|
17042
|
+
AgentGovernanceSection["Policy"] = "policy";
|
|
17043
|
+
AgentGovernanceSection["Pack"] = "pack";
|
|
17044
|
+
AgentGovernanceSection["Action"] = "action";
|
|
17045
|
+
AgentGovernanceSection["Mode"] = "mode";
|
|
17046
17046
|
})(AgentGovernanceSection || (AgentGovernanceSection = {}));
|
|
17047
17047
|
var HOST_KEY = Symbol.for("uipath.host.v1");
|
|
17048
17048
|
|
|
@@ -17264,12 +17264,12 @@ var parseJWT = (token) => {
|
|
|
17264
17264
|
if (!base64Url) {
|
|
17265
17265
|
throw new Error("Invalid JWT token format - missing payload section");
|
|
17266
17266
|
}
|
|
17267
|
-
const
|
|
17267
|
+
const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
|
|
17268
17268
|
let decodedString;
|
|
17269
17269
|
if (isBrowser2() && typeof atob !== "undefined") {
|
|
17270
|
-
decodedString = atob(
|
|
17270
|
+
decodedString = atob(base64);
|
|
17271
17271
|
} else {
|
|
17272
|
-
decodedString = Buffer.from(
|
|
17272
|
+
decodedString = Buffer.from(base64, "base64").toString();
|
|
17273
17273
|
}
|
|
17274
17274
|
const jsonPayload = decodeURIComponent(decodedString.split("").map((c) => `%${`00${c.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));
|
|
17275
17275
|
const parsed = JSON.parse(jsonPayload);
|
|
@@ -17299,8 +17299,8 @@ var getTokenExpiration = (accessToken) => {
|
|
|
17299
17299
|
return;
|
|
17300
17300
|
}
|
|
17301
17301
|
const payload = parts[1];
|
|
17302
|
-
const
|
|
17303
|
-
const padded =
|
|
17302
|
+
const base64 = payload.replace(/-/g, "+").replace(/_/g, "/");
|
|
17303
|
+
const padded = base64 + "=".repeat((4 - base64.length % 4) % 4);
|
|
17304
17304
|
const decoded = atob(padded);
|
|
17305
17305
|
const claims = JSON.parse(decoded);
|
|
17306
17306
|
if (typeof claims.exp !== "number") {
|
|
@@ -17319,7 +17319,7 @@ var decodeClaims = (accessToken) => {
|
|
|
17319
17319
|
return error ? undefined : claims;
|
|
17320
17320
|
};
|
|
17321
17321
|
var asString = (value) => typeof value === "string" && value.length > 0 ? value : undefined;
|
|
17322
|
-
var resolveIdentityType = (claims, authFlow,
|
|
17322
|
+
var resolveIdentityType = (claims, authFlow, email) => {
|
|
17323
17323
|
const subType = asString(claims?.sub_type);
|
|
17324
17324
|
if (subType) {
|
|
17325
17325
|
return subType.startsWith("service") ? "Application" : "User";
|
|
@@ -17327,7 +17327,7 @@ var resolveIdentityType = (claims, authFlow, email2) => {
|
|
|
17327
17327
|
if (authFlow) {
|
|
17328
17328
|
return authFlow === "authorization_code" ? "User" : "Application";
|
|
17329
17329
|
}
|
|
17330
|
-
if (
|
|
17330
|
+
if (email)
|
|
17331
17331
|
return "User";
|
|
17332
17332
|
if (asString(claims?.client_id) && !asString(claims?.sub)) {
|
|
17333
17333
|
return "Application";
|
|
@@ -17364,8 +17364,8 @@ var pickScopes = (claims) => {
|
|
|
17364
17364
|
};
|
|
17365
17365
|
var resolveSessionIdentity = (accessToken, authFlow) => {
|
|
17366
17366
|
const claims = accessToken ? decodeClaims(accessToken) : undefined;
|
|
17367
|
-
const
|
|
17368
|
-
const type = resolveIdentityType(claims, authFlow,
|
|
17367
|
+
const email = pickEmail(claims);
|
|
17368
|
+
const type = resolveIdentityType(claims, authFlow, email);
|
|
17369
17369
|
if (!type)
|
|
17370
17370
|
return;
|
|
17371
17371
|
const identity = { type };
|
|
@@ -17375,8 +17375,8 @@ var resolveSessionIdentity = (accessToken, authFlow) => {
|
|
|
17375
17375
|
const userId = asString(claims?.sub);
|
|
17376
17376
|
if (userId)
|
|
17377
17377
|
identity.userId = userId;
|
|
17378
|
-
if (
|
|
17379
|
-
identity.userEmail =
|
|
17378
|
+
if (email)
|
|
17379
|
+
identity.userEmail = email;
|
|
17380
17380
|
const name = pickName(claims);
|
|
17381
17381
|
if (name)
|
|
17382
17382
|
identity.userName = name;
|
|
@@ -17407,6 +17407,8 @@ var ENV_AUTH_VARS = {
|
|
|
17407
17407
|
};
|
|
17408
17408
|
|
|
17409
17409
|
class EnvAuthConfigError extends Error {
|
|
17410
|
+
errorCode = "configuration_error";
|
|
17411
|
+
retry = "RetryWillNotFix";
|
|
17410
17412
|
constructor(message) {
|
|
17411
17413
|
super(message);
|
|
17412
17414
|
this.name = "EnvAuthConfigError";
|
|
@@ -17445,11 +17447,11 @@ var readAuthFromEnv = () => {
|
|
|
17445
17447
|
if (!rawUrl) {
|
|
17446
17448
|
throw new EnvAuthConfigError(`${ENV_AUTH_VARS.token} is not a JWT (treating it as an opaque token, ` + `e.g. a Personal Access Token). Set ${OPAQUE_TOKEN_BASE_URL_VAR} to the ` + `UiPath base URL if this is a PAT, or fix the token if it was meant to ` + `be a JWT (parse error: ${parseErrorMessage}).`);
|
|
17447
17449
|
}
|
|
17448
|
-
const
|
|
17450
|
+
const baseUrl = resolveBaseUrl(rawUrl, `Failed to validate ${OPAQUE_TOKEN_BASE_URL_VAR}`);
|
|
17449
17451
|
return {
|
|
17450
17452
|
loginStatus: "Logged in",
|
|
17451
17453
|
accessToken,
|
|
17452
|
-
baseUrl
|
|
17454
|
+
baseUrl,
|
|
17453
17455
|
organizationName,
|
|
17454
17456
|
organizationId,
|
|
17455
17457
|
tenantName,
|
|
@@ -17749,9 +17751,12 @@ var refreshAccessToken = async ({
|
|
|
17749
17751
|
body: tokenParams
|
|
17750
17752
|
});
|
|
17751
17753
|
const tokenData = await tokenResponse.json();
|
|
17752
|
-
if (
|
|
17754
|
+
if (tokenResponse.status === 400 || tokenResponse.status === 401) {
|
|
17753
17755
|
throw new TokenRefreshOAuthError;
|
|
17754
17756
|
}
|
|
17757
|
+
if (!tokenResponse.ok) {
|
|
17758
|
+
throw new Error(`Token refresh failed: HTTP ${tokenResponse.status}`);
|
|
17759
|
+
}
|
|
17755
17760
|
const newAccessToken = tokenData.access_token;
|
|
17756
17761
|
const newRefreshToken = tokenData.refresh_token;
|
|
17757
17762
|
if (typeof newAccessToken !== "string" || typeof newRefreshToken !== "string") {
|
|
@@ -17814,20 +17819,20 @@ var probeAsync = async (fs, candidate) => {
|
|
|
17814
17819
|
var resolveEnvFileLocationAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) => {
|
|
17815
17820
|
const fs = getFileSystem();
|
|
17816
17821
|
if (fs.path.isAbsolute(envFilePath)) {
|
|
17817
|
-
const
|
|
17818
|
-
return
|
|
17822
|
+
const probe = await probeAsync(fs, envFilePath);
|
|
17823
|
+
return probe.exists ? { exists: true, absolutePath: envFilePath, source: "absolute" } : {
|
|
17819
17824
|
exists: false,
|
|
17820
17825
|
absolutePath: envFilePath,
|
|
17821
17826
|
source: "absolute",
|
|
17822
|
-
...
|
|
17827
|
+
...probe.unusable ? { unusable: probe.unusable } : {}
|
|
17823
17828
|
};
|
|
17824
17829
|
}
|
|
17825
17830
|
const cwd = opts?.cwd ?? fs.env.cwd();
|
|
17826
17831
|
let searchDir = cwd;
|
|
17827
17832
|
while (true) {
|
|
17828
17833
|
const candidate = fs.path.join(searchDir, envFilePath);
|
|
17829
|
-
const
|
|
17830
|
-
if (
|
|
17834
|
+
const probe = await probeAsync(fs, candidate);
|
|
17835
|
+
if (probe.exists) {
|
|
17831
17836
|
return {
|
|
17832
17837
|
exists: true,
|
|
17833
17838
|
absolutePath: candidate,
|
|
@@ -17898,12 +17903,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
17898
17903
|
var saveEnvFileAsync = async ({
|
|
17899
17904
|
envPath,
|
|
17900
17905
|
data,
|
|
17901
|
-
merge
|
|
17906
|
+
merge = true
|
|
17902
17907
|
}) => {
|
|
17903
17908
|
const fs = getFileSystem();
|
|
17904
17909
|
const absolutePath = fs.path.isAbsolute(envPath) ? envPath : fs.path.join(fs.env.homedir(), envPath);
|
|
17905
17910
|
let existingData = {};
|
|
17906
|
-
if (
|
|
17911
|
+
if (merge && await fs.exists(absolutePath)) {
|
|
17907
17912
|
try {
|
|
17908
17913
|
existingData = await loadEnvFileAsync({ envPath: absolutePath });
|
|
17909
17914
|
} catch {}
|
|
@@ -17976,11 +17981,11 @@ var getLoginStatusWithDeps = async (options = {}, deps = {}) => {
|
|
|
17976
17981
|
}
|
|
17977
17982
|
return resolveBorrowedRobotStatus(robotFallback, robotDeps);
|
|
17978
17983
|
}
|
|
17979
|
-
const
|
|
17980
|
-
if ("status" in
|
|
17981
|
-
return
|
|
17984
|
+
const loaded = await loadFileCredentials(loadEnvFile, absolutePath);
|
|
17985
|
+
if ("status" in loaded) {
|
|
17986
|
+
return loaded.status;
|
|
17982
17987
|
}
|
|
17983
|
-
const { credentials } =
|
|
17988
|
+
const { credentials } = loaded;
|
|
17984
17989
|
const globalHint = () => usingActiveProfile ? Promise.resolve(undefined) : getGlobalCredsHint(getFs, loadEnvFile, absolutePath, envFilePath);
|
|
17985
17990
|
const expiration = getTokenExpiration(credentials.UIPATH_ACCESS_TOKEN);
|
|
17986
17991
|
const outerThreshold = computeExpirationThreshold(ensureTokenValidityMinutes);
|
|
@@ -18372,11 +18377,11 @@ async function runRefreshLocked(inputs) {
|
|
|
18372
18377
|
let refreshedAccess;
|
|
18373
18378
|
let refreshedRefresh;
|
|
18374
18379
|
try {
|
|
18375
|
-
const
|
|
18380
|
+
const config = await resolveConfig({ customAuthority });
|
|
18376
18381
|
const refreshed = await refreshFn({
|
|
18377
18382
|
refreshToken: tokenForIdP,
|
|
18378
|
-
tokenEndpoint:
|
|
18379
|
-
clientId:
|
|
18383
|
+
tokenEndpoint: config.tokenEndpoint,
|
|
18384
|
+
clientId: config.clientId,
|
|
18380
18385
|
expectedAuthority: customAuthority
|
|
18381
18386
|
});
|
|
18382
18387
|
refreshedAccess = refreshed.accessToken;
|
|
@@ -18470,26 +18475,38 @@ function errorMessage(error) {
|
|
|
18470
18475
|
}
|
|
18471
18476
|
|
|
18472
18477
|
// ../auth/src/authContext.ts
|
|
18478
|
+
class AuthContextUnavailableError extends Error {
|
|
18479
|
+
instructionContext;
|
|
18480
|
+
sessionHint;
|
|
18481
|
+
errorCode = "authentication_required";
|
|
18482
|
+
retry = "RetryWillNotFix";
|
|
18483
|
+
constructor(message, instructionContext = "auth", sessionHint) {
|
|
18484
|
+
super(message);
|
|
18485
|
+
this.instructionContext = instructionContext;
|
|
18486
|
+
this.sessionHint = sessionHint;
|
|
18487
|
+
this.name = "AuthContextUnavailableError";
|
|
18488
|
+
}
|
|
18489
|
+
}
|
|
18473
18490
|
var getAuthContext = async (options = {}) => {
|
|
18474
18491
|
const status = await getLoginStatusAsync({
|
|
18475
18492
|
ensureTokenValidityMinutes: options.ensureTokenValidityMinutes,
|
|
18476
18493
|
envFilePath: options.envFilePath
|
|
18477
18494
|
});
|
|
18478
18495
|
if (status.loginStatus !== "Logged in" || !status.baseUrl || !status.accessToken) {
|
|
18479
|
-
throw new
|
|
18496
|
+
throw new AuthContextUnavailableError(status.hint ? `Not logged in. ${status.hint}` : "Not logged in. Run 'uip login' first.", "auth", status.hint);
|
|
18480
18497
|
}
|
|
18481
|
-
const tenantName = options.tenant
|
|
18498
|
+
const tenantName = options.tenant || status.tenantName;
|
|
18482
18499
|
if (options.requireOrganizationId && !status.organizationId) {
|
|
18483
|
-
throw new
|
|
18500
|
+
throw new AuthContextUnavailableError("Organization ID not available. Ensure you are logged in with an organization context.", "identity");
|
|
18484
18501
|
}
|
|
18485
18502
|
if (options.requireOrganizationName && !status.organizationName) {
|
|
18486
|
-
throw new
|
|
18503
|
+
throw new AuthContextUnavailableError("Organization name not available. Ensure you are logged in with an organization context.", "identity");
|
|
18487
18504
|
}
|
|
18488
18505
|
if (options.requireTenantId && !status.tenantId) {
|
|
18489
|
-
throw new
|
|
18506
|
+
throw new AuthContextUnavailableError(`Tenant ID not available. Ensure UIPATH_TENANT_ID is set.${status.hint ? ` ${status.hint}` : ""}`, "identity", status.hint);
|
|
18490
18507
|
}
|
|
18491
|
-
if (options.requireTenantName && tenantName
|
|
18492
|
-
throw new
|
|
18508
|
+
if (options.requireTenantName && !tenantName) {
|
|
18509
|
+
throw new AuthContextUnavailableError("Tenant not provided and UIPATH_TENANT_NAME not set. Run 'uip login' to select a tenant, or use 'uip login tenant set <tenant>' to switch tenants.", "identity");
|
|
18493
18510
|
}
|
|
18494
18511
|
return {
|
|
18495
18512
|
baseUrl: status.baseUrl,
|
|
@@ -18508,6 +18525,6 @@ var TENANT_SELECTION_CODES = new Set([
|
|
|
18508
18525
|
TENANT_SELECTION_REQUIRED_CODE,
|
|
18509
18526
|
INVALID_TENANT_CODE
|
|
18510
18527
|
]);
|
|
18511
|
-
export {
|
|
18528
|
+
export { getAuthContext, EntityFieldDataType, EntityClass, DataFabricDirectoryEntityTypeName, UiPath };
|
|
18512
18529
|
|
|
18513
|
-
//# debugId=
|
|
18530
|
+
//# debugId=5429927AC4419CDF64756E2164756E21
|