@uipath/data-fabric-tool 1.205.0-preview.281 → 1.206.0-preview.282

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