@uipath/maestro-sdk 1.197.0 → 1.198.0-preview.80

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 (2) hide show
  1. package/dist/index.js +43 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -48441,8 +48441,15 @@ var TLS_ERROR_CODES = new Set([
48441
48441
  var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
48442
48442
  var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
48443
48443
  function describeConnectivityError(error) {
48444
- let current = error;
48445
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
48444
+ const queue = [error];
48445
+ const seen = new Set;
48446
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
48447
+ const current = queue.shift();
48448
+ if (current === null || typeof current !== "object")
48449
+ continue;
48450
+ if (seen.has(current))
48451
+ continue;
48452
+ seen.add(current);
48446
48453
  const cur = current;
48447
48454
  const code = typeof cur.code === "string" ? cur.code : undefined;
48448
48455
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -48462,7 +48469,10 @@ function describeConnectivityError(error) {
48462
48469
  instructions: NETWORK_INSTRUCTIONS
48463
48470
  };
48464
48471
  }
48465
- current = cur.cause;
48472
+ if (cur.cause !== undefined)
48473
+ queue.push(cur.cause);
48474
+ if (Array.isArray(cur.errors))
48475
+ queue.push(...cur.errors);
48466
48476
  }
48467
48477
  return;
48468
48478
  }
@@ -53697,6 +53707,7 @@ function getLogFilePath() {
53697
53707
  // ../common/src/output-format-context.ts
53698
53708
  var formatSlot = singleton("OutputFormat");
53699
53709
  var formatExplicitSlot = singleton("OutputFormatExplicit");
53710
+ var helpRequestedSlot = singleton("HelpRequested");
53700
53711
  var filterSlot = singleton("OutputFilter");
53701
53712
  function getOutputFormat() {
53702
53713
  return formatSlot.get("json");
@@ -54764,6 +54775,9 @@ var OutputFormatter;
54764
54775
  if (opts?.warning) {
54765
54776
  data.Warning = opts.warning;
54766
54777
  }
54778
+ if (opts?.pagination) {
54779
+ data.Pagination = opts.pagination;
54780
+ }
54767
54781
  success(data);
54768
54782
  }
54769
54783
  OutputFormatter.emitList = emitList;
@@ -55231,6 +55245,7 @@ async function hashContent(content) {
55231
55245
  }
55232
55246
  // ../common/src/interactivity-context.ts
55233
55247
  var modeSlot = singleton("InteractivityMode");
55248
+ var interactiveFlagSlot = singleton("InteractiveFlag");
55234
55249
  // ../common/src/option-validators.ts
55235
55250
  function parseLimit(raw, _previous) {
55236
55251
  return parseBoundedInt(raw, "--limit", { min: 1, max: 1e4 });
@@ -56727,6 +56742,10 @@ var getAuthContext = async (options = {}) => {
56727
56742
  tenantName
56728
56743
  };
56729
56744
  };
56745
+
56746
+ // ../auth/src/index.ts
56747
+ init_constants();
56748
+
56730
56749
  // ../auth/src/interactive.ts
56731
56750
  init_src();
56732
56751
 
@@ -121890,7 +121909,7 @@ class TextApiResponse {
121890
121909
  var package_default = {
121891
121910
  name: "@uipath/integrationservice-sdk",
121892
121911
  license: "MIT",
121893
- version: "1.197.0",
121912
+ version: "1.198.0-preview.80",
121894
121913
  repository: {
121895
121914
  type: "git",
121896
121915
  url: "https://github.com/UiPath/cli.git",
@@ -127630,6 +127649,20 @@ var API_DOMAIN_MAP = new Map([
127630
127649
  [SessionsApi, "connections"],
127631
127650
  [ElementsApi, "elements"]
127632
127651
  ]);
127652
+ function baseApiClassName(name) {
127653
+ let end = name.length;
127654
+ while (end > 0 && name[end - 1] >= "0" && name[end - 1] <= "9") {
127655
+ end--;
127656
+ }
127657
+ return name.slice(0, end);
127658
+ }
127659
+ var API_DOMAIN_BY_NAME = new Map([...API_DOMAIN_MAP].map(([ApiClass, domain3]) => [
127660
+ baseApiClassName(ApiClass.name),
127661
+ domain3
127662
+ ]));
127663
+ function resolveApiDomain(ApiClass) {
127664
+ return API_DOMAIN_MAP.get(ApiClass) ?? API_DOMAIN_BY_NAME.get(baseApiClassName(ApiClass.name));
127665
+ }
127633
127666
  async function getValidatedAuthContext(options) {
127634
127667
  const ctx = await getAuthContext({
127635
127668
  tenant: options?.tenant,
@@ -127666,7 +127699,7 @@ async function createElementsConfig(options) {
127666
127699
  });
127667
127700
  }
127668
127701
  async function createApiClient(ApiClass, options) {
127669
- const domain3 = API_DOMAIN_MAP.get(ApiClass);
127702
+ const domain3 = resolveApiDomain(ApiClass);
127670
127703
  if (!domain3) {
127671
127704
  throw new Error(`Unknown API class: ${ApiClass.name}`);
127672
127705
  }
@@ -129029,7 +129062,9 @@ var ENABLED_MANIFEST_FLAGS = new Set([
129029
129062
  MANIFEST_FEATURE_FLAGS.CONNECTOR_NODES,
129030
129063
  MANIFEST_FEATURE_FLAGS.EXTRACT_DOCUMENT,
129031
129064
  MANIFEST_FEATURE_FLAGS.HITL,
129032
- MANIFEST_FEATURE_FLAGS.LOOP_CONTAINER
129065
+ MANIFEST_FEATURE_FLAGS.LOOP_CONTAINER,
129066
+ MANIFEST_FEATURE_FLAGS.BATCH_TRANSFORM,
129067
+ MANIFEST_FEATURE_FLAGS.SUMMARIZE
129033
129068
  ]);
129034
129069
  async function pullRemoteNodes() {
129035
129070
  const loginStatus2 = await getLoginStatusAsync();
@@ -129859,7 +129894,7 @@ class VoidApiResponse3 {
129859
129894
  var package_default2 = {
129860
129895
  name: "@uipath/orchestrator-sdk",
129861
129896
  license: "MIT",
129862
- version: "1.197.0",
129897
+ version: "1.198.0",
129863
129898
  repository: {
129864
129899
  type: "git",
129865
129900
  url: "https://github.com/UiPath/cli.git",
@@ -133609,4 +133644,4 @@ export {
133609
133644
  BPMN_SPEC
133610
133645
  };
133611
133646
 
133612
- //# debugId=17BC9D0610FF9CFF64756E2164756E21
133647
+ //# debugId=80F46144B2BAE46964756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/maestro-sdk",
3
3
  "license": "MIT",
4
- "version": "1.197.0",
4
+ "version": "1.198.0-preview.80",
5
5
  "description": "SDK for the UiPath Maestro (PIMS) API — process instance management.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -42,5 +42,5 @@
42
42
  "files": [
43
43
  "dist"
44
44
  ],
45
- "gitHead": "56f68b263cec4ea1f2a39d738bd99ecf52f88fea"
45
+ "gitHead": "9b2c3c0f21a256d2f38dd28bc97e72e6f7b10a9c"
46
46
  }