@uipath/case-tool 1.202.0 → 1.203.0-preview.160

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 (90) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +172 -3
  2. package/dist/{authoring-e757p9dq.js → authoring-kngaggwm.js} +42 -4
  3. package/dist/{case-api-42s4mbpn.js → case-api-v6cjyrfw.js} +8 -8
  4. package/dist/case-bindings-service-1wxfghzd.js +240 -0
  5. package/dist/case-debug-studio-web-service-0624c07c.js +133 -0
  6. package/dist/case-format-service-q345a2fd.js +84 -0
  7. package/dist/{case-pack-service-8exkecnd.js → case-pack-service-29rza2q2.js} +61 -11
  8. package/dist/{case-validate-service-xvxkr026.js → case-validate-service-e06varbt.js} +1422 -40
  9. package/dist/{connector-enrichment-service-xq9xtz95.js → connector-enrichment-service-2pes4b1b.js} +20 -20
  10. package/dist/{connector-lookup-service-bk1wscyr.js → connector-lookup-service-2bkybhkf.js} +7 -7
  11. package/dist/{connector-task-spec-0g34na74.js → connector-task-spec-q59xmzm0.js} +24 -24
  12. package/dist/{de-7XQXX2DK-tqdy5n2b.js → de-FGHEJRCI-rv513mfh.js} +153 -9
  13. package/dist/{de-5KVP66U6-1bnf4zt5.js → de-MUJPA4EB-dpg7t2rw.js} +15 -3
  14. package/dist/{debug-service-f6t4ntmg.js → debug-service-8x087xxt.js} +2 -2
  15. package/dist/{index-j3xb87ag.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
  16. package/dist/{en-5ZGC5VQ3-h581y30k.js → en-BWGKA5OE-1qkvb9rn.js} +140 -2
  17. package/dist/{en-X3S6IZ5J-nhkg6pwn.js → en-FBPVNKFN-dqt573xn.js} +29 -3
  18. package/dist/{enrichment-service-k1zhkzgr.js → enrichment-service-7vbxcwge.js} +7 -7
  19. package/dist/{es-VFPNVMP5-bx2c337j.js → es-7SE7HX2X-8yh1aj2y.js} +15 -3
  20. package/dist/{es-ZGCPPOME-8gazspjj.js → es-KR3ZSNMP-84zphx0x.js} +153 -9
  21. package/dist/{es-MX-XAVLOQW3-q00km2y7.js → es-MX-2MYFZU7X-3rek4r73.js} +15 -3
  22. package/dist/{es-MX-U2VN3SZW-anynsmd8.js → es-MX-XXZJGC4R-2mr8jtgm.js} +153 -9
  23. package/dist/first-party-service-srxaftkn.js +27 -0
  24. package/dist/{fr-E5MDO4EG-c3mkty2t.js → fr-MDFKNZ4C-h4a122k9.js} +15 -3
  25. package/dist/{fr-T3G5GZCT-y3f7xb1q.js → fr-Y6NPVODW-8vr1ja4b.js} +153 -9
  26. package/dist/{index-f0rf4m8p.js → index-8yv94z7r.js} +6 -4
  27. package/dist/{index-kwxe1vep.js → index-fz4ttsde.js} +16 -4
  28. package/dist/index-jxj2jz45.js +16742 -0
  29. package/dist/index-kmp9fmhb.js +25 -0
  30. package/dist/index.js +10 -10
  31. package/dist/{input-reader-vgsdjgst.js → input-reader-pnh948bq.js} +1 -1
  32. package/dist/{ja-BI5K3JDZ-77zat4z2.js → ja-Q5PXKJ2V-p4msxzjd.js} +153 -9
  33. package/dist/{ja-DPO5PPLO-mysfmznx.js → ja-UTQEAP34-8e0q6swp.js} +15 -3
  34. package/dist/{known-types-qryebm95.js → known-types-mn8xn36b.js} +4 -4
  35. package/dist/{ko-ITOPNIYI-hmxd2asd.js → ko-AXCHW2OK-askct7f6.js} +15 -3
  36. package/dist/{ko-JOBF5V7N-4bv0mjje.js → ko-AYBDSRZG-41mdmsg1.js} +153 -9
  37. package/dist/{node-strategy-0267x5e5.js → node-strategy-gc4sg6a2.js} +4 -4
  38. package/dist/{node-sync-service-ac8rzgnj.js → node-sync-service-9d0dqz4z.js} +12 -14
  39. package/dist/{packager-tool-5yw9xatr.js → packager-tool-052kvydg.js} +1 -1
  40. package/dist/{packager-tool-3tfbb641.js → packager-tool-32jxda3r.js} +213 -51
  41. package/dist/packager-tool-53w8skv5.js +262 -0
  42. package/dist/{packager-tool-w0209wf4.js → packager-tool-61hxhgeg.js} +1 -1
  43. package/dist/{packager-tool-58q3tvh7.js → packager-tool-7q6z6npd.js} +166 -28
  44. package/dist/packager-tool-83qnybab.js +1564 -0
  45. package/dist/{packager-tool-eh50gcdk.js → packager-tool-8q7vzh65.js} +5 -4
  46. package/dist/{packager-tool-8rf8qda5.js → packager-tool-adcaxdhs.js} +15 -5
  47. package/dist/{packager-tool-933n6t8x.js → packager-tool-af2s79jb.js} +6 -6
  48. package/dist/{packager-tool-sk2b33km.js → packager-tool-b6368khs.js} +10 -9
  49. package/dist/{packager-tool-d73376xs.js → packager-tool-cg2j4rma.js} +8 -8
  50. package/dist/packager-tool-d4sjk46c.js +88 -0
  51. package/dist/{packager-tool-a42jnpy5.js → packager-tool-d88rqwk8.js} +29 -3
  52. package/dist/packager-tool-dd8bq6az.js +8462 -0
  53. package/dist/packager-tool-gdtpsdn7.js +342 -0
  54. package/dist/{packager-tool-v60h8pvv.js → packager-tool-hrdan5ms.js} +1 -1
  55. package/dist/{packager-tool-bmn50g7v.js → packager-tool-hz1mz8fs.js} +1 -1
  56. package/dist/{packager-tool-v0vdet53.js → packager-tool-jf4hmztd.js} +10 -13
  57. package/dist/{packager-tool-c23zrhj8.js → packager-tool-jysvpt8p.js} +2 -2
  58. package/dist/{packager-tool-jhdf8gt1.js → packager-tool-kkxhc0fp.js} +13554 -8844
  59. package/dist/{packager-tool-4knkebkr.js → packager-tool-kpcjnxd1.js} +269 -23
  60. package/dist/{packager-tool-nx0j1294.js → packager-tool-rhkk0pta.js} +31 -30
  61. package/dist/{packager-tool-d128hs55.js → packager-tool-wefb1zw3.js} +1 -1
  62. package/dist/{packager-tool-3kbkkv2a.js → packager-tool-x4vxexvk.js} +11 -11
  63. package/dist/{packager-tool-dqs5qy9s.js → packager-tool-yrsrzz1a.js} +134 -19
  64. package/dist/packager-tool.js +5 -1501
  65. package/dist/{project-artifacts-43c2ynd9.js → project-artifacts-8snev67g.js} +1 -1
  66. package/dist/{pt-YI4VE4YQ-wdkn2dcf.js → pt-3DIO5QWG-59b3f4bc.js} +15 -3
  67. package/dist/{pt-BR-7DYX2YPT-fqxqzqtf.js → pt-BR-TKHNHMET-sn91xyq0.js} +153 -9
  68. package/dist/{pt-BR-BXURWX4W-bwfcwhk1.js → pt-BR-Y6K6XHXK-mp3hwhw1.js} +15 -3
  69. package/dist/{pt-HTXGGX6Y-97t21dty.js → pt-ROXU257Y-2f6bxev4.js} +153 -9
  70. package/dist/{resourcesSyncService-7ampdrez.js → resourcesSyncService-5bq0j9wf.js} +20 -20
  71. package/dist/{ro-KTNQ3MNU-y08n1x5g.js → ro-AVAWPKOO-b89pw79r.js} +153 -9
  72. package/dist/{ro-RKXZUG7Z-nndrrsq7.js → ro-BWR3ONRR-vzx3hy8a.js} +15 -3
  73. package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
  74. package/dist/sdd-lookup-x08j9g9m.js +48 -0
  75. package/dist/{strict-case-rules-303vjvas.js → strict-case-rules-x6t0vb40.js} +141 -109
  76. package/dist/strict-sdd-audit-8e2fh9jg.js +2520 -0
  77. package/dist/tool.js +9 -9
  78. package/dist/{tr-AA6O2WSR-86ba4bdf.js → tr-5IIHSFW5-hw4cewew.js} +15 -3
  79. package/dist/{tr-XHSSPNK7-cmqyc4wd.js → tr-JMIP7ZSL-c39b6pe4.js} +153 -9
  80. package/dist/{trigger-enrichment-service-cg99dk1f.js → trigger-enrichment-service-kkh3197w.js} +24 -24
  81. package/dist/{zh-CN-2EHQT23P-mr63c4xz.js → zh-CN-IFFXSEJS-9wm9gmrv.js} +153 -9
  82. package/dist/{zh-CN-R2KLHXQV-agqr45ds.js → zh-CN-R2KU4U5L-tc1hat59.js} +15 -3
  83. package/dist/{zh-TW-RJGCQANM-w0x3qc1p.js → zh-TW-GNKMELBF-j674515r.js} +15 -3
  84. package/dist/{zh-TW-MGZCE5BT-c4ekmrz9.js → zh-TW-IYBNYAMG-8727c7v2.js} +153 -9
  85. package/package.json +3 -2
  86. package/dist/case-debug-studio-web-service-npcw81ay.js +0 -335
  87. package/dist/packager-tool-134mvmcm.js +0 -3040
  88. package/dist/packager-tool-ty1t2byf.js +0 -27
  89. package/dist/ru-WBLQ5B2U-8r3c7v6d.js +0 -10
  90. package/dist/strict-sdd-audit-qdmc9e1y.js +0 -1024
@@ -1,19 +1,19 @@
1
- import {
2
- catchError
3
- } from "./packager-tool-qa9gftnj.js";
4
- import {
5
- getFileSystem
6
- } from "./packager-tool-0v3s8r01.js";
7
1
  import {
8
2
  getGlobalThis,
9
3
  isBrowser
10
4
  } from "./packager-tool-0gctz400.js";
5
+ import {
6
+ catchError
7
+ } from "./packager-tool-qa9gftnj.js";
11
8
  import {
12
9
  AUTH_FILENAME,
13
10
  DEFAULT_BASE_URL,
14
11
  DEFAULT_REDIRECT_URI,
15
12
  UIPATH_HOME_DIR
16
13
  } from "./packager-tool-yc4kw997.js";
14
+ import {
15
+ getFileSystem
16
+ } from "./packager-tool-0v3s8r01.js";
17
17
  import {
18
18
  __require
19
19
  } from "./packager-tool-1yh8g550.js";
@@ -568,6 +568,63 @@ function getActiveAuthProfileFilePath() {
568
568
  const profile = getActiveAuthProfile();
569
569
  return profile ? resolveAuthProfileFilePath(profile) : undefined;
570
570
  }
571
+ function getAuthProfilesRootPath() {
572
+ const fs = getFileSystem();
573
+ return fs.path.join(fs.env.homedir(), UIPATH_HOME_DIR, PROFILE_DIR);
574
+ }
575
+ function resolveAuthProfileDirPath(profile) {
576
+ const normalized = normalizeAuthProfileName(profile);
577
+ if (normalized === undefined) {
578
+ throw new AuthProfileValidationError(`"${DEFAULT_AUTH_PROFILE}" is the built-in profile and does not have a profile directory.`);
579
+ }
580
+ const fs = getFileSystem();
581
+ return fs.path.join(getAuthProfilesRootPath(), normalized);
582
+ }
583
+ async function listAuthProfileNamesAsync() {
584
+ const fs = getFileSystem();
585
+ const root = getAuthProfilesRootPath();
586
+ if (!await fs.exists(root)) {
587
+ return [];
588
+ }
589
+ const [readError, entries] = await catchError(fs.readdir(root));
590
+ if (readError || !entries) {
591
+ return [];
592
+ }
593
+ const names = [];
594
+ for (const entry of entries) {
595
+ if (!PROFILE_NAME_RE.test(entry) || entry === DEFAULT_AUTH_PROFILE) {
596
+ continue;
597
+ }
598
+ const stats = await fs.stat(fs.path.join(root, entry));
599
+ if (stats?.isDirectory()) {
600
+ names.push(entry);
601
+ }
602
+ }
603
+ return names.sort((a, b) => a.localeCompare(b));
604
+ }
605
+ async function authProfileExistsAsync(profile) {
606
+ const fs = getFileSystem();
607
+ const [pathError, dir] = catchError(() => resolveAuthProfileDirPath(profile));
608
+ if (pathError || dir === undefined) {
609
+ return false;
610
+ }
611
+ const stats = await fs.stat(dir);
612
+ return stats?.isDirectory() === true;
613
+ }
614
+ async function deleteAuthProfileAsync(profile) {
615
+ const dir = resolveAuthProfileDirPath(profile);
616
+ const fs = getFileSystem();
617
+ const relativeToRoot = fs.path.relative(getAuthProfilesRootPath(), dir);
618
+ if (relativeToRoot === "" || relativeToRoot.startsWith("..") || fs.path.isAbsolute(relativeToRoot)) {
619
+ throw new AuthProfileValidationError(`Refusing to delete "${profile}": resolved path escapes the profiles directory.`);
620
+ }
621
+ const stats = await fs.stat(dir);
622
+ if (stats?.isDirectory() !== true) {
623
+ return;
624
+ }
625
+ await fs.rm(dir);
626
+ return dir;
627
+ }
571
628
 
572
629
  // ../auth/src/utils/jwt.ts
573
630
  class InvalidIssuerError extends Error {
@@ -1136,16 +1193,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
1136
1193
  errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
1137
1194
  };
1138
1195
  };
