@uipath/insights-tool 1.206.0-preview.303 → 1.207.0-preview.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  getFileSystem,
3
3
  catchError,
4
- describePermissionError,
5
4
  RESULTS,
5
+ describePermissionError,
6
6
  OutputFormatter,
7
7
  InsightsHttpError,
8
8
  MAESTRO_DASHBOARD_SOURCE_TYPE,
9
9
  resolveInsightsConfig,
10
10
  writeInsightsFailure
11
- } from "./tool-y6tas8j3.js";
11
+ } from "./tool-bd8es9mh.js";
12
12
  import {
13
13
  findUnknownTables,
14
14
  serializeJsonFile,
@@ -26,7 +26,7 @@ import {
26
26
  defaultedFilterValuesSentence,
27
27
  projectWriteOutcome,
28
28
  postDashboardCreate
29
- } from "./tool-1n1400dg.js";
29
+ } from "./tool-3gnhga9n.js";
30
30
  import {
31
31
  FROM_PROCESS_KEY_FLAG,
32
32
  TO_PROCESS_KEY_FLAG
@@ -327,4 +327,4 @@ export {
327
327
  executeDashboardCopy
328
328
  };
329
329
 
330
- //# debugId=A637A5121EB014C064756E2164756E21
330
+ //# debugId=68DA5CBC39449FA264756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  catchError,
3
- describeConnectivityError,
4
3
  RESULTS,
4
+ describeConnectivityError,
5
5
  OutputFormatter,
6
6
  requireConfirmation,
7
7
  MODEL_NOT_FOUND_LABEL,
@@ -21,12 +21,12 @@ import {
21
21
  writeInsightsError,
22
22
  asRecord,
23
23
  pickScalar
24
- } from "./tool-y6tas8j3.js";
24
+ } from "./tool-bd8es9mh.js";
25
25
  import {
26
26
  AlertContractError,
27
27
  ALERTS_FAMILY,
28
28
  projectAlertDefinition
29
- } from "./tool-34yn1h41.js";
29
+ } from "./tool-grrx91m5.js";
30
30
  import {
31
31
  writeJsonFile,
32
32
  DASHBOARDS_FAMILY,
@@ -43,7 +43,7 @@ import {
43
43
  readSlot,
44
44
  readBackFailure,
45
45
  writeReadBackFailed
46
- } from "./tool-1n1400dg.js";
46
+ } from "./tool-3gnhga9n.js";
47
47
 
48
48
  // src/utils/dashboard-delete.ts
49
49
  function confirmationOperation(target) {
@@ -437,4 +437,4 @@ export {
437
437
  executeDashboardDelete
438
438
  };
439
439
 
440
- //# debugId=A42FB3A68AC54B1464756E2164756E21
440
+ //# debugId=207F57749177856B64756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  catchError,
3
- describeConnectivityError,
4
3
  RESULTS,
4
+ describeConnectivityError,
5
5
  OutputFormatter,
6
6
  UPDATE_BACKEND_FAILURE_LABEL,
7
7
  InsightsHttpError,
@@ -15,7 +15,7 @@ import {
15
15
  resolveInsightsConfig,
16
16
  writeInsightsFailure,
17
17
  writeInsightsError
18
- } from "./tool-y6tas8j3.js";
18
+ } from "./tool-bd8es9mh.js";
19
19
  import {
20
20
  findBodyTenantMismatch,
21
21
  DEFINITION_FILE_RECOVERY,
@@ -38,7 +38,7 @@ import {
38
38
  readAoDashboard,
39
39
  readSlot,
40
40
  writeReadBackFailed
41
- } from "./tool-1n1400dg.js";
41
+ } from "./tool-3gnhga9n.js";
42
42
 
43
43
  // src/utils/dashboard-update.ts
44
44
  var VERSION_CAVEAT = "The --expected-version check is a best-effort client-side compare, not server concurrency control: this route accepts no If-Match or version precondition, so a write landing between the preflight read and the PUT is not detected and the last writer wins.";
@@ -454,4 +454,4 @@ export {
454
454
  executeDashboardUpdate
455
455
  };
456
456
 
457
- //# debugId=845851A32A19BFC764756E2164756E21
457
+ //# debugId=DD071CABC99961EE64756E2164756E21
@@ -18,10 +18,10 @@ import {
18
18
  executeInsightsGet,
19
19
  asRecord,
20
20
  createContractGuards
21
- } from "./tool-y6tas8j3.js";
21
+ } from "./tool-bd8es9mh.js";
22
22
  import {
23
23
  unwrapPortalEnvelope
24
- } from "./tool-drpx0zdr.js";
24
+ } from "./tool-2e58spmc.js";
25
25
 
26
26
  // src/utils/export-configurations.ts
27
27
  class ExportContractError extends Error {
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Command
4
- } from "./tool-y6tas8j3.js";
5
- import"./tool-34yn1h41.js";
6
- import"./tool-1n1400dg.js";
4
+ } from "./tool-bd8es9mh.js";
5
+ import"./tool-grrx91m5.js";
6
+ import"./tool-3gnhga9n.js";
7
7
  import {
8
8
  metadata2,
9
9
  registerCommands2
10
- } from "./tool-98dsvwwz.js";
11
- import"./tool-drpx0zdr.js";
10
+ } from "./tool-kt1pmefg.js";
11
+ import"./tool-2e58spmc.js";
12
12
 
13
13
  // src/index.ts
14
14
  var program = new Command;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  asRecord
3
- } from "./tool-y6tas8j3.js";
3
+ } from "./tool-bd8es9mh.js";
4
4
 
5
5
  // src/utils/portal-envelope.ts
6
6
  function unwrapPortalEnvelope(raw, subject, newError) {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getFileSystem,
3
3
  catchError,
4
- describeConnectivityError,
5
4
  RESULTS,
5
+ describeConnectivityError,
6
6
  OutputFormatter,
7
7
  MODEL_NOT_FOUND_LABEL,
8
8
  VALIDATION_FAILED_LABEL,
@@ -31,7 +31,7 @@ import {
31
31
  executeInsightsList,
32
32
  isRecord,
33
33
  asRecord
34
- } from "./tool-y6tas8j3.js";
34
+ } from "./tool-bd8es9mh.js";
35
35
 
36
36
  // src/utils/validate.ts
37
37
  var TIME_GROUPING_SIZES = ["FifteenMinutes", "Hour", "Day"];
