@uipath/tasks-tool 1.205.0-preview.276 → 1.206.0-preview.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +1,55 @@
1
1
  import {
2
- Option,
3
- OutputFormatter,
4
- RESULTS,
5
2
  catchError,
6
- classifiedFailure,
7
- createHiddenDeprecatedTenantOption,
8
3
  extractErrorMessage,
9
4
  extractErrorMessageSync,
10
- getLoginStatusAsync,
11
- processContext
12
- } from "./tool-s6dm918n.js";
5
+ RESULTS,
6
+ classifiedFailure,
7
+ Option,
8
+ OutputFormatter,
9
+ processContext,
10
+ createHiddenDeprecatedTenantOption,
11
+ getAuthContext
12
+ } from "./tool-df3kr747.js";
13
13
  import {
14
14
  require_src
15
- } from "./tool-bndhpxxj.js";
15
+ } from "./tool-4b88bsfh.js";
16
16
  import {
17
+ __toESM,
17
18
  __commonJS,
18
- __require,
19
- __toESM
20
- } from "./tool-1de529jm.js";
19
+ __require
20
+ } from "./tool-epsr41wx.js";
21
21
 
22
22
  // ../../node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/api-logs/build/src/types/LogRecord.js
23
23
  var require_LogRecord = __commonJS(function(exports) {
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.SeverityNumber = undefined;
26
26
  var SeverityNumber;
27
- (function(SeverityNumber2) {
28
- SeverityNumber2[SeverityNumber2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
29
- SeverityNumber2[SeverityNumber2["TRACE"] = 1] = "TRACE";
30
- SeverityNumber2[SeverityNumber2["TRACE2"] = 2] = "TRACE2";
31
- SeverityNumber2[SeverityNumber2["TRACE3"] = 3] = "TRACE3";
32
- SeverityNumber2[SeverityNumber2["TRACE4"] = 4] = "TRACE4";
33
- SeverityNumber2[SeverityNumber2["DEBUG"] = 5] = "DEBUG";
34
- SeverityNumber2[SeverityNumber2["DEBUG2"] = 6] = "DEBUG2";
35
- SeverityNumber2[SeverityNumber2["DEBUG3"] = 7] = "DEBUG3";
36
- SeverityNumber2[SeverityNumber2["DEBUG4"] = 8] = "DEBUG4";
37
- SeverityNumber2[SeverityNumber2["INFO"] = 9] = "INFO";
38
- SeverityNumber2[SeverityNumber2["INFO2"] = 10] = "INFO2";
39
- SeverityNumber2[SeverityNumber2["INFO3"] = 11] = "INFO3";
40
- SeverityNumber2[SeverityNumber2["INFO4"] = 12] = "INFO4";
41
- SeverityNumber2[SeverityNumber2["WARN"] = 13] = "WARN";
42
- SeverityNumber2[SeverityNumber2["WARN2"] = 14] = "WARN2";
43
- SeverityNumber2[SeverityNumber2["WARN3"] = 15] = "WARN3";
44
- SeverityNumber2[SeverityNumber2["WARN4"] = 16] = "WARN4";
45
- SeverityNumber2[SeverityNumber2["ERROR"] = 17] = "ERROR";
46
- SeverityNumber2[SeverityNumber2["ERROR2"] = 18] = "ERROR2";
47
- SeverityNumber2[SeverityNumber2["ERROR3"] = 19] = "ERROR3";
48
- SeverityNumber2[SeverityNumber2["ERROR4"] = 20] = "ERROR4";
49
- SeverityNumber2[SeverityNumber2["FATAL"] = 21] = "FATAL";
50
- SeverityNumber2[SeverityNumber2["FATAL2"] = 22] = "FATAL2";
51
- SeverityNumber2[SeverityNumber2["FATAL3"] = 23] = "FATAL3";
52
- SeverityNumber2[SeverityNumber2["FATAL4"] = 24] = "FATAL4";
27
+ (function(SeverityNumber) {
28
+ SeverityNumber[SeverityNumber["UNSPECIFIED"] = 0] = "UNSPECIFIED";
29
+ SeverityNumber[SeverityNumber["TRACE"] = 1] = "TRACE";
30
+ SeverityNumber[SeverityNumber["TRACE2"] = 2] = "TRACE2";
31
+ SeverityNumber[SeverityNumber["TRACE3"] = 3] = "TRACE3";
32
+ SeverityNumber[SeverityNumber["TRACE4"] = 4] = "TRACE4";
33
+ SeverityNumber[SeverityNumber["DEBUG"] = 5] = "DEBUG";
34
+ SeverityNumber[SeverityNumber["DEBUG2"] = 6] = "DEBUG2";
35
+ SeverityNumber[SeverityNumber["DEBUG3"] = 7] = "DEBUG3";
36
+ SeverityNumber[SeverityNumber["DEBUG4"] = 8] = "DEBUG4";
37
+ SeverityNumber[SeverityNumber["INFO"] = 9] = "INFO";
38
+ SeverityNumber[SeverityNumber["INFO2"] = 10] = "INFO2";
39
+ SeverityNumber[SeverityNumber["INFO3"] = 11] = "INFO3";
40
+ SeverityNumber[SeverityNumber["INFO4"] = 12] = "INFO4";
41
+ SeverityNumber[SeverityNumber["WARN"] = 13] = "WARN";
42
+ SeverityNumber[SeverityNumber["WARN2"] = 14] = "WARN2";
43
+ SeverityNumber[SeverityNumber["WARN3"] = 15] = "WARN3";
44
+ SeverityNumber[SeverityNumber["WARN4"] = 16] = "WARN4";
45
+ SeverityNumber[SeverityNumber["ERROR"] = 17] = "ERROR";
46
+ SeverityNumber[SeverityNumber["ERROR2"] = 18] = "ERROR2";
47
+ SeverityNumber[SeverityNumber["ERROR3"] = 19] = "ERROR3";
48
+ SeverityNumber[SeverityNumber["ERROR4"] = 20] = "ERROR4";
49
+ SeverityNumber[SeverityNumber["FATAL"] = 21] = "FATAL";
50
+ SeverityNumber[SeverityNumber["FATAL2"] = 22] = "FATAL2";
51
+ SeverityNumber[SeverityNumber["FATAL3"] = 23] = "FATAL3";
52
+ SeverityNumber[SeverityNumber["FATAL4"] = 24] = "FATAL4";
53
53
  })(SeverityNumber = exports.SeverityNumber || (exports.SeverityNumber = {}));
54
54
  });
55
55
 
@@ -2453,9 +2453,9 @@ var require_ExportResult = __commonJS(function(exports) {
2453
2453
  Object.defineProperty(exports, "__esModule", { value: true });
2454
2454
  exports.ExportResultCode = undefined;
2455
2455
  var ExportResultCode;
2456
- (function(ExportResultCode2) {
2457
- ExportResultCode2[ExportResultCode2["SUCCESS"] = 0] = "SUCCESS";
2458
- ExportResultCode2[ExportResultCode2["FAILED"] = 1] = "FAILED";
2456
+ (function(ExportResultCode) {
2457
+ ExportResultCode[ExportResultCode["SUCCESS"] = 0] = "SUCCESS";
2458
+ ExportResultCode[ExportResultCode["FAILED"] = 1] = "FAILED";
2459
2459
  })(ExportResultCode = exports.ExportResultCode || (exports.ExportResultCode = {}));
2460
2460
  });
2461
2461
 
@@ -2707,8 +2707,8 @@ var require_rpc_metadata = __commonJS(function(exports) {
2707
2707
  var api_1 = require_src();
2708
2708
  var RPC_METADATA_KEY = (0, api_1.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA");
2709
2709
  var RPCType;
2710
- (function(RPCType2) {
2711
- RPCType2["HTTP"] = "http";
2710
+ (function(RPCType) {
2711
+ RPCType["HTTP"] = "http";
2712
2712
  })(RPCType = exports.RPCType || (exports.RPCType = {}));
2713
2713
  function setRPCMetadata(context, meta) {
2714
2714
  return context.setValue(RPC_METADATA_KEY, meta);
@@ -3577,19 +3577,19 @@ var require_getMachineId = __commonJS(function(exports) {
3577
3577
  if (!getMachineIdImpl) {
3578
3578
  switch (process2.platform) {
3579
3579
  case "darwin":
3580
- getMachineIdImpl = (await import("./getMachineId-darwin-4g3xfpfp.js").then((m)=>__toESM(m.default))).getMachineId;
3580
+ getMachineIdImpl = (await import("./getMachineId-darwin-k0c7ykqv.js").then((m)=>__toESM(m.default))).getMachineId;
3581
3581
  break;
3582
3582
  case "linux":
3583
- getMachineIdImpl = (await import("./getMachineId-linux-a4p6fb9w.js").then((m)=>__toESM(m.default))).getMachineId;
3583
+ getMachineIdImpl = (await import("./getMachineId-linux-f0m4gd78.js").then((m)=>__toESM(m.default))).getMachineId;
3584
3584
  break;
3585
3585
  case "freebsd":
3586
- getMachineIdImpl = (await import("./getMachineId-bsd-67w37xtj.js").then((m)=>__toESM(m.default))).getMachineId;
3586
+ getMachineIdImpl = (await import("./getMachineId-bsd-hr7dy73y.js").then((m)=>__toESM(m.default))).getMachineId;
3587
3587
  break;
3588
3588
  case "win32":
3589
- getMachineIdImpl = (await import("./getMachineId-win-9cfxg9c8.js").then((m)=>__toESM(m.default))).getMachineId;
3589
+ getMachineIdImpl = (await import("./getMachineId-win-zqh7yjfs.js").then((m)=>__toESM(m.default))).getMachineId;
3590
3590
  break;
3591
3591
  default:
3592
- getMachineIdImpl = (await import("./getMachineId-unsupported-77w362eh.js").then((m)=>__toESM(m.default))).getMachineId;
3592
+ getMachineIdImpl = (await import("./getMachineId-unsupported-e99prk6h.js").then((m)=>__toESM(m.default))).getMachineId;
3593
3593
  break;
3594
3594
  }
3595
3595
  }
@@ -3697,8 +3697,8 @@ var require_ProcessDetector = __commonJS(function(exports) {
3697
3697
  attributes[semconv_1.ATTR_PROCESS_COMMAND] = process.argv[1];
3698
3698
  }
3699
3699
  try {
3700
- const userInfo = os.userInfo();
3701
- attributes[semconv_1.ATTR_PROCESS_OWNER] = userInfo.username;
3700
+ const userInfo2 = os.userInfo();
3701
+ attributes[semconv_1.ATTR_PROCESS_OWNER] = userInfo2.username;
3702
3702
  } catch (e) {
3703
3703
  api_1.diag.debug(`error obtaining process owner: ${e}`);
3704
3704
  }
@@ -4503,7 +4503,7 @@ var package_default = {
4503
4503
  name: "@uipath/tasks-tool",
4504
4504
  author: "UiPath",
4505
4505
  license: "SEE LICENSE IN LICENSE.txt",
4506
- version: "1.205.0-preview.276",
4506
+ version: "1.206.0-preview.279",
4507
4507
  description: "Manage Action Center tasks.",
4508
4508
  publishConfig: {
4509
4509
  registry: "https://npm.pkg.github.com/"
@@ -4521,6 +4521,7 @@ var package_default = {
4521
4521
  ],
4522
4522
  scripts: {
4523
4523
  build: "bun ../../tools/build-tool.ts",
4524
+ typecheck: "tsc --noEmit",
4524
4525
  test: "vitest run",
4525
4526
  "test:coverage": "vitest run --coverage",
4526
4527
  lint: "biome check .",
@@ -5213,10 +5214,10 @@ function prefixIssues(path, issues) {
5213
5214
  function unwrapMessage(message) {
5214
5215
  return typeof message === "string" ? message : message?.message;
5215
5216
  }
5216
- function finalizeIssue(iss, ctx, config2) {
5217
+ function finalizeIssue(iss, ctx, config) {
5217
5218
  const full = { ...iss, path: iss.path ?? [] };
5218
5219
  if (!iss.message) {
5219
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
5220
+ const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
5220
5221
  full.message = message;
5221
5222
  }
5222
5223
  delete full.inst;
@@ -5263,7 +5264,7 @@ var initializer$1 = (inst, def) => {
5263
5264
  };
5264
5265
  var $ZodError = $constructor("$ZodError", initializer$1);
5265
5266
  var $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
5266
- function flattenError(error, mapper = (issue2) => issue2.message) {
5267
+ function flattenError(error, mapper = (issue) => issue.message) {
5267
5268
  const fieldErrors = {};
5268
5269
  const formErrors = [];
5269
5270
  for (const sub of error.issues) {
@@ -5276,29 +5277,29 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
5276
5277
  }
5277
5278
  return { formErrors, fieldErrors };
5278
5279
  }
5279
- function formatError(error, mapper = (issue2) => issue2.message) {
5280
+ function formatError(error, mapper = (issue) => issue.message) {
5280
5281
  const fieldErrors = { _errors: [] };
5281
- const processError = (error2) => {
5282
- for (const issue2 of error2.issues) {
5283
- if (issue2.code === "invalid_union" && issue2.errors.length) {
5284
- issue2.errors.map((issues) => processError({ issues }));
5285
- } else if (issue2.code === "invalid_key") {
5286
- processError({ issues: issue2.issues });
5287
- } else if (issue2.code === "invalid_element") {
5288
- processError({ issues: issue2.issues });
5289
- } else if (issue2.path.length === 0) {
5290
- fieldErrors._errors.push(mapper(issue2));
5282
+ const processError = (error) => {
5283
+ for (const issue of error.issues) {
5284
+ if (issue.code === "invalid_union" && issue.errors.length) {
5285
+ issue.errors.map((issues) => processError({ issues }));
5286
+ } else if (issue.code === "invalid_key") {
5287
+ processError({ issues: issue.issues });
5288
+ } else if (issue.code === "invalid_element") {
5289
+ processError({ issues: issue.issues });
5290
+ } else if (issue.path.length === 0) {
5291
+ fieldErrors._errors.push(mapper(issue));
5291
5292
  } else {
5292
5293
  let curr = fieldErrors;
5293
5294
  let i = 0;
5294
- while (i < issue2.path.length) {
5295
- const el = issue2.path[i];
5296
- const terminal = i === issue2.path.length - 1;
5295
+ while (i < issue.path.length) {
5296
+ const el = issue.path[i];
5297
+ const terminal = i === issue.path.length - 1;
5297
5298
  if (!terminal) {
5298
5299
  curr[el] = curr[el] || { _errors: [] };
5299
5300
  } else {
5300
5301
  curr[el] = curr[el] || { _errors: [] };
5301
- curr[el]._errors.push(mapper(issue2));
5302
+ curr[el]._errors.push(mapper(issue));
5302
5303
  }
5303
5304
  curr = curr[el];
5304
5305
  i++;
@@ -5450,10 +5451,10 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
5450
5451
  const val = payload.value;
5451
5452
  return !nullish(val) && val.length !== undefined;
5452
5453
  });
5453
- inst._zod.onattach.push((inst2) => {
5454
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
5454
+ inst._zod.onattach.push((inst) => {
5455
+ const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
5455
5456
  if (def.maximum < curr)
5456
- inst2._zod.bag.maximum = def.maximum;
5457
+ inst._zod.bag.maximum = def.maximum;
5457
5458
  });
5458
5459
  inst._zod.check = (payload) => {
5459
5460
  const input = payload.value;
@@ -5479,10 +5480,10 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
5479
5480
  const val = payload.value;
5480
5481
  return !nullish(val) && val.length !== undefined;
5481
5482
  });
5482
- inst._zod.onattach.push((inst2) => {
5483
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
5483
+ inst._zod.onattach.push((inst) => {
5484
+ const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
5484
5485
  if (def.minimum > curr)
5485
- inst2._zod.bag.minimum = def.minimum;
5486
+ inst._zod.bag.minimum = def.minimum;
5486
5487
  });
5487
5488
  inst._zod.check = (payload) => {
5488
5489
  const input = payload.value;
@@ -5508,8 +5509,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
5508
5509
  const val = payload.value;
5509
5510
  return !nullish(val) && val.length !== undefined;
5510
5511
  });
5511
- inst._zod.onattach.push((inst2) => {
5512
- const bag = inst2._zod.bag;
5512
+ inst._zod.onattach.push((inst) => {
5513
+ const bag = inst._zod.bag;
5513
5514
  bag.minimum = def.length;
5514
5515
  bag.maximum = def.length;
5515
5516
  bag.length = def.length;
@@ -5535,8 +5536,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
5535
5536
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
5536
5537
  var _a, _b;
5537
5538
  $ZodCheck.init(inst, def);
5538
- inst._zod.onattach.push((inst2) => {
5539
- const bag = inst2._zod.bag;
5539
+ inst._zod.onattach.push((inst) => {
5540
+ const bag = inst._zod.bag;
5540
5541
  bag.format = def.format;
5541
5542
  if (def.pattern) {
5542
5543
  bag.patterns ?? (bag.patterns = new Set);
@@ -5591,8 +5592,8 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
5591
5592
  const escapedRegex = escapeRegex(def.includes);
5592
5593
  const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
5593
5594
  def.pattern = pattern;
5594
- inst._zod.onattach.push((inst2) => {
5595
- const bag = inst2._zod.bag;
5595
+ inst._zod.onattach.push((inst) => {
5596
+ const bag = inst._zod.bag;
5596
5597
  bag.patterns ?? (bag.patterns = new Set);
5597
5598
  bag.patterns.add(pattern);
5598
5599
  });
@@ -5614,8 +5615,8 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
5614
5615
  $ZodCheck.init(inst, def);
5615
5616
  const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
5616
5617
  def.pattern ?? (def.pattern = pattern);
5617
- inst._zod.onattach.push((inst2) => {
5618
- const bag = inst2._zod.bag;
5618
+ inst._zod.onattach.push((inst) => {
5619
+ const bag = inst._zod.bag;
5619
5620
  bag.patterns ?? (bag.patterns = new Set);
5620
5621
  bag.patterns.add(pattern);
5621
5622
  });
@@ -5637,8 +5638,8 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
5637
5638
  $ZodCheck.init(inst, def);
5638
5639
  const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
5639
5640
  def.pattern ?? (def.pattern = pattern);
5640
- inst._zod.onattach.push((inst2) => {
5641
- const bag = inst2._zod.bag;
5641
+ inst._zod.onattach.push((inst) => {
5642
+ const bag = inst._zod.bag;
5642
5643
  bag.patterns ?? (bag.patterns = new Set);
5643
5644
  bag.patterns.add(pattern);
5644
5645
  });
@@ -5725,10 +5726,10 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5725
5726
  inst._zod.run = inst._zod.parse;
5726
5727
  });
5727
5728
  } else {
5728
- const runChecks = (payload, checks2, ctx) => {
5729
+ const runChecks = (payload, checks, ctx) => {
5729
5730
  let isAborted = aborted(payload);
5730
5731
  let asyncResult;
5731
- for (const ch of checks2) {
5732
+ for (const ch of checks) {
5732
5733
  if (ch._zod.def.when) {
5733
5734
  const shouldRun = ch._zod.def.when(payload);
5734
5735
  if (!shouldRun)
@@ -5774,7 +5775,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5774
5775
  if (checkResult instanceof Promise) {
5775
5776
  if (ctx.async === false)
5776
5777
  throw new $ZodAsyncError;
5777
- return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
5778
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
5778
5779
  }
5779
5780
  return inst._zod.parse(checkResult, ctx);
5780
5781
  };
@@ -5785,8 +5786,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5785
5786
  if (ctx.direction === "backward") {
5786
5787
  const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
5787
5788
  if (canary instanceof Promise) {
5788
- return canary.then((canary2) => {
5789
- return handleCanaryResult(canary2, payload, ctx);
5789
+ return canary.then((canary) => {
5790
+ return handleCanaryResult(canary, payload, ctx);
5790
5791
  });
5791
5792
  }
5792
5793
  return handleCanaryResult(canary, payload, ctx);
@@ -5795,7 +5796,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5795
5796
  if (result instanceof Promise) {
5796
5797
  if (ctx.async === false)
5797
5798
  throw new $ZodAsyncError;
5798
- return result.then((result2) => runChecks(result2, checks, ctx));
5799
+ return result.then((result) => runChecks(result, checks, ctx));
5799
5800
  }
5800
5801
  return runChecks(result, checks, ctx);
5801
5802
  };
@@ -5820,7 +5821,7 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
5820
5821
  if (def.coerce)
5821
5822
  try {
5822
5823
  payload.value = String(payload.value);
5823
- } catch (_2) {}
5824
+ } catch (_) {}
5824
5825
  if (typeof payload.value === "string")
5825
5826
  return payload;
5826
5827
  payload.issues.push({
@@ -6045,8 +6046,8 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
6045
6046
  function isValidBase64URL(data) {
6046
6047
  if (!base64url.test(data))
6047
6048
  return false;
6048
- const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
6049
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
6049
+ const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
6050
+ const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
6050
6051
  return isValidBase64(padded);
6051
6052
  }
6052
6053
  var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
@@ -6167,7 +6168,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
6167
6168
  issues: []
6168
6169
  }, ctx);
6169
6170
  if (result instanceof Promise) {
6170
- proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
6171
+ proms.push(result.then((result) => handleArrayResult(result, payload, i)));
6171
6172
  } else {
6172
6173
  handleArrayResult(result, payload, i);
6173
6174
  }
@@ -6224,7 +6225,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
6224
6225
  }
6225
6226
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
6226
6227
  if (r instanceof Promise) {
6227
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
6228
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
6228
6229
  } else {
6229
6230
  handlePropertyResult(r, payload, key, input, isOptionalOut);
6230
6231
  }
@@ -6295,7 +6296,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
6295
6296
  const isOptionalOut = el._zod.optout === "optional";
6296
6297
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
6297
6298
  if (r instanceof Promise) {
6298
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
6299
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
6299
6300
  } else {
6300
6301
  handlePropertyResult(r, payload, key, input, isOptionalOut);
6301
6302
  }
@@ -6466,8 +6467,8 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
6466
6467
  }
6467
6468
  if (!async)
6468
6469
  return handleUnionResults(results, payload, inst, ctx);
6469
- return Promise.all(results).then((results2) => {
6470
- return handleUnionResults(results2, payload, inst, ctx);
6470
+ return Promise.all(results).then((results) => {
6471
+ return handleUnionResults(results, payload, inst, ctx);
6471
6472
  });
6472
6473
  };
6473
6474
  });
@@ -6479,8 +6480,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
6479
6480
  const right = def.right._zod.run({ value: input, issues: [] }, ctx);
6480
6481
  const async = left instanceof Promise || right instanceof Promise;
6481
6482
  if (async) {
6482
- return Promise.all([left, right]).then(([left2, right2]) => {
6483
- return handleIntersectionResults(payload, left2, right2);
6483
+ return Promise.all([left, right]).then(([left, right]) => {
6484
+ return handleIntersectionResults(payload, left, right);
6484
6485
  });
6485
6486
  }
6486
6487
  return handleIntersectionResults(payload, left, right);
@@ -6598,8 +6599,8 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
6598
6599
  const _out = def.transform(payload.value, payload);
6599
6600
  if (ctx.async) {
6600
6601
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
6601
- return output.then((output2) => {
6602
- payload.value = output2;
6602
+ return output.then((output) => {
6603
+ payload.value = output;
6603
6604
  return payload;
6604
6605
  });
6605
6606
  }
@@ -6679,7 +6680,7 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
6679
6680
  }
6680
6681
  const result = def.innerType._zod.run(payload, ctx);
6681
6682
  if (result instanceof Promise) {
6682
- return result.then((result2) => handleDefaultResult(result2, def));
6683
+ return result.then((result) => handleDefaultResult(result, def));
6683
6684
  }
6684
6685
  return handleDefaultResult(result, def);
6685
6686
  };
@@ -6713,7 +6714,7 @@ var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def
6713
6714
  inst._zod.parse = (payload, ctx) => {
6714
6715
  const result = def.innerType._zod.run(payload, ctx);
6715
6716
  if (result instanceof Promise) {
6716
- return result.then((result2) => handleNonOptionalResult(result2, inst));
6717
+ return result.then((result) => handleNonOptionalResult(result, inst));
6717
6718
  }
6718
6719
  return handleNonOptionalResult(result, inst);
6719
6720
  };
@@ -6740,13 +6741,13 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
6740
6741
  }
6741
6742
  const result = def.innerType._zod.run(payload, ctx);
6742
6743
  if (result instanceof Promise) {
6743
- return result.then((result2) => {
6744
- payload.value = result2.value;
6745
- if (result2.issues.length) {
6744
+ return result.then((result) => {
6745
+ payload.value = result.value;
6746
+ if (result.issues.length) {
6746
6747
  payload.value = def.catchValue({
6747
6748
  ...payload,
6748
6749
  error: {
6749
- issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
6750
+ issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
6750
6751
  },
6751
6752
  input: payload.value
6752
6753
  });
@@ -6779,13 +6780,13 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
6779
6780
  if (ctx.direction === "backward") {
6780
6781
  const right = def.out._zod.run(payload, ctx);
6781
6782
  if (right instanceof Promise) {
6782
- return right.then((right2) => handlePipeResult(right2, def.in, ctx));
6783
+ return right.then((right) => handlePipeResult(right, def.in, ctx));
6783
6784
  }
6784
6785
  return handlePipeResult(right, def.in, ctx);
6785
6786
  }
6786
6787
  const left = def.in._zod.run(payload, ctx);
6787
6788
  if (left instanceof Promise) {
6788
- return left.then((left2) => handlePipeResult(left2, def.out, ctx));
6789
+ return left.then((left) => handlePipeResult(left, def.out, ctx));
6789
6790
  }
6790
6791
  return handlePipeResult(left, def.out, ctx);
6791
6792
  };
@@ -6828,7 +6829,7 @@ var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
6828
6829
  const input = payload.value;
6829
6830
  const r = def.fn(input);
6830
6831
  if (r instanceof Promise) {
6831
- return r.then((r2) => handleRefineResult(r2, payload, input, inst));
6832
+ return r.then((r) => handleRefineResult(r, payload, input, inst));
6832
6833
  }
6833
6834
  handleRefineResult(r, payload, input, inst);
6834
6835
  return;
@@ -7381,7 +7382,7 @@ function extractDefs(ctx, schema) {
7381
7382
  const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
7382
7383
  if (ctx.external) {
7383
7384
  const externalId = ctx.external.registry.get(entry[0])?.id;
7384
- const uriGenerator = ctx.external.uri ?? ((id2) => id2);
7385
+ const uriGenerator = ctx.external.uri ?? ((id) => id);
7385
7386
  if (externalId) {
7386
7387
  return { ref: uriGenerator(externalId) };
7387
7388
  }
@@ -7406,11 +7407,11 @@ function extractDefs(ctx, schema) {
7406
7407
  seen.def = { ...seen.schema };
7407
7408
  if (defId)
7408
7409
  seen.defId = defId;
7409
- const schema2 = seen.schema;
7410
- for (const key in schema2) {
7411
- delete schema2[key];
7410
+ const schema = seen.schema;
7411
+ for (const key in schema) {
7412
+ delete schema[key];
7412
7413
  }
7413
- schema2.$ref = ref;
7414
+ schema.$ref = ref;
7414
7415
  };
7415
7416
  if (ctx.cycles === "throw") {
7416
7417
  for (const entry of ctx.seen.entries()) {
@@ -7458,8 +7459,8 @@ function finalize(ctx, schema) {
7458
7459
  const seen = ctx.seen.get(zodSchema);
7459
7460
  if (seen.ref === null)
7460
7461
  return;
7461
- const schema2 = seen.def ?? seen.schema;
7462
- const _cached = { ...schema2 };
7462
+ const schema = seen.def ?? seen.schema;
7463
+ const _cached = { ...schema };
7463
7464
  const ref = seen.ref;
7464
7465
  seen.ref = null;
7465
7466
  if (ref) {
@@ -7467,28 +7468,28 @@ function finalize(ctx, schema) {
7467
7468
  const refSeen = ctx.seen.get(ref);
7468
7469
  const refSchema = refSeen.schema;
7469
7470
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
7470
- schema2.allOf = schema2.allOf ?? [];
7471
- schema2.allOf.push(refSchema);
7471
+ schema.allOf = schema.allOf ?? [];
7472
+ schema.allOf.push(refSchema);
7472
7473
  } else {
7473
- Object.assign(schema2, refSchema);
7474
+ Object.assign(schema, refSchema);
7474
7475
  }
7475
- Object.assign(schema2, _cached);
7476
+ Object.assign(schema, _cached);
7476
7477
  const isParentRef = zodSchema._zod.parent === ref;
7477
7478
  if (isParentRef) {
7478
- for (const key in schema2) {
7479
+ for (const key in schema) {
7479
7480
  if (key === "$ref" || key === "allOf")
7480
7481
  continue;
7481
7482
  if (!(key in _cached)) {
7482
- delete schema2[key];
7483
+ delete schema[key];
7483
7484
  }
7484
7485
  }
7485
7486
  }
7486
7487
  if (refSchema.$ref && refSeen.def) {
7487
- for (const key in schema2) {
7488
+ for (const key in schema) {
7488
7489
  if (key === "$ref" || key === "allOf")
7489
7490
  continue;
7490
- if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
7491
- delete schema2[key];
7491
+ if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {
7492
+ delete schema[key];
7492
7493
  }
7493
7494
  }
7494
7495
  }
@@ -7498,13 +7499,13 @@ function finalize(ctx, schema) {
7498
7499
  flattenRef(parent);
7499
7500
  const parentSeen = ctx.seen.get(parent);
7500
7501
  if (parentSeen?.schema.$ref) {
7501
- schema2.$ref = parentSeen.schema.$ref;
7502
+ schema.$ref = parentSeen.schema.$ref;
7502
7503
  if (parentSeen.def) {
7503
- for (const key in schema2) {
7504
+ for (const key in schema) {
7504
7505
  if (key === "$ref" || key === "allOf")
7505
7506
  continue;
7506
- if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
7507
- delete schema2[key];
7507
+ if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {
7508
+ delete schema[key];
7508
7509
  }
7509
7510
  }
7510
7511
  }
@@ -7512,7 +7513,7 @@ function finalize(ctx, schema) {
7512
7513
  }
7513
7514
  ctx.override({
7514
7515
  zodSchema,
7515
- jsonSchema: schema2,
7516
+ jsonSchema: schema,
7516
7517
  path: seen.path ?? []
7517
7518
  });
7518
7519
  };
@@ -7881,14 +7882,14 @@ var initializer = (inst, issues) => {
7881
7882
  value: (mapper) => flattenError(inst, mapper)
7882
7883
  },
7883
7884
  addIssue: {
7884
- value: (issue2) => {
7885
- inst.issues.push(issue2);
7885
+ value: (issue) => {
7886
+ inst.issues.push(issue);
7886
7887
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
7887
7888
  }
7888
7889
  },
7889
7890
  addIssues: {
7890
- value: (issues2) => {
7891
- inst.issues.push(...issues2);
7891
+ value: (issues) => {
7892
+ inst.issues.push(...issues);
7892
7893
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
7893
7894
  }
7894
7895
  },
@@ -7937,7 +7938,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
7937
7938
  });
7938
7939
  };
7939
7940
  inst.with = inst.check;
7940
- inst.clone = (def2, params) => clone(inst, def2, params);
7941
+ inst.clone = (def, params) => clone(inst, def, params);
7941
7942
  inst.brand = () => inst;
7942
7943
  inst.register = (reg, meta) => {
7943
7944
  reg.add(inst, meta);
@@ -7968,8 +7969,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
7968
7969
  inst.or = (arg) => union([inst, arg]);
7969
7970
  inst.and = (arg) => intersection(inst, arg);
7970
7971
  inst.transform = (tx) => pipe(inst, transform(tx));
7971
- inst.default = (def2) => _default(inst, def2);
7972
- inst.prefault = (def2) => prefault(inst, def2);
7972
+ inst.default = (def) => _default(inst, def);
7973
+ inst.prefault = (def) => prefault(inst, def);
7973
7974
  inst.catch = (params) => _catch(inst, params);
7974
7975
  inst.pipe = (target) => pipe(inst, target);
7975
7976
  inst.readonly = () => readonly(inst);
@@ -8300,8 +8301,8 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
8300
8301
  };
8301
8302
  const output = def.transform(payload.value, payload);
8302
8303
  if (output instanceof Promise) {
8303
- return output.then((output2) => {
8304
- payload.value = output2;
8304
+ return output.then((output) => {
8305
+ payload.value = output;
8305
8306
  return payload;
8306
8307
  });
8307
8308
  }
@@ -8513,11 +8514,11 @@ function getExpiryMs(expiresAt) {
8513
8514
  const ms = expiresAt instanceof Date ? expiresAt.getTime() : new Date(expiresAt).getTime();
8514
8515
  return Number.isNaN(ms) ? 0 : ms;
8515
8516
  }
8516
- function hasOAuthConfig(config2) {
8517
- return Boolean(config2.clientId && config2.redirectUri && config2.scope);
8517
+ function hasOAuthConfig(config) {
8518
+ return Boolean(config.clientId && config.redirectUri && config.scope);
8518
8519
  }
8519
- function hasSecretConfig(config2) {
8520
- return Boolean(config2.secret);
8520
+ function hasSecretConfig(config) {
8521
+ return Boolean(config.secret);
8521
8522
  }
8522
8523
 
8523
8524
  class UiPathError extends Error {
@@ -8660,78 +8661,78 @@ class NetworkError extends UiPathError {
8660
8661
  }
8661
8662
  }
8662
8663
  var TaskUserType;
8663
- (function(TaskUserType2) {
8664
- TaskUserType2["User"] = "User";
8665
- TaskUserType2["Robot"] = "Robot";
8666
- TaskUserType2["DirectoryUser"] = "DirectoryUser";
8667
- TaskUserType2["DirectoryGroup"] = "DirectoryGroup";
8668
- TaskUserType2["DirectoryRobot"] = "DirectoryRobot";
8669
- TaskUserType2["DirectoryExternalApplication"] = "DirectoryExternalApplication";
8664
+ (function(TaskUserType) {
8665
+ TaskUserType["User"] = "User";
8666
+ TaskUserType["Robot"] = "Robot";
8667
+ TaskUserType["DirectoryUser"] = "DirectoryUser";
8668
+ TaskUserType["DirectoryGroup"] = "DirectoryGroup";
8669
+ TaskUserType["DirectoryRobot"] = "DirectoryRobot";
8670
+ TaskUserType["DirectoryExternalApplication"] = "DirectoryExternalApplication";
8670
8671
  })(TaskUserType || (TaskUserType = {}));
8671
8672
  var TaskType;
8672
- (function(TaskType2) {
8673
- TaskType2["Form"] = "FormTask";
8674
- TaskType2["External"] = "ExternalTask";
8675
- TaskType2["App"] = "AppTask";
8676
- TaskType2["DocumentValidation"] = "DocumentValidationTask";
8677
- TaskType2["DocumentClassification"] = "DocumentClassificationTask";
8678
- TaskType2["DataLabeling"] = "DataLabelingTask";
8679
- TaskType2["QuickForm"] = "QuickFormTask";
8673
+ (function(TaskType) {
8674
+ TaskType["Form"] = "FormTask";
8675
+ TaskType["External"] = "ExternalTask";
8676
+ TaskType["App"] = "AppTask";
8677
+ TaskType["DocumentValidation"] = "DocumentValidationTask";
8678
+ TaskType["DocumentClassification"] = "DocumentClassificationTask";
8679
+ TaskType["DataLabeling"] = "DataLabelingTask";
8680
+ TaskType["QuickForm"] = "QuickFormTask";
8680
8681
  })(TaskType || (TaskType = {}));
8681
8682
  var TaskPriority;
8682
- (function(TaskPriority2) {
8683
- TaskPriority2["Low"] = "Low";
8684
- TaskPriority2["Medium"] = "Medium";
8685
- TaskPriority2["High"] = "High";
8686
- TaskPriority2["Critical"] = "Critical";
8683
+ (function(TaskPriority) {
8684
+ TaskPriority["Low"] = "Low";
8685
+ TaskPriority["Medium"] = "Medium";
8686
+ TaskPriority["High"] = "High";
8687
+ TaskPriority["Critical"] = "Critical";
8687
8688
  })(TaskPriority || (TaskPriority = {}));
8688
8689
  var TaskStatus;
8689
- (function(TaskStatus2) {
8690
- TaskStatus2["Unassigned"] = "Unassigned";
8691
- TaskStatus2["Pending"] = "Pending";
8692
- TaskStatus2["Completed"] = "Completed";
8690
+ (function(TaskStatus) {
8691
+ TaskStatus["Unassigned"] = "Unassigned";
8692
+ TaskStatus["Pending"] = "Pending";
8693
+ TaskStatus["Completed"] = "Completed";
8693
8694
  })(TaskStatus || (TaskStatus = {}));
8694
8695
  var TaskSlaCriteria;
8695
- (function(TaskSlaCriteria2) {
8696
- TaskSlaCriteria2["TaskCreated"] = "TaskCreated";
8697
- TaskSlaCriteria2["TaskAssigned"] = "TaskAssigned";
8698
- TaskSlaCriteria2["TaskCompleted"] = "TaskCompleted";
8696
+ (function(TaskSlaCriteria) {
8697
+ TaskSlaCriteria["TaskCreated"] = "TaskCreated";
8698
+ TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
8699
+ TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
8699
8700
  })(TaskSlaCriteria || (TaskSlaCriteria = {}));
8700
8701
  var TaskSlaStatus;
8701
- (function(TaskSlaStatus2) {
8702
- TaskSlaStatus2["OverdueLater"] = "OverdueLater";
8703
- TaskSlaStatus2["OverdueSoon"] = "OverdueSoon";
8704
- TaskSlaStatus2["Overdue"] = "Overdue";
8705
- TaskSlaStatus2["CompletedInTime"] = "CompletedInTime";
8702
+ (function(TaskSlaStatus) {
8703
+ TaskSlaStatus["OverdueLater"] = "OverdueLater";
8704
+ TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
8705
+ TaskSlaStatus["Overdue"] = "Overdue";
8706
+ TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
8706
8707
  })(TaskSlaStatus || (TaskSlaStatus = {}));
8707
8708
  var TaskSourceName;
8708
- (function(TaskSourceName2) {
8709
- TaskSourceName2["Agent"] = "Agent";
8710
- TaskSourceName2["Workflow"] = "Workflow";
8711
- TaskSourceName2["Maestro"] = "Maestro";
8712
- TaskSourceName2["Default"] = "Default";
8709
+ (function(TaskSourceName) {
8710
+ TaskSourceName["Agent"] = "Agent";
8711
+ TaskSourceName["Workflow"] = "Workflow";
8712
+ TaskSourceName["Maestro"] = "Maestro";
8713
+ TaskSourceName["Default"] = "Default";
8713
8714
  })(TaskSourceName || (TaskSourceName = {}));
8714
8715
  var TaskActivityType;
8715
- (function(TaskActivityType2) {
8716
- TaskActivityType2["Created"] = "Created";
8717
- TaskActivityType2["Assigned"] = "Assigned";
8718
- TaskActivityType2["Reassigned"] = "Reassigned";
8719
- TaskActivityType2["Unassigned"] = "Unassigned";
8720
- TaskActivityType2["Saved"] = "Saved";
8721
- TaskActivityType2["Forwarded"] = "Forwarded";
8722
- TaskActivityType2["Completed"] = "Completed";
8723
- TaskActivityType2["Commented"] = "Commented";
8724
- TaskActivityType2["Deleted"] = "Deleted";
8725
- TaskActivityType2["BulkSaved"] = "BulkSaved";
8726
- TaskActivityType2["BulkCompleted"] = "BulkCompleted";
8727
- TaskActivityType2["FirstOpened"] = "FirstOpened";
8716
+ (function(TaskActivityType) {
8717
+ TaskActivityType["Created"] = "Created";
8718
+ TaskActivityType["Assigned"] = "Assigned";
8719
+ TaskActivityType["Reassigned"] = "Reassigned";
8720
+ TaskActivityType["Unassigned"] = "Unassigned";
8721
+ TaskActivityType["Saved"] = "Saved";
8722
+ TaskActivityType["Forwarded"] = "Forwarded";
8723
+ TaskActivityType["Completed"] = "Completed";
8724
+ TaskActivityType["Commented"] = "Commented";
8725
+ TaskActivityType["Deleted"] = "Deleted";
8726
+ TaskActivityType["BulkSaved"] = "BulkSaved";
8727
+ TaskActivityType["BulkCompleted"] = "BulkCompleted";
8728
+ TaskActivityType["FirstOpened"] = "FirstOpened";
8728
8729
  })(TaskActivityType || (TaskActivityType = {}));
8729
8730
  var TaskAssignmentCriteria;
8730
- (function(TaskAssignmentCriteria2) {
8731
- TaskAssignmentCriteria2["SingleUser"] = "SingleUser";
8732
- TaskAssignmentCriteria2["Workload"] = "Workload";
8733
- TaskAssignmentCriteria2["AllUsers"] = "AllUsers";
8734
- TaskAssignmentCriteria2["RoundRobin"] = "RoundRobin";
8731
+ (function(TaskAssignmentCriteria) {
8732
+ TaskAssignmentCriteria["SingleUser"] = "SingleUser";
8733
+ TaskAssignmentCriteria["Workload"] = "Workload";
8734
+ TaskAssignmentCriteria["AllUsers"] = "AllUsers";
8735
+ TaskAssignmentCriteria["RoundRobin"] = "RoundRobin";
8735
8736
  })(TaskAssignmentCriteria || (TaskAssignmentCriteria = {}));
8736
8737
  var ORCHESTRATOR_BASE = "orchestrator_";
8737
8738
  var PIMS_BASE = "pims_";
@@ -8932,9 +8933,9 @@ var TASK_TYPE_ENDPOINTS = {
8932
8933
  [TaskType.QuickForm]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID
8933
8934
  };
8934
8935
  var ActionCenterEventNames;
8935
- (function(ActionCenterEventNames2) {
8936
- ActionCenterEventNames2["TOKENREFRESHED"] = "AC.tokenRefreshed";
8937
- ActionCenterEventNames2["REFRESHTOKEN"] = "AC.refreshToken";
8936
+ (function(ActionCenterEventNames) {
8937
+ ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
8938
+ ActionCenterEventNames["REFRESHTOKEN"] = "AC.refreshToken";
8938
8939
  })(ActionCenterEventNames || (ActionCenterEventNames = {}));
8939
8940
  var AUTHENTICATION_TIMEOUT = 8000;
8940
8941
  function isTokenExpired(tokenInfo) {
@@ -8971,7 +8972,7 @@ function requestHostToken(options) {
8971
8972
  statusCode: HttpStatus.UNAUTHORIZED
8972
8973
  })), AUTHENTICATION_TIMEOUT);
8973
8974
  try {
8974
- const responsePromise = waitForMessage((event2) => event2.origin === pinnedOrigin && event2.data?.eventType === responseEventType, controller.signal);
8975
+ const responsePromise = waitForMessage((event) => event.origin === pinnedOrigin && event.data?.eventType === responseEventType, controller.signal);
8975
8976
  sendRequest();
8976
8977
  const event = await responsePromise;
8977
8978
  const token = extractToken(event.data);
@@ -8991,8 +8992,8 @@ function requestHostToken(options) {
8991
8992
  }
8992
8993
 
8993
8994
  class ActionCenterTokenManager {
8994
- constructor(config2, onTokenRefreshed) {
8995
- this.config = config2;
8995
+ constructor(config, onTokenRefreshed) {
8996
+ this.config = config;
8996
8997
  this.onTokenRefreshed = onTokenRefreshed;
8997
8998
  this.parentOrigin = new URLSearchParams(window.location.search).get("basedomain");
8998
8999
  this.refreshPromise = null;
@@ -9044,9 +9045,9 @@ class ActionCenterTokenManager {
9044
9045
  }
9045
9046
  }
9046
9047
  var UipEmbeddedEventNames;
9047
- (function(UipEmbeddedEventNames2) {
9048
- UipEmbeddedEventNames2["REFRESH_TOKEN"] = "UIP.refreshToken";
9049
- UipEmbeddedEventNames2["TOKEN_REFRESHED"] = "UIP.tokenRefreshed";
9048
+ (function(UipEmbeddedEventNames) {
9049
+ UipEmbeddedEventNames["REFRESH_TOKEN"] = "UIP.refreshToken";
9050
+ UipEmbeddedEventNames["TOKEN_REFRESHED"] = "UIP.tokenRefreshed";
9050
9051
  })(UipEmbeddedEventNames || (UipEmbeddedEventNames = {}));
9051
9052
  function parseExpiresAt(raw) {
9052
9053
  const d = new Date(raw);
@@ -9064,18 +9065,18 @@ function extractToken(data) {
9064
9065
  }
9065
9066
 
9066
9067
  class EmbeddedTokenManager {
9067
- constructor(parentOrigin, config2, onTokenRefreshed) {
9068
+ constructor(parentOrigin, config, onTokenRefreshed) {
9068
9069
  this.parentOrigin = parentOrigin;
9069
9070
  this.onTokenRefreshed = onTokenRefreshed;
9070
9071
  this.refreshPromise = null;
9071
9072
  this.cancelRefresh = null;
9072
- if (!config2.clientId || !config2.scope) {
9073
+ if (!config.clientId || !config.scope) {
9073
9074
  throw new ValidationError({
9074
9075
  message: "EmbeddedTokenManager requires clientId and scope to be configured for host-delegated authentication"
9075
9076
  });
9076
9077
  }
9077
- this.clientId = config2.clientId;
9078
- this.scope = config2.scope;
9078
+ this.clientId = config.clientId;
9079
+ this.scope = config.scope;
9079
9080
  }
9080
9081
  async refreshAccessToken(tokenInfo) {
9081
9082
  if (!isTokenExpired(tokenInfo)) {
@@ -9147,16 +9148,16 @@ function encodeBase64(str) {
9147
9148
  return Buffer.from(data).toString("base64");
9148
9149
  }
9149
9150
  }
9150
- function decodeBase64(base642) {
9151
+ function decodeBase64(base64) {
9151
9152
  let bytes;
9152
9153
  if (isBrowser) {
9153
- const binaryString = atob(base642);
9154
+ const binaryString = atob(base64);
9154
9155
  bytes = new Uint8Array(binaryString.length);
9155
9156
  for (let i = 0;i < binaryString.length; i++) {
9156
9157
  bytes[i] = binaryString.charCodeAt(i);
9157
9158
  }
9158
9159
  } else {
9159
- bytes = new Uint8Array(Buffer.from(base642, "base64"));
9160
+ bytes = new Uint8Array(Buffer.from(base64, "base64"));
9160
9161
  }
9161
9162
  const decoder = new TextDecoder;
9162
9163
  return decoder.decode(bytes);
@@ -9177,8 +9178,8 @@ function encodeFolderPathHeader(folderPath) {
9177
9178
  var BASE64URL_DASH_RE = /-/g;
9178
9179
  var BASE64URL_UNDERSCORE_RE = /_/g;
9179
9180
  function base64UrlToBase64(value) {
9180
- const base642 = value.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
9181
- return base642.padEnd(base642.length + (4 - base642.length % 4) % 4, "=");
9181
+ const base64 = value.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
9182
+ return base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
9182
9183
  }
9183
9184
  function decodeJwtClaims(token) {
9184
9185
  try {
@@ -9197,18 +9198,18 @@ function extractUserIdFromToken(token) {
9197
9198
  }
9198
9199
 
9199
9200
  class TokenManager {
9200
- constructor(executionContext, config2, isOAuth = false) {
9201
+ constructor(executionContext, config, isOAuth = false) {
9201
9202
  this.executionContext = executionContext;
9202
- this.config = config2;
9203
+ this.config = config;
9203
9204
  this.isOAuth = isOAuth;
9204
9205
  this.refreshPromise = null;
9205
9206
  this.actionCenterTokenManager = null;
9206
9207
  this.embeddedTokenManager = null;
9207
9208
  if (isInActionCenter) {
9208
- this.actionCenterTokenManager = new ActionCenterTokenManager(config2, (tokenInfo) => this.setToken(tokenInfo));
9209
+ this.actionCenterTokenManager = new ActionCenterTokenManager(config, (tokenInfo) => this.setToken(tokenInfo));
9209
9210
  this.isOAuth = false;
9210
9211
  } else if (hostEmbeddingOrigin) {
9211
- this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin, config2, (tokenInfo) => this.setToken(tokenInfo));
9212
+ this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin, config, (tokenInfo) => this.setToken(tokenInfo));
9212
9213
  this.isOAuth = false;
9213
9214
  }
9214
9215
  }
@@ -9403,13 +9404,13 @@ class TokenManager {
9403
9404
  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;
9404
9405
 
9405
9406
  class AuthService {
9406
- constructor(config2, executionContext) {
9407
+ constructor(config, executionContext) {
9407
9408
  const isCallback = AuthService.isInOAuthCallback();
9408
9409
  const storedContext = isCallback ? AuthService.getStoredOAuthContext() : null;
9409
9410
  if (!isCallback) {
9410
9411
  AuthService._clearStoredOAuthContext();
9411
9412
  }
9412
- const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(config2, storedContext) : config2;
9413
+ const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(config, storedContext) : config;
9413
9414
  this.config = effectiveConfig;
9414
9415
  const isOAuth = hasOAuthConfig(effectiveConfig);
9415
9416
  this.tokenManager = new TokenManager(executionContext, effectiveConfig, isOAuth);
@@ -9452,9 +9453,9 @@ class AuthService {
9452
9453
  sessionStorage.removeItem(AUTH_STORAGE_KEYS.CODE_VERIFIER);
9453
9454
  } catch {}
9454
9455
  }
9455
- static _mergeConfigWithContext(config2, context) {
9456
+ static _mergeConfigWithContext(config, context) {
9456
9457
  return {
9457
- ...config2,
9458
+ ...config,
9458
9459
  baseUrl: context.baseUrl,
9459
9460
  orgName: context.orgName,
9460
9461
  tenantName: context.tenantName,
@@ -9466,7 +9467,7 @@ class AuthService {
9466
9467
  getTokenManager() {
9467
9468
  return this.tokenManager;
9468
9469
  }
9469
- async authenticate(config2) {
9470
+ async authenticate(config) {
9470
9471
  if (!isBrowser) {
9471
9472
  return false;
9472
9473
  }
@@ -9479,18 +9480,18 @@ class AuthService {
9479
9480
  if (this.tokenManager.hasValidToken()) {
9480
9481
  return true;
9481
9482
  }
9482
- if (!hasOAuthConfig(config2)) {
9483
+ if (!hasOAuthConfig(config)) {
9483
9484
  throw new Error("OAuth configuration incomplete: clientId, redirectUri, and scope are required for OAuth callback");
9484
9485
  }
9485
- const result = await this._authenticateWithOAuth(config2.clientId, config2.redirectUri, config2.scope);
9486
+ const result = await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
9486
9487
  return result;
9487
9488
  }
9488
9489
  const loadedFromStorage = this.tokenManager.loadFromStorage();
9489
9490
  if (loadedFromStorage && this.tokenManager.hasValidToken()) {
9490
9491
  return true;
9491
9492
  }
9492
- if (hasOAuthConfig(config2)) {
9493
- return await this._authenticateWithOAuth(config2.clientId, config2.redirectUri, config2.scope);
9493
+ if (hasOAuthConfig(config)) {
9494
+ return await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
9494
9495
  }
9495
9496
  return false;
9496
9497
  }
@@ -9563,9 +9564,9 @@ class AuthService {
9563
9564
  }
9564
9565
  generateCodeVerifier() {
9565
9566
  if (isBrowser) {
9566
- const array2 = new Uint8Array(32);
9567
- crypto.getRandomValues(array2);
9568
- return this._base64URLEncode(array2);
9567
+ const array = new Uint8Array(32);
9568
+ crypto.getRandomValues(array);
9569
+ return this._base64URLEncode(array);
9569
9570
  } else {
9570
9571
  try {
9571
9572
  const crypto2 = __require("crypto");
@@ -9650,8 +9651,8 @@ class AuthService {
9650
9651
  return token;
9651
9652
  }
9652
9653
  _base64URLEncode(buffer) {
9653
- const base642 = btoa(String.fromCharCode(...buffer));
9654
- return base642.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
9654
+ const base64 = btoa(String.fromCharCode(...buffer));
9655
+ return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
9655
9656
  }
9656
9657
  async _initiateOAuthFlow(clientId, redirectUri, scope) {
9657
9658
  const codeVerifier = this.generateCodeVerifier();
@@ -9695,21 +9696,21 @@ class AuthService {
9695
9696
  }
9696
9697
  }
9697
9698
  var UiPathMetaTags;
9698
- (function(UiPathMetaTags2) {
9699
- UiPathMetaTags2["CLIENT_ID"] = "uipath:client-id";
9700
- UiPathMetaTags2["SCOPE"] = "uipath:scope";
9701
- UiPathMetaTags2["ORG_NAME"] = "uipath:org-name";
9702
- UiPathMetaTags2["ORG_ID"] = "uipath:org-id";
9703
- UiPathMetaTags2["TENANT_NAME"] = "uipath:tenant-name";
9704
- UiPathMetaTags2["BASE_URL"] = "uipath:base-url";
9705
- UiPathMetaTags2["REDIRECT_URI"] = "uipath:redirect-uri";
9706
- UiPathMetaTags2["CDN_BASE"] = "uipath:cdn-base";
9707
- UiPathMetaTags2["APP_BASE"] = "uipath:app-base";
9708
- UiPathMetaTags2["FOLDER_KEY"] = "uipath:folder-key";
9699
+ (function(UiPathMetaTags) {
9700
+ UiPathMetaTags["CLIENT_ID"] = "uipath:client-id";
9701
+ UiPathMetaTags["SCOPE"] = "uipath:scope";
9702
+ UiPathMetaTags["ORG_NAME"] = "uipath:org-name";
9703
+ UiPathMetaTags["ORG_ID"] = "uipath:org-id";
9704
+ UiPathMetaTags["TENANT_NAME"] = "uipath:tenant-name";
9705
+ UiPathMetaTags["BASE_URL"] = "uipath:base-url";
9706
+ UiPathMetaTags["REDIRECT_URI"] = "uipath:redirect-uri";
9707
+ UiPathMetaTags["CDN_BASE"] = "uipath:cdn-base";
9708
+ UiPathMetaTags["APP_BASE"] = "uipath:app-base";
9709
+ UiPathMetaTags["FOLDER_KEY"] = "uipath:folder-key";
9709
9710
  })(UiPathMetaTags || (UiPathMetaTags = {}));
9710
9711
  var UiPathElementIds;
9711
- (function(UiPathElementIds2) {
9712
- UiPathElementIds2["RESOURCE_OVERRIDES"] = "uipath-overrides";
9712
+ (function(UiPathElementIds) {
9713
+ UiPathElementIds["RESOURCE_OVERRIDES"] = "uipath-overrides";
9713
9714
  })(UiPathElementIds || (UiPathElementIds = {}));
9714
9715
  function readEnv(name) {
9715
9716
  const globals = globalThis;
@@ -9734,24 +9735,24 @@ var UiPathEnvVars = {
9734
9735
  function loadFromEnvironment() {
9735
9736
  if (isBrowser)
9736
9737
  return null;
9737
- const config2 = {
9738
+ const config = {
9738
9739
  baseUrl: readEnv(UiPathEnvVars.BASE_URL),
9739
9740
  orgName: readEnv(UiPathEnvVars.ORG_NAME),
9740
9741
  tenantName: readEnv(UiPathEnvVars.TENANT_NAME),
9741
9742
  secret: readEnv(UiPathEnvVars.ACCESS_TOKEN)
9742
9743
  };
9743
- return Object.values(config2).some(Boolean) ? config2 : null;
9744
+ return Object.values(config).some(Boolean) ? config : null;
9744
9745
  }
9745
9746
  var BASE_FIELDS = ["baseUrl", "orgName", "tenantName"];
9746
9747
  var OAUTH_FIELDS = ["clientId", "redirectUri", "scope"];
9747
9748
  var AUTH_FIELDS = ["secret", ...OAUTH_FIELDS];
9748
9749
  var HTTP_PROTOCOLS = new Set(["http:", "https:"]);
9749
- function hasRequiredBaseFields(config2) {
9750
- return Boolean(config2.baseUrl && config2.orgName && config2.tenantName);
9750
+ function hasRequiredBaseFields(config) {
9751
+ return Boolean(config.baseUrl && config.orgName && config.tenantName);
9751
9752
  }
9752
- function hasValidAuthConfig(config2) {
9753
- const hasSecret = hasSecretConfig(config2);
9754
- const hasOAuth = hasOAuthConfig(config2);
9753
+ function hasValidAuthConfig(config) {
9754
+ const hasSecret = hasSecretConfig(config);
9755
+ const hasOAuth = hasOAuthConfig(config);
9755
9756
  return hasSecret !== hasOAuth;
9756
9757
  }
9757
9758
  function nonBlank(value) {
@@ -9777,11 +9778,11 @@ function joinNames(names) {
9777
9778
  return names.join("");
9778
9779
  return `${names.slice(0, -1).join(", ")} and ${names.slice(-1).join("")}`;
9779
9780
  }
9780
- function isCompleteConfig(config2) {
9781
- return hasRequiredBaseFields(config2) && hasValidAuthConfig(config2);
9781
+ function isCompleteConfig(config) {
9782
+ return hasRequiredBaseFields(config) && hasValidAuthConfig(config);
9782
9783
  }
9783
- function compactConfig(config2) {
9784
- return Object.fromEntries(Object.entries(config2).filter(([, value]) => value !== undefined));
9784
+ function compactConfig(config) {
9785
+ return Object.fromEntries(Object.entries(config).filter(([, value]) => value !== undefined));
9785
9786
  }
9786
9787
  function normalizeBaseUrl(url) {
9787
9788
  return url.endsWith("/") ? url.slice(0, -1) : url;
@@ -9824,31 +9825,31 @@ function missingConfigMessage(found, context) {
9824
9825
  return `UiPath SDK configuration not found. ${guidance}`;
9825
9826
  return `UiPath SDK configuration is incomplete: ${describeGaps(found)}. ${guidance}`;
9826
9827
  }
9827
- function missingContextMessage(config2, context) {
9828
+ function missingContextMessage(config, context) {
9828
9829
  const missing = [];
9829
- if (!hasRequiredBaseFields(config2)) {
9830
+ if (!hasRequiredBaseFields(config)) {
9830
9831
  if (!context.platform) {
9831
9832
  const variables = [];
9832
- if (!config2.baseUrl)
9833
+ if (!config.baseUrl)
9833
9834
  variables.push(UiPathEnvVars.BASE_URL);
9834
- if (!config2.orgName)
9835
+ if (!config.orgName)
9835
9836
  variables.push(UiPathEnvVars.ORG_NAME);
9836
- if (!config2.tenantName)
9837
+ if (!config.tenantName)
9837
9838
  variables.push(UiPathEnvVars.TENANT_NAME);
9838
9839
  missing.push(`ctx.platform is null (or set ${joinNames(variables)})`);
9839
9840
  } else {
9840
- if (!config2.baseUrl) {
9841
+ if (!config.baseUrl) {
9841
9842
  const baseUrl = nonBlank(context.platform.baseUrl);
9842
9843
  const problem = baseUrl === undefined ? "is empty" : `"${baseUrl}" is not an http(s) URL`;
9843
9844
  missing.push(`ctx.platform.baseUrl ${problem} (or set ${UiPathEnvVars.BASE_URL})`);
9844
9845
  }
9845
- if (!config2.orgName)
9846
+ if (!config.orgName)
9846
9847
  missing.push(`ctx.platform.orgId is empty (or set ${UiPathEnvVars.ORG_NAME})`);
9847
- if (!config2.tenantName)
9848
+ if (!config.tenantName)
9848
9849
  missing.push(`ctx.platform.tenantId is empty (or set ${UiPathEnvVars.TENANT_NAME})`);
9849
9850
  }
9850
9851
  }
9851
- if (!hasSecretConfig(config2) && !hasOAuthConfig(config2)) {
9852
+ if (!hasSecretConfig(config) && !hasOAuthConfig(config)) {
9852
9853
  missing.push(`ctx.robot.accessToken is null (or set ${UiPathEnvVars.ACCESS_TOKEN})`);
9853
9854
  }
9854
9855
  if (missing.length === 0) {
@@ -9956,10 +9957,10 @@ function parseRetryAfter(value, now = Date.now()) {
9956
9957
  const seconds = Number(trimmed);
9957
9958
  if (Number.isFinite(seconds))
9958
9959
  return Math.max(0, seconds * 1000);
9959
- const date2 = Date.parse(trimmed);
9960
- if (Number.isNaN(date2))
9960
+ const date = Date.parse(trimmed);
9961
+ if (Number.isNaN(date))
9961
9962
  return;
9962
- return Math.max(0, date2 - now);
9963
+ return Math.max(0, date - now);
9963
9964
  }
9964
9965
  function wait(durationMs) {
9965
9966
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, durationMs)));
@@ -10066,8 +10067,8 @@ function readIdentityError(url) {
10066
10067
  const errorId = url.searchParams.get(IDENTITY_ERROR_ID_PARAM);
10067
10068
  if (errorId) {
10068
10069
  try {
10069
- const base642 = errorId.replace(DASH_REGEX, "+").replace(UNDERSCORE_REGEX, "/");
10070
- const json = decodeBase64(base642.padEnd(base642.length + (4 - base642.length % 4) % 4, "="));
10070
+ const base64 = errorId.replace(DASH_REGEX, "+").replace(UNDERSCORE_REGEX, "/");
10071
+ const json = decodeBase64(base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "="));
10071
10072
  const data = JSON.parse(json).Data;
10072
10073
  const error = typeof data?.Error === "string" ? data.Error : undefined;
10073
10074
  const description = typeof data?.ErrorDescription === "string" ? data.ErrorDescription : undefined;
@@ -10156,9 +10157,9 @@ async function lookupOrganizationIdForPat(baseUrl, orgName) {
10156
10157
  }
10157
10158
 
10158
10159
  class OrganizationIdResolver {
10159
- constructor(config2, tokenManager) {
10160
+ constructor(config, tokenManager) {
10160
10161
  _OrganizationIdResolver_instances.add(this);
10161
- this.config = config2;
10162
+ this.config = config;
10162
10163
  this.tokenManager = tokenManager;
10163
10164
  _OrganizationIdResolver_organizationId.set(this, undefined);
10164
10165
  }
@@ -10172,7 +10173,7 @@ class OrganizationIdResolver {
10172
10173
  return __classPrivateFieldGet(this, _OrganizationIdResolver_organizationId, "f");
10173
10174
  }
10174
10175
  }
10175
- _OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function _OrganizationIdResolver_resolve2() {
10176
+ _OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function _OrganizationIdResolver_resolve() {
10176
10177
  const { organizationId, orgName, baseUrl } = this.config;
10177
10178
  if (organizationId) {
10178
10179
  return organizationId;
@@ -10237,7 +10238,7 @@ function getMetaTagContent(name) {
10237
10238
  function loadFromMetaTags() {
10238
10239
  if (!isBrowser)
10239
10240
  return null;
10240
- const config2 = {
10241
+ const config = {
10241
10242
  clientId: getMetaTagContent(UiPathMetaTags.CLIENT_ID),
10242
10243
  scope: getMetaTagContent(UiPathMetaTags.SCOPE),
10243
10244
  orgName: getMetaTagContent(UiPathMetaTags.ORG_NAME),
@@ -10247,8 +10248,8 @@ function loadFromMetaTags() {
10247
10248
  redirectUri: getMetaTagContent(UiPathMetaTags.REDIRECT_URI),
10248
10249
  folderKey: getMetaTagContent(UiPathMetaTags.FOLDER_KEY)
10249
10250
  };
10250
- const hasAnyValue = Object.values(config2).some(Boolean);
10251
- return hasAnyValue ? config2 : null;
10251
+ const hasAnyValue = Object.values(config).some(Boolean);
10252
+ return hasAnyValue ? config : null;
10252
10253
  }
10253
10254
  function isFunctionContext(value) {
10254
10255
  return "platform" in value || "robot" in value;
@@ -10256,13 +10257,13 @@ function isFunctionContext(value) {
10256
10257
  function configFromFunctionContext(context) {
10257
10258
  const { platform, robot } = context;
10258
10259
  const baseUrl = nonBlank(platform?.baseUrl);
10259
- const config2 = {
10260
+ const config = {
10260
10261
  baseUrl: baseUrl === undefined ? undefined : toHttpOrigin(baseUrl) ?? undefined,
10261
10262
  orgName: nonBlank(platform?.orgId),
10262
10263
  tenantName: nonBlank(platform?.tenantId),
10263
10264
  secret: nonBlank(robot?.accessToken)
10264
10265
  };
10265
- return Object.values(config2).some(Boolean) ? config2 : null;
10266
+ return Object.values(config).some(Boolean) ? config : null;
10266
10267
  }
10267
10268
  function folderKeyFromFunctionContext(context) {
10268
10269
  return nonBlank(context.platform?.folderKey);
@@ -10282,7 +10283,7 @@ var _UiPath_initializeWithConfig;
10282
10283
  var _UiPath_mergeConfigSources;
10283
10284
  var _UiPath_loadConfig;
10284
10285
  var UiPath$1 = class UiPath {
10285
- constructor(config2) {
10286
+ constructor(config) {
10286
10287
  _UiPath_instances.add(this);
10287
10288
  _UiPath_config.set(this, undefined);
10288
10289
  _UiPath_authService.set(this, undefined);
@@ -10294,12 +10295,12 @@ var UiPath$1 = class UiPath {
10294
10295
  _UiPath_metaOrgId.set(this, undefined);
10295
10296
  _UiPath_metaTenantId.set(this, undefined);
10296
10297
  let resolved;
10297
- if (config2 && isFunctionContext(config2)) {
10298
- __classPrivateFieldSet(this, _UiPath_functionContext, config2, "f");
10299
- __classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(config2), "f");
10300
- resolved = configFromFunctionContext(config2) ?? undefined;
10298
+ if (config && isFunctionContext(config)) {
10299
+ __classPrivateFieldSet(this, _UiPath_functionContext, config, "f");
10300
+ __classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(config), "f");
10301
+ resolved = configFromFunctionContext(config) ?? undefined;
10301
10302
  } else {
10302
- resolved = config2;
10303
+ resolved = config;
10303
10304
  }
10304
10305
  const configFromMetaTags = loadFromMetaTags();
10305
10306
  __classPrivateFieldSet(this, _UiPath_metaFolderKey, configFromMetaTags?.folderKey, "f");
@@ -10388,19 +10389,19 @@ var UiPath$1 = class UiPath {
10388
10389
  __classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
10389
10390
  }
10390
10391
  };
10391
- _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) {
10392
- const hasSecretAuth = hasSecretConfig(config2);
10393
- const hasOAuthAuth = hasOAuthConfig(config2);
10392
+ _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) {
10393
+ const hasSecretAuth = hasSecretConfig(config);
10394
+ const hasOAuthAuth = hasOAuthConfig(config);
10394
10395
  const internalConfig = new UiPathConfig({
10395
- baseUrl: normalizeBaseUrl(config2.baseUrl),
10396
- orgName: config2.orgName,
10397
- tenantName: config2.tenantName,
10398
- organizationId: config2.organizationId,
10399
- secret: hasSecretAuth ? config2.secret : undefined,
10400
- clientId: hasOAuthAuth ? config2.clientId : undefined,
10401
- redirectUri: hasOAuthAuth ? config2.redirectUri : undefined,
10402
- scope: hasOAuthAuth ? config2.scope : undefined,
10403
- enforceSso: config2.enforceSso
10396
+ baseUrl: normalizeBaseUrl(config.baseUrl),
10397
+ orgName: config.orgName,
10398
+ tenantName: config.tenantName,
10399
+ organizationId: config.organizationId,
10400
+ secret: hasSecretAuth ? config.secret : undefined,
10401
+ clientId: hasOAuthAuth ? config.clientId : undefined,
10402
+ redirectUri: hasOAuthAuth ? config.redirectUri : undefined,
10403
+ scope: hasOAuthAuth ? config.scope : undefined,
10404
+ enforceSso: config.enforceSso
10404
10405
  });
10405
10406
  const executionContext = new ExecutionContext;
10406
10407
  __classPrivateFieldSet(this, _UiPath_authService, new AuthService(internalConfig, executionContext), "f");
@@ -10418,27 +10419,27 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
10418
10419
  tenantName: internalConfig.tenantName
10419
10420
  };
10420
10421
  telemetryClient.initialize({
10421
- baseUrl: config2.baseUrl,
10422
+ baseUrl: config.baseUrl,
10422
10423
  orgId: __classPrivateFieldGet(this, _UiPath_metaOrgId, "f"),
10423
10424
  tenantId: __classPrivateFieldGet(this, _UiPath_metaTenantId, "f"),
10424
- orgName: config2.orgName,
10425
- tenantName: config2.tenantName,
10426
- clientId: hasOAuthAuth ? config2.clientId : undefined,
10427
- redirectUri: hasOAuthAuth ? config2.redirectUri : undefined
10425
+ orgName: config.orgName,
10426
+ tenantName: config.tenantName,
10427
+ clientId: hasOAuthAuth ? config.clientId : undefined,
10428
+ redirectUri: hasOAuthAuth ? config.redirectUri : undefined
10428
10429
  });
10429
10430
  trackEvent("Sdk.Auth");
10430
10431
  if (hasSecretAuth || isInActionCenter || hostEmbeddingOrigin) {
10431
- __classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(config2.secret ?? "");
10432
+ __classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(config.secret ?? "");
10432
10433
  __classPrivateFieldSet(this, _UiPath_initialized, true, "f");
10433
10434
  }
10434
- }, _UiPath_mergeConfigSources = function _UiPath_mergeConfigSources2(metaConfig, config2) {
10435
+ }, _UiPath_mergeConfigSources = function _UiPath_mergeConfigSources(metaConfig, config) {
10435
10436
  const environment = loadFromEnvironment();
10436
- const layers = [environment, metaConfig, config2].filter((layer) => Boolean(layer)).map((layer) => compactConfig(layer));
10437
+ const layers = [environment, metaConfig, config].filter((layer) => Boolean(layer)).map((layer) => compactConfig(layer));
10437
10438
  if (layers.length === 0)
10438
10439
  return;
10439
10440
  const merged = layers.reduce((acc, layer) => ({ ...acc, ...layer }), {});
10440
- const namesSecret = config2 ? hasSecretConfig(config2) : false;
10441
- const namesOAuth = Boolean(config2?.clientId || config2?.redirectUri || config2?.scope);
10441
+ const namesSecret = config ? hasSecretConfig(config) : false;
10442
+ const namesOAuth = Boolean(config?.clientId || config?.redirectUri || config?.scope);
10442
10443
  if (namesSecret !== namesOAuth) {
10443
10444
  if (namesSecret) {
10444
10445
  delete merged.clientId;
@@ -10451,10 +10452,10 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
10451
10452
  const mergedHasSecret = hasSecretConfig(merged);
10452
10453
  const mergedHasOAuth = hasOAuthConfig(merged);
10453
10454
  if (mergedHasSecret && mergedHasOAuth) {
10454
- throw new Error(conflictingAuthMessage({ config: config2, metaConfig, environment }));
10455
+ throw new Error(conflictingAuthMessage({ config, metaConfig, environment }));
10455
10456
  }
10456
10457
  return merged;
10457
- }, _UiPath_loadConfig = function _UiPath_loadConfig2() {
10458
+ }, _UiPath_loadConfig = function _UiPath_loadConfig() {
10458
10459
  const metaConfig = loadFromMetaTags();
10459
10460
  __classPrivateFieldSet(this, _UiPath_metaFolderKey, metaConfig?.folderKey, "f");
10460
10461
  __classPrivateFieldSet(this, _UiPath_metaOrgId, metaConfig?.organizationId ?? metaConfig?.orgName, "f");
@@ -10653,8 +10654,8 @@ function toSearchParams(params) {
10653
10654
  return searchParams;
10654
10655
  }
10655
10656
  class ApiClient {
10656
- constructor(config2, executionContext, tokenManager, clientConfig = {}) {
10657
- this.config = config2;
10657
+ constructor(config, executionContext, tokenManager, clientConfig = {}) {
10658
+ this.config = config;
10658
10659
  this.executionContext = executionContext;
10659
10660
  this.clientConfig = clientConfig;
10660
10661
  this.tokenManager = tokenManager;
@@ -10708,8 +10709,8 @@ class ApiClient {
10708
10709
  }
10709
10710
  const acceptHeader = headers["Accept"] || headers["accept"];
10710
10711
  if (acceptHeader === CONTENT_TYPES.XML) {
10711
- const text2 = await response.text();
10712
- return text2;
10712
+ const text = await response.text();
10713
+ return text;
10713
10714
  }
10714
10715
  const text = await response.text();
10715
10716
  if (!text) {
@@ -10750,9 +10751,9 @@ class ApiClient {
10750
10751
  }
10751
10752
  }
10752
10753
  var PaginationType;
10753
- (function(PaginationType2) {
10754
- PaginationType2["OFFSET"] = "offset";
10755
- PaginationType2["TOKEN"] = "token";
10754
+ (function(PaginationType) {
10755
+ PaginationType["OFFSET"] = "offset";
10756
+ PaginationType["TOKEN"] = "token";
10756
10757
  })(PaginationType || (PaginationType = {}));
10757
10758
  function resolveNestedField(data, fieldPath) {
10758
10759
  if (!data) {
@@ -10914,8 +10915,8 @@ var PROCESS_INSTANCE_TOKEN_PARAMS = {
10914
10915
  TOKEN_PARAM: "nextPage"
10915
10916
  };
10916
10917
  function toISOUtc(value) {
10917
- const date2 = new Date(value + " UTC");
10918
- return isNaN(date2.getTime()) ? value : date2.toISOString();
10918
+ const date = new Date(value + " UTC");
10919
+ return isNaN(date.getTime()) ? value : date.toISOString();
10919
10920
  }
10920
10921
  function transformData(data, fieldMapping) {
10921
10922
  if (data == null) {
@@ -11186,51 +11187,51 @@ class PaginationHelpers {
11186
11187
  totalCount
11187
11188
  };
11188
11189
  }
11189
- static async getAll(config2, options) {
11190
+ static async getAll(config, options) {
11190
11191
  const optionsWithDefaults = options || {};
11191
11192
  const { folderId, pageSize, cursor, jumpToPage, ...restOptions } = optionsWithDefaults;
11192
11193
  const isPaginationRequested = PaginationHelpers.hasPaginationParameters(options || {});
11193
11194
  let processedOptions = restOptions;
11194
- if (config2.processParametersFn) {
11195
- processedOptions = config2.processParametersFn(restOptions, folderId);
11195
+ if (config.processParametersFn) {
11196
+ processedOptions = config.processParametersFn(restOptions, folderId);
11196
11197
  }
11197
- const excludeKeys = config2.excludeFromPrefix || [];
11198
+ const excludeKeys = config.excludeFromPrefix || [];
11198
11199
  const keysToPrefix = Object.keys(processedOptions).filter((k) => !excludeKeys.includes(k));
11199
11200
  const prefixedOptions = addPrefixToKeys(processedOptions, ODATA_PREFIX, keysToPrefix);
11200
11201
  const paginationOptions = {
11201
11202
  paginationType: PaginationType.OFFSET,
11202
11203
  itemsField: DEFAULT_ITEMS_FIELD,
11203
11204
  totalCountField: DEFAULT_TOTAL_COUNT_FIELD,
11204
- ...config2.pagination
11205
+ ...config.pagination
11205
11206
  };
11206
11207
  if (isPaginationRequested) {
11207
11208
  return PaginationHelpers.getAllPaginated({
11208
- serviceAccess: config2.serviceAccess,
11209
- getEndpoint: config2.getEndpoint,
11209
+ serviceAccess: config.serviceAccess,
11210
+ getEndpoint: config.getEndpoint,
11210
11211
  folderId,
11211
- headers: config2.headers,
11212
+ headers: config.headers,
11212
11213
  paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
11213
11214
  additionalParams: prefixedOptions,
11214
- queryParams: config2.queryParams,
11215
- transformFn: config2.transformFn,
11216
- method: config2.method,
11215
+ queryParams: config.queryParams,
11216
+ transformFn: config.transformFn,
11217
+ method: config.method,
11217
11218
  options: {
11218
11219
  ...paginationOptions,
11219
- paginationParams: config2.pagination?.paginationParams
11220
+ paginationParams: config.pagination?.paginationParams
11220
11221
  }
11221
11222
  });
11222
11223
  }
11223
- const byFolderEndpoint = config2.getByFolderEndpoint || config2.getEndpoint(folderId);
11224
+ const byFolderEndpoint = config.getByFolderEndpoint || config.getEndpoint(folderId);
11224
11225
  return PaginationHelpers.getAllNonPaginated({
11225
- serviceAccess: config2.serviceAccess,
11226
- getAllEndpoint: config2.getEndpoint(),
11226
+ serviceAccess: config.serviceAccess,
11227
+ getAllEndpoint: config.getEndpoint(),
11227
11228
  getByFolderEndpoint: byFolderEndpoint,
11228
11229
  folderId,
11229
- headers: config2.headers,
11230
+ headers: config.headers,
11230
11231
  additionalParams: prefixedOptions,
11231
- queryParams: config2.queryParams,
11232
- transformFn: config2.transformFn,
11233
- method: config2.method,
11232
+ queryParams: config.queryParams,
11233
+ transformFn: config.transformFn,
11234
+ method: config.method,
11234
11235
  options: {
11235
11236
  itemsField: paginationOptions.itemsField,
11236
11237
  totalCountField: paginationOptions.totalCountField
@@ -11243,8 +11244,8 @@ var _BaseService_apiClient;
11243
11244
  class BaseService {
11244
11245
  constructor(instance, headers) {
11245
11246
  _BaseService_apiClient.set(this, undefined);
11246
- const { config: config2, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry.get(instance);
11247
- __classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config2, context, tokenManager, headers ? { headers } : {}), "f");
11247
+ const { config, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry.get(instance);
11248
+ __classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
11248
11249
  this.config = { folderKey, metaFolderKey };
11249
11250
  }
11250
11251
  async getValidAuthToken() {
@@ -11509,25 +11510,25 @@ function createEntityWithMethods(entityData, service) {
11509
11510
  return Object.assign({}, entityData, methods);
11510
11511
  }
11511
11512
  var EntityFieldDataType;
11512
- (function(EntityFieldDataType2) {
11513
- EntityFieldDataType2["UUID"] = "UUID";
11514
- EntityFieldDataType2["STRING"] = "STRING";
11515
- EntityFieldDataType2["INTEGER"] = "INTEGER";
11516
- EntityFieldDataType2["DATETIME"] = "DATETIME";
11517
- EntityFieldDataType2["DATETIME_WITH_TZ"] = "DATETIME_WITH_TZ";
11518
- EntityFieldDataType2["DECIMAL"] = "DECIMAL";
11519
- EntityFieldDataType2["FLOAT"] = "FLOAT";
11520
- EntityFieldDataType2["DOUBLE"] = "DOUBLE";
11521
- EntityFieldDataType2["DATE"] = "DATE";
11522
- EntityFieldDataType2["BOOLEAN"] = "BOOLEAN";
11523
- EntityFieldDataType2["BIG_INTEGER"] = "BIG_INTEGER";
11524
- EntityFieldDataType2["MULTILINE_TEXT"] = "MULTILINE_TEXT";
11525
- EntityFieldDataType2["MULTILINE_MAX"] = "MULTILINE_MAX";
11526
- EntityFieldDataType2["FILE"] = "FILE";
11527
- EntityFieldDataType2["CHOICE_SET_SINGLE"] = "CHOICE_SET_SINGLE";
11528
- EntityFieldDataType2["CHOICE_SET_MULTIPLE"] = "CHOICE_SET_MULTIPLE";
11529
- EntityFieldDataType2["AUTO_NUMBER"] = "AUTO_NUMBER";
11530
- EntityFieldDataType2["RELATIONSHIP"] = "RELATIONSHIP";
11513
+ (function(EntityFieldDataType) {
11514
+ EntityFieldDataType["UUID"] = "UUID";
11515
+ EntityFieldDataType["STRING"] = "STRING";
11516
+ EntityFieldDataType["INTEGER"] = "INTEGER";
11517
+ EntityFieldDataType["DATETIME"] = "DATETIME";
11518
+ EntityFieldDataType["DATETIME_WITH_TZ"] = "DATETIME_WITH_TZ";
11519
+ EntityFieldDataType["DECIMAL"] = "DECIMAL";
11520
+ EntityFieldDataType["FLOAT"] = "FLOAT";
11521
+ EntityFieldDataType["DOUBLE"] = "DOUBLE";
11522
+ EntityFieldDataType["DATE"] = "DATE";
11523
+ EntityFieldDataType["BOOLEAN"] = "BOOLEAN";
11524
+ EntityFieldDataType["BIG_INTEGER"] = "BIG_INTEGER";
11525
+ EntityFieldDataType["MULTILINE_TEXT"] = "MULTILINE_TEXT";
11526
+ EntityFieldDataType["MULTILINE_MAX"] = "MULTILINE_MAX";
11527
+ EntityFieldDataType["FILE"] = "FILE";
11528
+ EntityFieldDataType["CHOICE_SET_SINGLE"] = "CHOICE_SET_SINGLE";
11529
+ EntityFieldDataType["CHOICE_SET_MULTIPLE"] = "CHOICE_SET_MULTIPLE";
11530
+ EntityFieldDataType["AUTO_NUMBER"] = "AUTO_NUMBER";
11531
+ EntityFieldDataType["RELATIONSHIP"] = "RELATIONSHIP";
11531
11532
  })(EntityFieldDataType || (EntityFieldDataType = {}));
11532
11533
  var LogicalOperator$1;
11533
11534
  (function(LogicalOperator) {
@@ -11535,105 +11536,105 @@ var LogicalOperator$1;
11535
11536
  LogicalOperator[LogicalOperator["Or"] = 1] = "Or";
11536
11537
  })(LogicalOperator$1 || (LogicalOperator$1 = {}));
11537
11538
  var QueryFilterOperator;
11538
- (function(QueryFilterOperator2) {
11539
- QueryFilterOperator2["Equals"] = "=";
11540
- QueryFilterOperator2["NotEquals"] = "!=";
11541
- QueryFilterOperator2["GreaterThan"] = ">";
11542
- QueryFilterOperator2["LessThan"] = "<";
11543
- QueryFilterOperator2["GreaterThanOrEqual"] = ">=";
11544
- QueryFilterOperator2["LessThanOrEqual"] = "<=";
11545
- QueryFilterOperator2["Contains"] = "contains";
11546
- QueryFilterOperator2["NotContains"] = "not contains";
11547
- QueryFilterOperator2["StartsWith"] = "startswith";
11548
- QueryFilterOperator2["EndsWith"] = "endswith";
11549
- QueryFilterOperator2["In"] = "in";
11550
- QueryFilterOperator2["NotIn"] = "not in";
11539
+ (function(QueryFilterOperator) {
11540
+ QueryFilterOperator["Equals"] = "=";
11541
+ QueryFilterOperator["NotEquals"] = "!=";
11542
+ QueryFilterOperator["GreaterThan"] = ">";
11543
+ QueryFilterOperator["LessThan"] = "<";
11544
+ QueryFilterOperator["GreaterThanOrEqual"] = ">=";
11545
+ QueryFilterOperator["LessThanOrEqual"] = "<=";
11546
+ QueryFilterOperator["Contains"] = "contains";
11547
+ QueryFilterOperator["NotContains"] = "not contains";
11548
+ QueryFilterOperator["StartsWith"] = "startswith";
11549
+ QueryFilterOperator["EndsWith"] = "endswith";
11550
+ QueryFilterOperator["In"] = "in";
11551
+ QueryFilterOperator["NotIn"] = "not in";
11551
11552
  })(QueryFilterOperator || (QueryFilterOperator = {}));
11552
11553
  var EntityAggregateFunction;
11553
- (function(EntityAggregateFunction2) {
11554
- EntityAggregateFunction2["Count"] = "COUNT";
11555
- EntityAggregateFunction2["Sum"] = "SUM";
11556
- EntityAggregateFunction2["Avg"] = "AVG";
11557
- EntityAggregateFunction2["Min"] = "MIN";
11558
- EntityAggregateFunction2["Max"] = "MAX";
11554
+ (function(EntityAggregateFunction) {
11555
+ EntityAggregateFunction["Count"] = "COUNT";
11556
+ EntityAggregateFunction["Sum"] = "SUM";
11557
+ EntityAggregateFunction["Avg"] = "AVG";
11558
+ EntityAggregateFunction["Min"] = "MIN";
11559
+ EntityAggregateFunction["Max"] = "MAX";
11559
11560
  })(EntityAggregateFunction || (EntityAggregateFunction = {}));
11560
11561
  var EntityHavingOperator;
11561
- (function(EntityHavingOperator2) {
11562
- EntityHavingOperator2["Equals"] = "=";
11563
- EntityHavingOperator2["NotEquals"] = "!=";
11564
- EntityHavingOperator2["GreaterThan"] = ">";
11565
- EntityHavingOperator2["GreaterThanOrEqual"] = ">=";
11566
- EntityHavingOperator2["LessThan"] = "<";
11567
- EntityHavingOperator2["LessThanOrEqual"] = "<=";
11562
+ (function(EntityHavingOperator) {
11563
+ EntityHavingOperator["Equals"] = "=";
11564
+ EntityHavingOperator["NotEquals"] = "!=";
11565
+ EntityHavingOperator["GreaterThan"] = ">";
11566
+ EntityHavingOperator["GreaterThanOrEqual"] = ">=";
11567
+ EntityHavingOperator["LessThan"] = "<";
11568
+ EntityHavingOperator["LessThanOrEqual"] = "<=";
11568
11569
  })(EntityHavingOperator || (EntityHavingOperator = {}));
11569
11570
  var EntityMultiEntityWriteOperation;
11570
- (function(EntityMultiEntityWriteOperation2) {
11571
- EntityMultiEntityWriteOperation2["Insert"] = "Insert";
11572
- EntityMultiEntityWriteOperation2["Update"] = "Update";
11571
+ (function(EntityMultiEntityWriteOperation) {
11572
+ EntityMultiEntityWriteOperation["Insert"] = "Insert";
11573
+ EntityMultiEntityWriteOperation["Update"] = "Update";
11573
11574
  })(EntityMultiEntityWriteOperation || (EntityMultiEntityWriteOperation = {}));
11574
11575
  var EntityType;
11575
- (function(EntityType2) {
11576
- EntityType2["Entity"] = "Entity";
11577
- EntityType2["ChoiceSet"] = "ChoiceSet";
11578
- EntityType2["InternalEntity"] = "InternalEntity";
11579
- EntityType2["SystemEntity"] = "SystemEntity";
11576
+ (function(EntityType) {
11577
+ EntityType["Entity"] = "Entity";
11578
+ EntityType["ChoiceSet"] = "ChoiceSet";
11579
+ EntityType["InternalEntity"] = "InternalEntity";
11580
+ EntityType["SystemEntity"] = "SystemEntity";
11580
11581
  })(EntityType || (EntityType = {}));
11581
11582
  var EntityClass;
11582
- (function(EntityClass2) {
11583
- EntityClass2["Native"] = "Native";
11584
- EntityClass2["Federated"] = "Federated";
11585
- EntityClass2["Case"] = "Case";
11583
+ (function(EntityClass) {
11584
+ EntityClass["Native"] = "Native";
11585
+ EntityClass["Federated"] = "Federated";
11586
+ EntityClass["Case"] = "Case";
11586
11587
  })(EntityClass || (EntityClass = {}));
11587
11588
  var ReferenceType;
11588
- (function(ReferenceType2) {
11589
- ReferenceType2["ManyToOne"] = "ManyToOne";
11589
+ (function(ReferenceType) {
11590
+ ReferenceType["ManyToOne"] = "ManyToOne";
11590
11591
  })(ReferenceType || (ReferenceType = {}));
11591
11592
  var FieldDisplayType;
11592
- (function(FieldDisplayType2) {
11593
- FieldDisplayType2["Basic"] = "Basic";
11594
- FieldDisplayType2["Relationship"] = "Relationship";
11595
- FieldDisplayType2["File"] = "File";
11596
- FieldDisplayType2["ChoiceSetSingle"] = "ChoiceSetSingle";
11597
- FieldDisplayType2["ChoiceSetMultiple"] = "ChoiceSetMultiple";
11598
- FieldDisplayType2["AutoNumber"] = "AutoNumber";
11593
+ (function(FieldDisplayType) {
11594
+ FieldDisplayType["Basic"] = "Basic";
11595
+ FieldDisplayType["Relationship"] = "Relationship";
11596
+ FieldDisplayType["File"] = "File";
11597
+ FieldDisplayType["ChoiceSetSingle"] = "ChoiceSetSingle";
11598
+ FieldDisplayType["ChoiceSetMultiple"] = "ChoiceSetMultiple";
11599
+ FieldDisplayType["AutoNumber"] = "AutoNumber";
11599
11600
  })(FieldDisplayType || (FieldDisplayType = {}));
11600
11601
  var DataDirectionType;
11601
- (function(DataDirectionType2) {
11602
- DataDirectionType2["ReadOnly"] = "ReadOnly";
11603
- DataDirectionType2["ReadAndWrite"] = "ReadAndWrite";
11602
+ (function(DataDirectionType) {
11603
+ DataDirectionType["ReadOnly"] = "ReadOnly";
11604
+ DataDirectionType["ReadAndWrite"] = "ReadAndWrite";
11604
11605
  })(DataDirectionType || (DataDirectionType = {}));
11605
11606
  var JoinType;
11606
- (function(JoinType2) {
11607
- JoinType2["LeftJoin"] = "LeftJoin";
11608
- JoinType2["InnerJoin"] = "InnerJoin";
11607
+ (function(JoinType) {
11608
+ JoinType["LeftJoin"] = "LeftJoin";
11609
+ JoinType["InnerJoin"] = "InnerJoin";
11609
11610
  })(JoinType || (JoinType = {}));
11610
11611
  var EntityClassId;
11611
- (function(EntityClassId2) {
11612
- EntityClassId2[EntityClassId2["Native"] = 9] = "Native";
11613
- EntityClassId2[EntityClassId2["Federated"] = 10] = "Federated";
11612
+ (function(EntityClassId) {
11613
+ EntityClassId[EntityClassId["Native"] = 9] = "Native";
11614
+ EntityClassId[EntityClassId["Federated"] = 10] = "Federated";
11614
11615
  })(EntityClassId || (EntityClassId = {}));
11615
11616
  var EntityFieldConstraint;
11616
- (function(EntityFieldConstraint2) {
11617
- EntityFieldConstraint2["LengthLimit"] = "lengthLimit";
11618
- EntityFieldConstraint2["MaxValue"] = "maxValue";
11619
- EntityFieldConstraint2["MinValue"] = "minValue";
11620
- EntityFieldConstraint2["DecimalPrecision"] = "decimalPrecision";
11617
+ (function(EntityFieldConstraint) {
11618
+ EntityFieldConstraint["LengthLimit"] = "lengthLimit";
11619
+ EntityFieldConstraint["MaxValue"] = "maxValue";
11620
+ EntityFieldConstraint["MinValue"] = "minValue";
11621
+ EntityFieldConstraint["DecimalPrecision"] = "decimalPrecision";
11621
11622
  })(EntityFieldConstraint || (EntityFieldConstraint = {}));
11622
11623
  var SqlFieldType;
11623
- (function(SqlFieldType2) {
11624
- SqlFieldType2["UNIQUEIDENTIFIER"] = "UNIQUEIDENTIFIER";
11625
- SqlFieldType2["NVARCHAR"] = "NVARCHAR";
11626
- SqlFieldType2["INT"] = "INT";
11627
- SqlFieldType2["DATETIME2"] = "DATETIME2";
11628
- SqlFieldType2["DATETIMEOFFSET"] = "DATETIMEOFFSET";
11629
- SqlFieldType2["FLOAT"] = "FLOAT";
11630
- SqlFieldType2["REAL"] = "REAL";
11631
- SqlFieldType2["BIGINT"] = "BIGINT";
11632
- SqlFieldType2["DATE"] = "DATE";
11633
- SqlFieldType2["BIT"] = "BIT";
11634
- SqlFieldType2["DECIMAL"] = "DECIMAL";
11635
- SqlFieldType2["MULTILINE"] = "MULTILINE";
11636
- SqlFieldType2["MULTILINE_MAX"] = "MULTILINE_MAX";
11624
+ (function(SqlFieldType) {
11625
+ SqlFieldType["UNIQUEIDENTIFIER"] = "UNIQUEIDENTIFIER";
11626
+ SqlFieldType["NVARCHAR"] = "NVARCHAR";
11627
+ SqlFieldType["INT"] = "INT";
11628
+ SqlFieldType["DATETIME2"] = "DATETIME2";
11629
+ SqlFieldType["DATETIMEOFFSET"] = "DATETIMEOFFSET";
11630
+ SqlFieldType["FLOAT"] = "FLOAT";
11631
+ SqlFieldType["REAL"] = "REAL";
11632
+ SqlFieldType["BIGINT"] = "BIGINT";
11633
+ SqlFieldType["DATE"] = "DATE";
11634
+ SqlFieldType["BIT"] = "BIT";
11635
+ SqlFieldType["DECIMAL"] = "DECIMAL";
11636
+ SqlFieldType["MULTILINE"] = "MULTILINE";
11637
+ SqlFieldType["MULTILINE_MAX"] = "MULTILINE_MAX";
11637
11638
  })(SqlFieldType || (SqlFieldType = {}));
11638
11639
  var ENTITY_TYPE_IDS = {
11639
11640
  [EntityType.ChoiceSet]: 1
@@ -11792,13 +11793,13 @@ function readOverrides() {
11792
11793
  }
11793
11794
  }
11794
11795
  function resolveOverride(resourceType, name, folderPath) {
11795
- const table2 = readOverrides();
11796
- if (!table2)
11796
+ const table = readOverrides();
11797
+ if (!table)
11797
11798
  return;
11798
11799
  const bindingType = resourceType.toLowerCase();
11799
11800
  const scopedKey = folderPath ? `${bindingType}.${name}.${folderPath}` : undefined;
11800
11801
  const unscopedKey = `${bindingType}.${name}`;
11801
- const entry = (scopedKey && table2[scopedKey]) ?? table2[unscopedKey];
11802
+ const entry = (scopedKey && table[scopedKey]) ?? table[unscopedKey];
11802
11803
  if (!entry)
11803
11804
  return;
11804
11805
  return {
@@ -12795,9 +12796,9 @@ __decorate([
12795
12796
  track("Choicesets.DeleteValuesById")
12796
12797
  ], ChoiceSetService.prototype, "deleteValuesById", null);
12797
12798
  var DataFabricRoleType;
12798
- (function(DataFabricRoleType2) {
12799
- DataFabricRoleType2["System"] = "System";
12800
- DataFabricRoleType2["UserDefined"] = "UserDefined";
12799
+ (function(DataFabricRoleType) {
12800
+ DataFabricRoleType["System"] = "System";
12801
+ DataFabricRoleType["UserDefined"] = "UserDefined";
12801
12802
  })(DataFabricRoleType || (DataFabricRoleType = {}));
12802
12803
  function isRecord$1(value) {
12803
12804
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -12834,16 +12835,16 @@ __decorate([
12834
12835
  track("DataFabricRoles.GetAll")
12835
12836
  ], DataFabricRoleService.prototype, "getAll", null);
12836
12837
  var DataFabricDirectoryEntityType;
12837
- (function(DataFabricDirectoryEntityType2) {
12838
- DataFabricDirectoryEntityType2[DataFabricDirectoryEntityType2["User"] = 0] = "User";
12839
- DataFabricDirectoryEntityType2[DataFabricDirectoryEntityType2["Group"] = 1] = "Group";
12840
- DataFabricDirectoryEntityType2[DataFabricDirectoryEntityType2["Application"] = 2] = "Application";
12838
+ (function(DataFabricDirectoryEntityType) {
12839
+ DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["User"] = 0] = "User";
12840
+ DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Group"] = 1] = "Group";
12841
+ DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Application"] = 2] = "Application";
12841
12842
  })(DataFabricDirectoryEntityType || (DataFabricDirectoryEntityType = {}));
12842
12843
  var DataFabricDirectoryEntityTypeName;
12843
- (function(DataFabricDirectoryEntityTypeName2) {
12844
- DataFabricDirectoryEntityTypeName2["User"] = "User";
12845
- DataFabricDirectoryEntityTypeName2["Group"] = "Group";
12846
- DataFabricDirectoryEntityTypeName2["Application"] = "Application";
12844
+ (function(DataFabricDirectoryEntityTypeName) {
12845
+ DataFabricDirectoryEntityTypeName["User"] = "User";
12846
+ DataFabricDirectoryEntityTypeName["Group"] = "Group";
12847
+ DataFabricDirectoryEntityTypeName["Application"] = "Application";
12847
12848
  })(DataFabricDirectoryEntityTypeName || (DataFabricDirectoryEntityTypeName = {}));
12848
12849
  var DEFAULT_DIRECTORY_PAGE_SIZE = 100;
12849
12850
  var MAX_DIRECTORY_PAGE_SIZE = 100;
@@ -13153,27 +13154,27 @@ function createProcessInstanceWithMethods(instanceData, service) {
13153
13154
  return Object.assign({}, instanceData, methods);
13154
13155
  }
13155
13156
  var ProcessIncidentStatus;
13156
- (function(ProcessIncidentStatus2) {
13157
- ProcessIncidentStatus2["Open"] = "Open";
13158
- ProcessIncidentStatus2["Closed"] = "Closed";
13157
+ (function(ProcessIncidentStatus) {
13158
+ ProcessIncidentStatus["Open"] = "Open";
13159
+ ProcessIncidentStatus["Closed"] = "Closed";
13159
13160
  })(ProcessIncidentStatus || (ProcessIncidentStatus = {}));
13160
13161
  var ProcessIncidentType;
13161
- (function(ProcessIncidentType2) {
13162
- ProcessIncidentType2["System"] = "System";
13163
- ProcessIncidentType2["User"] = "User";
13164
- ProcessIncidentType2["Deployment"] = "Deployment";
13162
+ (function(ProcessIncidentType) {
13163
+ ProcessIncidentType["System"] = "System";
13164
+ ProcessIncidentType["User"] = "User";
13165
+ ProcessIncidentType["Deployment"] = "Deployment";
13165
13166
  })(ProcessIncidentType || (ProcessIncidentType = {}));
13166
13167
  var ProcessIncidentSeverity;
13167
- (function(ProcessIncidentSeverity2) {
13168
- ProcessIncidentSeverity2["Error"] = "Error";
13169
- ProcessIncidentSeverity2["Warning"] = "Warning";
13168
+ (function(ProcessIncidentSeverity) {
13169
+ ProcessIncidentSeverity["Error"] = "Error";
13170
+ ProcessIncidentSeverity["Warning"] = "Warning";
13170
13171
  })(ProcessIncidentSeverity || (ProcessIncidentSeverity = {}));
13171
13172
  var DebugMode;
13172
- (function(DebugMode2) {
13173
- DebugMode2["None"] = "None";
13174
- DebugMode2["Default"] = "Default";
13175
- DebugMode2["StepByStep"] = "StepByStep";
13176
- DebugMode2["SingleStep"] = "SingleStep";
13173
+ (function(DebugMode) {
13174
+ DebugMode["None"] = "None";
13175
+ DebugMode["Default"] = "Default";
13176
+ DebugMode["StepByStep"] = "StepByStep";
13177
+ DebugMode["SingleStep"] = "SingleStep";
13177
13178
  })(DebugMode || (DebugMode = {}));
13178
13179
  function createCaseMethods(caseData, service) {
13179
13180
  return {
@@ -13220,63 +13221,63 @@ function createCaseWithMethods(caseData, service) {
13220
13221
  return Object.assign({}, caseData, methods);
13221
13222
  }
13222
13223
  var CaseInstanceMessageName;
13223
- (function(CaseInstanceMessageName2) {
13224
- CaseInstanceMessageName2["UserSelectStage"] = "UserSelectStage";
13225
- CaseInstanceMessageName2["UserAdhocTrigger"] = "UserAdhocTrigger";
13224
+ (function(CaseInstanceMessageName) {
13225
+ CaseInstanceMessageName["UserSelectStage"] = "UserSelectStage";
13226
+ CaseInstanceMessageName["UserAdhocTrigger"] = "UserAdhocTrigger";
13226
13227
  })(CaseInstanceMessageName || (CaseInstanceMessageName = {}));
13227
13228
  var SlaSummaryStatus;
13228
- (function(SlaSummaryStatus2) {
13229
- SlaSummaryStatus2["ON_TRACK"] = "On Track";
13230
- SlaSummaryStatus2["AT_RISK"] = "At Risk";
13231
- SlaSummaryStatus2["OVERDUE"] = "Overdue";
13232
- SlaSummaryStatus2["COMPLETED"] = "Completed";
13233
- SlaSummaryStatus2["UNKNOWN"] = "Unknown";
13229
+ (function(SlaSummaryStatus) {
13230
+ SlaSummaryStatus["ON_TRACK"] = "On Track";
13231
+ SlaSummaryStatus["AT_RISK"] = "At Risk";
13232
+ SlaSummaryStatus["OVERDUE"] = "Overdue";
13233
+ SlaSummaryStatus["COMPLETED"] = "Completed";
13234
+ SlaSummaryStatus["UNKNOWN"] = "Unknown";
13234
13235
  })(SlaSummaryStatus || (SlaSummaryStatus = {}));
13235
13236
  var InstanceStatus;
13236
- (function(InstanceStatus2) {
13237
- InstanceStatus2["UNKNOWN"] = "";
13238
- InstanceStatus2["CANCELLED"] = "Cancelled";
13239
- InstanceStatus2["CANCELING"] = "Canceling";
13240
- InstanceStatus2["COMPLETED"] = "Completed";
13241
- InstanceStatus2["FAULTED"] = "Faulted";
13242
- InstanceStatus2["PAUSED"] = "Paused";
13243
- InstanceStatus2["PAUSING"] = "Pausing";
13244
- InstanceStatus2["PENDING"] = "Pending";
13245
- InstanceStatus2["RESUMING"] = "Resuming";
13246
- InstanceStatus2["RETRYING"] = "Retrying";
13247
- InstanceStatus2["RUNNING"] = "Running";
13248
- InstanceStatus2["UPGRADING"] = "Upgrading";
13237
+ (function(InstanceStatus) {
13238
+ InstanceStatus["UNKNOWN"] = "";
13239
+ InstanceStatus["CANCELLED"] = "Cancelled";
13240
+ InstanceStatus["CANCELING"] = "Canceling";
13241
+ InstanceStatus["COMPLETED"] = "Completed";
13242
+ InstanceStatus["FAULTED"] = "Faulted";
13243
+ InstanceStatus["PAUSED"] = "Paused";
13244
+ InstanceStatus["PAUSING"] = "Pausing";
13245
+ InstanceStatus["PENDING"] = "Pending";
13246
+ InstanceStatus["RESUMING"] = "Resuming";
13247
+ InstanceStatus["RETRYING"] = "Retrying";
13248
+ InstanceStatus["RUNNING"] = "Running";
13249
+ InstanceStatus["UPGRADING"] = "Upgrading";
13249
13250
  })(InstanceStatus || (InstanceStatus = {}));
13250
13251
  var StageTaskType;
13251
- (function(StageTaskType2) {
13252
- StageTaskType2["EXTERNAL_AGENT"] = "external-agent";
13253
- StageTaskType2["RPA"] = "rpa";
13254
- StageTaskType2["AGENTIC_PROCESS"] = "process";
13255
- StageTaskType2["AGENT"] = "agent";
13256
- StageTaskType2["ACTION"] = "action";
13257
- StageTaskType2["API_WORKFLOW"] = "api-workflow";
13252
+ (function(StageTaskType) {
13253
+ StageTaskType["EXTERNAL_AGENT"] = "external-agent";
13254
+ StageTaskType["RPA"] = "rpa";
13255
+ StageTaskType["AGENTIC_PROCESS"] = "process";
13256
+ StageTaskType["AGENT"] = "agent";
13257
+ StageTaskType["ACTION"] = "action";
13258
+ StageTaskType["API_WORKFLOW"] = "api-workflow";
13258
13259
  })(StageTaskType || (StageTaskType = {}));
13259
13260
  var EscalationRecipientScope;
13260
- (function(EscalationRecipientScope2) {
13261
- EscalationRecipientScope2["USER"] = "user";
13262
- EscalationRecipientScope2["USER_GROUP"] = "usergroup";
13261
+ (function(EscalationRecipientScope) {
13262
+ EscalationRecipientScope["USER"] = "user";
13263
+ EscalationRecipientScope["USER_GROUP"] = "usergroup";
13263
13264
  })(EscalationRecipientScope || (EscalationRecipientScope = {}));
13264
13265
  var EscalationActionType;
13265
- (function(EscalationActionType2) {
13266
- EscalationActionType2["NOTIFICATION"] = "notification";
13266
+ (function(EscalationActionType) {
13267
+ EscalationActionType["NOTIFICATION"] = "notification";
13267
13268
  })(EscalationActionType || (EscalationActionType = {}));
13268
13269
  var EscalationTriggerType;
13269
- (function(EscalationTriggerType2) {
13270
- EscalationTriggerType2["SLA_BREACHED"] = "sla-breached";
13271
- EscalationTriggerType2["AT_RISK"] = "at-risk";
13272
- EscalationTriggerType2["NONE"] = "None";
13270
+ (function(EscalationTriggerType) {
13271
+ EscalationTriggerType["SLA_BREACHED"] = "sla-breached";
13272
+ EscalationTriggerType["AT_RISK"] = "at-risk";
13273
+ EscalationTriggerType["NONE"] = "None";
13273
13274
  })(EscalationTriggerType || (EscalationTriggerType = {}));
13274
13275
  var SLADurationUnit;
13275
- (function(SLADurationUnit2) {
13276
- SLADurationUnit2["HOURS"] = "h";
13277
- SLADurationUnit2["DAYS"] = "d";
13278
- SLADurationUnit2["WEEKS"] = "w";
13279
- SLADurationUnit2["MONTHS"] = "m";
13276
+ (function(SLADurationUnit) {
13277
+ SLADurationUnit["HOURS"] = "h";
13278
+ SLADurationUnit["DAYS"] = "d";
13279
+ SLADurationUnit["WEEKS"] = "w";
13280
+ SLADurationUnit["MONTHS"] = "m";
13280
13281
  })(SLADurationUnit || (SLADurationUnit = {}));
13281
13282
  function createCaseInstanceMethods(instanceData, service) {
13282
13283
  return {
@@ -13358,16 +13359,16 @@ function createCaseInstanceWithMethods(instanceData, service) {
13358
13359
  return Object.assign({}, instanceData, methods);
13359
13360
  }
13360
13361
  var TimeInterval;
13361
- (function(TimeInterval2) {
13362
- TimeInterval2["Hour"] = "HOUR";
13363
- TimeInterval2["Day"] = "DAY";
13364
- TimeInterval2["Week"] = "WEEK";
13362
+ (function(TimeInterval) {
13363
+ TimeInterval["Hour"] = "HOUR";
13364
+ TimeInterval["Day"] = "DAY";
13365
+ TimeInterval["Week"] = "WEEK";
13365
13366
  })(TimeInterval || (TimeInterval = {}));
13366
13367
  var InstanceFinalStatus;
13367
- (function(InstanceFinalStatus2) {
13368
- InstanceFinalStatus2["Completed"] = "Completed";
13369
- InstanceFinalStatus2["Faulted"] = "Faulted";
13370
- InstanceFinalStatus2["Cancelled"] = "Cancelled";
13368
+ (function(InstanceFinalStatus) {
13369
+ InstanceFinalStatus["Completed"] = "Completed";
13370
+ InstanceFinalStatus["Faulted"] = "Faulted";
13371
+ InstanceFinalStatus["Cancelled"] = "Cancelled";
13371
13372
  })(InstanceFinalStatus || (InstanceFinalStatus = {}));
13372
13373
  function buildInsightsTopBody(startTime, endTime, isCaseManagement, options) {
13373
13374
  return {
@@ -13755,11 +13756,11 @@ class MaestroProcessesService extends BaseService {
13755
13756
  });
13756
13757
  const response = await this.get(MAESTRO_ENDPOINTS.PROCESSES.GET_ALL, { params });
13757
13758
  const processes = response.data?.processes || [];
13758
- const processesWithName = processes.map((process3) => ({
13759
- ...process3,
13760
- name: process3.packageId
13759
+ const processesWithName = processes.map((process2) => ({
13760
+ ...process2,
13761
+ name: process2.packageId
13761
13762
  }));
13762
- return processesWithName.map((process3) => createProcessWithMethods(process3, this));
13763
+ return processesWithName.map((process2) => createProcessWithMethods(process2, this));
13763
13764
  }
13764
13765
  async getIncidents(processKey, folderKey) {
13765
13766
  const rawResponse = await this.get(MAESTRO_ENDPOINTS.INCIDENTS.GET_BY_PROCESS(processKey), {
@@ -13769,7 +13770,7 @@ class MaestroProcessesService extends BaseService {
13769
13770
  }
13770
13771
  async getTopRunCount(startTime, endTime, options) {
13771
13772
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, false, options));
13772
- return (data ?? []).map((process3) => ({ ...process3, name: process3.packageId }));
13773
+ return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
13773
13774
  }
13774
13775
  async getTopElementFailedCount(startTime, endTime, options) {
13775
13776
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, false, options));
@@ -13799,7 +13800,7 @@ class MaestroProcessesService extends BaseService {
13799
13800
  }
13800
13801
  async getTopExecutionDuration(startTime, endTime, options) {
13801
13802
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, false, options));
13802
- return (data ?? []).map((process3) => ({ ...process3, name: process3.packageId }));
13803
+ return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
13803
13804
  }
13804
13805
  async getElementStats(request) {
13805
13806
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
@@ -13852,8 +13853,8 @@ __decorate([
13852
13853
  track("ProcessIncidents.getAll")
13853
13854
  ], ProcessIncidentsService.prototype, "getAll", null);
13854
13855
  var ProcessType;
13855
- (function(ProcessType2) {
13856
- ProcessType2["CaseManagement"] = "CaseManagement";
13856
+ (function(ProcessType) {
13857
+ ProcessType["CaseManagement"] = "CaseManagement";
13857
13858
  })(ProcessType || (ProcessType = {}));
13858
13859
 
13859
13860
  class CasesService extends BaseService {
@@ -13874,7 +13875,7 @@ class CasesService extends BaseService {
13874
13875
  }
13875
13876
  async getTopRunCount(startTime, endTime, options) {
13876
13877
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, true, options));
13877
- return (data ?? []).map((process3) => ({ ...process3, name: this.extractCaseName(process3.packageId) }));
13878
+ return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
13878
13879
  }
13879
13880
  async getTopElementFailedCount(startTime, endTime, options) {
13880
13881
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, true, options));
@@ -13904,7 +13905,7 @@ class CasesService extends BaseService {
13904
13905
  }
13905
13906
  async getTopExecutionDuration(startTime, endTime, options) {
13906
13907
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, true, options));
13907
- return (data ?? []).map((process3) => ({ ...process3, name: this.extractCaseName(process3.packageId) }));
13908
+ return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
13908
13909
  }
13909
13910
  async getElementStats(request) {
13910
13911
  const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
@@ -14116,7 +14117,7 @@ class FolderScopedService extends BaseService {
14116
14117
  }
14117
14118
  return response.data?.value;
14118
14119
  }
14119
- async getByNameLookup(resourceType, endpoint, name, options, transform2, responseFieldMap, callerLabel) {
14120
+ async getByNameLookup(resourceType, endpoint, name, options, transform, responseFieldMap, callerLabel) {
14120
14121
  const validatedName = validateName(resourceType, name);
14121
14122
  const { folderId, folderKey, folderPath, ...queryOptions } = options;
14122
14123
  const override = resolveOverride(resourceType, validatedName, folderPath);
@@ -14147,11 +14148,11 @@ class FolderScopedService extends BaseService {
14147
14148
  });
14148
14149
  }
14149
14150
  return {
14150
- result: transform2(items[0]),
14151
+ result: transform(items[0]),
14151
14152
  effectiveFolder: { folderId, folderKey, folderPath: resolvedFolderPath }
14152
14153
  };
14153
14154
  }
14154
- async getByKeyLookup(resourceType, endpoint, key, options, transform2, responseFieldMap, callerLabel) {
14155
+ async getByKeyLookup(resourceType, endpoint, key, options, transform, responseFieldMap, callerLabel) {
14155
14156
  const label = callerLabel ?? `${resourceType}.getByKey`;
14156
14157
  const trimmedKey = key?.trim();
14157
14158
  if (!trimmedKey || !GUID_REGEX.test(trimmedKey)) {
@@ -14180,7 +14181,7 @@ class FolderScopedService extends BaseService {
14180
14181
  throw new NotFoundError({ message: `${resourceType} with key '${trimmedKey}' not found.` });
14181
14182
  }
14182
14183
  return {
14183
- result: transform2(items[0]),
14184
+ result: transform(items[0]),
14184
14185
  effectiveFolder: { folderId, folderKey, folderPath }
14185
14186
  };
14186
14187
  }
@@ -14232,7 +14233,7 @@ class TaskService extends FolderScopedService {
14232
14233
  const optionsWithFolder = { ...options, folderId };
14233
14234
  return PaginationHelpers.getAll({
14234
14235
  serviceAccess: this.createPaginationServiceAccess(),
14235
- getEndpoint: (folderId2) => TASK_ENDPOINTS.GET_TASK_USERS(folderId2),
14236
+ getEndpoint: (folderId) => TASK_ENDPOINTS.GET_TASK_USERS(folderId),
14236
14237
  getByFolderEndpoint: TASK_ENDPOINTS.GET_TASK_USERS(folderId),
14237
14238
  transformFn: transformUserResponse,
14238
14239
  pagination: {
@@ -14842,17 +14843,17 @@ __decorate([
14842
14843
  track("CaseInstances.GetStagesSlaSummary")
14843
14844
  ], CaseInstancesService.prototype, "getStagesSlaSummary", null);
14844
14845
  var AssetValueScope;
14845
- (function(AssetValueScope2) {
14846
- AssetValueScope2["Global"] = "Global";
14847
- AssetValueScope2["PerRobot"] = "PerRobot";
14846
+ (function(AssetValueScope) {
14847
+ AssetValueScope["Global"] = "Global";
14848
+ AssetValueScope["PerRobot"] = "PerRobot";
14848
14849
  })(AssetValueScope || (AssetValueScope = {}));
14849
14850
  var AssetValueType;
14850
- (function(AssetValueType2) {
14851
- AssetValueType2["Text"] = "Text";
14852
- AssetValueType2["Bool"] = "Bool";
14853
- AssetValueType2["Integer"] = "Integer";
14854
- AssetValueType2["Credential"] = "Credential";
14855
- AssetValueType2["Secret"] = "Secret";
14851
+ (function(AssetValueType) {
14852
+ AssetValueType["Text"] = "Text";
14853
+ AssetValueType["Bool"] = "Bool";
14854
+ AssetValueType["Integer"] = "Integer";
14855
+ AssetValueType["Credential"] = "Credential";
14856
+ AssetValueType["Secret"] = "Secret";
14856
14857
  })(AssetValueType || (AssetValueType = {}));
14857
14858
  async function resolveRefToId(ref, resolvers, callerLabel) {
14858
14859
  if (!ref) {
@@ -15358,11 +15359,11 @@ __decorate([
15358
15359
  track("Buckets.DeleteFile")
15359
15360
  ], BucketService.prototype, "deleteFile", null);
15360
15361
  var BucketOptions;
15361
- (function(BucketOptions2) {
15362
- BucketOptions2["None"] = "None";
15363
- BucketOptions2["ReadOnly"] = "ReadOnly";
15364
- BucketOptions2["AuditReadAccess"] = "AuditReadAccess";
15365
- BucketOptions2["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
15362
+ (function(BucketOptions) {
15363
+ BucketOptions["None"] = "None";
15364
+ BucketOptions["ReadOnly"] = "ReadOnly";
15365
+ BucketOptions["AuditReadAccess"] = "AuditReadAccess";
15366
+ BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
15366
15367
  })(BucketOptions || (BucketOptions = {}));
15367
15368
  function createJobMethods(jobData, service) {
15368
15369
  return {
@@ -15490,146 +15491,146 @@ __decorate([
15490
15491
  track("Attachments.Create")
15491
15492
  ], AttachmentService.prototype, "create", null);
15492
15493
  var PackageType;
15493
- (function(PackageType2) {
15494
- PackageType2["Undefined"] = "Undefined";
15495
- PackageType2["Process"] = "Process";
15496
- PackageType2["ProcessOrchestration"] = "ProcessOrchestration";
15497
- PackageType2["WebApp"] = "WebApp";
15498
- PackageType2["Agent"] = "Agent";
15499
- PackageType2["TestAutomationProcess"] = "TestAutomationProcess";
15500
- PackageType2["Api"] = "Api";
15501
- PackageType2["MCPServer"] = "MCPServer";
15502
- PackageType2["BusinessRules"] = "BusinessRules";
15503
- PackageType2["CaseManagement"] = "CaseManagement";
15504
- PackageType2["Flow"] = "Flow";
15505
- PackageType2["Function"] = "Function";
15494
+ (function(PackageType) {
15495
+ PackageType["Undefined"] = "Undefined";
15496
+ PackageType["Process"] = "Process";
15497
+ PackageType["ProcessOrchestration"] = "ProcessOrchestration";
15498
+ PackageType["WebApp"] = "WebApp";
15499
+ PackageType["Agent"] = "Agent";
15500
+ PackageType["TestAutomationProcess"] = "TestAutomationProcess";
15501
+ PackageType["Api"] = "Api";
15502
+ PackageType["MCPServer"] = "MCPServer";
15503
+ PackageType["BusinessRules"] = "BusinessRules";
15504
+ PackageType["CaseManagement"] = "CaseManagement";
15505
+ PackageType["Flow"] = "Flow";
15506
+ PackageType["Function"] = "Function";
15506
15507
  })(PackageType || (PackageType = {}));
15507
15508
  var JobPriority;
15508
- (function(JobPriority2) {
15509
- JobPriority2["Low"] = "Low";
15510
- JobPriority2["Normal"] = "Normal";
15511
- JobPriority2["High"] = "High";
15509
+ (function(JobPriority) {
15510
+ JobPriority["Low"] = "Low";
15511
+ JobPriority["Normal"] = "Normal";
15512
+ JobPriority["High"] = "High";
15512
15513
  })(JobPriority || (JobPriority = {}));
15513
15514
  var TargetFramework;
15514
- (function(TargetFramework2) {
15515
- TargetFramework2["Legacy"] = "Legacy";
15516
- TargetFramework2["Windows"] = "Windows";
15517
- TargetFramework2["Portable"] = "Portable";
15515
+ (function(TargetFramework) {
15516
+ TargetFramework["Legacy"] = "Legacy";
15517
+ TargetFramework["Windows"] = "Windows";
15518
+ TargetFramework["Portable"] = "Portable";
15518
15519
  })(TargetFramework || (TargetFramework = {}));
15519
15520
  var RobotSize;
15520
- (function(RobotSize2) {
15521
- RobotSize2["Small"] = "Small";
15522
- RobotSize2["Standard"] = "Standard";
15523
- RobotSize2["Medium"] = "Medium";
15524
- RobotSize2["Large"] = "Large";
15521
+ (function(RobotSize) {
15522
+ RobotSize["Small"] = "Small";
15523
+ RobotSize["Standard"] = "Standard";
15524
+ RobotSize["Medium"] = "Medium";
15525
+ RobotSize["Large"] = "Large";
15525
15526
  })(RobotSize || (RobotSize = {}));
15526
15527
  var RemoteControlAccess;
15527
- (function(RemoteControlAccess2) {
15528
- RemoteControlAccess2["None"] = "None";
15529
- RemoteControlAccess2["ReadOnly"] = "ReadOnly";
15530
- RemoteControlAccess2["Full"] = "Full";
15528
+ (function(RemoteControlAccess) {
15529
+ RemoteControlAccess["None"] = "None";
15530
+ RemoteControlAccess["ReadOnly"] = "ReadOnly";
15531
+ RemoteControlAccess["Full"] = "Full";
15531
15532
  })(RemoteControlAccess || (RemoteControlAccess = {}));
15532
15533
  var StartStrategy;
15533
- (function(StartStrategy2) {
15534
- StartStrategy2["All"] = "All";
15535
- StartStrategy2["Specific"] = "Specific";
15536
- StartStrategy2["RobotCount"] = "RobotCount";
15537
- StartStrategy2["JobsCount"] = "JobsCount";
15538
- StartStrategy2["ModernJobsCount"] = "ModernJobsCount";
15534
+ (function(StartStrategy) {
15535
+ StartStrategy["All"] = "All";
15536
+ StartStrategy["Specific"] = "Specific";
15537
+ StartStrategy["RobotCount"] = "RobotCount";
15538
+ StartStrategy["JobsCount"] = "JobsCount";
15539
+ StartStrategy["ModernJobsCount"] = "ModernJobsCount";
15539
15540
  })(StartStrategy || (StartStrategy = {}));
15540
15541
  var PackageSourceType;
15541
- (function(PackageSourceType2) {
15542
- PackageSourceType2["Manual"] = "Manual";
15543
- PackageSourceType2["Schedule"] = "Schedule";
15544
- PackageSourceType2["Queue"] = "Queue";
15545
- PackageSourceType2["StudioWeb"] = "StudioWeb";
15546
- PackageSourceType2["IntegrationTrigger"] = "IntegrationTrigger";
15547
- PackageSourceType2["StudioDesktop"] = "StudioDesktop";
15548
- PackageSourceType2["AutomationOpsPipelines"] = "AutomationOpsPipelines";
15549
- PackageSourceType2["Apps"] = "Apps";
15550
- PackageSourceType2["SAP"] = "SAP";
15551
- PackageSourceType2["HttpTrigger"] = "HttpTrigger";
15552
- PackageSourceType2["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
15553
- PackageSourceType2["RobotAPI"] = "RobotAPI";
15554
- PackageSourceType2["Assistant"] = "Assistant";
15555
- PackageSourceType2["CommandLine"] = "CommandLine";
15556
- PackageSourceType2["RobotNetAPI"] = "RobotNetAPI";
15557
- PackageSourceType2["Autopilot"] = "Autopilot";
15558
- PackageSourceType2["TestManager"] = "TestManager";
15559
- PackageSourceType2["AgentService"] = "AgentService";
15560
- PackageSourceType2["ProcessOrchestration"] = "ProcessOrchestration";
15561
- PackageSourceType2["PluginEcosystem"] = "PluginEcosystem";
15562
- PackageSourceType2["PerformanceTesting"] = "PerformanceTesting";
15563
- PackageSourceType2["AgentHub"] = "AgentHub";
15564
- PackageSourceType2["ApiWorkflow"] = "ApiWorkflow";
15542
+ (function(PackageSourceType) {
15543
+ PackageSourceType["Manual"] = "Manual";
15544
+ PackageSourceType["Schedule"] = "Schedule";
15545
+ PackageSourceType["Queue"] = "Queue";
15546
+ PackageSourceType["StudioWeb"] = "StudioWeb";
15547
+ PackageSourceType["IntegrationTrigger"] = "IntegrationTrigger";
15548
+ PackageSourceType["StudioDesktop"] = "StudioDesktop";
15549
+ PackageSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
15550
+ PackageSourceType["Apps"] = "Apps";
15551
+ PackageSourceType["SAP"] = "SAP";
15552
+ PackageSourceType["HttpTrigger"] = "HttpTrigger";
15553
+ PackageSourceType["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
15554
+ PackageSourceType["RobotAPI"] = "RobotAPI";
15555
+ PackageSourceType["Assistant"] = "Assistant";
15556
+ PackageSourceType["CommandLine"] = "CommandLine";
15557
+ PackageSourceType["RobotNetAPI"] = "RobotNetAPI";
15558
+ PackageSourceType["Autopilot"] = "Autopilot";
15559
+ PackageSourceType["TestManager"] = "TestManager";
15560
+ PackageSourceType["AgentService"] = "AgentService";
15561
+ PackageSourceType["ProcessOrchestration"] = "ProcessOrchestration";
15562
+ PackageSourceType["PluginEcosystem"] = "PluginEcosystem";
15563
+ PackageSourceType["PerformanceTesting"] = "PerformanceTesting";
15564
+ PackageSourceType["AgentHub"] = "AgentHub";
15565
+ PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
15565
15566
  })(PackageSourceType || (PackageSourceType = {}));
15566
15567
  var JobSourceType;
15567
- (function(JobSourceType2) {
15568
- JobSourceType2["Manual"] = "Manual";
15569
- JobSourceType2["Schedule"] = "Schedule";
15570
- JobSourceType2["Agent"] = "Agent";
15571
- JobSourceType2["Queue"] = "Queue";
15572
- JobSourceType2["StudioWeb"] = "StudioWeb";
15573
- JobSourceType2["IntegrationTrigger"] = "IntegrationTrigger";
15574
- JobSourceType2["StudioDesktop"] = "StudioDesktop";
15575
- JobSourceType2["AutomationOpsPipelines"] = "AutomationOpsPipelines";
15576
- JobSourceType2["Apps"] = "Apps";
15577
- JobSourceType2["SAP"] = "SAP";
15578
- JobSourceType2["HttpTrigger"] = "HttpTrigger";
15579
- JobSourceType2["HttpTriggerCallback"] = "HttpTriggerCallback";
15580
- JobSourceType2["RobotAPI"] = "RobotAPI";
15581
- JobSourceType2["CommandLine"] = "CommandLine";
15582
- JobSourceType2["RobotNetAPI"] = "RobotNetAPI";
15583
- JobSourceType2["Autopilot"] = "Autopilot";
15584
- JobSourceType2["TestManager"] = "TestManager";
15585
- JobSourceType2["AgentService"] = "AgentService";
15586
- JobSourceType2["ProcessOrchestration"] = "ProcessOrchestration";
15587
- JobSourceType2["PluginEcosystem"] = "PluginEcosystem";
15588
- JobSourceType2["PerformanceTesting"] = "PerformanceTesting";
15589
- JobSourceType2["AgentHub"] = "AgentHub";
15590
- JobSourceType2["ApiWorkflow"] = "ApiWorkflow";
15591
- JobSourceType2["CaseManagement"] = "CaseManagement";
15568
+ (function(JobSourceType) {
15569
+ JobSourceType["Manual"] = "Manual";
15570
+ JobSourceType["Schedule"] = "Schedule";
15571
+ JobSourceType["Agent"] = "Agent";
15572
+ JobSourceType["Queue"] = "Queue";
15573
+ JobSourceType["StudioWeb"] = "StudioWeb";
15574
+ JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
15575
+ JobSourceType["StudioDesktop"] = "StudioDesktop";
15576
+ JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
15577
+ JobSourceType["Apps"] = "Apps";
15578
+ JobSourceType["SAP"] = "SAP";
15579
+ JobSourceType["HttpTrigger"] = "HttpTrigger";
15580
+ JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
15581
+ JobSourceType["RobotAPI"] = "RobotAPI";
15582
+ JobSourceType["CommandLine"] = "CommandLine";
15583
+ JobSourceType["RobotNetAPI"] = "RobotNetAPI";
15584
+ JobSourceType["Autopilot"] = "Autopilot";
15585
+ JobSourceType["TestManager"] = "TestManager";
15586
+ JobSourceType["AgentService"] = "AgentService";
15587
+ JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
15588
+ JobSourceType["PluginEcosystem"] = "PluginEcosystem";
15589
+ JobSourceType["PerformanceTesting"] = "PerformanceTesting";
15590
+ JobSourceType["AgentHub"] = "AgentHub";
15591
+ JobSourceType["ApiWorkflow"] = "ApiWorkflow";
15592
+ JobSourceType["CaseManagement"] = "CaseManagement";
15592
15593
  })(JobSourceType || (JobSourceType = {}));
15593
15594
  var StopStrategy;
15594
- (function(StopStrategy2) {
15595
- StopStrategy2["SoftStop"] = "SoftStop";
15596
- StopStrategy2["Kill"] = "Kill";
15595
+ (function(StopStrategy) {
15596
+ StopStrategy["SoftStop"] = "SoftStop";
15597
+ StopStrategy["Kill"] = "Kill";
15597
15598
  })(StopStrategy || (StopStrategy = {}));
15598
15599
  var RuntimeType;
15599
- (function(RuntimeType2) {
15600
- RuntimeType2["NonProduction"] = "NonProduction";
15601
- RuntimeType2["Attended"] = "Attended";
15602
- RuntimeType2["Unattended"] = "Unattended";
15603
- RuntimeType2["Development"] = "Development";
15604
- RuntimeType2["Studio"] = "Studio";
15605
- RuntimeType2["RpaDeveloper"] = "RpaDeveloper";
15606
- RuntimeType2["StudioX"] = "StudioX";
15607
- RuntimeType2["CitizenDeveloper"] = "CitizenDeveloper";
15608
- RuntimeType2["Headless"] = "Headless";
15609
- RuntimeType2["StudioPro"] = "StudioPro";
15610
- RuntimeType2["RpaDeveloperPro"] = "RpaDeveloperPro";
15611
- RuntimeType2["TestAutomation"] = "TestAutomation";
15612
- RuntimeType2["AutomationCloud"] = "AutomationCloud";
15613
- RuntimeType2["Serverless"] = "Serverless";
15614
- RuntimeType2["AutomationKit"] = "AutomationKit";
15615
- RuntimeType2["ServerlessTestAutomation"] = "ServerlessTestAutomation";
15616
- RuntimeType2["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
15617
- RuntimeType2["AttendedStudioWeb"] = "AttendedStudioWeb";
15618
- RuntimeType2["Hosting"] = "Hosting";
15619
- RuntimeType2["AssistantWeb"] = "AssistantWeb";
15620
- RuntimeType2["ProcessOrchestration"] = "ProcessOrchestration";
15621
- RuntimeType2["AgentService"] = "AgentService";
15622
- RuntimeType2["AppTest"] = "AppTest";
15623
- RuntimeType2["PerformanceTest"] = "PerformanceTest";
15624
- RuntimeType2["BusinessRule"] = "BusinessRule";
15625
- RuntimeType2["CaseManagement"] = "CaseManagement";
15626
- RuntimeType2["Flow"] = "Flow";
15600
+ (function(RuntimeType) {
15601
+ RuntimeType["NonProduction"] = "NonProduction";
15602
+ RuntimeType["Attended"] = "Attended";
15603
+ RuntimeType["Unattended"] = "Unattended";
15604
+ RuntimeType["Development"] = "Development";
15605
+ RuntimeType["Studio"] = "Studio";
15606
+ RuntimeType["RpaDeveloper"] = "RpaDeveloper";
15607
+ RuntimeType["StudioX"] = "StudioX";
15608
+ RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
15609
+ RuntimeType["Headless"] = "Headless";
15610
+ RuntimeType["StudioPro"] = "StudioPro";
15611
+ RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
15612
+ RuntimeType["TestAutomation"] = "TestAutomation";
15613
+ RuntimeType["AutomationCloud"] = "AutomationCloud";
15614
+ RuntimeType["Serverless"] = "Serverless";
15615
+ RuntimeType["AutomationKit"] = "AutomationKit";
15616
+ RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
15617
+ RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
15618
+ RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
15619
+ RuntimeType["Hosting"] = "Hosting";
15620
+ RuntimeType["AssistantWeb"] = "AssistantWeb";
15621
+ RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
15622
+ RuntimeType["AgentService"] = "AgentService";
15623
+ RuntimeType["AppTest"] = "AppTest";
15624
+ RuntimeType["PerformanceTest"] = "PerformanceTest";
15625
+ RuntimeType["BusinessRule"] = "BusinessRule";
15626
+ RuntimeType["CaseManagement"] = "CaseManagement";
15627
+ RuntimeType["Flow"] = "Flow";
15627
15628
  })(RuntimeType || (RuntimeType = {}));
15628
15629
  var JobType;
15629
- (function(JobType2) {
15630
- JobType2["Unattended"] = "Unattended";
15631
- JobType2["Attended"] = "Attended";
15632
- JobType2["ServerlessGeneric"] = "ServerlessGeneric";
15630
+ (function(JobType) {
15631
+ JobType["Unattended"] = "Unattended";
15632
+ JobType["Attended"] = "Attended";
15633
+ JobType["ServerlessGeneric"] = "ServerlessGeneric";
15633
15634
  })(JobType || (JobType = {}));
15634
15635
 
15635
15636
  class JobService extends FolderScopedService {
@@ -15847,43 +15848,43 @@ __decorate([
15847
15848
  track("Jobs.LinkAttachment")
15848
15849
  ], JobService.prototype, "linkAttachment", null);
15849
15850
  var JobSubState;
15850
- (function(JobSubState2) {
15851
- JobSubState2["WithFaults"] = "WITH_FAULTS";
15852
- JobSubState2["Manually"] = "MANUALLY";
15851
+ (function(JobSubState) {
15852
+ JobSubState["WithFaults"] = "WITH_FAULTS";
15853
+ JobSubState["Manually"] = "MANUALLY";
15853
15854
  })(JobSubState || (JobSubState = {}));
15854
15855
  var ServerlessJobType;
15855
- (function(ServerlessJobType2) {
15856
- ServerlessJobType2["RobotJob"] = "RobotJob";
15857
- ServerlessJobType2["WebApp"] = "WebApp";
15858
- ServerlessJobType2["LoadTest"] = "LoadTest";
15859
- ServerlessJobType2["StudioWebDesigner"] = "StudioWebDesigner";
15860
- ServerlessJobType2["PublishStudioProject"] = "PublishStudioProject";
15861
- ServerlessJobType2["JsApi"] = "JsApi";
15862
- ServerlessJobType2["PythonCodedAgent"] = "PythonCodedAgent";
15863
- ServerlessJobType2["MCPServer"] = "MCPServer";
15864
- ServerlessJobType2["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
15865
- ServerlessJobType2["PythonAgent"] = "PythonAgent";
15856
+ (function(ServerlessJobType) {
15857
+ ServerlessJobType["RobotJob"] = "RobotJob";
15858
+ ServerlessJobType["WebApp"] = "WebApp";
15859
+ ServerlessJobType["LoadTest"] = "LoadTest";
15860
+ ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
15861
+ ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
15862
+ ServerlessJobType["JsApi"] = "JsApi";
15863
+ ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
15864
+ ServerlessJobType["MCPServer"] = "MCPServer";
15865
+ ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
15866
+ ServerlessJobType["PythonAgent"] = "PythonAgent";
15866
15867
  })(ServerlessJobType || (ServerlessJobType = {}));
15867
15868
  var JobState;
15868
- (function(JobState2) {
15869
- JobState2["Pending"] = "Pending";
15870
- JobState2["Running"] = "Running";
15871
- JobState2["Stopping"] = "Stopping";
15872
- JobState2["Terminating"] = "Terminating";
15873
- JobState2["Faulted"] = "Faulted";
15874
- JobState2["Successful"] = "Successful";
15875
- JobState2["Stopped"] = "Stopped";
15876
- JobState2["Suspended"] = "Suspended";
15877
- JobState2["Resumed"] = "Resumed";
15878
- JobState2["Cancelled"] = "Cancelled";
15879
- JobState2["Unknown"] = "Unknown";
15869
+ (function(JobState) {
15870
+ JobState["Pending"] = "Pending";
15871
+ JobState["Running"] = "Running";
15872
+ JobState["Stopping"] = "Stopping";
15873
+ JobState["Terminating"] = "Terminating";
15874
+ JobState["Faulted"] = "Faulted";
15875
+ JobState["Successful"] = "Successful";
15876
+ JobState["Stopped"] = "Stopped";
15877
+ JobState["Suspended"] = "Suspended";
15878
+ JobState["Resumed"] = "Resumed";
15879
+ JobState["Cancelled"] = "Cancelled";
15880
+ JobState["Unknown"] = "Unknown";
15880
15881
  })(JobState || (JobState = {}));
15881
15882
  var ConnectionState;
15882
- (function(ConnectionState2) {
15883
- ConnectionState2["Enabled"] = "Enabled";
15884
- ConnectionState2["Disabled"] = "Disabled";
15885
- ConnectionState2["Expired"] = "Expired";
15886
- ConnectionState2["Failed"] = "Failed";
15883
+ (function(ConnectionState) {
15884
+ ConnectionState["Enabled"] = "Enabled";
15885
+ ConnectionState["Disabled"] = "Disabled";
15886
+ ConnectionState["Expired"] = "Expired";
15887
+ ConnectionState["Failed"] = "Failed";
15887
15888
  })(ConnectionState || (ConnectionState = {}));
15888
15889
  var ProcessMap = {
15889
15890
  lastModificationTime: "lastModifiedTime",
@@ -15901,7 +15902,7 @@ var ProcessMap = {
15901
15902
 
15902
15903
  class ProcessService extends FolderScopedService {
15903
15904
  async getAll(options) {
15904
- const transformProcessResponse = (process3) => transformData(pascalToCamelCaseKeys(process3), ProcessMap);
15905
+ const transformProcessResponse = (process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap);
15905
15906
  const apiOptions = options ? transformOptions(options, ProcessMap) : options;
15906
15907
  return PaginationHelpers.getAll({
15907
15908
  serviceAccess: this.createPaginationServiceAccess(),
@@ -15975,7 +15976,7 @@ class ProcessService extends FolderScopedService {
15975
15976
  params: apiOptions,
15976
15977
  headers
15977
15978
  });
15978
- const transformedProcess = response.data?.value.map((process3) => transformData(pascalToCamelCaseKeys(process3), ProcessMap));
15979
+ const transformedProcess = response.data?.value.map((process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap));
15979
15980
  return transformedProcess;
15980
15981
  }
15981
15982
  async getById(id, folderId, options = {}) {
@@ -16064,37 +16065,37 @@ function resolveLegacyIdentity(request, folderPath) {
16064
16065
  return { identity: {} };
16065
16066
  }
16066
16067
  var QueuePriority;
16067
- (function(QueuePriority2) {
16068
- QueuePriority2["High"] = "High";
16069
- QueuePriority2["Normal"] = "Normal";
16070
- QueuePriority2["Low"] = "Low";
16068
+ (function(QueuePriority) {
16069
+ QueuePriority["High"] = "High";
16070
+ QueuePriority["Normal"] = "Normal";
16071
+ QueuePriority["Low"] = "Low";
16071
16072
  })(QueuePriority || (QueuePriority = {}));
16072
16073
  var QueueItemStatus;
16073
- (function(QueueItemStatus2) {
16074
- QueueItemStatus2["New"] = "New";
16075
- QueueItemStatus2["InProgress"] = "InProgress";
16076
- QueueItemStatus2["Failed"] = "Failed";
16077
- QueueItemStatus2["Successful"] = "Successful";
16078
- QueueItemStatus2["Abandoned"] = "Abandoned";
16079
- QueueItemStatus2["Retried"] = "Retried";
16080
- QueueItemStatus2["Deleted"] = "Deleted";
16074
+ (function(QueueItemStatus) {
16075
+ QueueItemStatus["New"] = "New";
16076
+ QueueItemStatus["InProgress"] = "InProgress";
16077
+ QueueItemStatus["Failed"] = "Failed";
16078
+ QueueItemStatus["Successful"] = "Successful";
16079
+ QueueItemStatus["Abandoned"] = "Abandoned";
16080
+ QueueItemStatus["Retried"] = "Retried";
16081
+ QueueItemStatus["Deleted"] = "Deleted";
16081
16082
  })(QueueItemStatus || (QueueItemStatus = {}));
16082
16083
  var QueueItemReviewStatus;
16083
- (function(QueueItemReviewStatus2) {
16084
- QueueItemReviewStatus2["None"] = "None";
16085
- QueueItemReviewStatus2["InReview"] = "InReview";
16086
- QueueItemReviewStatus2["Verified"] = "Verified";
16087
- QueueItemReviewStatus2["Retried"] = "Retried";
16084
+ (function(QueueItemReviewStatus) {
16085
+ QueueItemReviewStatus["None"] = "None";
16086
+ QueueItemReviewStatus["InReview"] = "InReview";
16087
+ QueueItemReviewStatus["Verified"] = "Verified";
16088
+ QueueItemReviewStatus["Retried"] = "Retried";
16088
16089
  })(QueueItemReviewStatus || (QueueItemReviewStatus = {}));
16089
16090
  var QueueExceptionType;
16090
- (function(QueueExceptionType2) {
16091
- QueueExceptionType2["ApplicationException"] = "ApplicationException";
16092
- QueueExceptionType2["BusinessException"] = "BusinessException";
16091
+ (function(QueueExceptionType) {
16092
+ QueueExceptionType["ApplicationException"] = "ApplicationException";
16093
+ QueueExceptionType["BusinessException"] = "BusinessException";
16093
16094
  })(QueueExceptionType || (QueueExceptionType = {}));
16094
16095
  var QueueTransactionOutcome;
16095
- (function(QueueTransactionOutcome2) {
16096
- QueueTransactionOutcome2["Successful"] = "Successful";
16097
- QueueTransactionOutcome2["Failed"] = "Failed";
16096
+ (function(QueueTransactionOutcome) {
16097
+ QueueTransactionOutcome["Successful"] = "Successful";
16098
+ QueueTransactionOutcome["Failed"] = "Failed";
16098
16099
  })(QueueTransactionOutcome || (QueueTransactionOutcome = {}));
16099
16100
  function createQueueMethods(queueData, service) {
16100
16101
  return {
@@ -16183,14 +16184,14 @@ class QueueService extends FolderScopedService {
16183
16184
  }
16184
16185
  async getById(id, folderIdOrOptions, options = {}) {
16185
16186
  if (typeof folderIdOrOptions === "number") {
16186
- const headers2 = createHeaders({ [FOLDER_ID]: folderIdOrOptions });
16187
- const apiFieldOptions2 = transformOptions(options, QueueMap);
16188
- const apiOptions2 = addPrefixToKeys(apiFieldOptions2, ODATA_PREFIX, Object.keys(apiFieldOptions2));
16189
- const response2 = await this.get(QUEUE_ENDPOINTS.GET_BY_ID(id), {
16190
- headers: headers2,
16191
- params: apiOptions2
16187
+ const headers = createHeaders({ [FOLDER_ID]: folderIdOrOptions });
16188
+ const apiFieldOptions = transformOptions(options, QueueMap);
16189
+ const apiOptions = addPrefixToKeys(apiFieldOptions, ODATA_PREFIX, Object.keys(apiFieldOptions));
16190
+ const response = await this.get(QUEUE_ENDPOINTS.GET_BY_ID(id), {
16191
+ headers,
16192
+ params: apiOptions
16192
16193
  });
16193
- return transformData(pascalToCamelCaseKeys(response2.data), QueueMap);
16194
+ return transformData(pascalToCamelCaseKeys(response.data), QueueMap);
16194
16195
  }
16195
16196
  const { folderId, folderKey, folderPath, ...queryOptions } = folderIdOrOptions ?? {};
16196
16197
  const headers = resolveFolderHeaders({
@@ -16382,10 +16383,10 @@ var TaskCatalogMap = {
16382
16383
  lastModificationTime: "lastModifiedTime"
16383
16384
  };
16384
16385
  var TaskCatalogRetentionAction;
16385
- (function(TaskCatalogRetentionAction2) {
16386
- TaskCatalogRetentionAction2["Delete"] = "Delete";
16387
- TaskCatalogRetentionAction2["Archive"] = "Archive";
16388
- TaskCatalogRetentionAction2["None"] = "None";
16386
+ (function(TaskCatalogRetentionAction) {
16387
+ TaskCatalogRetentionAction["Delete"] = "Delete";
16388
+ TaskCatalogRetentionAction["Archive"] = "Archive";
16389
+ TaskCatalogRetentionAction["None"] = "None";
16389
16390
  })(TaskCatalogRetentionAction || (TaskCatalogRetentionAction = {}));
16390
16391
 
16391
16392
  class TaskCatalogService extends FolderScopedService {
@@ -16485,7 +16486,7 @@ __decorate([
16485
16486
  track("TaskCatalogs.UpdateByName")
16486
16487
  ], TaskCatalogService.prototype, "updateByName", null);
16487
16488
 
16488
- class UiPath2 extends UiPath$1 {
16489
+ class UiPath extends UiPath$1 {
16489
16490
  constructor() {
16490
16491
  super(...arguments);
16491
16492
  this._services = new Map;
@@ -16533,38 +16534,38 @@ class UiPath2 extends UiPath$1 {
16533
16534
  }
16534
16535
  }
16535
16536
  var FunctionHttpMethod;
16536
- (function(FunctionHttpMethod2) {
16537
- FunctionHttpMethod2["Get"] = "Get";
16538
- FunctionHttpMethod2["Post"] = "Post";
16539
- FunctionHttpMethod2["Put"] = "Put";
16540
- FunctionHttpMethod2["Patch"] = "Patch";
16541
- FunctionHttpMethod2["Delete"] = "Delete";
16537
+ (function(FunctionHttpMethod) {
16538
+ FunctionHttpMethod["Get"] = "Get";
16539
+ FunctionHttpMethod["Post"] = "Post";
16540
+ FunctionHttpMethod["Put"] = "Put";
16541
+ FunctionHttpMethod["Patch"] = "Patch";
16542
+ FunctionHttpMethod["Delete"] = "Delete";
16542
16543
  })(FunctionHttpMethod || (FunctionHttpMethod = {}));
16543
16544
  var FolderType;
16544
- (function(FolderType2) {
16545
- FolderType2["Standard"] = "Standard";
16546
- FolderType2["Personal"] = "Personal";
16547
- FolderType2["Virtual"] = "Virtual";
16548
- FolderType2["Solution"] = "Solution";
16549
- FolderType2["DebugSolution"] = "DebugSolution";
16545
+ (function(FolderType) {
16546
+ FolderType["Standard"] = "Standard";
16547
+ FolderType["Personal"] = "Personal";
16548
+ FolderType["Virtual"] = "Virtual";
16549
+ FolderType["Solution"] = "Solution";
16550
+ FolderType["DebugSolution"] = "DebugSolution";
16550
16551
  })(FolderType || (FolderType = {}));
16551
16552
  var FolderProvisionType;
16552
- (function(FolderProvisionType2) {
16553
- FolderProvisionType2["Manual"] = "Manual";
16554
- FolderProvisionType2["Automatic"] = "Automatic";
16553
+ (function(FolderProvisionType) {
16554
+ FolderProvisionType["Manual"] = "Manual";
16555
+ FolderProvisionType["Automatic"] = "Automatic";
16555
16556
  })(FolderProvisionType || (FolderProvisionType = {}));
16556
16557
  var FolderPermissionModel;
16557
- (function(FolderPermissionModel2) {
16558
- FolderPermissionModel2["InheritFromTenant"] = "InheritFromTenant";
16559
- FolderPermissionModel2["FineGrained"] = "FineGrained";
16558
+ (function(FolderPermissionModel) {
16559
+ FolderPermissionModel["InheritFromTenant"] = "InheritFromTenant";
16560
+ FolderPermissionModel["FineGrained"] = "FineGrained";
16560
16561
  })(FolderPermissionModel || (FolderPermissionModel = {}));
16561
16562
  var FolderFeedType;
16562
- (function(FolderFeedType2) {
16563
- FolderFeedType2["Undefined"] = "Undefined";
16564
- FolderFeedType2["Processes"] = "Processes";
16565
- FolderFeedType2["Libraries"] = "Libraries";
16566
- FolderFeedType2["PersonalWorkspace"] = "PersonalWorkspace";
16567
- FolderFeedType2["FolderHierarchy"] = "FolderHierarchy";
16563
+ (function(FolderFeedType) {
16564
+ FolderFeedType["Undefined"] = "Undefined";
16565
+ FolderFeedType["Processes"] = "Processes";
16566
+ FolderFeedType["Libraries"] = "Libraries";
16567
+ FolderFeedType["PersonalWorkspace"] = "PersonalWorkspace";
16568
+ FolderFeedType["FolderHierarchy"] = "FolderHierarchy";
16568
16569
  })(FolderFeedType || (FolderFeedType = {}));
16569
16570
  var CommonFieldMap = {
16570
16571
  createdAt: "createdTime",
@@ -16583,35 +16584,35 @@ var MessageMap = {
16583
16584
  ...CommonFieldMap
16584
16585
  };
16585
16586
  var MessageRole;
16586
- (function(MessageRole2) {
16587
- MessageRole2["System"] = "system";
16588
- MessageRole2["User"] = "user";
16589
- MessageRole2["Assistant"] = "assistant";
16587
+ (function(MessageRole) {
16588
+ MessageRole["System"] = "system";
16589
+ MessageRole["User"] = "user";
16590
+ MessageRole["Assistant"] = "assistant";
16590
16591
  })(MessageRole || (MessageRole = {}));
16591
16592
  var InterruptType;
16592
- (function(InterruptType2) {
16593
- InterruptType2["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
16593
+ (function(InterruptType) {
16594
+ InterruptType["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
16594
16595
  })(InterruptType || (InterruptType = {}));
16595
16596
  var SortOrder;
16596
- (function(SortOrder2) {
16597
- SortOrder2["Ascending"] = "ascending";
16598
- SortOrder2["Descending"] = "descending";
16597
+ (function(SortOrder) {
16598
+ SortOrder["Ascending"] = "ascending";
16599
+ SortOrder["Descending"] = "descending";
16599
16600
  })(SortOrder || (SortOrder = {}));
16600
16601
  var FeedbackRating;
16601
- (function(FeedbackRating2) {
16602
- FeedbackRating2["Positive"] = "positive";
16603
- FeedbackRating2["Negative"] = "negative";
16602
+ (function(FeedbackRating) {
16603
+ FeedbackRating["Positive"] = "positive";
16604
+ FeedbackRating["Negative"] = "negative";
16604
16605
  })(FeedbackRating || (FeedbackRating = {}));
16605
16606
  var InputStreamSpeechSensitivity;
16606
- (function(InputStreamSpeechSensitivity2) {
16607
- InputStreamSpeechSensitivity2["Unspecified"] = "UNSPECIFIED";
16608
- InputStreamSpeechSensitivity2["High"] = "HIGH";
16609
- InputStreamSpeechSensitivity2["Low"] = "LOW";
16607
+ (function(InputStreamSpeechSensitivity) {
16608
+ InputStreamSpeechSensitivity["Unspecified"] = "UNSPECIFIED";
16609
+ InputStreamSpeechSensitivity["High"] = "HIGH";
16610
+ InputStreamSpeechSensitivity["Low"] = "LOW";
16610
16611
  })(InputStreamSpeechSensitivity || (InputStreamSpeechSensitivity = {}));
16611
16612
  var CitationErrorType;
16612
- (function(CitationErrorType2) {
16613
- CitationErrorType2["CitationNotEnded"] = "CitationNotEnded";
16614
- CitationErrorType2["CitationNotStarted"] = "CitationNotStarted";
16613
+ (function(CitationErrorType) {
16614
+ CitationErrorType["CitationNotEnded"] = "CitationNotEnded";
16615
+ CitationErrorType["CitationNotStarted"] = "CitationNotStarted";
16615
16616
  })(CitationErrorType || (CitationErrorType = {}));
16616
16617
  var AgentMap = {
16617
16618
  ...CommonFieldMap
@@ -16620,477 +16621,477 @@ var UserSettingsMap = {
16620
16621
  ...CommonFieldMap
16621
16622
  };
16622
16623
  var FeedbackStatus;
16623
- (function(FeedbackStatus2) {
16624
- FeedbackStatus2[FeedbackStatus2["Pending"] = 0] = "Pending";
16625
- FeedbackStatus2[FeedbackStatus2["Approved"] = 1] = "Approved";
16626
- FeedbackStatus2[FeedbackStatus2["Dismissed"] = 2] = "Dismissed";
16624
+ (function(FeedbackStatus) {
16625
+ FeedbackStatus[FeedbackStatus["Pending"] = 0] = "Pending";
16626
+ FeedbackStatus[FeedbackStatus["Approved"] = 1] = "Approved";
16627
+ FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
16627
16628
  })(FeedbackStatus || (FeedbackStatus = {}));
16628
16629
  var AgentListSortColumn;
16629
- (function(AgentListSortColumn2) {
16630
- AgentListSortColumn2["AgentName"] = "AgentName";
16631
- AgentListSortColumn2["ParentProcess"] = "ParentProcess";
16632
- AgentListSortColumn2["LastRun"] = "LastRun";
16633
- AgentListSortColumn2["HealthScore"] = "HealthScore";
16634
- AgentListSortColumn2["LastIncident"] = "LastIncident";
16635
- AgentListSortColumn2["FolderName"] = "FolderName";
16636
- AgentListSortColumn2["QuantityAGU"] = "QuantityAGU";
16637
- AgentListSortColumn2["QuantityPLTU"] = "QuantityPLTU";
16638
- AgentListSortColumn2["FolderPath"] = "FolderPath";
16630
+ (function(AgentListSortColumn) {
16631
+ AgentListSortColumn["AgentName"] = "AgentName";
16632
+ AgentListSortColumn["ParentProcess"] = "ParentProcess";
16633
+ AgentListSortColumn["LastRun"] = "LastRun";
16634
+ AgentListSortColumn["HealthScore"] = "HealthScore";
16635
+ AgentListSortColumn["LastIncident"] = "LastIncident";
16636
+ AgentListSortColumn["FolderName"] = "FolderName";
16637
+ AgentListSortColumn["QuantityAGU"] = "QuantityAGU";
16638
+ AgentListSortColumn["QuantityPLTU"] = "QuantityPLTU";
16639
+ AgentListSortColumn["FolderPath"] = "FolderPath";
16639
16640
  })(AgentListSortColumn || (AgentListSortColumn = {}));
16640
16641
  var AgentErrorSortColumn;
16641
- (function(AgentErrorSortColumn2) {
16642
- AgentErrorSortColumn2["AgentId"] = "AgentId";
16643
- AgentErrorSortColumn2["AgentName"] = "AgentName";
16644
- AgentErrorSortColumn2["ParentProcessName"] = "ParentProcessName";
16645
- AgentErrorSortColumn2["ErrorTitle"] = "ErrorTitle";
16646
- AgentErrorSortColumn2["FirstSeenStartTime"] = "FirstSeenStartTime";
16647
- AgentErrorSortColumn2["ExecutionCount"] = "ExecutionCount";
16648
- AgentErrorSortColumn2["Type"] = "Type";
16649
- AgentErrorSortColumn2["FirstSeenFolderName"] = "FirstSeenFolderName";
16650
- AgentErrorSortColumn2["FirstSeenFolderPath"] = "FirstSeenFolderPath";
16651
- AgentErrorSortColumn2["LastSeenStartTime"] = "LastSeenStartTime";
16652
- AgentErrorSortColumn2["LastSeenFolderName"] = "LastSeenFolderName";
16653
- AgentErrorSortColumn2["LastSeenFolderPath"] = "LastSeenFolderPath";
16642
+ (function(AgentErrorSortColumn) {
16643
+ AgentErrorSortColumn["AgentId"] = "AgentId";
16644
+ AgentErrorSortColumn["AgentName"] = "AgentName";
16645
+ AgentErrorSortColumn["ParentProcessName"] = "ParentProcessName";
16646
+ AgentErrorSortColumn["ErrorTitle"] = "ErrorTitle";
16647
+ AgentErrorSortColumn["FirstSeenStartTime"] = "FirstSeenStartTime";
16648
+ AgentErrorSortColumn["ExecutionCount"] = "ExecutionCount";
16649
+ AgentErrorSortColumn["Type"] = "Type";
16650
+ AgentErrorSortColumn["FirstSeenFolderName"] = "FirstSeenFolderName";
16651
+ AgentErrorSortColumn["FirstSeenFolderPath"] = "FirstSeenFolderPath";
16652
+ AgentErrorSortColumn["LastSeenStartTime"] = "LastSeenStartTime";
16653
+ AgentErrorSortColumn["LastSeenFolderName"] = "LastSeenFolderName";
16654
+ AgentErrorSortColumn["LastSeenFolderPath"] = "LastSeenFolderPath";
16654
16655
  })(AgentErrorSortColumn || (AgentErrorSortColumn = {}));
16655
16656
  var AgentType;
16656
- (function(AgentType2) {
16657
- AgentType2["Autonomous"] = "Autonomous";
16658
- AgentType2["Conversational"] = "Conversational";
16659
- AgentType2["Coded"] = "Coded";
16657
+ (function(AgentType) {
16658
+ AgentType["Autonomous"] = "Autonomous";
16659
+ AgentType["Conversational"] = "Conversational";
16660
+ AgentType["Coded"] = "Coded";
16660
16661
  })(AgentType || (AgentType = {}));
16661
16662
  var AgentExecutionType;
16662
- (function(AgentExecutionType2) {
16663
- AgentExecutionType2["Debug"] = "Debug";
16664
- AgentExecutionType2["Runtime"] = "Runtime";
16663
+ (function(AgentExecutionType) {
16664
+ AgentExecutionType["Debug"] = "Debug";
16665
+ AgentExecutionType["Runtime"] = "Runtime";
16665
16666
  })(AgentExecutionType || (AgentExecutionType = {}));
16666
16667
  var AgentMemoryExecutionType;
16667
- (function(AgentMemoryExecutionType2) {
16668
- AgentMemoryExecutionType2["Debug"] = "Debug";
16669
- AgentMemoryExecutionType2["Runtime"] = "Runtime";
16668
+ (function(AgentMemoryExecutionType) {
16669
+ AgentMemoryExecutionType["Debug"] = "Debug";
16670
+ AgentMemoryExecutionType["Runtime"] = "Runtime";
16670
16671
  })(AgentMemoryExecutionType || (AgentMemoryExecutionType = {}));
16671
16672
  var DocumentActionPriority;
16672
- (function(DocumentActionPriority2) {
16673
- DocumentActionPriority2["Low"] = "Low";
16674
- DocumentActionPriority2["Medium"] = "Medium";
16675
- DocumentActionPriority2["High"] = "High";
16676
- DocumentActionPriority2["Critical"] = "Critical";
16673
+ (function(DocumentActionPriority) {
16674
+ DocumentActionPriority["Low"] = "Low";
16675
+ DocumentActionPriority["Medium"] = "Medium";
16676
+ DocumentActionPriority["High"] = "High";
16677
+ DocumentActionPriority["Critical"] = "Critical";
16677
16678
  })(DocumentActionPriority || (DocumentActionPriority = {}));
16678
16679
  var DocumentActionStatus;
16679
- (function(DocumentActionStatus2) {
16680
- DocumentActionStatus2["Unassigned"] = "Unassigned";
16681
- DocumentActionStatus2["Pending"] = "Pending";
16682
- DocumentActionStatus2["Completed"] = "Completed";
16680
+ (function(DocumentActionStatus) {
16681
+ DocumentActionStatus["Unassigned"] = "Unassigned";
16682
+ DocumentActionStatus["Pending"] = "Pending";
16683
+ DocumentActionStatus["Completed"] = "Completed";
16683
16684
  })(DocumentActionStatus || (DocumentActionStatus = {}));
16684
16685
  var DocumentActionType;
16685
- (function(DocumentActionType2) {
16686
- DocumentActionType2["Validation"] = "Validation";
16687
- DocumentActionType2["Classification"] = "Classification";
16686
+ (function(DocumentActionType) {
16687
+ DocumentActionType["Validation"] = "Validation";
16688
+ DocumentActionType["Classification"] = "Classification";
16688
16689
  })(DocumentActionType || (DocumentActionType = {}));
16689
16690
  var ProjectProperties;
16690
- (function(ProjectProperties2) {
16691
- ProjectProperties2["IsPredefined"] = "IsPredefined";
16692
- ProjectProperties2["SupportsTags"] = "SupportsTags";
16693
- ProjectProperties2["SupportsVersions"] = "SupportsVersions";
16694
- ProjectProperties2["IsSplittingEnabled"] = "IsSplittingEnabled";
16691
+ (function(ProjectProperties) {
16692
+ ProjectProperties["IsPredefined"] = "IsPredefined";
16693
+ ProjectProperties["SupportsTags"] = "SupportsTags";
16694
+ ProjectProperties["SupportsVersions"] = "SupportsVersions";
16695
+ ProjectProperties["IsSplittingEnabled"] = "IsSplittingEnabled";
16695
16696
  })(ProjectProperties || (ProjectProperties = {}));
16696
16697
  var ProjectType;
16697
- (function(ProjectType2) {
16698
- ProjectType2["Classic"] = "Classic";
16699
- ProjectType2["Modern"] = "Modern";
16700
- ProjectType2["IXP"] = "IXP";
16701
- ProjectType2["Unknown"] = "Unknown";
16698
+ (function(ProjectType) {
16699
+ ProjectType["Classic"] = "Classic";
16700
+ ProjectType["Modern"] = "Modern";
16701
+ ProjectType["IXP"] = "IXP";
16702
+ ProjectType["Unknown"] = "Unknown";
16702
16703
  })(ProjectType || (ProjectType = {}));
16703
16704
  var ResourceStatus;
16704
- (function(ResourceStatus2) {
16705
- ResourceStatus2["Unknown"] = "Unknown";
16706
- ResourceStatus2["NotStarted"] = "NotStarted";
16707
- ResourceStatus2["ExportInProgress"] = "ExportInProgress";
16708
- ResourceStatus2["ExportCompleted"] = "ExportCompleted";
16709
- ResourceStatus2["InProgress"] = "InProgress";
16710
- ResourceStatus2["Suspended"] = "Suspended";
16711
- ResourceStatus2["Resuming"] = "Resuming";
16712
- ResourceStatus2["Available"] = "Available";
16713
- ResourceStatus2["Error"] = "Error";
16714
- ResourceStatus2["Deleting"] = "Deleting";
16705
+ (function(ResourceStatus) {
16706
+ ResourceStatus["Unknown"] = "Unknown";
16707
+ ResourceStatus["NotStarted"] = "NotStarted";
16708
+ ResourceStatus["ExportInProgress"] = "ExportInProgress";
16709
+ ResourceStatus["ExportCompleted"] = "ExportCompleted";
16710
+ ResourceStatus["InProgress"] = "InProgress";
16711
+ ResourceStatus["Suspended"] = "Suspended";
16712
+ ResourceStatus["Resuming"] = "Resuming";
16713
+ ResourceStatus["Available"] = "Available";
16714
+ ResourceStatus["Error"] = "Error";
16715
+ ResourceStatus["Deleting"] = "Deleting";
16715
16716
  })(ResourceStatus || (ResourceStatus = {}));
16716
16717
  var ResourceType;
16717
- (function(ResourceType2) {
16718
- ResourceType2["Specialized"] = "Specialized";
16719
- ResourceType2["Generative"] = "Generative";
16720
- ResourceType2["Custom"] = "Custom";
16721
- ResourceType2["Unknown"] = "Unknown";
16718
+ (function(ResourceType) {
16719
+ ResourceType["Specialized"] = "Specialized";
16720
+ ResourceType["Generative"] = "Generative";
16721
+ ResourceType["Custom"] = "Custom";
16722
+ ResourceType["Unknown"] = "Unknown";
16722
16723
  })(ResourceType || (ResourceType = {}));
16723
16724
  var MarkupType;
16724
- (function(MarkupType2) {
16725
- MarkupType2["Unknown"] = "Unknown";
16726
- MarkupType2["Circled"] = "Circled";
16727
- MarkupType2["Underlined"] = "Underlined";
16728
- MarkupType2["Strikethrough"] = "Strikethrough";
16725
+ (function(MarkupType) {
16726
+ MarkupType["Unknown"] = "Unknown";
16727
+ MarkupType["Circled"] = "Circled";
16728
+ MarkupType["Underlined"] = "Underlined";
16729
+ MarkupType["Strikethrough"] = "Strikethrough";
16729
16730
  })(MarkupType || (MarkupType = {}));
16730
16731
  var ProcessingSource;
16731
- (function(ProcessingSource2) {
16732
- ProcessingSource2["Unknown"] = "Unknown";
16733
- ProcessingSource2["Ocr"] = "Ocr";
16734
- ProcessingSource2["Pdf"] = "Pdf";
16735
- ProcessingSource2["PlainText"] = "PlainText";
16736
- ProcessingSource2["PdfAndOcr"] = "PdfAndOcr";
16732
+ (function(ProcessingSource) {
16733
+ ProcessingSource["Unknown"] = "Unknown";
16734
+ ProcessingSource["Ocr"] = "Ocr";
16735
+ ProcessingSource["Pdf"] = "Pdf";
16736
+ ProcessingSource["PlainText"] = "PlainText";
16737
+ ProcessingSource["PdfAndOcr"] = "PdfAndOcr";
16737
16738
  })(ProcessingSource || (ProcessingSource = {}));
16738
16739
  var Rotation;
16739
- (function(Rotation2) {
16740
- Rotation2["None"] = "None";
16741
- Rotation2["Rotated90"] = "Rotated90";
16742
- Rotation2["Rotated180"] = "Rotated180";
16743
- Rotation2["Rotated270"] = "Rotated270";
16744
- Rotation2["Other"] = "Other";
16740
+ (function(Rotation) {
16741
+ Rotation["None"] = "None";
16742
+ Rotation["Rotated90"] = "Rotated90";
16743
+ Rotation["Rotated180"] = "Rotated180";
16744
+ Rotation["Rotated270"] = "Rotated270";
16745
+ Rotation["Other"] = "Other";
16745
16746
  })(Rotation || (Rotation = {}));
16746
16747
  var SectionType;
16747
- (function(SectionType2) {
16748
- SectionType2["Vertical"] = "Vertical";
16749
- SectionType2["Paragraph"] = "Paragraph";
16750
- SectionType2["Header"] = "Header";
16751
- SectionType2["Footer"] = "Footer";
16752
- SectionType2["Table"] = "Table";
16748
+ (function(SectionType) {
16749
+ SectionType["Vertical"] = "Vertical";
16750
+ SectionType["Paragraph"] = "Paragraph";
16751
+ SectionType["Header"] = "Header";
16752
+ SectionType["Footer"] = "Footer";
16753
+ SectionType["Table"] = "Table";
16753
16754
  })(SectionType || (SectionType = {}));
16754
16755
  var TextType;
16755
- (function(TextType2) {
16756
- TextType2["Unknown"] = "Unknown";
16757
- TextType2["Text"] = "Text";
16758
- TextType2["Checkbox"] = "Checkbox";
16759
- TextType2["Handwriting"] = "Handwriting";
16760
- TextType2["Barcode"] = "Barcode";
16761
- TextType2["QRcode"] = "QRcode";
16762
- TextType2["Stamp"] = "Stamp";
16763
- TextType2["Logo"] = "Logo";
16764
- TextType2["Circle"] = "Circle";
16765
- TextType2["Underline"] = "Underline";
16766
- TextType2["Cut"] = "Cut";
16756
+ (function(TextType) {
16757
+ TextType["Unknown"] = "Unknown";
16758
+ TextType["Text"] = "Text";
16759
+ TextType["Checkbox"] = "Checkbox";
16760
+ TextType["Handwriting"] = "Handwriting";
16761
+ TextType["Barcode"] = "Barcode";
16762
+ TextType["QRcode"] = "QRcode";
16763
+ TextType["Stamp"] = "Stamp";
16764
+ TextType["Logo"] = "Logo";
16765
+ TextType["Circle"] = "Circle";
16766
+ TextType["Underline"] = "Underline";
16767
+ TextType["Cut"] = "Cut";
16767
16768
  })(TextType || (TextType = {}));
16768
16769
  var WordGroupType;
16769
- (function(WordGroupType2) {
16770
- WordGroupType2["Sentence"] = "Sentence";
16771
- WordGroupType2["TableCell"] = "TableCell";
16772
- WordGroupType2["TableRowEnd"] = "TableRowEnd";
16773
- WordGroupType2["Heading"] = "Heading";
16774
- WordGroupType2["Other"] = "Other";
16770
+ (function(WordGroupType) {
16771
+ WordGroupType["Sentence"] = "Sentence";
16772
+ WordGroupType["TableCell"] = "TableCell";
16773
+ WordGroupType["TableRowEnd"] = "TableRowEnd";
16774
+ WordGroupType["Heading"] = "Heading";
16775
+ WordGroupType["Other"] = "Other";
16775
16776
  })(WordGroupType || (WordGroupType = {}));
16776
16777
  var ModelKind;
16777
- (function(ModelKind2) {
16778
- ModelKind2["Extractor"] = "Extractor";
16779
- ModelKind2["Classifier"] = "Classifier";
16778
+ (function(ModelKind) {
16779
+ ModelKind["Extractor"] = "Extractor";
16780
+ ModelKind["Classifier"] = "Classifier";
16780
16781
  })(ModelKind || (ModelKind = {}));
16781
16782
  var ModelType;
16782
- (function(ModelType2) {
16783
- ModelType2["IXP"] = "IXP";
16784
- ModelType2["Modern"] = "Modern";
16785
- ModelType2["Predefined"] = "Predefined";
16783
+ (function(ModelType) {
16784
+ ModelType["IXP"] = "IXP";
16785
+ ModelType["Modern"] = "Modern";
16786
+ ModelType["Predefined"] = "Predefined";
16786
16787
  })(ModelType || (ModelType = {}));
16787
16788
  var ErrorSeverity;
16788
- (function(ErrorSeverity2) {
16789
- ErrorSeverity2["Info"] = "Info";
16790
- ErrorSeverity2["Warning"] = "Warning";
16791
- ErrorSeverity2["Error"] = "Error";
16789
+ (function(ErrorSeverity) {
16790
+ ErrorSeverity["Info"] = "Info";
16791
+ ErrorSeverity["Warning"] = "Warning";
16792
+ ErrorSeverity["Error"] = "Error";
16792
16793
  })(ErrorSeverity || (ErrorSeverity = {}));
16793
16794
  var ClassifierDocumentTypeType;
16794
- (function(ClassifierDocumentTypeType2) {
16795
- ClassifierDocumentTypeType2["FormsAi"] = "FormsAi";
16796
- ClassifierDocumentTypeType2["SemiStructuredAi"] = "SemiStructuredAi";
16797
- ClassifierDocumentTypeType2["Helix"] = "Helix";
16798
- ClassifierDocumentTypeType2["Unknown"] = "Unknown";
16795
+ (function(ClassifierDocumentTypeType) {
16796
+ ClassifierDocumentTypeType["FormsAi"] = "FormsAi";
16797
+ ClassifierDocumentTypeType["SemiStructuredAi"] = "SemiStructuredAi";
16798
+ ClassifierDocumentTypeType["Helix"] = "Helix";
16799
+ ClassifierDocumentTypeType["Unknown"] = "Unknown";
16799
16800
  })(ClassifierDocumentTypeType || (ClassifierDocumentTypeType = {}));
16800
16801
  var CreateTaskPriority;
16801
- (function(CreateTaskPriority2) {
16802
- CreateTaskPriority2["Low"] = "Low";
16803
- CreateTaskPriority2["Medium"] = "Medium";
16804
- CreateTaskPriority2["High"] = "High";
16805
- CreateTaskPriority2["Critical"] = "Critical";
16802
+ (function(CreateTaskPriority) {
16803
+ CreateTaskPriority["Low"] = "Low";
16804
+ CreateTaskPriority["Medium"] = "Medium";
16805
+ CreateTaskPriority["High"] = "High";
16806
+ CreateTaskPriority["Critical"] = "Critical";
16806
16807
  })(CreateTaskPriority || (CreateTaskPriority = {}));
16807
16808
  var GptFieldType;
16808
- (function(GptFieldType2) {
16809
- GptFieldType2["Address"] = "Address";
16810
- GptFieldType2["Boolean"] = "Boolean";
16811
- GptFieldType2["Date"] = "Date";
16812
- GptFieldType2["Name"] = "Name";
16813
- GptFieldType2["Number"] = "Number";
16814
- GptFieldType2["Text"] = "Text";
16809
+ (function(GptFieldType) {
16810
+ GptFieldType["Address"] = "Address";
16811
+ GptFieldType["Boolean"] = "Boolean";
16812
+ GptFieldType["Date"] = "Date";
16813
+ GptFieldType["Name"] = "Name";
16814
+ GptFieldType["Number"] = "Number";
16815
+ GptFieldType["Text"] = "Text";
16815
16816
  })(GptFieldType || (GptFieldType = {}));
16816
16817
  var JobStatus;
16817
- (function(JobStatus2) {
16818
- JobStatus2["Succeeded"] = "Succeeded";
16819
- JobStatus2["Failed"] = "Failed";
16820
- JobStatus2["Running"] = "Running";
16821
- JobStatus2["NotStarted"] = "NotStarted";
16818
+ (function(JobStatus) {
16819
+ JobStatus["Succeeded"] = "Succeeded";
16820
+ JobStatus["Failed"] = "Failed";
16821
+ JobStatus["Running"] = "Running";
16822
+ JobStatus["NotStarted"] = "NotStarted";
16822
16823
  })(JobStatus || (JobStatus = {}));
16823
16824
  var ValidationDisplayMode;
16824
- (function(ValidationDisplayMode2) {
16825
- ValidationDisplayMode2["Classic"] = "Classic";
16826
- ValidationDisplayMode2["Compact"] = "Compact";
16825
+ (function(ValidationDisplayMode) {
16826
+ ValidationDisplayMode["Classic"] = "Classic";
16827
+ ValidationDisplayMode["Compact"] = "Compact";
16827
16828
  })(ValidationDisplayMode || (ValidationDisplayMode = {}));
16828
16829
  var ResultsDataSource;
16829
- (function(ResultsDataSource2) {
16830
- ResultsDataSource2["Automatic"] = "Automatic";
16831
- ResultsDataSource2["Manual"] = "Manual";
16832
- ResultsDataSource2["ManuallyChanged"] = "ManuallyChanged";
16833
- ResultsDataSource2["Defaulted"] = "Defaulted";
16834
- ResultsDataSource2["External"] = "External";
16830
+ (function(ResultsDataSource) {
16831
+ ResultsDataSource["Automatic"] = "Automatic";
16832
+ ResultsDataSource["Manual"] = "Manual";
16833
+ ResultsDataSource["ManuallyChanged"] = "ManuallyChanged";
16834
+ ResultsDataSource["Defaulted"] = "Defaulted";
16835
+ ResultsDataSource["External"] = "External";
16835
16836
  })(ResultsDataSource || (ResultsDataSource = {}));
16836
16837
  var ComparisonOperator;
16837
- (function(ComparisonOperator2) {
16838
- ComparisonOperator2["Equals"] = "Equals";
16839
- ComparisonOperator2["NotEquals"] = "NotEquals";
16840
- ComparisonOperator2["Greater"] = "Greater";
16841
- ComparisonOperator2["Less"] = "Less";
16842
- ComparisonOperator2["GreaterOrEqual"] = "GreaterOrEqual";
16843
- ComparisonOperator2["LessOrEqual"] = "LessOrEqual";
16838
+ (function(ComparisonOperator) {
16839
+ ComparisonOperator["Equals"] = "Equals";
16840
+ ComparisonOperator["NotEquals"] = "NotEquals";
16841
+ ComparisonOperator["Greater"] = "Greater";
16842
+ ComparisonOperator["Less"] = "Less";
16843
+ ComparisonOperator["GreaterOrEqual"] = "GreaterOrEqual";
16844
+ ComparisonOperator["LessOrEqual"] = "LessOrEqual";
16844
16845
  })(ComparisonOperator || (ComparisonOperator = {}));
16845
16846
  var Criticality;
16846
- (function(Criticality2) {
16847
- Criticality2["Must"] = "Must";
16848
- Criticality2["Should"] = "Should";
16847
+ (function(Criticality) {
16848
+ Criticality["Must"] = "Must";
16849
+ Criticality["Should"] = "Should";
16849
16850
  })(Criticality || (Criticality = {}));
16850
16851
  var FieldType;
16851
- (function(FieldType2) {
16852
- FieldType2["Text"] = "Text";
16853
- FieldType2["Number"] = "Number";
16854
- FieldType2["Date"] = "Date";
16855
- FieldType2["Name"] = "Name";
16856
- FieldType2["Address"] = "Address";
16857
- FieldType2["Keyword"] = "Keyword";
16858
- FieldType2["Set"] = "Set";
16859
- FieldType2["Boolean"] = "Boolean";
16860
- FieldType2["Table"] = "Table";
16861
- FieldType2["Internal"] = "Internal";
16862
- FieldType2["FieldGroup"] = "FieldGroup";
16863
- FieldType2["MonetaryQuantity"] = "MonetaryQuantity";
16852
+ (function(FieldType) {
16853
+ FieldType["Text"] = "Text";
16854
+ FieldType["Number"] = "Number";
16855
+ FieldType["Date"] = "Date";
16856
+ FieldType["Name"] = "Name";
16857
+ FieldType["Address"] = "Address";
16858
+ FieldType["Keyword"] = "Keyword";
16859
+ FieldType["Set"] = "Set";
16860
+ FieldType["Boolean"] = "Boolean";
16861
+ FieldType["Table"] = "Table";
16862
+ FieldType["Internal"] = "Internal";
16863
+ FieldType["FieldGroup"] = "FieldGroup";
16864
+ FieldType["MonetaryQuantity"] = "MonetaryQuantity";
16864
16865
  })(FieldType || (FieldType = {}));
16865
16866
  var LogicalOperator;
16866
- (function(LogicalOperator2) {
16867
- LogicalOperator2["AND"] = "AND";
16868
- LogicalOperator2["OR"] = "OR";
16867
+ (function(LogicalOperator) {
16868
+ LogicalOperator["AND"] = "AND";
16869
+ LogicalOperator["OR"] = "OR";
16869
16870
  })(LogicalOperator || (LogicalOperator = {}));
16870
16871
  var RuleType;
16871
- (function(RuleType2) {
16872
- RuleType2["Mandatory"] = "Mandatory";
16873
- RuleType2["PossibleValues"] = "PossibleValues";
16874
- RuleType2["Regex"] = "Regex";
16875
- RuleType2["StartsWith"] = "StartsWith";
16876
- RuleType2["EndsWith"] = "EndsWith";
16877
- RuleType2["FixedLength"] = "FixedLength";
16878
- RuleType2["IsNumeric"] = "IsNumeric";
16879
- RuleType2["IsDate"] = "IsDate";
16880
- RuleType2["IsEmail"] = "IsEmail";
16881
- RuleType2["Contains"] = "Contains";
16882
- RuleType2["Expression"] = "Expression";
16883
- RuleType2["TableExpression"] = "TableExpression";
16884
- RuleType2["IsEmpty"] = "IsEmpty";
16872
+ (function(RuleType) {
16873
+ RuleType["Mandatory"] = "Mandatory";
16874
+ RuleType["PossibleValues"] = "PossibleValues";
16875
+ RuleType["Regex"] = "Regex";
16876
+ RuleType["StartsWith"] = "StartsWith";
16877
+ RuleType["EndsWith"] = "EndsWith";
16878
+ RuleType["FixedLength"] = "FixedLength";
16879
+ RuleType["IsNumeric"] = "IsNumeric";
16880
+ RuleType["IsDate"] = "IsDate";
16881
+ RuleType["IsEmail"] = "IsEmail";
16882
+ RuleType["Contains"] = "Contains";
16883
+ RuleType["Expression"] = "Expression";
16884
+ RuleType["TableExpression"] = "TableExpression";
16885
+ RuleType["IsEmpty"] = "IsEmpty";
16885
16886
  })(RuleType || (RuleType = {}));
16886
16887
  var ActionStatus;
16887
- (function(ActionStatus2) {
16888
- ActionStatus2["Unassigned"] = "Unassigned";
16889
- ActionStatus2["Pending"] = "Pending";
16890
- ActionStatus2["Completed"] = "Completed";
16888
+ (function(ActionStatus) {
16889
+ ActionStatus["Unassigned"] = "Unassigned";
16890
+ ActionStatus["Pending"] = "Pending";
16891
+ ActionStatus["Completed"] = "Completed";
16891
16892
  })(ActionStatus || (ActionStatus = {}));
16892
16893
  var PolicyEvaluationResult;
16893
- (function(PolicyEvaluationResult2) {
16894
- PolicyEvaluationResult2["Allow"] = "Allow";
16895
- PolicyEvaluationResult2["Deny"] = "Deny";
16896
- PolicyEvaluationResult2["SimulatedAllow"] = "SimulatedAllow";
16897
- PolicyEvaluationResult2["SimulatedDeny"] = "SimulatedDeny";
16894
+ (function(PolicyEvaluationResult) {
16895
+ PolicyEvaluationResult["Allow"] = "Allow";
16896
+ PolicyEvaluationResult["Deny"] = "Deny";
16897
+ PolicyEvaluationResult["SimulatedAllow"] = "SimulatedAllow";
16898
+ PolicyEvaluationResult["SimulatedDeny"] = "SimulatedDeny";
16898
16899
  })(PolicyEvaluationResult || (PolicyEvaluationResult = {}));
16899
16900
  var PlatformSettingKey;
16900
- (function(PlatformSettingKey2) {
16901
- PlatformSettingKey2["UserLanguage"] = "UserLanguage.Language";
16902
- PlatformSettingKey2["UserLanguageDate"] = "UserLanguage.Date";
16903
- PlatformSettingKey2["UserTheme"] = "UserTheme.Theme";
16904
- PlatformSettingKey2["UserAccessibility"] = "UserAccessibility.Accessibility";
16905
- PlatformSettingKey2["UserAlert"] = "UserAlert.AlertDuration";
16906
- PlatformSettingKey2["UserCaseAppOrder"] = "UserCase.AppOrderByTenant";
16907
- PlatformSettingKey2["UserCasePinnedInstancesByTenant"] = "UserCase.PinnedInstancesByTenant";
16908
- PlatformSettingKey2["UserCaseInstancesTableFiltersByTenant"] = "UserCase.InstancesTableFiltersByTenant";
16901
+ (function(PlatformSettingKey) {
16902
+ PlatformSettingKey["UserLanguage"] = "UserLanguage.Language";
16903
+ PlatformSettingKey["UserLanguageDate"] = "UserLanguage.Date";
16904
+ PlatformSettingKey["UserTheme"] = "UserTheme.Theme";
16905
+ PlatformSettingKey["UserAccessibility"] = "UserAccessibility.Accessibility";
16906
+ PlatformSettingKey["UserAlert"] = "UserAlert.AlertDuration";
16907
+ PlatformSettingKey["UserCaseAppOrder"] = "UserCase.AppOrderByTenant";
16908
+ PlatformSettingKey["UserCasePinnedInstancesByTenant"] = "UserCase.PinnedInstancesByTenant";
16909
+ PlatformSettingKey["UserCaseInstancesTableFiltersByTenant"] = "UserCase.InstancesTableFiltersByTenant";
16909
16910
  })(PlatformSettingKey || (PlatformSettingKey = {}));
16910
16911
  var PlatformUserType;
16911
- (function(PlatformUserType2) {
16912
- PlatformUserType2["User"] = "user";
16913
- PlatformUserType2["Robot"] = "robot";
16914
- PlatformUserType2["DirectoryUser"] = "directoryUser";
16915
- PlatformUserType2["DirectoryGroup"] = "directoryGroup";
16916
- PlatformUserType2["RobotAccount"] = "robotAccount";
16917
- PlatformUserType2["Application"] = "application";
16912
+ (function(PlatformUserType) {
16913
+ PlatformUserType["User"] = "user";
16914
+ PlatformUserType["Robot"] = "robot";
16915
+ PlatformUserType["DirectoryUser"] = "directoryUser";
16916
+ PlatformUserType["DirectoryGroup"] = "directoryGroup";
16917
+ PlatformUserType["RobotAccount"] = "robotAccount";
16918
+ PlatformUserType["Application"] = "application";
16918
16919
  })(PlatformUserType || (PlatformUserType = {}));
16919
16920
  var PlatformUserCategory;
16920
- (function(PlatformUserCategory2) {
16921
- PlatformUserCategory2["Local"] = "local";
16922
- PlatformUserCategory2["LinkedLocal"] = "linkedLocal";
16923
- PlatformUserCategory2["Directory"] = "directory";
16921
+ (function(PlatformUserCategory) {
16922
+ PlatformUserCategory["Local"] = "local";
16923
+ PlatformUserCategory["LinkedLocal"] = "linkedLocal";
16924
+ PlatformUserCategory["Directory"] = "directory";
16924
16925
  })(PlatformUserCategory || (PlatformUserCategory = {}));
16925
16926
  var PlatformUserSortField;
16926
- (function(PlatformUserSortField2) {
16927
- PlatformUserSortField2["Id"] = "Id";
16928
- PlatformUserSortField2["UserName"] = "UserName";
16929
- PlatformUserSortField2["Email"] = "Email";
16930
- PlatformUserSortField2["EmailConfirmed"] = "EmailConfirmed";
16931
- PlatformUserSortField2["Name"] = "Name";
16932
- PlatformUserSortField2["Surname"] = "Surname";
16933
- PlatformUserSortField2["DisplayName"] = "DisplayName";
16934
- PlatformUserSortField2["CreatedTime"] = "CreationTime";
16935
- PlatformUserSortField2["LastModifiedTime"] = "LastModificationTime";
16936
- PlatformUserSortField2["LastLoginTime"] = "LastLoginTime";
16937
- PlatformUserSortField2["IsActive"] = "IsActive";
16938
- PlatformUserSortField2["Type"] = "Type";
16939
- PlatformUserSortField2["Category"] = "Category";
16940
- PlatformUserSortField2["InvitationAccepted"] = "InvitationAccepted";
16927
+ (function(PlatformUserSortField) {
16928
+ PlatformUserSortField["Id"] = "Id";
16929
+ PlatformUserSortField["UserName"] = "UserName";
16930
+ PlatformUserSortField["Email"] = "Email";
16931
+ PlatformUserSortField["EmailConfirmed"] = "EmailConfirmed";
16932
+ PlatformUserSortField["Name"] = "Name";
16933
+ PlatformUserSortField["Surname"] = "Surname";
16934
+ PlatformUserSortField["DisplayName"] = "DisplayName";
16935
+ PlatformUserSortField["CreatedTime"] = "CreationTime";
16936
+ PlatformUserSortField["LastModifiedTime"] = "LastModificationTime";
16937
+ PlatformUserSortField["LastLoginTime"] = "LastLoginTime";
16938
+ PlatformUserSortField["IsActive"] = "IsActive";
16939
+ PlatformUserSortField["Type"] = "Type";
16940
+ PlatformUserSortField["Category"] = "Category";
16941
+ PlatformUserSortField["InvitationAccepted"] = "InvitationAccepted";
16941
16942
  })(PlatformUserSortField || (PlatformUserSortField = {}));
16942
16943
  var PlatformUserSortOrder;
16943
- (function(PlatformUserSortOrder2) {
16944
- PlatformUserSortOrder2["Ascending"] = "asc";
16945
- PlatformUserSortOrder2["Descending"] = "desc";
16944
+ (function(PlatformUserSortOrder) {
16945
+ PlatformUserSortOrder["Ascending"] = "asc";
16946
+ PlatformUserSortOrder["Descending"] = "desc";
16946
16947
  })(PlatformUserSortOrder || (PlatformUserSortOrder = {}));
16947
16948
  var PlatformRoleType;
16948
- (function(PlatformRoleType2) {
16949
- PlatformRoleType2["BuiltIn"] = "BUILTIN";
16950
- PlatformRoleType2["Platform"] = "PLATFORM";
16951
- PlatformRoleType2["Custom"] = "CUSTOM";
16949
+ (function(PlatformRoleType) {
16950
+ PlatformRoleType["BuiltIn"] = "BUILTIN";
16951
+ PlatformRoleType["Platform"] = "PLATFORM";
16952
+ PlatformRoleType["Custom"] = "CUSTOM";
16952
16953
  })(PlatformRoleType || (PlatformRoleType = {}));
16953
16954
  var PlatformRoleScopeType;
16954
- (function(PlatformRoleScopeType2) {
16955
- PlatformRoleScopeType2["Organization"] = "ORGANIZATION";
16956
- PlatformRoleScopeType2["Tenant"] = "TENANT";
16957
- PlatformRoleScopeType2["Project"] = "PROJECT";
16958
- PlatformRoleScopeType2["Process"] = "PROCESS";
16959
- PlatformRoleScopeType2["App"] = "APP";
16960
- PlatformRoleScopeType2["Mixed"] = "MIXED";
16955
+ (function(PlatformRoleScopeType) {
16956
+ PlatformRoleScopeType["Organization"] = "ORGANIZATION";
16957
+ PlatformRoleScopeType["Tenant"] = "TENANT";
16958
+ PlatformRoleScopeType["Project"] = "PROJECT";
16959
+ PlatformRoleScopeType["Process"] = "PROCESS";
16960
+ PlatformRoleScopeType["App"] = "APP";
16961
+ PlatformRoleScopeType["Mixed"] = "MIXED";
16961
16962
  })(PlatformRoleScopeType || (PlatformRoleScopeType = {}));
16962
16963
  var PlatformActionScopeType;
16963
- (function(PlatformActionScopeType2) {
16964
- PlatformActionScopeType2["Any"] = "ANY";
16965
- PlatformActionScopeType2["None"] = "NONE";
16966
- PlatformActionScopeType2["Organization"] = "ORGANIZATION";
16967
- PlatformActionScopeType2["Tenant"] = "TENANT";
16968
- PlatformActionScopeType2["Folder"] = "FOLDER";
16969
- PlatformActionScopeType2["Project"] = "PROJECT";
16970
- PlatformActionScopeType2["Process"] = "PROCESS";
16964
+ (function(PlatformActionScopeType) {
16965
+ PlatformActionScopeType["Any"] = "ANY";
16966
+ PlatformActionScopeType["None"] = "NONE";
16967
+ PlatformActionScopeType["Organization"] = "ORGANIZATION";
16968
+ PlatformActionScopeType["Tenant"] = "TENANT";
16969
+ PlatformActionScopeType["Folder"] = "FOLDER";
16970
+ PlatformActionScopeType["Project"] = "PROJECT";
16971
+ PlatformActionScopeType["Process"] = "PROCESS";
16971
16972
  })(PlatformActionScopeType || (PlatformActionScopeType = {}));
16972
16973
  var PlatformPrincipalType;
16973
- (function(PlatformPrincipalType2) {
16974
- PlatformPrincipalType2["User"] = "User";
16975
- PlatformPrincipalType2["Group"] = "Group";
16976
- PlatformPrincipalType2["ExternalApplication"] = "ExternalApplication";
16977
- PlatformPrincipalType2["Robot"] = "Robot";
16974
+ (function(PlatformPrincipalType) {
16975
+ PlatformPrincipalType["User"] = "User";
16976
+ PlatformPrincipalType["Group"] = "Group";
16977
+ PlatformPrincipalType["ExternalApplication"] = "ExternalApplication";
16978
+ PlatformPrincipalType["Robot"] = "Robot";
16978
16979
  })(PlatformPrincipalType || (PlatformPrincipalType = {}));
16979
16980
  var PlatformRoleSortField;
16980
- (function(PlatformRoleSortField2) {
16981
- PlatformRoleSortField2["Id"] = "Id";
16982
- PlatformRoleSortField2["Name"] = "OriginalRoleName";
16983
- PlatformRoleSortField2["UniqueName"] = "UniqueName";
16984
- PlatformRoleSortField2["Description"] = "Description";
16985
- PlatformRoleSortField2["Type"] = "Type";
16986
- PlatformRoleSortField2["ScopeType"] = "ScopeType";
16987
- PlatformRoleSortField2["OrganizationId"] = "OrganizationId";
16988
- PlatformRoleSortField2["TenantId"] = "TenantId";
16989
- PlatformRoleSortField2["OwnerService"] = "OwnerService";
16990
- PlatformRoleSortField2["OwnerServiceId"] = "OwnerServiceId";
16991
- PlatformRoleSortField2["CreatedBy"] = "CreatedBy";
16992
- PlatformRoleSortField2["CreatedTime"] = "CreatedOn";
16993
- PlatformRoleSortField2["UpdatedBy"] = "UpdatedBy";
16994
- PlatformRoleSortField2["UpdatedTime"] = "UpdatedOn";
16981
+ (function(PlatformRoleSortField) {
16982
+ PlatformRoleSortField["Id"] = "Id";
16983
+ PlatformRoleSortField["Name"] = "OriginalRoleName";
16984
+ PlatformRoleSortField["UniqueName"] = "UniqueName";
16985
+ PlatformRoleSortField["Description"] = "Description";
16986
+ PlatformRoleSortField["Type"] = "Type";
16987
+ PlatformRoleSortField["ScopeType"] = "ScopeType";
16988
+ PlatformRoleSortField["OrganizationId"] = "OrganizationId";
16989
+ PlatformRoleSortField["TenantId"] = "TenantId";
16990
+ PlatformRoleSortField["OwnerService"] = "OwnerService";
16991
+ PlatformRoleSortField["OwnerServiceId"] = "OwnerServiceId";
16992
+ PlatformRoleSortField["CreatedBy"] = "CreatedBy";
16993
+ PlatformRoleSortField["CreatedTime"] = "CreatedOn";
16994
+ PlatformRoleSortField["UpdatedBy"] = "UpdatedBy";
16995
+ PlatformRoleSortField["UpdatedTime"] = "UpdatedOn";
16995
16996
  })(PlatformRoleSortField || (PlatformRoleSortField = {}));
16996
16997
  var PlatformRoleSortOrder;
16997
- (function(PlatformRoleSortOrder2) {
16998
- PlatformRoleSortOrder2["Ascending"] = "Asc";
16999
- PlatformRoleSortOrder2["Descending"] = "Desc";
16998
+ (function(PlatformRoleSortOrder) {
16999
+ PlatformRoleSortOrder["Ascending"] = "Asc";
17000
+ PlatformRoleSortOrder["Descending"] = "Desc";
17000
17001
  })(PlatformRoleSortOrder || (PlatformRoleSortOrder = {}));
17001
17002
  var PlatformGroupType;
17002
- (function(PlatformGroupType2) {
17003
- PlatformGroupType2["BuiltIn"] = "builtIn";
17004
- PlatformGroupType2["Custom"] = "custom";
17003
+ (function(PlatformGroupType) {
17004
+ PlatformGroupType["BuiltIn"] = "builtIn";
17005
+ PlatformGroupType["Custom"] = "custom";
17005
17006
  })(PlatformGroupType || (PlatformGroupType = {}));
17006
17007
  var LifeCycleStage;
17007
- (function(LifeCycleStage2) {
17008
- LifeCycleStage2["PREVIEW"] = "PREVIEW";
17009
- LifeCycleStage2["GA"] = "GA";
17010
- LifeCycleStage2["DEPRECATED"] = "DEPRECATED";
17011
- LifeCycleStage2["CUSTOM"] = "CUSTOM";
17008
+ (function(LifeCycleStage) {
17009
+ LifeCycleStage["PREVIEW"] = "PREVIEW";
17010
+ LifeCycleStage["GA"] = "GA";
17011
+ LifeCycleStage["DEPRECATED"] = "DEPRECATED";
17012
+ LifeCycleStage["CUSTOM"] = "CUSTOM";
17012
17013
  })(LifeCycleStage || (LifeCycleStage = {}));
17013
17014
  var SpanStatus;
17014
- (function(SpanStatus2) {
17015
- SpanStatus2["Unset"] = "Unset";
17016
- SpanStatus2["Ok"] = "Ok";
17017
- SpanStatus2["Error"] = "Error";
17018
- SpanStatus2["Running"] = "Running";
17019
- SpanStatus2["Restricted"] = "Restricted";
17020
- SpanStatus2["Cancelled"] = "Cancelled";
17015
+ (function(SpanStatus) {
17016
+ SpanStatus["Unset"] = "Unset";
17017
+ SpanStatus["Ok"] = "Ok";
17018
+ SpanStatus["Error"] = "Error";
17019
+ SpanStatus["Running"] = "Running";
17020
+ SpanStatus["Restricted"] = "Restricted";
17021
+ SpanStatus["Cancelled"] = "Cancelled";
17021
17022
  })(SpanStatus || (SpanStatus = {}));
17022
17023
  var SpanSource;
17023
- (function(SpanSource2) {
17024
- SpanSource2["Testing"] = "Testing";
17025
- SpanSource2["Agents"] = "Agents";
17026
- SpanSource2["ProcessOrchestration"] = "ProcessOrchestration";
17027
- SpanSource2["ApiWorkflows"] = "ApiWorkflows";
17028
- SpanSource2["Robots"] = "Robots";
17029
- SpanSource2["ConversationalAgentsService"] = "ConversationalAgentsService";
17030
- SpanSource2["IntegrationServiceTrigger"] = "IntegrationServiceTrigger";
17031
- SpanSource2["Playground"] = "Playground";
17032
- SpanSource2["Governance"] = "Governance";
17033
- SpanSource2["IXPUnstructuredAndComplexDocuments"] = "IXPUnstructuredAndComplexDocuments";
17034
- SpanSource2["CodedAgents"] = "CodedAgents";
17035
- SpanSource2["IXPCommunicationsMining"] = "IXPCommunicationsMining";
17036
- SpanSource2["EnterpriseContextService"] = "EnterpriseContextService";
17037
- SpanSource2["MCP"] = "MCP";
17038
- SpanSource2["A2A"] = "A2A";
17039
- SpanSource2["Serverless"] = "Serverless";
17024
+ (function(SpanSource) {
17025
+ SpanSource["Testing"] = "Testing";
17026
+ SpanSource["Agents"] = "Agents";
17027
+ SpanSource["ProcessOrchestration"] = "ProcessOrchestration";
17028
+ SpanSource["ApiWorkflows"] = "ApiWorkflows";
17029
+ SpanSource["Robots"] = "Robots";
17030
+ SpanSource["ConversationalAgentsService"] = "ConversationalAgentsService";
17031
+ SpanSource["IntegrationServiceTrigger"] = "IntegrationServiceTrigger";
17032
+ SpanSource["Playground"] = "Playground";
17033
+ SpanSource["Governance"] = "Governance";
17034
+ SpanSource["IXPUnstructuredAndComplexDocuments"] = "IXPUnstructuredAndComplexDocuments";
17035
+ SpanSource["CodedAgents"] = "CodedAgents";
17036
+ SpanSource["IXPCommunicationsMining"] = "IXPCommunicationsMining";
17037
+ SpanSource["EnterpriseContextService"] = "EnterpriseContextService";
17038
+ SpanSource["MCP"] = "MCP";
17039
+ SpanSource["A2A"] = "A2A";
17040
+ SpanSource["Serverless"] = "Serverless";
17040
17041
  })(SpanSource || (SpanSource = {}));
17041
17042
  var SpanVerbosityLevel;
17042
- (function(SpanVerbosityLevel2) {
17043
- SpanVerbosityLevel2["Verbose"] = "Verbose";
17044
- SpanVerbosityLevel2["Trace"] = "Trace";
17045
- SpanVerbosityLevel2["Information"] = "Information";
17046
- SpanVerbosityLevel2["Warning"] = "Warning";
17047
- SpanVerbosityLevel2["Error"] = "Error";
17048
- SpanVerbosityLevel2["Critical"] = "Critical";
17049
- SpanVerbosityLevel2["Off"] = "Off";
17043
+ (function(SpanVerbosityLevel) {
17044
+ SpanVerbosityLevel["Verbose"] = "Verbose";
17045
+ SpanVerbosityLevel["Trace"] = "Trace";
17046
+ SpanVerbosityLevel["Information"] = "Information";
17047
+ SpanVerbosityLevel["Warning"] = "Warning";
17048
+ SpanVerbosityLevel["Error"] = "Error";
17049
+ SpanVerbosityLevel["Critical"] = "Critical";
17050
+ SpanVerbosityLevel["Off"] = "Off";
17050
17051
  })(SpanVerbosityLevel || (SpanVerbosityLevel = {}));
17051
17052
  var SpanExecutionType;
17052
- (function(SpanExecutionType2) {
17053
- SpanExecutionType2["Debug"] = "Debug";
17054
- SpanExecutionType2["Runtime"] = "Runtime";
17053
+ (function(SpanExecutionType) {
17054
+ SpanExecutionType["Debug"] = "Debug";
17055
+ SpanExecutionType["Runtime"] = "Runtime";
17055
17056
  })(SpanExecutionType || (SpanExecutionType = {}));
17056
17057
  var SpanPermissionStatus;
17057
- (function(SpanPermissionStatus2) {
17058
- SpanPermissionStatus2["Allow"] = "Allow";
17059
- SpanPermissionStatus2["PartialBlock"] = "PartialBlock";
17060
- SpanPermissionStatus2["Block"] = "Block";
17058
+ (function(SpanPermissionStatus) {
17059
+ SpanPermissionStatus["Allow"] = "Allow";
17060
+ SpanPermissionStatus["PartialBlock"] = "PartialBlock";
17061
+ SpanPermissionStatus["Block"] = "Block";
17061
17062
  })(SpanPermissionStatus || (SpanPermissionStatus = {}));
17062
17063
  var SpanAttachmentProvider;
17063
- (function(SpanAttachmentProvider2) {
17064
- SpanAttachmentProvider2["Orchestrator"] = "Orchestrator";
17065
- SpanAttachmentProvider2["LLMOps"] = "LLMOps";
17064
+ (function(SpanAttachmentProvider) {
17065
+ SpanAttachmentProvider["Orchestrator"] = "Orchestrator";
17066
+ SpanAttachmentProvider["LLMOps"] = "LLMOps";
17066
17067
  })(SpanAttachmentProvider || (SpanAttachmentProvider = {}));
17067
17068
  var SpanAttachmentDirection;
17068
- (function(SpanAttachmentDirection2) {
17069
- SpanAttachmentDirection2["None"] = "None";
17070
- SpanAttachmentDirection2["In"] = "In";
17071
- SpanAttachmentDirection2["Out"] = "Out";
17069
+ (function(SpanAttachmentDirection) {
17070
+ SpanAttachmentDirection["None"] = "None";
17071
+ SpanAttachmentDirection["In"] = "In";
17072
+ SpanAttachmentDirection["Out"] = "Out";
17072
17073
  })(SpanAttachmentDirection || (SpanAttachmentDirection = {}));
17073
17074
  var AgentGovernanceMode;
17074
- (function(AgentGovernanceMode2) {
17075
- AgentGovernanceMode2["Audit"] = "AUDIT";
17076
- AgentGovernanceMode2["Enforce"] = "ENFORCE";
17077
- AgentGovernanceMode2["Unknown"] = "Unknown";
17075
+ (function(AgentGovernanceMode) {
17076
+ AgentGovernanceMode["Audit"] = "AUDIT";
17077
+ AgentGovernanceMode["Enforce"] = "ENFORCE";
17078
+ AgentGovernanceMode["Unknown"] = "Unknown";
17078
17079
  })(AgentGovernanceMode || (AgentGovernanceMode = {}));
17079
17080
  var AgentGovernanceVerdict;
17080
- (function(AgentGovernanceVerdict2) {
17081
- AgentGovernanceVerdict2["Allow"] = "ALLOW";
17082
- AgentGovernanceVerdict2["Deny"] = "DENY";
17083
- AgentGovernanceVerdict2["Unknown"] = "Unknown";
17081
+ (function(AgentGovernanceVerdict) {
17082
+ AgentGovernanceVerdict["Allow"] = "ALLOW";
17083
+ AgentGovernanceVerdict["Deny"] = "DENY";
17084
+ AgentGovernanceVerdict["Unknown"] = "Unknown";
17084
17085
  })(AgentGovernanceVerdict || (AgentGovernanceVerdict = {}));
17085
17086
  var AgentGovernanceSection;
17086
- (function(AgentGovernanceSection2) {
17087
- AgentGovernanceSection2["Totals"] = "totals";
17088
- AgentGovernanceSection2["Hook"] = "hook";
17089
- AgentGovernanceSection2["Agent"] = "agent";
17090
- AgentGovernanceSection2["Policy"] = "policy";
17091
- AgentGovernanceSection2["Pack"] = "pack";
17092
- AgentGovernanceSection2["Action"] = "action";
17093
- AgentGovernanceSection2["Mode"] = "mode";
17087
+ (function(AgentGovernanceSection) {
17088
+ AgentGovernanceSection["Totals"] = "totals";
17089
+ AgentGovernanceSection["Hook"] = "hook";
17090
+ AgentGovernanceSection["Agent"] = "agent";
17091
+ AgentGovernanceSection["Policy"] = "policy";
17092
+ AgentGovernanceSection["Pack"] = "pack";
17093
+ AgentGovernanceSection["Action"] = "action";
17094
+ AgentGovernanceSection["Mode"] = "mode";
17094
17095
  })(AgentGovernanceSection || (AgentGovernanceSection = {}));
17095
17096
  var HOST_KEY = Symbol.for("uipath.host.v1");
17096
17097
 
@@ -17264,78 +17265,78 @@ var sdkClient2 = getOrCreateClient(CLOUD_ROLE_NAME2);
17264
17265
  var track2 = createTrack(sdkClient2);
17265
17266
  createTrackEvent(sdkClient2);
17266
17267
  var TaskUserType2;
17267
- (function(TaskUserType3) {
17268
- TaskUserType3["User"] = "User";
17269
- TaskUserType3["Robot"] = "Robot";
17270
- TaskUserType3["DirectoryUser"] = "DirectoryUser";
17271
- TaskUserType3["DirectoryGroup"] = "DirectoryGroup";
17272
- TaskUserType3["DirectoryRobot"] = "DirectoryRobot";
17273
- TaskUserType3["DirectoryExternalApplication"] = "DirectoryExternalApplication";
17268
+ (function(TaskUserType) {
17269
+ TaskUserType["User"] = "User";
17270
+ TaskUserType["Robot"] = "Robot";
17271
+ TaskUserType["DirectoryUser"] = "DirectoryUser";
17272
+ TaskUserType["DirectoryGroup"] = "DirectoryGroup";
17273
+ TaskUserType["DirectoryRobot"] = "DirectoryRobot";
17274
+ TaskUserType["DirectoryExternalApplication"] = "DirectoryExternalApplication";
17274
17275
  })(TaskUserType2 || (TaskUserType2 = {}));
17275
17276
  var TaskType2;
17276
- (function(TaskType3) {
17277
- TaskType3["Form"] = "FormTask";
17278
- TaskType3["External"] = "ExternalTask";
17279
- TaskType3["App"] = "AppTask";
17280
- TaskType3["DocumentValidation"] = "DocumentValidationTask";
17281
- TaskType3["DocumentClassification"] = "DocumentClassificationTask";
17282
- TaskType3["DataLabeling"] = "DataLabelingTask";
17283
- TaskType3["QuickForm"] = "QuickFormTask";
17277
+ (function(TaskType) {
17278
+ TaskType["Form"] = "FormTask";
17279
+ TaskType["External"] = "ExternalTask";
17280
+ TaskType["App"] = "AppTask";
17281
+ TaskType["DocumentValidation"] = "DocumentValidationTask";
17282
+ TaskType["DocumentClassification"] = "DocumentClassificationTask";
17283
+ TaskType["DataLabeling"] = "DataLabelingTask";
17284
+ TaskType["QuickForm"] = "QuickFormTask";
17284
17285
  })(TaskType2 || (TaskType2 = {}));
17285
17286
  var TaskPriority2;
17286
- (function(TaskPriority3) {
17287
- TaskPriority3["Low"] = "Low";
17288
- TaskPriority3["Medium"] = "Medium";
17289
- TaskPriority3["High"] = "High";
17290
- TaskPriority3["Critical"] = "Critical";
17287
+ (function(TaskPriority) {
17288
+ TaskPriority["Low"] = "Low";
17289
+ TaskPriority["Medium"] = "Medium";
17290
+ TaskPriority["High"] = "High";
17291
+ TaskPriority["Critical"] = "Critical";
17291
17292
  })(TaskPriority2 || (TaskPriority2 = {}));
17292
17293
  var TaskStatus2;
17293
- (function(TaskStatus3) {
17294
- TaskStatus3["Unassigned"] = "Unassigned";
17295
- TaskStatus3["Pending"] = "Pending";
17296
- TaskStatus3["Completed"] = "Completed";
17294
+ (function(TaskStatus) {
17295
+ TaskStatus["Unassigned"] = "Unassigned";
17296
+ TaskStatus["Pending"] = "Pending";
17297
+ TaskStatus["Completed"] = "Completed";
17297
17298
  })(TaskStatus2 || (TaskStatus2 = {}));
17298
17299
  var TaskSlaCriteria2;
17299
- (function(TaskSlaCriteria3) {
17300
- TaskSlaCriteria3["TaskCreated"] = "TaskCreated";
17301
- TaskSlaCriteria3["TaskAssigned"] = "TaskAssigned";
17302
- TaskSlaCriteria3["TaskCompleted"] = "TaskCompleted";
17300
+ (function(TaskSlaCriteria) {
17301
+ TaskSlaCriteria["TaskCreated"] = "TaskCreated";
17302
+ TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
17303
+ TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
17303
17304
  })(TaskSlaCriteria2 || (TaskSlaCriteria2 = {}));
17304
17305
  var TaskSlaStatus2;
17305
- (function(TaskSlaStatus3) {
17306
- TaskSlaStatus3["OverdueLater"] = "OverdueLater";
17307
- TaskSlaStatus3["OverdueSoon"] = "OverdueSoon";
17308
- TaskSlaStatus3["Overdue"] = "Overdue";
17309
- TaskSlaStatus3["CompletedInTime"] = "CompletedInTime";
17306
+ (function(TaskSlaStatus) {
17307
+ TaskSlaStatus["OverdueLater"] = "OverdueLater";
17308
+ TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
17309
+ TaskSlaStatus["Overdue"] = "Overdue";
17310
+ TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
17310
17311
  })(TaskSlaStatus2 || (TaskSlaStatus2 = {}));
17311
17312
  var TaskSourceName2;
17312
- (function(TaskSourceName3) {
17313
- TaskSourceName3["Agent"] = "Agent";
17314
- TaskSourceName3["Workflow"] = "Workflow";
17315
- TaskSourceName3["Maestro"] = "Maestro";
17316
- TaskSourceName3["Default"] = "Default";
17313
+ (function(TaskSourceName) {
17314
+ TaskSourceName["Agent"] = "Agent";
17315
+ TaskSourceName["Workflow"] = "Workflow";
17316
+ TaskSourceName["Maestro"] = "Maestro";
17317
+ TaskSourceName["Default"] = "Default";
17317
17318
  })(TaskSourceName2 || (TaskSourceName2 = {}));
17318
17319
  var TaskActivityType2;
17319
- (function(TaskActivityType3) {
17320
- TaskActivityType3["Created"] = "Created";
17321
- TaskActivityType3["Assigned"] = "Assigned";
17322
- TaskActivityType3["Reassigned"] = "Reassigned";
17323
- TaskActivityType3["Unassigned"] = "Unassigned";
17324
- TaskActivityType3["Saved"] = "Saved";
17325
- TaskActivityType3["Forwarded"] = "Forwarded";
17326
- TaskActivityType3["Completed"] = "Completed";
17327
- TaskActivityType3["Commented"] = "Commented";
17328
- TaskActivityType3["Deleted"] = "Deleted";
17329
- TaskActivityType3["BulkSaved"] = "BulkSaved";
17330
- TaskActivityType3["BulkCompleted"] = "BulkCompleted";
17331
- TaskActivityType3["FirstOpened"] = "FirstOpened";
17320
+ (function(TaskActivityType) {
17321
+ TaskActivityType["Created"] = "Created";
17322
+ TaskActivityType["Assigned"] = "Assigned";
17323
+ TaskActivityType["Reassigned"] = "Reassigned";
17324
+ TaskActivityType["Unassigned"] = "Unassigned";
17325
+ TaskActivityType["Saved"] = "Saved";
17326
+ TaskActivityType["Forwarded"] = "Forwarded";
17327
+ TaskActivityType["Completed"] = "Completed";
17328
+ TaskActivityType["Commented"] = "Commented";
17329
+ TaskActivityType["Deleted"] = "Deleted";
17330
+ TaskActivityType["BulkSaved"] = "BulkSaved";
17331
+ TaskActivityType["BulkCompleted"] = "BulkCompleted";
17332
+ TaskActivityType["FirstOpened"] = "FirstOpened";
17332
17333
  })(TaskActivityType2 || (TaskActivityType2 = {}));
17333
17334
  var TaskAssignmentCriteria2;
17334
- (function(TaskAssignmentCriteria3) {
17335
- TaskAssignmentCriteria3["SingleUser"] = "SingleUser";
17336
- TaskAssignmentCriteria3["Workload"] = "Workload";
17337
- TaskAssignmentCriteria3["AllUsers"] = "AllUsers";
17338
- TaskAssignmentCriteria3["RoundRobin"] = "RoundRobin";
17335
+ (function(TaskAssignmentCriteria) {
17336
+ TaskAssignmentCriteria["SingleUser"] = "SingleUser";
17337
+ TaskAssignmentCriteria["Workload"] = "Workload";
17338
+ TaskAssignmentCriteria["AllUsers"] = "AllUsers";
17339
+ TaskAssignmentCriteria["RoundRobin"] = "RoundRobin";
17339
17340
  })(TaskAssignmentCriteria2 || (TaskAssignmentCriteria2 = {}));
17340
17341
  var TaskStatusMap2 = {
17341
17342
  0: TaskStatus2.Unassigned,
@@ -17397,9 +17398,9 @@ var TASK_TYPE_ENDPOINTS2 = {
17397
17398
  [TaskType2.QuickForm]: TASK_ENDPOINTS2.GET_GENERIC_TASK_BY_ID
17398
17399
  };
17399
17400
  var ActionCenterEventNames2;
17400
- (function(ActionCenterEventNames3) {
17401
- ActionCenterEventNames3["TOKENREFRESHED"] = "AC.tokenRefreshed";
17402
- ActionCenterEventNames3["REFRESHTOKEN"] = "AC.refreshToken";
17401
+ (function(ActionCenterEventNames) {
17402
+ ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
17403
+ ActionCenterEventNames["REFRESHTOKEN"] = "AC.refreshToken";
17403
17404
  })(ActionCenterEventNames2 || (ActionCenterEventNames2 = {}));
17404
17405
  function createTaskMethods2(taskData, service) {
17405
17406
  return {
@@ -17591,9 +17592,9 @@ function processODataArrayResponse2(oDataResponse, successData) {
17591
17592
  };
17592
17593
  }
17593
17594
  var PaginationType2;
17594
- (function(PaginationType3) {
17595
- PaginationType3["OFFSET"] = "offset";
17596
- PaginationType3["TOKEN"] = "token";
17595
+ (function(PaginationType) {
17596
+ PaginationType["OFFSET"] = "offset";
17597
+ PaginationType["TOKEN"] = "token";
17597
17598
  })(PaginationType2 || (PaginationType2 = {}));
17598
17599
  function transformData2(data, fieldMapping) {
17599
17600
  if (data == null) {
@@ -17736,16 +17737,16 @@ function encodeBase642(str) {
17736
17737
  return Buffer.from(data).toString("base64");
17737
17738
  }
17738
17739
  }
17739
- function decodeBase642(base642) {
17740
+ function decodeBase642(base64) {
17740
17741
  let bytes;
17741
17742
  if (isBrowser2) {
17742
- const binaryString = atob(base642);
17743
+ const binaryString = atob(base64);
17743
17744
  bytes = new Uint8Array(binaryString.length);
17744
17745
  for (let i = 0;i < binaryString.length; i++) {
17745
17746
  bytes[i] = binaryString.charCodeAt(i);
17746
17747
  }
17747
17748
  } else {
17748
- bytes = new Uint8Array(Buffer.from(base642, "base64"));
17749
+ bytes = new Uint8Array(Buffer.from(base64, "base64"));
17749
17750
  }
17750
17751
  const decoder = new TextDecoder;
17751
17752
  return decoder.decode(bytes);
@@ -17880,51 +17881,51 @@ class PaginationHelpers2 {
17880
17881
  totalCount
17881
17882
  };
17882
17883
  }
17883
- static async getAll(config2, options) {
17884
+ static async getAll(config, options) {
17884
17885
  const optionsWithDefaults = options || {};
17885
17886
  const { folderId, pageSize, cursor, jumpToPage, ...restOptions } = optionsWithDefaults;
17886
17887
  const isPaginationRequested = PaginationHelpers2.hasPaginationParameters(options || {});
17887
17888
  let processedOptions = restOptions;
17888
- if (config2.processParametersFn) {
17889
- processedOptions = config2.processParametersFn(restOptions, folderId);
17889
+ if (config.processParametersFn) {
17890
+ processedOptions = config.processParametersFn(restOptions, folderId);
17890
17891
  }
17891
- const excludeKeys = config2.excludeFromPrefix || [];
17892
+ const excludeKeys = config.excludeFromPrefix || [];
17892
17893
  const keysToPrefix = Object.keys(processedOptions).filter((k) => !excludeKeys.includes(k));
17893
17894
  const prefixedOptions = addPrefixToKeys2(processedOptions, ODATA_PREFIX2, keysToPrefix);
17894
17895
  const paginationOptions = {
17895
17896
  paginationType: PaginationType2.OFFSET,
17896
17897
  itemsField: DEFAULT_ITEMS_FIELD2,
17897
17898
  totalCountField: DEFAULT_TOTAL_COUNT_FIELD2,
17898
- ...config2.pagination
17899
+ ...config.pagination
17899
17900
  };
17900
17901
  if (isPaginationRequested) {
17901
17902
  return PaginationHelpers2.getAllPaginated({
17902
- serviceAccess: config2.serviceAccess,
17903
- getEndpoint: config2.getEndpoint,
17903
+ serviceAccess: config.serviceAccess,
17904
+ getEndpoint: config.getEndpoint,
17904
17905
  folderId,
17905
- headers: config2.headers,
17906
+ headers: config.headers,
17906
17907
  paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
17907
17908
  additionalParams: prefixedOptions,
17908
- queryParams: config2.queryParams,
17909
- transformFn: config2.transformFn,
17910
- method: config2.method,
17909
+ queryParams: config.queryParams,
17910
+ transformFn: config.transformFn,
17911
+ method: config.method,
17911
17912
  options: {
17912
17913
  ...paginationOptions,
17913
- paginationParams: config2.pagination?.paginationParams
17914
+ paginationParams: config.pagination?.paginationParams
17914
17915
  }
17915
17916
  });
17916
17917
  }
17917
- const byFolderEndpoint = config2.getByFolderEndpoint || config2.getEndpoint(folderId);
17918
+ const byFolderEndpoint = config.getByFolderEndpoint || config.getEndpoint(folderId);
17918
17919
  return PaginationHelpers2.getAllNonPaginated({
17919
- serviceAccess: config2.serviceAccess,
17920
- getAllEndpoint: config2.getEndpoint(),
17920
+ serviceAccess: config.serviceAccess,
17921
+ getAllEndpoint: config.getEndpoint(),
17921
17922
  getByFolderEndpoint: byFolderEndpoint,
17922
17923
  folderId,
17923
- headers: config2.headers,
17924
+ headers: config.headers,
17924
17925
  additionalParams: prefixedOptions,
17925
- queryParams: config2.queryParams,
17926
- transformFn: config2.transformFn,
17927
- method: config2.method,
17926
+ queryParams: config.queryParams,
17927
+ transformFn: config.transformFn,
17928
+ method: config.method,
17928
17929
  options: {
17929
17930
  itemsField: paginationOptions.itemsField,
17930
17931
  totalCountField: paginationOptions.totalCountField
@@ -18168,10 +18169,10 @@ function parseRetryAfter2(value, now = Date.now()) {
18168
18169
  const seconds = Number(trimmed);
18169
18170
  if (Number.isFinite(seconds))
18170
18171
  return Math.max(0, seconds * 1000);
18171
- const date2 = Date.parse(trimmed);
18172
- if (Number.isNaN(date2))
18172
+ const date = Date.parse(trimmed);
18173
+ if (Number.isNaN(date))
18173
18174
  return;
18174
- return Math.max(0, date2 - now);
18175
+ return Math.max(0, date - now);
18175
18176
  }
18176
18177
  function wait2(durationMs) {
18177
18178
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, durationMs)));
@@ -18253,8 +18254,8 @@ async function fetchWithRetry2(url, init, options) {
18253
18254
  }
18254
18255
 
18255
18256
  class ApiClient2 {
18256
- constructor(config2, executionContext, tokenManager, clientConfig = {}) {
18257
- this.config = config2;
18257
+ constructor(config, executionContext, tokenManager, clientConfig = {}) {
18258
+ this.config = config;
18258
18259
  this.executionContext = executionContext;
18259
18260
  this.clientConfig = clientConfig;
18260
18261
  this.tokenManager = tokenManager;
@@ -18308,8 +18309,8 @@ class ApiClient2 {
18308
18309
  }
18309
18310
  const acceptHeader = headers["Accept"] || headers["accept"];
18310
18311
  if (acceptHeader === CONTENT_TYPES2.XML) {
18311
- const text2 = await response.text();
18312
- return text2;
18312
+ const text = await response.text();
18313
+ return text;
18313
18314
  }
18314
18315
  const text = await response.text();
18315
18316
  if (!text) {
@@ -18409,21 +18410,21 @@ class PaginationManager2 {
18409
18410
  }
18410
18411
  }
18411
18412
  var UiPathMetaTags2;
18412
- (function(UiPathMetaTags3) {
18413
- UiPathMetaTags3["CLIENT_ID"] = "uipath:client-id";
18414
- UiPathMetaTags3["SCOPE"] = "uipath:scope";
18415
- UiPathMetaTags3["ORG_NAME"] = "uipath:org-name";
18416
- UiPathMetaTags3["ORG_ID"] = "uipath:org-id";
18417
- UiPathMetaTags3["TENANT_NAME"] = "uipath:tenant-name";
18418
- UiPathMetaTags3["BASE_URL"] = "uipath:base-url";
18419
- UiPathMetaTags3["REDIRECT_URI"] = "uipath:redirect-uri";
18420
- UiPathMetaTags3["CDN_BASE"] = "uipath:cdn-base";
18421
- UiPathMetaTags3["APP_BASE"] = "uipath:app-base";
18422
- UiPathMetaTags3["FOLDER_KEY"] = "uipath:folder-key";
18413
+ (function(UiPathMetaTags) {
18414
+ UiPathMetaTags["CLIENT_ID"] = "uipath:client-id";
18415
+ UiPathMetaTags["SCOPE"] = "uipath:scope";
18416
+ UiPathMetaTags["ORG_NAME"] = "uipath:org-name";
18417
+ UiPathMetaTags["ORG_ID"] = "uipath:org-id";
18418
+ UiPathMetaTags["TENANT_NAME"] = "uipath:tenant-name";
18419
+ UiPathMetaTags["BASE_URL"] = "uipath:base-url";
18420
+ UiPathMetaTags["REDIRECT_URI"] = "uipath:redirect-uri";
18421
+ UiPathMetaTags["CDN_BASE"] = "uipath:cdn-base";
18422
+ UiPathMetaTags["APP_BASE"] = "uipath:app-base";
18423
+ UiPathMetaTags["FOLDER_KEY"] = "uipath:folder-key";
18423
18424
  })(UiPathMetaTags2 || (UiPathMetaTags2 = {}));
18424
18425
  var UiPathElementIds2;
18425
- (function(UiPathElementIds3) {
18426
- UiPathElementIds3["RESOURCE_OVERRIDES"] = "uipath-overrides";
18426
+ (function(UiPathElementIds) {
18427
+ UiPathElementIds["RESOURCE_OVERRIDES"] = "uipath-overrides";
18427
18428
  })(UiPathElementIds2 || (UiPathElementIds2 = {}));
18428
18429
  function missingConfigMessage2(found, context) {
18429
18430
  if (isBrowser2) {
@@ -18436,8 +18437,8 @@ UiPathMetaTags2.CLIENT_ID, UiPathMetaTags2.REDIRECT_URI, UiPathMetaTags2.SCOPE;
18436
18437
  var BASE64URL_DASH_RE2 = /-/g;
18437
18438
  var BASE64URL_UNDERSCORE_RE2 = /_/g;
18438
18439
  function base64UrlToBase642(value) {
18439
- const base642 = value.replace(BASE64URL_DASH_RE2, "+").replace(BASE64URL_UNDERSCORE_RE2, "/");
18440
- return base642.padEnd(base642.length + (4 - base642.length % 4) % 4, "=");
18440
+ const base64 = value.replace(BASE64URL_DASH_RE2, "+").replace(BASE64URL_UNDERSCORE_RE2, "/");
18441
+ return base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
18441
18442
  }
18442
18443
  function decodeJwtClaims2(token) {
18443
18444
  try {
@@ -18452,7 +18453,7 @@ function decodeJwtClaims2(token) {
18452
18453
  }
18453
18454
  var _OrganizationIdResolver_instances2;
18454
18455
  var _OrganizationIdResolver_organizationId2;
18455
- var _OrganizationIdResolver_resolve3;
18456
+ var _OrganizationIdResolver_resolve2;
18456
18457
  var GUID_REGEX$12 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
18457
18458
  var DASH_REGEX2 = /-/g;
18458
18459
  var UNDERSCORE_REGEX2 = /_/g;
@@ -18477,8 +18478,8 @@ function readIdentityError2(url) {
18477
18478
  const errorId = url.searchParams.get(IDENTITY_ERROR_ID_PARAM2);
18478
18479
  if (errorId) {
18479
18480
  try {
18480
- const base642 = errorId.replace(DASH_REGEX2, "+").replace(UNDERSCORE_REGEX2, "/");
18481
- const json = decodeBase642(base642.padEnd(base642.length + (4 - base642.length % 4) % 4, "="));
18481
+ const base64 = errorId.replace(DASH_REGEX2, "+").replace(UNDERSCORE_REGEX2, "/");
18482
+ const json = decodeBase642(base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "="));
18482
18483
  const data = JSON.parse(json).Data;
18483
18484
  const error = typeof data?.Error === "string" ? data.Error : undefined;
18484
18485
  const description = typeof data?.ErrorDescription === "string" ? data.ErrorDescription : undefined;
@@ -18567,15 +18568,15 @@ async function lookupOrganizationIdForPat2(baseUrl, orgName) {
18567
18568
  }
18568
18569
 
18569
18570
  class OrganizationIdResolver2 {
18570
- constructor(config2, tokenManager) {
18571
+ constructor(config, tokenManager) {
18571
18572
  _OrganizationIdResolver_instances2.add(this);
18572
- this.config = config2;
18573
+ this.config = config;
18573
18574
  this.tokenManager = tokenManager;
18574
18575
  _OrganizationIdResolver_organizationId2.set(this, undefined);
18575
18576
  }
18576
18577
  resolve() {
18577
18578
  if (!__classPrivateFieldGet2(this, _OrganizationIdResolver_organizationId2, "f")) {
18578
- __classPrivateFieldSet2(this, _OrganizationIdResolver_organizationId2, __classPrivateFieldGet2(this, _OrganizationIdResolver_instances2, "m", _OrganizationIdResolver_resolve3).call(this).catch((error) => {
18579
+ __classPrivateFieldSet2(this, _OrganizationIdResolver_organizationId2, __classPrivateFieldGet2(this, _OrganizationIdResolver_instances2, "m", _OrganizationIdResolver_resolve2).call(this).catch((error) => {
18579
18580
  __classPrivateFieldSet2(this, _OrganizationIdResolver_organizationId2, undefined, "f");
18580
18581
  throw error;
18581
18582
  }), "f");
@@ -18583,7 +18584,7 @@ class OrganizationIdResolver2 {
18583
18584
  return __classPrivateFieldGet2(this, _OrganizationIdResolver_organizationId2, "f");
18584
18585
  }
18585
18586
  }
18586
- _OrganizationIdResolver_organizationId2 = new WeakMap, _OrganizationIdResolver_instances2 = new WeakSet, _OrganizationIdResolver_resolve3 = async function _OrganizationIdResolver_resolve4() {
18587
+ _OrganizationIdResolver_organizationId2 = new WeakMap, _OrganizationIdResolver_instances2 = new WeakSet, _OrganizationIdResolver_resolve2 = async function _OrganizationIdResolver_resolve() {
18587
18588
  const { organizationId, orgName, baseUrl } = this.config;
18588
18589
  if (organizationId) {
18589
18590
  return organizationId;
@@ -18601,12 +18602,12 @@ var REGISTRY_KEY3 = Symbol.for("@uipath/sdk-internals-registry");
18601
18602
  var UNCONFIGURED_KEY2 = Symbol.for("@uipath/sdk-unconfigured-reason");
18602
18603
  var globalStores2 = () => globalThis;
18603
18604
  var getGlobalStore2 = () => {
18604
- var _a2;
18605
- return (_a2 = globalStores2())[REGISTRY_KEY3] ?? (_a2[REGISTRY_KEY3] = new WeakMap);
18605
+ var _a;
18606
+ return (_a = globalStores2())[REGISTRY_KEY3] ?? (_a[REGISTRY_KEY3] = new WeakMap);
18606
18607
  };
18607
18608
  var getUnconfiguredStore2 = () => {
18608
- var _a2;
18609
- return (_a2 = globalStores2())[UNCONFIGURED_KEY2] ?? (_a2[UNCONFIGURED_KEY2] = new WeakMap);
18609
+ var _a;
18610
+ return (_a = globalStores2())[UNCONFIGURED_KEY2] ?? (_a[UNCONFIGURED_KEY2] = new WeakMap);
18610
18611
  };
18611
18612
  var looksLikeUiPath2 = (instance) => typeof instance.initialize === "function";
18612
18613
 
@@ -18645,8 +18646,8 @@ var _BaseService_apiClient2;
18645
18646
  class BaseService2 {
18646
18647
  constructor(instance, headers) {
18647
18648
  _BaseService_apiClient2.set(this, undefined);
18648
- const { config: config2, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry2.get(instance);
18649
- __classPrivateFieldSet2(this, _BaseService_apiClient2, new ApiClient2(config2, context, tokenManager, headers ? { headers } : {}), "f");
18649
+ const { config, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry2.get(instance);
18650
+ __classPrivateFieldSet2(this, _BaseService_apiClient2, new ApiClient2(config, context, tokenManager, headers ? { headers } : {}), "f");
18650
18651
  this.config = { folderKey, metaFolderKey };
18651
18652
  }
18652
18653
  async getValidAuthToken() {
@@ -18828,7 +18829,7 @@ function isPlainObject2(value) {
18828
18829
  function asResourceOverrides2(value) {
18829
18830
  if (!isPlainObject2(value))
18830
18831
  return;
18831
- const table2 = {};
18832
+ const table = {};
18832
18833
  for (const [key, properties] of Object.entries(value)) {
18833
18834
  if (!isPlainObject2(properties))
18834
18835
  continue;
@@ -18837,9 +18838,9 @@ function asResourceOverrides2(value) {
18837
18838
  if (typeof propertyValue === "string")
18838
18839
  bag[property] = propertyValue;
18839
18840
  }
18840
- table2[key] = bag;
18841
+ table[key] = bag;
18841
18842
  }
18842
- return Object.keys(table2).length > 0 ? table2 : undefined;
18843
+ return Object.keys(table).length > 0 ? table : undefined;
18843
18844
  }
18844
18845
  function readFromDocument2() {
18845
18846
  if (!isBrowser2)
@@ -18875,13 +18876,13 @@ function readOverrides2() {
18875
18876
  }
18876
18877
  }
18877
18878
  function resolveOverride2(resourceType, name, folderPath) {
18878
- const table3 = readOverrides2();
18879
- if (!table3)
18879
+ const table = readOverrides2();
18880
+ if (!table)
18880
18881
  return;
18881
18882
  const bindingType = resourceType.toLowerCase();
18882
18883
  const scopedKey = folderPath ? `${bindingType}.${name}.${folderPath}` : undefined;
18883
18884
  const unscopedKey = `${bindingType}.${name}`;
18884
- const entry = (scopedKey && table3[scopedKey]) ?? table3[unscopedKey];
18885
+ const entry = (scopedKey && table[scopedKey]) ?? table[unscopedKey];
18885
18886
  if (!entry)
18886
18887
  return;
18887
18888
  return {
@@ -18905,7 +18906,7 @@ class FolderScopedService2 extends BaseService2 {
18905
18906
  }
18906
18907
  return response.data?.value;
18907
18908
  }
18908
- async getByNameLookup(resourceType, endpoint, name, options, transform2, responseFieldMap, callerLabel) {
18909
+ async getByNameLookup(resourceType, endpoint, name, options, transform, responseFieldMap, callerLabel) {
18909
18910
  const validatedName = validateName2(resourceType, name);
18910
18911
  const { folderId, folderKey, folderPath, ...queryOptions } = options;
18911
18912
  const override = resolveOverride2(resourceType, validatedName, folderPath);
@@ -18936,11 +18937,11 @@ class FolderScopedService2 extends BaseService2 {
18936
18937
  });
18937
18938
  }
18938
18939
  return {
18939
- result: transform2(items[0]),
18940
+ result: transform(items[0]),
18940
18941
  effectiveFolder: { folderId, folderKey, folderPath: resolvedFolderPath }
18941
18942
  };
18942
18943
  }
18943
- async getByKeyLookup(resourceType, endpoint, key, options, transform2, responseFieldMap, callerLabel) {
18944
+ async getByKeyLookup(resourceType, endpoint, key, options, transform, responseFieldMap, callerLabel) {
18944
18945
  const label = callerLabel ?? `${resourceType}.getByKey`;
18945
18946
  const trimmedKey = key?.trim();
18946
18947
  if (!trimmedKey || !GUID_REGEX2.test(trimmedKey)) {
@@ -18969,7 +18970,7 @@ class FolderScopedService2 extends BaseService2 {
18969
18970
  throw new NotFoundError2({ message: `${resourceType} with key '${trimmedKey}' not found.` });
18970
18971
  }
18971
18972
  return {
18972
- result: transform2(items[0]),
18973
+ result: transform(items[0]),
18973
18974
  effectiveFolder: { folderId, folderKey, folderPath }
18974
18975
  };
18975
18976
  }
@@ -19021,7 +19022,7 @@ class TaskService2 extends FolderScopedService2 {
19021
19022
  const optionsWithFolder = { ...options, folderId };
19022
19023
  return PaginationHelpers2.getAll({
19023
19024
  serviceAccess: this.createPaginationServiceAccess(),
19024
- getEndpoint: (folderId2) => TASK_ENDPOINTS2.GET_TASK_USERS(folderId2),
19025
+ getEndpoint: (folderId) => TASK_ENDPOINTS2.GET_TASK_USERS(folderId),
19025
19026
  getByFolderEndpoint: TASK_ENDPOINTS2.GET_TASK_USERS(folderId),
19026
19027
  transformFn: transformUserResponse,
19027
19028
  pagination: {
@@ -19313,10 +19314,10 @@ var TaskCatalogMap2 = {
19313
19314
  lastModificationTime: "lastModifiedTime"
19314
19315
  };
19315
19316
  var TaskCatalogRetentionAction2;
19316
- (function(TaskCatalogRetentionAction3) {
19317
- TaskCatalogRetentionAction3["Delete"] = "Delete";
19318
- TaskCatalogRetentionAction3["Archive"] = "Archive";
19319
- TaskCatalogRetentionAction3["None"] = "None";
19317
+ (function(TaskCatalogRetentionAction) {
19318
+ TaskCatalogRetentionAction["Delete"] = "Delete";
19319
+ TaskCatalogRetentionAction["Archive"] = "Archive";
19320
+ TaskCatalogRetentionAction["None"] = "None";
19320
19321
  })(TaskCatalogRetentionAction2 || (TaskCatalogRetentionAction2 = {}));
19321
19322
 
19322
19323
  class TaskCatalogService2 extends FolderScopedService2 {
@@ -19418,17 +19419,15 @@ __decorate2([
19418
19419
 
19419
19420
  // src/utils/sdk-client.ts
19420
19421
  var createTasksClient = async (tenantOverride) => {
19421
- const status = await getLoginStatusAsync({
19422
- ensureTokenValidityMinutes: 10
19422
+ const auth = await getAuthContext({
19423
+ ensureTokenValidityMinutes: 10,
19424
+ tenant: tenantOverride
19423
19425
  });
19424
- if (status.loginStatus !== "Logged in" || !status.accessToken || !status.baseUrl) {
19425
- throw new Error(status.hint ?? "Not logged in. Run 'uip login' first.");
19426
- }
19427
- return new UiPath2({
19428
- secret: status.accessToken,
19429
- baseUrl: status.baseUrl,
19430
- orgName: status.organizationName,
19431
- tenantName: tenantOverride ?? status.tenantName
19426
+ return new UiPath({
19427
+ secret: auth.accessToken,
19428
+ baseUrl: auth.baseUrl,
19429
+ orgName: auth.organizationName,
19430
+ tenantName: auth.tenantName
19432
19431
  });
19433
19432
  };
19434
19433
  var createTaskCatalogsClient = (sdk) => new TaskCatalogService2(sdk);
@@ -19543,11 +19542,11 @@ async function resolveFolderScope(options) {
19543
19542
  return parseIntArg(options.folderId, "--folder-id");
19544
19543
  }
19545
19544
  if (options.folderKey !== undefined) {
19546
- const { resolveFolderIdByKey } = await import("./folder-resolver-m2j9csxn.js");
19545
+ const { resolveFolderIdByKey } = await import("./folder-resolver-t2555k5b.js");
19547
19546
  return resolveFolderIdByKey(options.folderKey, options.tenant);
19548
19547
  }
19549
19548
  if (options.folderPath !== undefined) {
19550
- const { resolveFolderIdByPath } = await import("./folder-resolver-m2j9csxn.js");
19549
+ const { resolveFolderIdByPath } = await import("./folder-resolver-t2555k5b.js");
19551
19550
  return resolveFolderIdByPath(options.folderPath, options.tenant);
19552
19551
  }
19553
19552
  return;
@@ -19567,14 +19566,115 @@ async function resolveFolderId(options, missingFolderInstructions = DEFAULT_FOLD
19567
19566
  processContext.exit(1);
19568
19567
  return null;
19569
19568
  }
19570
- const { pickFolderInteractively } = await import("./folder-picker-interactive-2x6yr0wh.js");
19569
+ const { pickFolderInteractively } = await import("./folder-picker-interactive-41htawa4.js");
19571
19570
  return pickFolderInteractively(options.tenant);
19572
19571
  }
19573
19572
 
19574
19573
  // src/commands/catalogs.ts
19574
+ var SAMPLE_CATALOG = {
19575
+ id: 7,
19576
+ key: "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
19577
+ name: "Invoice approvals",
19578
+ description: "Approval tasks for supplier invoices",
19579
+ createdTime: "2026-09-15T08:00:00Z",
19580
+ lastModifiedTime: null,
19581
+ foldersCount: 1,
19582
+ encrypted: false,
19583
+ tags: [],
19584
+ retentionAction: "Delete",
19585
+ retentionPeriod: 90,
19586
+ retentionBucketId: null,
19587
+ retentionBucketName: null
19588
+ };
19589
+ var CATALOGS_LIST_EXAMPLES = [
19590
+ {
19591
+ Description: "List the task catalogs in a folder",
19592
+ Command: 'uip tasks catalogs list --folder-path "Shared/Finance"',
19593
+ Output: {
19594
+ Code: "TaskCatalogList",
19595
+ Data: [
19596
+ SAMPLE_CATALOG,
19597
+ {
19598
+ ...SAMPLE_CATALOG,
19599
+ id: 8,
19600
+ key: "9d0e1f2a-3b4c-4d5e-8f6a-7b8c9d0e1f2a",
19601
+ name: "Contract reviews",
19602
+ description: null,
19603
+ retentionAction: "None",
19604
+ retentionPeriod: null
19605
+ }
19606
+ ]
19607
+ }
19608
+ },
19609
+ {
19610
+ Description: "List at most 10 catalogs in a folder by ID",
19611
+ Command: "uip tasks catalogs list --folder-id 42 --limit 10",
19612
+ Output: {
19613
+ Code: "TaskCatalogList",
19614
+ Data: [SAMPLE_CATALOG]
19615
+ }
19616
+ }
19617
+ ];
19618
+ var CATALOGS_GET_EXAMPLES = [
19619
+ {
19620
+ Description: "Get a task catalog by ID",
19621
+ Command: 'uip tasks catalogs get 7 --folder-path "Shared/Finance"',
19622
+ Output: {
19623
+ Code: "TaskCatalogDetails",
19624
+ Data: SAMPLE_CATALOG
19625
+ }
19626
+ }
19627
+ ];
19628
+ var CATALOGS_CREATE_EXAMPLES = [
19629
+ {
19630
+ Description: "Create a catalog whose tasks are deleted after 90 days",
19631
+ Command: 'uip tasks catalogs create --name "Invoice approvals" --description "Approval tasks for supplier invoices" --retention-action Delete --retention-period 90 --folder-path "Shared/Finance"',
19632
+ Output: {
19633
+ Code: "TaskCatalogCreated",
19634
+ Data: SAMPLE_CATALOG
19635
+ }
19636
+ },
19637
+ {
19638
+ Description: "Create an encrypted catalog that moves its tasks to a storage bucket after a year",
19639
+ Command: 'uip tasks catalogs create --name "HR requests" --encrypted --retention-action Archive --retention-period 365 --retention-bucket-id 3 --folder-path "Shared/HR"',
19640
+ Output: {
19641
+ Code: "TaskCatalogCreated",
19642
+ Data: {
19643
+ ...SAMPLE_CATALOG,
19644
+ id: 9,
19645
+ key: "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
19646
+ name: "HR requests",
19647
+ description: null,
19648
+ encrypted: true,
19649
+ retentionAction: "Archive",
19650
+ retentionPeriod: 365,
19651
+ retentionBucketId: 3,
19652
+ retentionBucketName: "hr-archive"
19653
+ }
19654
+ }
19655
+ }
19656
+ ];
19657
+ var CATALOGS_UPDATE_EXAMPLES = [
19658
+ {
19659
+ Description: "Rename a task catalog",
19660
+ Command: 'uip tasks catalogs update 7 --name "Supplier invoice approvals" --folder-path "Shared/Finance"',
19661
+ Output: {
19662
+ Code: "TaskCatalogUpdated",
19663
+ Data: { id: 7, name: "Supplier invoice approvals" }
19664
+ }
19665
+ },
19666
+ {
19667
+ Description: "Keep a catalog's tasks for 30 days instead",
19668
+ Command: 'uip tasks catalogs update 7 --retention-period 30 --folder-path "Shared/Finance"',
19669
+ Output: {
19670
+ Code: "TaskCatalogUpdated",
19671
+ Data: { id: 7 }
19672
+ }
19673
+ }
19674
+ ];
19575
19675
  var registerCatalogsCommand = (program) => {
19576
19676
  const catalogs = program.command("catalogs").description("Manage task catalogs");
19577
- addFolderScopeOptions(catalogs.command("list").description("List task catalogs in a folder")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").trackedAction(processContext, async (options) => {
19677
+ addFolderScopeOptions(catalogs.command("list").description("List task catalogs in a folder")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").examples(CATALOGS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
19578
19678
  const sdk = await connectTasksClient();
19579
19679
  if (!sdk)
19580
19680
  return;
@@ -19622,7 +19722,7 @@ var registerCatalogsCommand = (program) => {
19622
19722
  Data: limit ? allItems.slice(0, limit) : allItems
19623
19723
  });
19624
19724
  });
19625
- addFolderScopeOptions(catalogs.command("get").description("Get a task catalog by ID").argument("<id>", "Task catalog ID")).trackedAction(processContext, async (id, options) => {
19725
+ addFolderScopeOptions(catalogs.command("get").description("Get a task catalog by ID").argument("<id>", "Task catalog ID").examples(CATALOGS_GET_EXAMPLES)).trackedAction(processContext, async (id, options) => {
19626
19726
  const sdk = await connectTasksClient();
19627
19727
  if (!sdk)
19628
19728
  return;
@@ -19645,7 +19745,7 @@ var registerCatalogsCommand = (program) => {
19645
19745
  Data: catalog
19646
19746
  });
19647
19747
  });
19648
- addFolderScopeOptions(catalogs.command("create").description("Create a task catalog in a folder").requiredOption("--name <name>", "Catalog name (required)")).option("--description <text>", "Catalog description").option("--encrypted", "Encrypt the data of tasks in this catalog").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").trackedAction(processContext, async (options) => {
19748
+ addFolderScopeOptions(catalogs.command("create").description("Create a task catalog in a folder").requiredOption("--name <name>", "Catalog name (required)")).option("--description <text>", "Catalog description").option("--encrypted", "Encrypt the data of tasks in this catalog").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").examples(CATALOGS_CREATE_EXAMPLES).trackedAction(processContext, async (options) => {
19649
19749
  const sdk = await connectTasksClient();
19650
19750
  if (!sdk)
19651
19751
  return;
@@ -19669,7 +19769,7 @@ var registerCatalogsCommand = (program) => {
19669
19769
  Data: catalog
19670
19770
  });
19671
19771
  });
19672
- addFolderScopeOptions(catalogs.command("update").description("Update a task catalog").argument("<id>", "Task catalog ID")).option("--name <name>", "New catalog name").option("--description <text>", "Catalog description").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").trackedAction(processContext, async (id, options) => {
19772
+ addFolderScopeOptions(catalogs.command("update").description("Update a task catalog").argument("<id>", "Task catalog ID")).option("--name <name>", "New catalog name").option("--description <text>", "Catalog description").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").examples(CATALOGS_UPDATE_EXAMPLES).trackedAction(processContext, async (id, options) => {
19673
19773
  const sdk = await connectTasksClient();
19674
19774
  if (!sdk)
19675
19775
  return;
@@ -19712,9 +19812,56 @@ var registerCatalogsCommand = (program) => {
19712
19812
  };
19713
19813
 
19714
19814
  // src/commands/comments.ts
19815
+ var SAMPLE_COMMENT = {
19816
+ id: 501,
19817
+ key: "8e9f0a1b-2c3d-4e5f-9a6b-7c8d9e0f1a2b",
19818
+ taskId: 1234,
19819
+ folderId: 42,
19820
+ text: "Escalated to the finance lead",
19821
+ createdTime: "2026-10-02T14:30:00Z",
19822
+ creatorUserId: 1
19823
+ };
19824
+ var COMMENTS_LIST_EXAMPLES = [
19825
+ {
19826
+ Description: "List the comments on a task",
19827
+ Command: 'uip tasks comments list 1234 --folder-path "Shared/Finance"',
19828
+ Output: {
19829
+ Code: "TaskCommentList",
19830
+ Data: [
19831
+ SAMPLE_COMMENT,
19832
+ {
19833
+ ...SAMPLE_COMMENT,
19834
+ id: 502,
19835
+ key: "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
19836
+ text: "Approved by the finance lead",
19837
+ createdTime: "2026-10-03T10:05:00Z",
19838
+ creatorUserId: 2
19839
+ }
19840
+ ]
19841
+ }
19842
+ },
19843
+ {
19844
+ Description: "List only the first comment, with the folder given by ID",
19845
+ Command: "uip tasks comments list 1234 --folder-id 42 --limit 1",
19846
+ Output: {
19847
+ Code: "TaskCommentList",
19848
+ Data: [SAMPLE_COMMENT]
19849
+ }
19850
+ }
19851
+ ];
19852
+ var COMMENTS_ADD_EXAMPLES = [
19853
+ {
19854
+ Description: "Add a comment to a task",
19855
+ Command: 'uip tasks comments add 1234 --text "Escalated to the finance lead" --folder-path "Shared/Finance"',
19856
+ Output: {
19857
+ Code: "TaskCommentCreated",
19858
+ Data: SAMPLE_COMMENT
19859
+ }
19860
+ }
19861
+ ];
19715
19862
  var registerCommentsCommand = (program) => {
19716
19863
  const comments = program.command("comments").description("Manage task comments");
19717
- addFolderScopeOptions(comments.command("list").description("List the comments on a task").argument("<task-id>", "Task ID")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").trackedAction(processContext, async (taskId, options) => {
19864
+ addFolderScopeOptions(comments.command("list").description("List the comments on a task").argument("<task-id>", "Task ID")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").examples(COMMENTS_LIST_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
19718
19865
  const sdk = await connectTasksClient();
19719
19866
  if (!sdk)
19720
19867
  return;
@@ -19768,7 +19915,7 @@ var registerCommentsCommand = (program) => {
19768
19915
  Data: limit ? allItems.slice(0, limit) : allItems
19769
19916
  });
19770
19917
  });
19771
- addFolderScopeOptions(comments.command("add").description("Add a comment to a task").argument("<task-id>", "Task ID").requiredOption("--text <text>", "Comment text (required)")).trackedAction(processContext, async (taskId, options) => {
19918
+ addFolderScopeOptions(comments.command("add").description("Add a comment to a task").argument("<task-id>", "Task ID").requiredOption("--text <text>", "Comment text (required)").examples(COMMENTS_ADD_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
19772
19919
  const sdk = await connectTasksClient();
19773
19920
  if (!sdk)
19774
19921
  return;
@@ -19808,9 +19955,46 @@ var registerCommentsCommand = (program) => {
19808
19955
  };
19809
19956
 
19810
19957
  // src/commands/data.ts
19958
+ var DATA_GET_EXAMPLES = [
19959
+ {
19960
+ Description: "Get a task's data",
19961
+ Command: 'uip tasks data get 1234 --folder-path "Shared/Finance"',
19962
+ Output: {
19963
+ Code: "TaskData",
19964
+ Data: {
19965
+ id: 1234,
19966
+ key: "5f1c2a3b-8d4e-4f6a-9b7c-0d1e2f3a4b5c",
19967
+ title: "Approve invoice INV-1042",
19968
+ type: "FormTask",
19969
+ status: "Pending",
19970
+ priority: "High",
19971
+ folderId: 42,
19972
+ data: {
19973
+ invoiceNumber: "INV-1042",
19974
+ amount: 1250.5,
19975
+ approved: false
19976
+ },
19977
+ action: null,
19978
+ createdTime: "2026-10-01T09:15:00Z",
19979
+ lastModifiedTime: "2026-10-01T09:20:00Z",
19980
+ tags: []
19981
+ }
19982
+ }
19983
+ }
19984
+ ];
19985
+ var DATA_SAVE_EXAMPLES = [
19986
+ {
19987
+ Description: "Replace a task's data (send every key you want to keep, not only the changed one)",
19988
+ Command: `uip tasks data save 1234 --data '{"invoiceNumber":"INV-1042","amount":1250.5,"approved":true}' --folder-path "Shared/Finance"`,
19989
+ Output: {
19990
+ Code: "TaskDataSaved",
19991
+ Data: { taskId: 1234 }
19992
+ }
19993
+ }
19994
+ ];
19811
19995
  var registerDataCommand = (program) => {
19812
19996
  const data = program.command("data").description("Manage task data");
19813
- addFolderScopeOptions(data.command("get").description("Get a task's data").argument("<task-id>", "Task ID")).trackedAction(processContext, async (taskId, options) => {
19997
+ addFolderScopeOptions(data.command("get").description("Get a task's data").argument("<task-id>", "Task ID").examples(DATA_GET_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
19814
19998
  const sdk = await connectTasksClient();
19815
19999
  if (!sdk)
19816
20000
  return;
@@ -19836,7 +20020,7 @@ var registerDataCommand = (program) => {
19836
20020
  Data: task
19837
20021
  });
19838
20022
  });
19839
- addFolderScopeOptions(data.command("save").description("Save a task's data").argument("<task-id>", "Task ID").requiredOption("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.")).trackedAction(processContext, async (taskId, options) => {
20023
+ addFolderScopeOptions(data.command("save").description("Save a task's data").argument("<task-id>", "Task ID").requiredOption("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.").examples(DATA_SAVE_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
19840
20024
  const sdk = await connectTasksClient();
19841
20025
  if (!sdk)
19842
20026
  return;
@@ -19884,8 +20068,35 @@ var registerDataCommand = (program) => {
19884
20068
  };
19885
20069
 
19886
20070
  // src/commands/labels.ts
20071
+ var LABELS_EXAMPLES = [
20072
+ {
20073
+ Description: "Set the labels on a task",
20074
+ Command: `uip tasks labels 1234 --labels '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' --folder-path "Shared/Finance"`,
20075
+ Output: {
20076
+ Code: "TaskLabelsSaved",
20077
+ Data: {
20078
+ taskId: 1234,
20079
+ labels: [
20080
+ {
20081
+ name: "region",
20082
+ displayName: "Region",
20083
+ displayValue: "EMEA"
20084
+ }
20085
+ ]
20086
+ }
20087
+ }
20088
+ },
20089
+ {
20090
+ Description: "Clear all labels on a task",
20091
+ Command: `uip tasks labels 1234 --labels '[]' --folder-path "Shared/Finance"`,
20092
+ Output: {
20093
+ Code: "TaskLabelsSaved",
20094
+ Data: { taskId: 1234, labels: [] }
20095
+ }
20096
+ }
20097
+ ];
19887
20098
  var registerLabelsCommand = (program) => {
19888
- addFolderScopeOptions(program.command("labels").description("Set or clear the labels on a task").argument("<task-id>", "Task ID").requiredOption("--labels <json>", `Labels as a JSON array, e.g. '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' (use '[]' to clear)`)).trackedAction(processContext, async (taskId, options) => {
20099
+ addFolderScopeOptions(program.command("labels").description("Set or clear the labels on a task").argument("<task-id>", "Task ID").requiredOption("--labels <json>", `Labels as a JSON array, e.g. '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' (use '[]' to clear)`).examples(LABELS_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
19889
20100
  const sdk = await connectTasksClient();
19890
20101
  if (!sdk)
19891
20102
  return;
@@ -19935,8 +20146,26 @@ var registerLabelsCommand = (program) => {
19935
20146
  };
19936
20147
 
19937
20148
  // src/commands/metadata.ts
20149
+ var METADATA_EXAMPLES = [
20150
+ {
20151
+ Description: "Raise a task's priority and record why",
20152
+ Command: 'uip tasks metadata 1234 --priority Critical --note "Customer escalation" --folder-path "Shared/Finance"',
20153
+ Output: {
20154
+ Code: "TaskMetadataEdited",
20155
+ Data: { taskId: 1234 }
20156
+ }
20157
+ },
20158
+ {
20159
+ Description: "Rename a task and link it to a task catalog",
20160
+ Command: 'uip tasks metadata 1234 --title "Approve invoice INV-1042 (urgent)" --catalog-id 7 --folder-path "Shared/Finance"',
20161
+ Output: {
20162
+ Code: "TaskMetadataEdited",
20163
+ Data: { taskId: 1234 }
20164
+ }
20165
+ }
20166
+ ];
19938
20167
  var registerMetadataCommand = (program) => {
19939
- addFolderScopeOptions(program.command("metadata").description("Edit a task's metadata").argument("<task-id>", "Task ID")).option("--title <title>", "New title").option("--priority <priority>", "New priority (Low, Medium, High, Critical)").option("--catalog-id <id>", "Associate a task catalog by ID").option("--unset-catalog", "Remove the task's catalog association").option("--note <text>", "Comment recorded with the edit").trackedAction(processContext, async (taskId, options) => {
20168
+ addFolderScopeOptions(program.command("metadata").description("Edit a task's metadata").argument("<task-id>", "Task ID")).option("--title <title>", "New title").option("--priority <priority>", "New priority (Low, Medium, High, Critical)").option("--catalog-id <id>", "Associate a task catalog by ID").option("--unset-catalog", "Remove the task's catalog association").option("--note <text>", "Comment recorded with the edit").examples(METADATA_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
19940
20169
  const sdk = await connectTasksClient();
19941
20170
  if (!sdk)
19942
20171
  return;
@@ -20021,6 +20250,162 @@ var VALID_TASK_TYPES = [
20021
20250
  "DataLabelingTask",
20022
20251
  "QuickFormTask"
20023
20252
  ];
20253
+ var SAMPLE_TASK = {
20254
+ id: 1234,
20255
+ key: "5f1c2a3b-8d4e-4f6a-9b7c-0d1e2f3a4b5c",
20256
+ title: "Approve invoice INV-1042",
20257
+ type: "FormTask",
20258
+ status: "Pending",
20259
+ priority: "High",
20260
+ folderId: 42,
20261
+ createdTime: "2026-10-01T09:15:00Z",
20262
+ lastAssignedTime: "2026-10-01T09:20:00Z",
20263
+ completedTime: null
20264
+ };
20265
+ var TASKS_LIST_EXAMPLES = [
20266
+ {
20267
+ Description: "List the first 2 tasks you can see across folders",
20268
+ Command: "uip tasks list --limit 2",
20269
+ Output: {
20270
+ Code: "TaskList",
20271
+ Data: [
20272
+ SAMPLE_TASK,
20273
+ {
20274
+ ...SAMPLE_TASK,
20275
+ id: 1235,
20276
+ key: "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
20277
+ title: "Review vendor contract",
20278
+ type: "ExternalTask",
20279
+ status: "Unassigned",
20280
+ priority: "Medium",
20281
+ lastAssignedTime: null
20282
+ }
20283
+ ]
20284
+ }
20285
+ },
20286
+ {
20287
+ Description: "List all tasks in one folder as a task admin",
20288
+ Command: 'uip tasks list --folder-path "Shared/Finance" --as-admin',
20289
+ Output: {
20290
+ Code: "TaskList",
20291
+ Data: [SAMPLE_TASK]
20292
+ }
20293
+ }
20294
+ ];
20295
+ var TASKS_GET_EXAMPLES = [
20296
+ {
20297
+ Description: "Get a task by ID",
20298
+ Command: "uip tasks get 1234",
20299
+ Output: {
20300
+ Code: "TaskDetails",
20301
+ Data: {
20302
+ ...SAMPLE_TASK,
20303
+ isCompleted: false,
20304
+ taskAssigneeName: "alice@company.com",
20305
+ assignedToUser: {
20306
+ id: 1,
20307
+ userName: "alice",
20308
+ emailAddress: "alice@company.com",
20309
+ displayName: "Alice Smith"
20310
+ }
20311
+ }
20312
+ }
20313
+ },
20314
+ {
20315
+ Description: "Get a form task by ID, scoped to its folder",
20316
+ Command: 'uip tasks get 1234 --task-type FormTask --folder-path "Shared/Finance"',
20317
+ Output: {
20318
+ Code: "TaskDetails",
20319
+ Data: {
20320
+ ...SAMPLE_TASK,
20321
+ isCompleted: false,
20322
+ taskAssigneeName: "alice@company.com",
20323
+ data: { invoiceNumber: "INV-1042", amount: 1250.5 }
20324
+ }
20325
+ }
20326
+ }
20327
+ ];
20328
+ var TASKS_ASSIGN_EXAMPLES = [
20329
+ {
20330
+ Description: "Assign a task to a user by email",
20331
+ Command: "uip tasks assign 1234 --user alice@company.com",
20332
+ Output: {
20333
+ Code: "TaskAssigned",
20334
+ Data: {
20335
+ success: true,
20336
+ data: [{ taskId: 1234, userNameOrEmail: "alice@company.com" }]
20337
+ }
20338
+ }
20339
+ },
20340
+ {
20341
+ Description: "Assign a task to a user ID from 'tasks users'",
20342
+ Command: "uip tasks assign 1234 --user-id 1",
20343
+ Output: {
20344
+ Code: "TaskAssigned",
20345
+ Data: { success: true, data: [{ taskId: 1234, userId: 1 }] }
20346
+ }
20347
+ }
20348
+ ];
20349
+ var TASKS_REASSIGN_EXAMPLES = [
20350
+ {
20351
+ Description: "Reassign a task to another user by email",
20352
+ Command: "uip tasks reassign 1234 --user bob@company.com",
20353
+ Output: {
20354
+ Code: "TaskReassigned",
20355
+ Data: {
20356
+ success: true,
20357
+ data: [{ taskId: 1234, userNameOrEmail: "bob@company.com" }]
20358
+ }
20359
+ }
20360
+ },
20361
+ {
20362
+ Description: "Reassign a task to a user ID from 'tasks users'",
20363
+ Command: "uip tasks reassign 1234 --user-id 2",
20364
+ Output: {
20365
+ Code: "TaskReassigned",
20366
+ Data: { success: true, data: [{ taskId: 1234, userId: 2 }] }
20367
+ }
20368
+ }
20369
+ ];
20370
+ var TASKS_UNASSIGN_EXAMPLES = [
20371
+ {
20372
+ Description: "Remove the assignee from a task",
20373
+ Command: "uip tasks unassign 1234",
20374
+ Output: {
20375
+ Code: "TaskUnassigned",
20376
+ Data: { success: true, data: [{ taskId: 1234 }] }
20377
+ }
20378
+ }
20379
+ ];
20380
+ var TASKS_COMPLETE_EXAMPLES = [
20381
+ {
20382
+ Description: "Complete a form task with an action and its data",
20383
+ Command: `uip tasks complete 1234 --type FormTask --action Approve --data '{"approved":true}' --folder-path "Shared/Finance"`,
20384
+ Output: {
20385
+ Code: "TaskCompleted",
20386
+ Data: {
20387
+ success: true,
20388
+ data: {
20389
+ taskId: 1234,
20390
+ type: "FormTask",
20391
+ action: "Approve",
20392
+ data: { approved: true }
20393
+ }
20394
+ }
20395
+ }
20396
+ },
20397
+ {
20398
+ Description: "Complete an external task, which needs no action",
20399
+ Command: "uip tasks complete 1235 --type ExternalTask --folder-id 42",
20400
+ Output: {
20401
+ Code: "TaskCompleted",
20402
+ Data: {
20403
+ success: true,
20404
+ data: { taskId: 1235, type: "ExternalTask" }
20405
+ }
20406
+ }
20407
+ }
20408
+ ];
20024
20409
  var TASKS_USERS_EXAMPLES = [
20025
20410
  {
20026
20411
  Description: "List users with task permissions in a folder",
@@ -20083,7 +20468,7 @@ var TASKS_USERS_EXAMPLES = [
20083
20468
  }
20084
20469
  ];
20085
20470
  var registerTasksCommand = (program) => {
20086
- addFolderScopeOptions(program.command("list").description("List tasks across folders").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")), "Filter by folder ID").option("--as-admin", "List tasks as admin").option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").trackedAction(processContext, async (options) => {
20471
+ addFolderScopeOptions(program.command("list").description("List tasks across folders").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")), "Filter by folder ID").option("--as-admin", "List tasks as admin").option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").examples(TASKS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
20087
20472
  const sdk = await connectTasksClient(options.tenant);
20088
20473
  if (!sdk)
20089
20474
  return;
@@ -20141,7 +20526,7 @@ var registerTasksCommand = (program) => {
20141
20526
  Data: data
20142
20527
  });
20143
20528
  });
20144
- addFolderScopeOptions(program.command("get").description("Get details of a task by ID. Use 'tasks list' to find task IDs.").argument("<id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--task-type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)"), "Folder ID (a folder is required when task-type is specified)").trackedAction(processContext, async (id, options) => {
20529
+ addFolderScopeOptions(program.command("get").description("Get details of a task by ID. Use 'tasks list' to find task IDs.").argument("<id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--task-type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)").examples(TASKS_GET_EXAMPLES), "Folder ID (a folder is required when task-type is specified)").trackedAction(processContext, async (id, options) => {
20145
20530
  const sdk = await connectTasksClient(options.tenant);
20146
20531
  if (!sdk)
20147
20532
  return;
@@ -20181,13 +20566,13 @@ var registerTasksCommand = (program) => {
20181
20566
  Data: task
20182
20567
  });
20183
20568
  });
20184
- program.command("assign").description("Assign a task to a user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").trackedAction(processContext, async (taskId, options) => {
20569
+ program.command("assign").description("Assign a task to a user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").examples(TASKS_ASSIGN_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
20185
20570
  await assignOrReassign(taskId, options, "assign");
20186
20571
  });
20187
- program.command("reassign").description("Reassign a task to a different user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").trackedAction(processContext, async (taskId, options) => {
20572
+ program.command("reassign").description("Reassign a task to a different user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").examples(TASKS_REASSIGN_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
20188
20573
  await assignOrReassign(taskId, options, "reassign");
20189
20574
  });
20190
- program.command("unassign").description("Remove the assignee from a task").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).trackedAction(processContext, async (taskId, options) => {
20575
+ program.command("unassign").description("Remove the assignee from a task").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).examples(TASKS_UNASSIGN_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
20191
20576
  const sdk = await connectTasksClient(options.tenant);
20192
20577
  if (!sdk)
20193
20578
  return;
@@ -20210,7 +20595,7 @@ var registerTasksCommand = (program) => {
20210
20595
  Data: result
20211
20596
  });
20212
20597
  });
20213
- addFolderScopeOptions(program.command("complete").description("Complete a task with an action and optional data").argument("<task-id>", "Task ID").requiredOption("--type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>"))).option("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.").option("--action <action>", "Action name (required for FormTask and AppTask)").trackedAction(processContext, async (taskId, options) => {
20598
+ addFolderScopeOptions(program.command("complete").description("Complete a task with an action and optional data").argument("<task-id>", "Task ID").requiredOption("--type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>"))).option("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.").option("--action <action>", "Action name (required for FormTask and AppTask)").examples(TASKS_COMPLETE_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
20214
20599
  const sdk = await connectTasksClient(options.tenant);
20215
20600
  if (!sdk)
20216
20601
  return;
@@ -20372,13 +20757,13 @@ async function assignOrReassign(taskId, options, action) {
20372
20757
  }
20373
20758
 
20374
20759
  // src/tool.ts
20375
- var metadata = {
20760
+ var metadata2 = {
20376
20761
  name: "tasks-tool",
20377
20762
  version: package_default.version,
20378
20763
  description: "Manage Action Center tasks.",
20379
20764
  commandPrefix: "tasks"
20380
20765
  };
20381
- var registerCommands = async (program) => {
20766
+ var registerCommands2 = async (program) => {
20382
20767
  registerTasksCommand(program);
20383
20768
  registerCatalogsCommand(program);
20384
20769
  registerCommentsCommand(program);
@@ -20387,6 +20772,6 @@ var registerCommands = async (program) => {
20387
20772
  registerDataCommand(program);
20388
20773
  };
20389
20774
 
20390
- export { metadata, registerCommands };
20775
+ export { metadata2, registerCommands2 };
20391
20776
 
20392
- //# debugId=3B02DAB99B92D28064756E2164756E21
20777
+ //# debugId=5D875C485FCDCB9564756E2164756E21