@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.
@@ -1,29 +1,29 @@
1
1
  import {
2
- createTrack,
3
- createTrackEvent,
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
- package_default,
20
- parseBoundedInt,
8
+ RESULTS,
9
+ InvalidArgumentError,
10
+ EXIT_CODES,
11
+ OutputFormatter,
21
12
  processContext,
22
- requireConfirmation
23
- } from "./tool-ckmjmbp5.js";
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-1yh8g550.js";
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, config2) {
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(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
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 = (issue2) => issue2.message) {
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 = (issue2) => issue2.message) {
520
+ function formatError(error, mapper = (issue) => issue.message) {
521
521
  const fieldErrors = { _errors: [] };
522
- const processError = (error2) => {
523
- for (const issue2 of error2.issues) {
524
- if (issue2.code === "invalid_union" && issue2.errors.length) {
525
- issue2.errors.map((issues) => processError({ issues }));
526
- } else if (issue2.code === "invalid_key") {
527
- processError({ issues: issue2.issues });
528
- } else if (issue2.code === "invalid_element") {
529
- processError({ issues: issue2.issues });
530
- } else if (issue2.path.length === 0) {
531
- fieldErrors._errors.push(mapper(issue2));
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 < issue2.path.length) {
536
- const el = issue2.path[i];
537
- const terminal = i === issue2.path.length - 1;
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(issue2));
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((inst2) => {
695
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
694
+ inst._zod.onattach.push((inst) => {
695
+ const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
696
696
  if (def.maximum < curr)
697
- inst2._zod.bag.maximum = def.maximum;
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((inst2) => {
724
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
723
+ inst._zod.onattach.push((inst) => {
724
+ const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
725
725
  if (def.minimum > curr)
726
- inst2._zod.bag.minimum = def.minimum;
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((inst2) => {
753
- const bag = inst2._zod.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((inst2) => {
780
- const bag = inst2._zod.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((inst2) => {
836
- const bag = inst2._zod.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((inst2) => {
859
- const bag = inst2._zod.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((inst2) => {
882
- const bag = inst2._zod.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, checks2, ctx) => {
969
+ const runChecks = (payload, checks, ctx) => {
970
970
  let isAborted = aborted(payload);
971
971
  let asyncResult;
972
- for (const ch of checks2) {
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((checkResult2) => inst._zod.parse(checkResult2, ctx));
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((canary2) => {
1030
- return handleCanaryResult(canary2, payload, ctx);
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((result2) => runChecks(result2, checks, ctx));
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 (_2) {}
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 base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
1290
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
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((result2) => handleArrayResult(result2, payload, i)));
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((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
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((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
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((results2) => {
1711
- return handleUnionResults(results2, payload, inst, ctx);
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(([left2, right2]) => {
1724
- return handleIntersectionResults(payload, left2, right2);
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((output2) => {
1843
- payload.value = output2;
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((result2) => handleDefaultResult(result2, def));
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((result2) => handleNonOptionalResult(result2, inst));
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((result2) => {
1985
- payload.value = result2.value;
1986
- if (result2.issues.length) {
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: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
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((right2) => handlePipeResult(right2, def.in, ctx));
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((left2) => handlePipeResult(left2, def.out, ctx));
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((r2) => handleRefineResult(r2, payload, input, inst));
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 ?? ((id2) => id2);
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 schema2 = seen.schema;
2651
- for (const key in schema2) {
2652
- delete schema2[key];
2650
+ const schema = seen.schema;
2651
+ for (const key in schema) {
2652
+ delete schema[key];
2653
2653
  }
2654
- schema2.$ref = ref;
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 schema2 = seen.def ?? seen.schema;
2703
- const _cached = { ...schema2 };
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
- schema2.allOf = schema2.allOf ?? [];
2712
- schema2.allOf.push(refSchema);
2711
+ schema.allOf = schema.allOf ?? [];
2712
+ schema.allOf.push(refSchema);
2713
2713
  } else {
2714
- Object.assign(schema2, refSchema);
2714
+ Object.assign(schema, refSchema);
2715
2715
  }
2716
- Object.assign(schema2, _cached);
2716
+ Object.assign(schema, _cached);
2717
2717
  const isParentRef = zodSchema._zod.parent === ref;
2718
2718
  if (isParentRef) {
2719
- for (const key in schema2) {
2719
+ for (const key in schema) {
2720
2720
  if (key === "$ref" || key === "allOf")
2721
2721
  continue;
2722
2722
  if (!(key in _cached)) {
2723
- delete schema2[key];
2723
+ delete schema[key];
2724
2724
  }
2725
2725
  }
2726
2726
  }
2727
2727
  if (refSchema.$ref && refSeen.def) {
2728
- for (const key in schema2) {
2728
+ for (const key in schema) {
2729
2729
  if (key === "$ref" || key === "allOf")
2730
2730
  continue;
2731
- if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
2732
- delete schema2[key];
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
- schema2.$ref = parentSeen.schema.$ref;
2742
+ schema.$ref = parentSeen.schema.$ref;
2743
2743
  if (parentSeen.def) {
2744
- for (const key in schema2) {
2744
+ for (const key in schema) {
2745
2745
  if (key === "$ref" || key === "allOf")
2746
2746
  continue;
2747
- if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
2748
- delete schema2[key];
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: schema2,
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: (issue2) => {
3126
- inst.issues.push(issue2);
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: (issues2) => {
3132
- inst.issues.push(...issues2);
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 = (def2, params) => clone(inst, def2, params);
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 = (def2) => _default(inst, def2);
3213
- inst.prefault = (def2) => prefault(inst, def2);
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((output2) => {
3545
- payload.value = output2;
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(config2) {
3758
- return Boolean(config2.clientId && config2.redirectUri && config2.scope);
3757
+ function hasOAuthConfig(config) {
3758
+ return Boolean(config.clientId && config.redirectUri && config.scope);
3759
3759
  }
3760
- function hasSecretConfig(config2) {
3761
- return Boolean(config2.secret);
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(TaskUserType2) {
3905
- TaskUserType2["User"] = "User";
3906
- TaskUserType2["Robot"] = "Robot";
3907
- TaskUserType2["DirectoryUser"] = "DirectoryUser";
3908
- TaskUserType2["DirectoryGroup"] = "DirectoryGroup";
3909
- TaskUserType2["DirectoryRobot"] = "DirectoryRobot";
3910
- TaskUserType2["DirectoryExternalApplication"] = "DirectoryExternalApplication";
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(TaskType2) {
3914
- TaskType2["Form"] = "FormTask";
3915
- TaskType2["External"] = "ExternalTask";
3916
- TaskType2["App"] = "AppTask";
3917
- TaskType2["DocumentValidation"] = "DocumentValidationTask";
3918
- TaskType2["DocumentClassification"] = "DocumentClassificationTask";
3919
- TaskType2["DataLabeling"] = "DataLabelingTask";
3920
- TaskType2["QuickForm"] = "QuickFormTask";
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(TaskPriority2) {
3924
- TaskPriority2["Low"] = "Low";
3925
- TaskPriority2["Medium"] = "Medium";
3926
- TaskPriority2["High"] = "High";
3927
- TaskPriority2["Critical"] = "Critical";
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(TaskStatus2) {
3931
- TaskStatus2["Unassigned"] = "Unassigned";
3932
- TaskStatus2["Pending"] = "Pending";
3933
- TaskStatus2["Completed"] = "Completed";
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(TaskSlaCriteria2) {
3937
- TaskSlaCriteria2["TaskCreated"] = "TaskCreated";
3938
- TaskSlaCriteria2["TaskAssigned"] = "TaskAssigned";
3939
- TaskSlaCriteria2["TaskCompleted"] = "TaskCompleted";
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(TaskSlaStatus2) {
3943
- TaskSlaStatus2["OverdueLater"] = "OverdueLater";
3944
- TaskSlaStatus2["OverdueSoon"] = "OverdueSoon";
3945
- TaskSlaStatus2["Overdue"] = "Overdue";
3946
- TaskSlaStatus2["CompletedInTime"] = "CompletedInTime";
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(TaskSourceName2) {
3950
- TaskSourceName2["Agent"] = "Agent";
3951
- TaskSourceName2["Workflow"] = "Workflow";
3952
- TaskSourceName2["Maestro"] = "Maestro";
3953
- TaskSourceName2["Default"] = "Default";
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(TaskActivityType2) {
3957
- TaskActivityType2["Created"] = "Created";
3958
- TaskActivityType2["Assigned"] = "Assigned";
3959
- TaskActivityType2["Reassigned"] = "Reassigned";
3960
- TaskActivityType2["Unassigned"] = "Unassigned";
3961
- TaskActivityType2["Saved"] = "Saved";
3962
- TaskActivityType2["Forwarded"] = "Forwarded";
3963
- TaskActivityType2["Completed"] = "Completed";
3964
- TaskActivityType2["Commented"] = "Commented";
3965
- TaskActivityType2["Deleted"] = "Deleted";
3966
- TaskActivityType2["BulkSaved"] = "BulkSaved";
3967
- TaskActivityType2["BulkCompleted"] = "BulkCompleted";
3968
- TaskActivityType2["FirstOpened"] = "FirstOpened";
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(TaskAssignmentCriteria2) {
3972
- TaskAssignmentCriteria2["SingleUser"] = "SingleUser";
3973
- TaskAssignmentCriteria2["Workload"] = "Workload";
3974
- TaskAssignmentCriteria2["AllUsers"] = "AllUsers";
3975
- TaskAssignmentCriteria2["RoundRobin"] = "RoundRobin";
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(ActionCenterEventNames2) {
4177
- ActionCenterEventNames2["TOKENREFRESHED"] = "AC.tokenRefreshed";
4178
- ActionCenterEventNames2["REFRESHTOKEN"] = "AC.refreshToken";
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((event2) => event2.origin === pinnedOrigin && event2.data?.eventType === responseEventType, controller.signal);
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(config2, onTokenRefreshed) {
4236
- this.config = config2;
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(UipEmbeddedEventNames2) {
4289
- UipEmbeddedEventNames2["REFRESH_TOKEN"] = "UIP.refreshToken";
4290
- UipEmbeddedEventNames2["TOKEN_REFRESHED"] = "UIP.tokenRefreshed";
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, config2, onTokenRefreshed) {
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 (!config2.clientId || !config2.scope) {
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 = config2.clientId;
4319
- this.scope = config2.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(base642) {
4391
+ function decodeBase64(base64) {
4392
4392
  let bytes;
4393
4393
  if (isBrowser) {
4394
- const binaryString = atob(base642);
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(base642, "base64"));
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 base642 = value.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
4422
- return base642.padEnd(base642.length + (4 - base642.length % 4) % 4, "=");
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, config2, isOAuth = false) {
4441
+ constructor(executionContext, config, isOAuth = false) {
4442
4442
  this.executionContext = executionContext;
4443
- this.config = config2;
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(config2, (tokenInfo) => this.setToken(tokenInfo));
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, config2, (tokenInfo) => this.setToken(tokenInfo));
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(config2, executionContext) {
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(config2, storedContext) : config2;
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(config2, context) {
4696
+ static _mergeConfigWithContext(config, context) {
4697
4697
  return {
4698
- ...config2,
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(config2) {
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(config2)) {
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(config2.clientId, config2.redirectUri, config2.scope);
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(config2)) {
4734
- return await this._authenticateWithOAuth(config2.clientId, config2.redirectUri, config2.scope);
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 array2 = new Uint8Array(32);
4808
- crypto.getRandomValues(array2);
4809
- return this._base64URLEncode(array2);
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 base642 = btoa(String.fromCharCode(...buffer));
4895
- return base642.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
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(UiPathMetaTags2) {
4940
- UiPathMetaTags2["CLIENT_ID"] = "uipath:client-id";
4941
- UiPathMetaTags2["SCOPE"] = "uipath:scope";
4942
- UiPathMetaTags2["ORG_NAME"] = "uipath:org-name";
4943
- UiPathMetaTags2["ORG_ID"] = "uipath:org-id";
4944
- UiPathMetaTags2["TENANT_NAME"] = "uipath:tenant-name";
4945
- UiPathMetaTags2["BASE_URL"] = "uipath:base-url";
4946
- UiPathMetaTags2["REDIRECT_URI"] = "uipath:redirect-uri";
4947
- UiPathMetaTags2["CDN_BASE"] = "uipath:cdn-base";
4948
- UiPathMetaTags2["APP_BASE"] = "uipath:app-base";
4949
- UiPathMetaTags2["FOLDER_KEY"] = "uipath:folder-key";
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(UiPathElementIds2) {
4953
- UiPathElementIds2["RESOURCE_OVERRIDES"] = "uipath-overrides";
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 config2 = {
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(config2).some(Boolean) ? config2 : null;
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(config2) {
4991
- return Boolean(config2.baseUrl && config2.orgName && config2.tenantName);
4990
+ function hasRequiredBaseFields(config) {
4991
+ return Boolean(config.baseUrl && config.orgName && config.tenantName);
4992
4992
  }
4993
- function hasValidAuthConfig(config2) {
4994
- const hasSecret = hasSecretConfig(config2);
4995
- const hasOAuth = hasOAuthConfig(config2);
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(config2) {
5022
- return hasRequiredBaseFields(config2) && hasValidAuthConfig(config2);
5021
+ function isCompleteConfig(config) {
5022
+ return hasRequiredBaseFields(config) && hasValidAuthConfig(config);
5023
5023
  }
5024
- function compactConfig(config2) {
5025
- return Object.fromEntries(Object.entries(config2).filter(([, value]) => value !== undefined));
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(config2, context) {
5068
+ function missingContextMessage(config, context) {
5069
5069
  const missing = [];
5070
- if (!hasRequiredBaseFields(config2)) {
5070
+ if (!hasRequiredBaseFields(config)) {
5071
5071
  if (!context.platform) {
5072
5072
  const variables = [];
5073
- if (!config2.baseUrl)
5073
+ if (!config.baseUrl)
5074
5074
  variables.push(UiPathEnvVars.BASE_URL);
5075
- if (!config2.orgName)
5075
+ if (!config.orgName)
5076
5076
  variables.push(UiPathEnvVars.ORG_NAME);
5077
- if (!config2.tenantName)
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 (!config2.baseUrl) {
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 (!config2.orgName)
5086
+ if (!config.orgName)
5087
5087
  missing.push(`ctx.platform.orgId is empty (or set ${UiPathEnvVars.ORG_NAME})`);
5088
- if (!config2.tenantName)
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(config2) && !hasOAuthConfig(config2)) {
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 date2 = Date.parse(trimmed);
5201
- if (Number.isNaN(date2))
5200
+ const date = Date.parse(trimmed);
5201
+ if (Number.isNaN(date))
5202
5202
  return;
5203
- return Math.max(0, date2 - now);
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 base642 = errorId.replace(DASH_REGEX, "+").replace(UNDERSCORE_REGEX, "/");
5311
- const json = decodeBase64(base642.padEnd(base642.length + (4 - base642.length % 4) % 4, "="));
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(config2, tokenManager) {
5400
+ constructor(config, tokenManager) {
5401
5401
  _OrganizationIdResolver_instances.add(this);
5402
- this.config = config2;
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 _OrganizationIdResolver_resolve2() {
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 config2 = {
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(config2).some(Boolean);
5492
- return hasAnyValue ? config2 : null;
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 config2 = {
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(config2).some(Boolean) ? config2 : null;
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(config2) {
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 (config2 && isFunctionContext(config2)) {
5539
- __classPrivateFieldSet(this, _UiPath_functionContext, config2, "f");
5540
- __classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(config2), "f");
5541
- resolved = configFromFunctionContext(config2) ?? undefined;
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 = config2;
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 _UiPath_initializeWithConfig2(config2) {
5633
- const hasSecretAuth = hasSecretConfig(config2);
5634
- const hasOAuthAuth = hasOAuthConfig(config2);
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(config2.baseUrl),
5637
- orgName: config2.orgName,
5638
- tenantName: config2.tenantName,
5639
- organizationId: config2.organizationId,
5640
- secret: hasSecretAuth ? config2.secret : undefined,
5641
- clientId: hasOAuthAuth ? config2.clientId : undefined,
5642
- redirectUri: hasOAuthAuth ? config2.redirectUri : undefined,
5643
- scope: hasOAuthAuth ? config2.scope : undefined,
5644
- enforceSso: config2.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: config2.baseUrl,
5662
+ baseUrl: config.baseUrl,
5663
5663
  orgId: __classPrivateFieldGet(this, _UiPath_metaOrgId, "f"),
5664
5664
  tenantId: __classPrivateFieldGet(this, _UiPath_metaTenantId, "f"),
5665
- orgName: config2.orgName,
5666
- tenantName: config2.tenantName,
5667
- clientId: hasOAuthAuth ? config2.clientId : undefined,
5668
- redirectUri: hasOAuthAuth ? config2.redirectUri : undefined
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(config2.secret ?? "");
5672
+ __classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(config.secret ?? "");
5673
5673
  __classPrivateFieldSet(this, _UiPath_initialized, true, "f");
5674
5674
  }
5675
- }, _UiPath_mergeConfigSources = function _UiPath_mergeConfigSources2(metaConfig, config2) {
5675
+ }, _UiPath_mergeConfigSources = function _UiPath_mergeConfigSources(metaConfig, config) {
5676
5676
  const environment = loadFromEnvironment();
5677
- const layers = [environment, metaConfig, config2].filter((layer) => Boolean(layer)).map((layer) => compactConfig(layer));
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 = config2 ? hasSecretConfig(config2) : false;
5682
- const namesOAuth = Boolean(config2?.clientId || config2?.redirectUri || config2?.scope);
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: config2, metaConfig, environment }));
5695
+ throw new Error(conflictingAuthMessage({ config, metaConfig, environment }));
5696
5696
  }
5697
5697
  return merged;
5698
- }, _UiPath_loadConfig = function _UiPath_loadConfig2() {
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(config2, executionContext, tokenManager, clientConfig = {}) {
5898
- this.config = config2;
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 text2 = await response.text();
5953
- return text2;
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(PaginationType2) {
5995
- PaginationType2["OFFSET"] = "offset";
5996
- PaginationType2["TOKEN"] = "token";
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 date2 = new Date(value + " UTC");
6159
- return isNaN(date2.getTime()) ? value : date2.toISOString();
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(config2, options) {
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 (config2.processParametersFn) {
6436
- processedOptions = config2.processParametersFn(restOptions, folderId);
6435
+ if (config.processParametersFn) {
6436
+ processedOptions = config.processParametersFn(restOptions, folderId);
6437
6437
  }
6438
- const excludeKeys = config2.excludeFromPrefix || [];
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
- ...config2.pagination
6445
+ ...config.pagination
6446
6446
  };
6447
6447
  if (isPaginationRequested) {
6448
6448
  return PaginationHelpers.getAllPaginated({
6449
- serviceAccess: config2.serviceAccess,
6450
- getEndpoint: config2.getEndpoint,
6449
+ serviceAccess: config.serviceAccess,
6450
+ getEndpoint: config.getEndpoint,
6451
6451
  folderId,
6452
- headers: config2.headers,
6452
+ headers: config.headers,
6453
6453
  paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
6454
6454
  additionalParams: prefixedOptions,
6455
- queryParams: config2.queryParams,
6456
- transformFn: config2.transformFn,
6457
- method: config2.method,
6455
+ queryParams: config.queryParams,
6456
+ transformFn: config.transformFn,
6457
+ method: config.method,
6458
6458
  options: {
6459
6459
  ...paginationOptions,
6460
- paginationParams: config2.pagination?.paginationParams
6460
+ paginationParams: config.pagination?.paginationParams
6461
6461
  }
6462
6462
  });
6463
6463
  }
6464
- const byFolderEndpoint = config2.getByFolderEndpoint || config2.getEndpoint(folderId);
6464
+ const byFolderEndpoint = config.getByFolderEndpoint || config.getEndpoint(folderId);
6465
6465
  return PaginationHelpers.getAllNonPaginated({
6466
- serviceAccess: config2.serviceAccess,
6467
- getAllEndpoint: config2.getEndpoint(),
6466
+ serviceAccess: config.serviceAccess,
6467
+ getAllEndpoint: config.getEndpoint(),
6468
6468
  getByFolderEndpoint: byFolderEndpoint,
6469
6469
  folderId,
6470
- headers: config2.headers,
6470
+ headers: config.headers,
6471
6471
  additionalParams: prefixedOptions,
6472
- queryParams: config2.queryParams,
6473
- transformFn: config2.transformFn,
6474
- method: config2.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: config2, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry.get(instance);
6488
- __classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config2, context, tokenManager, headers ? { headers } : {}), "f");
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(EntityFieldDataType2) {
6754
- EntityFieldDataType2["UUID"] = "UUID";
6755
- EntityFieldDataType2["STRING"] = "STRING";
6756
- EntityFieldDataType2["INTEGER"] = "INTEGER";
6757
- EntityFieldDataType2["DATETIME"] = "DATETIME";
6758
- EntityFieldDataType2["DATETIME_WITH_TZ"] = "DATETIME_WITH_TZ";
6759
- EntityFieldDataType2["DECIMAL"] = "DECIMAL";
6760
- EntityFieldDataType2["FLOAT"] = "FLOAT";
6761
- EntityFieldDataType2["DOUBLE"] = "DOUBLE";
6762
- EntityFieldDataType2["DATE"] = "DATE";
6763
- EntityFieldDataType2["BOOLEAN"] = "BOOLEAN";
6764
- EntityFieldDataType2["BIG_INTEGER"] = "BIG_INTEGER";
6765
- EntityFieldDataType2["MULTILINE_TEXT"] = "MULTILINE_TEXT";
6766
- EntityFieldDataType2["MULTILINE_MAX"] = "MULTILINE_MAX";
6767
- EntityFieldDataType2["FILE"] = "FILE";
6768
- EntityFieldDataType2["CHOICE_SET_SINGLE"] = "CHOICE_SET_SINGLE";
6769
- EntityFieldDataType2["CHOICE_SET_MULTIPLE"] = "CHOICE_SET_MULTIPLE";
6770
- EntityFieldDataType2["AUTO_NUMBER"] = "AUTO_NUMBER";
6771
- EntityFieldDataType2["RELATIONSHIP"] = "RELATIONSHIP";
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(QueryFilterOperator2) {
6780
- QueryFilterOperator2["Equals"] = "=";
6781
- QueryFilterOperator2["NotEquals"] = "!=";
6782
- QueryFilterOperator2["GreaterThan"] = ">";
6783
- QueryFilterOperator2["LessThan"] = "<";
6784
- QueryFilterOperator2["GreaterThanOrEqual"] = ">=";
6785
- QueryFilterOperator2["LessThanOrEqual"] = "<=";
6786
- QueryFilterOperator2["Contains"] = "contains";
6787
- QueryFilterOperator2["NotContains"] = "not contains";
6788
- QueryFilterOperator2["StartsWith"] = "startswith";
6789
- QueryFilterOperator2["EndsWith"] = "endswith";
6790
- QueryFilterOperator2["In"] = "in";
6791
- QueryFilterOperator2["NotIn"] = "not in";
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(EntityAggregateFunction2) {
6795
- EntityAggregateFunction2["Count"] = "COUNT";
6796
- EntityAggregateFunction2["Sum"] = "SUM";
6797
- EntityAggregateFunction2["Avg"] = "AVG";
6798
- EntityAggregateFunction2["Min"] = "MIN";
6799
- EntityAggregateFunction2["Max"] = "MAX";
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(EntityHavingOperator2) {
6803
- EntityHavingOperator2["Equals"] = "=";
6804
- EntityHavingOperator2["NotEquals"] = "!=";
6805
- EntityHavingOperator2["GreaterThan"] = ">";
6806
- EntityHavingOperator2["GreaterThanOrEqual"] = ">=";
6807
- EntityHavingOperator2["LessThan"] = "<";
6808
- EntityHavingOperator2["LessThanOrEqual"] = "<=";
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(EntityMultiEntityWriteOperation2) {
6812
- EntityMultiEntityWriteOperation2["Insert"] = "Insert";
6813
- EntityMultiEntityWriteOperation2["Update"] = "Update";
6811
+ (function(EntityMultiEntityWriteOperation) {
6812
+ EntityMultiEntityWriteOperation["Insert"] = "Insert";
6813
+ EntityMultiEntityWriteOperation["Update"] = "Update";
6814
6814
  })(EntityMultiEntityWriteOperation || (EntityMultiEntityWriteOperation = {}));
6815
6815
  var EntityType;
6816
- (function(EntityType2) {
6817
- EntityType2["Entity"] = "Entity";
6818
- EntityType2["ChoiceSet"] = "ChoiceSet";
6819
- EntityType2["InternalEntity"] = "InternalEntity";
6820
- EntityType2["SystemEntity"] = "SystemEntity";
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(EntityClass2) {
6824
- EntityClass2["Native"] = "Native";
6825
- EntityClass2["Federated"] = "Federated";
6826
- EntityClass2["Case"] = "Case";
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(ReferenceType2) {
6830
- ReferenceType2["ManyToOne"] = "ManyToOne";
6829
+ (function(ReferenceType) {
6830
+ ReferenceType["ManyToOne"] = "ManyToOne";
6831
6831
  })(ReferenceType || (ReferenceType = {}));
6832
6832
  var FieldDisplayType;
6833
- (function(FieldDisplayType2) {
6834
- FieldDisplayType2["Basic"] = "Basic";
6835
- FieldDisplayType2["Relationship"] = "Relationship";
6836
- FieldDisplayType2["File"] = "File";
6837
- FieldDisplayType2["ChoiceSetSingle"] = "ChoiceSetSingle";
6838
- FieldDisplayType2["ChoiceSetMultiple"] = "ChoiceSetMultiple";
6839
- FieldDisplayType2["AutoNumber"] = "AutoNumber";
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(DataDirectionType2) {
6843
- DataDirectionType2["ReadOnly"] = "ReadOnly";
6844
- DataDirectionType2["ReadAndWrite"] = "ReadAndWrite";
6842
+ (function(DataDirectionType) {
6843
+ DataDirectionType["ReadOnly"] = "ReadOnly";
6844
+ DataDirectionType["ReadAndWrite"] = "ReadAndWrite";
6845
6845
  })(DataDirectionType || (DataDirectionType = {}));
6846
6846
  var JoinType;
6847
- (function(JoinType2) {
6848
- JoinType2["LeftJoin"] = "LeftJoin";
6849
- JoinType2["InnerJoin"] = "InnerJoin";
6847
+ (function(JoinType) {
6848
+ JoinType["LeftJoin"] = "LeftJoin";
6849
+ JoinType["InnerJoin"] = "InnerJoin";
6850
6850
  })(JoinType || (JoinType = {}));
6851
6851
  var EntityClassId;
6852
- (function(EntityClassId2) {
6853
- EntityClassId2[EntityClassId2["Native"] = 9] = "Native";
6854
- EntityClassId2[EntityClassId2["Federated"] = 10] = "Federated";
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(EntityFieldConstraint2) {
6858
- EntityFieldConstraint2["LengthLimit"] = "lengthLimit";
6859
- EntityFieldConstraint2["MaxValue"] = "maxValue";
6860
- EntityFieldConstraint2["MinValue"] = "minValue";
6861
- EntityFieldConstraint2["DecimalPrecision"] = "decimalPrecision";
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(SqlFieldType2) {
6865
- SqlFieldType2["UNIQUEIDENTIFIER"] = "UNIQUEIDENTIFIER";
6866
- SqlFieldType2["NVARCHAR"] = "NVARCHAR";
6867
- SqlFieldType2["INT"] = "INT";
6868
- SqlFieldType2["DATETIME2"] = "DATETIME2";
6869
- SqlFieldType2["DATETIMEOFFSET"] = "DATETIMEOFFSET";
6870
- SqlFieldType2["FLOAT"] = "FLOAT";
6871
- SqlFieldType2["REAL"] = "REAL";
6872
- SqlFieldType2["BIGINT"] = "BIGINT";
6873
- SqlFieldType2["DATE"] = "DATE";
6874
- SqlFieldType2["BIT"] = "BIT";
6875
- SqlFieldType2["DECIMAL"] = "DECIMAL";
6876
- SqlFieldType2["MULTILINE"] = "MULTILINE";
6877
- SqlFieldType2["MULTILINE_MAX"] = "MULTILINE_MAX";
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 table2 = readOverrides();
7037
- if (!table2)
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 && table2[scopedKey]) ?? table2[unscopedKey];
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(DataFabricRoleType2) {
8040
- DataFabricRoleType2["System"] = "System";
8041
- DataFabricRoleType2["UserDefined"] = "UserDefined";
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(DataFabricDirectoryEntityType2) {
8079
- DataFabricDirectoryEntityType2[DataFabricDirectoryEntityType2["User"] = 0] = "User";
8080
- DataFabricDirectoryEntityType2[DataFabricDirectoryEntityType2["Group"] = 1] = "Group";
8081
- DataFabricDirectoryEntityType2[DataFabricDirectoryEntityType2["Application"] = 2] = "Application";
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(DataFabricDirectoryEntityTypeName2) {
8085
- DataFabricDirectoryEntityTypeName2["User"] = "User";
8086
- DataFabricDirectoryEntityTypeName2["Group"] = "Group";
8087
- DataFabricDirectoryEntityTypeName2["Application"] = "Application";
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(ProcessIncidentStatus2) {
8398
- ProcessIncidentStatus2["Open"] = "Open";
8399
- ProcessIncidentStatus2["Closed"] = "Closed";
8397
+ (function(ProcessIncidentStatus) {
8398
+ ProcessIncidentStatus["Open"] = "Open";
8399
+ ProcessIncidentStatus["Closed"] = "Closed";
8400
8400
  })(ProcessIncidentStatus || (ProcessIncidentStatus = {}));
8401
8401
  var ProcessIncidentType;
8402
- (function(ProcessIncidentType2) {
8403
- ProcessIncidentType2["System"] = "System";
8404
- ProcessIncidentType2["User"] = "User";
8405
- ProcessIncidentType2["Deployment"] = "Deployment";
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(ProcessIncidentSeverity2) {
8409
- ProcessIncidentSeverity2["Error"] = "Error";
8410
- ProcessIncidentSeverity2["Warning"] = "Warning";
8408
+ (function(ProcessIncidentSeverity) {
8409
+ ProcessIncidentSeverity["Error"] = "Error";
8410
+ ProcessIncidentSeverity["Warning"] = "Warning";
8411
8411
  })(ProcessIncidentSeverity || (ProcessIncidentSeverity = {}));
8412
8412
  var DebugMode;
8413
- (function(DebugMode2) {
8414
- DebugMode2["None"] = "None";
8415
- DebugMode2["Default"] = "Default";
8416
- DebugMode2["StepByStep"] = "StepByStep";
8417
- DebugMode2["SingleStep"] = "SingleStep";
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(CaseInstanceMessageName2) {
8465
- CaseInstanceMessageName2["UserSelectStage"] = "UserSelectStage";
8466
- CaseInstanceMessageName2["UserAdhocTrigger"] = "UserAdhocTrigger";
8464
+ (function(CaseInstanceMessageName) {
8465
+ CaseInstanceMessageName["UserSelectStage"] = "UserSelectStage";
8466
+ CaseInstanceMessageName["UserAdhocTrigger"] = "UserAdhocTrigger";
8467
8467
  })(CaseInstanceMessageName || (CaseInstanceMessageName = {}));
8468
8468
  var SlaSummaryStatus;
8469
- (function(SlaSummaryStatus2) {
8470
- SlaSummaryStatus2["ON_TRACK"] = "On Track";
8471
- SlaSummaryStatus2["AT_RISK"] = "At Risk";
8472
- SlaSummaryStatus2["OVERDUE"] = "Overdue";
8473
- SlaSummaryStatus2["COMPLETED"] = "Completed";
8474
- SlaSummaryStatus2["UNKNOWN"] = "Unknown";
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(InstanceStatus2) {
8478
- InstanceStatus2["UNKNOWN"] = "";
8479
- InstanceStatus2["CANCELLED"] = "Cancelled";
8480
- InstanceStatus2["CANCELING"] = "Canceling";
8481
- InstanceStatus2["COMPLETED"] = "Completed";
8482
- InstanceStatus2["FAULTED"] = "Faulted";
8483
- InstanceStatus2["PAUSED"] = "Paused";
8484
- InstanceStatus2["PAUSING"] = "Pausing";
8485
- InstanceStatus2["PENDING"] = "Pending";
8486
- InstanceStatus2["RESUMING"] = "Resuming";
8487
- InstanceStatus2["RETRYING"] = "Retrying";
8488
- InstanceStatus2["RUNNING"] = "Running";
8489
- InstanceStatus2["UPGRADING"] = "Upgrading";
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(StageTaskType2) {
8493
- StageTaskType2["EXTERNAL_AGENT"] = "external-agent";
8494
- StageTaskType2["RPA"] = "rpa";
8495
- StageTaskType2["AGENTIC_PROCESS"] = "process";
8496
- StageTaskType2["AGENT"] = "agent";
8497
- StageTaskType2["ACTION"] = "action";
8498
- StageTaskType2["API_WORKFLOW"] = "api-workflow";
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(EscalationRecipientScope2) {
8502
- EscalationRecipientScope2["USER"] = "user";
8503
- EscalationRecipientScope2["USER_GROUP"] = "usergroup";
8501
+ (function(EscalationRecipientScope) {
8502
+ EscalationRecipientScope["USER"] = "user";
8503
+ EscalationRecipientScope["USER_GROUP"] = "usergroup";
8504
8504
  })(EscalationRecipientScope || (EscalationRecipientScope = {}));
8505
8505
  var EscalationActionType;
8506
- (function(EscalationActionType2) {
8507
- EscalationActionType2["NOTIFICATION"] = "notification";
8506
+ (function(EscalationActionType) {
8507
+ EscalationActionType["NOTIFICATION"] = "notification";
8508
8508
  })(EscalationActionType || (EscalationActionType = {}));
8509
8509
  var EscalationTriggerType;
8510
- (function(EscalationTriggerType2) {
8511
- EscalationTriggerType2["SLA_BREACHED"] = "sla-breached";
8512
- EscalationTriggerType2["AT_RISK"] = "at-risk";
8513
- EscalationTriggerType2["NONE"] = "None";
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(SLADurationUnit2) {
8517
- SLADurationUnit2["HOURS"] = "h";
8518
- SLADurationUnit2["DAYS"] = "d";
8519
- SLADurationUnit2["WEEKS"] = "w";
8520
- SLADurationUnit2["MONTHS"] = "m";
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(TimeInterval2) {
8603
- TimeInterval2["Hour"] = "HOUR";
8604
- TimeInterval2["Day"] = "DAY";
8605
- TimeInterval2["Week"] = "WEEK";
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(InstanceFinalStatus2) {
8609
- InstanceFinalStatus2["Completed"] = "Completed";
8610
- InstanceFinalStatus2["Faulted"] = "Faulted";
8611
- InstanceFinalStatus2["Cancelled"] = "Cancelled";
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((process3) => ({
9000
- ...process3,
9001
- name: process3.packageId
8999
+ const processesWithName = processes.map((process2) => ({
9000
+ ...process2,
9001
+ name: process2.packageId
9002
9002
  }));
9003
- return processesWithName.map((process3) => createProcessWithMethods(process3, this));
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((process3) => ({ ...process3, name: process3.packageId }));
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((process3) => ({ ...process3, name: process3.packageId }));
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(ProcessType2) {
9097
- ProcessType2["CaseManagement"] = "CaseManagement";
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((process3) => ({ ...process3, name: this.extractCaseName(process3.packageId) }));
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((process3) => ({ ...process3, name: this.extractCaseName(process3.packageId) }));
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, transform2, responseFieldMap, callerLabel) {
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: transform2(items[0]),
9391
+ result: transform(items[0]),
9392
9392
  effectiveFolder: { folderId, folderKey, folderPath: resolvedFolderPath }
9393
9393
  };
9394
9394
  }
9395
- async getByKeyLookup(resourceType, endpoint, key, options, transform2, responseFieldMap, callerLabel) {
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: transform2(items[0]),
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: (folderId2) => TASK_ENDPOINTS.GET_TASK_USERS(folderId2),
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(AssetValueScope2) {
10087
- AssetValueScope2["Global"] = "Global";
10088
- AssetValueScope2["PerRobot"] = "PerRobot";
10086
+ (function(AssetValueScope) {
10087
+ AssetValueScope["Global"] = "Global";
10088
+ AssetValueScope["PerRobot"] = "PerRobot";
10089
10089
  })(AssetValueScope || (AssetValueScope = {}));
10090
10090
  var AssetValueType;
10091
- (function(AssetValueType2) {
10092
- AssetValueType2["Text"] = "Text";
10093
- AssetValueType2["Bool"] = "Bool";
10094
- AssetValueType2["Integer"] = "Integer";
10095
- AssetValueType2["Credential"] = "Credential";
10096
- AssetValueType2["Secret"] = "Secret";
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(BucketOptions2) {
10603
- BucketOptions2["None"] = "None";
10604
- BucketOptions2["ReadOnly"] = "ReadOnly";
10605
- BucketOptions2["AuditReadAccess"] = "AuditReadAccess";
10606
- BucketOptions2["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
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(PackageType2) {
10735
- PackageType2["Undefined"] = "Undefined";
10736
- PackageType2["Process"] = "Process";
10737
- PackageType2["ProcessOrchestration"] = "ProcessOrchestration";
10738
- PackageType2["WebApp"] = "WebApp";
10739
- PackageType2["Agent"] = "Agent";
10740
- PackageType2["TestAutomationProcess"] = "TestAutomationProcess";
10741
- PackageType2["Api"] = "Api";
10742
- PackageType2["MCPServer"] = "MCPServer";
10743
- PackageType2["BusinessRules"] = "BusinessRules";
10744
- PackageType2["CaseManagement"] = "CaseManagement";
10745
- PackageType2["Flow"] = "Flow";
10746
- PackageType2["Function"] = "Function";
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(JobPriority2) {
10750
- JobPriority2["Low"] = "Low";
10751
- JobPriority2["Normal"] = "Normal";
10752
- JobPriority2["High"] = "High";
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(TargetFramework2) {
10756
- TargetFramework2["Legacy"] = "Legacy";
10757
- TargetFramework2["Windows"] = "Windows";
10758
- TargetFramework2["Portable"] = "Portable";
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(RobotSize2) {
10762
- RobotSize2["Small"] = "Small";
10763
- RobotSize2["Standard"] = "Standard";
10764
- RobotSize2["Medium"] = "Medium";
10765
- RobotSize2["Large"] = "Large";
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(RemoteControlAccess2) {
10769
- RemoteControlAccess2["None"] = "None";
10770
- RemoteControlAccess2["ReadOnly"] = "ReadOnly";
10771
- RemoteControlAccess2["Full"] = "Full";
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(StartStrategy2) {
10775
- StartStrategy2["All"] = "All";
10776
- StartStrategy2["Specific"] = "Specific";
10777
- StartStrategy2["RobotCount"] = "RobotCount";
10778
- StartStrategy2["JobsCount"] = "JobsCount";
10779
- StartStrategy2["ModernJobsCount"] = "ModernJobsCount";
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(PackageSourceType2) {
10783
- PackageSourceType2["Manual"] = "Manual";
10784
- PackageSourceType2["Schedule"] = "Schedule";
10785
- PackageSourceType2["Queue"] = "Queue";
10786
- PackageSourceType2["StudioWeb"] = "StudioWeb";
10787
- PackageSourceType2["IntegrationTrigger"] = "IntegrationTrigger";
10788
- PackageSourceType2["StudioDesktop"] = "StudioDesktop";
10789
- PackageSourceType2["AutomationOpsPipelines"] = "AutomationOpsPipelines";
10790
- PackageSourceType2["Apps"] = "Apps";
10791
- PackageSourceType2["SAP"] = "SAP";
10792
- PackageSourceType2["HttpTrigger"] = "HttpTrigger";
10793
- PackageSourceType2["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
10794
- PackageSourceType2["RobotAPI"] = "RobotAPI";
10795
- PackageSourceType2["Assistant"] = "Assistant";
10796
- PackageSourceType2["CommandLine"] = "CommandLine";
10797
- PackageSourceType2["RobotNetAPI"] = "RobotNetAPI";
10798
- PackageSourceType2["Autopilot"] = "Autopilot";
10799
- PackageSourceType2["TestManager"] = "TestManager";
10800
- PackageSourceType2["AgentService"] = "AgentService";
10801
- PackageSourceType2["ProcessOrchestration"] = "ProcessOrchestration";
10802
- PackageSourceType2["PluginEcosystem"] = "PluginEcosystem";
10803
- PackageSourceType2["PerformanceTesting"] = "PerformanceTesting";
10804
- PackageSourceType2["AgentHub"] = "AgentHub";
10805
- PackageSourceType2["ApiWorkflow"] = "ApiWorkflow";
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(JobSourceType2) {
10809
- JobSourceType2["Manual"] = "Manual";
10810
- JobSourceType2["Schedule"] = "Schedule";
10811
- JobSourceType2["Agent"] = "Agent";
10812
- JobSourceType2["Queue"] = "Queue";
10813
- JobSourceType2["StudioWeb"] = "StudioWeb";
10814
- JobSourceType2["IntegrationTrigger"] = "IntegrationTrigger";
10815
- JobSourceType2["StudioDesktop"] = "StudioDesktop";
10816
- JobSourceType2["AutomationOpsPipelines"] = "AutomationOpsPipelines";
10817
- JobSourceType2["Apps"] = "Apps";
10818
- JobSourceType2["SAP"] = "SAP";
10819
- JobSourceType2["HttpTrigger"] = "HttpTrigger";
10820
- JobSourceType2["HttpTriggerCallback"] = "HttpTriggerCallback";
10821
- JobSourceType2["RobotAPI"] = "RobotAPI";
10822
- JobSourceType2["CommandLine"] = "CommandLine";
10823
- JobSourceType2["RobotNetAPI"] = "RobotNetAPI";
10824
- JobSourceType2["Autopilot"] = "Autopilot";
10825
- JobSourceType2["TestManager"] = "TestManager";
10826
- JobSourceType2["AgentService"] = "AgentService";
10827
- JobSourceType2["ProcessOrchestration"] = "ProcessOrchestration";
10828
- JobSourceType2["PluginEcosystem"] = "PluginEcosystem";
10829
- JobSourceType2["PerformanceTesting"] = "PerformanceTesting";
10830
- JobSourceType2["AgentHub"] = "AgentHub";
10831
- JobSourceType2["ApiWorkflow"] = "ApiWorkflow";
10832
- JobSourceType2["CaseManagement"] = "CaseManagement";
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(StopStrategy2) {
10836
- StopStrategy2["SoftStop"] = "SoftStop";
10837
- StopStrategy2["Kill"] = "Kill";
10835
+ (function(StopStrategy) {
10836
+ StopStrategy["SoftStop"] = "SoftStop";
10837
+ StopStrategy["Kill"] = "Kill";
10838
10838
  })(StopStrategy || (StopStrategy = {}));
10839
10839
  var RuntimeType;
10840
- (function(RuntimeType2) {
10841
- RuntimeType2["NonProduction"] = "NonProduction";
10842
- RuntimeType2["Attended"] = "Attended";
10843
- RuntimeType2["Unattended"] = "Unattended";
10844
- RuntimeType2["Development"] = "Development";
10845
- RuntimeType2["Studio"] = "Studio";
10846
- RuntimeType2["RpaDeveloper"] = "RpaDeveloper";
10847
- RuntimeType2["StudioX"] = "StudioX";
10848
- RuntimeType2["CitizenDeveloper"] = "CitizenDeveloper";
10849
- RuntimeType2["Headless"] = "Headless";
10850
- RuntimeType2["StudioPro"] = "StudioPro";
10851
- RuntimeType2["RpaDeveloperPro"] = "RpaDeveloperPro";
10852
- RuntimeType2["TestAutomation"] = "TestAutomation";
10853
- RuntimeType2["AutomationCloud"] = "AutomationCloud";
10854
- RuntimeType2["Serverless"] = "Serverless";
10855
- RuntimeType2["AutomationKit"] = "AutomationKit";
10856
- RuntimeType2["ServerlessTestAutomation"] = "ServerlessTestAutomation";
10857
- RuntimeType2["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
10858
- RuntimeType2["AttendedStudioWeb"] = "AttendedStudioWeb";
10859
- RuntimeType2["Hosting"] = "Hosting";
10860
- RuntimeType2["AssistantWeb"] = "AssistantWeb";
10861
- RuntimeType2["ProcessOrchestration"] = "ProcessOrchestration";
10862
- RuntimeType2["AgentService"] = "AgentService";
10863
- RuntimeType2["AppTest"] = "AppTest";
10864
- RuntimeType2["PerformanceTest"] = "PerformanceTest";
10865
- RuntimeType2["BusinessRule"] = "BusinessRule";
10866
- RuntimeType2["CaseManagement"] = "CaseManagement";
10867
- RuntimeType2["Flow"] = "Flow";
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(JobType2) {
10871
- JobType2["Unattended"] = "Unattended";
10872
- JobType2["Attended"] = "Attended";
10873
- JobType2["ServerlessGeneric"] = "ServerlessGeneric";
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(JobSubState2) {
11092
- JobSubState2["WithFaults"] = "WITH_FAULTS";
11093
- JobSubState2["Manually"] = "MANUALLY";
11091
+ (function(JobSubState) {
11092
+ JobSubState["WithFaults"] = "WITH_FAULTS";
11093
+ JobSubState["Manually"] = "MANUALLY";
11094
11094
  })(JobSubState || (JobSubState = {}));
11095
11095
  var ServerlessJobType;
11096
- (function(ServerlessJobType2) {
11097
- ServerlessJobType2["RobotJob"] = "RobotJob";
11098
- ServerlessJobType2["WebApp"] = "WebApp";
11099
- ServerlessJobType2["LoadTest"] = "LoadTest";
11100
- ServerlessJobType2["StudioWebDesigner"] = "StudioWebDesigner";
11101
- ServerlessJobType2["PublishStudioProject"] = "PublishStudioProject";
11102
- ServerlessJobType2["JsApi"] = "JsApi";
11103
- ServerlessJobType2["PythonCodedAgent"] = "PythonCodedAgent";
11104
- ServerlessJobType2["MCPServer"] = "MCPServer";
11105
- ServerlessJobType2["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
11106
- ServerlessJobType2["PythonAgent"] = "PythonAgent";
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(JobState2) {
11110
- JobState2["Pending"] = "Pending";
11111
- JobState2["Running"] = "Running";
11112
- JobState2["Stopping"] = "Stopping";
11113
- JobState2["Terminating"] = "Terminating";
11114
- JobState2["Faulted"] = "Faulted";
11115
- JobState2["Successful"] = "Successful";
11116
- JobState2["Stopped"] = "Stopped";
11117
- JobState2["Suspended"] = "Suspended";
11118
- JobState2["Resumed"] = "Resumed";
11119
- JobState2["Cancelled"] = "Cancelled";
11120
- JobState2["Unknown"] = "Unknown";
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(ConnectionState2) {
11124
- ConnectionState2["Enabled"] = "Enabled";
11125
- ConnectionState2["Disabled"] = "Disabled";
11126
- ConnectionState2["Expired"] = "Expired";
11127
- ConnectionState2["Failed"] = "Failed";
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 = (process3) => transformData(pascalToCamelCaseKeys(process3), ProcessMap);
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((process3) => transformData(pascalToCamelCaseKeys(process3), ProcessMap));
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(QueuePriority2) {
11309
- QueuePriority2["High"] = "High";
11310
- QueuePriority2["Normal"] = "Normal";
11311
- QueuePriority2["Low"] = "Low";
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(QueueItemStatus2) {
11315
- QueueItemStatus2["New"] = "New";
11316
- QueueItemStatus2["InProgress"] = "InProgress";
11317
- QueueItemStatus2["Failed"] = "Failed";
11318
- QueueItemStatus2["Successful"] = "Successful";
11319
- QueueItemStatus2["Abandoned"] = "Abandoned";
11320
- QueueItemStatus2["Retried"] = "Retried";
11321
- QueueItemStatus2["Deleted"] = "Deleted";
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(QueueItemReviewStatus2) {
11325
- QueueItemReviewStatus2["None"] = "None";
11326
- QueueItemReviewStatus2["InReview"] = "InReview";
11327
- QueueItemReviewStatus2["Verified"] = "Verified";
11328
- QueueItemReviewStatus2["Retried"] = "Retried";
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(QueueExceptionType2) {
11332
- QueueExceptionType2["ApplicationException"] = "ApplicationException";
11333
- QueueExceptionType2["BusinessException"] = "BusinessException";
11331
+ (function(QueueExceptionType) {
11332
+ QueueExceptionType["ApplicationException"] = "ApplicationException";
11333
+ QueueExceptionType["BusinessException"] = "BusinessException";
11334
11334
  })(QueueExceptionType || (QueueExceptionType = {}));
11335
11335
  var QueueTransactionOutcome;
11336
- (function(QueueTransactionOutcome2) {
11337
- QueueTransactionOutcome2["Successful"] = "Successful";
11338
- QueueTransactionOutcome2["Failed"] = "Failed";
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 headers2 = createHeaders({ [FOLDER_ID]: folderIdOrOptions });
11428
- const apiFieldOptions2 = transformOptions(options, QueueMap);
11429
- const apiOptions2 = addPrefixToKeys(apiFieldOptions2, ODATA_PREFIX, Object.keys(apiFieldOptions2));
11430
- const response2 = await this.get(QUEUE_ENDPOINTS.GET_BY_ID(id), {
11431
- headers: headers2,
11432
- params: apiOptions2
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(response2.data), QueueMap);
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(TaskCatalogRetentionAction2) {
11627
- TaskCatalogRetentionAction2["Delete"] = "Delete";
11628
- TaskCatalogRetentionAction2["Archive"] = "Archive";
11629
- TaskCatalogRetentionAction2["None"] = "None";
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 UiPath2 extends UiPath$1 {
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(FunctionHttpMethod2) {
11778
- FunctionHttpMethod2["Get"] = "Get";
11779
- FunctionHttpMethod2["Post"] = "Post";
11780
- FunctionHttpMethod2["Put"] = "Put";
11781
- FunctionHttpMethod2["Patch"] = "Patch";
11782
- FunctionHttpMethod2["Delete"] = "Delete";
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(FolderType2) {
11786
- FolderType2["Standard"] = "Standard";
11787
- FolderType2["Personal"] = "Personal";
11788
- FolderType2["Virtual"] = "Virtual";
11789
- FolderType2["Solution"] = "Solution";
11790
- FolderType2["DebugSolution"] = "DebugSolution";
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(FolderProvisionType2) {
11794
- FolderProvisionType2["Manual"] = "Manual";
11795
- FolderProvisionType2["Automatic"] = "Automatic";
11793
+ (function(FolderProvisionType) {
11794
+ FolderProvisionType["Manual"] = "Manual";
11795
+ FolderProvisionType["Automatic"] = "Automatic";
11796
11796
  })(FolderProvisionType || (FolderProvisionType = {}));
11797
11797
  var FolderPermissionModel;
11798
- (function(FolderPermissionModel2) {
11799
- FolderPermissionModel2["InheritFromTenant"] = "InheritFromTenant";
11800
- FolderPermissionModel2["FineGrained"] = "FineGrained";
11798
+ (function(FolderPermissionModel) {
11799
+ FolderPermissionModel["InheritFromTenant"] = "InheritFromTenant";
11800
+ FolderPermissionModel["FineGrained"] = "FineGrained";
11801
11801
  })(FolderPermissionModel || (FolderPermissionModel = {}));
11802
11802
  var FolderFeedType;
11803
- (function(FolderFeedType2) {
11804
- FolderFeedType2["Undefined"] = "Undefined";
11805
- FolderFeedType2["Processes"] = "Processes";
11806
- FolderFeedType2["Libraries"] = "Libraries";
11807
- FolderFeedType2["PersonalWorkspace"] = "PersonalWorkspace";
11808
- FolderFeedType2["FolderHierarchy"] = "FolderHierarchy";
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(MessageRole2) {
11828
- MessageRole2["System"] = "system";
11829
- MessageRole2["User"] = "user";
11830
- MessageRole2["Assistant"] = "assistant";
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(InterruptType2) {
11834
- InterruptType2["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
11833
+ (function(InterruptType) {
11834
+ InterruptType["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
11835
11835
  })(InterruptType || (InterruptType = {}));
11836
11836
  var SortOrder;
11837
- (function(SortOrder2) {
11838
- SortOrder2["Ascending"] = "ascending";
11839
- SortOrder2["Descending"] = "descending";
11837
+ (function(SortOrder) {
11838
+ SortOrder["Ascending"] = "ascending";
11839
+ SortOrder["Descending"] = "descending";
11840
11840
  })(SortOrder || (SortOrder = {}));
11841
11841
  var FeedbackRating;
11842
- (function(FeedbackRating2) {
11843
- FeedbackRating2["Positive"] = "positive";
11844
- FeedbackRating2["Negative"] = "negative";
11842
+ (function(FeedbackRating) {
11843
+ FeedbackRating["Positive"] = "positive";
11844
+ FeedbackRating["Negative"] = "negative";
11845
11845
  })(FeedbackRating || (FeedbackRating = {}));
11846
11846
  var InputStreamSpeechSensitivity;
11847
- (function(InputStreamSpeechSensitivity2) {
11848
- InputStreamSpeechSensitivity2["Unspecified"] = "UNSPECIFIED";
11849
- InputStreamSpeechSensitivity2["High"] = "HIGH";
11850
- InputStreamSpeechSensitivity2["Low"] = "LOW";
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(CitationErrorType2) {
11854
- CitationErrorType2["CitationNotEnded"] = "CitationNotEnded";
11855
- CitationErrorType2["CitationNotStarted"] = "CitationNotStarted";
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(FeedbackStatus2) {
11865
- FeedbackStatus2[FeedbackStatus2["Pending"] = 0] = "Pending";
11866
- FeedbackStatus2[FeedbackStatus2["Approved"] = 1] = "Approved";
11867
- FeedbackStatus2[FeedbackStatus2["Dismissed"] = 2] = "Dismissed";
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(AgentListSortColumn2) {
11871
- AgentListSortColumn2["AgentName"] = "AgentName";
11872
- AgentListSortColumn2["ParentProcess"] = "ParentProcess";
11873
- AgentListSortColumn2["LastRun"] = "LastRun";
11874
- AgentListSortColumn2["HealthScore"] = "HealthScore";
11875
- AgentListSortColumn2["LastIncident"] = "LastIncident";
11876
- AgentListSortColumn2["FolderName"] = "FolderName";
11877
- AgentListSortColumn2["QuantityAGU"] = "QuantityAGU";
11878
- AgentListSortColumn2["QuantityPLTU"] = "QuantityPLTU";
11879
- AgentListSortColumn2["FolderPath"] = "FolderPath";
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(AgentErrorSortColumn2) {
11883
- AgentErrorSortColumn2["AgentId"] = "AgentId";
11884
- AgentErrorSortColumn2["AgentName"] = "AgentName";
11885
- AgentErrorSortColumn2["ParentProcessName"] = "ParentProcessName";
11886
- AgentErrorSortColumn2["ErrorTitle"] = "ErrorTitle";
11887
- AgentErrorSortColumn2["FirstSeenStartTime"] = "FirstSeenStartTime";
11888
- AgentErrorSortColumn2["ExecutionCount"] = "ExecutionCount";
11889
- AgentErrorSortColumn2["Type"] = "Type";
11890
- AgentErrorSortColumn2["FirstSeenFolderName"] = "FirstSeenFolderName";
11891
- AgentErrorSortColumn2["FirstSeenFolderPath"] = "FirstSeenFolderPath";
11892
- AgentErrorSortColumn2["LastSeenStartTime"] = "LastSeenStartTime";
11893
- AgentErrorSortColumn2["LastSeenFolderName"] = "LastSeenFolderName";
11894
- AgentErrorSortColumn2["LastSeenFolderPath"] = "LastSeenFolderPath";
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(AgentType2) {
11898
- AgentType2["Autonomous"] = "Autonomous";
11899
- AgentType2["Conversational"] = "Conversational";
11900
- AgentType2["Coded"] = "Coded";
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(AgentExecutionType2) {
11904
- AgentExecutionType2["Debug"] = "Debug";
11905
- AgentExecutionType2["Runtime"] = "Runtime";
11903
+ (function(AgentExecutionType) {
11904
+ AgentExecutionType["Debug"] = "Debug";
11905
+ AgentExecutionType["Runtime"] = "Runtime";
11906
11906
  })(AgentExecutionType || (AgentExecutionType = {}));
11907
11907
  var AgentMemoryExecutionType;
11908
- (function(AgentMemoryExecutionType2) {
11909
- AgentMemoryExecutionType2["Debug"] = "Debug";
11910
- AgentMemoryExecutionType2["Runtime"] = "Runtime";
11908
+ (function(AgentMemoryExecutionType) {
11909
+ AgentMemoryExecutionType["Debug"] = "Debug";
11910
+ AgentMemoryExecutionType["Runtime"] = "Runtime";
11911
11911
  })(AgentMemoryExecutionType || (AgentMemoryExecutionType = {}));
11912
11912
  var DocumentActionPriority;
11913
- (function(DocumentActionPriority2) {
11914
- DocumentActionPriority2["Low"] = "Low";
11915
- DocumentActionPriority2["Medium"] = "Medium";
11916
- DocumentActionPriority2["High"] = "High";
11917
- DocumentActionPriority2["Critical"] = "Critical";
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(DocumentActionStatus2) {
11921
- DocumentActionStatus2["Unassigned"] = "Unassigned";
11922
- DocumentActionStatus2["Pending"] = "Pending";
11923
- DocumentActionStatus2["Completed"] = "Completed";
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(DocumentActionType2) {
11927
- DocumentActionType2["Validation"] = "Validation";
11928
- DocumentActionType2["Classification"] = "Classification";
11926
+ (function(DocumentActionType) {
11927
+ DocumentActionType["Validation"] = "Validation";
11928
+ DocumentActionType["Classification"] = "Classification";
11929
11929
  })(DocumentActionType || (DocumentActionType = {}));
11930
11930
  var ProjectProperties;
11931
- (function(ProjectProperties2) {
11932
- ProjectProperties2["IsPredefined"] = "IsPredefined";
11933
- ProjectProperties2["SupportsTags"] = "SupportsTags";
11934
- ProjectProperties2["SupportsVersions"] = "SupportsVersions";
11935
- ProjectProperties2["IsSplittingEnabled"] = "IsSplittingEnabled";
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(ProjectType2) {
11939
- ProjectType2["Classic"] = "Classic";
11940
- ProjectType2["Modern"] = "Modern";
11941
- ProjectType2["IXP"] = "IXP";
11942
- ProjectType2["Unknown"] = "Unknown";
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(ResourceStatus2) {
11946
- ResourceStatus2["Unknown"] = "Unknown";
11947
- ResourceStatus2["NotStarted"] = "NotStarted";
11948
- ResourceStatus2["ExportInProgress"] = "ExportInProgress";
11949
- ResourceStatus2["ExportCompleted"] = "ExportCompleted";
11950
- ResourceStatus2["InProgress"] = "InProgress";
11951
- ResourceStatus2["Suspended"] = "Suspended";
11952
- ResourceStatus2["Resuming"] = "Resuming";
11953
- ResourceStatus2["Available"] = "Available";
11954
- ResourceStatus2["Error"] = "Error";
11955
- ResourceStatus2["Deleting"] = "Deleting";
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(ResourceType2) {
11959
- ResourceType2["Specialized"] = "Specialized";
11960
- ResourceType2["Generative"] = "Generative";
11961
- ResourceType2["Custom"] = "Custom";
11962
- ResourceType2["Unknown"] = "Unknown";
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(MarkupType2) {
11966
- MarkupType2["Unknown"] = "Unknown";
11967
- MarkupType2["Circled"] = "Circled";
11968
- MarkupType2["Underlined"] = "Underlined";
11969
- MarkupType2["Strikethrough"] = "Strikethrough";
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(ProcessingSource2) {
11973
- ProcessingSource2["Unknown"] = "Unknown";
11974
- ProcessingSource2["Ocr"] = "Ocr";
11975
- ProcessingSource2["Pdf"] = "Pdf";
11976
- ProcessingSource2["PlainText"] = "PlainText";
11977
- ProcessingSource2["PdfAndOcr"] = "PdfAndOcr";
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(Rotation2) {
11981
- Rotation2["None"] = "None";
11982
- Rotation2["Rotated90"] = "Rotated90";
11983
- Rotation2["Rotated180"] = "Rotated180";
11984
- Rotation2["Rotated270"] = "Rotated270";
11985
- Rotation2["Other"] = "Other";
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(SectionType2) {
11989
- SectionType2["Vertical"] = "Vertical";
11990
- SectionType2["Paragraph"] = "Paragraph";
11991
- SectionType2["Header"] = "Header";
11992
- SectionType2["Footer"] = "Footer";
11993
- SectionType2["Table"] = "Table";
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(TextType2) {
11997
- TextType2["Unknown"] = "Unknown";
11998
- TextType2["Text"] = "Text";
11999
- TextType2["Checkbox"] = "Checkbox";
12000
- TextType2["Handwriting"] = "Handwriting";
12001
- TextType2["Barcode"] = "Barcode";
12002
- TextType2["QRcode"] = "QRcode";
12003
- TextType2["Stamp"] = "Stamp";
12004
- TextType2["Logo"] = "Logo";
12005
- TextType2["Circle"] = "Circle";
12006
- TextType2["Underline"] = "Underline";
12007
- TextType2["Cut"] = "Cut";
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(WordGroupType2) {
12011
- WordGroupType2["Sentence"] = "Sentence";
12012
- WordGroupType2["TableCell"] = "TableCell";
12013
- WordGroupType2["TableRowEnd"] = "TableRowEnd";
12014
- WordGroupType2["Heading"] = "Heading";
12015
- WordGroupType2["Other"] = "Other";
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(ModelKind2) {
12019
- ModelKind2["Extractor"] = "Extractor";
12020
- ModelKind2["Classifier"] = "Classifier";
12018
+ (function(ModelKind) {
12019
+ ModelKind["Extractor"] = "Extractor";
12020
+ ModelKind["Classifier"] = "Classifier";
12021
12021
  })(ModelKind || (ModelKind = {}));
12022
12022
  var ModelType;
12023
- (function(ModelType2) {
12024
- ModelType2["IXP"] = "IXP";
12025
- ModelType2["Modern"] = "Modern";
12026
- ModelType2["Predefined"] = "Predefined";
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(ErrorSeverity2) {
12030
- ErrorSeverity2["Info"] = "Info";
12031
- ErrorSeverity2["Warning"] = "Warning";
12032
- ErrorSeverity2["Error"] = "Error";
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(ClassifierDocumentTypeType2) {
12036
- ClassifierDocumentTypeType2["FormsAi"] = "FormsAi";
12037
- ClassifierDocumentTypeType2["SemiStructuredAi"] = "SemiStructuredAi";
12038
- ClassifierDocumentTypeType2["Helix"] = "Helix";
12039
- ClassifierDocumentTypeType2["Unknown"] = "Unknown";
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(CreateTaskPriority2) {
12043
- CreateTaskPriority2["Low"] = "Low";
12044
- CreateTaskPriority2["Medium"] = "Medium";
12045
- CreateTaskPriority2["High"] = "High";
12046
- CreateTaskPriority2["Critical"] = "Critical";
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(GptFieldType2) {
12050
- GptFieldType2["Address"] = "Address";
12051
- GptFieldType2["Boolean"] = "Boolean";
12052
- GptFieldType2["Date"] = "Date";
12053
- GptFieldType2["Name"] = "Name";
12054
- GptFieldType2["Number"] = "Number";
12055
- GptFieldType2["Text"] = "Text";
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(JobStatus2) {
12059
- JobStatus2["Succeeded"] = "Succeeded";
12060
- JobStatus2["Failed"] = "Failed";
12061
- JobStatus2["Running"] = "Running";
12062
- JobStatus2["NotStarted"] = "NotStarted";
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(ValidationDisplayMode2) {
12066
- ValidationDisplayMode2["Classic"] = "Classic";
12067
- ValidationDisplayMode2["Compact"] = "Compact";
12065
+ (function(ValidationDisplayMode) {
12066
+ ValidationDisplayMode["Classic"] = "Classic";
12067
+ ValidationDisplayMode["Compact"] = "Compact";
12068
12068
  })(ValidationDisplayMode || (ValidationDisplayMode = {}));
12069
12069
  var ResultsDataSource;
12070
- (function(ResultsDataSource2) {
12071
- ResultsDataSource2["Automatic"] = "Automatic";
12072
- ResultsDataSource2["Manual"] = "Manual";
12073
- ResultsDataSource2["ManuallyChanged"] = "ManuallyChanged";
12074
- ResultsDataSource2["Defaulted"] = "Defaulted";
12075
- ResultsDataSource2["External"] = "External";
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(ComparisonOperator2) {
12079
- ComparisonOperator2["Equals"] = "Equals";
12080
- ComparisonOperator2["NotEquals"] = "NotEquals";
12081
- ComparisonOperator2["Greater"] = "Greater";
12082
- ComparisonOperator2["Less"] = "Less";
12083
- ComparisonOperator2["GreaterOrEqual"] = "GreaterOrEqual";
12084
- ComparisonOperator2["LessOrEqual"] = "LessOrEqual";
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(Criticality2) {
12088
- Criticality2["Must"] = "Must";
12089
- Criticality2["Should"] = "Should";
12087
+ (function(Criticality) {
12088
+ Criticality["Must"] = "Must";
12089
+ Criticality["Should"] = "Should";
12090
12090
  })(Criticality || (Criticality = {}));
12091
12091
  var FieldType;
12092
- (function(FieldType2) {
12093
- FieldType2["Text"] = "Text";
12094
- FieldType2["Number"] = "Number";
12095
- FieldType2["Date"] = "Date";
12096
- FieldType2["Name"] = "Name";
12097
- FieldType2["Address"] = "Address";
12098
- FieldType2["Keyword"] = "Keyword";
12099
- FieldType2["Set"] = "Set";
12100
- FieldType2["Boolean"] = "Boolean";
12101
- FieldType2["Table"] = "Table";
12102
- FieldType2["Internal"] = "Internal";
12103
- FieldType2["FieldGroup"] = "FieldGroup";
12104
- FieldType2["MonetaryQuantity"] = "MonetaryQuantity";
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(LogicalOperator2) {
12108
- LogicalOperator2["AND"] = "AND";
12109
- LogicalOperator2["OR"] = "OR";
12107
+ (function(LogicalOperator) {
12108
+ LogicalOperator["AND"] = "AND";
12109
+ LogicalOperator["OR"] = "OR";
12110
12110
  })(LogicalOperator || (LogicalOperator = {}));
12111
12111
  var RuleType;
12112
- (function(RuleType2) {
12113
- RuleType2["Mandatory"] = "Mandatory";
12114
- RuleType2["PossibleValues"] = "PossibleValues";
12115
- RuleType2["Regex"] = "Regex";
12116
- RuleType2["StartsWith"] = "StartsWith";
12117
- RuleType2["EndsWith"] = "EndsWith";
12118
- RuleType2["FixedLength"] = "FixedLength";
12119
- RuleType2["IsNumeric"] = "IsNumeric";
12120
- RuleType2["IsDate"] = "IsDate";
12121
- RuleType2["IsEmail"] = "IsEmail";
12122
- RuleType2["Contains"] = "Contains";
12123
- RuleType2["Expression"] = "Expression";
12124
- RuleType2["TableExpression"] = "TableExpression";
12125
- RuleType2["IsEmpty"] = "IsEmpty";
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(ActionStatus2) {
12129
- ActionStatus2["Unassigned"] = "Unassigned";
12130
- ActionStatus2["Pending"] = "Pending";
12131
- ActionStatus2["Completed"] = "Completed";
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(PolicyEvaluationResult2) {
12135
- PolicyEvaluationResult2["Allow"] = "Allow";
12136
- PolicyEvaluationResult2["Deny"] = "Deny";
12137
- PolicyEvaluationResult2["SimulatedAllow"] = "SimulatedAllow";
12138
- PolicyEvaluationResult2["SimulatedDeny"] = "SimulatedDeny";
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(PlatformSettingKey2) {
12142
- PlatformSettingKey2["UserLanguage"] = "UserLanguage.Language";
12143
- PlatformSettingKey2["UserLanguageDate"] = "UserLanguage.Date";
12144
- PlatformSettingKey2["UserTheme"] = "UserTheme.Theme";
12145
- PlatformSettingKey2["UserAccessibility"] = "UserAccessibility.Accessibility";
12146
- PlatformSettingKey2["UserAlert"] = "UserAlert.AlertDuration";
12147
- PlatformSettingKey2["UserCaseAppOrder"] = "UserCase.AppOrderByTenant";
12148
- PlatformSettingKey2["UserCasePinnedInstancesByTenant"] = "UserCase.PinnedInstancesByTenant";
12149
- PlatformSettingKey2["UserCaseInstancesTableFiltersByTenant"] = "UserCase.InstancesTableFiltersByTenant";
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(PlatformUserType2) {
12153
- PlatformUserType2["User"] = "user";
12154
- PlatformUserType2["Robot"] = "robot";
12155
- PlatformUserType2["DirectoryUser"] = "directoryUser";
12156
- PlatformUserType2["DirectoryGroup"] = "directoryGroup";
12157
- PlatformUserType2["RobotAccount"] = "robotAccount";
12158
- PlatformUserType2["Application"] = "application";
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(PlatformUserCategory2) {
12162
- PlatformUserCategory2["Local"] = "local";
12163
- PlatformUserCategory2["LinkedLocal"] = "linkedLocal";
12164
- PlatformUserCategory2["Directory"] = "directory";
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(PlatformUserSortField2) {
12168
- PlatformUserSortField2["Id"] = "Id";
12169
- PlatformUserSortField2["UserName"] = "UserName";
12170
- PlatformUserSortField2["Email"] = "Email";
12171
- PlatformUserSortField2["EmailConfirmed"] = "EmailConfirmed";
12172
- PlatformUserSortField2["Name"] = "Name";
12173
- PlatformUserSortField2["Surname"] = "Surname";
12174
- PlatformUserSortField2["DisplayName"] = "DisplayName";
12175
- PlatformUserSortField2["CreatedTime"] = "CreationTime";
12176
- PlatformUserSortField2["LastModifiedTime"] = "LastModificationTime";
12177
- PlatformUserSortField2["LastLoginTime"] = "LastLoginTime";
12178
- PlatformUserSortField2["IsActive"] = "IsActive";
12179
- PlatformUserSortField2["Type"] = "Type";
12180
- PlatformUserSortField2["Category"] = "Category";
12181
- PlatformUserSortField2["InvitationAccepted"] = "InvitationAccepted";
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(PlatformUserSortOrder2) {
12185
- PlatformUserSortOrder2["Ascending"] = "asc";
12186
- PlatformUserSortOrder2["Descending"] = "desc";
12184
+ (function(PlatformUserSortOrder) {
12185
+ PlatformUserSortOrder["Ascending"] = "asc";
12186
+ PlatformUserSortOrder["Descending"] = "desc";
12187
12187
  })(PlatformUserSortOrder || (PlatformUserSortOrder = {}));
12188
12188
  var PlatformRoleType;
12189
- (function(PlatformRoleType2) {
12190
- PlatformRoleType2["BuiltIn"] = "BUILTIN";
12191
- PlatformRoleType2["Platform"] = "PLATFORM";
12192
- PlatformRoleType2["Custom"] = "CUSTOM";
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(PlatformRoleScopeType2) {
12196
- PlatformRoleScopeType2["Organization"] = "ORGANIZATION";
12197
- PlatformRoleScopeType2["Tenant"] = "TENANT";
12198
- PlatformRoleScopeType2["Project"] = "PROJECT";
12199
- PlatformRoleScopeType2["Process"] = "PROCESS";
12200
- PlatformRoleScopeType2["App"] = "APP";
12201
- PlatformRoleScopeType2["Mixed"] = "MIXED";
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(PlatformActionScopeType2) {
12205
- PlatformActionScopeType2["Any"] = "ANY";
12206
- PlatformActionScopeType2["None"] = "NONE";
12207
- PlatformActionScopeType2["Organization"] = "ORGANIZATION";
12208
- PlatformActionScopeType2["Tenant"] = "TENANT";
12209
- PlatformActionScopeType2["Folder"] = "FOLDER";
12210
- PlatformActionScopeType2["Project"] = "PROJECT";
12211
- PlatformActionScopeType2["Process"] = "PROCESS";
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(PlatformPrincipalType2) {
12215
- PlatformPrincipalType2["User"] = "User";
12216
- PlatformPrincipalType2["Group"] = "Group";
12217
- PlatformPrincipalType2["ExternalApplication"] = "ExternalApplication";
12218
- PlatformPrincipalType2["Robot"] = "Robot";
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(PlatformRoleSortField2) {
12222
- PlatformRoleSortField2["Id"] = "Id";
12223
- PlatformRoleSortField2["Name"] = "OriginalRoleName";
12224
- PlatformRoleSortField2["UniqueName"] = "UniqueName";
12225
- PlatformRoleSortField2["Description"] = "Description";
12226
- PlatformRoleSortField2["Type"] = "Type";
12227
- PlatformRoleSortField2["ScopeType"] = "ScopeType";
12228
- PlatformRoleSortField2["OrganizationId"] = "OrganizationId";
12229
- PlatformRoleSortField2["TenantId"] = "TenantId";
12230
- PlatformRoleSortField2["OwnerService"] = "OwnerService";
12231
- PlatformRoleSortField2["OwnerServiceId"] = "OwnerServiceId";
12232
- PlatformRoleSortField2["CreatedBy"] = "CreatedBy";
12233
- PlatformRoleSortField2["CreatedTime"] = "CreatedOn";
12234
- PlatformRoleSortField2["UpdatedBy"] = "UpdatedBy";
12235
- PlatformRoleSortField2["UpdatedTime"] = "UpdatedOn";
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(PlatformRoleSortOrder2) {
12239
- PlatformRoleSortOrder2["Ascending"] = "Asc";
12240
- PlatformRoleSortOrder2["Descending"] = "Desc";
12238
+ (function(PlatformRoleSortOrder) {
12239
+ PlatformRoleSortOrder["Ascending"] = "Asc";
12240
+ PlatformRoleSortOrder["Descending"] = "Desc";
12241
12241
  })(PlatformRoleSortOrder || (PlatformRoleSortOrder = {}));
12242
12242
  var PlatformGroupType;
12243
- (function(PlatformGroupType2) {
12244
- PlatformGroupType2["BuiltIn"] = "builtIn";
12245
- PlatformGroupType2["Custom"] = "custom";
12243
+ (function(PlatformGroupType) {
12244
+ PlatformGroupType["BuiltIn"] = "builtIn";
12245
+ PlatformGroupType["Custom"] = "custom";
12246
12246
  })(PlatformGroupType || (PlatformGroupType = {}));
12247
12247
  var LifeCycleStage;
12248
- (function(LifeCycleStage2) {
12249
- LifeCycleStage2["PREVIEW"] = "PREVIEW";
12250
- LifeCycleStage2["GA"] = "GA";
12251
- LifeCycleStage2["DEPRECATED"] = "DEPRECATED";
12252
- LifeCycleStage2["CUSTOM"] = "CUSTOM";
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(SpanStatus2) {
12256
- SpanStatus2["Unset"] = "Unset";
12257
- SpanStatus2["Ok"] = "Ok";
12258
- SpanStatus2["Error"] = "Error";
12259
- SpanStatus2["Running"] = "Running";
12260
- SpanStatus2["Restricted"] = "Restricted";
12261
- SpanStatus2["Cancelled"] = "Cancelled";
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(SpanSource2) {
12265
- SpanSource2["Testing"] = "Testing";
12266
- SpanSource2["Agents"] = "Agents";
12267
- SpanSource2["ProcessOrchestration"] = "ProcessOrchestration";
12268
- SpanSource2["ApiWorkflows"] = "ApiWorkflows";
12269
- SpanSource2["Robots"] = "Robots";
12270
- SpanSource2["ConversationalAgentsService"] = "ConversationalAgentsService";
12271
- SpanSource2["IntegrationServiceTrigger"] = "IntegrationServiceTrigger";
12272
- SpanSource2["Playground"] = "Playground";
12273
- SpanSource2["Governance"] = "Governance";
12274
- SpanSource2["IXPUnstructuredAndComplexDocuments"] = "IXPUnstructuredAndComplexDocuments";
12275
- SpanSource2["CodedAgents"] = "CodedAgents";
12276
- SpanSource2["IXPCommunicationsMining"] = "IXPCommunicationsMining";
12277
- SpanSource2["EnterpriseContextService"] = "EnterpriseContextService";
12278
- SpanSource2["MCP"] = "MCP";
12279
- SpanSource2["A2A"] = "A2A";
12280
- SpanSource2["Serverless"] = "Serverless";
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(SpanVerbosityLevel2) {
12284
- SpanVerbosityLevel2["Verbose"] = "Verbose";
12285
- SpanVerbosityLevel2["Trace"] = "Trace";
12286
- SpanVerbosityLevel2["Information"] = "Information";
12287
- SpanVerbosityLevel2["Warning"] = "Warning";
12288
- SpanVerbosityLevel2["Error"] = "Error";
12289
- SpanVerbosityLevel2["Critical"] = "Critical";
12290
- SpanVerbosityLevel2["Off"] = "Off";
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(SpanExecutionType2) {
12294
- SpanExecutionType2["Debug"] = "Debug";
12295
- SpanExecutionType2["Runtime"] = "Runtime";
12293
+ (function(SpanExecutionType) {
12294
+ SpanExecutionType["Debug"] = "Debug";
12295
+ SpanExecutionType["Runtime"] = "Runtime";
12296
12296
  })(SpanExecutionType || (SpanExecutionType = {}));
12297
12297
  var SpanPermissionStatus;
12298
- (function(SpanPermissionStatus2) {
12299
- SpanPermissionStatus2["Allow"] = "Allow";
12300
- SpanPermissionStatus2["PartialBlock"] = "PartialBlock";
12301
- SpanPermissionStatus2["Block"] = "Block";
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(SpanAttachmentProvider2) {
12305
- SpanAttachmentProvider2["Orchestrator"] = "Orchestrator";
12306
- SpanAttachmentProvider2["LLMOps"] = "LLMOps";
12304
+ (function(SpanAttachmentProvider) {
12305
+ SpanAttachmentProvider["Orchestrator"] = "Orchestrator";
12306
+ SpanAttachmentProvider["LLMOps"] = "LLMOps";
12307
12307
  })(SpanAttachmentProvider || (SpanAttachmentProvider = {}));
12308
12308
  var SpanAttachmentDirection;
12309
- (function(SpanAttachmentDirection2) {
12310
- SpanAttachmentDirection2["None"] = "None";
12311
- SpanAttachmentDirection2["In"] = "In";
12312
- SpanAttachmentDirection2["Out"] = "Out";
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(AgentGovernanceMode2) {
12316
- AgentGovernanceMode2["Audit"] = "AUDIT";
12317
- AgentGovernanceMode2["Enforce"] = "ENFORCE";
12318
- AgentGovernanceMode2["Unknown"] = "Unknown";
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(AgentGovernanceVerdict2) {
12322
- AgentGovernanceVerdict2["Allow"] = "ALLOW";
12323
- AgentGovernanceVerdict2["Deny"] = "DENY";
12324
- AgentGovernanceVerdict2["Unknown"] = "Unknown";
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(AgentGovernanceSection2) {
12328
- AgentGovernanceSection2["Totals"] = "totals";
12329
- AgentGovernanceSection2["Hook"] = "hook";
12330
- AgentGovernanceSection2["Agent"] = "agent";
12331
- AgentGovernanceSection2["Policy"] = "policy";
12332
- AgentGovernanceSection2["Pack"] = "pack";
12333
- AgentGovernanceSection2["Action"] = "action";
12334
- AgentGovernanceSection2["Mode"] = "mode";
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 status = await getLoginStatusAsync();
12341
- if (status.loginStatus !== "Logged in" || !status.accessToken || !status.baseUrl) {
12342
- throw new Error(status.hint ?? "Not logged in. Run 'uip login' first.");
12343
- }
12344
- return new UiPath2({
12345
- secret: status.accessToken,
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-nr509xjn.js");
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, agents2] = await catchError(conversationalService.getAll(options.folderId));
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: agents2.map(toCliAgentFromList)
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-nr509xjn.js");
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: MessageRole2 } = await import("./index-nr509xjn.js");
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, MessageRole2.User);
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-nr509xjn.js");
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-nr509xjn.js");
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-nr509xjn.js");
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-nr509xjn.js");
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-nr509xjn.js");
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-nr509xjn.js");
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-nr509xjn.js");
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-nr509xjn.js");
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-nr509xjn.js");
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: FeedbackRating2 } = await import("./index-nr509xjn.js");
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" ? FeedbackRating2.Positive : FeedbackRating2.Negative,
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-nr509xjn.js");
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-nr509xjn.js");
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-p7nc2k13.js");
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-p7nc2k13.js");
13261
- const [listError, trunks2] = await catchError(listSipTrunks(options.direction));
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: trunks2
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-p7nc2k13.js");
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-nr509xjn.js");
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-nr509xjn.js");
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 metadata = {
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 registerCommands = async (program) => {
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 { metadata, registerCommands };
13839
+ export { metadata2, registerCommands2 };
13413
13840
 
13414
- //# debugId=78E25FEAD0F5359364756E2164756E21
13841
+ //# debugId=DBD1E0019B7D671164756E2164756E21