1139
- var loadEnvFileAsync = async ({ envPath }) => {
1140
- const fs = getFileSystem();
1141
- const absolutePath = fs.path.isAbsolute(envPath) ? envPath : fs.path.join(fs.env.cwd(), envPath);
1142
- if (!await fs.exists(absolutePath)) {
1143
- throw new Error(`Environment file not found: ${envPath}`);
1144
- }
1145
- const content = await fs.readFile(absolutePath, "utf-8");
1146
- if (content === null) {
1147
- throw new Error(`Environment file not found: ${envPath}`);
1148
- }
1196
+ var parseEnvContent = (content) => {
1149
1197
  const env = {};
1150
1198
  for (const line of content.split(`
1151
1199
  `)) {
@@ -1166,6 +1214,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
1166
1214
  }
1167
1215
  return env;
1168
1216
  };
1217
+ var loadEnvFileAsync = async ({ envPath }) => {
1218
+ const fs = getFileSystem();
1219
+ const absolutePath = fs.path.isAbsolute(envPath) ? envPath : fs.path.join(fs.env.cwd(), envPath);
1220
+ if (!await fs.exists(absolutePath)) {
1221
+ throw new Error(`Environment file not found: ${envPath}`);
1222
+ }
1223
+ const content = await fs.readFile(absolutePath, "utf-8");
1224
+ if (content === null) {
1225
+ throw new Error(`Environment file not found: ${envPath}`);
1226
+ }
1227
+ return parseEnvContent(content);
1228
+ };
1169
1229
  var saveEnvFileAsync = async ({
1170
1230
  envPath,
1171
1231
  data,
@@ -1740,6 +1800,61 @@ var getAuthEnv = async (options = {}) => {
1740
1800
  }
1741
1801
  return { authEnv, loginStatus: status };
1742
1802
  };
1803
+ // ../auth/src/authProfileDetails.ts
1804
+ var ORGANIZATION_NAME_KEY = "UIPATH_ORGANIZATION_NAME";
1805
+ var TENANT_NAME_KEY = "UIPATH_TENANT_NAME";
1806
+ var URL_KEY = "UIPATH_URL";
1807
+ var ACCESS_TOKEN_KEY = "UIPATH_ACCESS_TOKEN";
1808
+ function statusFromToken(accessToken) {
1809
+ if (!accessToken) {
1810
+ return { status: "Not logged in" };
1811
+ }
1812
+ const expiration = getTokenExpiration(accessToken);
1813
+ if (expiration === undefined) {
1814
+ return { status: "Logged in" };
1815
+ }
1816
+ return {
1817
+ status: expiration.getTime() <= Date.now() ? "Expired" : "Logged in",
1818
+ expiresAt: expiration.toISOString()
1819
+ };
1820
+ }
1821
+ async function describeAuthProfileAsync(name, filePath, active) {
1822
+ const base = {
1823
+ name,
1824
+ active,
1825
+ ...filePath ? { path: filePath } : {}
1826
+ };
1827
+ if (!filePath) {
1828
+ return { ...base, status: "Not logged in" };
1829
+ }
1830
+ const fs = getFileSystem();
1831
+ const [readError, content] = await catchError(fs.readFile(filePath, "utf-8"));
1832
+ if (readError) {
1833
+ return { ...base, status: "Unreadable" };
1834
+ }
1835
+ if (content === null || content === undefined) {
1836
+ return { ...base, status: "Not logged in" };
1837
+ }
1838
+ const values = parseEnvContent(content);
1839
+ return {
1840
+ ...base,
1841
+ ...values[ORGANIZATION_NAME_KEY] ? { organizationName: values[ORGANIZATION_NAME_KEY] } : {},
1842
+ ...values[TENANT_NAME_KEY] ? { tenantName: values[TENANT_NAME_KEY] } : {},
1843
+ ...values[URL_KEY] ? { url: values[URL_KEY] } : {},
1844
+ ...statusFromToken(values[ACCESS_TOKEN_KEY])
1845
+ };
1846
+ }
1847
+ async function describeAuthProfilesAsync() {
1848
+ const activeProfile = getActiveAuthProfile();
1849
+ const [defaultPathError, defaultLocation] = await catchError(resolveEnvFilePathAsync());
1850
+ const rows = [
1851
+ await describeAuthProfileAsync(DEFAULT_AUTH_PROFILE, defaultPathError ? undefined : defaultLocation?.absolutePath, activeProfile === undefined)
1852
+ ];
1853
+ for (const name of await listAuthProfileNamesAsync()) {
1854
+ rows.push(await describeAuthProfileAsync(name, resolveAuthProfileFilePath(name), activeProfile === name));
1855
+ }
1856
+ return rows;
1857
+ }
1743
1858
  // ../auth/src/tokenGrant.ts
1744
1859
  var requestClientCredentialsToken = async ({
1745
1860
  tokenEndpoint,
@@ -2302,7 +2417,7 @@ var authenticate = async ({
2302
2417
  const { BrowserAuthStrategy } = await import("./browser-strategy-6atc7v8s.js");
2303
2418
  strategy = new BrowserAuthStrategy;
2304
2419
  } else {
2305
- const { NodeAuthStrategy } = await import("./node-strategy-0267x5e5.js");
2420
+ const { NodeAuthStrategy } = await import("./node-strategy-gc4sg6a2.js");
2306
2421
  strategy = new NodeAuthStrategy;
2307
2422
  }
2308
2423
  const code = await strategy.execute(authUrl, effectiveRedirectUriUrl, state, {
@@ -2322,6 +2437,6 @@ var authenticate = async ({
2322
2437
  });
2323
2438
  };
2324
2439
 
2325
- export { setAuthFileConfig, InvalidBaseUrlError, DEFAULT_AUTH_PROFILE, AuthProfileValidationError, normalizeAuthProfileName, setActiveAuthProfile, clearActiveAuthProfile, getActiveAuthProfile, runWithAuthProfile, resolveAuthProfileFilePath, getActiveAuthProfileFilePath, parseJWT, parseAuthFlow, resolveSessionIdentity, ENV_AUTH_ENABLE_VAR, ENFORCE_ROBOT_AUTH_VAR, ENV_AUTH_VARS, EnvAuthConfigError, isEnvAuthEnabled, isRobotAuthEnforced, readAuthFromEnv, refreshTokenFingerprint, loadRefreshBreaker, saveRefreshBreaker, clearRefreshBreaker, registerRobotClientLoader, TokenRefreshOAuthError, isTokenRefreshOAuthFailure, refreshAccessToken, AUTH_FLOW_ENV_VAR, DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, loadEnvFileAsync, saveEnvFileAsync, CredentialSource, getLoginStatusAsync, getLoginStatusWithDeps, getAuthContext, getAuthEnv, ClientCredentialsAuthenticationError, clientCredentialsLogin, JWT_BEARER_ASSERTION_TYPE, FederatedCredentialsAuthenticationError, federatedCredentialsLogin, fetchTenantsAndOrganizations, TENANT_SELECTION_REQUIRED_CODE, INVALID_TENANT_CODE, TenantSelectionError, TenantSelectionRequiredError, InvalidTenantError, isTenantSelectionError, selectTenantWithDeps, interactiveLoginWithDeps, interactiveLogin, logoutWithDeps, logout, authenticate };
2440
+ export { setAuthFileConfig, InvalidBaseUrlError, DEFAULT_AUTH_PROFILE, AuthProfileValidationError, normalizeAuthProfileName, setActiveAuthProfile, clearActiveAuthProfile, getActiveAuthProfile, runWithAuthProfile, resolveAuthProfileFilePath, getActiveAuthProfileFilePath, getAuthProfilesRootPath, resolveAuthProfileDirPath, listAuthProfileNamesAsync, authProfileExistsAsync, deleteAuthProfileAsync, parseJWT, parseAuthFlow, resolveSessionIdentity, ENV_AUTH_ENABLE_VAR, ENFORCE_ROBOT_AUTH_VAR, ENV_AUTH_VARS, EnvAuthConfigError, isEnvAuthEnabled, isRobotAuthEnforced, readAuthFromEnv, refreshTokenFingerprint, loadRefreshBreaker, saveRefreshBreaker, clearRefreshBreaker, registerRobotClientLoader, TokenRefreshOAuthError, isTokenRefreshOAuthFailure, refreshAccessToken, AUTH_FLOW_ENV_VAR, DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, loadEnvFileAsync, saveEnvFileAsync, CredentialSource, getLoginStatusAsync, getLoginStatusWithDeps, getAuthContext, getAuthEnv, describeAuthProfilesAsync, ClientCredentialsAuthenticationError, clientCredentialsLogin, JWT_BEARER_ASSERTION_TYPE, FederatedCredentialsAuthenticationError, federatedCredentialsLogin, fetchTenantsAndOrganizations, TENANT_SELECTION_REQUIRED_CODE, INVALID_TENANT_CODE, TenantSelectionError, TenantSelectionRequiredError, InvalidTenantError, isTenantSelectionError, selectTenantWithDeps, interactiveLoginWithDeps, interactiveLogin, logoutWithDeps, logout, authenticate };
2326
2441
 
2327
- //# debugId=454CB08B5FD7228764756E2164756E21
2442
+ //# debugId=9A92DFA480A9998F64756E2164756E21