@@ -1241,4 +1241,4 @@ async function sendCreate(config, prepared, slot) {
1241
1241
 
1242
1242
  export { TIME_GROUPING_SIZES, validateTimeSelection, findBodyTenantMismatch, CHART_TYPES, DEFINITION_FILE_RECOVERY, INT32_MAX, sanitizeDashboardDefinition, findRendererFault, findUnknownTables, findDashboardInputFault, readJsonFile, serializeJsonFile, writeJsonFile, DASHBOARDS_FAMILY, isSavedDashboardId, trimDashboardId, requireDashboardId, shellQuote, sourceTypeFlag, trimOption, resolveSourceType, RENDER_CAVEAT, classifyDashboardWrite400Branch, dashboardWrite400Failure, writeUnknownWriteOutcome, countCharts, caseFlag, slotReadCommand, writeDashboardGetError, executeDashboardGet, executeDashboardFiltersList, readAoDashboard, readSlot, writeSlotOccupied, nothingWritten, prepareDefinition, modelTableIds, modelFieldIds, readBackFailure, writeReadBackFailed, defaultedFilterValuesSentence, executeDashboardCreate, projectWriteOutcome, postDashboardCreate };
1243
1243
 
1244
- //# debugId=B57DF5461645A5AD64756E2164756E21
1244
+ //# debugId=A0BED68E7DD1F13A64756E2164756E21
@@ -2127,12 +2127,26 @@ class NodeFileSystem {
2127
2127
  throw error;
2128
2128
  }
2129
2129
  }
