@uipath/apms-tool 1.197.0 → 1.198.0-preview.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -21247,7 +21247,7 @@ var {
21247
21247
  var package_default = {
21248
21248
  name: "@uipath/apms-tool",
21249
21249
  license: "MIT",
21250
- version: "1.197.0",
21250
+ version: "1.198.0-preview.81",
21251
21251
  description: "CLI plugin for the UiPath Access Policy Management Service.",
21252
21252
  private: false,
21253
21253
  repository: {
@@ -21655,7 +21655,7 @@ class VoidApiResponse {
21655
21655
  var package_default2 = {
21656
21656
  name: "@uipath/apms-sdk",
21657
21657
  license: "MIT",
21658
- version: "1.197.0",
21658
+ version: "1.198.0",
21659
21659
  description: "SDK for the UiPath Access Policy Management Service API.",
21660
21660
  repository: {
21661
21661
  type: "git",
@@ -23847,6 +23847,10 @@ function normalizeTokenRefreshUnavailableFailure() {
23847
23847
  function errorMessage(error) {
23848
23848
  return error instanceof Error ? error.message : String(error);
23849
23849
  }
23850
+
23851
+ // ../../auth/src/index.ts
23852
+ init_constants();
23853
+
23850
23854
  // ../../auth/src/interactive.ts
23851
23855
  init_src();
23852
23856
 
@@ -23966,8 +23970,15 @@ var TLS_ERROR_CODES = new Set([
23966
23970
  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.";
23967
23971
  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.";
23968
23972
  function describeConnectivityError(error) {
23969
- let current = error;
23970
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
23973
+ const queue = [error];
23974
+ const seen = new Set;
23975
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
23976
+ const current = queue.shift();
23977
+ if (current === null || typeof current !== "object")
23978
+ continue;
23979
+ if (seen.has(current))
23980
+ continue;
23981
+ seen.add(current);
23971
23982
  const cur = current;
23972
23983
  const code = typeof cur.code === "string" ? cur.code : undefined;
23973
23984
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -23987,7 +23998,10 @@ function describeConnectivityError(error) {
23987
23998
  instructions: NETWORK_INSTRUCTIONS
23988
23999
  };
23989
24000
  }
23990
- current = cur.cause;
24001
+ if (cur.cause !== undefined)
24002
+ queue.push(cur.cause);
24003
+ if (Array.isArray(cur.errors))
24004
+ queue.push(...cur.errors);
23991
24005
  }
23992
24006
  return;
23993
24007
  }
@@ -29176,6 +29190,7 @@ function getLogFilePath() {
29176
29190
  // ../../common/src/output-format-context.ts
29177
29191
  var formatSlot = singleton("OutputFormat");
29178
29192
  var formatExplicitSlot = singleton("OutputFormatExplicit");
29193
+ var helpRequestedSlot = singleton("HelpRequested");
29179
29194
  var filterSlot = singleton("OutputFilter");
29180
29195
  function getOutputFormat() {
29181
29196
  return formatSlot.get("json");
@@ -30237,6 +30252,9 @@ var OutputFormatter;
30237
30252
  if (opts?.warning) {
30238
30253
  data.Warning = opts.warning;
30239
30254
  }
30255
+ if (opts?.pagination) {
30256
+ data.Pagination = opts.pagination;
30257
+ }
30240
30258
  success(data);
30241
30259
  }
30242
30260
  OutputFormatter.emitList = emitList;
@@ -30684,6 +30702,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
30684
30702
  var DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
30685
30703
  // ../../common/src/interactivity-context.ts
30686
30704
  var modeSlot = singleton("InteractivityMode");
30705
+ var interactiveFlagSlot = singleton("InteractiveFlag");
30687
30706
  // ../../common/src/polling/types.ts
30688
30707
  var PollOutcome = {
30689
30708
  Completed: "completed",
@@ -30743,7 +30762,6 @@ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
30743
30762
  // ../../common/src/tool-provider.ts
30744
30763
  var factorySlot = singleton("PackagerFactoryProvider");
30745
30764
  // src/commands/_shared.ts
30746
- import { isIPv4 } from "node:net";
30747
30765
  init_src();
30748
30766
  var LOGIN_INSTRUCTIONS = "Ensure you are logged in with 'uip login' and have access to the Access Policy Management service.";
30749
30767
  var NON_NEGATIVE_INTEGER_RE = /^\d+$/;
@@ -30844,6 +30862,11 @@ async function fetchCurrentIp(loginValidity) {
30844
30862
  const ip = typeof candidate === "string" ? candidate : undefined;
30845
30863
  return { body, ip };
30846
30864
  }
30865
+ var IPV4_SEGMENT = "(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])";
30866
+ var IPV4_REGEX = new RegExp(`^(?:${IPV4_SEGMENT}\\.){3}${IPV4_SEGMENT}$`);
30867
+ function isIPv4(value) {
30868
+ return typeof value === "string" && IPV4_REGEX.test(value);
30869
+ }
30847
30870
  function ipInCidr(ip, cidr) {
30848
30871
  if (!isIPv4(ip))
30849
30872
  return false;
@@ -31884,4 +31907,4 @@ program2.name(metadata.commandPrefix).description(metadata.description).version(
31884
31907
  await registerCommands(program2);
31885
31908
  program2.parse(process.argv);
31886
31909
 
31887
- //# debugId=C928FF75B8C4F75364756E2164756E21
31910
+ //# debugId=B7FF189E9A0DE7F764756E2164756E21
package/dist/tool.js CHANGED
@@ -19137,7 +19137,7 @@ var init_server = __esm(() => {
19137
19137
  var package_default = {
19138
19138
  name: "@uipath/apms-tool",
19139
19139
  license: "MIT",
19140
- version: "1.197.0",
19140
+ version: "1.198.0-preview.81",
19141
19141
  description: "CLI plugin for the UiPath Access Policy Management Service.",
19142
19142
  private: false,
19143
19143
  repository: {
@@ -19545,7 +19545,7 @@ class VoidApiResponse {
19545
19545
  var package_default2 = {
19546
19546
  name: "@uipath/apms-sdk",
19547
19547
  license: "MIT",
19548
- version: "1.197.0",
19548
+ version: "1.198.0",
19549
19549
  description: "SDK for the UiPath Access Policy Management Service API.",
19550
19550
  repository: {
19551
19551
  type: "git",
@@ -21737,6 +21737,10 @@ function normalizeTokenRefreshUnavailableFailure() {
21737
21737
  function errorMessage(error) {
21738
21738
  return error instanceof Error ? error.message : String(error);
21739
21739
  }
21740
+
21741
+ // ../../auth/src/index.ts
21742
+ init_constants();
21743
+
21740
21744
  // ../../auth/src/interactive.ts
21741
21745
  init_src();
21742
21746
 
@@ -21856,8 +21860,15 @@ var TLS_ERROR_CODES = new Set([
21856
21860
  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.";
21857
21861
  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.";
21858
21862
  function describeConnectivityError(error) {
21859
- let current = error;
21860
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
21863
+ const queue = [error];
21864
+ const seen = new Set;
21865
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
21866
+ const current = queue.shift();
21867
+ if (current === null || typeof current !== "object")
21868
+ continue;
21869
+ if (seen.has(current))
21870
+ continue;
21871
+ seen.add(current);
21861
21872
  const cur = current;
21862
21873
  const code = typeof cur.code === "string" ? cur.code : undefined;
21863
21874
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -21877,7 +21888,10 @@ function describeConnectivityError(error) {
21877
21888
  instructions: NETWORK_INSTRUCTIONS
21878
21889
  };
21879
21890
  }
21880
- current = cur.cause;
21891
+ if (cur.cause !== undefined)
21892
+ queue.push(cur.cause);
21893
+ if (Array.isArray(cur.errors))
21894
+ queue.push(...cur.errors);
21881
21895
  }
21882
21896
  return;
21883
21897
  }
@@ -27067,6 +27081,7 @@ function getLogFilePath() {
27067
27081
  // ../../common/src/output-format-context.ts
27068
27082
  var formatSlot = singleton("OutputFormat");
27069
27083
  var formatExplicitSlot = singleton("OutputFormatExplicit");
27084
+ var helpRequestedSlot = singleton("HelpRequested");
27070
27085
  var filterSlot = singleton("OutputFilter");
27071
27086
  function getOutputFormat() {
27072
27087
  return formatSlot.get("json");
@@ -28128,6 +28143,9 @@ var OutputFormatter;
28128
28143
  if (opts?.warning) {
28129
28144
  data.Warning = opts.warning;
28130
28145
  }
28146
+ if (opts?.pagination) {
28147
+ data.Pagination = opts.pagination;
28148
+ }
28131
28149
  success(data);
28132
28150
  }
28133
28151
  OutputFormatter.emitList = emitList;
@@ -28578,6 +28596,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
28578
28596
  var DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
28579
28597
  // ../../common/src/interactivity-context.ts
28580
28598
  var modeSlot = singleton("InteractivityMode");
28599
+ var interactiveFlagSlot = singleton("InteractiveFlag");
28581
28600
  // ../../common/src/option-aliases.ts
28582
28601
  import { Option } from "commander";
28583
28602
  // ../../common/src/option-validators.ts
@@ -28642,7 +28661,6 @@ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
28642
28661
  // ../../common/src/tool-provider.ts
28643
28662
  var factorySlot = singleton("PackagerFactoryProvider");
28644
28663
  // src/commands/_shared.ts
28645
- import { isIPv4 } from "node:net";
28646
28664
  init_src();
28647
28665
  var LOGIN_INSTRUCTIONS = "Ensure you are logged in with 'uip login' and have access to the Access Policy Management service.";
28648
28666
  var NON_NEGATIVE_INTEGER_RE = /^\d+$/;
@@ -28743,6 +28761,11 @@ async function fetchCurrentIp(loginValidity) {
28743
28761
  const ip = typeof candidate === "string" ? candidate : undefined;
28744
28762
  return { body, ip };
28745
28763
  }
28764
+ var IPV4_SEGMENT = "(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])";
28765
+ var IPV4_REGEX = new RegExp(`^(?:${IPV4_SEGMENT}\\.){3}${IPV4_SEGMENT}$`);
28766
+ function isIPv4(value) {
28767
+ return typeof value === "string" && IPV4_REGEX.test(value);
28768
+ }
28746
28769
  function ipInCidr(ip, cidr) {
28747
28770
  if (!isIPv4(ip))
28748
28771
  return false;
@@ -29781,4 +29804,4 @@ export {
29781
29804
  metadata
29782
29805
  };
29783
29806
 
29784
- //# debugId=2A9D3D8CD652D6CF64756E2164756E21
29807
+ //# debugId=4D8AE11814BE7C7364756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/apms-tool",
3
3
  "license": "MIT",
4
- "version": "1.197.0",
4
+ "version": "1.198.0-preview.81",
5
5
  "description": "CLI plugin for the UiPath Access Policy Management Service.",
6
6
  "private": false,
7
7
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "56f68b263cec4ea1f2a39d738bd99ecf52f88fea"
29
+ "gitHead": "d6a326ee051d553694b61f4923bcf1719d2e5110"
30
30
  }