@uipath/admin-tool 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/tool.js +69 -30
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -23633,7 +23633,7 @@ var __require2 = /* @__PURE__ */ createRequire2(import.meta.url);
23633
23633
  var package_default = {
23634
23634
  name: "@uipath/admin-vpngateway-tool",
23635
23635
  license: "MIT",
23636
- version: "1.197.0",
23636
+ version: "1.198.0-preview.80",
23637
23637
  description: "CLI plugin for UiPath VPN Gateway management (Hypervisor service).",
23638
23638
  private: false,
23639
23639
  repository: {
@@ -42730,7 +42730,7 @@ class VoidApiResponse {
42730
42730
  var package_default2 = {
42731
42731
  name: "@uipath/admin-vpngateway-sdk",
42732
42732
  license: "MIT",
42733
- version: "1.197.0",
42733
+ version: "1.198.0",
42734
42734
  description: "SDK for the UiPath Hypervisor VPN Gateway management APIs.",
42735
42735
  repository: {
42736
42736
  type: "git",
@@ -44593,6 +44593,7 @@ function normalizeTokenRefreshUnavailableFailure() {
44593
44593
  function errorMessage(error) {
44594
44594
  return error instanceof Error ? error.message : String(error);
44595
44595
  }
44596
+ init_constants();
44596
44597
  init_src();
44597
44598
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
44598
44599
  var INVALID_TENANT_CODE = "INVALID_TENANT";
@@ -45453,8 +45454,15 @@ var TLS_ERROR_CODES = new Set([
45453
45454
  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.";
45454
45455
  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.";
45455
45456
  function describeConnectivityError(error) {
45456
- let current = error;
45457
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
45457
+ const queue = [error];
45458
+ const seen = new Set;
45459
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
45460
+ const current = queue.shift();
45461
+ if (current === null || typeof current !== "object")
45462
+ continue;
45463
+ if (seen.has(current))
45464
+ continue;
45465
+ seen.add(current);
45458
45466
  const cur = current;
45459
45467
  const code = typeof cur.code === "string" ? cur.code : undefined;
45460
45468
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -45474,7 +45482,10 @@ function describeConnectivityError(error) {
45474
45482
  instructions: NETWORK_INSTRUCTIONS
45475
45483
  };
45476
45484
  }
45477
- current = cur.cause;
45485
+ if (cur.cause !== undefined)
45486
+ queue.push(cur.cause);
45487
+ if (Array.isArray(cur.errors))
45488
+ queue.push(...cur.errors);
45478
45489
  }
45479
45490
  return;
45480
45491
  }
@@ -50676,6 +50687,7 @@ function getLogFilePath() {
50676
50687
  }
50677
50688
  var formatSlot = singleton2("OutputFormat");
50678
50689
  var formatExplicitSlot = singleton2("OutputFormatExplicit");
50690
+ var helpRequestedSlot = singleton2("HelpRequested");
50679
50691
  var filterSlot = singleton2("OutputFilter");
50680
50692
  function getOutputFormat() {
50681
50693
  return formatSlot.get("json");
@@ -51724,6 +51736,9 @@ var OutputFormatter;
51724
51736
  if (opts?.warning) {
51725
51737
  data.Warning = opts.warning;
51726
51738
  }
51739
+ if (opts?.pagination) {
51740
+ data.Pagination = opts.pagination;
51741
+ }
51727
51742
  success(data);
51728
51743
  }
51729
51744
  OutputFormatter2.emitList = emitList;
@@ -52207,6 +52222,7 @@ function instructionsFor(ctx, err) {
52207
52222
  }
52208
52223
  }
52209
52224
  var modeSlot = singleton2("InteractivityMode");
52225
+ var interactiveFlagSlot = singleton2("InteractiveFlag");
52210
52226
  var PollOutcome = {
52211
52227
  Completed: "completed",
52212
52228
  Timeout: "timeout",
@@ -53445,7 +53461,7 @@ var registerCommands = async (program2) => {
53445
53461
  var package_default3 = {
53446
53462
  name: "@uipath/apms-tool",
53447
53463
  license: "MIT",
53448
- version: "1.197.0",
53464
+ version: "1.198.0-preview.80",
53449
53465
  description: "CLI plugin for the UiPath Access Policy Management Service.",
53450
53466
  private: false,
53451
53467
  repository: {
@@ -53853,7 +53869,7 @@ class VoidApiResponse2 {
53853
53869
  var package_default5 = {
53854
53870
  name: "@uipath/apms-sdk",
53855
53871
  license: "MIT",
53856
- version: "1.197.0",
53872
+ version: "1.198.0",
53857
53873
  description: "SDK for the UiPath Access Policy Management Service API.",
53858
53874
  repository: {
53859
53875
  type: "git",
@@ -56077,6 +56093,10 @@ var getAuthContext = async (options = {}) => {
56077
56093
  tenantName
56078
56094
  };
56079
56095
  };
56096
+
56097
+ // ../../auth/src/index.ts
56098
+ init_constants2();
56099
+
56080
56100
  // ../../auth/src/interactive.ts
56081
56101
  init_src2();
56082
56102
 
@@ -56196,8 +56216,15 @@ var TLS_ERROR_CODES3 = new Set([
56196
56216
  var TLS_INSTRUCTIONS2 = "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.";
56197
56217
  var NETWORK_INSTRUCTIONS2 = "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.";
56198
56218
  function describeConnectivityError2(error) {
56199
- let current = error;
56200
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
56219
+ const queue = [error];
56220
+ const seen = new Set;
56221
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
56222
+ const current = queue.shift();
56223
+ if (current === null || typeof current !== "object")
56224
+ continue;
56225
+ if (seen.has(current))
56226
+ continue;
56227
+ seen.add(current);
56201
56228
  const cur = current;
56202
56229
  const code = typeof cur.code === "string" ? cur.code : undefined;
56203
56230
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -56217,7 +56244,10 @@ function describeConnectivityError2(error) {
56217
56244
  instructions: NETWORK_INSTRUCTIONS2
56218
56245
  };
56219
56246
  }
56220
- current = cur.cause;
56247
+ if (cur.cause !== undefined)
56248
+ queue.push(cur.cause);
56249
+ if (Array.isArray(cur.errors))
56250
+ queue.push(...cur.errors);
56221
56251
  }
56222
56252
  return;
56223
56253
  }
@@ -61406,6 +61436,7 @@ function getLogFilePath2() {
61406
61436
  // ../../common/src/output-format-context.ts
61407
61437
  var formatSlot2 = singleton3("OutputFormat");
61408
61438
  var formatExplicitSlot2 = singleton3("OutputFormatExplicit");
61439
+ var helpRequestedSlot2 = singleton3("HelpRequested");
61409
61440
  var filterSlot2 = singleton3("OutputFilter");
61410
61441
  function getOutputFormat2() {
61411
61442
  return formatSlot2.get("json");
@@ -62467,6 +62498,9 @@ var OutputFormatter2;
62467
62498
  if (opts?.warning) {
62468
62499
  data.Warning = opts.warning;
62469
62500
  }
62501
+ if (opts?.pagination) {
62502
+ data.Pagination = opts.pagination;
62503
+ }
62470
62504
  success(data);
62471
62505
  }
62472
62506
  OutputFormatter.emitList = emitList;
@@ -62915,6 +62949,7 @@ var DEFAULT_PAGE_SIZE = 50;
62915
62949
  var DEFAULT_AUTH_TIMEOUT_MS3 = 5 * 60 * 1000;
62916
62950
  // ../../common/src/interactivity-context.ts
62917
62951
  var modeSlot2 = singleton3("InteractivityMode");
62952
+ var interactiveFlagSlot2 = singleton3("InteractiveFlag");
62918
62953
  // ../../common/src/option-aliases.ts
62919
62954
  function resolveDeprecatedOptionAlias({
62920
62955
  preferredValue,
@@ -63032,7 +63067,6 @@ var shippedKeysSlot2 = singleton3("ShipSucceededDedupeKeys");
63032
63067
  // ../../common/src/tool-provider.ts
63033
63068
  var factorySlot2 = singleton3("PackagerFactoryProvider");
63034
63069
  // ../apms-tool/src/commands/_shared.ts
63035
- import { isIPv4 } from "node:net";
63036
63070
  init_src2();
63037
63071
  var LOGIN_INSTRUCTIONS3 = "Ensure you are logged in with 'uip login' and have access to the Access Policy Management service.";
63038
63072
  var NON_NEGATIVE_INTEGER_RE = /^\d+$/;
@@ -63133,6 +63167,11 @@ async function fetchCurrentIp(loginValidity) {
63133
63167
  const ip = typeof candidate === "string" ? candidate : undefined;
63134
63168
  return { body, ip };
63135
63169
  }
63170
+ var IPV4_SEGMENT = "(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])";
63171
+ var IPV4_REGEX = new RegExp(`^(?:${IPV4_SEGMENT}\\.){3}${IPV4_SEGMENT}$`);
63172
+ function isIPv4(value) {
63173
+ return typeof value === "string" && IPV4_REGEX.test(value);
63174
+ }
63136
63175
  function ipInCidr(ip, cidr) {
63137
63176
  if (!isIPv4(ip))
63138
63177
  return false;
@@ -64170,7 +64209,7 @@ var registerCommands2 = async (program2) => {
64170
64209
  var package_default6 = {
64171
64210
  name: "@uipath/audit-tool",
64172
64211
  license: "MIT",
64173
- version: "1.197.0",
64212
+ version: "1.198.0-preview.80",
64174
64213
  description: "CLI plugin for the UiPath Audit Service — query event sources, paginate events, and export ZIPs from the long-term store.",
64175
64214
  private: false,
64176
64215
  repository: {
@@ -64467,7 +64506,7 @@ class VoidApiResponse3 {
64467
64506
  var package_default7 = {
64468
64507
  name: "@uipath/audit-sdk",
64469
64508
  license: "MIT",
64470
- version: "1.197.0",
64509
+ version: "1.198.0",
64471
64510
  description: "SDK for the UiPath Audit Service — query audit event sources, list events, and download long-term-store exports.",
64472
64511
  repository: {
64473
64512
  type: "git",
@@ -64916,23 +64955,23 @@ async function downloadChunkedJsonExport(api, from, to) {
64916
64955
  return { files, days, nonEmptyDays };
64917
64956
  }
64918
64957
  var PREFERRED_CSV_COLUMNS = [
64919
- "Id",
64920
- "CreatedOn",
64958
+ "Identifier",
64959
+ "DateCreatedUtc",
64921
64960
  "OrganizationId",
64922
64961
  "OrganizationName",
64923
64962
  "TenantId",
64924
64963
  "TenantName",
64925
64964
  "ActorId",
64926
- "ActorName",
64965
+ "User",
64927
64966
  "ActorEmail",
64928
64967
  "ActorDetails",
64929
- "EventType",
64930
- "EventSource",
64931
- "EventTarget",
64968
+ "Action",
64969
+ "Source",
64970
+ "Category",
64932
64971
  "EventDetails",
64933
64972
  "EventSummary",
64934
64973
  "Status",
64935
- "ClientInfo"
64974
+ "ClientInformation"
64936
64975
  ];
64937
64976
  function parseDailyEvents(data, isoDay, fileName) {
64938
64977
  let text = data.toString("utf8");
@@ -65427,7 +65466,7 @@ var registerCommands3 = async (program2) => {
65427
65466
  var package_default8 = {
65428
65467
  name: "@uipath/authz-tool",
65429
65468
  license: "MIT",
65430
- version: "1.197.0",
65469
+ version: "1.198.0-preview.80",
65431
65470
  description: "CLI plugin for the UiPath Authorization service.",
65432
65471
  private: false,
65433
65472
  repository: {
@@ -65725,7 +65764,7 @@ class VoidApiResponse4 {
65725
65764
  var package_default9 = {
65726
65765
  name: "@uipath/authz-sdk",
65727
65766
  license: "MIT",
65728
- version: "1.197.0",
65767
+ version: "1.198.0",
65729
65768
  description: "SDK for the UiPath Authorization Service API.",
65730
65769
  repository: {
65731
65770
  type: "git",
@@ -66584,7 +66623,7 @@ class TextApiResponse {
66584
66623
  var package_default10 = {
66585
66624
  name: "@uipath/identity-sdk",
66586
66625
  license: "MIT",
66587
- version: "1.197.0",
66626
+ version: "1.198.0",
66588
66627
  repository: {
66589
66628
  type: "git",
66590
66629
  url: "https://github.com/UiPath/cli.git",
@@ -71038,7 +71077,7 @@ var registerCommands4 = async (program2) => {
71038
71077
  var package_default11 = {
71039
71078
  name: "@uipath/identity-tool",
71040
71079
  license: "MIT",
71041
- version: "1.197.0",
71080
+ version: "1.198.0-preview.80",
71042
71081
  description: "Manage Identity Server users, groups, robot accounts, and external apps.",
71043
71082
  private: false,
71044
71083
  repository: {
@@ -73407,7 +73446,7 @@ var registerCommands5 = async (program2) => {
73407
73446
  var package_default12 = {
73408
73447
  name: "@uipath/oms-tool",
73409
73448
  license: "MIT",
73410
- version: "1.197.0",
73449
+ version: "1.198.0-preview.80",
73411
73450
  description: "CLI plugin for the UiPath Organization Management Service.",
73412
73451
  private: false,
73413
73452
  repository: {
@@ -74265,7 +74304,7 @@ function querystringSingleKey8(key, value, keyPrefix = "") {
74265
74304
  var package_default13 = {
74266
74305
  name: "@uipath/oms-sdk",
74267
74306
  license: "MIT",
74268
- version: "1.197.0",
74307
+ version: "1.198.0",
74269
74308
  description: "SDK for the UiPath Organization Management Service API.",
74270
74309
  repository: {
74271
74310
  type: "git",
@@ -79938,7 +79977,7 @@ var registerCommands6 = async (program2) => {
79938
79977
  var package_default14 = {
79939
79978
  name: "@uipath/resourcecatalog-tool",
79940
79979
  license: "MIT",
79941
- version: "1.197.0",
79980
+ version: "1.198.0-preview.80",
79942
79981
  description: "CLI plugin for the UiPath Resource Catalog Service.",
79943
79982
  private: false,
79944
79983
  repository: {
@@ -80233,7 +80272,7 @@ class VoidApiResponse8 {
80233
80272
  var package_default15 = {
80234
80273
  name: "@uipath/resourcecatalog-sdk",
80235
80274
  license: "MIT",
80236
- version: "1.197.0",
80275
+ version: "1.198.0",
80237
80276
  description: "SDK for the UiPath Resource Catalog Service API.",
80238
80277
  repository: {
80239
80278
  type: "git",
@@ -81886,7 +81925,7 @@ var registerCommands7 = async (program2) => {
81886
81925
  var package_default16 = {
81887
81926
  name: "@uipath/admin-tool",
81888
81927
  license: "MIT",
81889
- version: "1.197.0",
81928
+ version: "1.198.0-preview.80",
81890
81929
  description: "Manage UiPath admin resources — Identity Server, Resource Catalog Service, Audit Service, VPN Gateway.",
81891
81930
  private: false,
81892
81931
  repository: {
@@ -81951,4 +81990,4 @@ export {
81951
81990
  metadata8 as metadata
81952
81991
  };
81953
81992
 
81954
- //# debugId=FAD90939F29C5B9464756E2164756E21
81993
+ //# debugId=56A775EAAC9C59A164756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/admin-tool",
3
3
  "license": "MIT",
4
- "version": "1.197.0",
4
+ "version": "1.198.0-preview.80",
5
5
  "description": "Manage UiPath admin resources — Identity Server, Resource Catalog Service, Audit Service, VPN Gateway.",
6
6
  "private": false,
7
7
  "repository": {
@@ -23,5 +23,5 @@
23
23
  "files": [
24
24
  "dist"
25
25
  ],
26
- "gitHead": "56f68b263cec4ea1f2a39d738bd99ecf52f88fea"
26
+ "gitHead": "9b2c3c0f21a256d2f38dd28bc97e72e6f7b10a9c"
27
27
  }