2130
- async writeFile(filePath, data) {
2130
+ async writeFile(filePath, data, options) {
2131
2131
  const dir = path.dirname(filePath);
2132
2132
  if (dir) {
2133
2133
  await fs.mkdir(dir, { recursive: true });
2134
2134
  }
2135
- await fs.writeFile(filePath, data);
2135
+ if (options?.mode === undefined || process.platform === "win32") {
2136
+ if (options?.exclusive) {
2137
+ await fs.writeFile(filePath, data, { flag: "wx" });
2138
+ } else {
2139
+ await fs.writeFile(filePath, data);
2140
+ }
2141
+ return;
2142
+ }
2143
+ const handle = await fs.open(filePath, options.exclusive ? "wx" : "w", options.mode);
2144
+ try {
2145
+ await handle.chmod(options.mode);
2146
+ await handle.writeFile(data);
2147
+ } finally {
2148
+ await handle.close();
2149
+ }
2136
2150
  }
2137
2151
  async appendFile(filePath, data) {
2138
2152
  const dir = path.dirname(filePath);
@@ -2167,7 +2181,8 @@ class NodeFileSystem {
2167
2181
  isDirectory: () => stats.isDirectory(),
2168
2182
  size: stats.size,
2169
2183
  mtimeMs: stats.mtimeMs,
2170
- ctimeMs: stats.ctimeMs
2184
+ ctimeMs: stats.ctimeMs,
2185
+ mode: stats.mode
2171
2186
  };
2172
2187
  } catch (error) {
2173
2188
  if (this.isEnoent(error))
@@ -2178,8 +2193,13 @@ class NodeFileSystem {
2178
2193
  async exists(filePath) {
2179
2194
  return existsSync(filePath);
2180
2195
  }
2181
- async mkdir(dirPath) {
2182
- await fs.mkdir(dirPath, { recursive: true });
2196
+ async mkdir(dirPath, options) {
2197
+ await fs.mkdir(dirPath, { recursive: true, mode: options?.mode });
2198
+ }
2199
+ async chmod(targetPath, mode) {
2200
+ if (process.platform === "win32")
2201
+ return;
2202
+ await fs.chmod(targetPath, mode);
2183
2203
  }
2184
2204
  async acquireLock(lockPath) {
2185
2205
  const canonicalPath = await this.canonicalizeLockTarget(lockPath);
@@ -2329,7 +2349,7 @@ class NodeFileSystem {
2329
2349
  async getTempDir() {
2330
2350
  return await fs.mkdtemp(path.join(os.tmpdir(), "uipath-fs-"));
2331
2351
  }
2332
- async copyDirectory(sourcePath, destPath) {
2352
+ async copyDirectory(sourcePath, destPath, options) {
2333
2353
  const sourceStats = await this.stat(sourcePath);
2334
2354
  if (!sourceStats) {
2335
2355
  throw new Error(`Source directory does not exist: ${sourcePath}`);
@@ -2346,7 +2366,9 @@ class NodeFileSystem {
2346
2366
  if (!entryStats)
2347
2367
  continue;
2348
2368
  if (entryStats.isDirectory()) {
2349
- await this.copyDirectory(srcEntry, destEntry);
2369
+ if (options?.skipDirectoryNames?.includes(entry))
2370
+ continue;
2371
+ await this.copyDirectory(srcEntry, destEntry, options);
2350
2372
  } else if (entryStats.isFile()) {
2351
2373
  const content = await this.readFile(srcEntry);
2352
2374
  if (content !== null) {
@@ -2409,13 +2431,15 @@ var ProjectDimensions = {
2409
2431
  SolutionKey: "SolutionKey",
2410
2432
  SolutionProjectKey: "SolutionProjectKey",
2411
2433
  SolutionIdentityStatus: "SolutionIdentityStatus",
2412
- PreviousSolutionKey: "PreviousSolutionKey"
2434
+ PreviousSolutionKey: "PreviousSolutionKey",
2435
+ PreviousProjectKey: "PreviousProjectKey"
2413
2436
  };
2414
2437
  var GUID_KEY_DIMENSIONS = new Set([
2415
2438
  ProjectDimensions.ProjectKey,
2416
2439
  ProjectDimensions.SolutionKey,
2417
2440
  ProjectDimensions.SolutionProjectKey,
2418
- ProjectDimensions.PreviousSolutionKey
2441
+ ProjectDimensions.PreviousSolutionKey,
2442
+ ProjectDimensions.PreviousProjectKey
2419
2443
  ]);
2420
2444
  var ShipDimensions = {
2421
2445
  ShipKind: "ShipKind",
@@ -2569,9 +2593,7 @@ async function withinProjectIdentityBudget(work, onTimeout) {
2569
2593
  }
2570
2594
  }
2571
2595
 
2572
- // ../common/src/telemetry/pseudonymize.ts
2573
- var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
2574
- var PSEUDONYM_HEX_LENGTH = 32;
2596
+ // ../common/src/sha256.ts
2575
2597
  var SHA256_K = new Uint32Array([
2576
2598
  1116352408,
2577
2599
  1899447441,
@@ -2651,7 +2673,7 @@ var SHA256_INITIAL_STATE = new Uint32Array([
2651
2673
  function rotr(value, bits) {
2652
2674
  return (value >>> bits | value << 32 - bits) >>> 0;
2653
2675
  }
2654
- function sha256Hex(input) {
2676
+ function sha256Words(input) {
2655
2677
  const bytes = new TextEncoder().encode(input);
2656
2678
  const paddedLength = bytes.length + 9 + 63 >> 6 << 6;
2657
2679
  const buffer = new Uint8Array(paddedLength);
@@ -2707,12 +2729,19 @@ function sha256Hex(input) {
2707
2729
  state[6] = state[6] + g >>> 0;
2708
2730
  state[7] = state[7] + h >>> 0;
2709
2731
  }
2732
+ return state;
2733
+ }
2734
+ function sha256Hex(input) {
2710
2735
  let hex = "";
2711
- for (const word of state) {
2736
+ for (const word of sha256Words(input)) {
2712
2737
  hex += word.toString(16).padStart(8, "0");
2713
2738
  }
2714
2739
  return hex;
2715
2740
  }
2741
+
2742
+ // ../common/src/telemetry/pseudonymize.ts
2743
+ var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
2744
+ var PSEUDONYM_HEX_LENGTH = 32;
2716
2745
  function resolveSha256Hex() {
2717
2746
  try {
2718
2747
  const nodeCrypto = __require("node:crypto");
@@ -3108,13 +3137,25 @@ function settlePromiseLike(thenable) {
3108
3137
  return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [toError(error), undefined]);
3109
3138
  }
3110
3139
 
3140
+ // ../common/src/result-types.ts
3141
+ var RESULTS = {
3142
+ Success: "Success",
3143
+ Failure: "Failure",
3144
+ ConfigError: "ConfigError",
3145
+ AuthenticationError: "AuthenticationError",
3146
+ ValidationError: "ValidationError",
3147
+ TimeoutError: "TimeoutError"
3148
+ };
3149
+
3111
3150
  // ../common/src/error-codes.ts
3112
3151
  var CLI_ERROR_CODES = [
3113
3152
  "invalid_argument",
3153
+ "confirmation_required",
3114
3154
  "authentication_required",
3115
3155
  "permission_denied",
3116
3156
  "local_permission_denied",
3117
3157
  "not_found",
3158
+ "not_enabled",
3118
3159
  "rate_limited",
3119
3160
  "network_error",
3120
3161
  "timeout",
@@ -3153,6 +3194,12 @@ function carriedRetry(error) {
3153
3194
  const retry = error.retry;
3154
3195
  return isRetryHint(retry) ? retry : undefined;
3155
3196
  }
3197
+ function carriedResult(error) {
3198
+ if (!error || typeof error !== "object")
3199
+ return;
3200
+ const result = error.result;
3201
+ return typeof result === "string" && result !== RESULTS.Success && Object.values(RESULTS).includes(result) ? result : undefined;
3202
+ }
3156
3203
  function defaultRetryForErrorCode(errorCode) {
3157
3204
  switch (errorCode) {
3158
3205
  case "network_error":
@@ -3542,6 +3589,8 @@ async function extractErrorDetails(error, options) {
3542
3589
  }
3543
3590
  if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
3544
3591
  context.errorCode = parsedBody.errorCode;
3592
+ } else if (typeof parsedBody?.errorCode === "number") {
3593
+ context.errorCode = String(parsedBody.errorCode);
3545
3594
  } else if (parsedBody?.code && typeof parsedBody.code === "string") {
3546
3595
  context.errorCode = parsedBody.code;
3547
3596
  }
@@ -3599,16 +3648,6 @@ async function extractErrorDetails(error, options) {
3599
3648
  };
3600
3649
  }
3601
3650
 
3602
- // ../common/src/result-types.ts
3603
- var RESULTS = {
3604
- Success: "Success",
3605
- Failure: "Failure",
3606
- ConfigError: "ConfigError",
3607
- AuthenticationError: "AuthenticationError",
3608
- ValidationError: "ValidationError",
3609
- TimeoutError: "TimeoutError"
3610
- };
3611
-
3612
3651
  // ../../node_modules/commander/index.js
3613
3652
  var exports_commander = {};
3614
3653
  __exportCjs(exports_commander, {
@@ -4023,7 +4062,10 @@ var AUTH_ERROR_CODES = new Set([
4023
4062
  var LOCAL_PERMISSION_CLI_ERROR_CODES = new Set([
4024
4063
  "local_permission_denied"
4025
4064
  ]);
4026
- var VALIDATION_ERROR_CODES = new Set(["invalid_argument"]);
4065
+ var VALIDATION_ERROR_CODES = new Set([
4066
+ "invalid_argument",
4067
+ "confirmation_required"
4068
+ ]);
4027
4069
  var NETWORK_HTTP_ERROR_CODES = new Set([
4028
4070
  "network_error",
4029
4071
  "rate_limited",
@@ -4249,6 +4291,109 @@ var CommonTelemetryEvents = {
4249
4291
  ShipSucceeded: "Cli.ShipSucceeded"
4250
4292
  };
4251
4293
 
4294
+ // ../common/src/telemetry/global-telemetry-properties.ts
4295
+ var telemetryPropsSlot = singleton("TelemetryDefaultProps");
4296
+ function getGlobalTelemetryProperties() {
4297
+ return telemetryPropsSlot.get();
4298
+ }
4299
+
4300
+ // ../common/src/telemetry/trace-context.ts
4301
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
4302
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
4303
+ function getProcessEnv() {
4304
+ return globalThis.process?.env;
4305
+ }
4306
+ function parseInboundTraceparent(value) {
4307
+ if (!value) {
4308
+ return;
4309
+ }
4310
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
4311
+ if (!match) {
4312
+ return;
4313
+ }
4314
+ const [, traceId, parentSpanId] = match;
4315
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
4316
+ return;
4317
+ }
4318
+ return { traceId, parentSpanId };
4319
+ }
4320
+ function getInboundTraceContext() {
4321
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
4322
+ }
4323
+
4324
+ // ../common/src/telemetry/session-id.ts
4325
+ var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
4326
+ var SESSION_ID_MAX_LENGTH = 64;
4327
+ var RANDOM_SESSION_ID_LENGTH = 32;
4328
+ var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
4329
+ var CONTROL_CHARACTERS = /\p{Cc}/gu;
4330
+ var INHERITED_SESSION_SOURCES = [
4331
+ { envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
4332
+ { envVar: "CODEX_THREAD_ID", source: "codex" },
4333
+ { envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
4334
+ { envVar: "TERM_SESSION_ID", source: "terminal" },
4335
+ { envVar: "WT_SESSION", source: "terminal" }
4336
+ ];
4337
+ var telemetrySessionSlot = singleton("TelemetrySession");
4338
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
4339
+ function getProcessEnv2() {
4340
+ return globalThis.process?.env;
4341
+ }
4342
+ function normalizeSessionId(value) {
4343
+ if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
4344
+ return;
4345
+ }
4346
+ const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
4347
+ return cleaned || undefined;
4348
+ }
4349
+ function getConfiguredTelemetrySessionId() {
4350
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
4351
+ }
4352
+ function getInheritedSession(env) {
4353
+ for (const candidate of INHERITED_SESSION_SOURCES) {
4354
+ const handle = normalizeSessionId(env[candidate.envVar]);
4355
+ if (handle) {
4356
+ return { id: handle, source: candidate.source };
4357
+ }
4358
+ }
4359
+ return;
4360
+ }
4361
+ function generateRandomSession() {
4362
+ const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
4363
+ crypto.getRandomValues(bytes);
4364
+ let hex = "";
4365
+ for (const byte of bytes) {
4366
+ hex += byte.toString(16).padStart(2, "0");
4367
+ }
4368
+ return { id: hex, source: "random" };
4369
+ }
4370
+ function resolveTelemetrySession() {
4371
+ const existing = telemetrySessionSlot.get();
4372
+ if (existing) {
4373
+ return existing;
4374
+ }
4375
+ const declaredHandle = getConfiguredTelemetrySessionId();
4376
+ const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
4377
+ telemetrySessionSlot.set(resolved);
4378
+ return resolved;
4379
+ }
4380
+ function getTelemetrySessionId() {
4381
+ return resolveTelemetrySession().id;
4382
+ }
4383
+ function getTelemetrySessionSource() {
4384
+ return resolveTelemetrySession().source;
4385
+ }
4386
+ function getTelemetryOperationId() {
4387
+ const existing = telemetryOperationIdSlot.get();
4388
+ if (existing) {
4389
+ return existing;
4390
+ }
4391
+ const inboundTraceId = getInboundTraceContext()?.traceId;
4392
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
4393
+ telemetryOperationIdSlot.set(generated);
4394
+ return generated;
4395
+ }
4396
+
4252
4397
  // ../common/src/registry.ts
4253
4398
  import { execFileSync } from "node:child_process";
4254
4399
  function readRegistryValue(keyPath, valueName) {
@@ -4470,108 +4615,6 @@ class NodeContextStorage {
4470
4615
  return this.storage.getStore();
4471
4616
  }
4472
4617
  }
4473
- // ../common/src/telemetry/trace-context.ts
4474
- var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
4475
- var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
4476
- function getProcessEnv() {
4477
- return globalThis.process?.env;
4478
- }
4479
- function parseInboundTraceparent(value) {
4480
- if (!value) {
4481
- return;
4482
- }
4483
- const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
4484
- if (!match) {
4485
- return;
4486
- }
4487
- const [, traceId, parentSpanId] = match;
4488
- if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
4489
- return;
4490
- }
4491
- return { traceId, parentSpanId };
4492
- }
4493
- function getInboundTraceContext() {
4494
- return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
4495
- }
4496
-
4497
- // ../common/src/telemetry/session-id.ts
4498
- var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
4499
- var SESSION_ID_MAX_LENGTH = 64;
4500
- var RANDOM_SESSION_ID_LENGTH = 32;
4501
- var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
4502
- var CONTROL_CHARACTERS = /\p{Cc}/gu;
4503
- var INHERITED_SESSION_SOURCES = [
4504
- { envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
4505
- { envVar: "CODEX_THREAD_ID", source: "codex" },
4506
- { envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
4507
- { envVar: "TERM_SESSION_ID", source: "terminal" },
4508
- { envVar: "WT_SESSION", source: "terminal" }
4509
- ];
4510
- var telemetrySessionSlot = singleton("TelemetrySession");
4511
- var telemetryOperationIdSlot = singleton("TelemetryOperationId");
4512
- function getProcessEnv2() {
4513
- return globalThis.process?.env;
4514
- }
4515
- function normalizeSessionId(value) {
4516
- if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
4517
- return;
4518
- }
4519
- const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
4520
- return cleaned || undefined;
4521
- }
4522
- function getConfiguredTelemetrySessionId() {
4523
- return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
4524
- }
4525
- function getInheritedSession(env) {
4526
- for (const candidate of INHERITED_SESSION_SOURCES) {
4527
- const handle = normalizeSessionId(env[candidate.envVar]);
4528
- if (handle) {
4529
- return { id: handle, source: candidate.source };
4530
- }
4531
- }
4532
- return;
4533
- }
4534
- function generateRandomSession() {
4535
- const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
4536
- crypto.getRandomValues(bytes);
4537
- let hex = "";
4538
- for (const byte of bytes) {
4539
- hex += byte.toString(16).padStart(2, "0");
4540
- }
4541
- return { id: hex, source: "random" };
4542
- }
4543
- function resolveTelemetrySession() {
4544
- const existing = telemetrySessionSlot.get();
4545
- if (existing) {
4546
- return existing;
4547
- }
4548
- const declaredHandle = getConfiguredTelemetrySessionId();
4549
- const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
4550
- telemetrySessionSlot.set(resolved);
4551
- return resolved;
4552
- }
4553
- function getTelemetrySessionId() {
4554
- return resolveTelemetrySession().id;
4555
- }
4556
- function getTelemetrySessionSource() {
4557
- return resolveTelemetrySession().source;
4558
- }
4559
- function getTelemetryOperationId() {
4560
- const existing = telemetryOperationIdSlot.get();
4561
- if (existing) {
4562
- return existing;
4563
- }
4564
- const inboundTraceId = getInboundTraceContext()?.traceId;
4565
- const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
4566
- telemetryOperationIdSlot.set(generated);
4567
- return generated;
4568
- }
4569
- // ../common/src/telemetry/global-telemetry-properties.ts
4570
- var telemetryPropsSlot = singleton("TelemetryDefaultProps");
4571
- function getGlobalTelemetryProperties() {
4572
- return telemetryPropsSlot.get();
4573
- }
4574
-
4575
4618
  // ../common/src/telemetry/span-clock.ts
4576
4619
  function startSpanClock() {
4577
4620
  const started = performance.now();
@@ -4785,6 +4828,7 @@ var MAX_SPOOL_AGE_MS = 72 * 60 * 60 * 1000;
4785
4828
  // ../common/src/telemetry/telemetry-init.ts
4786
4829
  var telemetryInstanceSlot = singleton("TelemetryService");
4787
4830
  var DEFAULT_AI_CONNECTION_STRING = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
4831
+ var browserProviderSlot = singleton("BrowserAppInsightsTelemetryProvider");
4788
4832
  function getGlobalTelemetryInstance() {
4789
4833
  const existing = telemetryInstanceSlot.get();
4790
4834
  if (existing && typeof existing === "object" && "trackEvent" in existing && typeof existing.trackEvent === "function") {
@@ -5001,7 +5045,7 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
5001
5045
  const pagedRows = extractPagedRows(data.Data);
5002
5046
  const items = pagedRows ?? (Array.isArray(data.Data) ? data.Data : [data.Data]);
5003
5047
  items.forEach((item) => {
5004
- const values = Object.values(item).map((v) => v ?? "").join("\t");
5048
+ const values = item === null || typeof item !== "object" ? String(item ?? "") : Object.values(item).map((v) => v ?? "").join("\t");
5005
5049
  logFn(values);
5006
5050
  });
5007
5051
  } else {
@@ -5016,7 +5060,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
5016
5060
  default: {
5017
5061
  const hasData = "Data" in data && data.Data != null;
5018
5062
  const pagedRows = hasData ? extractPagedRows(data.Data) : null;
5019
- const rows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
5063
+ const resolvedRows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
5064
+ const rows = resolvedRows && isPrimitiveArray(resolvedRows) ? resolvedRows.map((entry) => ({ Value: entry })) : resolvedRows;
5020
5065
  if (hasData && !(rows !== null && rows.length === 0)) {
5021
5066
  const logValue = data.Log;
5022
5067
  if (rows !== null) {
@@ -5073,6 +5118,9 @@ function printTable(data, logFn, externalLogValue, tableRowStyle) {
5073
5118
  function isPlainObjectArray(value) {
5074
5119
  return Array.isArray(value) && value.length > 0 && value.every(isPlainRecord);
5075
5120
  }
5121
+ function isPrimitiveArray(value) {
5122
+ return Array.isArray(value) && value.length > 0 && value.every((entry) => entry === null || typeof entry !== "object");
5123
+ }
5076
5124
  function isNonEmptyPlainObject(value) {
5077
5125
  return isPlainRecord(value) && Object.keys(value).length > 0;
5078
5126
  }
@@ -5419,12 +5467,12 @@ class FilterEvaluationError extends Error {
5419
5467
  instructions;
5420
5468
  retry = "RetryWillNotFix";
5421
5469
  result = RESULTS.ValidationError;
5422
- constructor(filter, cause) {
5470
+ constructor(filter, cause, hint) {
5423
5471
  const underlying = cause instanceof Error ? cause.message : String(cause);
5424
- super(`Filter '${filter}' failed to evaluate: ${underlying}`);
5472
+ super(`Filter '${filter}' failed to evaluate: ${underlying}` + (hint ? ` ${hint.detail}` : ""));
5425
5473
  this.name = "FilterEvaluationError";
5426
5474
  this.filter = filter;
5427
- this.instructions = `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
5475
+ this.instructions = (hint ? `${hint.instructions} ` : "") + `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
5428
5476
  }
5429
5477
  }
5430
5478
 
@@ -5546,6 +5594,93 @@ function nameList(names, cap = 12) {
5546
5594
  const rest = names.length - shown.length;
5547
5595
  return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
5548
5596
  }
5597
+ function notFieldsOn(names, scope) {
5598
+ return `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
5599
+ }
5600
+ function failingFieldRead(ast, isList, fn, argIndex) {
5601
+ const [left, right, condition] = ast.children ?? [];
5602
+ let scopes = [];
5603
+ if (!isList) {
5604
+ scopes = [ast];
5605
+ } else if (ast.type === "FilterProjection" && left?.type === "Identity") {
5606
+ scopes = [condition, right];
5607
+ } else if (ast.type === "Projection" && (left?.type === "Identity" || left?.type === "Flatten" && left.children?.[0]?.type === "Identity")) {
5608
+ scopes = [right];
5609
+ }
5610
+ const reads = new Set;
5611
+ let tracked = 0;
5612
+ const visit = (node) => {
5613
+ if (!node)
5614
+ return;
5615
+ switch (node.type) {
5616
+ case "Function": {
5617
+ const arg = node.children?.[argIndex - 1];
5618
+ if (node.name === fn && arg?.type === "Field" && arg.name) {
5619
+ reads.add(arg.name);
5620
+ tracked++;
5621
+ }
5622
+ node.children?.forEach(visit);
5623
+ return;
5624
+ }
5625
+ case "AndExpression":
5626
+ case "OrExpression":
5627
+ case "NotExpression":
5628
+ case "Comparator":
5629
+ case "MultiSelectList":
5630
+ case "MultiSelectHash":
5631
+ node.children?.forEach(visit);
5632
+ return;
5633
+ case "KeyValuePair":
5634
+ visit(node.value);
5635
+ return;
5636
+ }
5637
+ };
5638
+ scopes.forEach(visit);
5639
+ const calls = (node) => {
5640
+ if (node === null || typeof node !== "object")
5641
+ return 0;
5642
+ const own = node.type === "Function" && node.name === fn ? 1 : 0;
5643
+ const next = node.type === "KeyValuePair" ? [node.value] : node.children ?? [];
5644
+ return own + next.reduce((sum, child) => sum + calls(child), 0);
5645
+ };
5646
+ return reads.size === 1 && tracked === calls(ast) ? [...reads][0] : undefined;
5647
+ }
5648
+ function fieldExpression(name) {
5649
+ return /^[A-Za-z_]\w*$/.test(name) ? name : JSON.stringify(name);
5650
+ }
5651
+ function evaluationHint(codec, filter, data, cause) {
5652
+ const underlying = cause instanceof Error ? cause.message : String(cause);
5653
+ const failure = /\b(\w+)\(\) expected argument (\d+) to be type (\S+) but received type null\b/.exec(underlying);
5654
+ if (!failure)
5655
+ return;
5656
+ const [, fn, position, expected] = failure;
5657
+ const name = failingFieldRead(codec.compile(filter), Array.isArray(data), fn, Number(position));
5658
+ if (name === undefined)
5659
+ return;
5660
+ const present = availableFields(data);
5661
+ if (present.length === 0)
5662
+ return;
5663
+ const scope = `${countRecords(data)} record(s)`;
5664
+ if (!present.includes(name)) {
5665
+ return {
5666
+ detail: `${notFieldsOn([name], scope)}. Available fields: ${nameList(present)}.`,
5667
+ instructions: "Use a field the records have; names are case-sensitive."
5668
+ };
5669
+ }
5670
+ const records = Array.isArray(data) ? data : [data];
5671
+ const unset = records.filter((r) => r?.[name] == null).length;
5672
+ const field = fieldExpression(name);
5673
+ let fallback;
5674
+ if (expected.split(",").includes("string")) {
5675
+ fallback = "''";
5676
+ } else if (expected.split(",").includes("array")) {
5677
+ fallback = "`[]`";
5678
+ }
5679
+ return {
5680
+ detail: `\`${name}\` is null or missing on ${unset} of the ${scope} it read.`,
5681
+ instructions: fallback ? `Give it a default where ${fn}() reads it, e.g. \`${field} || ${fallback}\`.` : `Filter out the records where \`${name}\` is null before ${fn}() reads it.`
5682
+ };
5683
+ }
5549
5684
  function buildFilterWarning(filter, data, outcome) {
5550
5685
  const present = availableFields(data);
5551
5686
  const refs = referencedFields(filter);
@@ -5553,7 +5688,7 @@ function buildFilterWarning(filter, data, outcome) {
5553
5688
  const unchecked = refs.nested.filter((name) => !present.includes(name));
5554
5689
  const count = countRecords(data);
5555
5690
  const scope = `${count} record(s)`;
5556
- const isNotAField = (names) => `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
5691
+ const isNotAField = (names) => notFieldsOn(names, scope);
5557
5692
  const soundness = unchecked.length > 0 ? `${nameList(unchecked)} ${unchecked.length === 1 ? "reads" : "read"} below the top level, so ${unchecked.length === 1 ? "it was" : "they were"} not checked against the record keys` : refs.top.length > 0 ? "every field it names exists" : "";
5558
5693
  const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
5559
5694
  let detail;
@@ -5604,7 +5739,8 @@ function applyFilter(data, filter, onWarning) {
5604
5739
  try {
5605
5740
  result = codec.search(data, filter);
5606
5741
  } catch (err) {
5607
- throw new FilterEvaluationError(filter, err);
5742
+ const [, hint] = catchError(() => evaluationHint(codec, filter, data, err));
5743
+ throw new FilterEvaluationError(filter, err, hint);
5608
5744
  }
5609
5745
  const inputCount = countRecords(data);
5610
5746
  const warn = (outcome) => {
@@ -6495,7 +6631,7 @@ Command.prototype.trackedAction = function(context, fn, properties) {
6495
6631
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
6496
6632
  const typed = error;
6497
6633
  const customInstructions = typeof typed.instructions === "string" ? typed.instructions : undefined;
6498
- const customResult = typeof typed.result === "string" && typed.result !== RESULTS.Success && Object.values(RESULTS).includes(typed.result) ? typed.result : undefined;
6634
+ const customResult = carriedResult(error);
6499
6635
  const cancellationExitCode = typed.exitCode === 130 || isPromptCancellation(error) ? 130 : undefined;
6500
6636
  const classified = cancellationExitCode === undefined ? await extractErrorDetails(error) : undefined;
6501
6637
  const finalResult = customResult ?? classified?.result ?? RESULTS.Failure;
@@ -6568,14 +6704,17 @@ Command.prototype.trackedAction = function(context, fn, properties) {
6568
6704
  };
6569
6705
 
6570
6706
  // ../common/src/confirmation.ts
6571
- function requireConfirmation(flags, operation) {
6707
+ function requireConfirmation(flags, operation, options) {
6572
6708
  if (flags.yes === true || flags.force === true) {
6573
6709
  return true;
6574
6710
  }
6711
+ const message = options?.reversible ? `Confirmation required: this will ${operation}.` : `Confirmation required: this will ${operation} and cannot be undone.`;
6575
6712
  OutputFormatter.error({
6576
6713
  Result: RESULTS.Failure,
6577
- Message: `Confirmation required: this will ${operation} and cannot be undone.`,
6578
- Instructions: "Re-run with --yes to confirm."
6714
+ Message: message,
6715
+ Instructions: options?.instructions ?? "Re-run with --yes to confirm.",
6716
+ ErrorCode: "confirmation_required",
6717
+ Retry: "RetryWillNotFix"
6579
6718
  });
6580
6719
  processContext.exit(1);
6581
6720
  return false;
@@ -6932,6 +7071,8 @@ var FAILURE_STATUSES = new Set([
6932
7071
  "canceled",
6933
7072
  "stopped"
6934
7073
  ]);
7074
+ // ../common/src/relayed-output.ts
7075
+ var RELAYED_OUTPUT_SYMBOL = Symbol.for("@uipath/common/relayed-output");
6935
7076
  // ../common/src/screen-logger.ts
6936
7077
  var ScreenLogger;
6937
7078
  ((ScreenLogger) => {
@@ -7041,7 +7182,7 @@ var package_default = {
7041
7182
  name: "@uipath/insights-sdk",
7042
7183
  author: "UiPath",
7043
7184
  license: "SEE LICENSE IN LICENSE.txt",
7044
- version: "1.206.0-preview.303",
7185
+ version: "1.207.0-preview.305",
7045
7186
  description: "SDK for the UiPath Insights API — jobs, failures, and performance metrics.",
7046
7187
  repository: {
7047
7188
  type: "git",
@@ -7936,6 +8077,8 @@ function settlePromiseLike2(thenable) {
7936
8077
  // ../auth/src/constants.ts
7937
8078
  var UIPATH_HOME_DIR = ".uipath";
7938
8079
  var AUTH_FILENAME = ".auth";
8080
+ var AUTH_FILE_MODE = 384;
8081
+ var AUTH_DIR_MODE = 448;
7939
8082
  var DEFAULT_BASE_URL = "https://cloud.uipath.com";
7940
8083
  var DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
7941
8084
 
@@ -8759,6 +8902,38 @@ var loadEnvFileAsync = async ({ envPath }) => {
8759
8902
  }
8760
8903
  return parseEnvContent(content);
8761
8904
  };
8905
+ var findAuthHomeDir = (fs, dir) => {
8906
+ let current = dir;
8907
+ for (;; ) {
8908
+ if (fs.path.basename(current) === UIPATH_HOME_DIR)
8909
+ return current;
8910
+ const parent = fs.path.dirname(current);
8911
+ if (parent === current)
8912
+ return;
8913
+ current = parent;
8914
+ }
8915
+ };
8916
+ var TEMP_FILE_ATTEMPTS = 5;
8917
+ var isFileExists = (error) => error instanceof Error && error.code === "EEXIST";
8918
+ var writeTempFile = async (fs, targetPath, content) => {
8919
+ for (let attempt = 1;; attempt++) {
8920
+ const tempPath = `${targetPath}.${crypto.randomUUID()}.tmp`;
8921
+ try {
8922
+ await fs.writeFile(tempPath, content, {
8923
+ mode: AUTH_FILE_MODE,
8924
+ exclusive: true
8925
+ });
8926
+ return tempPath;
8927
+ } catch (error) {
8928
+ if (!isFileExists(error)) {
8929
+ await fs.rm(tempPath).catch(() => {});
8930
+ throw error;
8931
+ }
8932
+ if (attempt === TEMP_FILE_ATTEMPTS)
8933
+ throw error;
8934
+ }
8935
+ }
8936
+ };
8762
8937
  var saveEnvFileAsync = async ({
8763
8938
  envPath,
8764
8939
  data,
@@ -8786,10 +8961,18 @@ var saveEnvFileAsync = async ({
8786
8961
  `)}
8787
8962
  `;
8788
8963
  const dir = fs.path.dirname(absolutePath);
8789
- await fs.mkdir(dir);
8790
- const tempPath = `${absolutePath}.tmp`;
8791
- await fs.writeFile(tempPath, content);
8792
- await fs.rename(tempPath, absolutePath);
8964
+ await fs.mkdir(dir, { mode: AUTH_DIR_MODE });
8965
+ const authHomeDir = findAuthHomeDir(fs, dir);
8966
+ if (authHomeDir !== undefined) {
8967
+ await fs.chmod?.(authHomeDir, AUTH_DIR_MODE);
8968
+ }
8969
+ const tempPath = await writeTempFile(fs, absolutePath, content);
8970
+ try {
8971
+ await fs.rename(tempPath, absolutePath);
8972
+ } catch (error) {
8973
+ await fs.rm(tempPath).catch(() => {});
8974
+ throw error;
8975
+ }
8793
8976
  };
8794
8977
 
8795
8978
  // ../auth/src/loginStatus.ts
@@ -10401,6 +10584,6 @@ function createContractGuards(newError) {
10401
10584
  };
10402
10585
  }
10403
10586
 
10404
- export { getFileSystem, catchError, describeConnectivityError, describePermissionError, RESULTS, Command, Option, OutputFormatter, processContext, requireConfirmation, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, MODEL_NOT_FOUND_LABEL, DASHBOARD_NOT_FOUND_LABEL, VALIDATION_FAILED_LABEL, CREATE_BACKEND_FAILURE_LABEL, UPDATE_BACKEND_FAILURE_LABEL, PORTAL_ERROR_CODE, LOOKER_USER_UNAVAILABLE_MESSAGE, LOOKER_NO_DASHBOARDS_MESSAGE, InsightsHttpError, InsightsNetworkError, InsightsProtocolError, listAlertDefinitions, listAgenticAlertDefinitions, getAlertDefinition, checkAlertEntitlement, listAlertHistoryDetails, getAlertHistoryMetrics, getDefaultDelivery, insightsPost, createInsightsConfig, DASHBOARD_SLOT_DELIMITER, MAESTRO_DASHBOARD_SOURCE_TYPE, composeDashboardSlotId, isTemplateKeyedDashboardId, getDashboard, listDashboardFilters, DashboardRequestError, createDashboard, updateDashboard, deleteDashboard, listExportConfigurations, verifyAllExportDestinations, verifyExportDestination, listFolderFilters, listProcessFilters, listQueueFilters, listMachineFilters, LOOKER_FOLDERS, LOOKER_THEMES, listLookerDashboards, getLookerDashboardEmbedUrl, parseLookerEnvelope, LookerResolveError, isLookerTemplateDashboardId, readLookerListing, resolveLookerDashboard, getMachineRuntimeMix, getMachineDetails, getMachineAvailabilityTimeline, getMachineTopFailures, getMachineUtilization, getQueueCompletedTimeline, getQueueUncompletedTimeline, getQueueTopFailures, getQueueFailuresByReason, getQueueDetails, getQueueRetryOutcomes, getQueueSummary, getQueueFailureDetails, getQueueSla, getQueueOperationalMetrics, listUsers, getUser, listRoles, getRole, listGroups, getGroup, fail, failValidation, writeNetworkFailure, resolveInsightsConfig, writeInsightsFailure, writeInsightsNotFound, FOLDER_LOOKUP_NOT_FOUND_INSTRUCTIONS, RETRY_LATER_INSTRUCTIONS, writePortalProvisioningNotFound, hasUnreadBody, claimGatedSurface404, writeInsightsError, addMonitoringTimeOptions, validateMonitoringTime, buildMonitoringTimeFields, truncatedNote, pagingCostNote, overPagedNote, EMPTY_LIST_NOTE, joinParts, compareRowKeys, bindInsightsQuery, monitoringDisclosures, monitoringListInstructions, byRowKeys, preserveBackendOrder, claimHttpError, executeInsightsList, executeInsightsGet, isRecord, asRecord, pickScalar, createContractGuards };
10587
+ export { getFileSystem, catchError, RESULTS, describeConnectivityError, describePermissionError, Command, Option, OutputFormatter, processContext, requireConfirmation, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, MODEL_NOT_FOUND_LABEL, DASHBOARD_NOT_FOUND_LABEL, VALIDATION_FAILED_LABEL, CREATE_BACKEND_FAILURE_LABEL, UPDATE_BACKEND_FAILURE_LABEL, PORTAL_ERROR_CODE, LOOKER_USER_UNAVAILABLE_MESSAGE, LOOKER_NO_DASHBOARDS_MESSAGE, InsightsHttpError, InsightsNetworkError, InsightsProtocolError, listAlertDefinitions, listAgenticAlertDefinitions, getAlertDefinition, checkAlertEntitlement, listAlertHistoryDetails, getAlertHistoryMetrics, getDefaultDelivery, insightsPost, createInsightsConfig, DASHBOARD_SLOT_DELIMITER, MAESTRO_DASHBOARD_SOURCE_TYPE, composeDashboardSlotId, isTemplateKeyedDashboardId, getDashboard, listDashboardFilters, DashboardRequestError, createDashboard, updateDashboard, deleteDashboard, listExportConfigurations, verifyAllExportDestinations, verifyExportDestination, listFolderFilters, listProcessFilters, listQueueFilters, listMachineFilters, LOOKER_FOLDERS, LOOKER_THEMES, listLookerDashboards, getLookerDashboardEmbedUrl, parseLookerEnvelope, LookerResolveError, isLookerTemplateDashboardId, readLookerListing, resolveLookerDashboard, getMachineRuntimeMix, getMachineDetails, getMachineAvailabilityTimeline, getMachineTopFailures, getMachineUtilization, getQueueCompletedTimeline, getQueueUncompletedTimeline, getQueueTopFailures, getQueueFailuresByReason, getQueueDetails, getQueueRetryOutcomes, getQueueSummary, getQueueFailureDetails, getQueueSla, getQueueOperationalMetrics, listUsers, getUser, listRoles, getRole, listGroups, getGroup, fail, failValidation, writeNetworkFailure, resolveInsightsConfig, writeInsightsFailure, writeInsightsNotFound, FOLDER_LOOKUP_NOT_FOUND_INSTRUCTIONS, RETRY_LATER_INSTRUCTIONS, writePortalProvisioningNotFound, hasUnreadBody, claimGatedSurface404, writeInsightsError, addMonitoringTimeOptions, validateMonitoringTime, buildMonitoringTimeFields, truncatedNote, pagingCostNote, overPagedNote, EMPTY_LIST_NOTE, joinParts, compareRowKeys, bindInsightsQuery, monitoringDisclosures, monitoringListInstructions, byRowKeys, preserveBackendOrder, claimHttpError, executeInsightsList, executeInsightsGet, isRecord, asRecord, pickScalar, createContractGuards };
10405
10588
 
10406
- //# debugId=2322CD2C8C4E46B864756E2164756E21
10589
+ //# debugId=3256097D1A0872A564756E2164756E21
@@ -21,7 +21,7 @@ import {
21
21
  asRecord,
22
22
  pickScalar,
23
23
  createContractGuards
24
- } from "./tool-y6tas8j3.js";
24
+ } from "./tool-bd8es9mh.js";
25
25
 
26
26
  // src/utils/alerts.ts
27
27
  class AlertContractError extends Error {
@@ -81,7 +81,7 @@ import {
81
81
  asRecord,
82
82
  pickScalar,
83
83
  createContractGuards
84
- } from "./tool-y6tas8j3.js";
84
+ } from "./tool-bd8es9mh.js";
85
85
  import {
86
86
  parseRouteId,
87
87
  executeAlertsList,
@@ -90,7 +90,7 @@ import {
90
90
  executeAlertHistoryList,
91
91
  executeAlertHistoryMetrics,
92
92
  executeAlertDeliveryGet
93
- } from "./tool-34yn1h41.js";
93
+ } from "./tool-grrx91m5.js";
94
94
  import {
95
95
  TIME_GROUPING_SIZES,
96
96
  validateTimeSelection,
@@ -105,20 +105,20 @@ import {
105
105
  executeDashboardGet,
106
106
  executeDashboardFiltersList,
107
107
  executeDashboardCreate
108
- } from "./tool-1n1400dg.js";
108
+ } from "./tool-3gnhga9n.js";
109
109
  import {
110
110
  FROM_PROCESS_KEY_FLAG,
111
111
  TO_PROCESS_KEY_FLAG
112
112
  } from "./tool-tmssew70.js";
113
113
  import {
114
114
  unwrapPortalEnvelope
115
- } from "./tool-drpx0zdr.js";
115
+ } from "./tool-2e58spmc.js";
116
116
  // package.json
117
117
  var package_default = {
118
118
  name: "@uipath/insights-tool",
119
119
  author: "UiPath",
120
120
  license: "SEE LICENSE IN LICENSE.txt",
121
- version: "1.206.0-preview.303",
121
+ version: "1.207.0-preview.305",
122
122
  description: "Query UiPath Insights data — jobs, failures, and performance metrics.",
123
123
  private: false,
124
124
  repository: {
@@ -443,7 +443,7 @@ function registerDashboardsCommand(program) {
443
443
  if (options.expectedVersion === undefined) {
444
444
  return failValidation("Missing required field: --expected-version.", "Pass the version 'uip insights dashboards get --process-key <guid>' reported for this dashboard.");
445
445
  }
446
- const { executeDashboardUpdate } = await import("./dashboard-update-a1rf4262.js");
446
+ const { executeDashboardUpdate } = await import("./dashboard-update-e54ey02z.js");
447
447
  await executeDashboardUpdate({
448
448
  target,
449
449
  file,
@@ -460,7 +460,7 @@ function registerDashboardsCommand(program) {
460
460
  if (backupFile === undefined) {
461
461
  return;
462
462
  }
463
- const { executeDashboardDelete } = await import("./dashboard-delete-qehp72be.js");
463
+ const { executeDashboardDelete } = await import("./dashboard-delete-vmn6d1sj.js");
464
464
  await executeDashboardDelete({
465
465
  target,
466
466
  yes: options.yes,
@@ -483,7 +483,7 @@ function registerDashboardsCommand(program) {
483
483
  if (outputFile === undefined) {
484
484
  return;
485
485
  }
486
- const { executeDashboardCopy } = await import("./dashboard-copy-9bc7kr5k.js");
486
+ const { executeDashboardCopy } = await import("./dashboard-copy-655mfdrv.js");
487
487
  await executeDashboardCopy({
488
488
  from,
489
489
  to,
@@ -496,7 +496,7 @@ function registerDashboardsCommand(program) {
496
496
  function registerExportConfigurationsCommand(program) {
497
497
  const exportCmd = program.command("export-configurations").description("Read UiPath Insights unified export configurations and check their destinations");
498
498
  exportCmd.command("verify").description("Have Insights test the organization's Azure Event Hub and AWS SQS export destinations with the credentials it has stored; other types come back unprobed. Omit the ID to check every configuration").argument("[configuration-id]", "Export configuration ID (integer); omit to check every configuration except Splunk HEC and unmigrated rows", parseRouteId("[configuration-id]")).trackedAction(processContext, async (configurationId) => {
499
- const { executeExportVerifyAll, executeExportVerifyOne } = await import("./export-configurations-qsj7p8vt.js");
499
+ const { executeExportVerifyAll, executeExportVerifyOne } = await import("./export-configurations-5gezw656.js");
500
500
  if (configurationId === undefined) {
501
501
  await executeExportVerifyAll();
502
502
  return;
@@ -504,7 +504,7 @@ function registerExportConfigurationsCommand(program) {
504
504
  await executeExportVerifyOne(String(configurationId));
505
505
  });
506
506
  addListPaginationOptions(exportCmd.command("list").description("List the organization's unified export configurations; rows carry no connection string, access key or API key")).trackedAction(processContext, async (options) => {
507
- const { executeExportConfigurationsList } = await import("./export-configurations-qsj7p8vt.js");
507
+ const { executeExportConfigurationsList } = await import("./export-configurations-5gezw656.js");
508
508
  await executeExportConfigurationsList(options);
509
509
  });
510
510
  }
@@ -3714,4 +3714,4 @@ var registerCommands2 = async (program) => {
3714
3714
 
3715
3715
  export { metadata2, registerCommands2 };
3716
3716
 
3717
- //# debugId=45015D1CD9574AEB64756E2164756E21
3717
+ //# debugId=45E250373062453E64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  metadata2,
3
3
  registerCommands2
4
- } from "./tool-98dsvwwz.js";
5
- import"./tool-34yn1h41.js";
6
- import"./tool-drpx0zdr.js";
7
- import"./tool-1n1400dg.js";
8
- import"./tool-y6tas8j3.js";
4
+ } from "./tool-kt1pmefg.js";
5
+ import"./tool-grrx91m5.js";
6
+ import"./tool-2e58spmc.js";
7
+ import"./tool-3gnhga9n.js";
8
+ import"./tool-bd8es9mh.js";
9
9
  export {
10
10
  metadata2 as metadata,
11
11
  registerCommands2 as registerCommands
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/insights-tool",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.206.0-preview.303",
5
+ "version": "1.207.0-preview.305",
6
6
  "description": "Query UiPath Insights data — jobs, failures, and performance metrics.",
7
7
  "private": false,
8
8
  "repository": {
@@ -27,5 +27,5 @@
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
- "gitHead": "7d17b8a3c1a50892d42c9302087abc8307b04409"
30
+ "gitHead": "1600aa89255c37c1b8bc68d9882c3395c1d5bff4"
31
31
  }