@uipath/maestro-tool 1.202.2 → 1.203.0-preview.180
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/README.md +8 -0
- package/dist/THIRD-PARTY-NOTICES.md +83 -290
- package/dist/{authoring-818595dq.js → authoring-at68vr5g.js} +7 -5
- package/dist/{authoring-6r3wx3fa.js → authoring-sh284a0x.js} +3 -3
- package/dist/{authoring-61hqf5em.js → authoring-szfy0rh1.js} +5 -5
- package/dist/{binding-service-643e69bb.js → binding-service-8a05gy4k.js} +37 -29
- package/dist/{bpmn-action-type-validator-kx36sqhe.js → bpmn-action-type-validator-8kvyvvcf.js} +2 -2
- package/dist/bpmn-binding-resolver-5scq28mc.js +145 -0
- package/dist/{bpmn-branch-y1m9f10n.js → bpmn-branch-t12a7jvf.js} +50 -44
- package/dist/bpmn-format-service-ay6jd9he.js +69 -0
- package/dist/{bpmn-refresh-service-ew545y06.js → bpmn-refresh-service-ak1ctkwg.js} +4 -4
- package/dist/{bpmn-update-metadata-service-jhahhjab.js → bpmn-update-metadata-service-hqe4edze.js} +6 -5
- package/dist/{bpmn-validate-service-6z2dj8ac.js → bpmn-validate-service-48sfy3a2.js} +3 -3
- package/dist/{case-api-4mstfkzf.js → case-api-e3fmq685.js} +6 -6
- package/dist/case-bindings-service-nswc6v0v.js +240 -0
- package/dist/case-debug-studio-web-service-58gtqznh.js +135 -0
- package/dist/case-format-service-6s5e1ckk.js +84 -0
- package/dist/{case-pack-service-v7wtb0qt.js → case-pack-service-sg435he1.js} +62 -11
- package/dist/{case-validate-service-bnpaf0zt.js → case-validate-service-7s69shsa.js} +1424 -42
- package/dist/{connector-enrichment-service-scrqnke3.js → connector-enrichment-service-9rqr3esj.js} +27 -26
- package/dist/{connector-lookup-service-hnk08t3m.js → connector-lookup-service-pencasp9.js} +5 -5
- package/dist/{connector-service-581bhxaj.js → connector-service-k4cgcv2b.js} +224 -56
- package/dist/{connector-task-spec-y2tcthz5.js → connector-task-spec-13ex0x0m.js} +27 -26
- package/dist/{conversion-FQTRFHRX-03xh3xbp.js → conversion-FQTRFHRX-0y9br7gw.js} +6 -5
- package/dist/de-FGHEJRCI-gn4cf5gh.js +2697 -0
- package/dist/de-MUJPA4EB-dpg7t2rw.js +173 -0
- package/dist/{debug-conversation-trigger-nj04k7s2.js → debug-conversation-trigger-wgzjaasj.js} +17 -14
- package/dist/{debug-http-client-c4teyma3.js → debug-http-client-7dvbwp96.js} +2 -2
- package/dist/{debug-service-m5jdyz3q.js → debug-service-8cwxhgww.js} +3 -3
- package/dist/{edge-service-vv2yfsn4.js → edge-service-szpsaezp.js} +17 -14
- package/dist/{index-yqfqxh2r.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
- package/dist/{en-TBNO2WUV-rfe87pgh.js → en-BWGKA5OE-1qkvb9rn.js} +2 -2
- package/dist/en-FBPVNKFN-dqt573xn.js +138 -0
- package/dist/en-TBNO2WUV-9nan43e5.js +1936 -0
- package/dist/{enrichment-service-a65qt7y1.js → enrichment-service-7n1tf75p.js} +4 -4
- package/dist/es-7SE7HX2X-8yh1aj2y.js +173 -0
- package/dist/es-KR3ZSNMP-0cszm2n3.js +2697 -0
- package/dist/es-MX-2MYFZU7X-3rek4r73.js +173 -0
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +2697 -0
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/{flow-api-vqvvs0q2.js → flow-api-4vkpbmt3.js} +7 -7
- package/dist/{flow-debug-service-vd7bdyhg.js → flow-debug-service-9tad5ckh.js} +66 -41
- package/dist/{flow-eval-node-target-mve3v55h.js → flow-eval-node-target-g222rh2e.js} +22 -15
- package/dist/flow-eval-run-api-hashjgq1.js +13 -0
- package/dist/{flow-eval-run-service-rt9kg4wx.js → flow-eval-run-service-btghb02r.js} +109 -224
- package/dist/{flow-eval-service-ededh59n.js → flow-eval-service-ma5psrsd.js} +346 -302
- package/dist/{flow-init-service-4ve9tr0t.js → flow-init-service-662zhfd3.js} +22 -18
- package/dist/{flow-io-2dd3sx38.js → flow-io-3cqz0svg.js} +16 -13
- package/dist/{flow-migrate-service-nbe6et60.js → flow-migrate-service-ehx7nmsr.js} +18 -14
- package/dist/{flow-pack-service-b2n877d8.js → flow-pack-service-a3w3489r.js} +43 -35
- package/dist/flow-validate-service-02e21w4d.js +3555 -0
- package/dist/fr-MDFKNZ4C-h4a122k9.js +173 -0
- package/dist/fr-Y6NPVODW-q5ef3htr.js +2697 -0
- package/dist/{governance-fetcher-at165287.js → governance-fetcher-7vxmap1e.js} +5 -4
- package/dist/{headless-85f2cys0.js → headless-627q5my5.js} +42909 -1756
- package/dist/{hitl-service-xn1bt80z.js → hitl-service-fn94tk6z.js} +16 -13
- package/dist/{index-hfsfzg4k.js → index-3arytfxn.js} +6 -4
- package/dist/{index-d1yqqk6q.js → index-55cym5j7.js} +6 -4
- package/dist/{index-0j6xww0f.js → index-9f94yk28.js} +3 -3
- package/dist/{index-1kgxzh8x.js → index-fz4ttsde.js} +14 -2
- package/dist/index-gvwc29bb.js +16742 -0
- package/dist/{index-mkgrn150.js → index-j1azsfr5.js} +36 -33
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/{index-938ee96p.js → index-rtg24r4x.js} +1 -1
- package/dist/index-tzccx5ym.js +2961 -0
- package/dist/{index-acd6bpqc.js → index-ymsd3pyx.js} +12 -15
- package/dist/index.js +3 -3
- package/dist/{input-reader-1wda1a2v.js → input-reader-7pzkcw6t.js} +1 -1
- package/dist/{input-reader-svafwk7x.js → input-reader-j8rvde4z.js} +1 -1
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +2697 -0
- package/dist/ja-UTQEAP34-8e0q6swp.js +173 -0
- package/dist/known-types-8dhhqk35.js +19 -0
- package/dist/ko-AXCHW2OK-askct7f6.js +173 -0
- package/dist/ko-AYBDSRZG-am0h0m2r.js +2697 -0
- package/dist/{maestro-automate-entry-gwntzkvj.js → maestro-automate-entry-jehpbg37.js} +2 -2
- package/dist/{maestro-debug-service-dvh7qbx8.js → maestro-debug-service-xhtszkrc.js} +10 -10
- package/dist/{maestro-pack-service-fam5zdm3.js → maestro-pack-service-fkkc5g3v.js} +12 -6
- package/dist/{node-ks3095fb.js → node-p4bde6qy.js} +2344 -376
- package/dist/node-service-frvz67y3.js +83 -0
- package/dist/{node-sync-service-zwvm30qg.js → node-sync-service-wa2t7c65.js} +14 -14
- package/dist/{packager-tool-me5q0naa.js → packager-tool-095jzn8v.js} +16 -6
- package/dist/{packager-tool-y5f2qhfe.js → packager-tool-19030vpg.js} +32 -2
- package/dist/{packager-tool-gtqkcj4x.js → packager-tool-2c1rbj85.js} +310 -13
- package/dist/packager-tool-2q1mffef.js +261 -0
- package/dist/{flow-validate-service-0hxf5080.js → packager-tool-2xrng5ff.js} +1956 -3065
- package/dist/{packager-tool-8dgxmjzx.js → packager-tool-30ky51ca.js} +6 -3
- package/dist/{packager-tool-d5mjdpbf.js → packager-tool-4r35ye9r.js} +5 -4
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/{packager-tool-db4jm1rz.js → packager-tool-56gcg9de.js} +1 -1
- package/dist/{packager-tool-29eg86w6.js → packager-tool-6rsegsby.js} +6 -7
- package/dist/packager-tool-7msx23gd.js +13 -0
- package/dist/packager-tool-7q6z6npd.js +1937 -0
- package/dist/packager-tool-8qp60s20.js +12 -0
- package/dist/{packager-tool-s1r7krkp.js → packager-tool-9pccpz3r.js} +1 -1
- package/dist/{packager-tool-m351tkkr.js → packager-tool-c95fhhys.js} +30 -8
- package/dist/{packager-tool-kg5sxneg.js → packager-tool-cmzzh4f8.js} +72 -73
- package/dist/{packager-tool-ffvmys2r.js → packager-tool-cr0z8cbj.js} +5 -5
- package/dist/{packager-tool-8fkt71n4.js → packager-tool-cs1ec1da.js} +4 -3
- package/dist/{packager-tool-xatnrtwp.js → packager-tool-d2813z49.js} +9 -9
- package/dist/packager-tool-d88rqwk8.js +135 -0
- package/dist/{packager-tool-pm3qh1hy.js → packager-tool-dh5nppv4.js} +1 -1
- package/dist/packager-tool-dqxz5v18.js +486 -0
- package/dist/{packager-tool-r87gxwqa.js → packager-tool-e87tzg4y.js} +2 -2
- package/dist/{packager-tool-w9fd7vzs.js → packager-tool-f33sg3vr.js} +9 -9
- package/dist/{packager-tool-cj2ka9jr.js → packager-tool-fer9mdsq.js} +2 -2
- package/dist/{packager-tool-70eh7rpg.js → packager-tool-fm67whdy.js} +23 -5
- package/dist/packager-tool-fq7wtkd3.js +21012 -0
- package/dist/packager-tool-fvm2dddf.js +6297 -0
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-ejyeka5x.js → packager-tool-gpwec9sp.js} +2 -2
- package/dist/{packager-tool-pap09zfh.js → packager-tool-h8x54cvx.js} +1 -1
- package/dist/{packager-tool-9vh3df76.js → packager-tool-hdmhxdch.js} +7 -7
- package/dist/packager-tool-hnyecbk6.js +88 -0
- package/dist/{packager-tool-mtbak8t4.js → packager-tool-j00gcgbs.js} +2 -2
- package/dist/packager-tool-j78fwwhq.js +16 -0
- package/dist/packager-tool-jysvpt8p.js +11 -0
- package/dist/{packager-tool-jfv7t0c8.js → packager-tool-kb554twx.js} +94 -94
- package/dist/{packager-tool-k4x5yn3p.js → packager-tool-khm7zsm8.js} +4 -1
- package/dist/packager-tool-kj0qc4f4.js +269 -0
- package/dist/{packager-tool-12636p2y.js → packager-tool-mcjjj1hk.js} +4 -4
- package/dist/{packager-tool-bftjhmqz.js → packager-tool-mfrdmqmt.js} +124 -2
- package/dist/{packager-tool-qgh5yaeh.js → packager-tool-mj89jhvb.js} +1 -1
- package/dist/{packager-tool-ve35117x.js → packager-tool-mjz4hma1.js} +5791 -176
- package/dist/packager-tool-paq9c70w.js +1332 -0
- package/dist/{packager-tool-d8v984ah.js → packager-tool-q2gwvnf5.js} +15 -56
- package/dist/{packager-tool-nmznynbj.js → packager-tool-qff6ang6.js} +1 -1
- package/dist/{packager-tool-j79gbsee.js → packager-tool-rg5pkkf0.js} +6 -6
- package/dist/{packager-tool-7309ymg1.js → packager-tool-s1466723.js} +10 -13
- package/dist/{packager-tool-54b4v7wp.js → packager-tool-te6rrpsz.js} +205 -195
- package/dist/packager-tool-vcjq9xkc.js +1895 -0
- package/dist/{packager-tool-w20r6n9v.js → packager-tool-vck7ct1e.js} +2877 -2221
- package/dist/{packager-tool-e8td7b01.js → packager-tool-vdc8r21p.js} +10328 -16610
- package/dist/{packager-tool-nxw5yzs7.js → packager-tool-vqcnvaae.js} +1 -1
- package/dist/{packager-tool-7rz102fw.js → packager-tool-wd01egnx.js} +1 -1
- package/dist/{packager-tool-gxqd24n0.js → packager-tool-wger1vt9.js} +7 -7
- package/dist/{packager-tool-a6yfnjgx.js → packager-tool-wynrdnqj.js} +1 -1
- package/dist/packager-tool-x0eamrk4.js +104577 -0
- package/dist/packager-tool-x92czn5x.js +208 -0
- package/dist/{packager-tool-am67sn1c.js → packager-tool-xtkgeccn.js} +1 -1
- package/dist/packager-tool-y59jhapb.js +10369 -0
- package/dist/{packager-tool-317z6dc1.js → packager-tool-ydg78w9z.js} +23 -23
- package/dist/{packager-tool-rr8hveb9.js → packager-tool-ygrrb1zh.js} +1 -1
- package/dist/{packager-tool-f0kd5kq4.js → packager-tool-yrsrzz1a.js} +127 -12
- package/dist/{packager-tool-d9dpx9wn.js → packager-tool-z185rq2a.js} +1 -1
- package/dist/{packager-tool-79gws1zn.js → packager-tool-z6nkdv48.js} +270 -24
- package/dist/{packager-tool-802qm7jy.js → packager-tool-zzxt99e4.js} +3 -3
- package/dist/packager-tool.js +75 -218
- package/dist/{project-artifacts-9z7atbk7.js → project-artifacts-h5cydk2n.js} +1 -1
- package/dist/{project-validator-0rkrfmj0.js → project-validator-ek97s27p.js} +1 -1
- package/dist/pt-3DIO5QWG-59b3f4bc.js +173 -0
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +2697 -0
- package/dist/pt-BR-Y6K6XHXK-mp3hwhw1.js +173 -0
- package/dist/pt-ROXU257Y-yd80gx6s.js +2697 -0
- package/dist/{resourcesSyncService-3pajvveg.js → resourcesSyncService-7s92g1hm.js} +28 -27
- package/dist/ro-AVAWPKOO-42m6am1w.js +2697 -0
- package/dist/ro-BWR3ONRR-vzx3hy8a.js +173 -0
- package/dist/ru-GSCT4ARZ-jrxwev63.js +10 -0
- package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
- package/dist/sdd-lookup-7h7j2h6v.js +48 -0
- package/dist/{serialization-BXU6AKAN-dk0sqx89.js → serialization-BXU6AKAN-0ghhrsja.js} +6 -5
- package/dist/{shared-utils-twgpb9ax.js → shared-utils-6z7gnnc8.js} +1 -1
- package/dist/{strict-case-rules-zxnq80zm.js → strict-case-rules-byym8cvc.js} +141 -109
- package/dist/strict-sdd-audit-v156c9e3.js +2520 -0
- package/dist/tidy-service-zyy7wxc0.js +39 -0
- package/dist/{tool-pxfafj3m.js → tool-dejjyv8m.js} +213 -51
- package/dist/{tool-td30zmyt.js → tool-v0r5qzcc.js} +106 -146
- package/dist/tool.js +3 -3
- package/dist/tr-5IIHSFW5-hw4cewew.js +173 -0
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +2696 -0
- package/dist/{trigger-enrichment-service-t3wcd12r.js → trigger-enrichment-service-ak1nrz5t.js} +30 -29
- package/dist/{variable-service-2q705dsx.js → variable-service-t9gsp8xs.js} +16 -13
- package/dist/{wait-for-flow-job-sx0ht8sb.js → wait-for-flow-job-1s8ka07s.js} +7 -7
- package/dist/{xml-949787yf.js → xml-3rzcgm9z.js} +1359 -659
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +2697 -0
- package/dist/zh-CN-R2KU4U5L-tc1hat59.js +173 -0
- package/dist/zh-TW-GNKMELBF-j674515r.js +173 -0
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +2697 -0
- package/package.json +3 -2
- package/dist/bpmn-format-service-r67afbny.js +0 -477
- package/dist/case-debug-studio-web-service-kj1797m8.js +0 -336
- package/dist/known-types-eq32py2n.js +0 -20
- package/dist/node-service-teagjd9n.js +0 -75
- package/dist/packager-tool-15bstxb6.js +0 -4192
- package/dist/packager-tool-1zpm7wts.js +0 -7217
- package/dist/packager-tool-7tjxtpfp.js +0 -106
- package/dist/packager-tool-ckhyvcn5.js +0 -58
- package/dist/packager-tool-dz506qqq.js +0 -2120
- package/dist/packager-tool-hpc2j0zw.js +0 -27
- package/dist/packager-tool-jjpc0yka.js +0 -304
- package/dist/packager-tool-xtv236p7.js +0 -73
- package/dist/strict-sdd-audit-zc0n5vj6.js +0 -1024
- package/dist/tidy-service-hc9gex0v.js +0 -36
- /package/dist/{localization-xecwjpe2.js → localization-y790z9vm.js} +0 -0
|
@@ -1,32 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAgentProjectMetadataReader
|
|
3
|
+
} from "./packager-tool-8qp60s20.js";
|
|
1
4
|
import {
|
|
2
5
|
ConnectionsApi,
|
|
3
6
|
ElementsApi,
|
|
4
7
|
createApiClient,
|
|
5
8
|
getConnectorActivityMetadataV4,
|
|
6
9
|
isV4ActivityConfiguration
|
|
7
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-fq7wtkd3.js";
|
|
8
11
|
import {
|
|
9
12
|
listKnownSdkNodes
|
|
10
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-dh5nppv4.js";
|
|
11
14
|
import {
|
|
12
15
|
MANIFEST_FEATURE_FLAGS,
|
|
13
16
|
ManifestClient,
|
|
14
17
|
extractIOFromEntryPoints,
|
|
15
18
|
getServiceType,
|
|
16
19
|
taskDefinitionsToNodeManifests
|
|
17
|
-
} from "./packager-tool-
|
|
18
|
-
import {
|
|
19
|
-
resolveMaestroRegistry
|
|
20
|
-
} from "./packager-tool-pap09zfh.js";
|
|
20
|
+
} from "./packager-tool-vck7ct1e.js";
|
|
21
21
|
import {
|
|
22
22
|
getLoginStatusAsync
|
|
23
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-yrsrzz1a.js";
|
|
24
|
+
import {
|
|
25
|
+
resolveMaestroRegistry
|
|
26
|
+
} from "./packager-tool-h8x54cvx.js";
|
|
24
27
|
import {
|
|
25
28
|
UIPATH_HOME_DIR,
|
|
26
29
|
catchError,
|
|
27
30
|
hashContent,
|
|
28
31
|
logger
|
|
29
|
-
} from "./packager-tool-
|
|
32
|
+
} from "./packager-tool-z6nkdv48.js";
|
|
30
33
|
import {
|
|
31
34
|
getFileSystem
|
|
32
35
|
} from "./packager-tool-0v3s8r01.js";
|
|
@@ -157,7 +160,8 @@ function applyOptionalFieldProps(compact, field) {
|
|
|
157
160
|
lookupValue: field.reference.lookupValue,
|
|
158
161
|
lookupNames: field.reference.lookupNames,
|
|
159
162
|
path: field.reference.path,
|
|
160
|
-
childPath: field.reference.childPath
|
|
163
|
+
childPath: field.reference.childPath,
|
|
164
|
+
scriptRef: field.reference.scriptRef
|
|
161
165
|
};
|
|
162
166
|
}
|
|
163
167
|
}
|
|
@@ -326,8 +330,8 @@ async function fetchConnectorMetadata(connectorKey, objectName, connectionId) {
|
|
|
326
330
|
});
|
|
327
331
|
return await response.raw.json();
|
|
328
332
|
}
|
|
329
|
-
async function fetchConnectorActivityMetadataV4(connectorKey,
|
|
330
|
-
return await getConnectorActivityMetadataV4(undefined, connectorKey,
|
|
333
|
+
async function fetchConnectorActivityMetadataV4(connectorKey, objectName) {
|
|
334
|
+
return await getConnectorActivityMetadataV4(undefined, connectorKey, objectName);
|
|
331
335
|
}
|
|
332
336
|
function buildEnrichedActivityNode(node, metadata, method) {
|
|
333
337
|
const connectorMethodInfo = metadata?.metadata?.method?.[method];
|
|
@@ -361,16 +365,16 @@ async function enrichConnectorActivityNode(node, connectionId) {
|
|
|
361
365
|
}
|
|
362
366
|
async function enrichV4ConnectorActivityNode(node, connectionId, config) {
|
|
363
367
|
const connectorKey = config?.connectorKey;
|
|
364
|
-
const
|
|
368
|
+
const objectName = config?.objectName;
|
|
365
369
|
const method = config?.httpMethod;
|
|
366
|
-
if (!connectorKey || !
|
|
367
|
-
logger.warn("v4 IS enrichment skipped: node configuration carries no connectorKey/
|
|
370
|
+
if (!connectorKey || !objectName || !method) {
|
|
371
|
+
logger.warn("v4 IS enrichment skipped: node configuration carries no connectorKey/objectName/httpMethod.");
|
|
368
372
|
return node;
|
|
369
373
|
}
|
|
370
374
|
if (connectionId) {
|
|
371
375
|
logger.warn("v4 metadata endpoints are not connection-scoped — --connection-id is ignored for 4.0.0 enrichment.");
|
|
372
376
|
}
|
|
373
|
-
const [error, metadata] = await catchError(fetchConnectorActivityMetadataV4(connectorKey,
|
|
377
|
+
const [error, metadata] = await catchError(fetchConnectorActivityMetadataV4(connectorKey, objectName));
|
|
374
378
|
if (error) {
|
|
375
379
|
logger.warn(`IS v4 enrichment failed: ${error.message}`);
|
|
376
380
|
return node;
|
|
@@ -471,7 +475,7 @@ async function getPrecacheNode(nodeType, options) {
|
|
|
471
475
|
}
|
|
472
476
|
|
|
473
477
|
// ../maestro-sdk/src/registry/node-storage.ts
|
|
474
|
-
var CACHE_FORMAT_VERSION =
|
|
478
|
+
var CACHE_FORMAT_VERSION = 5;
|
|
475
479
|
var INDEX_FILE = "index.json";
|
|
476
480
|
var METADATA_FILE = "index.meta.json";
|
|
477
481
|
var SEARCH_INDEX_FILE = "search-index.json";
|
|
@@ -671,10 +675,6 @@ var EMPTY_IO = {
|
|
|
671
675
|
inputs: {},
|
|
672
676
|
outputs: {}
|
|
673
677
|
};
|
|
674
|
-
var agentProjectMetadataReader;
|
|
675
|
-
function setAgentProjectMetadataReader(reader) {
|
|
676
|
-
agentProjectMetadataReader = reader;
|
|
677
|
-
}
|
|
678
678
|
function findEnclosingProjectId(solutionDir, projects, cwd) {
|
|
679
679
|
const fs = getFileSystem();
|
|
680
680
|
for (const p of projects) {
|
|
@@ -844,7 +844,7 @@ async function buildInSolutionNodeManifests(ctx) {
|
|
|
844
844
|
if (!serviceType)
|
|
845
845
|
continue;
|
|
846
846
|
const projectDir = fs.path.resolve(ctx.solutionDir, fs.path.dirname(project.ProjectRelativePath));
|
|
847
|
-
const reader =
|
|
847
|
+
const reader = getAgentProjectMetadataReader();
|
|
848
848
|
const [name, io, projectMetadata] = await Promise.all([
|
|
849
849
|
readProjectName(projectDir),
|
|
850
850
|
readProjectEntryPointIO(projectDir),
|
|
@@ -1228,6 +1228,6 @@ async function searchNodesWithFilters(keyword, filters, options) {
|
|
|
1228
1228
|
return searchWithFilters(nodes, keyword, filters);
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
-
export { filterNodes, searchWithFilters, isConnectorNode, isConnectorTriggerNode, extractTriggerEventParameters, extractTriggerFilterFields, extractActivityFilterFields, fetchConnectorTriggerMetadata, getConnectorConfiguration, getConnectorInfo, fetchConnectionInfo, fetchConnectorMetadata, fetchConnectorActivityMetadataV4, enrichConnectorNode, resolveNodeStorageDir, saveNodeIndex, loadNodeIndex, saveIndexMetadata, loadIndexMetadata,
|
|
1231
|
+
export { filterNodes, searchWithFilters, isConnectorNode, isConnectorTriggerNode, extractTriggerEventParameters, extractTriggerFilterFields, extractActivityFilterFields, fetchConnectorTriggerMetadata, getConnectorConfiguration, getConnectorInfo, fetchConnectionInfo, fetchConnectorMetadata, fetchConnectorActivityMetadataV4, enrichConnectorNode, resolveNodeStorageDir, saveNodeIndex, loadNodeIndex, saveIndexMetadata, loadIndexMetadata, findSolutionFromCwd, pullNodes, pullRemoteNodes, listNodes, searchNodeSummariesWithAvailability, searchNodes, getNode, getNodeEnriched, searchNodesWithFilters };
|
|
1232
1232
|
|
|
1233
|
-
//# debugId=
|
|
1233
|
+
//# debugId=57EBF3E5EAE7DC5964756E2164756E21
|
|
@@ -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
|
|
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,
|
|
@@ -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=
|
|
2442
|
+
//# debugId=9A92DFA480A9998F64756E2164756E21
|