@uipath/conversational-tool 1.205.0-preview.284 → 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 +42 -0
- package/dist/{cas-client-p7nc2k13.js → cas-client-jtqyyxdb.js} +23 -17
- package/dist/{getMachineId-bsd-t2xa1xja.js → getMachineId-bsd-gq25bn5m.js} +3 -3
- package/dist/{getMachineId-darwin-rnf93px2.js → getMachineId-darwin-g1g93zw1.js} +3 -3
- package/dist/{getMachineId-linux-ef2vse73.js → getMachineId-linux-gapvcvwf.js} +2 -2
- package/dist/{getMachineId-unsupported-sgg8gaae.js → getMachineId-unsupported-4zwvzkvs.js} +2 -2
- package/dist/{getMachineId-win-0q96gyd6.js → getMachineId-win-spwpdy3q.js} +3 -3
- package/dist/{index-nr509xjn.js → index-764qyyq8.js} +276 -358
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +9 -11
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{tool-yerrea90.js → tool-1f0pnfrv.js} +1 -1
- package/dist/{tool-mpvp5rqs.js → tool-3spqea6t.js} +30 -30
- package/dist/{tool-1yh8g550.js → tool-6an893wm.js} +12 -3
- package/dist/{tool-nkyhbf79.js → tool-9v6hwcm1.js} +43 -43
- package/dist/{tool-ckmjmbp5.js → tool-ex2xakrm.js} +1906 -1369
- package/dist/{tool-mb5720c8.js → tool-ks1kbxnv.js} +1588 -1161
- package/dist/tool.js +8 -10
- package/package.json +2 -2
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
getOrCreateClient
|
|
5
|
-
} from "./tool-nkyhbf79.js";
|
|
6
|
-
import {
|
|
7
|
-
CLI_EXTERNAL_USER_ID,
|
|
8
|
-
EXIT_CODES,
|
|
9
|
-
InvalidArgumentError,
|
|
10
|
-
OutputFormatter,
|
|
11
|
-
RESULTS,
|
|
12
|
-
canPrompt,
|
|
2
|
+
package_default,
|
|
3
|
+
getFileSystem,
|
|
13
4
|
catchError,
|
|
14
5
|
extractErrorDetails,
|
|
15
6
|
extractErrorMessageSync,
|
|
16
|
-
getFileSystem,
|
|
17
|
-
getLoginStatusAsync,
|
|
18
7
|
instructionsFor,
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
RESULTS,
|
|
9
|
+
InvalidArgumentError,
|
|
10
|
+
EXIT_CODES,
|
|
11
|
+
OutputFormatter,
|
|
21
12
|
processContext,
|
|
22
|
-
requireConfirmation
|
|
23
|
-
|
|
13
|
+
requireConfirmation,
|
|
14
|
+
canPrompt,
|
|
15
|
+
parseBoundedInt,
|
|
16
|
+
getAuthContext,
|
|
17
|
+
CLI_EXTERNAL_USER_ID
|
|
18
|
+
} from "./tool-ex2xakrm.js";
|
|
19
|
+
import {
|
|
20
|
+
getOrCreateClient,
|
|
21
|
+
createTrack,
|
|
22
|
+
createTrackEvent
|
|
23
|
+
} from "./tool-9v6hwcm1.js";
|
|
24
24
|
import {
|
|
25
25
|
__require
|
|
26
|
-
} from "./tool-
|
|
26
|
+
} from "./tool-6an893wm.js";
|
|
27
27
|
|
|
28
28
|
// ../../node_modules/@uipath/uipath-typescript/dist/index.mjs
|
|
29
29
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -454,10 +454,10 @@ function prefixIssues(path, issues) {
|
|
|
454
454
|
function unwrapMessage(message) {
|
|
455
455
|
return typeof message === "string" ? message : message?.message;
|
|
456
456
|
}
|
|
457
|
-
function finalizeIssue(iss, ctx,
|
|
457
|
+
function finalizeIssue(iss, ctx, config) {
|
|
458
458
|
const full = { ...iss, path: iss.path ?? [] };
|
|
459
459
|
if (!iss.message) {
|
|
460
|
-
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(
|
|
460
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
|
|
461
461
|
full.message = message;
|
|
462
462
|
}
|
|
463
463
|
delete full.inst;
|
|
@@ -504,7 +504,7 @@ var initializer$1 = (inst, def) => {
|
|
|
504
504
|
};
|
|
505
505
|
var $ZodError = $constructor("$ZodError", initializer$1);
|
|
506
506
|
var $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
507
|
-
function flattenError(error, mapper = (
|
|
507
|
+
function flattenError(error, mapper = (issue) => issue.message) {
|
|
508
508
|
const fieldErrors = {};
|
|
509
509
|
const formErrors = [];
|
|
510
510
|
for (const sub of error.issues) {
|
|
@@ -517,29 +517,29 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
517
517
|
}
|
|
518
518
|
return { formErrors, fieldErrors };
|
|
519
519
|
}
|
|
520
|
-
function formatError(error, mapper = (
|
|
520
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
521
521
|
const fieldErrors = { _errors: [] };
|
|
522
|
-
const processError = (
|
|
523
|
-
for (const
|
|
524
|
-
if (
|
|
525
|
-
|
|
526
|
-
} else if (
|
|
527
|
-
processError({ issues:
|
|
528
|
-
} else if (
|
|
529
|
-
processError({ issues:
|
|
530
|
-
} else if (
|
|
531
|
-
fieldErrors._errors.push(mapper(
|
|
522
|
+
const processError = (error) => {
|
|
523
|
+
for (const issue of error.issues) {
|
|
524
|
+
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
525
|
+
issue.errors.map((issues) => processError({ issues }));
|
|
526
|
+
} else if (issue.code === "invalid_key") {
|
|
527
|
+
processError({ issues: issue.issues });
|
|
528
|
+
} else if (issue.code === "invalid_element") {
|
|
529
|
+
processError({ issues: issue.issues });
|
|
530
|
+
} else if (issue.path.length === 0) {
|
|
531
|
+
fieldErrors._errors.push(mapper(issue));
|
|
532
532
|
} else {
|
|
533
533
|
let curr = fieldErrors;
|
|
534
534
|
let i = 0;
|
|
535
|
-
while (i <
|
|
536
|
-
const el =
|
|
537
|
-
const terminal = i ===
|
|
535
|
+
while (i < issue.path.length) {
|
|
536
|
+
const el = issue.path[i];
|
|
537
|
+
const terminal = i === issue.path.length - 1;
|
|
538
538
|
if (!terminal) {
|
|
539
539
|
curr[el] = curr[el] || { _errors: [] };
|
|
540
540
|
} else {
|
|
541
541
|
curr[el] = curr[el] || { _errors: [] };
|
|
542
|
-
curr[el]._errors.push(mapper(
|
|
542
|
+
curr[el]._errors.push(mapper(issue));
|
|
543
543
|
}
|
|
544
544
|
curr = curr[el];
|
|
545
545
|
i++;
|
|
@@ -691,10 +691,10 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
691
691
|
const val = payload.value;
|
|
692
692
|
return !nullish(val) && val.length !== undefined;
|
|
693
693
|
});
|
|
694
|
-
inst._zod.onattach.push((
|
|
695
|
-
const curr =
|
|
694
|
+
inst._zod.onattach.push((inst) => {
|
|
695
|
+
const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
696
696
|
if (def.maximum < curr)
|
|
697
|
-
|
|
697
|
+
inst._zod.bag.maximum = def.maximum;
|
|
698
698
|
});
|
|
699
699
|
inst._zod.check = (payload) => {
|
|
700
700
|
const input = payload.value;
|
|
@@ -720,10 +720,10 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
720
720
|
const val = payload.value;
|
|
721
721
|
return !nullish(val) && val.length !== undefined;
|
|
722
722
|
});
|
|
723
|
-
inst._zod.onattach.push((
|
|
724
|
-
const curr =
|
|
723
|
+
inst._zod.onattach.push((inst) => {
|
|
724
|
+
const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
725
725
|
if (def.minimum > curr)
|
|
726
|
-
|
|
726
|
+
inst._zod.bag.minimum = def.minimum;
|
|
727
727
|
});
|
|
728
728
|
inst._zod.check = (payload) => {
|
|
729
729
|
const input = payload.value;
|
|
@@ -749,8 +749,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
749
749
|
const val = payload.value;
|
|
750
750
|
return !nullish(val) && val.length !== undefined;
|
|
751
751
|
});
|
|
752
|
-
inst._zod.onattach.push((
|
|
753
|
-
const bag =
|
|
752
|
+
inst._zod.onattach.push((inst) => {
|
|
753
|
+
const bag = inst._zod.bag;
|
|
754
754
|
bag.minimum = def.length;
|
|
755
755
|
bag.maximum = def.length;
|
|
756
756
|
bag.length = def.length;
|
|
@@ -776,8 +776,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
776
776
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
777
777
|
var _a, _b;
|
|
778
778
|
$ZodCheck.init(inst, def);
|
|
779
|
-
inst._zod.onattach.push((
|
|
780
|
-
const bag =
|
|
779
|
+
inst._zod.onattach.push((inst) => {
|
|
780
|
+
const bag = inst._zod.bag;
|
|
781
781
|
bag.format = def.format;
|
|
782
782
|
if (def.pattern) {
|
|
783
783
|
bag.patterns ?? (bag.patterns = new Set);
|
|
@@ -832,8 +832,8 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
|
|
|
832
832
|
const escapedRegex = escapeRegex(def.includes);
|
|
833
833
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
834
834
|
def.pattern = pattern;
|
|
835
|
-
inst._zod.onattach.push((
|
|
836
|
-
const bag =
|
|
835
|
+
inst._zod.onattach.push((inst) => {
|
|
836
|
+
const bag = inst._zod.bag;
|
|
837
837
|
bag.patterns ?? (bag.patterns = new Set);
|
|
838
838
|
bag.patterns.add(pattern);
|
|
839
839
|
});
|
|
@@ -855,8 +855,8 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
|
|
|
855
855
|
$ZodCheck.init(inst, def);
|
|
856
856
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
857
857
|
def.pattern ?? (def.pattern = pattern);
|
|
858
|
-
inst._zod.onattach.push((
|
|
859
|
-
const bag =
|
|
858
|
+
inst._zod.onattach.push((inst) => {
|
|
859
|
+
const bag = inst._zod.bag;
|
|
860
860
|
bag.patterns ?? (bag.patterns = new Set);
|
|
861
861
|
bag.patterns.add(pattern);
|
|
862
862
|
});
|
|
@@ -878,8 +878,8 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
|
|
|
878
878
|
$ZodCheck.init(inst, def);
|
|
879
879
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
880
880
|
def.pattern ?? (def.pattern = pattern);
|
|
881
|
-
inst._zod.onattach.push((
|
|
882
|
-
const bag =
|
|
881
|
+
inst._zod.onattach.push((inst) => {
|
|
882
|
+
const bag = inst._zod.bag;
|
|
883
883
|
bag.patterns ?? (bag.patterns = new Set);
|
|
884
884
|
bag.patterns.add(pattern);
|
|
885
885
|
});
|
|
@@ -966,10 +966,10 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
966
966
|
inst._zod.run = inst._zod.parse;
|
|
967
967
|
});
|
|
968
968
|
} else {
|
|
969
|
-
const runChecks = (payload,
|
|
969
|
+
const runChecks = (payload, checks, ctx) => {
|
|
970
970
|
let isAborted = aborted(payload);
|
|
971
971
|
let asyncResult;
|
|
972
|
-
for (const ch of
|
|
972
|
+
for (const ch of checks) {
|
|
973
973
|
if (ch._zod.def.when) {
|
|
974
974
|
const shouldRun = ch._zod.def.when(payload);
|
|
975
975
|
if (!shouldRun)
|
|
@@ -1015,7 +1015,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1015
1015
|
if (checkResult instanceof Promise) {
|
|
1016
1016
|
if (ctx.async === false)
|
|
1017
1017
|
throw new $ZodAsyncError;
|
|
1018
|
-
return checkResult.then((
|
|
1018
|
+
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
1019
1019
|
}
|
|
1020
1020
|
return inst._zod.parse(checkResult, ctx);
|
|
1021
1021
|
};
|
|
@@ -1026,8 +1026,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1026
1026
|
if (ctx.direction === "backward") {
|
|
1027
1027
|
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
1028
1028
|
if (canary instanceof Promise) {
|
|
1029
|
-
return canary.then((
|
|
1030
|
-
return handleCanaryResult(
|
|
1029
|
+
return canary.then((canary) => {
|
|
1030
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
return handleCanaryResult(canary, payload, ctx);
|
|
@@ -1036,7 +1036,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1036
1036
|
if (result instanceof Promise) {
|
|
1037
1037
|
if (ctx.async === false)
|
|
1038
1038
|
throw new $ZodAsyncError;
|
|
1039
|
-
return result.then((
|
|
1039
|
+
return result.then((result) => runChecks(result, checks, ctx));
|
|
1040
1040
|
}
|
|
1041
1041
|
return runChecks(result, checks, ctx);
|
|
1042
1042
|
};
|
|
@@ -1061,7 +1061,7 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
1061
1061
|
if (def.coerce)
|
|
1062
1062
|
try {
|
|
1063
1063
|
payload.value = String(payload.value);
|
|
1064
|
-
} catch (
|
|
1064
|
+
} catch (_) {}
|
|
1065
1065
|
if (typeof payload.value === "string")
|
|
1066
1066
|
return payload;
|
|
1067
1067
|
payload.issues.push({
|
|
@@ -1286,8 +1286,8 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
1286
1286
|
function isValidBase64URL(data) {
|
|
1287
1287
|
if (!base64url.test(data))
|
|
1288
1288
|
return false;
|
|
1289
|
-
const
|
|
1290
|
-
const padded =
|
|
1289
|
+
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1290
|
+
const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
|
|
1291
1291
|
return isValidBase64(padded);
|
|
1292
1292
|
}
|
|
1293
1293
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
@@ -1408,7 +1408,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
1408
1408
|
issues: []
|
|
1409
1409
|
}, ctx);
|
|
1410
1410
|
if (result instanceof Promise) {
|
|
1411
|
-
proms.push(result.then((
|
|
1411
|
+
proms.push(result.then((result) => handleArrayResult(result, payload, i)));
|
|
1412
1412
|
} else {
|
|
1413
1413
|
handleArrayResult(result, payload, i);
|
|
1414
1414
|
}
|
|
@@ -1465,7 +1465,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
1467
1467
|
if (r instanceof Promise) {
|
|
1468
|
-
proms.push(r.then((
|
|
1468
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
|
|
1469
1469
|
} else {
|
|
1470
1470
|
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1471
1471
|
}
|
|
@@ -1536,7 +1536,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1536
1536
|
const isOptionalOut = el._zod.optout === "optional";
|
|
1537
1537
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
1538
1538
|
if (r instanceof Promise) {
|
|
1539
|
-
proms.push(r.then((
|
|
1539
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
|
|
1540
1540
|
} else {
|
|
1541
1541
|
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1542
1542
|
}
|
|
@@ -1707,8 +1707,8 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
if (!async)
|
|
1709
1709
|
return handleUnionResults(results, payload, inst, ctx);
|
|
1710
|
-
return Promise.all(results).then((
|
|
1711
|
-
return handleUnionResults(
|
|
1710
|
+
return Promise.all(results).then((results) => {
|
|
1711
|
+
return handleUnionResults(results, payload, inst, ctx);
|
|
1712
1712
|
});
|
|
1713
1713
|
};
|
|
1714
1714
|
});
|
|
@@ -1720,8 +1720,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
|
|
|
1720
1720
|
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
1721
1721
|
const async = left instanceof Promise || right instanceof Promise;
|
|
1722
1722
|
if (async) {
|
|
1723
|
-
return Promise.all([left, right]).then(([
|
|
1724
|
-
return handleIntersectionResults(payload,
|
|
1723
|
+
return Promise.all([left, right]).then(([left, right]) => {
|
|
1724
|
+
return handleIntersectionResults(payload, left, right);
|
|
1725
1725
|
});
|
|
1726
1726
|
}
|
|
1727
1727
|
return handleIntersectionResults(payload, left, right);
|
|
@@ -1839,8 +1839,8 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
1839
1839
|
const _out = def.transform(payload.value, payload);
|
|
1840
1840
|
if (ctx.async) {
|
|
1841
1841
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
1842
|
-
return output.then((
|
|
1843
|
-
payload.value =
|
|
1842
|
+
return output.then((output) => {
|
|
1843
|
+
payload.value = output;
|
|
1844
1844
|
return payload;
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
@@ -1920,7 +1920,7 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1922
1922
|
if (result instanceof Promise) {
|
|
1923
|
-
return result.then((
|
|
1923
|
+
return result.then((result) => handleDefaultResult(result, def));
|
|
1924
1924
|
}
|
|
1925
1925
|
return handleDefaultResult(result, def);
|
|
1926
1926
|
};
|
|
@@ -1954,7 +1954,7 @@ var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def
|
|
|
1954
1954
|
inst._zod.parse = (payload, ctx) => {
|
|
1955
1955
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1956
1956
|
if (result instanceof Promise) {
|
|
1957
|
-
return result.then((
|
|
1957
|
+
return result.then((result) => handleNonOptionalResult(result, inst));
|
|
1958
1958
|
}
|
|
1959
1959
|
return handleNonOptionalResult(result, inst);
|
|
1960
1960
|
};
|
|
@@ -1981,13 +1981,13 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
const result = def.innerType._zod.run(payload, ctx);
|
|
1983
1983
|
if (result instanceof Promise) {
|
|
1984
|
-
return result.then((
|
|
1985
|
-
payload.value =
|
|
1986
|
-
if (
|
|
1984
|
+
return result.then((result) => {
|
|
1985
|
+
payload.value = result.value;
|
|
1986
|
+
if (result.issues.length) {
|
|
1987
1987
|
payload.value = def.catchValue({
|
|
1988
1988
|
...payload,
|
|
1989
1989
|
error: {
|
|
1990
|
-
issues:
|
|
1990
|
+
issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
1991
1991
|
},
|
|
1992
1992
|
input: payload.value
|
|
1993
1993
|
});
|
|
@@ -2020,13 +2020,13 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
2020
2020
|
if (ctx.direction === "backward") {
|
|
2021
2021
|
const right = def.out._zod.run(payload, ctx);
|
|
2022
2022
|
if (right instanceof Promise) {
|
|
2023
|
-
return right.then((
|
|
2023
|
+
return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
2024
2024
|
}
|
|
2025
2025
|
return handlePipeResult(right, def.in, ctx);
|
|
2026
2026
|
}
|
|
2027
2027
|
const left = def.in._zod.run(payload, ctx);
|
|
2028
2028
|
if (left instanceof Promise) {
|
|
2029
|
-
return left.then((
|
|
2029
|
+
return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
2030
2030
|
}
|
|
2031
2031
|
return handlePipeResult(left, def.out, ctx);
|
|
2032
2032
|
};
|
|
@@ -2069,7 +2069,7 @@ var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
|
2069
2069
|
const input = payload.value;
|
|
2070
2070
|
const r = def.fn(input);
|
|
2071
2071
|
if (r instanceof Promise) {
|
|
2072
|
-
return r.then((
|
|
2072
|
+
return r.then((r) => handleRefineResult(r, payload, input, inst));
|
|
2073
2073
|
}
|
|
2074
2074
|
handleRefineResult(r, payload, input, inst);
|
|
2075
2075
|
return;
|
|
@@ -2622,7 +2622,7 @@ function extractDefs(ctx, schema) {
|
|
|
2622
2622
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2623
2623
|
if (ctx.external) {
|
|
2624
2624
|
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
2625
|
-
const uriGenerator = ctx.external.uri ?? ((
|
|
2625
|
+
const uriGenerator = ctx.external.uri ?? ((id) => id);
|
|
2626
2626
|
if (externalId) {
|
|
2627
2627
|
return { ref: uriGenerator(externalId) };
|
|
2628
2628
|
}
|
|
@@ -2647,11 +2647,11 @@ function extractDefs(ctx, schema) {
|
|
|
2647
2647
|
seen.def = { ...seen.schema };
|
|
2648
2648
|
if (defId)
|
|
2649
2649
|
seen.defId = defId;
|
|
2650
|
-
const
|
|
2651
|
-
for (const key in
|
|
2652
|
-
delete
|
|
2650
|
+
const schema = seen.schema;
|
|
2651
|
+
for (const key in schema) {
|
|
2652
|
+
delete schema[key];
|
|
2653
2653
|
}
|
|
2654
|
-
|
|
2654
|
+
schema.$ref = ref;
|
|
2655
2655
|
};
|
|
2656
2656
|
if (ctx.cycles === "throw") {
|
|
2657
2657
|
for (const entry of ctx.seen.entries()) {
|
|
@@ -2699,8 +2699,8 @@ function finalize(ctx, schema) {
|
|
|
2699
2699
|
const seen = ctx.seen.get(zodSchema);
|
|
2700
2700
|
if (seen.ref === null)
|
|
2701
2701
|
return;
|
|
2702
|
-
const
|
|
2703
|
-
const _cached = { ...
|
|
2702
|
+
const schema = seen.def ?? seen.schema;
|
|
2703
|
+
const _cached = { ...schema };
|
|
2704
2704
|
const ref = seen.ref;
|
|
2705
2705
|
seen.ref = null;
|
|
2706
2706
|
if (ref) {
|
|
@@ -2708,28 +2708,28 @@ function finalize(ctx, schema) {
|
|
|
2708
2708
|
const refSeen = ctx.seen.get(ref);
|
|
2709
2709
|
const refSchema = refSeen.schema;
|
|
2710
2710
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
2711
|
-
|
|
2712
|
-
|
|
2711
|
+
schema.allOf = schema.allOf ?? [];
|
|
2712
|
+
schema.allOf.push(refSchema);
|
|
2713
2713
|
} else {
|
|
2714
|
-
Object.assign(
|
|
2714
|
+
Object.assign(schema, refSchema);
|
|
2715
2715
|
}
|
|
2716
|
-
Object.assign(
|
|
2716
|
+
Object.assign(schema, _cached);
|
|
2717
2717
|
const isParentRef = zodSchema._zod.parent === ref;
|
|
2718
2718
|
if (isParentRef) {
|
|
2719
|
-
for (const key in
|
|
2719
|
+
for (const key in schema) {
|
|
2720
2720
|
if (key === "$ref" || key === "allOf")
|
|
2721
2721
|
continue;
|
|
2722
2722
|
if (!(key in _cached)) {
|
|
2723
|
-
delete
|
|
2723
|
+
delete schema[key];
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
if (refSchema.$ref && refSeen.def) {
|
|
2728
|
-
for (const key in
|
|
2728
|
+
for (const key in schema) {
|
|
2729
2729
|
if (key === "$ref" || key === "allOf")
|
|
2730
2730
|
continue;
|
|
2731
|
-
if (key in refSeen.def && JSON.stringify(
|
|
2732
|
-
delete
|
|
2731
|
+
if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {
|
|
2732
|
+
delete schema[key];
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
@@ -2739,13 +2739,13 @@ function finalize(ctx, schema) {
|
|
|
2739
2739
|
flattenRef(parent);
|
|
2740
2740
|
const parentSeen = ctx.seen.get(parent);
|
|
2741
2741
|
if (parentSeen?.schema.$ref) {
|
|
2742
|
-
|
|
2742
|
+
schema.$ref = parentSeen.schema.$ref;
|
|
2743
2743
|
if (parentSeen.def) {
|
|
2744
|
-
for (const key in
|
|
2744
|
+
for (const key in schema) {
|
|
2745
2745
|
if (key === "$ref" || key === "allOf")
|
|
2746
2746
|
continue;
|
|
2747
|
-
if (key in parentSeen.def && JSON.stringify(
|
|
2748
|
-
delete
|
|
2747
|
+
if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
2748
|
+
delete schema[key];
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
@@ -2753,7 +2753,7 @@ function finalize(ctx, schema) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
ctx.override({
|
|
2755
2755
|
zodSchema,
|
|
2756
|
-
jsonSchema:
|
|
2756
|
+
jsonSchema: schema,
|
|
2757
2757
|
path: seen.path ?? []
|
|
2758
2758
|
});
|
|
2759
2759
|
};
|
|
@@ -3122,14 +3122,14 @@ var initializer = (inst, issues) => {
|
|
|
3122
3122
|
value: (mapper) => flattenError(inst, mapper)
|
|
3123
3123
|
},
|
|
3124
3124
|
addIssue: {
|
|
3125
|
-
value: (
|
|
3126
|
-
inst.issues.push(
|
|
3125
|
+
value: (issue) => {
|
|
3126
|
+
inst.issues.push(issue);
|
|
3127
3127
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
3128
3128
|
}
|
|
3129
3129
|
},
|
|
3130
3130
|
addIssues: {
|
|
3131
|
-
value: (
|
|
3132
|
-
inst.issues.push(...
|
|
3131
|
+
value: (issues) => {
|
|
3132
|
+
inst.issues.push(...issues);
|
|
3133
3133
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
3134
3134
|
}
|
|
3135
3135
|
},
|
|
@@ -3178,7 +3178,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3178
3178
|
});
|
|
3179
3179
|
};
|
|
3180
3180
|
inst.with = inst.check;
|
|
3181
|
-
inst.clone = (
|
|
3181
|
+
inst.clone = (def, params) => clone(inst, def, params);
|
|
3182
3182
|
inst.brand = () => inst;
|
|
3183
3183
|
inst.register = (reg, meta) => {
|
|
3184
3184
|
reg.add(inst, meta);
|
|
@@ -3209,8 +3209,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3209
3209
|
inst.or = (arg) => union([inst, arg]);
|
|
3210
3210
|
inst.and = (arg) => intersection(inst, arg);
|
|
3211
3211
|
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
3212
|
-
inst.default = (
|
|
3213
|
-
inst.prefault = (
|
|
3212
|
+
inst.default = (def) => _default(inst, def);
|
|
3213
|
+
inst.prefault = (def) => prefault(inst, def);
|
|
3214
3214
|
inst.catch = (params) => _catch(inst, params);
|
|
3215
3215
|
inst.pipe = (target) => pipe(inst, target);
|
|
3216
3216
|
inst.readonly = () => readonly(inst);
|
|
@@ -3541,8 +3541,8 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
3541
3541
|
};
|
|
3542
3542
|
const output = def.transform(payload.value, payload);
|
|
3543
3543
|
if (output instanceof Promise) {
|
|
3544
|
-
return output.then((
|
|
3545
|
-
payload.value =
|
|
3544
|
+
return output.then((output) => {
|
|
3545
|
+
payload.value = output;
|
|
3546
3546
|
return payload;
|
|
3547
3547
|
});
|
|
3548
3548
|
}
|
|
@@ -3754,11 +3754,11 @@ function getExpiryMs(expiresAt) {
|
|
|
3754
3754
|
const ms = expiresAt instanceof Date ? expiresAt.getTime() : new Date(expiresAt).getTime();
|
|
3755
3755
|
return Number.isNaN(ms) ? 0 : ms;
|
|
3756
3756
|
}
|
|
3757
|
-
function hasOAuthConfig(
|
|
3758
|
-
return Boolean(
|
|
3757
|
+
function hasOAuthConfig(config) {
|
|
3758
|
+
return Boolean(config.clientId && config.redirectUri && config.scope);
|
|
3759
3759
|
}
|
|
3760
|
-
function hasSecretConfig(
|
|
3761
|
-
return Boolean(
|
|
3760
|
+
function hasSecretConfig(config) {
|
|
3761
|
+
return Boolean(config.secret);
|
|
3762
3762
|
}
|
|
3763
3763
|
|
|
3764
3764
|
class UiPathError extends Error {
|
|
@@ -3901,78 +3901,78 @@ class NetworkError extends UiPathError {
|
|
|
3901
3901
|
}
|
|
3902
3902
|
}
|
|
3903
3903
|
var TaskUserType;
|
|
3904
|
-
(function(
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3904
|
+
(function(TaskUserType) {
|
|
3905
|
+
TaskUserType["User"] = "User";
|
|
3906
|
+
TaskUserType["Robot"] = "Robot";
|
|
3907
|
+
TaskUserType["DirectoryUser"] = "DirectoryUser";
|
|
3908
|
+
TaskUserType["DirectoryGroup"] = "DirectoryGroup";
|
|
3909
|
+
TaskUserType["DirectoryRobot"] = "DirectoryRobot";
|
|
3910
|
+
TaskUserType["DirectoryExternalApplication"] = "DirectoryExternalApplication";
|
|
3911
3911
|
})(TaskUserType || (TaskUserType = {}));
|
|
3912
3912
|
var TaskType;
|
|
3913
|
-
(function(
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3913
|
+
(function(TaskType) {
|
|
3914
|
+
TaskType["Form"] = "FormTask";
|
|
3915
|
+
TaskType["External"] = "ExternalTask";
|
|
3916
|
+
TaskType["App"] = "AppTask";
|
|
3917
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
3918
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
3919
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
3920
|
+
TaskType["QuickForm"] = "QuickFormTask";
|
|
3921
3921
|
})(TaskType || (TaskType = {}));
|
|
3922
3922
|
var TaskPriority;
|
|
3923
|
-
(function(
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3923
|
+
(function(TaskPriority) {
|
|
3924
|
+
TaskPriority["Low"] = "Low";
|
|
3925
|
+
TaskPriority["Medium"] = "Medium";
|
|
3926
|
+
TaskPriority["High"] = "High";
|
|
3927
|
+
TaskPriority["Critical"] = "Critical";
|
|
3928
3928
|
})(TaskPriority || (TaskPriority = {}));
|
|
3929
3929
|
var TaskStatus;
|
|
3930
|
-
(function(
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3930
|
+
(function(TaskStatus) {
|
|
3931
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
3932
|
+
TaskStatus["Pending"] = "Pending";
|
|
3933
|
+
TaskStatus["Completed"] = "Completed";
|
|
3934
3934
|
})(TaskStatus || (TaskStatus = {}));
|
|
3935
3935
|
var TaskSlaCriteria;
|
|
3936
|
-
(function(
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3936
|
+
(function(TaskSlaCriteria) {
|
|
3937
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
3938
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
3939
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
3940
3940
|
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
3941
3941
|
var TaskSlaStatus;
|
|
3942
|
-
(function(
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3942
|
+
(function(TaskSlaStatus) {
|
|
3943
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
3944
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
3945
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
3946
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
3947
3947
|
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
3948
3948
|
var TaskSourceName;
|
|
3949
|
-
(function(
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3949
|
+
(function(TaskSourceName) {
|
|
3950
|
+
TaskSourceName["Agent"] = "Agent";
|
|
3951
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
3952
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
3953
|
+
TaskSourceName["Default"] = "Default";
|
|
3954
3954
|
})(TaskSourceName || (TaskSourceName = {}));
|
|
3955
3955
|
var TaskActivityType;
|
|
3956
|
-
(function(
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3956
|
+
(function(TaskActivityType) {
|
|
3957
|
+
TaskActivityType["Created"] = "Created";
|
|
3958
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
3959
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
3960
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
3961
|
+
TaskActivityType["Saved"] = "Saved";
|
|
3962
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
3963
|
+
TaskActivityType["Completed"] = "Completed";
|
|
3964
|
+
TaskActivityType["Commented"] = "Commented";
|
|
3965
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
3966
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
3967
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
3968
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
3969
3969
|
})(TaskActivityType || (TaskActivityType = {}));
|
|
3970
3970
|
var TaskAssignmentCriteria;
|
|
3971
|
-
(function(
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3971
|
+
(function(TaskAssignmentCriteria) {
|
|
3972
|
+
TaskAssignmentCriteria["SingleUser"] = "SingleUser";
|
|
3973
|
+
TaskAssignmentCriteria["Workload"] = "Workload";
|
|
3974
|
+
TaskAssignmentCriteria["AllUsers"] = "AllUsers";
|
|
3975
|
+
TaskAssignmentCriteria["RoundRobin"] = "RoundRobin";
|
|
3976
3976
|
})(TaskAssignmentCriteria || (TaskAssignmentCriteria = {}));
|
|
3977
3977
|
var ORCHESTRATOR_BASE = "orchestrator_";
|
|
3978
3978
|
var PIMS_BASE = "pims_";
|
|
@@ -4173,9 +4173,9 @@ var TASK_TYPE_ENDPOINTS = {
|
|
|
4173
4173
|
[TaskType.QuickForm]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID
|
|
4174
4174
|
};
|
|
4175
4175
|
var ActionCenterEventNames;
|
|
4176
|
-
(function(
|
|
4177
|
-
|
|
4178
|
-
|
|
4176
|
+
(function(ActionCenterEventNames) {
|
|
4177
|
+
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
4178
|
+
ActionCenterEventNames["REFRESHTOKEN"] = "AC.refreshToken";
|
|
4179
4179
|
})(ActionCenterEventNames || (ActionCenterEventNames = {}));
|
|
4180
4180
|
var AUTHENTICATION_TIMEOUT = 8000;
|
|
4181
4181
|
function isTokenExpired(tokenInfo) {
|
|
@@ -4212,7 +4212,7 @@ function requestHostToken(options) {
|
|
|
4212
4212
|
statusCode: HttpStatus.UNAUTHORIZED
|
|
4213
4213
|
})), AUTHENTICATION_TIMEOUT);
|
|
4214
4214
|
try {
|
|
4215
|
-
const responsePromise = waitForMessage((
|
|
4215
|
+
const responsePromise = waitForMessage((event) => event.origin === pinnedOrigin && event.data?.eventType === responseEventType, controller.signal);
|
|
4216
4216
|
sendRequest();
|
|
4217
4217
|
const event = await responsePromise;
|
|
4218
4218
|
const token = extractToken(event.data);
|
|
@@ -4232,8 +4232,8 @@ function requestHostToken(options) {
|
|
|
4232
4232
|
}
|
|
4233
4233
|
|
|
4234
4234
|
class ActionCenterTokenManager {
|
|
4235
|
-
constructor(
|
|
4236
|
-
this.config =
|
|
4235
|
+
constructor(config, onTokenRefreshed) {
|
|
4236
|
+
this.config = config;
|
|
4237
4237
|
this.onTokenRefreshed = onTokenRefreshed;
|
|
4238
4238
|
this.parentOrigin = new URLSearchParams(window.location.search).get("basedomain");
|
|
4239
4239
|
this.refreshPromise = null;
|
|
@@ -4285,9 +4285,9 @@ class ActionCenterTokenManager {
|
|
|
4285
4285
|
}
|
|
4286
4286
|
}
|
|
4287
4287
|
var UipEmbeddedEventNames;
|
|
4288
|
-
(function(
|
|
4289
|
-
|
|
4290
|
-
|
|
4288
|
+
(function(UipEmbeddedEventNames) {
|
|
4289
|
+
UipEmbeddedEventNames["REFRESH_TOKEN"] = "UIP.refreshToken";
|
|
4290
|
+
UipEmbeddedEventNames["TOKEN_REFRESHED"] = "UIP.tokenRefreshed";
|
|
4291
4291
|
})(UipEmbeddedEventNames || (UipEmbeddedEventNames = {}));
|
|
4292
4292
|
function parseExpiresAt(raw) {
|
|
4293
4293
|
const d = new Date(raw);
|
|
@@ -4305,18 +4305,18 @@ function extractToken(data) {
|
|
|
4305
4305
|
}
|
|
4306
4306
|
|
|
4307
4307
|
class EmbeddedTokenManager {
|
|
4308
|
-
constructor(parentOrigin,
|
|
4308
|
+
constructor(parentOrigin, config, onTokenRefreshed) {
|
|
4309
4309
|
this.parentOrigin = parentOrigin;
|
|
4310
4310
|
this.onTokenRefreshed = onTokenRefreshed;
|
|
4311
4311
|
this.refreshPromise = null;
|
|
4312
4312
|
this.cancelRefresh = null;
|
|
4313
|
-
if (!
|
|
4313
|
+
if (!config.clientId || !config.scope) {
|
|
4314
4314
|
throw new ValidationError({
|
|
4315
4315
|
message: "EmbeddedTokenManager requires clientId and scope to be configured for host-delegated authentication"
|
|
4316
4316
|
});
|
|
4317
4317
|
}
|
|
4318
|
-
this.clientId =
|
|
4319
|
-
this.scope =
|
|
4318
|
+
this.clientId = config.clientId;
|
|
4319
|
+
this.scope = config.scope;
|
|
4320
4320
|
}
|
|
4321
4321
|
async refreshAccessToken(tokenInfo) {
|
|
4322
4322
|
if (!isTokenExpired(tokenInfo)) {
|
|
@@ -4388,16 +4388,16 @@ function encodeBase64(str) {
|
|
|
4388
4388
|
return Buffer.from(data).toString("base64");
|
|
4389
4389
|
}
|
|
4390
4390
|
}
|
|
4391
|
-
function decodeBase64(
|
|
4391
|
+
function decodeBase64(base64) {
|
|
4392
4392
|
let bytes;
|
|
4393
4393
|
if (isBrowser) {
|
|
4394
|
-
const binaryString = atob(
|
|
4394
|
+
const binaryString = atob(base64);
|
|
4395
4395
|
bytes = new Uint8Array(binaryString.length);
|
|
4396
4396
|
for (let i = 0;i < binaryString.length; i++) {
|
|
4397
4397
|
bytes[i] = binaryString.charCodeAt(i);
|
|
4398
4398
|
}
|
|
4399
4399
|
} else {
|
|
4400
|
-
bytes = new Uint8Array(Buffer.from(
|
|
4400
|
+
bytes = new Uint8Array(Buffer.from(base64, "base64"));
|
|
4401
4401
|
}
|
|
4402
4402
|
const decoder = new TextDecoder;
|
|
4403
4403
|
return decoder.decode(bytes);
|
|
@@ -4418,8 +4418,8 @@ function encodeFolderPathHeader(folderPath) {
|
|
|
4418
4418
|
var BASE64URL_DASH_RE = /-/g;
|
|
4419
4419
|
var BASE64URL_UNDERSCORE_RE = /_/g;
|
|
4420
4420
|
function base64UrlToBase64(value) {
|
|
4421
|
-
const
|
|
4422
|
-
return
|
|
4421
|
+
const base64 = value.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
|
|
4422
|
+
return base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
|
|
4423
4423
|
}
|
|
4424
4424
|
function decodeJwtClaims(token) {
|
|
4425
4425
|
try {
|
|
@@ -4438,18 +4438,18 @@ function extractUserIdFromToken(token) {
|
|
|
4438
4438
|
}
|
|
4439
4439
|
|
|
4440
4440
|
class TokenManager {
|
|
4441
|
-
constructor(executionContext,
|
|
4441
|
+
constructor(executionContext, config, isOAuth = false) {
|
|
4442
4442
|
this.executionContext = executionContext;
|
|
4443
|
-
this.config =
|
|
4443
|
+
this.config = config;
|
|
4444
4444
|
this.isOAuth = isOAuth;
|
|
4445
4445
|
this.refreshPromise = null;
|
|
4446
4446
|
this.actionCenterTokenManager = null;
|
|
4447
4447
|
this.embeddedTokenManager = null;
|
|
4448
4448
|
if (isInActionCenter) {
|
|
4449
|
-
this.actionCenterTokenManager = new ActionCenterTokenManager(
|
|
4449
|
+
this.actionCenterTokenManager = new ActionCenterTokenManager(config, (tokenInfo) => this.setToken(tokenInfo));
|
|
4450
4450
|
this.isOAuth = false;
|
|
4451
4451
|
} else if (hostEmbeddingOrigin) {
|
|
4452
|
-
this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin,
|
|
4452
|
+
this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin, config, (tokenInfo) => this.setToken(tokenInfo));
|
|
4453
4453
|
this.isOAuth = false;
|
|
4454
4454
|
}
|
|
4455
4455
|
}
|
|
@@ -4644,13 +4644,13 @@ class TokenManager {
|
|
|
4644
4644
|
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;
|
|
4645
4645
|
|
|
4646
4646
|
class AuthService {
|
|
4647
|
-
constructor(
|
|
4647
|
+
constructor(config, executionContext) {
|
|
4648
4648
|
const isCallback = AuthService.isInOAuthCallback();
|
|
4649
4649
|
const storedContext = isCallback ? AuthService.getStoredOAuthContext() : null;
|
|
4650
4650
|
if (!isCallback) {
|
|
4651
4651
|
AuthService._clearStoredOAuthContext();
|
|
4652
4652
|
}
|
|
4653
|
-
const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(
|
|
4653
|
+
const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(config, storedContext) : config;
|
|
4654
4654
|
this.config = effectiveConfig;
|
|
4655
4655
|
const isOAuth = hasOAuthConfig(effectiveConfig);
|
|
4656
4656
|
this.tokenManager = new TokenManager(executionContext, effectiveConfig, isOAuth);
|
|
@@ -4693,9 +4693,9 @@ class AuthService {
|
|
|
4693
4693
|
sessionStorage.removeItem(AUTH_STORAGE_KEYS.CODE_VERIFIER);
|
|
4694
4694
|
} catch {}
|
|
4695
4695
|
}
|
|
4696
|
-
static _mergeConfigWithContext(
|
|
4696
|
+
static _mergeConfigWithContext(config, context) {
|
|
4697
4697
|
return {
|
|
4698
|
-
...
|
|
4698
|
+
...config,
|
|
4699
4699
|
baseUrl: context.baseUrl,
|
|
4700
4700
|
orgName: context.orgName,
|
|
4701
4701
|
tenantName: context.tenantName,
|
|
@@ -4707,7 +4707,7 @@ class AuthService {
|
|
|
4707
4707
|
getTokenManager() {
|
|
4708
4708
|
return this.tokenManager;
|
|
4709
4709
|
}
|
|
4710
|
-
async authenticate(
|
|
4710
|
+
async authenticate(config) {
|
|
4711
4711
|
if (!isBrowser) {
|
|
4712
4712
|
return false;
|
|
4713
4713
|
}
|
|
@@ -4720,18 +4720,18 @@ class AuthService {
|
|
|
4720
4720
|
if (this.tokenManager.hasValidToken()) {
|
|
4721
4721
|
return true;
|
|
4722
4722
|
}
|
|
4723
|
-
if (!hasOAuthConfig(
|
|
4723
|
+
if (!hasOAuthConfig(config)) {
|
|
4724
4724
|
throw new Error("OAuth configuration incomplete: clientId, redirectUri, and scope are required for OAuth callback");
|
|
4725
4725
|
}
|
|
4726
|
-
const result = await this._authenticateWithOAuth(
|
|
4726
|
+
const result = await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
|
|
4727
4727
|
return result;
|
|
4728
4728
|
}
|
|
4729
4729
|
const loadedFromStorage = this.tokenManager.loadFromStorage();
|
|
4730
4730
|
if (loadedFromStorage && this.tokenManager.hasValidToken()) {
|
|
4731
4731
|
return true;
|
|
4732
4732
|
}
|
|
4733
|
-
if (hasOAuthConfig(
|
|
4734
|
-
return await this._authenticateWithOAuth(
|
|
4733
|
+
if (hasOAuthConfig(config)) {
|
|
4734
|
+
return await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
|
|
4735
4735
|
}
|
|
4736
4736
|
return false;
|
|
4737
4737
|
}
|
|
@@ -4804,9 +4804,9 @@ class AuthService {
|
|
|
4804
4804
|
}
|
|
4805
4805
|
generateCodeVerifier() {
|
|
4806
4806
|
if (isBrowser) {
|
|
4807
|
-
const
|
|
4808
|
-
crypto.getRandomValues(
|
|
4809
|
-
return this._base64URLEncode(
|
|
4807
|
+
const array = new Uint8Array(32);
|
|
4808
|
+
crypto.getRandomValues(array);
|
|
4809
|
+
return this._base64URLEncode(array);
|
|
4810
4810
|
} else {
|
|
4811
4811
|
try {
|
|
4812
4812
|
const crypto2 = __require("crypto");
|
|
@@ -4891,8 +4891,8 @@ class AuthService {
|
|
|
4891
4891
|
return token;
|
|
4892
4892
|
}
|
|
4893
4893
|
_base64URLEncode(buffer) {
|
|
4894
|
-
const
|
|
4895
|
-
return
|
|
4894
|
+
const base64 = btoa(String.fromCharCode(...buffer));
|
|
4895
|
+
return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
4896
4896
|
}
|
|
4897
4897
|
async _initiateOAuthFlow(clientId, redirectUri, scope) {
|
|
4898
4898
|
const codeVerifier = this.generateCodeVerifier();
|
|
@@ -4936,21 +4936,21 @@ class AuthService {
|
|
|
4936
4936
|
}
|
|
4937
4937
|
}
|
|
4938
4938
|
var UiPathMetaTags;
|
|
4939
|
-
(function(
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4939
|
+
(function(UiPathMetaTags) {
|
|
4940
|
+
UiPathMetaTags["CLIENT_ID"] = "uipath:client-id";
|
|
4941
|
+
UiPathMetaTags["SCOPE"] = "uipath:scope";
|
|
4942
|
+
UiPathMetaTags["ORG_NAME"] = "uipath:org-name";
|
|
4943
|
+
UiPathMetaTags["ORG_ID"] = "uipath:org-id";
|
|
4944
|
+
UiPathMetaTags["TENANT_NAME"] = "uipath:tenant-name";
|
|
4945
|
+
UiPathMetaTags["BASE_URL"] = "uipath:base-url";
|
|
4946
|
+
UiPathMetaTags["REDIRECT_URI"] = "uipath:redirect-uri";
|
|
4947
|
+
UiPathMetaTags["CDN_BASE"] = "uipath:cdn-base";
|
|
4948
|
+
UiPathMetaTags["APP_BASE"] = "uipath:app-base";
|
|
4949
|
+
UiPathMetaTags["FOLDER_KEY"] = "uipath:folder-key";
|
|
4950
4950
|
})(UiPathMetaTags || (UiPathMetaTags = {}));
|
|
4951
4951
|
var UiPathElementIds;
|
|
4952
|
-
(function(
|
|
4953
|
-
|
|
4952
|
+
(function(UiPathElementIds) {
|
|
4953
|
+
UiPathElementIds["RESOURCE_OVERRIDES"] = "uipath-overrides";
|
|
4954
4954
|
})(UiPathElementIds || (UiPathElementIds = {}));
|
|
4955
4955
|
function readEnv(name) {
|
|
4956
4956
|
const globals = globalThis;
|
|
@@ -4975,24 +4975,24 @@ var UiPathEnvVars = {
|
|
|
4975
4975
|
function loadFromEnvironment() {
|
|
4976
4976
|
if (isBrowser)
|
|
4977
4977
|
return null;
|
|
4978
|
-
const
|
|
4978
|
+
const config = {
|
|
4979
4979
|
baseUrl: readEnv(UiPathEnvVars.BASE_URL),
|
|
4980
4980
|
orgName: readEnv(UiPathEnvVars.ORG_NAME),
|
|
4981
4981
|
tenantName: readEnv(UiPathEnvVars.TENANT_NAME),
|
|
4982
4982
|
secret: readEnv(UiPathEnvVars.ACCESS_TOKEN)
|
|
4983
4983
|
};
|
|
4984
|
-
return Object.values(
|
|
4984
|
+
return Object.values(config).some(Boolean) ? config : null;
|
|
4985
4985
|
}
|
|
4986
4986
|
var BASE_FIELDS = ["baseUrl", "orgName", "tenantName"];
|
|
4987
4987
|
var OAUTH_FIELDS = ["clientId", "redirectUri", "scope"];
|
|
4988
4988
|
var AUTH_FIELDS = ["secret", ...OAUTH_FIELDS];
|
|
4989
4989
|
var HTTP_PROTOCOLS = new Set(["http:", "https:"]);
|
|
4990
|
-
function hasRequiredBaseFields(
|
|
4991
|
-
return Boolean(
|
|
4990
|
+
function hasRequiredBaseFields(config) {
|
|
4991
|
+
return Boolean(config.baseUrl && config.orgName && config.tenantName);
|
|
4992
4992
|
}
|
|
4993
|
-
function hasValidAuthConfig(
|
|
4994
|
-
const hasSecret = hasSecretConfig(
|
|
4995
|
-
const hasOAuth = hasOAuthConfig(
|
|
4993
|
+
function hasValidAuthConfig(config) {
|
|
4994
|
+
const hasSecret = hasSecretConfig(config);
|
|
4995
|
+
const hasOAuth = hasOAuthConfig(config);
|
|
4996
4996
|
return hasSecret !== hasOAuth;
|
|
4997
4997
|
}
|
|
4998
4998
|
function nonBlank(value) {
|
|
@@ -5018,11 +5018,11 @@ function joinNames(names) {
|
|
|
5018
5018
|
return names.join("");
|
|
5019
5019
|
return `${names.slice(0, -1).join(", ")} and ${names.slice(-1).join("")}`;
|
|
5020
5020
|
}
|
|
5021
|
-
function isCompleteConfig(
|
|
5022
|
-
return hasRequiredBaseFields(
|
|
5021
|
+
function isCompleteConfig(config) {
|
|
5022
|
+
return hasRequiredBaseFields(config) && hasValidAuthConfig(config);
|
|
5023
5023
|
}
|
|
5024
|
-
function compactConfig(
|
|
5025
|
-
return Object.fromEntries(Object.entries(
|
|
5024
|
+
function compactConfig(config) {
|
|
5025
|
+
return Object.fromEntries(Object.entries(config).filter(([, value]) => value !== undefined));
|
|
5026
5026
|
}
|
|
5027
5027
|
function normalizeBaseUrl(url) {
|
|
5028
5028
|
return url.endsWith("/") ? url.slice(0, -1) : url;
|
|
@@ -5065,31 +5065,31 @@ function missingConfigMessage(found, context) {
|
|
|
5065
5065
|
return `UiPath SDK configuration not found. ${guidance}`;
|
|
5066
5066
|
return `UiPath SDK configuration is incomplete: ${describeGaps(found)}. ${guidance}`;
|
|
5067
5067
|
}
|
|
5068
|
-
function missingContextMessage(
|
|
5068
|
+
function missingContextMessage(config, context) {
|
|
5069
5069
|
const missing = [];
|
|
5070
|
-
if (!hasRequiredBaseFields(
|
|
5070
|
+
if (!hasRequiredBaseFields(config)) {
|
|
5071
5071
|
if (!context.platform) {
|
|
5072
5072
|
const variables = [];
|
|
5073
|
-
if (!
|
|
5073
|
+
if (!config.baseUrl)
|
|
5074
5074
|
variables.push(UiPathEnvVars.BASE_URL);
|
|
5075
|
-
if (!
|
|
5075
|
+
if (!config.orgName)
|
|
5076
5076
|
variables.push(UiPathEnvVars.ORG_NAME);
|
|
5077
|
-
if (!
|
|
5077
|
+
if (!config.tenantName)
|
|
5078
5078
|
variables.push(UiPathEnvVars.TENANT_NAME);
|
|
5079
5079
|
missing.push(`ctx.platform is null (or set ${joinNames(variables)})`);
|
|
5080
5080
|
} else {
|
|
5081
|
-
if (!
|
|
5081
|
+
if (!config.baseUrl) {
|
|
5082
5082
|
const baseUrl = nonBlank(context.platform.baseUrl);
|
|
5083
5083
|
const problem = baseUrl === undefined ? "is empty" : `"${baseUrl}" is not an http(s) URL`;
|
|
5084
5084
|
missing.push(`ctx.platform.baseUrl ${problem} (or set ${UiPathEnvVars.BASE_URL})`);
|
|
5085
5085
|
}
|
|
5086
|
-
if (!
|
|
5086
|
+
if (!config.orgName)
|
|
5087
5087
|
missing.push(`ctx.platform.orgId is empty (or set ${UiPathEnvVars.ORG_NAME})`);
|
|
5088
|
-
if (!
|
|
5088
|
+
if (!config.tenantName)
|
|
5089
5089
|
missing.push(`ctx.platform.tenantId is empty (or set ${UiPathEnvVars.TENANT_NAME})`);
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
5092
|
-
if (!hasSecretConfig(
|
|
5092
|
+
if (!hasSecretConfig(config) && !hasOAuthConfig(config)) {
|
|
5093
5093
|
missing.push(`ctx.robot.accessToken is null (or set ${UiPathEnvVars.ACCESS_TOKEN})`);
|
|
5094
5094
|
}
|
|
5095
5095
|
if (missing.length === 0) {
|
|
@@ -5197,10 +5197,10 @@ function parseRetryAfter(value, now = Date.now()) {
|
|
|
5197
5197
|
const seconds = Number(trimmed);
|
|
5198
5198
|
if (Number.isFinite(seconds))
|
|
5199
5199
|
return Math.max(0, seconds * 1000);
|
|
5200
|
-
const
|
|
5201
|
-
if (Number.isNaN(
|
|
5200
|
+
const date = Date.parse(trimmed);
|
|
5201
|
+
if (Number.isNaN(date))
|
|
5202
5202
|
return;
|
|
5203
|
-
return Math.max(0,
|
|
5203
|
+
return Math.max(0, date - now);
|
|
5204
5204
|
}
|
|
5205
5205
|
function wait(durationMs) {
|
|
5206
5206
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, durationMs)));
|
|
@@ -5307,8 +5307,8 @@ function readIdentityError(url) {
|
|
|
5307
5307
|
const errorId = url.searchParams.get(IDENTITY_ERROR_ID_PARAM);
|
|
5308
5308
|
if (errorId) {
|
|
5309
5309
|
try {
|
|
5310
|
-
const
|
|
5311
|
-
const json = decodeBase64(
|
|
5310
|
+
const base64 = errorId.replace(DASH_REGEX, "+").replace(UNDERSCORE_REGEX, "/");
|
|
5311
|
+
const json = decodeBase64(base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "="));
|
|
5312
5312
|
const data = JSON.parse(json).Data;
|
|
5313
5313
|
const error = typeof data?.Error === "string" ? data.Error : undefined;
|
|
5314
5314
|
const description = typeof data?.ErrorDescription === "string" ? data.ErrorDescription : undefined;
|
|
@@ -5397,9 +5397,9 @@ async function lookupOrganizationIdForPat(baseUrl, orgName) {
|
|
|
5397
5397
|
}
|
|
5398
5398
|
|
|
5399
5399
|
class OrganizationIdResolver {
|
|
5400
|
-
constructor(
|
|
5400
|
+
constructor(config, tokenManager) {
|
|
5401
5401
|
_OrganizationIdResolver_instances.add(this);
|
|
5402
|
-
this.config =
|
|
5402
|
+
this.config = config;
|
|
5403
5403
|
this.tokenManager = tokenManager;
|
|
5404
5404
|
_OrganizationIdResolver_organizationId.set(this, undefined);
|
|
5405
5405
|
}
|
|
@@ -5413,7 +5413,7 @@ class OrganizationIdResolver {
|
|
|
5413
5413
|
return __classPrivateFieldGet(this, _OrganizationIdResolver_organizationId, "f");
|
|
5414
5414
|
}
|
|
5415
5415
|
}
|
|
5416
|
-
_OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function
|
|
5416
|
+
_OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function _OrganizationIdResolver_resolve() {
|
|
5417
5417
|
const { organizationId, orgName, baseUrl } = this.config;
|
|
5418
5418
|
if (organizationId) {
|
|
5419
5419
|
return organizationId;
|
|
@@ -5478,7 +5478,7 @@ function getMetaTagContent(name) {
|
|
|
5478
5478
|
function loadFromMetaTags() {
|
|
5479
5479
|
if (!isBrowser)
|
|
5480
5480
|
return null;
|
|
5481
|
-
const
|
|
5481
|
+
const config = {
|
|
5482
5482
|
clientId: getMetaTagContent(UiPathMetaTags.CLIENT_ID),
|
|
5483
5483
|
scope: getMetaTagContent(UiPathMetaTags.SCOPE),
|
|
5484
5484
|
orgName: getMetaTagContent(UiPathMetaTags.ORG_NAME),
|
|
@@ -5488,8 +5488,8 @@ function loadFromMetaTags() {
|
|
|
5488
5488
|
redirectUri: getMetaTagContent(UiPathMetaTags.REDIRECT_URI),
|
|
5489
5489
|
folderKey: getMetaTagContent(UiPathMetaTags.FOLDER_KEY)
|
|
5490
5490
|
};
|
|
5491
|
-
const hasAnyValue = Object.values(
|
|
5492
|
-
return hasAnyValue ?
|
|
5491
|
+
const hasAnyValue = Object.values(config).some(Boolean);
|
|
5492
|
+
return hasAnyValue ? config : null;
|
|
5493
5493
|
}
|
|
5494
5494
|
function isFunctionContext(value) {
|
|
5495
5495
|
return "platform" in value || "robot" in value;
|
|
@@ -5497,13 +5497,13 @@ function isFunctionContext(value) {
|
|
|
5497
5497
|
function configFromFunctionContext(context) {
|
|
5498
5498
|
const { platform, robot } = context;
|
|
5499
5499
|
const baseUrl = nonBlank(platform?.baseUrl);
|
|
5500
|
-
const
|
|
5500
|
+
const config = {
|
|
5501
5501
|
baseUrl: baseUrl === undefined ? undefined : toHttpOrigin(baseUrl) ?? undefined,
|
|
5502
5502
|
orgName: nonBlank(platform?.orgId),
|
|
5503
5503
|
tenantName: nonBlank(platform?.tenantId),
|
|
5504
5504
|
secret: nonBlank(robot?.accessToken)
|
|
5505
5505
|
};
|
|
5506
|
-
return Object.values(
|
|
5506
|
+
return Object.values(config).some(Boolean) ? config : null;
|
|
5507
5507
|
}
|
|
5508
5508
|
function folderKeyFromFunctionContext(context) {
|
|
5509
5509
|
return nonBlank(context.platform?.folderKey);
|
|
@@ -5523,7 +5523,7 @@ var _UiPath_initializeWithConfig;
|
|
|
5523
5523
|
var _UiPath_mergeConfigSources;
|
|
5524
5524
|
var _UiPath_loadConfig;
|
|
5525
5525
|
var UiPath$1 = class UiPath {
|
|
5526
|
-
constructor(
|
|
5526
|
+
constructor(config) {
|
|
5527
5527
|
_UiPath_instances.add(this);
|
|
5528
5528
|
_UiPath_config.set(this, undefined);
|
|
5529
5529
|
_UiPath_authService.set(this, undefined);
|
|
@@ -5535,12 +5535,12 @@ var UiPath$1 = class UiPath {
|
|
|
5535
5535
|
_UiPath_metaOrgId.set(this, undefined);
|
|
5536
5536
|
_UiPath_metaTenantId.set(this, undefined);
|
|
5537
5537
|
let resolved;
|
|
5538
|
-
if (
|
|
5539
|
-
__classPrivateFieldSet(this, _UiPath_functionContext,
|
|
5540
|
-
__classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(
|
|
5541
|
-
resolved = configFromFunctionContext(
|
|
5538
|
+
if (config && isFunctionContext(config)) {
|
|
5539
|
+
__classPrivateFieldSet(this, _UiPath_functionContext, config, "f");
|
|
5540
|
+
__classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(config), "f");
|
|
5541
|
+
resolved = configFromFunctionContext(config) ?? undefined;
|
|
5542
5542
|
} else {
|
|
5543
|
-
resolved =
|
|
5543
|
+
resolved = config;
|
|
5544
5544
|
}
|
|
5545
5545
|
const configFromMetaTags = loadFromMetaTags();
|
|
5546
5546
|
__classPrivateFieldSet(this, _UiPath_metaFolderKey, configFromMetaTags?.folderKey, "f");
|
|
@@ -5629,19 +5629,19 @@ var UiPath$1 = class UiPath {
|
|
|
5629
5629
|
__classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
|
|
5630
5630
|
}
|
|
5631
5631
|
};
|
|
5632
|
-
_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
|
|
5633
|
-
const hasSecretAuth = hasSecretConfig(
|
|
5634
|
-
const hasOAuthAuth = hasOAuthConfig(
|
|
5632
|
+
_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) {
|
|
5633
|
+
const hasSecretAuth = hasSecretConfig(config);
|
|
5634
|
+
const hasOAuthAuth = hasOAuthConfig(config);
|
|
5635
5635
|
const internalConfig = new UiPathConfig({
|
|
5636
|
-
baseUrl: normalizeBaseUrl(
|
|
5637
|
-
orgName:
|
|
5638
|
-
tenantName:
|
|
5639
|
-
organizationId:
|
|
5640
|
-
secret: hasSecretAuth ?
|
|
5641
|
-
clientId: hasOAuthAuth ?
|
|
5642
|
-
redirectUri: hasOAuthAuth ?
|
|
5643
|
-
scope: hasOAuthAuth ?
|
|
5644
|
-
enforceSso:
|
|
5636
|
+
baseUrl: normalizeBaseUrl(config.baseUrl),
|
|
5637
|
+
orgName: config.orgName,
|
|
5638
|
+
tenantName: config.tenantName,
|
|
5639
|
+
organizationId: config.organizationId,
|
|
5640
|
+
secret: hasSecretAuth ? config.secret : undefined,
|
|
5641
|
+
clientId: hasOAuthAuth ? config.clientId : undefined,
|
|
5642
|
+
redirectUri: hasOAuthAuth ? config.redirectUri : undefined,
|
|
5643
|
+
scope: hasOAuthAuth ? config.scope : undefined,
|
|
5644
|
+
enforceSso: config.enforceSso
|
|
5645
5645
|
});
|
|
5646
5646
|
const executionContext = new ExecutionContext;
|
|
5647
5647
|
__classPrivateFieldSet(this, _UiPath_authService, new AuthService(internalConfig, executionContext), "f");
|
|
@@ -5659,27 +5659,27 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
|
|
|
5659
5659
|
tenantName: internalConfig.tenantName
|
|
5660
5660
|
};
|
|
5661
5661
|
telemetryClient.initialize({
|
|
5662
|
-
baseUrl:
|
|
5662
|
+
baseUrl: config.baseUrl,
|
|
5663
5663
|
orgId: __classPrivateFieldGet(this, _UiPath_metaOrgId, "f"),
|
|
5664
5664
|
tenantId: __classPrivateFieldGet(this, _UiPath_metaTenantId, "f"),
|
|
5665
|
-
orgName:
|
|
5666
|
-
tenantName:
|
|
5667
|
-
clientId: hasOAuthAuth ?
|
|
5668
|
-
redirectUri: hasOAuthAuth ?
|
|
5665
|
+
orgName: config.orgName,
|
|
5666
|
+
tenantName: config.tenantName,
|
|
5667
|
+
clientId: hasOAuthAuth ? config.clientId : undefined,
|
|
5668
|
+
redirectUri: hasOAuthAuth ? config.redirectUri : undefined
|
|
5669
5669
|
});
|
|
5670
5670
|
trackEvent("Sdk.Auth");
|
|
5671
5671
|
if (hasSecretAuth || isInActionCenter || hostEmbeddingOrigin) {
|
|
5672
|
-
__classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(
|
|
5672
|
+
__classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(config.secret ?? "");
|
|
5673
5673
|
__classPrivateFieldSet(this, _UiPath_initialized, true, "f");
|
|
5674
5674
|
}
|
|
5675
|
-
}, _UiPath_mergeConfigSources = function
|
|
5675
|
+
}, _UiPath_mergeConfigSources = function _UiPath_mergeConfigSources(metaConfig, config) {
|
|
5676
5676
|
const environment = loadFromEnvironment();
|
|
5677
|
-
const layers = [environment, metaConfig,
|
|
5677
|
+
const layers = [environment, metaConfig, config].filter((layer) => Boolean(layer)).map((layer) => compactConfig(layer));
|
|
5678
5678
|
if (layers.length === 0)
|
|
5679
5679
|
return;
|
|
5680
5680
|
const merged = layers.reduce((acc, layer) => ({ ...acc, ...layer }), {});
|
|
5681
|
-
const namesSecret =
|
|
5682
|
-
const namesOAuth = Boolean(
|
|
5681
|
+
const namesSecret = config ? hasSecretConfig(config) : false;
|
|
5682
|
+
const namesOAuth = Boolean(config?.clientId || config?.redirectUri || config?.scope);
|
|
5683
5683
|
if (namesSecret !== namesOAuth) {
|
|
5684
5684
|
if (namesSecret) {
|
|
5685
5685
|
delete merged.clientId;
|
|
@@ -5692,10 +5692,10 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
|
|
|
5692
5692
|
const mergedHasSecret = hasSecretConfig(merged);
|
|
5693
5693
|
const mergedHasOAuth = hasOAuthConfig(merged);
|
|
5694
5694
|
if (mergedHasSecret && mergedHasOAuth) {
|
|
5695
|
-
throw new Error(conflictingAuthMessage({ config
|
|
5695
|
+
throw new Error(conflictingAuthMessage({ config, metaConfig, environment }));
|
|
5696
5696
|
}
|
|
5697
5697
|
return merged;
|
|
5698
|
-
}, _UiPath_loadConfig = function
|
|
5698
|
+
}, _UiPath_loadConfig = function _UiPath_loadConfig() {
|
|
5699
5699
|
const metaConfig = loadFromMetaTags();
|
|
5700
5700
|
__classPrivateFieldSet(this, _UiPath_metaFolderKey, metaConfig?.folderKey, "f");
|
|
5701
5701
|
__classPrivateFieldSet(this, _UiPath_metaOrgId, metaConfig?.organizationId ?? metaConfig?.orgName, "f");
|
|
@@ -5894,8 +5894,8 @@ function toSearchParams(params) {
|
|
|
5894
5894
|
return searchParams;
|
|
5895
5895
|
}
|
|
5896
5896
|
class ApiClient {
|
|
5897
|
-
constructor(
|
|
5898
|
-
this.config =
|
|
5897
|
+
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
5898
|
+
this.config = config;
|
|
5899
5899
|
this.executionContext = executionContext;
|
|
5900
5900
|
this.clientConfig = clientConfig;
|
|
5901
5901
|
this.tokenManager = tokenManager;
|
|
@@ -5949,8 +5949,8 @@ class ApiClient {
|
|
|
5949
5949
|
}
|
|
5950
5950
|
const acceptHeader = headers["Accept"] || headers["accept"];
|
|
5951
5951
|
if (acceptHeader === CONTENT_TYPES.XML) {
|
|
5952
|
-
const
|
|
5953
|
-
return
|
|
5952
|
+
const text = await response.text();
|
|
5953
|
+
return text;
|
|
5954
5954
|
}
|
|
5955
5955
|
const text = await response.text();
|
|
5956
5956
|
if (!text) {
|
|
@@ -5991,9 +5991,9 @@ class ApiClient {
|
|
|
5991
5991
|
}
|
|
5992
5992
|
}
|
|
5993
5993
|
var PaginationType;
|
|
5994
|
-
(function(
|
|
5995
|
-
|
|
5996
|
-
|
|
5994
|
+
(function(PaginationType) {
|
|
5995
|
+
PaginationType["OFFSET"] = "offset";
|
|
5996
|
+
PaginationType["TOKEN"] = "token";
|
|
5997
5997
|
})(PaginationType || (PaginationType = {}));
|
|
5998
5998
|
function resolveNestedField(data, fieldPath) {
|
|
5999
5999
|
if (!data) {
|
|
@@ -6155,8 +6155,8 @@ var PROCESS_INSTANCE_TOKEN_PARAMS = {
|
|
|
6155
6155
|
TOKEN_PARAM: "nextPage"
|
|
6156
6156
|
};
|
|
6157
6157
|
function toISOUtc(value) {
|
|
6158
|
-
const
|
|
6159
|
-
return isNaN(
|
|
6158
|
+
const date = new Date(value + " UTC");
|
|
6159
|
+
return isNaN(date.getTime()) ? value : date.toISOString();
|
|
6160
6160
|
}
|
|
6161
6161
|
function transformData(data, fieldMapping) {
|
|
6162
6162
|
if (data == null) {
|
|
@@ -6427,51 +6427,51 @@ class PaginationHelpers {
|
|
|
6427
6427
|
totalCount
|
|
6428
6428
|
};
|
|
6429
6429
|
}
|
|
6430
|
-
static async getAll(
|
|
6430
|
+
static async getAll(config, options) {
|
|
6431
6431
|
const optionsWithDefaults = options || {};
|
|
6432
6432
|
const { folderId, pageSize, cursor, jumpToPage, ...restOptions } = optionsWithDefaults;
|
|
6433
6433
|
const isPaginationRequested = PaginationHelpers.hasPaginationParameters(options || {});
|
|
6434
6434
|
let processedOptions = restOptions;
|
|
6435
|
-
if (
|
|
6436
|
-
processedOptions =
|
|
6435
|
+
if (config.processParametersFn) {
|
|
6436
|
+
processedOptions = config.processParametersFn(restOptions, folderId);
|
|
6437
6437
|
}
|
|
6438
|
-
const excludeKeys =
|
|
6438
|
+
const excludeKeys = config.excludeFromPrefix || [];
|
|
6439
6439
|
const keysToPrefix = Object.keys(processedOptions).filter((k) => !excludeKeys.includes(k));
|
|
6440
6440
|
const prefixedOptions = addPrefixToKeys(processedOptions, ODATA_PREFIX, keysToPrefix);
|
|
6441
6441
|
const paginationOptions = {
|
|
6442
6442
|
paginationType: PaginationType.OFFSET,
|
|
6443
6443
|
itemsField: DEFAULT_ITEMS_FIELD,
|
|
6444
6444
|
totalCountField: DEFAULT_TOTAL_COUNT_FIELD,
|
|
6445
|
-
...
|
|
6445
|
+
...config.pagination
|
|
6446
6446
|
};
|
|
6447
6447
|
if (isPaginationRequested) {
|
|
6448
6448
|
return PaginationHelpers.getAllPaginated({
|
|
6449
|
-
serviceAccess:
|
|
6450
|
-
getEndpoint:
|
|
6449
|
+
serviceAccess: config.serviceAccess,
|
|
6450
|
+
getEndpoint: config.getEndpoint,
|
|
6451
6451
|
folderId,
|
|
6452
|
-
headers:
|
|
6452
|
+
headers: config.headers,
|
|
6453
6453
|
paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
|
|
6454
6454
|
additionalParams: prefixedOptions,
|
|
6455
|
-
queryParams:
|
|
6456
|
-
transformFn:
|
|
6457
|
-
method:
|
|
6455
|
+
queryParams: config.queryParams,
|
|
6456
|
+
transformFn: config.transformFn,
|
|
6457
|
+
method: config.method,
|
|
6458
6458
|
options: {
|
|
6459
6459
|
...paginationOptions,
|
|
6460
|
-
paginationParams:
|
|
6460
|
+
paginationParams: config.pagination?.paginationParams
|
|
6461
6461
|
}
|
|
6462
6462
|
});
|
|
6463
6463
|
}
|
|
6464
|
-
const byFolderEndpoint =
|
|
6464
|
+
const byFolderEndpoint = config.getByFolderEndpoint || config.getEndpoint(folderId);
|
|
6465
6465
|
return PaginationHelpers.getAllNonPaginated({
|
|
6466
|
-
serviceAccess:
|
|
6467
|
-
getAllEndpoint:
|
|
6466
|
+
serviceAccess: config.serviceAccess,
|
|
6467
|
+
getAllEndpoint: config.getEndpoint(),
|
|
6468
6468
|
getByFolderEndpoint: byFolderEndpoint,
|
|
6469
6469
|
folderId,
|
|
6470
|
-
headers:
|
|
6470
|
+
headers: config.headers,
|
|
6471
6471
|
additionalParams: prefixedOptions,
|
|
6472
|
-
queryParams:
|
|
6473
|
-
transformFn:
|
|
6474
|
-
method:
|
|
6472
|
+
queryParams: config.queryParams,
|
|
6473
|
+
transformFn: config.transformFn,
|
|
6474
|
+
method: config.method,
|
|
6475
6475
|
options: {
|
|
6476
6476
|
itemsField: paginationOptions.itemsField,
|
|
6477
6477
|
totalCountField: paginationOptions.totalCountField
|
|
@@ -6484,8 +6484,8 @@ var _BaseService_apiClient;
|
|
|
6484
6484
|
class BaseService {
|
|
6485
6485
|
constructor(instance, headers) {
|
|
6486
6486
|
_BaseService_apiClient.set(this, undefined);
|
|
6487
|
-
const { config
|
|
6488
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(
|
|
6487
|
+
const { config, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry.get(instance);
|
|
6488
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
6489
6489
|
this.config = { folderKey, metaFolderKey };
|
|
6490
6490
|
}
|
|
6491
6491
|
async getValidAuthToken() {
|
|
@@ -6750,25 +6750,25 @@ function createEntityWithMethods(entityData, service) {
|
|
|
6750
6750
|
return Object.assign({}, entityData, methods);
|
|
6751
6751
|
}
|
|
6752
6752
|
var EntityFieldDataType;
|
|
6753
|
-
(function(
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6753
|
+
(function(EntityFieldDataType) {
|
|
6754
|
+
EntityFieldDataType["UUID"] = "UUID";
|
|
6755
|
+
EntityFieldDataType["STRING"] = "STRING";
|
|
6756
|
+
EntityFieldDataType["INTEGER"] = "INTEGER";
|
|
6757
|
+
EntityFieldDataType["DATETIME"] = "DATETIME";
|
|
6758
|
+
EntityFieldDataType["DATETIME_WITH_TZ"] = "DATETIME_WITH_TZ";
|
|
6759
|
+
EntityFieldDataType["DECIMAL"] = "DECIMAL";
|
|
6760
|
+
EntityFieldDataType["FLOAT"] = "FLOAT";
|
|
6761
|
+
EntityFieldDataType["DOUBLE"] = "DOUBLE";
|
|
6762
|
+
EntityFieldDataType["DATE"] = "DATE";
|
|
6763
|
+
EntityFieldDataType["BOOLEAN"] = "BOOLEAN";
|
|
6764
|
+
EntityFieldDataType["BIG_INTEGER"] = "BIG_INTEGER";
|
|
6765
|
+
EntityFieldDataType["MULTILINE_TEXT"] = "MULTILINE_TEXT";
|
|
6766
|
+
EntityFieldDataType["MULTILINE_MAX"] = "MULTILINE_MAX";
|
|
6767
|
+
EntityFieldDataType["FILE"] = "FILE";
|
|
6768
|
+
EntityFieldDataType["CHOICE_SET_SINGLE"] = "CHOICE_SET_SINGLE";
|
|
6769
|
+
EntityFieldDataType["CHOICE_SET_MULTIPLE"] = "CHOICE_SET_MULTIPLE";
|
|
6770
|
+
EntityFieldDataType["AUTO_NUMBER"] = "AUTO_NUMBER";
|
|
6771
|
+
EntityFieldDataType["RELATIONSHIP"] = "RELATIONSHIP";
|
|
6772
6772
|
})(EntityFieldDataType || (EntityFieldDataType = {}));
|
|
6773
6773
|
var LogicalOperator$1;
|
|
6774
6774
|
(function(LogicalOperator) {
|
|
@@ -6776,105 +6776,105 @@ var LogicalOperator$1;
|
|
|
6776
6776
|
LogicalOperator[LogicalOperator["Or"] = 1] = "Or";
|
|
6777
6777
|
})(LogicalOperator$1 || (LogicalOperator$1 = {}));
|
|
6778
6778
|
var QueryFilterOperator;
|
|
6779
|
-
(function(
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6779
|
+
(function(QueryFilterOperator) {
|
|
6780
|
+
QueryFilterOperator["Equals"] = "=";
|
|
6781
|
+
QueryFilterOperator["NotEquals"] = "!=";
|
|
6782
|
+
QueryFilterOperator["GreaterThan"] = ">";
|
|
6783
|
+
QueryFilterOperator["LessThan"] = "<";
|
|
6784
|
+
QueryFilterOperator["GreaterThanOrEqual"] = ">=";
|
|
6785
|
+
QueryFilterOperator["LessThanOrEqual"] = "<=";
|
|
6786
|
+
QueryFilterOperator["Contains"] = "contains";
|
|
6787
|
+
QueryFilterOperator["NotContains"] = "not contains";
|
|
6788
|
+
QueryFilterOperator["StartsWith"] = "startswith";
|
|
6789
|
+
QueryFilterOperator["EndsWith"] = "endswith";
|
|
6790
|
+
QueryFilterOperator["In"] = "in";
|
|
6791
|
+
QueryFilterOperator["NotIn"] = "not in";
|
|
6792
6792
|
})(QueryFilterOperator || (QueryFilterOperator = {}));
|
|
6793
6793
|
var EntityAggregateFunction;
|
|
6794
|
-
(function(
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6794
|
+
(function(EntityAggregateFunction) {
|
|
6795
|
+
EntityAggregateFunction["Count"] = "COUNT";
|
|
6796
|
+
EntityAggregateFunction["Sum"] = "SUM";
|
|
6797
|
+
EntityAggregateFunction["Avg"] = "AVG";
|
|
6798
|
+
EntityAggregateFunction["Min"] = "MIN";
|
|
6799
|
+
EntityAggregateFunction["Max"] = "MAX";
|
|
6800
6800
|
})(EntityAggregateFunction || (EntityAggregateFunction = {}));
|
|
6801
6801
|
var EntityHavingOperator;
|
|
6802
|
-
(function(
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6802
|
+
(function(EntityHavingOperator) {
|
|
6803
|
+
EntityHavingOperator["Equals"] = "=";
|
|
6804
|
+
EntityHavingOperator["NotEquals"] = "!=";
|
|
6805
|
+
EntityHavingOperator["GreaterThan"] = ">";
|
|
6806
|
+
EntityHavingOperator["GreaterThanOrEqual"] = ">=";
|
|
6807
|
+
EntityHavingOperator["LessThan"] = "<";
|
|
6808
|
+
EntityHavingOperator["LessThanOrEqual"] = "<=";
|
|
6809
6809
|
})(EntityHavingOperator || (EntityHavingOperator = {}));
|
|
6810
6810
|
var EntityMultiEntityWriteOperation;
|
|
6811
|
-
(function(
|
|
6812
|
-
|
|
6813
|
-
|
|
6811
|
+
(function(EntityMultiEntityWriteOperation) {
|
|
6812
|
+
EntityMultiEntityWriteOperation["Insert"] = "Insert";
|
|
6813
|
+
EntityMultiEntityWriteOperation["Update"] = "Update";
|
|
6814
6814
|
})(EntityMultiEntityWriteOperation || (EntityMultiEntityWriteOperation = {}));
|
|
6815
6815
|
var EntityType;
|
|
6816
|
-
(function(
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6816
|
+
(function(EntityType) {
|
|
6817
|
+
EntityType["Entity"] = "Entity";
|
|
6818
|
+
EntityType["ChoiceSet"] = "ChoiceSet";
|
|
6819
|
+
EntityType["InternalEntity"] = "InternalEntity";
|
|
6820
|
+
EntityType["SystemEntity"] = "SystemEntity";
|
|
6821
6821
|
})(EntityType || (EntityType = {}));
|
|
6822
6822
|
var EntityClass;
|
|
6823
|
-
(function(
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6823
|
+
(function(EntityClass) {
|
|
6824
|
+
EntityClass["Native"] = "Native";
|
|
6825
|
+
EntityClass["Federated"] = "Federated";
|
|
6826
|
+
EntityClass["Case"] = "Case";
|
|
6827
6827
|
})(EntityClass || (EntityClass = {}));
|
|
6828
6828
|
var ReferenceType;
|
|
6829
|
-
(function(
|
|
6830
|
-
|
|
6829
|
+
(function(ReferenceType) {
|
|
6830
|
+
ReferenceType["ManyToOne"] = "ManyToOne";
|
|
6831
6831
|
})(ReferenceType || (ReferenceType = {}));
|
|
6832
6832
|
var FieldDisplayType;
|
|
6833
|
-
(function(
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6833
|
+
(function(FieldDisplayType) {
|
|
6834
|
+
FieldDisplayType["Basic"] = "Basic";
|
|
6835
|
+
FieldDisplayType["Relationship"] = "Relationship";
|
|
6836
|
+
FieldDisplayType["File"] = "File";
|
|
6837
|
+
FieldDisplayType["ChoiceSetSingle"] = "ChoiceSetSingle";
|
|
6838
|
+
FieldDisplayType["ChoiceSetMultiple"] = "ChoiceSetMultiple";
|
|
6839
|
+
FieldDisplayType["AutoNumber"] = "AutoNumber";
|
|
6840
6840
|
})(FieldDisplayType || (FieldDisplayType = {}));
|
|
6841
6841
|
var DataDirectionType;
|
|
6842
|
-
(function(
|
|
6843
|
-
|
|
6844
|
-
|
|
6842
|
+
(function(DataDirectionType) {
|
|
6843
|
+
DataDirectionType["ReadOnly"] = "ReadOnly";
|
|
6844
|
+
DataDirectionType["ReadAndWrite"] = "ReadAndWrite";
|
|
6845
6845
|
})(DataDirectionType || (DataDirectionType = {}));
|
|
6846
6846
|
var JoinType;
|
|
6847
|
-
(function(
|
|
6848
|
-
|
|
6849
|
-
|
|
6847
|
+
(function(JoinType) {
|
|
6848
|
+
JoinType["LeftJoin"] = "LeftJoin";
|
|
6849
|
+
JoinType["InnerJoin"] = "InnerJoin";
|
|
6850
6850
|
})(JoinType || (JoinType = {}));
|
|
6851
6851
|
var EntityClassId;
|
|
6852
|
-
(function(
|
|
6853
|
-
|
|
6854
|
-
|
|
6852
|
+
(function(EntityClassId) {
|
|
6853
|
+
EntityClassId[EntityClassId["Native"] = 9] = "Native";
|
|
6854
|
+
EntityClassId[EntityClassId["Federated"] = 10] = "Federated";
|
|
6855
6855
|
})(EntityClassId || (EntityClassId = {}));
|
|
6856
6856
|
var EntityFieldConstraint;
|
|
6857
|
-
(function(
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6857
|
+
(function(EntityFieldConstraint) {
|
|
6858
|
+
EntityFieldConstraint["LengthLimit"] = "lengthLimit";
|
|
6859
|
+
EntityFieldConstraint["MaxValue"] = "maxValue";
|
|
6860
|
+
EntityFieldConstraint["MinValue"] = "minValue";
|
|
6861
|
+
EntityFieldConstraint["DecimalPrecision"] = "decimalPrecision";
|
|
6862
6862
|
})(EntityFieldConstraint || (EntityFieldConstraint = {}));
|
|
6863
6863
|
var SqlFieldType;
|
|
6864
|
-
(function(
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6864
|
+
(function(SqlFieldType) {
|
|
6865
|
+
SqlFieldType["UNIQUEIDENTIFIER"] = "UNIQUEIDENTIFIER";
|
|
6866
|
+
SqlFieldType["NVARCHAR"] = "NVARCHAR";
|
|
6867
|
+
SqlFieldType["INT"] = "INT";
|
|
6868
|
+
SqlFieldType["DATETIME2"] = "DATETIME2";
|
|
6869
|
+
SqlFieldType["DATETIMEOFFSET"] = "DATETIMEOFFSET";
|
|
6870
|
+
SqlFieldType["FLOAT"] = "FLOAT";
|
|
6871
|
+
SqlFieldType["REAL"] = "REAL";
|
|
6872
|
+
SqlFieldType["BIGINT"] = "BIGINT";
|
|
6873
|
+
SqlFieldType["DATE"] = "DATE";
|
|
6874
|
+
SqlFieldType["BIT"] = "BIT";
|
|
6875
|
+
SqlFieldType["DECIMAL"] = "DECIMAL";
|
|
6876
|
+
SqlFieldType["MULTILINE"] = "MULTILINE";
|
|
6877
|
+
SqlFieldType["MULTILINE_MAX"] = "MULTILINE_MAX";
|
|
6878
6878
|
})(SqlFieldType || (SqlFieldType = {}));
|
|
6879
6879
|
var ENTITY_TYPE_IDS = {
|
|
6880
6880
|
[EntityType.ChoiceSet]: 1
|
|
@@ -7033,13 +7033,13 @@ function readOverrides() {
|
|
|
7033
7033
|
}
|
|
7034
7034
|
}
|
|
7035
7035
|
function resolveOverride(resourceType, name, folderPath) {
|
|
7036
|
-
const
|
|
7037
|
-
if (!
|
|
7036
|
+
const table = readOverrides();
|
|
7037
|
+
if (!table)
|
|
7038
7038
|
return;
|
|
7039
7039
|
const bindingType = resourceType.toLowerCase();
|
|
7040
7040
|
const scopedKey = folderPath ? `${bindingType}.${name}.${folderPath}` : undefined;
|
|
7041
7041
|
const unscopedKey = `${bindingType}.${name}`;
|
|
7042
|
-
const entry = (scopedKey &&
|
|
7042
|
+
const entry = (scopedKey && table[scopedKey]) ?? table[unscopedKey];
|
|
7043
7043
|
if (!entry)
|
|
7044
7044
|
return;
|
|
7045
7045
|
return {
|
|
@@ -8036,9 +8036,9 @@ __decorate([
|
|
|
8036
8036
|
track("Choicesets.DeleteValuesById")
|
|
8037
8037
|
], ChoiceSetService.prototype, "deleteValuesById", null);
|
|
8038
8038
|
var DataFabricRoleType;
|
|
8039
|
-
(function(
|
|
8040
|
-
|
|
8041
|
-
|
|
8039
|
+
(function(DataFabricRoleType) {
|
|
8040
|
+
DataFabricRoleType["System"] = "System";
|
|
8041
|
+
DataFabricRoleType["UserDefined"] = "UserDefined";
|
|
8042
8042
|
})(DataFabricRoleType || (DataFabricRoleType = {}));
|
|
8043
8043
|
function isRecord$1(value) {
|
|
8044
8044
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -8075,16 +8075,16 @@ __decorate([
|
|
|
8075
8075
|
track("DataFabricRoles.GetAll")
|
|
8076
8076
|
], DataFabricRoleService.prototype, "getAll", null);
|
|
8077
8077
|
var DataFabricDirectoryEntityType;
|
|
8078
|
-
(function(
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8078
|
+
(function(DataFabricDirectoryEntityType) {
|
|
8079
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["User"] = 0] = "User";
|
|
8080
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Group"] = 1] = "Group";
|
|
8081
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Application"] = 2] = "Application";
|
|
8082
8082
|
})(DataFabricDirectoryEntityType || (DataFabricDirectoryEntityType = {}));
|
|
8083
8083
|
var DataFabricDirectoryEntityTypeName;
|
|
8084
|
-
(function(
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8084
|
+
(function(DataFabricDirectoryEntityTypeName) {
|
|
8085
|
+
DataFabricDirectoryEntityTypeName["User"] = "User";
|
|
8086
|
+
DataFabricDirectoryEntityTypeName["Group"] = "Group";
|
|
8087
|
+
DataFabricDirectoryEntityTypeName["Application"] = "Application";
|
|
8088
8088
|
})(DataFabricDirectoryEntityTypeName || (DataFabricDirectoryEntityTypeName = {}));
|
|
8089
8089
|
var DEFAULT_DIRECTORY_PAGE_SIZE = 100;
|
|
8090
8090
|
var MAX_DIRECTORY_PAGE_SIZE = 100;
|
|
@@ -8394,27 +8394,27 @@ function createProcessInstanceWithMethods(instanceData, service) {
|
|
|
8394
8394
|
return Object.assign({}, instanceData, methods);
|
|
8395
8395
|
}
|
|
8396
8396
|
var ProcessIncidentStatus;
|
|
8397
|
-
(function(
|
|
8398
|
-
|
|
8399
|
-
|
|
8397
|
+
(function(ProcessIncidentStatus) {
|
|
8398
|
+
ProcessIncidentStatus["Open"] = "Open";
|
|
8399
|
+
ProcessIncidentStatus["Closed"] = "Closed";
|
|
8400
8400
|
})(ProcessIncidentStatus || (ProcessIncidentStatus = {}));
|
|
8401
8401
|
var ProcessIncidentType;
|
|
8402
|
-
(function(
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8402
|
+
(function(ProcessIncidentType) {
|
|
8403
|
+
ProcessIncidentType["System"] = "System";
|
|
8404
|
+
ProcessIncidentType["User"] = "User";
|
|
8405
|
+
ProcessIncidentType["Deployment"] = "Deployment";
|
|
8406
8406
|
})(ProcessIncidentType || (ProcessIncidentType = {}));
|
|
8407
8407
|
var ProcessIncidentSeverity;
|
|
8408
|
-
(function(
|
|
8409
|
-
|
|
8410
|
-
|
|
8408
|
+
(function(ProcessIncidentSeverity) {
|
|
8409
|
+
ProcessIncidentSeverity["Error"] = "Error";
|
|
8410
|
+
ProcessIncidentSeverity["Warning"] = "Warning";
|
|
8411
8411
|
})(ProcessIncidentSeverity || (ProcessIncidentSeverity = {}));
|
|
8412
8412
|
var DebugMode;
|
|
8413
|
-
(function(
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8413
|
+
(function(DebugMode) {
|
|
8414
|
+
DebugMode["None"] = "None";
|
|
8415
|
+
DebugMode["Default"] = "Default";
|
|
8416
|
+
DebugMode["StepByStep"] = "StepByStep";
|
|
8417
|
+
DebugMode["SingleStep"] = "SingleStep";
|
|
8418
8418
|
})(DebugMode || (DebugMode = {}));
|
|
8419
8419
|
function createCaseMethods(caseData, service) {
|
|
8420
8420
|
return {
|
|
@@ -8461,63 +8461,63 @@ function createCaseWithMethods(caseData, service) {
|
|
|
8461
8461
|
return Object.assign({}, caseData, methods);
|
|
8462
8462
|
}
|
|
8463
8463
|
var CaseInstanceMessageName;
|
|
8464
|
-
(function(
|
|
8465
|
-
|
|
8466
|
-
|
|
8464
|
+
(function(CaseInstanceMessageName) {
|
|
8465
|
+
CaseInstanceMessageName["UserSelectStage"] = "UserSelectStage";
|
|
8466
|
+
CaseInstanceMessageName["UserAdhocTrigger"] = "UserAdhocTrigger";
|
|
8467
8467
|
})(CaseInstanceMessageName || (CaseInstanceMessageName = {}));
|
|
8468
8468
|
var SlaSummaryStatus;
|
|
8469
|
-
(function(
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8469
|
+
(function(SlaSummaryStatus) {
|
|
8470
|
+
SlaSummaryStatus["ON_TRACK"] = "On Track";
|
|
8471
|
+
SlaSummaryStatus["AT_RISK"] = "At Risk";
|
|
8472
|
+
SlaSummaryStatus["OVERDUE"] = "Overdue";
|
|
8473
|
+
SlaSummaryStatus["COMPLETED"] = "Completed";
|
|
8474
|
+
SlaSummaryStatus["UNKNOWN"] = "Unknown";
|
|
8475
8475
|
})(SlaSummaryStatus || (SlaSummaryStatus = {}));
|
|
8476
8476
|
var InstanceStatus;
|
|
8477
|
-
(function(
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8477
|
+
(function(InstanceStatus) {
|
|
8478
|
+
InstanceStatus["UNKNOWN"] = "";
|
|
8479
|
+
InstanceStatus["CANCELLED"] = "Cancelled";
|
|
8480
|
+
InstanceStatus["CANCELING"] = "Canceling";
|
|
8481
|
+
InstanceStatus["COMPLETED"] = "Completed";
|
|
8482
|
+
InstanceStatus["FAULTED"] = "Faulted";
|
|
8483
|
+
InstanceStatus["PAUSED"] = "Paused";
|
|
8484
|
+
InstanceStatus["PAUSING"] = "Pausing";
|
|
8485
|
+
InstanceStatus["PENDING"] = "Pending";
|
|
8486
|
+
InstanceStatus["RESUMING"] = "Resuming";
|
|
8487
|
+
InstanceStatus["RETRYING"] = "Retrying";
|
|
8488
|
+
InstanceStatus["RUNNING"] = "Running";
|
|
8489
|
+
InstanceStatus["UPGRADING"] = "Upgrading";
|
|
8490
8490
|
})(InstanceStatus || (InstanceStatus = {}));
|
|
8491
8491
|
var StageTaskType;
|
|
8492
|
-
(function(
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8492
|
+
(function(StageTaskType) {
|
|
8493
|
+
StageTaskType["EXTERNAL_AGENT"] = "external-agent";
|
|
8494
|
+
StageTaskType["RPA"] = "rpa";
|
|
8495
|
+
StageTaskType["AGENTIC_PROCESS"] = "process";
|
|
8496
|
+
StageTaskType["AGENT"] = "agent";
|
|
8497
|
+
StageTaskType["ACTION"] = "action";
|
|
8498
|
+
StageTaskType["API_WORKFLOW"] = "api-workflow";
|
|
8499
8499
|
})(StageTaskType || (StageTaskType = {}));
|
|
8500
8500
|
var EscalationRecipientScope;
|
|
8501
|
-
(function(
|
|
8502
|
-
|
|
8503
|
-
|
|
8501
|
+
(function(EscalationRecipientScope) {
|
|
8502
|
+
EscalationRecipientScope["USER"] = "user";
|
|
8503
|
+
EscalationRecipientScope["USER_GROUP"] = "usergroup";
|
|
8504
8504
|
})(EscalationRecipientScope || (EscalationRecipientScope = {}));
|
|
8505
8505
|
var EscalationActionType;
|
|
8506
|
-
(function(
|
|
8507
|
-
|
|
8506
|
+
(function(EscalationActionType) {
|
|
8507
|
+
EscalationActionType["NOTIFICATION"] = "notification";
|
|
8508
8508
|
})(EscalationActionType || (EscalationActionType = {}));
|
|
8509
8509
|
var EscalationTriggerType;
|
|
8510
|
-
(function(
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8510
|
+
(function(EscalationTriggerType) {
|
|
8511
|
+
EscalationTriggerType["SLA_BREACHED"] = "sla-breached";
|
|
8512
|
+
EscalationTriggerType["AT_RISK"] = "at-risk";
|
|
8513
|
+
EscalationTriggerType["NONE"] = "None";
|
|
8514
8514
|
})(EscalationTriggerType || (EscalationTriggerType = {}));
|
|
8515
8515
|
var SLADurationUnit;
|
|
8516
|
-
(function(
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8516
|
+
(function(SLADurationUnit) {
|
|
8517
|
+
SLADurationUnit["HOURS"] = "h";
|
|
8518
|
+
SLADurationUnit["DAYS"] = "d";
|
|
8519
|
+
SLADurationUnit["WEEKS"] = "w";
|
|
8520
|
+
SLADurationUnit["MONTHS"] = "m";
|
|
8521
8521
|
})(SLADurationUnit || (SLADurationUnit = {}));
|
|
8522
8522
|
function createCaseInstanceMethods(instanceData, service) {
|
|
8523
8523
|
return {
|
|
@@ -8599,16 +8599,16 @@ function createCaseInstanceWithMethods(instanceData, service) {
|
|
|
8599
8599
|
return Object.assign({}, instanceData, methods);
|
|
8600
8600
|
}
|
|
8601
8601
|
var TimeInterval;
|
|
8602
|
-
(function(
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8602
|
+
(function(TimeInterval) {
|
|
8603
|
+
TimeInterval["Hour"] = "HOUR";
|
|
8604
|
+
TimeInterval["Day"] = "DAY";
|
|
8605
|
+
TimeInterval["Week"] = "WEEK";
|
|
8606
8606
|
})(TimeInterval || (TimeInterval = {}));
|
|
8607
8607
|
var InstanceFinalStatus;
|
|
8608
|
-
(function(
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8608
|
+
(function(InstanceFinalStatus) {
|
|
8609
|
+
InstanceFinalStatus["Completed"] = "Completed";
|
|
8610
|
+
InstanceFinalStatus["Faulted"] = "Faulted";
|
|
8611
|
+
InstanceFinalStatus["Cancelled"] = "Cancelled";
|
|
8612
8612
|
})(InstanceFinalStatus || (InstanceFinalStatus = {}));
|
|
8613
8613
|
function buildInsightsTopBody(startTime, endTime, isCaseManagement, options) {
|
|
8614
8614
|
return {
|
|
@@ -8996,11 +8996,11 @@ class MaestroProcessesService extends BaseService {
|
|
|
8996
8996
|
});
|
|
8997
8997
|
const response = await this.get(MAESTRO_ENDPOINTS.PROCESSES.GET_ALL, { params });
|
|
8998
8998
|
const processes = response.data?.processes || [];
|
|
8999
|
-
const processesWithName = processes.map((
|
|
9000
|
-
...
|
|
9001
|
-
name:
|
|
8999
|
+
const processesWithName = processes.map((process2) => ({
|
|
9000
|
+
...process2,
|
|
9001
|
+
name: process2.packageId
|
|
9002
9002
|
}));
|
|
9003
|
-
return processesWithName.map((
|
|
9003
|
+
return processesWithName.map((process2) => createProcessWithMethods(process2, this));
|
|
9004
9004
|
}
|
|
9005
9005
|
async getIncidents(processKey, folderKey) {
|
|
9006
9006
|
const rawResponse = await this.get(MAESTRO_ENDPOINTS.INCIDENTS.GET_BY_PROCESS(processKey), {
|
|
@@ -9010,7 +9010,7 @@ class MaestroProcessesService extends BaseService {
|
|
|
9010
9010
|
}
|
|
9011
9011
|
async getTopRunCount(startTime, endTime, options) {
|
|
9012
9012
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, false, options));
|
|
9013
|
-
return (data ?? []).map((
|
|
9013
|
+
return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
|
|
9014
9014
|
}
|
|
9015
9015
|
async getTopElementFailedCount(startTime, endTime, options) {
|
|
9016
9016
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, false, options));
|
|
@@ -9040,7 +9040,7 @@ class MaestroProcessesService extends BaseService {
|
|
|
9040
9040
|
}
|
|
9041
9041
|
async getTopExecutionDuration(startTime, endTime, options) {
|
|
9042
9042
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, false, options));
|
|
9043
|
-
return (data ?? []).map((
|
|
9043
|
+
return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
|
|
9044
9044
|
}
|
|
9045
9045
|
async getElementStats(request) {
|
|
9046
9046
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
|
|
@@ -9093,8 +9093,8 @@ __decorate([
|
|
|
9093
9093
|
track("ProcessIncidents.getAll")
|
|
9094
9094
|
], ProcessIncidentsService.prototype, "getAll", null);
|
|
9095
9095
|
var ProcessType;
|
|
9096
|
-
(function(
|
|
9097
|
-
|
|
9096
|
+
(function(ProcessType) {
|
|
9097
|
+
ProcessType["CaseManagement"] = "CaseManagement";
|
|
9098
9098
|
})(ProcessType || (ProcessType = {}));
|
|
9099
9099
|
|
|
9100
9100
|
class CasesService extends BaseService {
|
|
@@ -9115,7 +9115,7 @@ class CasesService extends BaseService {
|
|
|
9115
9115
|
}
|
|
9116
9116
|
async getTopRunCount(startTime, endTime, options) {
|
|
9117
9117
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, true, options));
|
|
9118
|
-
return (data ?? []).map((
|
|
9118
|
+
return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
|
|
9119
9119
|
}
|
|
9120
9120
|
async getTopElementFailedCount(startTime, endTime, options) {
|
|
9121
9121
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, true, options));
|
|
@@ -9145,7 +9145,7 @@ class CasesService extends BaseService {
|
|
|
9145
9145
|
}
|
|
9146
9146
|
async getTopExecutionDuration(startTime, endTime, options) {
|
|
9147
9147
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, true, options));
|
|
9148
|
-
return (data ?? []).map((
|
|
9148
|
+
return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
|
|
9149
9149
|
}
|
|
9150
9150
|
async getElementStats(request) {
|
|
9151
9151
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
|
|
@@ -9357,7 +9357,7 @@ class FolderScopedService extends BaseService {
|
|
|
9357
9357
|
}
|
|
9358
9358
|
return response.data?.value;
|
|
9359
9359
|
}
|
|
9360
|
-
async getByNameLookup(resourceType, endpoint, name, options,
|
|
9360
|
+
async getByNameLookup(resourceType, endpoint, name, options, transform, responseFieldMap, callerLabel) {
|
|
9361
9361
|
const validatedName = validateName(resourceType, name);
|
|
9362
9362
|
const { folderId, folderKey, folderPath, ...queryOptions } = options;
|
|
9363
9363
|
const override = resolveOverride(resourceType, validatedName, folderPath);
|
|
@@ -9388,11 +9388,11 @@ class FolderScopedService extends BaseService {
|
|
|
9388
9388
|
});
|
|
9389
9389
|
}
|
|
9390
9390
|
return {
|
|
9391
|
-
result:
|
|
9391
|
+
result: transform(items[0]),
|
|
9392
9392
|
effectiveFolder: { folderId, folderKey, folderPath: resolvedFolderPath }
|
|
9393
9393
|
};
|
|
9394
9394
|
}
|
|
9395
|
-
async getByKeyLookup(resourceType, endpoint, key, options,
|
|
9395
|
+
async getByKeyLookup(resourceType, endpoint, key, options, transform, responseFieldMap, callerLabel) {
|
|
9396
9396
|
const label = callerLabel ?? `${resourceType}.getByKey`;
|
|
9397
9397
|
const trimmedKey = key?.trim();
|
|
9398
9398
|
if (!trimmedKey || !GUID_REGEX.test(trimmedKey)) {
|
|
@@ -9421,7 +9421,7 @@ class FolderScopedService extends BaseService {
|
|
|
9421
9421
|
throw new NotFoundError({ message: `${resourceType} with key '${trimmedKey}' not found.` });
|
|
9422
9422
|
}
|
|
9423
9423
|
return {
|
|
9424
|
-
result:
|
|
9424
|
+
result: transform(items[0]),
|
|
9425
9425
|
effectiveFolder: { folderId, folderKey, folderPath }
|
|
9426
9426
|
};
|
|
9427
9427
|
}
|
|
@@ -9473,7 +9473,7 @@ class TaskService extends FolderScopedService {
|
|
|
9473
9473
|
const optionsWithFolder = { ...options, folderId };
|
|
9474
9474
|
return PaginationHelpers.getAll({
|
|
9475
9475
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
9476
|
-
getEndpoint: (
|
|
9476
|
+
getEndpoint: (folderId) => TASK_ENDPOINTS.GET_TASK_USERS(folderId),
|
|
9477
9477
|
getByFolderEndpoint: TASK_ENDPOINTS.GET_TASK_USERS(folderId),
|
|
9478
9478
|
transformFn: transformUserResponse,
|
|
9479
9479
|
pagination: {
|
|
@@ -10083,17 +10083,17 @@ __decorate([
|
|
|
10083
10083
|
track("CaseInstances.GetStagesSlaSummary")
|
|
10084
10084
|
], CaseInstancesService.prototype, "getStagesSlaSummary", null);
|
|
10085
10085
|
var AssetValueScope;
|
|
10086
|
-
(function(
|
|
10087
|
-
|
|
10088
|
-
|
|
10086
|
+
(function(AssetValueScope) {
|
|
10087
|
+
AssetValueScope["Global"] = "Global";
|
|
10088
|
+
AssetValueScope["PerRobot"] = "PerRobot";
|
|
10089
10089
|
})(AssetValueScope || (AssetValueScope = {}));
|
|
10090
10090
|
var AssetValueType;
|
|
10091
|
-
(function(
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10091
|
+
(function(AssetValueType) {
|
|
10092
|
+
AssetValueType["Text"] = "Text";
|
|
10093
|
+
AssetValueType["Bool"] = "Bool";
|
|
10094
|
+
AssetValueType["Integer"] = "Integer";
|
|
10095
|
+
AssetValueType["Credential"] = "Credential";
|
|
10096
|
+
AssetValueType["Secret"] = "Secret";
|
|
10097
10097
|
})(AssetValueType || (AssetValueType = {}));
|
|
10098
10098
|
async function resolveRefToId(ref, resolvers, callerLabel) {
|
|
10099
10099
|
if (!ref) {
|
|
@@ -10599,11 +10599,11 @@ __decorate([
|
|
|
10599
10599
|
track("Buckets.DeleteFile")
|
|
10600
10600
|
], BucketService.prototype, "deleteFile", null);
|
|
10601
10601
|
var BucketOptions;
|
|
10602
|
-
(function(
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10602
|
+
(function(BucketOptions) {
|
|
10603
|
+
BucketOptions["None"] = "None";
|
|
10604
|
+
BucketOptions["ReadOnly"] = "ReadOnly";
|
|
10605
|
+
BucketOptions["AuditReadAccess"] = "AuditReadAccess";
|
|
10606
|
+
BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
10607
10607
|
})(BucketOptions || (BucketOptions = {}));
|
|
10608
10608
|
function createJobMethods(jobData, service) {
|
|
10609
10609
|
return {
|
|
@@ -10731,146 +10731,146 @@ __decorate([
|
|
|
10731
10731
|
track("Attachments.Create")
|
|
10732
10732
|
], AttachmentService.prototype, "create", null);
|
|
10733
10733
|
var PackageType;
|
|
10734
|
-
(function(
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10734
|
+
(function(PackageType) {
|
|
10735
|
+
PackageType["Undefined"] = "Undefined";
|
|
10736
|
+
PackageType["Process"] = "Process";
|
|
10737
|
+
PackageType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
10738
|
+
PackageType["WebApp"] = "WebApp";
|
|
10739
|
+
PackageType["Agent"] = "Agent";
|
|
10740
|
+
PackageType["TestAutomationProcess"] = "TestAutomationProcess";
|
|
10741
|
+
PackageType["Api"] = "Api";
|
|
10742
|
+
PackageType["MCPServer"] = "MCPServer";
|
|
10743
|
+
PackageType["BusinessRules"] = "BusinessRules";
|
|
10744
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
10745
|
+
PackageType["Flow"] = "Flow";
|
|
10746
|
+
PackageType["Function"] = "Function";
|
|
10747
10747
|
})(PackageType || (PackageType = {}));
|
|
10748
10748
|
var JobPriority;
|
|
10749
|
-
(function(
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10749
|
+
(function(JobPriority) {
|
|
10750
|
+
JobPriority["Low"] = "Low";
|
|
10751
|
+
JobPriority["Normal"] = "Normal";
|
|
10752
|
+
JobPriority["High"] = "High";
|
|
10753
10753
|
})(JobPriority || (JobPriority = {}));
|
|
10754
10754
|
var TargetFramework;
|
|
10755
|
-
(function(
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10755
|
+
(function(TargetFramework) {
|
|
10756
|
+
TargetFramework["Legacy"] = "Legacy";
|
|
10757
|
+
TargetFramework["Windows"] = "Windows";
|
|
10758
|
+
TargetFramework["Portable"] = "Portable";
|
|
10759
10759
|
})(TargetFramework || (TargetFramework = {}));
|
|
10760
10760
|
var RobotSize;
|
|
10761
|
-
(function(
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10761
|
+
(function(RobotSize) {
|
|
10762
|
+
RobotSize["Small"] = "Small";
|
|
10763
|
+
RobotSize["Standard"] = "Standard";
|
|
10764
|
+
RobotSize["Medium"] = "Medium";
|
|
10765
|
+
RobotSize["Large"] = "Large";
|
|
10766
10766
|
})(RobotSize || (RobotSize = {}));
|
|
10767
10767
|
var RemoteControlAccess;
|
|
10768
|
-
(function(
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10768
|
+
(function(RemoteControlAccess) {
|
|
10769
|
+
RemoteControlAccess["None"] = "None";
|
|
10770
|
+
RemoteControlAccess["ReadOnly"] = "ReadOnly";
|
|
10771
|
+
RemoteControlAccess["Full"] = "Full";
|
|
10772
10772
|
})(RemoteControlAccess || (RemoteControlAccess = {}));
|
|
10773
10773
|
var StartStrategy;
|
|
10774
|
-
(function(
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10774
|
+
(function(StartStrategy) {
|
|
10775
|
+
StartStrategy["All"] = "All";
|
|
10776
|
+
StartStrategy["Specific"] = "Specific";
|
|
10777
|
+
StartStrategy["RobotCount"] = "RobotCount";
|
|
10778
|
+
StartStrategy["JobsCount"] = "JobsCount";
|
|
10779
|
+
StartStrategy["ModernJobsCount"] = "ModernJobsCount";
|
|
10780
10780
|
})(StartStrategy || (StartStrategy = {}));
|
|
10781
10781
|
var PackageSourceType;
|
|
10782
|
-
(function(
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10782
|
+
(function(PackageSourceType) {
|
|
10783
|
+
PackageSourceType["Manual"] = "Manual";
|
|
10784
|
+
PackageSourceType["Schedule"] = "Schedule";
|
|
10785
|
+
PackageSourceType["Queue"] = "Queue";
|
|
10786
|
+
PackageSourceType["StudioWeb"] = "StudioWeb";
|
|
10787
|
+
PackageSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
10788
|
+
PackageSourceType["StudioDesktop"] = "StudioDesktop";
|
|
10789
|
+
PackageSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
10790
|
+
PackageSourceType["Apps"] = "Apps";
|
|
10791
|
+
PackageSourceType["SAP"] = "SAP";
|
|
10792
|
+
PackageSourceType["HttpTrigger"] = "HttpTrigger";
|
|
10793
|
+
PackageSourceType["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
|
|
10794
|
+
PackageSourceType["RobotAPI"] = "RobotAPI";
|
|
10795
|
+
PackageSourceType["Assistant"] = "Assistant";
|
|
10796
|
+
PackageSourceType["CommandLine"] = "CommandLine";
|
|
10797
|
+
PackageSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
10798
|
+
PackageSourceType["Autopilot"] = "Autopilot";
|
|
10799
|
+
PackageSourceType["TestManager"] = "TestManager";
|
|
10800
|
+
PackageSourceType["AgentService"] = "AgentService";
|
|
10801
|
+
PackageSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
10802
|
+
PackageSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
10803
|
+
PackageSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
10804
|
+
PackageSourceType["AgentHub"] = "AgentHub";
|
|
10805
|
+
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
10806
10806
|
})(PackageSourceType || (PackageSourceType = {}));
|
|
10807
10807
|
var JobSourceType;
|
|
10808
|
-
(function(
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10808
|
+
(function(JobSourceType) {
|
|
10809
|
+
JobSourceType["Manual"] = "Manual";
|
|
10810
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
10811
|
+
JobSourceType["Agent"] = "Agent";
|
|
10812
|
+
JobSourceType["Queue"] = "Queue";
|
|
10813
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
10814
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
10815
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
10816
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
10817
|
+
JobSourceType["Apps"] = "Apps";
|
|
10818
|
+
JobSourceType["SAP"] = "SAP";
|
|
10819
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
10820
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
10821
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
10822
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
10823
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
10824
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
10825
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
10826
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
10827
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
10828
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
10829
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
10830
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
10831
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
10832
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
10833
10833
|
})(JobSourceType || (JobSourceType = {}));
|
|
10834
10834
|
var StopStrategy;
|
|
10835
|
-
(function(
|
|
10836
|
-
|
|
10837
|
-
|
|
10835
|
+
(function(StopStrategy) {
|
|
10836
|
+
StopStrategy["SoftStop"] = "SoftStop";
|
|
10837
|
+
StopStrategy["Kill"] = "Kill";
|
|
10838
10838
|
})(StopStrategy || (StopStrategy = {}));
|
|
10839
10839
|
var RuntimeType;
|
|
10840
|
-
(function(
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10840
|
+
(function(RuntimeType) {
|
|
10841
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
10842
|
+
RuntimeType["Attended"] = "Attended";
|
|
10843
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
10844
|
+
RuntimeType["Development"] = "Development";
|
|
10845
|
+
RuntimeType["Studio"] = "Studio";
|
|
10846
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
10847
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
10848
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
10849
|
+
RuntimeType["Headless"] = "Headless";
|
|
10850
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
10851
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
10852
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
10853
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
10854
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
10855
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
10856
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
10857
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
10858
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
10859
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
10860
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
10861
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
10862
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
10863
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
10864
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
10865
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
10866
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
10867
|
+
RuntimeType["Flow"] = "Flow";
|
|
10868
10868
|
})(RuntimeType || (RuntimeType = {}));
|
|
10869
10869
|
var JobType;
|
|
10870
|
-
(function(
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10870
|
+
(function(JobType) {
|
|
10871
|
+
JobType["Unattended"] = "Unattended";
|
|
10872
|
+
JobType["Attended"] = "Attended";
|
|
10873
|
+
JobType["ServerlessGeneric"] = "ServerlessGeneric";
|
|
10874
10874
|
})(JobType || (JobType = {}));
|
|
10875
10875
|
|
|
10876
10876
|
class JobService extends FolderScopedService {
|
|
@@ -11088,43 +11088,43 @@ __decorate([
|
|
|
11088
11088
|
track("Jobs.LinkAttachment")
|
|
11089
11089
|
], JobService.prototype, "linkAttachment", null);
|
|
11090
11090
|
var JobSubState;
|
|
11091
|
-
(function(
|
|
11092
|
-
|
|
11093
|
-
|
|
11091
|
+
(function(JobSubState) {
|
|
11092
|
+
JobSubState["WithFaults"] = "WITH_FAULTS";
|
|
11093
|
+
JobSubState["Manually"] = "MANUALLY";
|
|
11094
11094
|
})(JobSubState || (JobSubState = {}));
|
|
11095
11095
|
var ServerlessJobType;
|
|
11096
|
-
(function(
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11096
|
+
(function(ServerlessJobType) {
|
|
11097
|
+
ServerlessJobType["RobotJob"] = "RobotJob";
|
|
11098
|
+
ServerlessJobType["WebApp"] = "WebApp";
|
|
11099
|
+
ServerlessJobType["LoadTest"] = "LoadTest";
|
|
11100
|
+
ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
|
|
11101
|
+
ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
|
|
11102
|
+
ServerlessJobType["JsApi"] = "JsApi";
|
|
11103
|
+
ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
|
|
11104
|
+
ServerlessJobType["MCPServer"] = "MCPServer";
|
|
11105
|
+
ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
11106
|
+
ServerlessJobType["PythonAgent"] = "PythonAgent";
|
|
11107
11107
|
})(ServerlessJobType || (ServerlessJobType = {}));
|
|
11108
11108
|
var JobState;
|
|
11109
|
-
(function(
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11109
|
+
(function(JobState) {
|
|
11110
|
+
JobState["Pending"] = "Pending";
|
|
11111
|
+
JobState["Running"] = "Running";
|
|
11112
|
+
JobState["Stopping"] = "Stopping";
|
|
11113
|
+
JobState["Terminating"] = "Terminating";
|
|
11114
|
+
JobState["Faulted"] = "Faulted";
|
|
11115
|
+
JobState["Successful"] = "Successful";
|
|
11116
|
+
JobState["Stopped"] = "Stopped";
|
|
11117
|
+
JobState["Suspended"] = "Suspended";
|
|
11118
|
+
JobState["Resumed"] = "Resumed";
|
|
11119
|
+
JobState["Cancelled"] = "Cancelled";
|
|
11120
|
+
JobState["Unknown"] = "Unknown";
|
|
11121
11121
|
})(JobState || (JobState = {}));
|
|
11122
11122
|
var ConnectionState;
|
|
11123
|
-
(function(
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11123
|
+
(function(ConnectionState) {
|
|
11124
|
+
ConnectionState["Enabled"] = "Enabled";
|
|
11125
|
+
ConnectionState["Disabled"] = "Disabled";
|
|
11126
|
+
ConnectionState["Expired"] = "Expired";
|
|
11127
|
+
ConnectionState["Failed"] = "Failed";
|
|
11128
11128
|
})(ConnectionState || (ConnectionState = {}));
|
|
11129
11129
|
var ProcessMap = {
|
|
11130
11130
|
lastModificationTime: "lastModifiedTime",
|
|
@@ -11142,7 +11142,7 @@ var ProcessMap = {
|
|
|
11142
11142
|
|
|
11143
11143
|
class ProcessService extends FolderScopedService {
|
|
11144
11144
|
async getAll(options) {
|
|
11145
|
-
const transformProcessResponse = (
|
|
11145
|
+
const transformProcessResponse = (process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap);
|
|
11146
11146
|
const apiOptions = options ? transformOptions(options, ProcessMap) : options;
|
|
11147
11147
|
return PaginationHelpers.getAll({
|
|
11148
11148
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
@@ -11216,7 +11216,7 @@ class ProcessService extends FolderScopedService {
|
|
|
11216
11216
|
params: apiOptions,
|
|
11217
11217
|
headers
|
|
11218
11218
|
});
|
|
11219
|
-
const transformedProcess = response.data?.value.map((
|
|
11219
|
+
const transformedProcess = response.data?.value.map((process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap));
|
|
11220
11220
|
return transformedProcess;
|
|
11221
11221
|
}
|
|
11222
11222
|
async getById(id, folderId, options = {}) {
|
|
@@ -11305,37 +11305,37 @@ function resolveLegacyIdentity(request, folderPath) {
|
|
|
11305
11305
|
return { identity: {} };
|
|
11306
11306
|
}
|
|
11307
11307
|
var QueuePriority;
|
|
11308
|
-
(function(
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
|
|
11308
|
+
(function(QueuePriority) {
|
|
11309
|
+
QueuePriority["High"] = "High";
|
|
11310
|
+
QueuePriority["Normal"] = "Normal";
|
|
11311
|
+
QueuePriority["Low"] = "Low";
|
|
11312
11312
|
})(QueuePriority || (QueuePriority = {}));
|
|
11313
11313
|
var QueueItemStatus;
|
|
11314
|
-
(function(
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11314
|
+
(function(QueueItemStatus) {
|
|
11315
|
+
QueueItemStatus["New"] = "New";
|
|
11316
|
+
QueueItemStatus["InProgress"] = "InProgress";
|
|
11317
|
+
QueueItemStatus["Failed"] = "Failed";
|
|
11318
|
+
QueueItemStatus["Successful"] = "Successful";
|
|
11319
|
+
QueueItemStatus["Abandoned"] = "Abandoned";
|
|
11320
|
+
QueueItemStatus["Retried"] = "Retried";
|
|
11321
|
+
QueueItemStatus["Deleted"] = "Deleted";
|
|
11322
11322
|
})(QueueItemStatus || (QueueItemStatus = {}));
|
|
11323
11323
|
var QueueItemReviewStatus;
|
|
11324
|
-
(function(
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11324
|
+
(function(QueueItemReviewStatus) {
|
|
11325
|
+
QueueItemReviewStatus["None"] = "None";
|
|
11326
|
+
QueueItemReviewStatus["InReview"] = "InReview";
|
|
11327
|
+
QueueItemReviewStatus["Verified"] = "Verified";
|
|
11328
|
+
QueueItemReviewStatus["Retried"] = "Retried";
|
|
11329
11329
|
})(QueueItemReviewStatus || (QueueItemReviewStatus = {}));
|
|
11330
11330
|
var QueueExceptionType;
|
|
11331
|
-
(function(
|
|
11332
|
-
|
|
11333
|
-
|
|
11331
|
+
(function(QueueExceptionType) {
|
|
11332
|
+
QueueExceptionType["ApplicationException"] = "ApplicationException";
|
|
11333
|
+
QueueExceptionType["BusinessException"] = "BusinessException";
|
|
11334
11334
|
})(QueueExceptionType || (QueueExceptionType = {}));
|
|
11335
11335
|
var QueueTransactionOutcome;
|
|
11336
|
-
(function(
|
|
11337
|
-
|
|
11338
|
-
|
|
11336
|
+
(function(QueueTransactionOutcome) {
|
|
11337
|
+
QueueTransactionOutcome["Successful"] = "Successful";
|
|
11338
|
+
QueueTransactionOutcome["Failed"] = "Failed";
|
|
11339
11339
|
})(QueueTransactionOutcome || (QueueTransactionOutcome = {}));
|
|
11340
11340
|
function createQueueMethods(queueData, service) {
|
|
11341
11341
|
return {
|
|
@@ -11424,14 +11424,14 @@ class QueueService extends FolderScopedService {
|
|
|
11424
11424
|
}
|
|
11425
11425
|
async getById(id, folderIdOrOptions, options = {}) {
|
|
11426
11426
|
if (typeof folderIdOrOptions === "number") {
|
|
11427
|
-
const
|
|
11428
|
-
const
|
|
11429
|
-
const
|
|
11430
|
-
const
|
|
11431
|
-
headers
|
|
11432
|
-
params:
|
|
11427
|
+
const headers = createHeaders({ [FOLDER_ID]: folderIdOrOptions });
|
|
11428
|
+
const apiFieldOptions = transformOptions(options, QueueMap);
|
|
11429
|
+
const apiOptions = addPrefixToKeys(apiFieldOptions, ODATA_PREFIX, Object.keys(apiFieldOptions));
|
|
11430
|
+
const response = await this.get(QUEUE_ENDPOINTS.GET_BY_ID(id), {
|
|
11431
|
+
headers,
|
|
11432
|
+
params: apiOptions
|
|
11433
11433
|
});
|
|
11434
|
-
return transformData(pascalToCamelCaseKeys(
|
|
11434
|
+
return transformData(pascalToCamelCaseKeys(response.data), QueueMap);
|
|
11435
11435
|
}
|
|
11436
11436
|
const { folderId, folderKey, folderPath, ...queryOptions } = folderIdOrOptions ?? {};
|
|
11437
11437
|
const headers = resolveFolderHeaders({
|
|
@@ -11623,10 +11623,10 @@ var TaskCatalogMap = {
|
|
|
11623
11623
|
lastModificationTime: "lastModifiedTime"
|
|
11624
11624
|
};
|
|
11625
11625
|
var TaskCatalogRetentionAction;
|
|
11626
|
-
(function(
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11626
|
+
(function(TaskCatalogRetentionAction) {
|
|
11627
|
+
TaskCatalogRetentionAction["Delete"] = "Delete";
|
|
11628
|
+
TaskCatalogRetentionAction["Archive"] = "Archive";
|
|
11629
|
+
TaskCatalogRetentionAction["None"] = "None";
|
|
11630
11630
|
})(TaskCatalogRetentionAction || (TaskCatalogRetentionAction = {}));
|
|
11631
11631
|
|
|
11632
11632
|
class TaskCatalogService extends FolderScopedService {
|
|
@@ -11726,7 +11726,7 @@ __decorate([
|
|
|
11726
11726
|
track("TaskCatalogs.UpdateByName")
|
|
11727
11727
|
], TaskCatalogService.prototype, "updateByName", null);
|
|
11728
11728
|
|
|
11729
|
-
class
|
|
11729
|
+
class UiPath extends UiPath$1 {
|
|
11730
11730
|
constructor() {
|
|
11731
11731
|
super(...arguments);
|
|
11732
11732
|
this._services = new Map;
|
|
@@ -11774,38 +11774,38 @@ class UiPath2 extends UiPath$1 {
|
|
|
11774
11774
|
}
|
|
11775
11775
|
}
|
|
11776
11776
|
var FunctionHttpMethod;
|
|
11777
|
-
(function(
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11777
|
+
(function(FunctionHttpMethod) {
|
|
11778
|
+
FunctionHttpMethod["Get"] = "Get";
|
|
11779
|
+
FunctionHttpMethod["Post"] = "Post";
|
|
11780
|
+
FunctionHttpMethod["Put"] = "Put";
|
|
11781
|
+
FunctionHttpMethod["Patch"] = "Patch";
|
|
11782
|
+
FunctionHttpMethod["Delete"] = "Delete";
|
|
11783
11783
|
})(FunctionHttpMethod || (FunctionHttpMethod = {}));
|
|
11784
11784
|
var FolderType;
|
|
11785
|
-
(function(
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11785
|
+
(function(FolderType) {
|
|
11786
|
+
FolderType["Standard"] = "Standard";
|
|
11787
|
+
FolderType["Personal"] = "Personal";
|
|
11788
|
+
FolderType["Virtual"] = "Virtual";
|
|
11789
|
+
FolderType["Solution"] = "Solution";
|
|
11790
|
+
FolderType["DebugSolution"] = "DebugSolution";
|
|
11791
11791
|
})(FolderType || (FolderType = {}));
|
|
11792
11792
|
var FolderProvisionType;
|
|
11793
|
-
(function(
|
|
11794
|
-
|
|
11795
|
-
|
|
11793
|
+
(function(FolderProvisionType) {
|
|
11794
|
+
FolderProvisionType["Manual"] = "Manual";
|
|
11795
|
+
FolderProvisionType["Automatic"] = "Automatic";
|
|
11796
11796
|
})(FolderProvisionType || (FolderProvisionType = {}));
|
|
11797
11797
|
var FolderPermissionModel;
|
|
11798
|
-
(function(
|
|
11799
|
-
|
|
11800
|
-
|
|
11798
|
+
(function(FolderPermissionModel) {
|
|
11799
|
+
FolderPermissionModel["InheritFromTenant"] = "InheritFromTenant";
|
|
11800
|
+
FolderPermissionModel["FineGrained"] = "FineGrained";
|
|
11801
11801
|
})(FolderPermissionModel || (FolderPermissionModel = {}));
|
|
11802
11802
|
var FolderFeedType;
|
|
11803
|
-
(function(
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11803
|
+
(function(FolderFeedType) {
|
|
11804
|
+
FolderFeedType["Undefined"] = "Undefined";
|
|
11805
|
+
FolderFeedType["Processes"] = "Processes";
|
|
11806
|
+
FolderFeedType["Libraries"] = "Libraries";
|
|
11807
|
+
FolderFeedType["PersonalWorkspace"] = "PersonalWorkspace";
|
|
11808
|
+
FolderFeedType["FolderHierarchy"] = "FolderHierarchy";
|
|
11809
11809
|
})(FolderFeedType || (FolderFeedType = {}));
|
|
11810
11810
|
var CommonFieldMap = {
|
|
11811
11811
|
createdAt: "createdTime",
|
|
@@ -11824,35 +11824,35 @@ var MessageMap = {
|
|
|
11824
11824
|
...CommonFieldMap
|
|
11825
11825
|
};
|
|
11826
11826
|
var MessageRole;
|
|
11827
|
-
(function(
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11827
|
+
(function(MessageRole) {
|
|
11828
|
+
MessageRole["System"] = "system";
|
|
11829
|
+
MessageRole["User"] = "user";
|
|
11830
|
+
MessageRole["Assistant"] = "assistant";
|
|
11831
11831
|
})(MessageRole || (MessageRole = {}));
|
|
11832
11832
|
var InterruptType;
|
|
11833
|
-
(function(
|
|
11834
|
-
|
|
11833
|
+
(function(InterruptType) {
|
|
11834
|
+
InterruptType["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
|
|
11835
11835
|
})(InterruptType || (InterruptType = {}));
|
|
11836
11836
|
var SortOrder;
|
|
11837
|
-
(function(
|
|
11838
|
-
|
|
11839
|
-
|
|
11837
|
+
(function(SortOrder) {
|
|
11838
|
+
SortOrder["Ascending"] = "ascending";
|
|
11839
|
+
SortOrder["Descending"] = "descending";
|
|
11840
11840
|
})(SortOrder || (SortOrder = {}));
|
|
11841
11841
|
var FeedbackRating;
|
|
11842
|
-
(function(
|
|
11843
|
-
|
|
11844
|
-
|
|
11842
|
+
(function(FeedbackRating) {
|
|
11843
|
+
FeedbackRating["Positive"] = "positive";
|
|
11844
|
+
FeedbackRating["Negative"] = "negative";
|
|
11845
11845
|
})(FeedbackRating || (FeedbackRating = {}));
|
|
11846
11846
|
var InputStreamSpeechSensitivity;
|
|
11847
|
-
(function(
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11847
|
+
(function(InputStreamSpeechSensitivity) {
|
|
11848
|
+
InputStreamSpeechSensitivity["Unspecified"] = "UNSPECIFIED";
|
|
11849
|
+
InputStreamSpeechSensitivity["High"] = "HIGH";
|
|
11850
|
+
InputStreamSpeechSensitivity["Low"] = "LOW";
|
|
11851
11851
|
})(InputStreamSpeechSensitivity || (InputStreamSpeechSensitivity = {}));
|
|
11852
11852
|
var CitationErrorType;
|
|
11853
|
-
(function(
|
|
11854
|
-
|
|
11855
|
-
|
|
11853
|
+
(function(CitationErrorType) {
|
|
11854
|
+
CitationErrorType["CitationNotEnded"] = "CitationNotEnded";
|
|
11855
|
+
CitationErrorType["CitationNotStarted"] = "CitationNotStarted";
|
|
11856
11856
|
})(CitationErrorType || (CitationErrorType = {}));
|
|
11857
11857
|
var AgentMap = {
|
|
11858
11858
|
...CommonFieldMap
|
|
@@ -11861,491 +11861,488 @@ var UserSettingsMap = {
|
|
|
11861
11861
|
...CommonFieldMap
|
|
11862
11862
|
};
|
|
11863
11863
|
var FeedbackStatus;
|
|
11864
|
-
(function(
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11864
|
+
(function(FeedbackStatus) {
|
|
11865
|
+
FeedbackStatus[FeedbackStatus["Pending"] = 0] = "Pending";
|
|
11866
|
+
FeedbackStatus[FeedbackStatus["Approved"] = 1] = "Approved";
|
|
11867
|
+
FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
|
|
11868
11868
|
})(FeedbackStatus || (FeedbackStatus = {}));
|
|
11869
11869
|
var AgentListSortColumn;
|
|
11870
|
-
(function(
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11870
|
+
(function(AgentListSortColumn) {
|
|
11871
|
+
AgentListSortColumn["AgentName"] = "AgentName";
|
|
11872
|
+
AgentListSortColumn["ParentProcess"] = "ParentProcess";
|
|
11873
|
+
AgentListSortColumn["LastRun"] = "LastRun";
|
|
11874
|
+
AgentListSortColumn["HealthScore"] = "HealthScore";
|
|
11875
|
+
AgentListSortColumn["LastIncident"] = "LastIncident";
|
|
11876
|
+
AgentListSortColumn["FolderName"] = "FolderName";
|
|
11877
|
+
AgentListSortColumn["QuantityAGU"] = "QuantityAGU";
|
|
11878
|
+
AgentListSortColumn["QuantityPLTU"] = "QuantityPLTU";
|
|
11879
|
+
AgentListSortColumn["FolderPath"] = "FolderPath";
|
|
11880
11880
|
})(AgentListSortColumn || (AgentListSortColumn = {}));
|
|
11881
11881
|
var AgentErrorSortColumn;
|
|
11882
|
-
(function(
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11882
|
+
(function(AgentErrorSortColumn) {
|
|
11883
|
+
AgentErrorSortColumn["AgentId"] = "AgentId";
|
|
11884
|
+
AgentErrorSortColumn["AgentName"] = "AgentName";
|
|
11885
|
+
AgentErrorSortColumn["ParentProcessName"] = "ParentProcessName";
|
|
11886
|
+
AgentErrorSortColumn["ErrorTitle"] = "ErrorTitle";
|
|
11887
|
+
AgentErrorSortColumn["FirstSeenStartTime"] = "FirstSeenStartTime";
|
|
11888
|
+
AgentErrorSortColumn["ExecutionCount"] = "ExecutionCount";
|
|
11889
|
+
AgentErrorSortColumn["Type"] = "Type";
|
|
11890
|
+
AgentErrorSortColumn["FirstSeenFolderName"] = "FirstSeenFolderName";
|
|
11891
|
+
AgentErrorSortColumn["FirstSeenFolderPath"] = "FirstSeenFolderPath";
|
|
11892
|
+
AgentErrorSortColumn["LastSeenStartTime"] = "LastSeenStartTime";
|
|
11893
|
+
AgentErrorSortColumn["LastSeenFolderName"] = "LastSeenFolderName";
|
|
11894
|
+
AgentErrorSortColumn["LastSeenFolderPath"] = "LastSeenFolderPath";
|
|
11895
11895
|
})(AgentErrorSortColumn || (AgentErrorSortColumn = {}));
|
|
11896
11896
|
var AgentType;
|
|
11897
|
-
(function(
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11897
|
+
(function(AgentType) {
|
|
11898
|
+
AgentType["Autonomous"] = "Autonomous";
|
|
11899
|
+
AgentType["Conversational"] = "Conversational";
|
|
11900
|
+
AgentType["Coded"] = "Coded";
|
|
11901
11901
|
})(AgentType || (AgentType = {}));
|
|
11902
11902
|
var AgentExecutionType;
|
|
11903
|
-
(function(
|
|
11904
|
-
|
|
11905
|
-
|
|
11903
|
+
(function(AgentExecutionType) {
|
|
11904
|
+
AgentExecutionType["Debug"] = "Debug";
|
|
11905
|
+
AgentExecutionType["Runtime"] = "Runtime";
|
|
11906
11906
|
})(AgentExecutionType || (AgentExecutionType = {}));
|
|
11907
11907
|
var AgentMemoryExecutionType;
|
|
11908
|
-
(function(
|
|
11909
|
-
|
|
11910
|
-
|
|
11908
|
+
(function(AgentMemoryExecutionType) {
|
|
11909
|
+
AgentMemoryExecutionType["Debug"] = "Debug";
|
|
11910
|
+
AgentMemoryExecutionType["Runtime"] = "Runtime";
|
|
11911
11911
|
})(AgentMemoryExecutionType || (AgentMemoryExecutionType = {}));
|
|
11912
11912
|
var DocumentActionPriority;
|
|
11913
|
-
(function(
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11913
|
+
(function(DocumentActionPriority) {
|
|
11914
|
+
DocumentActionPriority["Low"] = "Low";
|
|
11915
|
+
DocumentActionPriority["Medium"] = "Medium";
|
|
11916
|
+
DocumentActionPriority["High"] = "High";
|
|
11917
|
+
DocumentActionPriority["Critical"] = "Critical";
|
|
11918
11918
|
})(DocumentActionPriority || (DocumentActionPriority = {}));
|
|
11919
11919
|
var DocumentActionStatus;
|
|
11920
|
-
(function(
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11920
|
+
(function(DocumentActionStatus) {
|
|
11921
|
+
DocumentActionStatus["Unassigned"] = "Unassigned";
|
|
11922
|
+
DocumentActionStatus["Pending"] = "Pending";
|
|
11923
|
+
DocumentActionStatus["Completed"] = "Completed";
|
|
11924
11924
|
})(DocumentActionStatus || (DocumentActionStatus = {}));
|
|
11925
11925
|
var DocumentActionType;
|
|
11926
|
-
(function(
|
|
11927
|
-
|
|
11928
|
-
|
|
11926
|
+
(function(DocumentActionType) {
|
|
11927
|
+
DocumentActionType["Validation"] = "Validation";
|
|
11928
|
+
DocumentActionType["Classification"] = "Classification";
|
|
11929
11929
|
})(DocumentActionType || (DocumentActionType = {}));
|
|
11930
11930
|
var ProjectProperties;
|
|
11931
|
-
(function(
|
|
11932
|
-
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
|
|
11931
|
+
(function(ProjectProperties) {
|
|
11932
|
+
ProjectProperties["IsPredefined"] = "IsPredefined";
|
|
11933
|
+
ProjectProperties["SupportsTags"] = "SupportsTags";
|
|
11934
|
+
ProjectProperties["SupportsVersions"] = "SupportsVersions";
|
|
11935
|
+
ProjectProperties["IsSplittingEnabled"] = "IsSplittingEnabled";
|
|
11936
11936
|
})(ProjectProperties || (ProjectProperties = {}));
|
|
11937
11937
|
var ProjectType;
|
|
11938
|
-
(function(
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11938
|
+
(function(ProjectType) {
|
|
11939
|
+
ProjectType["Classic"] = "Classic";
|
|
11940
|
+
ProjectType["Modern"] = "Modern";
|
|
11941
|
+
ProjectType["IXP"] = "IXP";
|
|
11942
|
+
ProjectType["Unknown"] = "Unknown";
|
|
11943
11943
|
})(ProjectType || (ProjectType = {}));
|
|
11944
11944
|
var ResourceStatus;
|
|
11945
|
-
(function(
|
|
11946
|
-
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11945
|
+
(function(ResourceStatus) {
|
|
11946
|
+
ResourceStatus["Unknown"] = "Unknown";
|
|
11947
|
+
ResourceStatus["NotStarted"] = "NotStarted";
|
|
11948
|
+
ResourceStatus["ExportInProgress"] = "ExportInProgress";
|
|
11949
|
+
ResourceStatus["ExportCompleted"] = "ExportCompleted";
|
|
11950
|
+
ResourceStatus["InProgress"] = "InProgress";
|
|
11951
|
+
ResourceStatus["Suspended"] = "Suspended";
|
|
11952
|
+
ResourceStatus["Resuming"] = "Resuming";
|
|
11953
|
+
ResourceStatus["Available"] = "Available";
|
|
11954
|
+
ResourceStatus["Error"] = "Error";
|
|
11955
|
+
ResourceStatus["Deleting"] = "Deleting";
|
|
11956
11956
|
})(ResourceStatus || (ResourceStatus = {}));
|
|
11957
11957
|
var ResourceType;
|
|
11958
|
-
(function(
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11958
|
+
(function(ResourceType) {
|
|
11959
|
+
ResourceType["Specialized"] = "Specialized";
|
|
11960
|
+
ResourceType["Generative"] = "Generative";
|
|
11961
|
+
ResourceType["Custom"] = "Custom";
|
|
11962
|
+
ResourceType["Unknown"] = "Unknown";
|
|
11963
11963
|
})(ResourceType || (ResourceType = {}));
|
|
11964
11964
|
var MarkupType;
|
|
11965
|
-
(function(
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11965
|
+
(function(MarkupType) {
|
|
11966
|
+
MarkupType["Unknown"] = "Unknown";
|
|
11967
|
+
MarkupType["Circled"] = "Circled";
|
|
11968
|
+
MarkupType["Underlined"] = "Underlined";
|
|
11969
|
+
MarkupType["Strikethrough"] = "Strikethrough";
|
|
11970
11970
|
})(MarkupType || (MarkupType = {}));
|
|
11971
11971
|
var ProcessingSource;
|
|
11972
|
-
(function(
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
|
|
11977
|
-
|
|
11972
|
+
(function(ProcessingSource) {
|
|
11973
|
+
ProcessingSource["Unknown"] = "Unknown";
|
|
11974
|
+
ProcessingSource["Ocr"] = "Ocr";
|
|
11975
|
+
ProcessingSource["Pdf"] = "Pdf";
|
|
11976
|
+
ProcessingSource["PlainText"] = "PlainText";
|
|
11977
|
+
ProcessingSource["PdfAndOcr"] = "PdfAndOcr";
|
|
11978
11978
|
})(ProcessingSource || (ProcessingSource = {}));
|
|
11979
11979
|
var Rotation;
|
|
11980
|
-
(function(
|
|
11981
|
-
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11980
|
+
(function(Rotation) {
|
|
11981
|
+
Rotation["None"] = "None";
|
|
11982
|
+
Rotation["Rotated90"] = "Rotated90";
|
|
11983
|
+
Rotation["Rotated180"] = "Rotated180";
|
|
11984
|
+
Rotation["Rotated270"] = "Rotated270";
|
|
11985
|
+
Rotation["Other"] = "Other";
|
|
11986
11986
|
})(Rotation || (Rotation = {}));
|
|
11987
11987
|
var SectionType;
|
|
11988
|
-
(function(
|
|
11989
|
-
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11988
|
+
(function(SectionType) {
|
|
11989
|
+
SectionType["Vertical"] = "Vertical";
|
|
11990
|
+
SectionType["Paragraph"] = "Paragraph";
|
|
11991
|
+
SectionType["Header"] = "Header";
|
|
11992
|
+
SectionType["Footer"] = "Footer";
|
|
11993
|
+
SectionType["Table"] = "Table";
|
|
11994
11994
|
})(SectionType || (SectionType = {}));
|
|
11995
11995
|
var TextType;
|
|
11996
|
-
(function(
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
11996
|
+
(function(TextType) {
|
|
11997
|
+
TextType["Unknown"] = "Unknown";
|
|
11998
|
+
TextType["Text"] = "Text";
|
|
11999
|
+
TextType["Checkbox"] = "Checkbox";
|
|
12000
|
+
TextType["Handwriting"] = "Handwriting";
|
|
12001
|
+
TextType["Barcode"] = "Barcode";
|
|
12002
|
+
TextType["QRcode"] = "QRcode";
|
|
12003
|
+
TextType["Stamp"] = "Stamp";
|
|
12004
|
+
TextType["Logo"] = "Logo";
|
|
12005
|
+
TextType["Circle"] = "Circle";
|
|
12006
|
+
TextType["Underline"] = "Underline";
|
|
12007
|
+
TextType["Cut"] = "Cut";
|
|
12008
12008
|
})(TextType || (TextType = {}));
|
|
12009
12009
|
var WordGroupType;
|
|
12010
|
-
(function(
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12010
|
+
(function(WordGroupType) {
|
|
12011
|
+
WordGroupType["Sentence"] = "Sentence";
|
|
12012
|
+
WordGroupType["TableCell"] = "TableCell";
|
|
12013
|
+
WordGroupType["TableRowEnd"] = "TableRowEnd";
|
|
12014
|
+
WordGroupType["Heading"] = "Heading";
|
|
12015
|
+
WordGroupType["Other"] = "Other";
|
|
12016
12016
|
})(WordGroupType || (WordGroupType = {}));
|
|
12017
12017
|
var ModelKind;
|
|
12018
|
-
(function(
|
|
12019
|
-
|
|
12020
|
-
|
|
12018
|
+
(function(ModelKind) {
|
|
12019
|
+
ModelKind["Extractor"] = "Extractor";
|
|
12020
|
+
ModelKind["Classifier"] = "Classifier";
|
|
12021
12021
|
})(ModelKind || (ModelKind = {}));
|
|
12022
12022
|
var ModelType;
|
|
12023
|
-
(function(
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
|
|
12023
|
+
(function(ModelType) {
|
|
12024
|
+
ModelType["IXP"] = "IXP";
|
|
12025
|
+
ModelType["Modern"] = "Modern";
|
|
12026
|
+
ModelType["Predefined"] = "Predefined";
|
|
12027
12027
|
})(ModelType || (ModelType = {}));
|
|
12028
12028
|
var ErrorSeverity;
|
|
12029
|
-
(function(
|
|
12030
|
-
|
|
12031
|
-
|
|
12032
|
-
|
|
12029
|
+
(function(ErrorSeverity) {
|
|
12030
|
+
ErrorSeverity["Info"] = "Info";
|
|
12031
|
+
ErrorSeverity["Warning"] = "Warning";
|
|
12032
|
+
ErrorSeverity["Error"] = "Error";
|
|
12033
12033
|
})(ErrorSeverity || (ErrorSeverity = {}));
|
|
12034
12034
|
var ClassifierDocumentTypeType;
|
|
12035
|
-
(function(
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12035
|
+
(function(ClassifierDocumentTypeType) {
|
|
12036
|
+
ClassifierDocumentTypeType["FormsAi"] = "FormsAi";
|
|
12037
|
+
ClassifierDocumentTypeType["SemiStructuredAi"] = "SemiStructuredAi";
|
|
12038
|
+
ClassifierDocumentTypeType["Helix"] = "Helix";
|
|
12039
|
+
ClassifierDocumentTypeType["Unknown"] = "Unknown";
|
|
12040
12040
|
})(ClassifierDocumentTypeType || (ClassifierDocumentTypeType = {}));
|
|
12041
12041
|
var CreateTaskPriority;
|
|
12042
|
-
(function(
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12042
|
+
(function(CreateTaskPriority) {
|
|
12043
|
+
CreateTaskPriority["Low"] = "Low";
|
|
12044
|
+
CreateTaskPriority["Medium"] = "Medium";
|
|
12045
|
+
CreateTaskPriority["High"] = "High";
|
|
12046
|
+
CreateTaskPriority["Critical"] = "Critical";
|
|
12047
12047
|
})(CreateTaskPriority || (CreateTaskPriority = {}));
|
|
12048
12048
|
var GptFieldType;
|
|
12049
|
-
(function(
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12049
|
+
(function(GptFieldType) {
|
|
12050
|
+
GptFieldType["Address"] = "Address";
|
|
12051
|
+
GptFieldType["Boolean"] = "Boolean";
|
|
12052
|
+
GptFieldType["Date"] = "Date";
|
|
12053
|
+
GptFieldType["Name"] = "Name";
|
|
12054
|
+
GptFieldType["Number"] = "Number";
|
|
12055
|
+
GptFieldType["Text"] = "Text";
|
|
12056
12056
|
})(GptFieldType || (GptFieldType = {}));
|
|
12057
12057
|
var JobStatus;
|
|
12058
|
-
(function(
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12058
|
+
(function(JobStatus) {
|
|
12059
|
+
JobStatus["Succeeded"] = "Succeeded";
|
|
12060
|
+
JobStatus["Failed"] = "Failed";
|
|
12061
|
+
JobStatus["Running"] = "Running";
|
|
12062
|
+
JobStatus["NotStarted"] = "NotStarted";
|
|
12063
12063
|
})(JobStatus || (JobStatus = {}));
|
|
12064
12064
|
var ValidationDisplayMode;
|
|
12065
|
-
(function(
|
|
12066
|
-
|
|
12067
|
-
|
|
12065
|
+
(function(ValidationDisplayMode) {
|
|
12066
|
+
ValidationDisplayMode["Classic"] = "Classic";
|
|
12067
|
+
ValidationDisplayMode["Compact"] = "Compact";
|
|
12068
12068
|
})(ValidationDisplayMode || (ValidationDisplayMode = {}));
|
|
12069
12069
|
var ResultsDataSource;
|
|
12070
|
-
(function(
|
|
12071
|
-
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
|
|
12070
|
+
(function(ResultsDataSource) {
|
|
12071
|
+
ResultsDataSource["Automatic"] = "Automatic";
|
|
12072
|
+
ResultsDataSource["Manual"] = "Manual";
|
|
12073
|
+
ResultsDataSource["ManuallyChanged"] = "ManuallyChanged";
|
|
12074
|
+
ResultsDataSource["Defaulted"] = "Defaulted";
|
|
12075
|
+
ResultsDataSource["External"] = "External";
|
|
12076
12076
|
})(ResultsDataSource || (ResultsDataSource = {}));
|
|
12077
12077
|
var ComparisonOperator;
|
|
12078
|
-
(function(
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12078
|
+
(function(ComparisonOperator) {
|
|
12079
|
+
ComparisonOperator["Equals"] = "Equals";
|
|
12080
|
+
ComparisonOperator["NotEquals"] = "NotEquals";
|
|
12081
|
+
ComparisonOperator["Greater"] = "Greater";
|
|
12082
|
+
ComparisonOperator["Less"] = "Less";
|
|
12083
|
+
ComparisonOperator["GreaterOrEqual"] = "GreaterOrEqual";
|
|
12084
|
+
ComparisonOperator["LessOrEqual"] = "LessOrEqual";
|
|
12085
12085
|
})(ComparisonOperator || (ComparisonOperator = {}));
|
|
12086
12086
|
var Criticality;
|
|
12087
|
-
(function(
|
|
12088
|
-
|
|
12089
|
-
|
|
12087
|
+
(function(Criticality) {
|
|
12088
|
+
Criticality["Must"] = "Must";
|
|
12089
|
+
Criticality["Should"] = "Should";
|
|
12090
12090
|
})(Criticality || (Criticality = {}));
|
|
12091
12091
|
var FieldType;
|
|
12092
|
-
(function(
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12092
|
+
(function(FieldType) {
|
|
12093
|
+
FieldType["Text"] = "Text";
|
|
12094
|
+
FieldType["Number"] = "Number";
|
|
12095
|
+
FieldType["Date"] = "Date";
|
|
12096
|
+
FieldType["Name"] = "Name";
|
|
12097
|
+
FieldType["Address"] = "Address";
|
|
12098
|
+
FieldType["Keyword"] = "Keyword";
|
|
12099
|
+
FieldType["Set"] = "Set";
|
|
12100
|
+
FieldType["Boolean"] = "Boolean";
|
|
12101
|
+
FieldType["Table"] = "Table";
|
|
12102
|
+
FieldType["Internal"] = "Internal";
|
|
12103
|
+
FieldType["FieldGroup"] = "FieldGroup";
|
|
12104
|
+
FieldType["MonetaryQuantity"] = "MonetaryQuantity";
|
|
12105
12105
|
})(FieldType || (FieldType = {}));
|
|
12106
12106
|
var LogicalOperator;
|
|
12107
|
-
(function(
|
|
12108
|
-
|
|
12109
|
-
|
|
12107
|
+
(function(LogicalOperator) {
|
|
12108
|
+
LogicalOperator["AND"] = "AND";
|
|
12109
|
+
LogicalOperator["OR"] = "OR";
|
|
12110
12110
|
})(LogicalOperator || (LogicalOperator = {}));
|
|
12111
12111
|
var RuleType;
|
|
12112
|
-
(function(
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12112
|
+
(function(RuleType) {
|
|
12113
|
+
RuleType["Mandatory"] = "Mandatory";
|
|
12114
|
+
RuleType["PossibleValues"] = "PossibleValues";
|
|
12115
|
+
RuleType["Regex"] = "Regex";
|
|
12116
|
+
RuleType["StartsWith"] = "StartsWith";
|
|
12117
|
+
RuleType["EndsWith"] = "EndsWith";
|
|
12118
|
+
RuleType["FixedLength"] = "FixedLength";
|
|
12119
|
+
RuleType["IsNumeric"] = "IsNumeric";
|
|
12120
|
+
RuleType["IsDate"] = "IsDate";
|
|
12121
|
+
RuleType["IsEmail"] = "IsEmail";
|
|
12122
|
+
RuleType["Contains"] = "Contains";
|
|
12123
|
+
RuleType["Expression"] = "Expression";
|
|
12124
|
+
RuleType["TableExpression"] = "TableExpression";
|
|
12125
|
+
RuleType["IsEmpty"] = "IsEmpty";
|
|
12126
12126
|
})(RuleType || (RuleType = {}));
|
|
12127
12127
|
var ActionStatus;
|
|
12128
|
-
(function(
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12128
|
+
(function(ActionStatus) {
|
|
12129
|
+
ActionStatus["Unassigned"] = "Unassigned";
|
|
12130
|
+
ActionStatus["Pending"] = "Pending";
|
|
12131
|
+
ActionStatus["Completed"] = "Completed";
|
|
12132
12132
|
})(ActionStatus || (ActionStatus = {}));
|
|
12133
12133
|
var PolicyEvaluationResult;
|
|
12134
|
-
(function(
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12134
|
+
(function(PolicyEvaluationResult) {
|
|
12135
|
+
PolicyEvaluationResult["Allow"] = "Allow";
|
|
12136
|
+
PolicyEvaluationResult["Deny"] = "Deny";
|
|
12137
|
+
PolicyEvaluationResult["SimulatedAllow"] = "SimulatedAllow";
|
|
12138
|
+
PolicyEvaluationResult["SimulatedDeny"] = "SimulatedDeny";
|
|
12139
12139
|
})(PolicyEvaluationResult || (PolicyEvaluationResult = {}));
|
|
12140
12140
|
var PlatformSettingKey;
|
|
12141
|
-
(function(
|
|
12142
|
-
|
|
12143
|
-
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12141
|
+
(function(PlatformSettingKey) {
|
|
12142
|
+
PlatformSettingKey["UserLanguage"] = "UserLanguage.Language";
|
|
12143
|
+
PlatformSettingKey["UserLanguageDate"] = "UserLanguage.Date";
|
|
12144
|
+
PlatformSettingKey["UserTheme"] = "UserTheme.Theme";
|
|
12145
|
+
PlatformSettingKey["UserAccessibility"] = "UserAccessibility.Accessibility";
|
|
12146
|
+
PlatformSettingKey["UserAlert"] = "UserAlert.AlertDuration";
|
|
12147
|
+
PlatformSettingKey["UserCaseAppOrder"] = "UserCase.AppOrderByTenant";
|
|
12148
|
+
PlatformSettingKey["UserCasePinnedInstancesByTenant"] = "UserCase.PinnedInstancesByTenant";
|
|
12149
|
+
PlatformSettingKey["UserCaseInstancesTableFiltersByTenant"] = "UserCase.InstancesTableFiltersByTenant";
|
|
12150
12150
|
})(PlatformSettingKey || (PlatformSettingKey = {}));
|
|
12151
12151
|
var PlatformUserType;
|
|
12152
|
-
(function(
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12152
|
+
(function(PlatformUserType) {
|
|
12153
|
+
PlatformUserType["User"] = "user";
|
|
12154
|
+
PlatformUserType["Robot"] = "robot";
|
|
12155
|
+
PlatformUserType["DirectoryUser"] = "directoryUser";
|
|
12156
|
+
PlatformUserType["DirectoryGroup"] = "directoryGroup";
|
|
12157
|
+
PlatformUserType["RobotAccount"] = "robotAccount";
|
|
12158
|
+
PlatformUserType["Application"] = "application";
|
|
12159
12159
|
})(PlatformUserType || (PlatformUserType = {}));
|
|
12160
12160
|
var PlatformUserCategory;
|
|
12161
|
-
(function(
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12161
|
+
(function(PlatformUserCategory) {
|
|
12162
|
+
PlatformUserCategory["Local"] = "local";
|
|
12163
|
+
PlatformUserCategory["LinkedLocal"] = "linkedLocal";
|
|
12164
|
+
PlatformUserCategory["Directory"] = "directory";
|
|
12165
12165
|
})(PlatformUserCategory || (PlatformUserCategory = {}));
|
|
12166
12166
|
var PlatformUserSortField;
|
|
12167
|
-
(function(
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12167
|
+
(function(PlatformUserSortField) {
|
|
12168
|
+
PlatformUserSortField["Id"] = "Id";
|
|
12169
|
+
PlatformUserSortField["UserName"] = "UserName";
|
|
12170
|
+
PlatformUserSortField["Email"] = "Email";
|
|
12171
|
+
PlatformUserSortField["EmailConfirmed"] = "EmailConfirmed";
|
|
12172
|
+
PlatformUserSortField["Name"] = "Name";
|
|
12173
|
+
PlatformUserSortField["Surname"] = "Surname";
|
|
12174
|
+
PlatformUserSortField["DisplayName"] = "DisplayName";
|
|
12175
|
+
PlatformUserSortField["CreatedTime"] = "CreationTime";
|
|
12176
|
+
PlatformUserSortField["LastModifiedTime"] = "LastModificationTime";
|
|
12177
|
+
PlatformUserSortField["LastLoginTime"] = "LastLoginTime";
|
|
12178
|
+
PlatformUserSortField["IsActive"] = "IsActive";
|
|
12179
|
+
PlatformUserSortField["Type"] = "Type";
|
|
12180
|
+
PlatformUserSortField["Category"] = "Category";
|
|
12181
|
+
PlatformUserSortField["InvitationAccepted"] = "InvitationAccepted";
|
|
12182
12182
|
})(PlatformUserSortField || (PlatformUserSortField = {}));
|
|
12183
12183
|
var PlatformUserSortOrder;
|
|
12184
|
-
(function(
|
|
12185
|
-
|
|
12186
|
-
|
|
12184
|
+
(function(PlatformUserSortOrder) {
|
|
12185
|
+
PlatformUserSortOrder["Ascending"] = "asc";
|
|
12186
|
+
PlatformUserSortOrder["Descending"] = "desc";
|
|
12187
12187
|
})(PlatformUserSortOrder || (PlatformUserSortOrder = {}));
|
|
12188
12188
|
var PlatformRoleType;
|
|
12189
|
-
(function(
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
|
|
12189
|
+
(function(PlatformRoleType) {
|
|
12190
|
+
PlatformRoleType["BuiltIn"] = "BUILTIN";
|
|
12191
|
+
PlatformRoleType["Platform"] = "PLATFORM";
|
|
12192
|
+
PlatformRoleType["Custom"] = "CUSTOM";
|
|
12193
12193
|
})(PlatformRoleType || (PlatformRoleType = {}));
|
|
12194
12194
|
var PlatformRoleScopeType;
|
|
12195
|
-
(function(
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12195
|
+
(function(PlatformRoleScopeType) {
|
|
12196
|
+
PlatformRoleScopeType["Organization"] = "ORGANIZATION";
|
|
12197
|
+
PlatformRoleScopeType["Tenant"] = "TENANT";
|
|
12198
|
+
PlatformRoleScopeType["Project"] = "PROJECT";
|
|
12199
|
+
PlatformRoleScopeType["Process"] = "PROCESS";
|
|
12200
|
+
PlatformRoleScopeType["App"] = "APP";
|
|
12201
|
+
PlatformRoleScopeType["Mixed"] = "MIXED";
|
|
12202
12202
|
})(PlatformRoleScopeType || (PlatformRoleScopeType = {}));
|
|
12203
12203
|
var PlatformActionScopeType;
|
|
12204
|
-
(function(
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12204
|
+
(function(PlatformActionScopeType) {
|
|
12205
|
+
PlatformActionScopeType["Any"] = "ANY";
|
|
12206
|
+
PlatformActionScopeType["None"] = "NONE";
|
|
12207
|
+
PlatformActionScopeType["Organization"] = "ORGANIZATION";
|
|
12208
|
+
PlatformActionScopeType["Tenant"] = "TENANT";
|
|
12209
|
+
PlatformActionScopeType["Folder"] = "FOLDER";
|
|
12210
|
+
PlatformActionScopeType["Project"] = "PROJECT";
|
|
12211
|
+
PlatformActionScopeType["Process"] = "PROCESS";
|
|
12212
12212
|
})(PlatformActionScopeType || (PlatformActionScopeType = {}));
|
|
12213
12213
|
var PlatformPrincipalType;
|
|
12214
|
-
(function(
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12214
|
+
(function(PlatformPrincipalType) {
|
|
12215
|
+
PlatformPrincipalType["User"] = "User";
|
|
12216
|
+
PlatformPrincipalType["Group"] = "Group";
|
|
12217
|
+
PlatformPrincipalType["ExternalApplication"] = "ExternalApplication";
|
|
12218
|
+
PlatformPrincipalType["Robot"] = "Robot";
|
|
12219
12219
|
})(PlatformPrincipalType || (PlatformPrincipalType = {}));
|
|
12220
12220
|
var PlatformRoleSortField;
|
|
12221
|
-
(function(
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12221
|
+
(function(PlatformRoleSortField) {
|
|
12222
|
+
PlatformRoleSortField["Id"] = "Id";
|
|
12223
|
+
PlatformRoleSortField["Name"] = "OriginalRoleName";
|
|
12224
|
+
PlatformRoleSortField["UniqueName"] = "UniqueName";
|
|
12225
|
+
PlatformRoleSortField["Description"] = "Description";
|
|
12226
|
+
PlatformRoleSortField["Type"] = "Type";
|
|
12227
|
+
PlatformRoleSortField["ScopeType"] = "ScopeType";
|
|
12228
|
+
PlatformRoleSortField["OrganizationId"] = "OrganizationId";
|
|
12229
|
+
PlatformRoleSortField["TenantId"] = "TenantId";
|
|
12230
|
+
PlatformRoleSortField["OwnerService"] = "OwnerService";
|
|
12231
|
+
PlatformRoleSortField["OwnerServiceId"] = "OwnerServiceId";
|
|
12232
|
+
PlatformRoleSortField["CreatedBy"] = "CreatedBy";
|
|
12233
|
+
PlatformRoleSortField["CreatedTime"] = "CreatedOn";
|
|
12234
|
+
PlatformRoleSortField["UpdatedBy"] = "UpdatedBy";
|
|
12235
|
+
PlatformRoleSortField["UpdatedTime"] = "UpdatedOn";
|
|
12236
12236
|
})(PlatformRoleSortField || (PlatformRoleSortField = {}));
|
|
12237
12237
|
var PlatformRoleSortOrder;
|
|
12238
|
-
(function(
|
|
12239
|
-
|
|
12240
|
-
|
|
12238
|
+
(function(PlatformRoleSortOrder) {
|
|
12239
|
+
PlatformRoleSortOrder["Ascending"] = "Asc";
|
|
12240
|
+
PlatformRoleSortOrder["Descending"] = "Desc";
|
|
12241
12241
|
})(PlatformRoleSortOrder || (PlatformRoleSortOrder = {}));
|
|
12242
12242
|
var PlatformGroupType;
|
|
12243
|
-
(function(
|
|
12244
|
-
|
|
12245
|
-
|
|
12243
|
+
(function(PlatformGroupType) {
|
|
12244
|
+
PlatformGroupType["BuiltIn"] = "builtIn";
|
|
12245
|
+
PlatformGroupType["Custom"] = "custom";
|
|
12246
12246
|
})(PlatformGroupType || (PlatformGroupType = {}));
|
|
12247
12247
|
var LifeCycleStage;
|
|
12248
|
-
(function(
|
|
12249
|
-
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
-
|
|
12248
|
+
(function(LifeCycleStage) {
|
|
12249
|
+
LifeCycleStage["PREVIEW"] = "PREVIEW";
|
|
12250
|
+
LifeCycleStage["GA"] = "GA";
|
|
12251
|
+
LifeCycleStage["DEPRECATED"] = "DEPRECATED";
|
|
12252
|
+
LifeCycleStage["CUSTOM"] = "CUSTOM";
|
|
12253
12253
|
})(LifeCycleStage || (LifeCycleStage = {}));
|
|
12254
12254
|
var SpanStatus;
|
|
12255
|
-
(function(
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12255
|
+
(function(SpanStatus) {
|
|
12256
|
+
SpanStatus["Unset"] = "Unset";
|
|
12257
|
+
SpanStatus["Ok"] = "Ok";
|
|
12258
|
+
SpanStatus["Error"] = "Error";
|
|
12259
|
+
SpanStatus["Running"] = "Running";
|
|
12260
|
+
SpanStatus["Restricted"] = "Restricted";
|
|
12261
|
+
SpanStatus["Cancelled"] = "Cancelled";
|
|
12262
12262
|
})(SpanStatus || (SpanStatus = {}));
|
|
12263
12263
|
var SpanSource;
|
|
12264
|
-
(function(
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12277
|
-
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
|
|
12264
|
+
(function(SpanSource) {
|
|
12265
|
+
SpanSource["Testing"] = "Testing";
|
|
12266
|
+
SpanSource["Agents"] = "Agents";
|
|
12267
|
+
SpanSource["ProcessOrchestration"] = "ProcessOrchestration";
|
|
12268
|
+
SpanSource["ApiWorkflows"] = "ApiWorkflows";
|
|
12269
|
+
SpanSource["Robots"] = "Robots";
|
|
12270
|
+
SpanSource["ConversationalAgentsService"] = "ConversationalAgentsService";
|
|
12271
|
+
SpanSource["IntegrationServiceTrigger"] = "IntegrationServiceTrigger";
|
|
12272
|
+
SpanSource["Playground"] = "Playground";
|
|
12273
|
+
SpanSource["Governance"] = "Governance";
|
|
12274
|
+
SpanSource["IXPUnstructuredAndComplexDocuments"] = "IXPUnstructuredAndComplexDocuments";
|
|
12275
|
+
SpanSource["CodedAgents"] = "CodedAgents";
|
|
12276
|
+
SpanSource["IXPCommunicationsMining"] = "IXPCommunicationsMining";
|
|
12277
|
+
SpanSource["EnterpriseContextService"] = "EnterpriseContextService";
|
|
12278
|
+
SpanSource["MCP"] = "MCP";
|
|
12279
|
+
SpanSource["A2A"] = "A2A";
|
|
12280
|
+
SpanSource["Serverless"] = "Serverless";
|
|
12281
12281
|
})(SpanSource || (SpanSource = {}));
|
|
12282
12282
|
var SpanVerbosityLevel;
|
|
12283
|
-
(function(
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12283
|
+
(function(SpanVerbosityLevel) {
|
|
12284
|
+
SpanVerbosityLevel["Verbose"] = "Verbose";
|
|
12285
|
+
SpanVerbosityLevel["Trace"] = "Trace";
|
|
12286
|
+
SpanVerbosityLevel["Information"] = "Information";
|
|
12287
|
+
SpanVerbosityLevel["Warning"] = "Warning";
|
|
12288
|
+
SpanVerbosityLevel["Error"] = "Error";
|
|
12289
|
+
SpanVerbosityLevel["Critical"] = "Critical";
|
|
12290
|
+
SpanVerbosityLevel["Off"] = "Off";
|
|
12291
12291
|
})(SpanVerbosityLevel || (SpanVerbosityLevel = {}));
|
|
12292
12292
|
var SpanExecutionType;
|
|
12293
|
-
(function(
|
|
12294
|
-
|
|
12295
|
-
|
|
12293
|
+
(function(SpanExecutionType) {
|
|
12294
|
+
SpanExecutionType["Debug"] = "Debug";
|
|
12295
|
+
SpanExecutionType["Runtime"] = "Runtime";
|
|
12296
12296
|
})(SpanExecutionType || (SpanExecutionType = {}));
|
|
12297
12297
|
var SpanPermissionStatus;
|
|
12298
|
-
(function(
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
|
|
12298
|
+
(function(SpanPermissionStatus) {
|
|
12299
|
+
SpanPermissionStatus["Allow"] = "Allow";
|
|
12300
|
+
SpanPermissionStatus["PartialBlock"] = "PartialBlock";
|
|
12301
|
+
SpanPermissionStatus["Block"] = "Block";
|
|
12302
12302
|
})(SpanPermissionStatus || (SpanPermissionStatus = {}));
|
|
12303
12303
|
var SpanAttachmentProvider;
|
|
12304
|
-
(function(
|
|
12305
|
-
|
|
12306
|
-
|
|
12304
|
+
(function(SpanAttachmentProvider) {
|
|
12305
|
+
SpanAttachmentProvider["Orchestrator"] = "Orchestrator";
|
|
12306
|
+
SpanAttachmentProvider["LLMOps"] = "LLMOps";
|
|
12307
12307
|
})(SpanAttachmentProvider || (SpanAttachmentProvider = {}));
|
|
12308
12308
|
var SpanAttachmentDirection;
|
|
12309
|
-
(function(
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12309
|
+
(function(SpanAttachmentDirection) {
|
|
12310
|
+
SpanAttachmentDirection["None"] = "None";
|
|
12311
|
+
SpanAttachmentDirection["In"] = "In";
|
|
12312
|
+
SpanAttachmentDirection["Out"] = "Out";
|
|
12313
12313
|
})(SpanAttachmentDirection || (SpanAttachmentDirection = {}));
|
|
12314
12314
|
var AgentGovernanceMode;
|
|
12315
|
-
(function(
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12315
|
+
(function(AgentGovernanceMode) {
|
|
12316
|
+
AgentGovernanceMode["Audit"] = "AUDIT";
|
|
12317
|
+
AgentGovernanceMode["Enforce"] = "ENFORCE";
|
|
12318
|
+
AgentGovernanceMode["Unknown"] = "Unknown";
|
|
12319
12319
|
})(AgentGovernanceMode || (AgentGovernanceMode = {}));
|
|
12320
12320
|
var AgentGovernanceVerdict;
|
|
12321
|
-
(function(
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12321
|
+
(function(AgentGovernanceVerdict) {
|
|
12322
|
+
AgentGovernanceVerdict["Allow"] = "ALLOW";
|
|
12323
|
+
AgentGovernanceVerdict["Deny"] = "DENY";
|
|
12324
|
+
AgentGovernanceVerdict["Unknown"] = "Unknown";
|
|
12325
12325
|
})(AgentGovernanceVerdict || (AgentGovernanceVerdict = {}));
|
|
12326
12326
|
var AgentGovernanceSection;
|
|
12327
|
-
(function(
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12327
|
+
(function(AgentGovernanceSection) {
|
|
12328
|
+
AgentGovernanceSection["Totals"] = "totals";
|
|
12329
|
+
AgentGovernanceSection["Hook"] = "hook";
|
|
12330
|
+
AgentGovernanceSection["Agent"] = "agent";
|
|
12331
|
+
AgentGovernanceSection["Policy"] = "policy";
|
|
12332
|
+
AgentGovernanceSection["Pack"] = "pack";
|
|
12333
|
+
AgentGovernanceSection["Action"] = "action";
|
|
12334
|
+
AgentGovernanceSection["Mode"] = "mode";
|
|
12335
12335
|
})(AgentGovernanceSection || (AgentGovernanceSection = {}));
|
|
12336
12336
|
var HOST_KEY = Symbol.for("uipath.host.v1");
|
|
12337
12337
|
|
|
12338
12338
|
// src/api/create-sdk.ts
|
|
12339
12339
|
var createSdk = async () => {
|
|
12340
|
-
const
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
baseUrl: status.baseUrl,
|
|
12347
|
-
orgName: status.organizationName,
|
|
12348
|
-
tenantName: status.tenantName
|
|
12340
|
+
const auth = await getAuthContext();
|
|
12341
|
+
return new UiPath({
|
|
12342
|
+
secret: auth.accessToken,
|
|
12343
|
+
baseUrl: auth.baseUrl,
|
|
12344
|
+
orgName: auth.organizationName,
|
|
12345
|
+
tenantName: auth.tenantName
|
|
12349
12346
|
});
|
|
12350
12347
|
};
|
|
12351
12348
|
|
|
@@ -12358,6 +12355,52 @@ var parsePositiveInt = (optionName) => {
|
|
|
12358
12355
|
};
|
|
12359
12356
|
|
|
12360
12357
|
// src/commands/agents.ts
|
|
12358
|
+
var SAMPLE_AGENT = {
|
|
12359
|
+
id: 1234,
|
|
12360
|
+
releaseKey: "a1b2c3d4-0000-0000-0000-000000000101",
|
|
12361
|
+
name: "Invoice Assistant",
|
|
12362
|
+
description: "Answers questions about vendor invoices",
|
|
12363
|
+
processVersion: "1.0.3",
|
|
12364
|
+
processKey: "InvoiceAssistant",
|
|
12365
|
+
folderId: 42,
|
|
12366
|
+
feedId: "a1b2c3d4-0000-0000-0000-000000000201",
|
|
12367
|
+
createdTime: "2026-09-14T08:30:00Z"
|
|
12368
|
+
};
|
|
12369
|
+
var AGENTS_LIST_EXAMPLES = [
|
|
12370
|
+
{
|
|
12371
|
+
Description: "List the conversational agents you can see.",
|
|
12372
|
+
Command: "uip conversational agents list",
|
|
12373
|
+
Output: { Code: "ConversationalAgentList", Data: [SAMPLE_AGENT] }
|
|
12374
|
+
},
|
|
12375
|
+
{
|
|
12376
|
+
Description: "List only the agents in one folder.",
|
|
12377
|
+
Command: "uip conversational agents list --folder-id 42",
|
|
12378
|
+
Output: { Code: "ConversationalAgentList", Data: [SAMPLE_AGENT] }
|
|
12379
|
+
}
|
|
12380
|
+
];
|
|
12381
|
+
var AGENTS_GET_EXAMPLES = [
|
|
12382
|
+
{
|
|
12383
|
+
Description: "Get an agent's details, including its welcome text and starting prompts.",
|
|
12384
|
+
Command: "uip conversational agents get --release-id 1234 --folder-id 42",
|
|
12385
|
+
Output: {
|
|
12386
|
+
Code: "ConversationalAgent",
|
|
12387
|
+
Data: {
|
|
12388
|
+
...SAMPLE_AGENT,
|
|
12389
|
+
appearance: {
|
|
12390
|
+
welcomeTitle: "Invoice Assistant",
|
|
12391
|
+
welcomeDescription: "Ask me about any vendor invoice.",
|
|
12392
|
+
startingPrompts: [
|
|
12393
|
+
{
|
|
12394
|
+
id: "p1",
|
|
12395
|
+
displayPrompt: "Show unpaid invoices",
|
|
12396
|
+
actualPrompt: "List the unpaid invoices."
|
|
12397
|
+
}
|
|
12398
|
+
]
|
|
12399
|
+
}
|
|
12400
|
+
}
|
|
12401
|
+
}
|
|
12402
|
+
}
|
|
12403
|
+
];
|
|
12361
12404
|
var toCliAgentFromList = (agent) => ({
|
|
12362
12405
|
id: agent.id,
|
|
12363
12406
|
releaseKey: agent.releaseKey,
|
|
@@ -12375,7 +12418,7 @@ var toCliAgent = (agent) => ({
|
|
|
12375
12418
|
});
|
|
12376
12419
|
var registerAgentsCommand = (program) => {
|
|
12377
12420
|
const agents = program.command("agents").description("Inspect conversational agent releases.");
|
|
12378
|
-
agents.command("list").description("List conversational agents").option("--folder-id <id>", "Filter conversational agents by folder", parsePositiveInt("--folder-id")).trackedAction(processContext, async (options) => {
|
|
12421
|
+
agents.command("list").description("List conversational agents").option("--folder-id <id>", "Filter conversational agents by folder", parsePositiveInt("--folder-id")).examples(AGENTS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
12379
12422
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
12380
12423
|
if (sdkError) {
|
|
12381
12424
|
OutputFormatter.error({
|
|
@@ -12386,11 +12429,11 @@ var registerAgentsCommand = (program) => {
|
|
|
12386
12429
|
processContext.exit(1);
|
|
12387
12430
|
return;
|
|
12388
12431
|
}
|
|
12389
|
-
const { ConversationalAgentService } = await import("./index-
|
|
12432
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12390
12433
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12391
12434
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12392
12435
|
});
|
|
12393
|
-
const [listError,
|
|
12436
|
+
const [listError, agents] = await catchError(conversationalService.getAll(options.folderId));
|
|
12394
12437
|
if (listError) {
|
|
12395
12438
|
OutputFormatter.error({
|
|
12396
12439
|
Result: RESULTS.Failure,
|
|
@@ -12403,10 +12446,10 @@ var registerAgentsCommand = (program) => {
|
|
|
12403
12446
|
OutputFormatter.success({
|
|
12404
12447
|
Result: "Success",
|
|
12405
12448
|
Code: "ConversationalAgentList",
|
|
12406
|
-
Data:
|
|
12449
|
+
Data: agents.map(toCliAgentFromList)
|
|
12407
12450
|
}, { preserveDataKeys: true });
|
|
12408
12451
|
});
|
|
12409
|
-
agents.command("get").description("Get conversational agent details by release ID").requiredOption("--release-id <id>", "Agent release ID", parsePositiveInt("--release-id")).requiredOption("--folder-id <id>", "Folder ID containing the agent", parsePositiveInt("--folder-id")).trackedAction(processContext, async (options) => {
|
|
12452
|
+
agents.command("get").description("Get conversational agent details by release ID").requiredOption("--release-id <id>", "Agent release ID", parsePositiveInt("--release-id")).requiredOption("--folder-id <id>", "Folder ID containing the agent", parsePositiveInt("--folder-id")).examples(AGENTS_GET_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
12410
12453
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
12411
12454
|
if (sdkError) {
|
|
12412
12455
|
OutputFormatter.error({
|
|
@@ -12417,7 +12460,7 @@ var registerAgentsCommand = (program) => {
|
|
|
12417
12460
|
processContext.exit(1);
|
|
12418
12461
|
return;
|
|
12419
12462
|
}
|
|
12420
|
-
const { ConversationalAgentService } = await import("./index-
|
|
12463
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12421
12464
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12422
12465
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12423
12466
|
});
|
|
@@ -12441,6 +12484,28 @@ var registerAgentsCommand = (program) => {
|
|
|
12441
12484
|
|
|
12442
12485
|
// src/commands/chat.ts
|
|
12443
12486
|
import * as readline from "node:readline";
|
|
12487
|
+
var CHAT_EXAMPLES = [
|
|
12488
|
+
{
|
|
12489
|
+
Description: "Send one message, print the agent's reply as plain text, and exit.",
|
|
12490
|
+
Command: 'uip conversational chat a1b2c3d4-0000-0000-0000-000000000301 --message "Which invoices are still unpaid?"',
|
|
12491
|
+
Output: {
|
|
12492
|
+
Code: "Chat",
|
|
12493
|
+
Data: {
|
|
12494
|
+
Message: "Two invoices are unpaid: INV-1042 and INV-1057."
|
|
12495
|
+
}
|
|
12496
|
+
}
|
|
12497
|
+
},
|
|
12498
|
+
{
|
|
12499
|
+
Description: "Chat back and forth from a terminal. Type /exit or /quit, or press Ctrl+C, to end the session.",
|
|
12500
|
+
Command: "uip conversational chat a1b2c3d4-0000-0000-0000-000000000301 --interactive",
|
|
12501
|
+
Output: {
|
|
12502
|
+
Code: "Chat",
|
|
12503
|
+
Data: {
|
|
12504
|
+
Message: "[Session started. Type /exit, /quit, or Ctrl+C to end the session.]"
|
|
12505
|
+
}
|
|
12506
|
+
}
|
|
12507
|
+
}
|
|
12508
|
+
];
|
|
12444
12509
|
var HANDLED = Symbol("handled");
|
|
12445
12510
|
function validateChatOptions(options) {
|
|
12446
12511
|
if (options.message !== undefined && options.message.length === 0) {
|
|
@@ -12609,7 +12674,7 @@ Agent: `);
|
|
|
12609
12674
|
rl.close();
|
|
12610
12675
|
}
|
|
12611
12676
|
var registerChatCommand = (program) => {
|
|
12612
|
-
program.command("chat").description("Interact with an existing conversation in real time.").argument("<conversation-id>", "Conversation UUID").option("-m, --message <text>", "Send a single message and exit after exchange (non-interactive)").trackedAction(processContext, async (conversationId, options) => {
|
|
12677
|
+
program.command("chat").description("Interact with an existing conversation in real time.").argument("<conversation-id>", "Conversation UUID").option("-m, --message <text>", "Send a single message and exit after exchange (non-interactive)").examples(CHAT_EXAMPLES).trackedAction(processContext, async (conversationId, options) => {
|
|
12613
12678
|
if (validateChatOptions(options) === HANDLED)
|
|
12614
12679
|
return;
|
|
12615
12680
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
@@ -12622,7 +12687,7 @@ var registerChatCommand = (program) => {
|
|
|
12622
12687
|
processContext.exit(1);
|
|
12623
12688
|
return;
|
|
12624
12689
|
}
|
|
12625
|
-
const { ConversationalAgentService, MessageRole
|
|
12690
|
+
const { ConversationalAgentService, MessageRole } = await import("./index-764qyyq8.js");
|
|
12626
12691
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12627
12692
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12628
12693
|
});
|
|
@@ -12643,7 +12708,7 @@ var registerChatCommand = (program) => {
|
|
|
12643
12708
|
process.stdout.write(`[Session started. Type /exit, /quit, or Ctrl+C to end the session.]
|
|
12644
12709
|
`);
|
|
12645
12710
|
}
|
|
12646
|
-
const sendAndWait = makeSendAndWait(session,
|
|
12711
|
+
const sendAndWait = makeSendAndWait(session, MessageRole.User);
|
|
12647
12712
|
if (options.message !== undefined) {
|
|
12648
12713
|
await runSingleMessage(options.message, sendAndWait, conversationalService, conversationId);
|
|
12649
12714
|
} else {
|
|
@@ -12654,6 +12719,142 @@ var registerChatCommand = (program) => {
|
|
|
12654
12719
|
};
|
|
12655
12720
|
|
|
12656
12721
|
// src/commands/conversations.ts
|
|
12722
|
+
var CONVERSATION_ID = "a1b2c3d4-0000-0000-0000-000000000301";
|
|
12723
|
+
var SAMPLE_CONVERSATION = {
|
|
12724
|
+
id: CONVERSATION_ID,
|
|
12725
|
+
label: "Q3 invoice questions",
|
|
12726
|
+
autogenerateLabel: false,
|
|
12727
|
+
agentId: 1234,
|
|
12728
|
+
folderId: 42,
|
|
12729
|
+
agentInput: { inline: { region: "EMEA" } },
|
|
12730
|
+
traceId: "a1b2c3d4-0000-0000-0000-000000000401",
|
|
12731
|
+
spanId: "a1b2c3d4-0000-0000-0000-000000000402",
|
|
12732
|
+
createdTime: "2026-10-01T09:15:00Z",
|
|
12733
|
+
lastActivityTime: "2026-10-01T09:20:00Z"
|
|
12734
|
+
};
|
|
12735
|
+
var CONVERSATIONS_CREATE_EXAMPLES = [
|
|
12736
|
+
{
|
|
12737
|
+
Description: "Start a conversation with an agent release and let the service name it after the first exchanges.",
|
|
12738
|
+
Command: "uip conversational conversations create --release-id 1234 --folder-id 42 --autogenerate-label",
|
|
12739
|
+
Output: {
|
|
12740
|
+
Code: "ConversationCreated",
|
|
12741
|
+
Data: {
|
|
12742
|
+
id: CONVERSATION_ID,
|
|
12743
|
+
label: "",
|
|
12744
|
+
autogenerateLabel: true,
|
|
12745
|
+
agentId: 1234,
|
|
12746
|
+
folderId: 42,
|
|
12747
|
+
traceId: SAMPLE_CONVERSATION.traceId,
|
|
12748
|
+
spanId: SAMPLE_CONVERSATION.spanId,
|
|
12749
|
+
createdTime: "2026-10-01T09:15:00Z",
|
|
12750
|
+
lastActivityTime: "2026-10-01T09:15:00Z"
|
|
12751
|
+
}
|
|
12752
|
+
}
|
|
12753
|
+
},
|
|
12754
|
+
{
|
|
12755
|
+
Description: "Start a labeled conversation and pass input the agent's input schema expects.",
|
|
12756
|
+
Command: `uip conversational conversations create --release-id 1234 --folder-id 42 --label "Q3 invoice questions" --agent-input '{"region":"EMEA"}'`,
|
|
12757
|
+
Output: {
|
|
12758
|
+
Code: "ConversationCreated",
|
|
12759
|
+
Data: {
|
|
12760
|
+
...SAMPLE_CONVERSATION,
|
|
12761
|
+
lastActivityTime: "2026-10-01T09:15:00Z"
|
|
12762
|
+
}
|
|
12763
|
+
}
|
|
12764
|
+
}
|
|
12765
|
+
];
|
|
12766
|
+
var CONVERSATIONS_LIST_EXAMPLES = [
|
|
12767
|
+
{
|
|
12768
|
+
Description: "List your newest conversations, five per page. Pass the returned nextCursor to --cursor for the next page.",
|
|
12769
|
+
Command: "uip conversational conversations list --limit 5 --sort-order descending",
|
|
12770
|
+
Output: {
|
|
12771
|
+
Code: "ConversationList",
|
|
12772
|
+
Data: {
|
|
12773
|
+
items: [SAMPLE_CONVERSATION],
|
|
12774
|
+
nextCursor: "eyJvZmZzZXQiOjV9"
|
|
12775
|
+
}
|
|
12776
|
+
}
|
|
12777
|
+
},
|
|
12778
|
+
{
|
|
12779
|
+
Description: "List conversations with one agent whose label contains 'invoice'.",
|
|
12780
|
+
Command: "uip conversational conversations list --agent-id 1234 --label invoice",
|
|
12781
|
+
Output: {
|
|
12782
|
+
Code: "ConversationList",
|
|
12783
|
+
Data: { items: [SAMPLE_CONVERSATION], nextCursor: null }
|
|
12784
|
+
}
|
|
12785
|
+
}
|
|
12786
|
+
];
|
|
12787
|
+
var CONVERSATIONS_GET_EXAMPLES = [
|
|
12788
|
+
{
|
|
12789
|
+
Description: "Get a conversation by its id.",
|
|
12790
|
+
Command: `uip conversational conversations get ${CONVERSATION_ID}`,
|
|
12791
|
+
Output: { Code: "Conversation", Data: SAMPLE_CONVERSATION }
|
|
12792
|
+
}
|
|
12793
|
+
];
|
|
12794
|
+
var CONVERSATIONS_UPDATE_EXAMPLES = [
|
|
12795
|
+
{
|
|
12796
|
+
Description: "Rename a conversation and stop the service from renaming it.",
|
|
12797
|
+
Command: `uip conversational conversations update ${CONVERSATION_ID} --label "Q3 invoices (EMEA)" --no-autogenerate-label`,
|
|
12798
|
+
Output: {
|
|
12799
|
+
Code: "ConversationUpdated",
|
|
12800
|
+
Data: {
|
|
12801
|
+
...SAMPLE_CONVERSATION,
|
|
12802
|
+
label: "Q3 invoices (EMEA)"
|
|
12803
|
+
}
|
|
12804
|
+
}
|
|
12805
|
+
},
|
|
12806
|
+
{
|
|
12807
|
+
Description: "Replace the input the agent gets on each exchange.",
|
|
12808
|
+
Command: `uip conversational conversations update ${CONVERSATION_ID} --agent-input '{"region":"APAC"}'`,
|
|
12809
|
+
Output: {
|
|
12810
|
+
Code: "ConversationUpdated",
|
|
12811
|
+
Data: {
|
|
12812
|
+
...SAMPLE_CONVERSATION,
|
|
12813
|
+
agentInput: { inline: { region: "APAC" } }
|
|
12814
|
+
}
|
|
12815
|
+
}
|
|
12816
|
+
}
|
|
12817
|
+
];
|
|
12818
|
+
var CONVERSATIONS_DELETE_EXAMPLES = [
|
|
12819
|
+
{
|
|
12820
|
+
Description: "Delete a conversation. --yes is required; the deleted conversation is returned.",
|
|
12821
|
+
Command: `uip conversational conversations delete ${CONVERSATION_ID} --yes`,
|
|
12822
|
+
Output: { Code: "ConversationDeleted", Data: SAMPLE_CONVERSATION }
|
|
12823
|
+
}
|
|
12824
|
+
];
|
|
12825
|
+
var ATTACHMENTS_UPLOAD_EXAMPLES = [
|
|
12826
|
+
{
|
|
12827
|
+
Description: "Upload a local file to a conversation. Use the returned uri to reference it in messages.",
|
|
12828
|
+
Command: `uip conversational conversations attachments upload ${CONVERSATION_ID} --file ./invoice-1042.pdf`,
|
|
12829
|
+
Output: {
|
|
12830
|
+
Code: "AttachmentUploaded",
|
|
12831
|
+
Data: {
|
|
12832
|
+
uri: "https://example.com/attachments/a1b2c3d4-0000-0000-0000-000000000501",
|
|
12833
|
+
name: "invoice-1042.pdf",
|
|
12834
|
+
mimeType: "application/pdf"
|
|
12835
|
+
}
|
|
12836
|
+
}
|
|
12837
|
+
}
|
|
12838
|
+
];
|
|
12839
|
+
var ATTACHMENTS_GET_URI_EXAMPLES = [
|
|
12840
|
+
{
|
|
12841
|
+
Description: "Get a pre-signed URL to upload a file yourself. Send the file with the returned verb, url and headers.",
|
|
12842
|
+
Command: `uip conversational conversations attachments get-uri ${CONVERSATION_ID} --file-name invoice-1042.pdf`,
|
|
12843
|
+
Output: {
|
|
12844
|
+
Code: "AttachmentUri",
|
|
12845
|
+
Data: {
|
|
12846
|
+
uri: "https://example.com/attachments/a1b2c3d4-0000-0000-0000-000000000501",
|
|
12847
|
+
name: "invoice-1042.pdf",
|
|
12848
|
+
fileUploadAccess: {
|
|
12849
|
+
url: "https://storage.example.com/uploads/invoice-1042.pdf?sig=REDACTED",
|
|
12850
|
+
verb: "PUT",
|
|
12851
|
+
headers: { keys: [], values: [] },
|
|
12852
|
+
requiresAuth: false
|
|
12853
|
+
}
|
|
12854
|
+
}
|
|
12855
|
+
}
|
|
12856
|
+
}
|
|
12857
|
+
];
|
|
12657
12858
|
var toCliConversation = (c) => ({
|
|
12658
12859
|
id: c.id,
|
|
12659
12860
|
label: c.label,
|
|
@@ -12668,7 +12869,7 @@ var toCliConversation = (c) => ({
|
|
|
12668
12869
|
});
|
|
12669
12870
|
var registerConversationsCommand = (program) => {
|
|
12670
12871
|
const conversations = program.command("conversations").description("Manage conversations.");
|
|
12671
|
-
conversations.command("create").description("Create a new conversation against a release").requiredOption("--release-id <id>", "ID of a conversational-enabled release", parsePositiveInt("--release-id")).requiredOption("--folder-id <id>", "Folder ID containing the release", parsePositiveInt("--folder-id")).option("--label <label>", "Conversation label").option("--autogenerate-label", "Enable autogeneration of conversation label after exchanges occur").option("--no-autogenerate-label", "Disable autogeneration of conversation label after exchanges occur").option("--agent-input <json>", "Initial input for the agent (JSON string)").trackedAction(processContext, async (options) => {
|
|
12872
|
+
conversations.command("create").description("Create a new conversation against a release").requiredOption("--release-id <id>", "ID of a conversational-enabled release", parsePositiveInt("--release-id")).requiredOption("--folder-id <id>", "Folder ID containing the release", parsePositiveInt("--folder-id")).option("--label <label>", "Conversation label").option("--autogenerate-label", "Enable autogeneration of conversation label after exchanges occur").option("--no-autogenerate-label", "Disable autogeneration of conversation label after exchanges occur").option("--agent-input <json>", "Initial input for the agent (JSON string)").examples(CONVERSATIONS_CREATE_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
12672
12873
|
let parsedAgentInput;
|
|
12673
12874
|
if (options.agentInput !== undefined) {
|
|
12674
12875
|
const [parseError, parsed] = await catchError(Promise.resolve().then(() => JSON.parse(options.agentInput)));
|
|
@@ -12693,7 +12894,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12693
12894
|
processContext.exit(1);
|
|
12694
12895
|
return;
|
|
12695
12896
|
}
|
|
12696
|
-
const { ConversationalAgentService } = await import("./index-
|
|
12897
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12697
12898
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12698
12899
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12699
12900
|
});
|
|
@@ -12720,7 +12921,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12720
12921
|
Data: toCliConversation(conversation)
|
|
12721
12922
|
}, { preserveDataKeys: true });
|
|
12722
12923
|
});
|
|
12723
|
-
conversations.command("list").description("List all conversations").option("--limit <number>", "Number of conversations per page", parsePositiveInt("--limit")).option("--sort-order <order>", "Sort order (ascending or descending)").option("--cursor <token>", "Pagination cursor for next page").option("--agent-id <id>", "Filter conversations by agent release ID", parsePositiveInt("--agent-id")).option("--agent-key <guid>", "Filter conversations by agent release key").option("--label <substring>", "Filter conversations by label substring (case-insensitive, 1-100 chars)").trackedAction(processContext, async (options) => {
|
|
12924
|
+
conversations.command("list").description("List all conversations").option("--limit <number>", "Number of conversations per page", parsePositiveInt("--limit")).option("--sort-order <order>", "Sort order (ascending or descending)").option("--cursor <token>", "Pagination cursor for next page").option("--agent-id <id>", "Filter conversations by agent release ID", parsePositiveInt("--agent-id")).option("--agent-key <guid>", "Filter conversations by agent release key").option("--label <substring>", "Filter conversations by label substring (case-insensitive, 1-100 chars)").examples(CONVERSATIONS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
12724
12925
|
const listOpts = {};
|
|
12725
12926
|
if (options.limit !== undefined)
|
|
12726
12927
|
listOpts.pageSize = options.limit;
|
|
@@ -12744,7 +12945,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12744
12945
|
processContext.exit(1);
|
|
12745
12946
|
return;
|
|
12746
12947
|
}
|
|
12747
|
-
const { ConversationalAgentService } = await import("./index-
|
|
12948
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12748
12949
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12749
12950
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12750
12951
|
});
|
|
@@ -12767,7 +12968,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12767
12968
|
}
|
|
12768
12969
|
}, { preserveDataKeys: true });
|
|
12769
12970
|
});
|
|
12770
|
-
conversations.command("get").description("Get conversation details by ID").argument("<conversation-id>", "Conversation UUID").trackedAction(processContext, async (conversationId) => {
|
|
12971
|
+
conversations.command("get").description("Get conversation details by ID").argument("<conversation-id>", "Conversation UUID").examples(CONVERSATIONS_GET_EXAMPLES).trackedAction(processContext, async (conversationId) => {
|
|
12771
12972
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
12772
12973
|
if (sdkError) {
|
|
12773
12974
|
OutputFormatter.error({
|
|
@@ -12778,7 +12979,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12778
12979
|
processContext.exit(1);
|
|
12779
12980
|
return;
|
|
12780
12981
|
}
|
|
12781
|
-
const { ConversationalAgentService } = await import("./index-
|
|
12982
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12782
12983
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12783
12984
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12784
12985
|
});
|
|
@@ -12798,7 +12999,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12798
12999
|
Data: toCliConversation(conversation)
|
|
12799
13000
|
}, { preserveDataKeys: true });
|
|
12800
13001
|
});
|
|
12801
|
-
conversations.command("update").description("Update a conversation").argument("<conversation-id>", "Conversation UUID").option("--label <label>", "New conversation label").option("--autogenerate-label", "Autogenerate a conversation label").option("--no-autogenerate-label", "Disable autogenerated conversation label").option("--agent-input <json>", "Updated input for the agent (JSON string)").trackedAction(processContext, async (conversationId, options) => {
|
|
13002
|
+
conversations.command("update").description("Update a conversation").argument("<conversation-id>", "Conversation UUID").option("--label <label>", "New conversation label").option("--autogenerate-label", "Autogenerate a conversation label").option("--no-autogenerate-label", "Disable autogenerated conversation label").option("--agent-input <json>", "Updated input for the agent (JSON string)").examples(CONVERSATIONS_UPDATE_EXAMPLES).trackedAction(processContext, async (conversationId, options) => {
|
|
12802
13003
|
const updateOpts = {};
|
|
12803
13004
|
if (options.label !== undefined)
|
|
12804
13005
|
updateOpts.label = options.label;
|
|
@@ -12836,7 +13037,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12836
13037
|
processContext.exit(1);
|
|
12837
13038
|
return;
|
|
12838
13039
|
}
|
|
12839
|
-
const { ConversationalAgentService } = await import("./index-
|
|
13040
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12840
13041
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12841
13042
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12842
13043
|
});
|
|
@@ -12856,7 +13057,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12856
13057
|
Data: toCliConversation(conversation)
|
|
12857
13058
|
}, { preserveDataKeys: true });
|
|
12858
13059
|
});
|
|
12859
|
-
conversations.command("delete").description("Delete a conversation").argument("<conversation-id>", "Conversation UUID").option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").trackedAction(processContext, async (conversationId, options) => {
|
|
13060
|
+
conversations.command("delete").description("Delete a conversation").argument("<conversation-id>", "Conversation UUID").option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(CONVERSATIONS_DELETE_EXAMPLES).trackedAction(processContext, async (conversationId, options) => {
|
|
12860
13061
|
if (!requireConfirmation(options, `delete conversation '${conversationId}'`))
|
|
12861
13062
|
return;
|
|
12862
13063
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
@@ -12869,7 +13070,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12869
13070
|
processContext.exit(1);
|
|
12870
13071
|
return;
|
|
12871
13072
|
}
|
|
12872
|
-
const { ConversationalAgentService } = await import("./index-
|
|
13073
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12873
13074
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12874
13075
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12875
13076
|
});
|
|
@@ -12890,7 +13091,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12890
13091
|
}, { preserveDataKeys: true });
|
|
12891
13092
|
});
|
|
12892
13093
|
const attachments = conversations.command("attachments").description("Manage conversation attachments");
|
|
12893
|
-
attachments.command("upload").description("Upload a file attachment to a conversation").argument("<conversation-id>", "Conversation UUID").requiredOption("--file <path>", "Path to the file to upload").trackedAction(processContext, async (conversationId, options) => {
|
|
13094
|
+
attachments.command("upload").description("Upload a file attachment to a conversation").argument("<conversation-id>", "Conversation UUID").requiredOption("--file <path>", "Path to the file to upload").examples(ATTACHMENTS_UPLOAD_EXAMPLES).trackedAction(processContext, async (conversationId, options) => {
|
|
12894
13095
|
const fs = getFileSystem();
|
|
12895
13096
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
12896
13097
|
if (sdkError) {
|
|
@@ -12902,7 +13103,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12902
13103
|
processContext.exit(1);
|
|
12903
13104
|
return;
|
|
12904
13105
|
}
|
|
12905
|
-
const { ConversationalAgentService } = await import("./index-
|
|
13106
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12906
13107
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12907
13108
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12908
13109
|
});
|
|
@@ -12934,7 +13135,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12934
13135
|
Data: result
|
|
12935
13136
|
}, { preserveDataKeys: true });
|
|
12936
13137
|
});
|
|
12937
|
-
attachments.command("get-uri").description("Get a pre-signed upload URI for an attachment").argument("<conversation-id>", "Conversation UUID").requiredOption("--file-name <name>", "Name of the file").trackedAction(processContext, async (conversationId, options) => {
|
|
13138
|
+
attachments.command("get-uri").description("Get a pre-signed upload URI for an attachment").argument("<conversation-id>", "Conversation UUID").requiredOption("--file-name <name>", "Name of the file").examples(ATTACHMENTS_GET_URI_EXAMPLES).trackedAction(processContext, async (conversationId, options) => {
|
|
12938
13139
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
12939
13140
|
if (sdkError) {
|
|
12940
13141
|
OutputFormatter.error({
|
|
@@ -12945,7 +13146,7 @@ var registerConversationsCommand = (program) => {
|
|
|
12945
13146
|
processContext.exit(1);
|
|
12946
13147
|
return;
|
|
12947
13148
|
}
|
|
12948
|
-
const { ConversationalAgentService } = await import("./index-
|
|
13149
|
+
const { ConversationalAgentService } = await import("./index-764qyyq8.js");
|
|
12949
13150
|
const conversationalService = new ConversationalAgentService(sdk, {
|
|
12950
13151
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12951
13152
|
});
|
|
@@ -12968,9 +13169,112 @@ var registerConversationsCommand = (program) => {
|
|
|
12968
13169
|
};
|
|
12969
13170
|
|
|
12970
13171
|
// src/commands/exchanges.ts
|
|
13172
|
+
var CONVERSATION_ID2 = "a1b2c3d4-0000-0000-0000-000000000301";
|
|
13173
|
+
var EXCHANGE_ID = "a1b2c3d4-0000-0000-0000-000000000601";
|
|
13174
|
+
var SAMPLE_EXCHANGE = {
|
|
13175
|
+
id: EXCHANGE_ID,
|
|
13176
|
+
exchangeId: EXCHANGE_ID,
|
|
13177
|
+
messages: [
|
|
13178
|
+
{
|
|
13179
|
+
id: "a1b2c3d4-0000-0000-0000-000000000701",
|
|
13180
|
+
messageId: "a1b2c3d4-0000-0000-0000-000000000701",
|
|
13181
|
+
role: "user",
|
|
13182
|
+
contentParts: [
|
|
13183
|
+
{
|
|
13184
|
+
id: "a1b2c3d4-0000-0000-0000-000000000801",
|
|
13185
|
+
contentPartId: "a1b2c3d4-0000-0000-0000-000000000801",
|
|
13186
|
+
mimeType: "text/plain",
|
|
13187
|
+
data: { inline: "Which invoices are still unpaid?" },
|
|
13188
|
+
citations: [],
|
|
13189
|
+
createdTime: "2026-10-01T09:16:00Z",
|
|
13190
|
+
updatedTime: "2026-10-01T09:16:00Z"
|
|
13191
|
+
}
|
|
13192
|
+
],
|
|
13193
|
+
toolCalls: [],
|
|
13194
|
+
interrupts: [],
|
|
13195
|
+
createdTime: "2026-10-01T09:16:00Z",
|
|
13196
|
+
updatedTime: "2026-10-01T09:16:00Z"
|
|
13197
|
+
},
|
|
13198
|
+
{
|
|
13199
|
+
id: "a1b2c3d4-0000-0000-0000-000000000702",
|
|
13200
|
+
messageId: "a1b2c3d4-0000-0000-0000-000000000702",
|
|
13201
|
+
role: "assistant",
|
|
13202
|
+
contentParts: [
|
|
13203
|
+
{
|
|
13204
|
+
id: "a1b2c3d4-0000-0000-0000-000000000802",
|
|
13205
|
+
contentPartId: "a1b2c3d4-0000-0000-0000-000000000802",
|
|
13206
|
+
mimeType: "text/markdown",
|
|
13207
|
+
data: {
|
|
13208
|
+
inline: "Two invoices are unpaid: INV-1042 and INV-1057."
|
|
13209
|
+
},
|
|
13210
|
+
citations: [],
|
|
13211
|
+
createdTime: "2026-10-01T09:16:04Z",
|
|
13212
|
+
updatedTime: "2026-10-01T09:16:04Z"
|
|
13213
|
+
}
|
|
13214
|
+
],
|
|
13215
|
+
toolCalls: [],
|
|
13216
|
+
interrupts: [],
|
|
13217
|
+
createdTime: "2026-10-01T09:16:04Z",
|
|
13218
|
+
updatedTime: "2026-10-01T09:16:04Z"
|
|
13219
|
+
}
|
|
13220
|
+
],
|
|
13221
|
+
createdTime: "2026-10-01T09:16:00Z",
|
|
13222
|
+
updatedTime: "2026-10-01T09:16:04Z"
|
|
13223
|
+
};
|
|
13224
|
+
var EXCHANGES_LIST_EXAMPLES = [
|
|
13225
|
+
{
|
|
13226
|
+
Description: "Read a conversation's history, newest exchange first, with messages in the order they were sent.",
|
|
13227
|
+
Command: `uip conversational exchanges list ${CONVERSATION_ID2} --exchange-sort descending --message-sort ascending`,
|
|
13228
|
+
Output: {
|
|
13229
|
+
Code: "ExchangeList",
|
|
13230
|
+
Data: { items: [SAMPLE_EXCHANGE], nextCursor: null }
|
|
13231
|
+
}
|
|
13232
|
+
},
|
|
13233
|
+
{
|
|
13234
|
+
Description: "Page through exchanges ten at a time. Pass the returned nextCursor to --cursor for the next page.",
|
|
13235
|
+
Command: `uip conversational exchanges list ${CONVERSATION_ID2} --limit 10 --cursor eyJvZmZzZXQiOjEwfQ`,
|
|
13236
|
+
Output: {
|
|
13237
|
+
Code: "ExchangeList",
|
|
13238
|
+
Data: {
|
|
13239
|
+
items: [SAMPLE_EXCHANGE],
|
|
13240
|
+
nextCursor: "eyJvZmZzZXQiOjIwfQ"
|
|
13241
|
+
}
|
|
13242
|
+
}
|
|
13243
|
+
}
|
|
13244
|
+
];
|
|
13245
|
+
var EXCHANGES_GET_EXAMPLES = [
|
|
13246
|
+
{
|
|
13247
|
+
Description: "Get one exchange with all of its messages.",
|
|
13248
|
+
Command: `uip conversational exchanges get ${CONVERSATION_ID2} ${EXCHANGE_ID}`,
|
|
13249
|
+
Output: { Code: "Exchange", Data: SAMPLE_EXCHANGE }
|
|
13250
|
+
},
|
|
13251
|
+
{
|
|
13252
|
+
Description: "Get an exchange with its newest message first.",
|
|
13253
|
+
Command: `uip conversational exchanges get ${CONVERSATION_ID2} ${EXCHANGE_ID} --message-sort descending`,
|
|
13254
|
+
Output: {
|
|
13255
|
+
Code: "Exchange",
|
|
13256
|
+
Data: {
|
|
13257
|
+
...SAMPLE_EXCHANGE,
|
|
13258
|
+
messages: [...SAMPLE_EXCHANGE.messages].reverse()
|
|
13259
|
+
}
|
|
13260
|
+
}
|
|
13261
|
+
}
|
|
13262
|
+
];
|
|
13263
|
+
var EXCHANGES_FEEDBACK_EXAMPLES = [
|
|
13264
|
+
{
|
|
13265
|
+
Description: "Rate an agent's answer as helpful.",
|
|
13266
|
+
Command: `uip conversational exchanges feedback ${CONVERSATION_ID2} ${EXCHANGE_ID} --rating positive`,
|
|
13267
|
+
Output: { Code: "FeedbackCreated", Data: {} }
|
|
13268
|
+
},
|
|
13269
|
+
{
|
|
13270
|
+
Description: "Rate an answer as unhelpful and say why.",
|
|
13271
|
+
Command: `uip conversational exchanges feedback ${CONVERSATION_ID2} ${EXCHANGE_ID} --rating negative --comment "Missed invoice INV-1061"`,
|
|
13272
|
+
Output: { Code: "FeedbackCreated", Data: {} }
|
|
13273
|
+
}
|
|
13274
|
+
];
|
|
12971
13275
|
var registerExchangesCommand = (program) => {
|
|
12972
13276
|
const exchanges = program.command("exchanges").description("Retrieve and give feedback on conversation exchanges.");
|
|
12973
|
-
exchanges.command("list").description("List exchanges for a conversation").argument("<conversation-id>", "Conversation UUID").option("--limit <number>", "Number of exchanges per page", parsePositiveInt("--limit")).option("--exchange-sort <order>", "Sort exchanges (ascending or descending)").option("--message-sort <order>", "Sort messages within exchanges (ascending or descending)").option("--cursor <token>", "Pagination cursor for next page").trackedAction(processContext, async (conversationId, options) => {
|
|
13277
|
+
exchanges.command("list").description("List exchanges for a conversation").argument("<conversation-id>", "Conversation UUID").option("--limit <number>", "Number of exchanges per page", parsePositiveInt("--limit")).option("--exchange-sort <order>", "Sort exchanges (ascending or descending)").option("--message-sort <order>", "Sort messages within exchanges (ascending or descending)").option("--cursor <token>", "Pagination cursor for next page").examples(EXCHANGES_LIST_EXAMPLES).trackedAction(processContext, async (conversationId, options) => {
|
|
12974
13278
|
const listOpts = {};
|
|
12975
13279
|
if (options.limit !== undefined)
|
|
12976
13280
|
listOpts.pageSize = options.limit;
|
|
@@ -12990,7 +13294,7 @@ var registerExchangesCommand = (program) => {
|
|
|
12990
13294
|
processContext.exit(1);
|
|
12991
13295
|
return;
|
|
12992
13296
|
}
|
|
12993
|
-
const { ExchangeService } = await import("./index-
|
|
13297
|
+
const { ExchangeService } = await import("./index-764qyyq8.js");
|
|
12994
13298
|
const exchangeSvc = new ExchangeService(sdk, {
|
|
12995
13299
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
12996
13300
|
});
|
|
@@ -13013,7 +13317,7 @@ var registerExchangesCommand = (program) => {
|
|
|
13013
13317
|
}
|
|
13014
13318
|
}, { preserveDataKeys: true });
|
|
13015
13319
|
});
|
|
13016
|
-
exchanges.command("get").description("Get exchange details with messages").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").option("--message-sort <order>", "Sort messages (ascending or descending)").trackedAction(processContext, async (conversationId, exchangeId, options) => {
|
|
13320
|
+
exchanges.command("get").description("Get exchange details with messages").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").option("--message-sort <order>", "Sort messages (ascending or descending)").examples(EXCHANGES_GET_EXAMPLES).trackedAction(processContext, async (conversationId, exchangeId, options) => {
|
|
13017
13321
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
13018
13322
|
if (sdkError) {
|
|
13019
13323
|
OutputFormatter.error({
|
|
@@ -13024,7 +13328,7 @@ var registerExchangesCommand = (program) => {
|
|
|
13024
13328
|
processContext.exit(1);
|
|
13025
13329
|
return;
|
|
13026
13330
|
}
|
|
13027
|
-
const { ExchangeService } = await import("./index-
|
|
13331
|
+
const { ExchangeService } = await import("./index-764qyyq8.js");
|
|
13028
13332
|
const exchangeSvc = new ExchangeService(sdk, {
|
|
13029
13333
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
13030
13334
|
});
|
|
@@ -13044,7 +13348,7 @@ var registerExchangesCommand = (program) => {
|
|
|
13044
13348
|
Data: exchange
|
|
13045
13349
|
}, { preserveDataKeys: true });
|
|
13046
13350
|
});
|
|
13047
|
-
exchanges.command("feedback").description("Submit feedback for an exchange").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").requiredOption("--rating <rating>", "Feedback rating (positive or negative)").option("--comment <comment>", "Optional feedback comment").trackedAction(processContext, async (conversationId, exchangeId, options) => {
|
|
13351
|
+
exchanges.command("feedback").description("Submit feedback for an exchange").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").requiredOption("--rating <rating>", "Feedback rating (positive or negative)").option("--comment <comment>", "Optional feedback comment").examples(EXCHANGES_FEEDBACK_EXAMPLES).trackedAction(processContext, async (conversationId, exchangeId, options) => {
|
|
13048
13352
|
if (options.rating !== "positive" && options.rating !== "negative") {
|
|
13049
13353
|
OutputFormatter.error({
|
|
13050
13354
|
Result: RESULTS.Failure,
|
|
@@ -13064,12 +13368,12 @@ var registerExchangesCommand = (program) => {
|
|
|
13064
13368
|
processContext.exit(1);
|
|
13065
13369
|
return;
|
|
13066
13370
|
}
|
|
13067
|
-
const { ExchangeService, FeedbackRating
|
|
13371
|
+
const { ExchangeService, FeedbackRating } = await import("./index-764qyyq8.js");
|
|
13068
13372
|
const exchangeSvc = new ExchangeService(sdk, {
|
|
13069
13373
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
13070
13374
|
});
|
|
13071
13375
|
const [fbError, feedback] = await catchError(exchangeSvc.createFeedback(conversationId, exchangeId, {
|
|
13072
|
-
rating: options.rating === "positive" ?
|
|
13376
|
+
rating: options.rating === "positive" ? FeedbackRating.Positive : FeedbackRating.Negative,
|
|
13073
13377
|
comment: options.comment
|
|
13074
13378
|
}));
|
|
13075
13379
|
if (fbError) {
|
|
@@ -13090,9 +13394,48 @@ var registerExchangesCommand = (program) => {
|
|
|
13090
13394
|
};
|
|
13091
13395
|
|
|
13092
13396
|
// src/commands/messages.ts
|
|
13397
|
+
var CONVERSATION_ID3 = "a1b2c3d4-0000-0000-0000-000000000301";
|
|
13398
|
+
var EXCHANGE_ID2 = "a1b2c3d4-0000-0000-0000-000000000601";
|
|
13399
|
+
var MESSAGE_ID = "a1b2c3d4-0000-0000-0000-000000000702";
|
|
13400
|
+
var CONTENT_PART_ID = "a1b2c3d4-0000-0000-0000-000000000802";
|
|
13401
|
+
var SAMPLE_CONTENT_PART = {
|
|
13402
|
+
id: CONTENT_PART_ID,
|
|
13403
|
+
contentPartId: CONTENT_PART_ID,
|
|
13404
|
+
mimeType: "text/markdown",
|
|
13405
|
+
data: { inline: "Two invoices are unpaid: INV-1042 and INV-1057." },
|
|
13406
|
+
citations: [],
|
|
13407
|
+
createdTime: "2026-10-01T09:16:04Z",
|
|
13408
|
+
updatedTime: "2026-10-01T09:16:04Z"
|
|
13409
|
+
};
|
|
13410
|
+
var MESSAGES_GET_EXAMPLES = [
|
|
13411
|
+
{
|
|
13412
|
+
Description: "Get one message with its content parts, tool calls and interrupts.",
|
|
13413
|
+
Command: `uip conversational messages get ${CONVERSATION_ID3} ${EXCHANGE_ID2} ${MESSAGE_ID}`,
|
|
13414
|
+
Output: {
|
|
13415
|
+
Code: "Message",
|
|
13416
|
+
Data: {
|
|
13417
|
+
id: MESSAGE_ID,
|
|
13418
|
+
messageId: MESSAGE_ID,
|
|
13419
|
+
role: "assistant",
|
|
13420
|
+
contentParts: [SAMPLE_CONTENT_PART],
|
|
13421
|
+
toolCalls: [],
|
|
13422
|
+
interrupts: [],
|
|
13423
|
+
createdTime: "2026-10-01T09:16:04Z",
|
|
13424
|
+
updatedTime: "2026-10-01T09:16:04Z"
|
|
13425
|
+
}
|
|
13426
|
+
}
|
|
13427
|
+
}
|
|
13428
|
+
];
|
|
13429
|
+
var MESSAGES_GET_CONTENT_PART_EXAMPLES = [
|
|
13430
|
+
{
|
|
13431
|
+
Description: "Get one content part. Small content comes back inline; large content comes back as a data.uri you fetch yourself.",
|
|
13432
|
+
Command: `uip conversational messages get-content-part ${CONVERSATION_ID3} ${EXCHANGE_ID2} ${MESSAGE_ID} ${CONTENT_PART_ID}`,
|
|
13433
|
+
Output: { Code: "ContentPart", Data: SAMPLE_CONTENT_PART }
|
|
13434
|
+
}
|
|
13435
|
+
];
|
|
13093
13436
|
var registerMessagesCommand = (program) => {
|
|
13094
13437
|
const messages = program.command("messages").description("Retrieve conversation messages.");
|
|
13095
|
-
messages.command("get").description("Get a specific message with content parts").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").argument("<message-id>", "Message UUID").trackedAction(processContext, async (conversationId, exchangeId, messageId) => {
|
|
13438
|
+
messages.command("get").description("Get a specific message with content parts").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").argument("<message-id>", "Message UUID").examples(MESSAGES_GET_EXAMPLES).trackedAction(processContext, async (conversationId, exchangeId, messageId) => {
|
|
13096
13439
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
13097
13440
|
if (sdkError) {
|
|
13098
13441
|
OutputFormatter.error({
|
|
@@ -13103,7 +13446,7 @@ var registerMessagesCommand = (program) => {
|
|
|
13103
13446
|
processContext.exit(1);
|
|
13104
13447
|
return;
|
|
13105
13448
|
}
|
|
13106
|
-
const { MessageService } = await import("./index-
|
|
13449
|
+
const { MessageService } = await import("./index-764qyyq8.js");
|
|
13107
13450
|
const msgSvc = new MessageService(sdk, {
|
|
13108
13451
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
13109
13452
|
});
|
|
@@ -13123,7 +13466,7 @@ var registerMessagesCommand = (program) => {
|
|
|
13123
13466
|
Data: message
|
|
13124
13467
|
}, { preserveDataKeys: true });
|
|
13125
13468
|
});
|
|
13126
|
-
messages.command("get-content-part").description("Get content part data by ID").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").argument("<message-id>", "Message UUID").argument("<content-part-id>", "Content part UUID").trackedAction(processContext, async (conversationId, exchangeId, messageId, contentPartId) => {
|
|
13469
|
+
messages.command("get-content-part").description("Get content part data by ID").argument("<conversation-id>", "Conversation UUID").argument("<exchange-id>", "Exchange UUID").argument("<message-id>", "Message UUID").argument("<content-part-id>", "Content part UUID").examples(MESSAGES_GET_CONTENT_PART_EXAMPLES).trackedAction(processContext, async (conversationId, exchangeId, messageId, contentPartId) => {
|
|
13127
13470
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
13128
13471
|
if (sdkError) {
|
|
13129
13472
|
OutputFormatter.error({
|
|
@@ -13134,7 +13477,7 @@ var registerMessagesCommand = (program) => {
|
|
|
13134
13477
|
processContext.exit(1);
|
|
13135
13478
|
return;
|
|
13136
13479
|
}
|
|
13137
|
-
const { MessageService } = await import("./index-
|
|
13480
|
+
const { MessageService } = await import("./index-764qyyq8.js");
|
|
13138
13481
|
const msgSvc = new MessageService(sdk, {
|
|
13139
13482
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
13140
13483
|
});
|
|
@@ -13164,6 +13507,56 @@ var registerMessagesCommand = (program) => {
|
|
|
13164
13507
|
};
|
|
13165
13508
|
|
|
13166
13509
|
// src/commands/trunks.ts
|
|
13510
|
+
var SAMPLE_TRUNK = {
|
|
13511
|
+
id: "a1b2c3d4-0000-0000-0000-000000000901",
|
|
13512
|
+
phoneNumber: "+18335550142",
|
|
13513
|
+
label: "Support line",
|
|
13514
|
+
inboundEnabled: true,
|
|
13515
|
+
outboundEnabled: true,
|
|
13516
|
+
outboundSipDomain: "sip.example.com",
|
|
13517
|
+
processKey: null,
|
|
13518
|
+
folderKey: null,
|
|
13519
|
+
entryPoint: null,
|
|
13520
|
+
processName: null,
|
|
13521
|
+
inboundSipUrl: "sip:+18335550142@sip.example.com",
|
|
13522
|
+
createdAt: "2026-08-20T10:00:00Z",
|
|
13523
|
+
updatedAt: "2026-08-20T10:00:00Z"
|
|
13524
|
+
};
|
|
13525
|
+
var BOUND_TRUNK = {
|
|
13526
|
+
...SAMPLE_TRUNK,
|
|
13527
|
+
processKey: "a1b2c3d4-0000-0000-0000-000000000a01",
|
|
13528
|
+
folderKey: "a1b2c3d4-0000-0000-0000-000000000b01",
|
|
13529
|
+
entryPoint: "a1b2c3d4-0000-0000-0000-000000000c01",
|
|
13530
|
+
processName: "SupportVoiceFlow",
|
|
13531
|
+
updatedAt: "2026-10-02T14:30:00Z"
|
|
13532
|
+
};
|
|
13533
|
+
var TRUNKS_LIST_EXAMPLES = [
|
|
13534
|
+
{
|
|
13535
|
+
Description: "List every SIP trunk in the tenant.",
|
|
13536
|
+
Command: "uip conversational trunks list",
|
|
13537
|
+
Output: { Code: "SipTrunkList", Data: [SAMPLE_TRUNK] }
|
|
13538
|
+
},
|
|
13539
|
+
{
|
|
13540
|
+
Description: "List only the trunks that can route incoming calls, to pick one for 'trunks assign'.",
|
|
13541
|
+
Command: "uip conversational trunks list --direction inbound",
|
|
13542
|
+
Output: { Code: "SipTrunkList", Data: [SAMPLE_TRUNK] }
|
|
13543
|
+
}
|
|
13544
|
+
];
|
|
13545
|
+
var TRUNKS_ASSIGN_EXAMPLES = [
|
|
13546
|
+
{
|
|
13547
|
+
Description: "Route a phone number's incoming calls to a deployed Flow release. The flow's only Incoming call trigger is picked for you.",
|
|
13548
|
+
Command: "uip conversational trunks assign +18335550142 --process-key a1b2c3d4-0000-0000-0000-000000000a01 --folder-key a1b2c3d4-0000-0000-0000-000000000b01",
|
|
13549
|
+
Output: { Code: "SipTrunkAssign", Data: BOUND_TRUNK }
|
|
13550
|
+
},
|
|
13551
|
+
{
|
|
13552
|
+
Description: "Remove a trunk's inbound routing. --yes is required because the trunk is already bound.",
|
|
13553
|
+
Command: "uip conversational trunks assign a1b2c3d4-0000-0000-0000-000000000901 --clear --yes",
|
|
13554
|
+
Output: {
|
|
13555
|
+
Code: "SipTrunkAssign",
|
|
13556
|
+
Data: { ...SAMPLE_TRUNK, updatedAt: "2026-10-03T08:00:00Z" }
|
|
13557
|
+
}
|
|
13558
|
+
}
|
|
13559
|
+
];
|
|
13167
13560
|
var CLEARED_BINDING = {
|
|
13168
13561
|
processKey: null,
|
|
13169
13562
|
folderKey: null,
|
|
@@ -13181,7 +13574,7 @@ var failFromError = async (error) => {
|
|
|
13181
13574
|
Result: result,
|
|
13182
13575
|
ErrorCode: errorCode,
|
|
13183
13576
|
Message: isAuth && error instanceof Error ? error.message : message,
|
|
13184
|
-
Instructions: instructionsFor(isAuth ? "auth" : "backend", error),
|
|
13577
|
+
Instructions: errorCode === "configuration_error" ? instructionsFor("auth-configuration") : instructionsFor(isAuth ? "auth" : "backend", error),
|
|
13185
13578
|
Retry: retry
|
|
13186
13579
|
});
|
|
13187
13580
|
processContext.exit(EXIT_CODES[result] ?? 1);
|
|
@@ -13241,7 +13634,7 @@ var resolveEntryPoint = (entryPoints, requested) => {
|
|
|
13241
13634
|
var resolveBinding = async (target) => {
|
|
13242
13635
|
const processKey = target.processKey.toLowerCase();
|
|
13243
13636
|
const folderKey = target.folderKey.toLowerCase();
|
|
13244
|
-
const { listVoiceEntryPoints } = await import("./cas-client-
|
|
13637
|
+
const { listVoiceEntryPoints } = await import("./cas-client-jtqyyxdb.js");
|
|
13245
13638
|
const [epError, entryPoints] = await catchError(listVoiceEntryPoints(processKey, folderKey));
|
|
13246
13639
|
if (epError) {
|
|
13247
13640
|
await failFromError(epError);
|
|
@@ -13256,9 +13649,9 @@ var resolveBinding = async (target) => {
|
|
|
13256
13649
|
};
|
|
13257
13650
|
var registerTrunksCommand = (program) => {
|
|
13258
13651
|
const trunks = program.command("trunks").description("Inspect the SIP trunks (phone numbers) configured for conversational voice.");
|
|
13259
|
-
trunks.command("list").description("List the tenant's SIP trunks. Voice flows dial out from an outbound-enabled trunk's phone number (`inputs.from` on Create outgoing call); inbound-enabled trunks route incoming calls to a published process. Trunks are connected in Instance Management under Phone numbers.").option("--direction <direction>", "Only trunks enabled for this call direction: inbound or outbound (default: all trunks)", parseDirection).trackedAction(processContext, async (options) => {
|
|
13260
|
-
const { listSipTrunks } = await import("./cas-client-
|
|
13261
|
-
const [listError,
|
|
13652
|
+
trunks.command("list").description("List the tenant's SIP trunks. Voice flows dial out from an outbound-enabled trunk's phone number (`inputs.from` on Create outgoing call); inbound-enabled trunks route incoming calls to a published process. Trunks are connected in Instance Management under Phone numbers.").option("--direction <direction>", "Only trunks enabled for this call direction: inbound or outbound (default: all trunks)", parseDirection).examples(TRUNKS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
13653
|
+
const { listSipTrunks } = await import("./cas-client-jtqyyxdb.js");
|
|
13654
|
+
const [listError, trunks] = await catchError(listSipTrunks(options.direction));
|
|
13262
13655
|
if (listError) {
|
|
13263
13656
|
await failFromError(listError);
|
|
13264
13657
|
return;
|
|
@@ -13266,14 +13659,14 @@ var registerTrunksCommand = (program) => {
|
|
|
13266
13659
|
OutputFormatter.success({
|
|
13267
13660
|
Result: "Success",
|
|
13268
13661
|
Code: "SipTrunkList",
|
|
13269
|
-
Data:
|
|
13662
|
+
Data: trunks
|
|
13270
13663
|
}, { preserveDataKeys: true });
|
|
13271
13664
|
});
|
|
13272
|
-
trunks.command("assign").description("Route a trunk's inbound calls to a published Flow process, or clear the routing with --clear. The process must be a deployed Flow release whose flow starts from an Incoming call trigger; when the flow has exactly one such trigger, --entry-point can be omitted and is resolved automatically.").argument("<trunk>", "Trunk id (GUID) or its phone number in E.164 form (e.g. +18334815468)").option("--process-key <key>", "Orchestrator release key (GUID) of the deployed Flow process ('uip or processes list' shows it as Key)").option("--folder-key <key>", "Key (GUID) of the Orchestrator folder the release lives in").option("--entry-point <id>", "Incoming-call entry point id inside the flow package (default: resolved automatically when the flow has exactly one)").option("--clear", "Remove the trunk's inbound process routing").option("-y, --yes", "Confirm re-routing or clearing a trunk that is already bound (required; the CLI never prompts)").trackedAction(processContext, async (trunkArg, options) => {
|
|
13665
|
+
trunks.command("assign").description("Route a trunk's inbound calls to a published Flow process, or clear the routing with --clear. The process must be a deployed Flow release whose flow starts from an Incoming call trigger; when the flow has exactly one such trigger, --entry-point can be omitted and is resolved automatically.").argument("<trunk>", "Trunk id (GUID) or its phone number in E.164 form (e.g. +18334815468)").option("--process-key <key>", "Orchestrator release key (GUID) of the deployed Flow process ('uip or processes list' shows it as Key)").option("--folder-key <key>", "Key (GUID) of the Orchestrator folder the release lives in").option("--entry-point <id>", "Incoming-call entry point id inside the flow package (default: resolved automatically when the flow has exactly one)").option("--clear", "Remove the trunk's inbound process routing").option("-y, --yes", "Confirm re-routing or clearing a trunk that is already bound (required; the CLI never prompts)").examples(TRUNKS_ASSIGN_EXAMPLES).trackedAction(processContext, async (trunkArg, options) => {
|
|
13273
13666
|
const plan = planAssign(options);
|
|
13274
13667
|
if (plan === null)
|
|
13275
13668
|
return;
|
|
13276
|
-
const { resolveSipTrunk, updateSipTrunkBinding } = await import("./cas-client-
|
|
13669
|
+
const { resolveSipTrunk, updateSipTrunkBinding } = await import("./cas-client-jtqyyxdb.js");
|
|
13277
13670
|
const [trunkError, trunk] = await catchError(resolveSipTrunk(trunkArg));
|
|
13278
13671
|
if (trunkError) {
|
|
13279
13672
|
await failFromError(trunkError);
|
|
@@ -13302,9 +13695,43 @@ var registerTrunksCommand = (program) => {
|
|
|
13302
13695
|
};
|
|
13303
13696
|
|
|
13304
13697
|
// src/commands/user-settings.ts
|
|
13698
|
+
var SAMPLE_USER_SETTINGS = {
|
|
13699
|
+
userId: "a1b2c3d4-0000-0000-0000-000000000d01",
|
|
13700
|
+
name: "Jane Doe",
|
|
13701
|
+
email: "jane.doe@example.com",
|
|
13702
|
+
role: "Accounts payable analyst",
|
|
13703
|
+
department: "Finance",
|
|
13704
|
+
company: "Example Corp",
|
|
13705
|
+
country: "Romania",
|
|
13706
|
+
timezone: "Europe/Bucharest",
|
|
13707
|
+
createdTime: "2026-06-01T07:00:00Z",
|
|
13708
|
+
updatedTime: "2026-09-30T12:00:00Z"
|
|
13709
|
+
};
|
|
13710
|
+
var USER_SETTINGS_GET_EXAMPLES = [
|
|
13711
|
+
{
|
|
13712
|
+
Description: "Show the profile that conversational agents see for you.",
|
|
13713
|
+
Command: "uip conversational user-settings get",
|
|
13714
|
+
Output: { Code: "UserSettings", Data: SAMPLE_USER_SETTINGS }
|
|
13715
|
+
}
|
|
13716
|
+
];
|
|
13717
|
+
var USER_SETTINGS_UPDATE_EXAMPLES = [
|
|
13718
|
+
{
|
|
13719
|
+
Description: "Change your timezone and department. Settings you leave out stay as they are.",
|
|
13720
|
+
Command: 'uip conversational user-settings update --timezone "America/New_York" --department "Procurement"',
|
|
13721
|
+
Output: {
|
|
13722
|
+
Code: "UserSettingsUpdated",
|
|
13723
|
+
Data: {
|
|
13724
|
+
...SAMPLE_USER_SETTINGS,
|
|
13725
|
+
department: "Procurement",
|
|
13726
|
+
timezone: "America/New_York",
|
|
13727
|
+
updatedTime: "2026-10-20T09:00:00Z"
|
|
13728
|
+
}
|
|
13729
|
+
}
|
|
13730
|
+
}
|
|
13731
|
+
];
|
|
13305
13732
|
var registerUserSettingsCommand = (program) => {
|
|
13306
13733
|
const userSettings = program.command("user-settings").description("Manage current user's conversational profile settings.");
|
|
13307
|
-
userSettings.command("get").description("Get current user profile and context settings").trackedAction(processContext, async () => {
|
|
13734
|
+
userSettings.command("get").description("Get current user profile and context settings").examples(USER_SETTINGS_GET_EXAMPLES).trackedAction(processContext, async () => {
|
|
13308
13735
|
const [sdkError, sdk] = await catchError(createSdk());
|
|
13309
13736
|
if (sdkError) {
|
|
13310
13737
|
OutputFormatter.error({
|
|
@@ -13315,7 +13742,7 @@ var registerUserSettingsCommand = (program) => {
|
|
|
13315
13742
|
processContext.exit(1);
|
|
13316
13743
|
return;
|
|
13317
13744
|
}
|
|
13318
|
-
const { UserSettingsService } = await import("./index-
|
|
13745
|
+
const { UserSettingsService } = await import("./index-764qyyq8.js");
|
|
13319
13746
|
const userSvc = new UserSettingsService(sdk, {
|
|
13320
13747
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
13321
13748
|
});
|
|
@@ -13335,7 +13762,7 @@ var registerUserSettingsCommand = (program) => {
|
|
|
13335
13762
|
Data: settings
|
|
13336
13763
|
}, { preserveDataKeys: true });
|
|
13337
13764
|
});
|
|
13338
|
-
userSettings.command("update").description("Update user profile and context settings").option("--name <name>", "User name").option("--email <email>", "Email address").option("--role <role>", "User role").option("--department <department>", "Department").option("--company <company>", "Company").option("--country <country>", "Country").option("--timezone <timezone>", "Timezone").trackedAction(processContext, async (options) => {
|
|
13765
|
+
userSettings.command("update").description("Update user profile and context settings").option("--name <name>", "User name").option("--email <email>", "Email address").option("--role <role>", "User role").option("--department <department>", "Department").option("--company <company>", "Company").option("--country <country>", "Country").option("--timezone <timezone>", "Timezone").examples(USER_SETTINGS_UPDATE_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
13339
13766
|
const updateOpts = {};
|
|
13340
13767
|
if (options.name !== undefined)
|
|
13341
13768
|
updateOpts.name = options.name;
|
|
@@ -13370,7 +13797,7 @@ var registerUserSettingsCommand = (program) => {
|
|
|
13370
13797
|
processContext.exit(1);
|
|
13371
13798
|
return;
|
|
13372
13799
|
}
|
|
13373
|
-
const { UserSettingsService } = await import("./index-
|
|
13800
|
+
const { UserSettingsService } = await import("./index-764qyyq8.js");
|
|
13374
13801
|
const userSvc = new UserSettingsService(sdk, {
|
|
13375
13802
|
externalUserId: CLI_EXTERNAL_USER_ID
|
|
13376
13803
|
});
|
|
@@ -13393,13 +13820,13 @@ var registerUserSettingsCommand = (program) => {
|
|
|
13393
13820
|
};
|
|
13394
13821
|
|
|
13395
13822
|
// src/tool.ts
|
|
13396
|
-
var
|
|
13823
|
+
var metadata2 = {
|
|
13397
13824
|
name: "conversational-tool",
|
|
13398
13825
|
version: package_default.version,
|
|
13399
13826
|
description: "Handle conversations with deployed UiPath conversational processes.",
|
|
13400
13827
|
commandPrefix: "conversational"
|
|
13401
13828
|
};
|
|
13402
|
-
var
|
|
13829
|
+
var registerCommands2 = async (program) => {
|
|
13403
13830
|
registerChatCommand(program);
|
|
13404
13831
|
registerAgentsCommand(program);
|
|
13405
13832
|
registerConversationsCommand(program);
|
|
@@ -13409,6 +13836,6 @@ var registerCommands = async (program) => {
|
|
|
13409
13836
|
registerUserSettingsCommand(program);
|
|
13410
13837
|
};
|
|
13411
13838
|
|
|
13412
|
-
export {
|
|
13839
|
+
export { metadata2, registerCommands2 };
|
|
13413
13840
|
|
|
13414
|
-
//# debugId=
|
|
13841
|
+
//# debugId=DBD1E0019B7D671164756E2164756E21
|