@uipath/flow-tool 1.206.0-preview.306 → 1.207.0-preview.307
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 +2 -1
- package/dist/THIRD-PARTY-NOTICES.md +12 -12
- package/dist/{applicationinsights-web-8m26566f.js → applicationinsights-web-c6epsatg.js} +1 -1
- package/dist/{authoring-az69rn0j.js → authoring-f5ttjy3d.js} +5 -5
- package/dist/{binding-service-jdzw5h8a.js → binding-service-b4kes1cr.js} +37 -34
- package/dist/{browser-strategy-gnftxwsf.js → browser-strategy-1nk8hgcf.js} +1 -1
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-service-yq01bg3n.js → connector-service-xjszs9v3.js} +156 -76
- package/dist/{conversion-7O2PDOQB-xx5zfw6n.js → conversion-A2KZVSOA-313011c5.js} +256 -90
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-NX7YTOSY-xvwqrst4.js} +1282 -10
- package/dist/{de-2BEKRUMY-MD7L477H-7mwat6r6.js → de-HF4GJ4EK-xrrajtht.js} +1277 -15
- package/dist/{de-VQWT6L5Y-mch4qwyv.js → de-IQ44WEAK-ayb953tp.js} +19 -4
- package/dist/{de-3CU65EDB-r7r10am9.js → de-T4OCQPNU-hrqdjart.js} +6 -6
- package/dist/{debug-conversation-trigger-62ebex43.js → debug-conversation-trigger-j20ms2xc.js} +4 -9
- package/dist/{debug-http-client-ykzhg1zx.js → debug-http-client-fypqjmfs.js} +6 -5
- package/dist/{debug-service-xq8vhrkq.js → debug-service-zv5hj0cx.js} +11 -6
- package/dist/{edge-service-w5jbtehr.js → edge-service-8jrhdfvf.js} +41 -31
- package/dist/{elk.bundled-phy0zc81.js → elk.bundled-pfmz610v.js} +1 -1
- package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
- package/dist/{en-LAVDF7IQ-ba7wzsxp.js → en-5JIPZTS5-v0f9wmd2.js} +4 -2
- package/dist/{en-X6T4SP2Y-FPGCJIFV-wsbs6fqx.js → en-ETY46SDS-RI6EZCN6-x64e1cks.js} +67 -3
- package/dist/{en-X6T4SP2Y-xe57av1w.js → en-ETY46SDS-yfqhqvbx.js} +66 -2
- package/dist/{en-WPCQ4JKF-jnj0q4e1.js → en-JZXY3PYE-m54g0zx7.js} +4 -4
- package/dist/{en-LQHKFSEY-jz2knr92.js → en-LQHKFSEY-bypy1p39.js} +1 -1
- package/dist/{en-U2NSIIZN-whenw6wh.js → en-T6VSEF3E-1hq4zfrt.js} +5 -3
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-TXQBFYRA-q5v6wcmn.js → es-IYP2OLUY-7SKYGF6A-rd9jrktp.js} +1272 -11
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-S2RFDGDE-x9r0tv30.js → es-MX-A2DFN7CA-q5m62f60.js} +19 -4
- package/dist/{es-MX-IHGRIEWH-23X37OPS-vx539dfs.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -15
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-D74A6FRL-y7xh0r57.js} +1281 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{es-MX-F7ZEHSNE-gxpm47vv.js → es-MX-YQNHSXDT-fd5ybreb.js} +6 -6
- package/dist/{es-EP563JWQ-1agj5n4e.js → es-TNUPGHGG-886me0sq.js} +19 -4
- package/dist/{es-KHVY67FO-natcvmmm.js → es-YHECPVFB-7jsrxa01.js} +6 -6
- package/dist/extraction-availability-service-h08mngty.js +343 -0
- package/dist/{first-party-service-6b9ajm57.js → first-party-service-qfg2m05s.js} +1 -1
- package/dist/{flow-api-1hr7z6qc.js → flow-api-bmg7beey.js} +15 -12
- package/dist/{flow-debug-service-vt2k0v46.js → flow-debug-service-jb9jxat1.js} +232 -156
- package/dist/flow-eval-node-target-scxb918a.js +31 -0
- package/dist/flow-eval-run-api-g6sphtf3.js +11 -0
- package/dist/{flow-eval-run-service-vh2041qg.js → flow-eval-run-service-n68xb9sk.js} +116 -119
- package/dist/{flow-eval-service-q2zp54gq.js → flow-eval-service-88qyrg7d.js} +141 -337
- package/dist/{flow-init-sdk-source-vg1ckdrf.js → flow-init-sdk-source-t2q2w6v7.js} +5 -5
- package/dist/flow-init-service-v6jvdmqa.js +27 -0
- package/dist/flow-io-4z79xnb3.js +29 -0
- package/dist/{flow-migrate-service-wgrz2msp.js → flow-migrate-service-gbdh07zh.js} +20 -20
- package/dist/{flow-pack-service-kze10925.js → flow-pack-service-gca3ekj7.js} +89 -90
- package/dist/flow-validate-service-z0z4ndn8.js +49 -0
- package/dist/{fr-7LK3QUWT-a94yejcs.js → fr-EPBGOBOP-rs7qy97k.js} +19 -4
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-3ANDQPI3-gjhmym96.js} +1282 -10
- package/dist/{fr-7ZDL4MVO-CXMRZDOF-b816xj36.js → fr-NISALSPL-vzfmygd7.js} +1277 -15
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{fr-I42FODC5-p80x5v4b.js → fr-W3AFCEDL-cjfr0xqp.js} +6 -6
- package/dist/{governance-fetcher-y0q4m57j.js → governance-fetcher-26h7eqrk.js} +7 -7
- package/dist/{headless-41t9wwb7.js → headless-23ywyx9h.js} +390 -195
- package/dist/{hitl-service-8rvw1zsh.js → hitl-service-v94wsz1f.js} +11 -11
- package/dist/{index-wss1mf5j.js → index-9a52zr4w.js} +3033 -767
- package/dist/{index-t2f7scza.js → index-db1djbzm.js} +12 -8
- package/dist/{index-amqqhge1.js → index-ewg6ygg0.js} +1 -1
- package/dist/{index-r44xc976.js → index-eyjrdzgx.js} +5 -5
- package/dist/{index-7fet3f0s.js → index-h67w2p9p.js} +3 -3
- package/dist/index-kwrhrb9p.js +161 -0
- package/dist/{index-f5kq7265.js → index-r6crd7tx.js} +6 -4
- package/dist/{index-ng011fzs.js → index-r6y07e14.js} +94 -74
- package/dist/{index-vvf52vnn.js → index-re7r0ezw.js} +34 -27
- package/dist/{index-5y5pbdx5.js → index-sazh9ymk.js} +13 -11
- package/dist/{index-5pzp2qeb.js → index-v3w1930f.js} +18 -18
- package/dist/{index-d4bdedx3.js → index-ynw2efd8.js} +6 -4
- package/dist/index.js +16 -14
- package/dist/{index.umd.min-ttg1qc0x.js → index.umd.min-5yxdz5j3.js} +1 -1
- package/dist/init.js +18 -17
- package/dist/{inline-entity-resolver-aty0xw8s.js → inline-entity-resolver-r7ebmssg.js} +11 -11
- package/dist/input-reader-3zvbsn6a.js +12 -0
- package/dist/integration-service-fetcher-0vdd4pbb.js +65 -0
- package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
- package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
- package/dist/{ja-LGAM5HKR-NTPKIZEM-aaj773vd.js → ja-HTS2Q4YG-7Q6WUI6H-j8dkhe93.js} +1278 -11
- package/dist/{ja-WY2W6733-ayr36h1f.js → ja-HWFIXC2V-gg9xvhsv.js} +19 -4
- package/dist/{ja-GI3OUHPZ-28fy60r0.js → ja-WOANIGX4-qnyzk2t8.js} +6 -6
- package/dist/{jmespath-wwym30dp.js → jmespath-dbsejrwn.js} +1 -1
- package/dist/json-input-pj18qjt0.js +17 -0
- package/dist/{known-types-v9sxcq1c.js → known-types-pen5h5kz.js} +4 -4
- package/dist/{ko-7B4SUZB7-2SLI636D-khdzwz6c.js → ko-3JFGTMNY-VT6UQ3IS-z5n880em.js} +1272 -11
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-H2RGQWKJ-9696w762.js → ko-L3BMYD3Q-exfhqfbh.js} +19 -4
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/{ko-RYKAL74T-10m4z8vw.js → ko-RMOVRC7M-whyynn7n.js} +6 -6
- package/dist/library-option-9fqvdh8v.js +14 -0
- package/dist/localization-axzmx1mb.js +45 -0
- package/dist/{maestro-automate-entry-d1v5q5mv.js → maestro-automate-entry-mrap5xmt.js} +2 -2
- package/dist/manifest-hmeqvk74.js +60 -0
- package/dist/node-service-d6211mt9.js +65 -0
- package/dist/{node-strategy-wrjxmbzt.js → node-strategy-2r78gtca.js} +2 -2
- package/dist/{node-sync-service-6h12t41d.js → node-sync-service-6wbypdgb.js} +22 -15
- package/dist/node-w3wny6qw.js +172 -0
- package/dist/packager-tool-0x8g8b5r.js +25 -0
- package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-14rdgz3c.js → packager-tool-3sxg16ft.js} +7 -7
- package/dist/packager-tool-40bxn7j2.js +63 -0
- package/dist/{packager-tool-6an893wm.js → packager-tool-4f4jp7ez.js} +3 -3
- package/dist/packager-tool-4gh9ftn8.js +224 -0
- package/dist/{packager-tool-pxq0bwp0.js → packager-tool-4hn7v05x.js} +16 -9
- package/dist/packager-tool-4skf6ak1.js +31 -0
- package/dist/{packager-tool-951nhh3e.js → packager-tool-5n1v6y3q.js} +1 -1
- package/dist/{packager-tool-2b0tn4p4.js → packager-tool-6azsz9h8.js} +7 -7
- package/dist/{packager-tool-zydkpqta.js → packager-tool-6sqq0mzd.js} +330 -902
- package/dist/{packager-tool-54jdtyk4.js → packager-tool-7d6y5paj.js} +11 -11
- package/dist/{packager-tool-ac6rvny7.js → packager-tool-7re5d8aq.js} +1139 -466
- package/dist/{packager-tool-4w37xezc.js → packager-tool-7tmtjb7p.js} +13 -13
- package/dist/{packager-tool-6an563h8.js → packager-tool-7wpb19zf.js} +10 -3
- package/dist/packager-tool-8qc7ram5.js +16 -0
- package/dist/packager-tool-942v78s9.js +40 -0
- package/dist/packager-tool-9tv5cyhr.js +16 -0
- package/dist/{packager-tool-7atc775f.js → packager-tool-ajx79m52.js} +1 -1
- package/dist/{packager-tool-p7f12rkc.js → packager-tool-b14qj57y.js} +9 -7
- package/dist/packager-tool-bbq5kbb9.js +318 -0
- package/dist/{packager-tool-xhrm7cgz.js → packager-tool-bcsjm5hv.js} +470 -315
- package/dist/{packager-tool-xdaxdc00.js → packager-tool-bn09xgy8.js} +14 -14
- package/dist/{packager-tool-m30d5s5s.js → packager-tool-bv24wxxz.js} +24 -10
- package/dist/{packager-tool-1qg04b7q.js → packager-tool-bzcphfa8.js} +4 -2
- package/dist/packager-tool-c8mn8jr0.js +1060 -0
- package/dist/{packager-tool-gdpw0daf.js → packager-tool-dmhmcav3.js} +3773 -2625
- package/dist/{packager-tool-vb1ect63.js → packager-tool-e8bxpwdp.js} +21 -21
- package/dist/{packager-tool-m1y5ah6s.js → packager-tool-f3htkspn.js} +215 -233
- package/dist/{packager-tool-y1bcfvcs.js → packager-tool-frt20zp9.js} +2 -2
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-1rhch6b5.js → packager-tool-gjjr2a2w.js} +66 -19
- package/dist/{packager-tool-v1q6601f.js → packager-tool-hyx81x30.js} +584 -651
- package/dist/{packager-tool-67h9vcvz.js → packager-tool-j6m8nkms.js} +1123 -295
- package/dist/{packager-tool-64r7e4ek.js → packager-tool-jjnfwfd4.js} +2 -2
- package/dist/packager-tool-kh1taypp.js +41 -0
- package/dist/{packager-tool-dc12ytg5.js → packager-tool-krr2x2ny.js} +10 -10
- package/dist/{packager-tool-pdt4jmnw.js → packager-tool-m2h98d2z.js} +246 -61
- package/dist/{packager-tool-9m5vba43.js → packager-tool-md1vcqh4.js} +233 -14
- package/dist/{packager-tool-4g87fbz6.js → packager-tool-mm6a12y4.js} +8 -8
- package/dist/{packager-tool-2n6eg5eq.js → packager-tool-mvzswn9n.js} +134 -68
- package/dist/{packager-tool-x4xdtsbp.js → packager-tool-n4fky033.js} +15328 -7171
- package/dist/{packager-tool-hyd7qpfw.js → packager-tool-npm5tzpt.js} +489 -118
- package/dist/packager-tool-p8ncdnsj.js +30 -0
- package/dist/{packager-tool-m126jzdd.js → packager-tool-qkdbfkev.js} +14 -11
- package/dist/{packager-tool-7mxn3e7j.js → packager-tool-qtz83h01.js} +4 -2
- package/dist/{packager-tool-hk0fnvz5.js → packager-tool-qx8wvedy.js} +1 -1
- package/dist/{packager-tool-q2kwk5bf.js → packager-tool-qyhvgenw.js} +6 -4
- package/dist/{packager-tool-6pyaaxzk.js → packager-tool-rcjtmknf.js} +351 -42
- package/dist/{packager-tool-jjkypwge.js → packager-tool-s8jxyjgj.js} +15 -4
- package/dist/packager-tool-swvgkcq7.js +5973 -0
- package/dist/{packager-tool-fzgfb0jt.js → packager-tool-t0e7fvqz.js} +1228 -759
- package/dist/packager-tool-t0zz0jtb.js +423 -0
- package/dist/{packager-tool-p123mtfx.js → packager-tool-tgawhrva.js} +58 -16
- package/dist/{packager-tool-yewnsyag.js → packager-tool-vg16h3pk.js} +80 -6
- package/dist/{packager-tool-dbc4hv4n.js → packager-tool-vtz6gvav.js} +8 -8
- package/dist/{packager-tool-f4t73ja0.js → packager-tool-wk6jaz9m.js} +228 -487
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/packager-tool-xgh2t48c.js +255 -0
- package/dist/{packager-tool-w9bkq7zb.js → packager-tool-xgvp8a8g.js} +10 -10
- package/dist/{packager-tool-h1vt1vr2.js → packager-tool-ybn5fymq.js} +2 -2
- package/dist/packager-tool-yszyrt27.js +184 -0
- package/dist/packager-tool-yx0hy6pt.js +125 -0
- package/dist/{packager-tool-ze3fnf3s.js → packager-tool-zap4kd3z.js} +7 -2
- package/dist/{packager-tool-dr3zc9n9.js → packager-tool-zgzpqfcs.js} +13 -6
- package/dist/{node-tx150jvs.js → packager-tool-zrh55d4c.js} +190 -286
- package/dist/packager-tool.js +9 -9
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-8frvq826.js} +39 -6
- package/dist/provision-node-service-b8nkty72.js +86 -0
- package/dist/{pt-2RGHDOG4-gwe2ptvg.js → pt-6RCFX6CY-v42k92ey.js} +19 -4
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-JFPKUXIZ-1cttmarb.js → pt-BR-7H7BP5DT-IOHWNCIU-kzbjgs8p.js} +1277 -11
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- package/dist/{pt-BR-JWHVZE6H-gvkknv49.js → pt-BR-HDVM5NFA-azfx4gg9.js} +19 -4
- package/dist/{pt-BR-IL3KLBID-m1mvqqzb.js → pt-BR-HJIMGPPX-s18rb4vg.js} +6 -6
- package/dist/{pt-VLA5IOHO-8t4pze0h.js → pt-DZG5FPWK-6czrqk2t.js} +6 -6
- package/dist/{pt-N7ZTJT4W-GVODJMRX-ek3zjp9k.js → pt-QWGSZKMD-RTKSQCYA-j9wqwb10.js} +1272 -11
- package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
- package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
- package/dist/{ro-FLNXVYJI-ZN43XZKK-zrcvcsj5.js → ro-B7G474JK-9k2jjk88.js} +1271 -15
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-Q3BAA4S3-1ss8n5t0.js} +1276 -10
- package/dist/{ro-53TS7SWG-hnjx1c7b.js → ro-EEKX2X3R-tz9prn67.js} +19 -4
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{ro-IRNFX376-mh84zk3n.js → ro-SX7RUXGR-kknxsr3g.js} +6 -6
- package/dist/ru-FNRVPXE5-7q150qf8.js +7 -0
- package/dist/ru-GSCT4ARZ-6OTD7JLB-j2ny4frk.js +12 -0
- package/dist/schema-document-service-007f2kw4.js +30 -0
- package/dist/{serialization-Z3UYT6BW-c994gtwh.js → serialization-7CB4AREI-b012f3vq.js} +482 -6161
- package/dist/services/binding-id-rule.d.ts +13 -0
- package/dist/services/binding-resource-types.d.ts +12 -0
- package/dist/services/extract-schema/default-schema-document.d.ts +9 -4
- package/dist/services/extract-schema/types.d.ts +73 -0
- package/dist/services/extract-schema/validate-schema-document.d.ts +75 -0
- package/dist/services/flow-scopes.d.ts +15 -0
- package/dist/services/flow-structure-checks.d.ts +8 -0
- package/dist/services/flow-validate-service.d.ts +44 -11
- package/dist/services/idp-processor-provisioning.d.ts +35 -0
- package/dist/services/node-service.d.ts +17 -23
- package/dist/services/node-validators/extract-schema-validator.d.ts +13 -0
- package/dist/services/node-validators/index.d.ts +1 -0
- package/dist/services/node-validators/js-expression-syntax-validator.d.ts +2 -1
- package/dist/services/node-validators/types.d.ts +2 -7
- package/dist/services/vars-reference-rule.d.ts +6 -0
- package/dist/solution-auth-k0s83ake.js +11 -0
- package/dist/{solution-definition-helper-6zwd9hjs.js → solution-definition-helper-qjj01xh0.js} +1 -1
- package/dist/{solution-discovery-wwwynadq.js → solution-discovery-v5qatmz2.js} +7 -7
- package/dist/taggable-variables-nc8td6er.js +134 -0
- package/dist/{tidy-service-g9qcarr9.js → tidy-service-ehhraxge.js} +17 -18
- package/dist/tool.js +16 -14
- package/dist/{tr-PIQY7JIT-2mkwk0kq.js → tr-B6TLBSLH-1797wxkh.js} +19 -4
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-CEOTUJRD-pv26erw5.js} +1276 -10
- package/dist/{tr-7AIZZWZ6-ESAESUPL-kgj5s586.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -15
- package/dist/{tr-EJKY7DVQ-rkctqva4.js → tr-OUB57VJ6-52t7zdzb.js} +6 -6
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/utils/handle-expansion.d.ts +2 -2
- package/dist/validation.js +42 -39
- package/dist/{variable-service-1s0z3e9j.js → variable-service-m8m88dy6.js} +17 -12
- package/dist/{wait-for-flow-job-vy4t4tbj.js → wait-for-flow-job-k990nmdn.js} +15 -12
- package/dist/{zh-CN-NIEVKROA-q4tbbwqz.js → zh-CN-7KN22KSH-mwvgyym6.js} +19 -4
- package/dist/{zh-CN-4FH7E7UL-84y6j2ea.js → zh-CN-FKWWWLFR-n15rj6p8.js} +6 -6
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-BB2LRIMQ-tj7kwma4.js} +1276 -10
- package/dist/{zh-CN-CN2ARPFS-NIQTWDK2-0t4qqqdc.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -15
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-5WQA6QTM-hns69sd4.js → zh-TW-52QTEYIZ-2mj7hy3e.js} +6 -6
- package/dist/{zh-TW-MSQM7YTT-m7r7nwnj.js → zh-TW-I7BH3XP2-7rb4xpzg.js} +19 -4
- package/dist/{zh-TW-7RUFEVFK-VKVRSVTP-8zmewakq.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -16
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-ECGOEPYS-wv5068r9.js} +1277 -11
- package/package.json +2 -2
- package/dist/flow-eval-node-target-20cnm783.js +0 -29
- package/dist/flow-eval-run-api-w4j8ra60.js +0 -9
- package/dist/flow-init-service-4rvjej8m.js +0 -26
- package/dist/flow-io-e7t1s141.js +0 -24
- package/dist/flow-validate-service-wfkxyvkc.js +0 -46
- package/dist/input-reader-jjq3r7ry.js +0 -11
- package/dist/localization-erchshqr.js +0 -45
- package/dist/node-service-2mbw4sjk.js +0 -64
- package/dist/packager-tool-08dsxdz8.js +0 -56
- package/dist/packager-tool-2sazb7th.js +0 -2
- package/dist/packager-tool-9217bxm2.js +0 -6
- package/dist/packager-tool-cvh1a0nm.js +0 -16
- package/dist/packager-tool-d07g2kpn.js +0 -25
- package/dist/packager-tool-f7rk9xhv.js +0 -50
- package/dist/packager-tool-jd3v0bh1.js +0 -26
- package/dist/packager-tool-k3egwd1m.js +0 -15
- package/dist/packager-tool-mfj268wk.js +0 -18
- package/dist/packager-tool-q0f1dvtd.js +0 -40
- package/dist/packager-tool-wr7gn964.js +0 -2
- package/dist/packager-tool-z1w16vjv.js +0 -461
- package/dist/ru-GSCT4ARZ-FTVCGQTL-7d8rpmsn.js +0 -12
- package/dist/ru-T73OPRTC-50m7tty9.js +0 -7
- package/dist/services/connector-request-buckets.d.ts +0 -1
- package/dist/services/flow-eval-file-store.d.ts +0 -1
- package/dist/services/inline-entity-resolver.d.ts +0 -22
- package/dist/services/packaging-utils.d.ts +0 -130
- package/dist/services/preview-id-rule.d.ts +0 -33
- package/dist/services/ui-only-node-types.d.ts +0 -1
- package/dist/solution-auth-j8x84n5z.js +0 -11
- package/dist/utils/flow-io.d.ts +0 -19
- package/dist/utils/workflow-file-format.d.ts +0 -14
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
4
|
+
import {
|
|
5
|
+
catchError2
|
|
6
|
+
} from "./packager-tool-4hn7v05x.js";
|
|
7
|
+
import {
|
|
8
|
+
RESULTS
|
|
9
|
+
} from "./packager-tool-bcsjm5hv.js";
|
|
10
|
+
import {
|
|
11
|
+
DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
12
|
+
IXP_SCHEMA_EDITOR_DRAFT_EXTENSION2,
|
|
13
|
+
readIxpSchemaEditorDraft2,
|
|
14
|
+
stripIxpSchemaEditorDraft2,
|
|
15
|
+
ixpSchemaLimitsRule2,
|
|
16
|
+
isIdpProcessorReadOnly2,
|
|
17
|
+
isPublishedIdpProcessorLink2
|
|
18
|
+
} from "./packager-tool-t0e7fvqz.js";
|
|
19
|
+
import {
|
|
20
|
+
readFlowWorkflow2,
|
|
21
|
+
writeFlowWorkflow2
|
|
22
|
+
} from "./packager-tool-942v78s9.js";
|
|
23
|
+
import {
|
|
24
|
+
collectFieldGroups,
|
|
25
|
+
collectBusinessCheckHolders,
|
|
26
|
+
validateExtractionSchemaDocument
|
|
27
|
+
} from "./packager-tool-bbq5kbb9.js";
|
|
28
|
+
import {
|
|
29
|
+
buildScaffoldConfig,
|
|
30
|
+
provisionIdpProcessorForNode
|
|
31
|
+
} from "./packager-tool-yszyrt27.js";
|
|
32
|
+
import {
|
|
33
|
+
FIELD_GROUP_ID_EXTENSION,
|
|
34
|
+
FIELD_ID_EXTENSION,
|
|
35
|
+
PARENT_FIELD_GROUP_ID_EXTENSION,
|
|
36
|
+
BUSINESS_CHECKS_EXTENSION,
|
|
37
|
+
GROUP_PATH_SEPARATOR,
|
|
38
|
+
SCHEMA_GROUP_NAME_MAX,
|
|
39
|
+
SCHEMA_INSTRUCTIONS_MAX,
|
|
40
|
+
isRecord,
|
|
41
|
+
isReadableExtractionSchema,
|
|
42
|
+
isLegacySchemaDocument
|
|
43
|
+
} from "./packager-tool-0x8g8b5r.js";
|
|
44
|
+
|
|
45
|
+
// src/services/extract-schema/close-object-schemas.ts
|
|
46
|
+
function declaresObject(node) {
|
|
47
|
+
const type = node.type;
|
|
48
|
+
if (typeof type === "string")
|
|
49
|
+
return type === "object";
|
|
50
|
+
if (Array.isArray(type))
|
|
51
|
+
return type.includes("object");
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
function closeNode(node) {
|
|
55
|
+
if (!isRecord(node))
|
|
56
|
+
return;
|
|
57
|
+
if (node.properties === undefined && declaresObject(node)) {
|
|
58
|
+
node.properties = {};
|
|
59
|
+
}
|
|
60
|
+
const properties = node.properties;
|
|
61
|
+
if (isRecord(properties)) {
|
|
62
|
+
if (node.type === undefined)
|
|
63
|
+
node.type = "object";
|
|
64
|
+
node.additionalProperties = false;
|
|
65
|
+
node.required = Object.keys(properties);
|
|
66
|
+
for (const child of Object.values(properties))
|
|
67
|
+
closeNode(child);
|
|
68
|
+
}
|
|
69
|
+
if (isRecord(node.$defs)) {
|
|
70
|
+
for (const child of Object.values(node.$defs))
|
|
71
|
+
closeNode(child);
|
|
72
|
+
}
|
|
73
|
+
closeNode(node.items);
|
|
74
|
+
if (Array.isArray(node.anyOf)) {
|
|
75
|
+
for (const child of node.anyOf)
|
|
76
|
+
closeNode(child);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function closeObjectSchemas(outputSchema) {
|
|
80
|
+
if (!isRecord(outputSchema))
|
|
81
|
+
return;
|
|
82
|
+
if (outputSchema.type === undefined)
|
|
83
|
+
outputSchema.type = "object";
|
|
84
|
+
if (outputSchema.$defs === undefined)
|
|
85
|
+
outputSchema.$defs = {};
|
|
86
|
+
closeNode(outputSchema);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// src/services/extract-schema/measure-schema-limits.ts
|
|
90
|
+
function contextFor(document, nodeId) {
|
|
91
|
+
return {
|
|
92
|
+
nodes: [
|
|
93
|
+
{
|
|
94
|
+
id: nodeId,
|
|
95
|
+
type: DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
96
|
+
data: {
|
|
97
|
+
type: DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
98
|
+
inputs: { schemaDocument: document }
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
edges: [],
|
|
103
|
+
manifests: new Map
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function measureSchemaLimits(document, nodeId) {
|
|
107
|
+
return ixpSchemaLimitsRule2.validate(contextFor(document, nodeId)).map((issue) => {
|
|
108
|
+
const params = isRecord(issue.i18n?.params) ? issue.i18n.params : {};
|
|
109
|
+
const subject = typeof params.subject === "string" ? params.subject : "A name or instructions text";
|
|
110
|
+
return {
|
|
111
|
+
path: "outputSchema",
|
|
112
|
+
message: `${subject} is ${String(params.actual)} characters; the maximum is ${String(params.limit)}.`
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// src/services/extract-schema/merge-schema-ids.ts
|
|
118
|
+
function indexExisting(existing) {
|
|
119
|
+
const groupIdByPath = new Map;
|
|
120
|
+
const pathByGroupId = new Map;
|
|
121
|
+
const fieldIdsByGroupId = new Map;
|
|
122
|
+
if (!isRecord(existing?.outputSchema)) {
|
|
123
|
+
return { groupIdByPath, pathByGroupId, fieldIdsByGroupId };
|
|
124
|
+
}
|
|
125
|
+
for (const group of collectFieldGroups(existing.outputSchema)) {
|
|
126
|
+
if (group.groupId === undefined || group.groupId.length === 0)
|
|
127
|
+
continue;
|
|
128
|
+
const fieldIds = new Map;
|
|
129
|
+
for (const field of group.fields) {
|
|
130
|
+
if (field.fieldId !== undefined && field.fieldId.length > 0) {
|
|
131
|
+
fieldIds.set(field.name, field.fieldId);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
groupIdByPath.set(group.pathKey, group.groupId);
|
|
135
|
+
pathByGroupId.set(group.groupId, group.pathKey);
|
|
136
|
+
fieldIdsByGroupId.set(group.groupId, fieldIds);
|
|
137
|
+
}
|
|
138
|
+
return { groupIdByPath, pathByGroupId, fieldIdsByGroupId };
|
|
139
|
+
}
|
|
140
|
+
function mergeSchemaDocumentIds(incoming, existing) {
|
|
141
|
+
const document = structuredClone(incoming);
|
|
142
|
+
const outputSchema = document.outputSchema;
|
|
143
|
+
if (!isRecord(outputSchema)) {
|
|
144
|
+
return {
|
|
145
|
+
document,
|
|
146
|
+
groupIdsPreserved: 0,
|
|
147
|
+
groupIdsMinted: 0,
|
|
148
|
+
fieldIdsPreserved: 0,
|
|
149
|
+
fieldIdsMinted: 0,
|
|
150
|
+
businessChecksDropped: 0
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
const previous = indexExisting(existing);
|
|
154
|
+
const groups = collectFieldGroups(outputSchema);
|
|
155
|
+
const claimedGroupIds = new Set;
|
|
156
|
+
const claimedFieldIds = new Set;
|
|
157
|
+
for (const group of groups) {
|
|
158
|
+
if (group.groupId !== undefined && group.groupId.length > 0) {
|
|
159
|
+
claimedGroupIds.add(group.groupId);
|
|
160
|
+
}
|
|
161
|
+
for (const field of group.fields) {
|
|
162
|
+
if (field.fieldId !== undefined && field.fieldId.length > 0) {
|
|
163
|
+
claimedFieldIds.add(field.fieldId);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
let groupIdsPreserved = 0;
|
|
168
|
+
let groupIdsMinted = 0;
|
|
169
|
+
let fieldIdsPreserved = 0;
|
|
170
|
+
let fieldIdsMinted = 0;
|
|
171
|
+
const finalGroupIdByPathKey = new Map;
|
|
172
|
+
const liveGroupIds = new Set;
|
|
173
|
+
const liveFieldIds = new Set;
|
|
174
|
+
const previousPathByPathKey = new Map;
|
|
175
|
+
const parentsFirst = [...groups].sort((a, b) => a.segments.length - b.segments.length);
|
|
176
|
+
const takenGroupIds = new Set(claimedGroupIds);
|
|
177
|
+
for (const group of parentsFirst) {
|
|
178
|
+
const parentPath = group.segments.slice(0, -1).join(GROUP_PATH_SEPARATOR);
|
|
179
|
+
const leaf = group.segments[group.segments.length - 1];
|
|
180
|
+
const previousParentPath = previousPathByPathKey.get(parentPath);
|
|
181
|
+
const candidatePath = group.segments.length > 1 ? previousParentPath === undefined ? undefined : `${previousParentPath}${GROUP_PATH_SEPARATOR}${leaf}` : group.pathKey;
|
|
182
|
+
let groupId = group.groupId;
|
|
183
|
+
if (groupId !== undefined && groupId.length > 0) {
|
|
184
|
+
groupIdsPreserved++;
|
|
185
|
+
} else {
|
|
186
|
+
const adopted = candidatePath === undefined ? undefined : previous.groupIdByPath.get(candidatePath);
|
|
187
|
+
if (adopted !== undefined && !takenGroupIds.has(adopted)) {
|
|
188
|
+
groupId = adopted;
|
|
189
|
+
groupIdsPreserved++;
|
|
190
|
+
} else {
|
|
191
|
+
groupId = crypto.randomUUID();
|
|
192
|
+
groupIdsMinted++;
|
|
193
|
+
}
|
|
194
|
+
group.node[FIELD_GROUP_ID_EXTENSION] = groupId;
|
|
195
|
+
}
|
|
196
|
+
finalGroupIdByPathKey.set(group.pathKey, groupId);
|
|
197
|
+
takenGroupIds.add(groupId);
|
|
198
|
+
liveGroupIds.add(groupId);
|
|
199
|
+
const previousPath = previous.pathByGroupId.get(groupId);
|
|
200
|
+
if (previousPath !== undefined) {
|
|
201
|
+
previousPathByPathKey.set(group.pathKey, previousPath);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
const takenFieldIds = new Set(claimedFieldIds);
|
|
205
|
+
for (const group of groups) {
|
|
206
|
+
const previousFieldIds = previous.fieldIdsByGroupId.get(finalGroupIdByPathKey.get(group.pathKey) ?? "");
|
|
207
|
+
for (const field of group.fields) {
|
|
208
|
+
if (field.fieldId !== undefined && field.fieldId.length > 0) {
|
|
209
|
+
fieldIdsPreserved++;
|
|
210
|
+
liveFieldIds.add(field.fieldId);
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
const adopted = previousFieldIds?.get(field.name);
|
|
214
|
+
const fieldId = adopted !== undefined && !takenFieldIds.has(adopted) ? adopted : crypto.randomUUID();
|
|
215
|
+
if (fieldId === adopted)
|
|
216
|
+
fieldIdsPreserved++;
|
|
217
|
+
else
|
|
218
|
+
fieldIdsMinted++;
|
|
219
|
+
field.node[FIELD_ID_EXTENSION] = fieldId;
|
|
220
|
+
takenFieldIds.add(fieldId);
|
|
221
|
+
liveFieldIds.add(fieldId);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
for (const group of groups) {
|
|
225
|
+
if (group.segments.length > 1) {
|
|
226
|
+
const parentPathKey = group.segments.slice(0, -1).join(GROUP_PATH_SEPARATOR);
|
|
227
|
+
const parentId = finalGroupIdByPathKey.get(parentPathKey);
|
|
228
|
+
if (parentId !== undefined) {
|
|
229
|
+
group.node[PARENT_FIELD_GROUP_ID_EXTENSION] = parentId;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
let businessChecksDropped = 0;
|
|
234
|
+
for (const { holder } of collectBusinessCheckHolders(document, "")) {
|
|
235
|
+
const checks = holder[BUSINESS_CHECKS_EXTENSION];
|
|
236
|
+
if (!Array.isArray(checks))
|
|
237
|
+
continue;
|
|
238
|
+
const kept = checks.filter((check) => {
|
|
239
|
+
if (!isRecord(check))
|
|
240
|
+
return true;
|
|
241
|
+
const { fieldId, fieldGroupId } = check;
|
|
242
|
+
if (typeof fieldId === "string" && !liveFieldIds.has(fieldId)) {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
if (typeof fieldGroupId === "string" && !liveGroupIds.has(fieldGroupId)) {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
return true;
|
|
249
|
+
});
|
|
250
|
+
businessChecksDropped += checks.length - kept.length;
|
|
251
|
+
holder[BUSINESS_CHECKS_EXTENSION] = kept;
|
|
252
|
+
}
|
|
253
|
+
return {
|
|
254
|
+
document,
|
|
255
|
+
groupIdsPreserved,
|
|
256
|
+
groupIdsMinted,
|
|
257
|
+
fieldIdsPreserved,
|
|
258
|
+
fieldIdsMinted,
|
|
259
|
+
businessChecksDropped
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// src/services/schema-document-service.ts
|
|
264
|
+
class SchemaCommandError2 extends Error {
|
|
265
|
+
code;
|
|
266
|
+
instructions;
|
|
267
|
+
result;
|
|
268
|
+
issues;
|
|
269
|
+
constructor(options) {
|
|
270
|
+
super(options.message);
|
|
271
|
+
this.name = "SchemaCommandError";
|
|
272
|
+
this.code = options.code;
|
|
273
|
+
this.instructions = options.instructions;
|
|
274
|
+
this.result = options.result;
|
|
275
|
+
this.issues = options.issues ?? [];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
function requestError2(message, code, instructions) {
|
|
279
|
+
return new SchemaCommandError2({
|
|
280
|
+
message,
|
|
281
|
+
code,
|
|
282
|
+
instructions,
|
|
283
|
+
result: RESULTS.Failure
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
function contentError(message, instructions, issues = []) {
|
|
287
|
+
return new SchemaCommandError2({
|
|
288
|
+
message,
|
|
289
|
+
code: "invalid_argument",
|
|
290
|
+
instructions,
|
|
291
|
+
result: RESULTS.ValidationError,
|
|
292
|
+
issues
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
var SHAPE_INSTRUCTIONS = 'The schema document must be a JSON object with "prompt" (the overall ' + 'instructions, a string) and "outputSchema" (an object). A "config" is ' + "ignored: the model settings belong to the node, not to the schema.";
|
|
296
|
+
var LEGACY_INSTRUCTIONS = "This document uses the superseded { taxonomy, fieldTypes } shape. Open " + "the flow once in Studio Web, which converts the node to the current " + "shape, or author the current shape directly: " + '{ "prompt": "...", "outputSchema": { ... } }.';
|
|
297
|
+
function findExtractNode(nodes, nodeId) {
|
|
298
|
+
const node = nodes.find((candidate) => candidate.id === nodeId);
|
|
299
|
+
if (node === undefined) {
|
|
300
|
+
const available = nodes.map((n) => n.id).join(", ") || "(none)";
|
|
301
|
+
throw requestError2(`Node not found: "${nodeId}". Available node IDs: ${available}`, "not_found", "Run 'uip maestro flow nodes list <file>' to find a valid node ID.");
|
|
302
|
+
}
|
|
303
|
+
if (node.type !== DYNAMIC_EXTRACT_NODE_TYPE2) {
|
|
304
|
+
throw requestError2(`Node "${nodeId}" is not an Extract document node (it is ${node.type}).`, "invalid_argument", `'nodes schema' applies only to ${DYNAMIC_EXTRACT_NODE_TYPE2} nodes. ` + "Run 'uip maestro flow nodes list <file>' to find one, or add " + `one with 'uip maestro flow nodes create <file> ${DYNAMIC_EXTRACT_NODE_TYPE2}'.`);
|
|
305
|
+
}
|
|
306
|
+
return node;
|
|
307
|
+
}
|
|
308
|
+
function readProcessorKey(inputs) {
|
|
309
|
+
const key = inputs.processorKey;
|
|
310
|
+
return typeof key === "string" && key.length > 0 ? key : undefined;
|
|
311
|
+
}
|
|
312
|
+
async function getNodeSchema2(filePath, nodeId) {
|
|
313
|
+
const { workflow } = await readFlowWorkflow2(filePath);
|
|
314
|
+
const node = findExtractNode(workflow.nodes, nodeId);
|
|
315
|
+
const inputs = node.inputs ?? {};
|
|
316
|
+
const document = inputs.schemaDocument;
|
|
317
|
+
if (!isRecord(document)) {
|
|
318
|
+
throw requestError2(`Node "${nodeId}" has no inputs.schemaDocument.`, "not_found", "Creating the node seeds one, so this node's schema has since " + "been removed. Author one and write it with 'uip maestro " + "flow nodes schema set <file> --node-id <node-id> --schema " + "@<schema.json>'.");
|
|
319
|
+
}
|
|
320
|
+
const draft = readIxpSchemaEditorDraft2(document);
|
|
321
|
+
const processorKey = readProcessorKey(inputs);
|
|
322
|
+
return {
|
|
323
|
+
nodeId,
|
|
324
|
+
schemaDocument: document,
|
|
325
|
+
hasDraft: draft !== undefined,
|
|
326
|
+
draftIssueMessages: draft?.issueMessages ?? [],
|
|
327
|
+
...processorKey !== undefined && { processorKey }
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
var DraftPolicy2;
|
|
331
|
+
((DraftPolicy) => {
|
|
332
|
+
DraftPolicy["RejectRequest"] = "reject-request";
|
|
333
|
+
DraftPolicy["DiscardDraft"] = "discard-draft";
|
|
334
|
+
})(DraftPolicy2 ||= {});
|
|
335
|
+
async function readSchemaSource(source) {
|
|
336
|
+
if (!source.startsWith("@")) {
|
|
337
|
+
const [error, parsed] = catchError2(() => JSON.parse(source));
|
|
338
|
+
if (error) {
|
|
339
|
+
throw requestError2("Invalid --schema JSON", "invalid_argument", error.message);
|
|
340
|
+
}
|
|
341
|
+
return parsed;
|
|
342
|
+
}
|
|
343
|
+
const path = source.slice(1);
|
|
344
|
+
if (!await getFileSystem().exists(path)) {
|
|
345
|
+
throw requestError2("Cannot read the schema file", "not_found", `No file at "${path}". Check the path exists and is readable, ` + "or pass the document inline as --schema <json>.");
|
|
346
|
+
}
|
|
347
|
+
const { readJsonFile } = await import("./json-input-pj18qjt0.js");
|
|
348
|
+
const [error, parsed] = await catchError2(readJsonFile(path));
|
|
349
|
+
if (error) {
|
|
350
|
+
throw requestError2("Invalid schema file JSON", "invalid_argument", error.message);
|
|
351
|
+
}
|
|
352
|
+
return parsed;
|
|
353
|
+
}
|
|
354
|
+
async function setNodeSchemaFromSource2(filePath, nodeId, source, draftPolicy = "reject-request" /* RejectRequest */) {
|
|
355
|
+
return setNodeSchema(filePath, nodeId, await readSchemaSource(source), draftPolicy);
|
|
356
|
+
}
|
|
357
|
+
async function setNodeSchema(filePath, nodeId, incoming, draftPolicy = "reject-request" /* RejectRequest */) {
|
|
358
|
+
if (!isRecord(incoming)) {
|
|
359
|
+
throw contentError("Invalid schema document", SHAPE_INSTRUCTIONS);
|
|
360
|
+
}
|
|
361
|
+
const stripped = stripIxpSchemaEditorDraft2(incoming);
|
|
362
|
+
if (isLegacySchemaDocument(stripped)) {
|
|
363
|
+
throw contentError("Legacy schema document shape", LEGACY_INSTRUCTIONS);
|
|
364
|
+
}
|
|
365
|
+
if (!isReadableExtractionSchema(stripped)) {
|
|
366
|
+
throw contentError("Invalid schema document", SHAPE_INSTRUCTIONS);
|
|
367
|
+
}
|
|
368
|
+
const { workflow, refMap } = await readFlowWorkflow2(filePath);
|
|
369
|
+
const node = findExtractNode(workflow.nodes, nodeId);
|
|
370
|
+
const inputs = node.inputs ?? {};
|
|
371
|
+
const current = inputs.schemaDocument;
|
|
372
|
+
const draftPresent = readIxpSchemaEditorDraft2(current) !== undefined;
|
|
373
|
+
if (draftPresent && draftPolicy === "reject-request" /* RejectRequest */) {
|
|
374
|
+
throw requestError2(`Node "${nodeId}" carries an unsaved Schema Editor draft`, "invalid_argument", `inputs.schemaDocument holds a ${IXP_SCHEMA_EDITOR_DRAFT_EXTENSION2} left by an editing session that was not valid when it was left. Re-run with --discard-draft to replace it, or have the author finish it in Studio Web first.`);
|
|
375
|
+
}
|
|
376
|
+
const replacedLegacyDocument = isLegacySchemaDocument(current);
|
|
377
|
+
const existing = isRecord(current) && isRecord(current.outputSchema) ? stripIxpSchemaEditorDraft2(current) : undefined;
|
|
378
|
+
const merged = mergeSchemaDocumentIds(stripped, existing);
|
|
379
|
+
const document = merged.document;
|
|
380
|
+
closeObjectSchemas(document.outputSchema);
|
|
381
|
+
document.config = isRecord(current) && current.config !== undefined ? current.config : buildScaffoldConfig(inputs.modelConfig);
|
|
382
|
+
const issues = [
|
|
383
|
+
...validateExtractionSchemaDocument(document),
|
|
384
|
+
...measureSchemaLimits(document, nodeId)
|
|
385
|
+
];
|
|
386
|
+
if (issues.length > 0) {
|
|
387
|
+
throw contentError("Schema document failed validation", `Fix the issues listed in Data.Issues and retry. Field group, field and field type names are at most ${SCHEMA_GROUP_NAME_MAX} ` + "characters — a nested group's name is the whole " + `"Parent > Child" path — and instructions at most ` + `${SCHEMA_INSTRUCTIONS_MAX}; stable ids must be unique; a field type key must need no escaping in a $ref.`, issues);
|
|
388
|
+
}
|
|
389
|
+
inputs.schemaDocument = document;
|
|
390
|
+
node.inputs = inputs;
|
|
391
|
+
const provisioning = await provisionIdpProcessorForNode(filePath, node);
|
|
392
|
+
await writeFlowWorkflow2(filePath, workflow, refMap);
|
|
393
|
+
const outputSchema = document.outputSchema;
|
|
394
|
+
const groups = collectFieldGroups(outputSchema);
|
|
395
|
+
const definitions = outputSchema.$defs;
|
|
396
|
+
return {
|
|
397
|
+
nodeId,
|
|
398
|
+
groups: groups.length,
|
|
399
|
+
fields: groups.reduce((total, group) => total + group.fields.length, 0),
|
|
400
|
+
fieldTypes: isRecord(definitions) ? Object.keys(definitions).length : 0,
|
|
401
|
+
groupIdsPreserved: merged.groupIdsPreserved,
|
|
402
|
+
groupIdsMinted: merged.groupIdsMinted,
|
|
403
|
+
fieldIdsPreserved: merged.fieldIdsPreserved,
|
|
404
|
+
fieldIdsMinted: merged.fieldIdsMinted,
|
|
405
|
+
businessChecksDropped: merged.businessChecksDropped,
|
|
406
|
+
draftDiscarded: draftPresent,
|
|
407
|
+
...readProcessorKey(inputs) !== undefined && {
|
|
408
|
+
processorKey: readProcessorKey(inputs),
|
|
409
|
+
processorAuthoredHere: !isIdpProcessorReadOnly2(inputs) && !isPublishedIdpProcessorLink2(inputs),
|
|
410
|
+
...provisioning?.resourceFile !== undefined && {
|
|
411
|
+
processorResourceFile: provisioning.resourceFile
|
|
412
|
+
},
|
|
413
|
+
...provisioning?.resourcePending !== undefined && {
|
|
414
|
+
processorResourcePending: provisioning.resourcePending
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
replacedLegacyDocument
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export { SchemaCommandError2, requestError2, getNodeSchema2, DraftPolicy2, setNodeSchemaFromSource2 };
|
|
422
|
+
|
|
423
|
+
//# debugId=98C2555CBA3633AF64756E2164756E21
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UIPATH_HOME_DIR,
|
|
3
3
|
AUTH_FILENAME,
|
|
4
|
+
AUTH_FILE_MODE,
|
|
5
|
+
AUTH_DIR_MODE,
|
|
4
6
|
DEFAULT_BASE_URL,
|
|
5
7
|
DEFAULT_REDIRECT_URI
|
|
6
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-bzcphfa8.js";
|
|
7
9
|
import {
|
|
8
10
|
getFileSystem
|
|
9
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
10
12
|
import {
|
|
11
13
|
isBrowser2,
|
|
12
14
|
getGlobalThis
|
|
@@ -16,7 +18,7 @@ import {
|
|
|
16
18
|
} from "./packager-tool-mxgybnmt.js";
|
|
17
19
|
import {
|
|
18
20
|
__require
|
|
19
|
-
} from "./packager-tool-
|
|
21
|
+
} from "./packager-tool-4f4jp7ez.js";
|
|
20
22
|
|
|
21
23
|
// ../auth/src/config.ts
|
|
22
24
|
var DEFAULT_CLIENT_ID = "36dea5b8-e8bb-423d-8e7b-c808df8f1c00";
|
|
@@ -544,7 +546,7 @@ class InvalidIssuerError extends Error {
|
|
|
544
546
|
this.name = "InvalidIssuerError";
|
|
545
547
|
}
|
|
546
548
|
}
|
|
547
|
-
var
|
|
549
|
+
var parseJWT2 = (token) => {
|
|
548
550
|
try {
|
|
549
551
|
const parts = token.split(".");
|
|
550
552
|
const base64Url = parts[1];
|
|
@@ -568,7 +570,7 @@ var parseJWT = (token) => {
|
|
|
568
570
|
var assertIssuerMatchesAuthority = (token, authority) => {
|
|
569
571
|
let payload;
|
|
570
572
|
try {
|
|
571
|
-
payload =
|
|
573
|
+
payload = parseJWT2(token);
|
|
572
574
|
} catch (error) {
|
|
573
575
|
throw new InvalidIssuerError(`${authority.replace(/\/+$/, "")}/identity_`, `<unparseable: ${error instanceof Error ? error.message : "unknown error"}>`);
|
|
574
576
|
}
|
|
@@ -602,7 +604,7 @@ var getTokenExpiration = (accessToken) => {
|
|
|
602
604
|
// ../auth/src/sessionIdentity.ts
|
|
603
605
|
var parseAuthFlow = (value) => value === "authorization_code" || value === "client_credentials" || value === "federated_credentials" ? value : undefined;
|
|
604
606
|
var decodeClaims = (accessToken) => {
|
|
605
|
-
const [error, claims] = catchError(() =>
|
|
607
|
+
const [error, claims] = catchError(() => parseJWT2(accessToken));
|
|
606
608
|
return error ? undefined : claims;
|
|
607
609
|
};
|
|
608
610
|
var asString = (value) => typeof value === "string" && value.length > 0 ? value : undefined;
|
|
@@ -727,7 +729,7 @@ var readAuthFromEnv = () => {
|
|
|
727
729
|
const organizationId = requireEnv(ENV_AUTH_VARS.organizationId);
|
|
728
730
|
const tenantName = requireEnv(ENV_AUTH_VARS.tenantName);
|
|
729
731
|
const tenantId = requireEnv(ENV_AUTH_VARS.tenantId);
|
|
730
|
-
const [parseError, payload] = catchError(() =>
|
|
732
|
+
const [parseError, payload] = catchError(() => parseJWT2(accessToken));
|
|
731
733
|
if (parseError) {
|
|
732
734
|
const parseErrorMessage = parseError instanceof Error ? parseError.message : String(parseError);
|
|
733
735
|
const rawUrl = process.env[OPAQUE_TOKEN_BASE_URL_VAR];
|
|
@@ -941,7 +943,7 @@ var tryRobotClientFallback = async (options = {}) => {
|
|
|
941
943
|
let organizationIdFromToken;
|
|
942
944
|
let tenantIdFromToken;
|
|
943
945
|
let issuerFromToken;
|
|
944
|
-
const [jwtError, claims] = catchError(() =>
|
|
946
|
+
const [jwtError, claims] = catchError(() => parseJWT2(accessToken));
|
|
945
947
|
if (!jwtError && claims) {
|
|
946
948
|
const rawOrgId = claims.prtId ?? claims.organizationId ?? claims.prt_id;
|
|
947
949
|
if (typeof rawOrgId === "string" && rawOrgId.length > 0) {
|
|
@@ -1187,6 +1189,38 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
1187
1189
|
}
|
|
1188
1190
|
return parseEnvContent(content);
|
|
1189
1191
|
};
|
|
1192
|
+
var findAuthHomeDir = (fs, dir) => {
|
|
1193
|
+
let current = dir;
|
|
1194
|
+
for (;; ) {
|
|
1195
|
+
if (fs.path.basename(current) === UIPATH_HOME_DIR)
|
|
1196
|
+
return current;
|
|
1197
|
+
const parent = fs.path.dirname(current);
|
|
1198
|
+
if (parent === current)
|
|
1199
|
+
return;
|
|
1200
|
+
current = parent;
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
var TEMP_FILE_ATTEMPTS = 5;
|
|
1204
|
+
var isFileExists = (error) => error instanceof Error && error.code === "EEXIST";
|
|
1205
|
+
var writeTempFile = async (fs, targetPath, content) => {
|
|
1206
|
+
for (let attempt = 1;; attempt++) {
|
|
1207
|
+
const tempPath = `${targetPath}.${crypto.randomUUID()}.tmp`;
|
|
1208
|
+
try {
|
|
1209
|
+
await fs.writeFile(tempPath, content, {
|
|
1210
|
+
mode: AUTH_FILE_MODE,
|
|
1211
|
+
exclusive: true
|
|
1212
|
+
});
|
|
1213
|
+
return tempPath;
|
|
1214
|
+
} catch (error) {
|
|
1215
|
+
if (!isFileExists(error)) {
|
|
1216
|
+
await fs.rm(tempPath).catch(() => {});
|
|
1217
|
+
throw error;
|
|
1218
|
+
}
|
|
1219
|
+
if (attempt === TEMP_FILE_ATTEMPTS)
|
|
1220
|
+
throw error;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1190
1224
|
var saveEnvFileAsync = async ({
|
|
1191
1225
|
envPath,
|
|
1192
1226
|
data,
|
|
@@ -1214,10 +1248,18 @@ var saveEnvFileAsync = async ({
|
|
|
1214
1248
|
`)}
|
|
1215
1249
|
`;
|
|
1216
1250
|
const dir = fs.path.dirname(absolutePath);
|
|
1217
|
-
await fs.mkdir(dir);
|
|
1218
|
-
const
|
|
1219
|
-
|
|
1220
|
-
|
|
1251
|
+
await fs.mkdir(dir, { mode: AUTH_DIR_MODE });
|
|
1252
|
+
const authHomeDir = findAuthHomeDir(fs, dir);
|
|
1253
|
+
if (authHomeDir !== undefined) {
|
|
1254
|
+
await fs.chmod?.(authHomeDir, AUTH_DIR_MODE);
|
|
1255
|
+
}
|
|
1256
|
+
const tempPath = await writeTempFile(fs, absolutePath, content);
|
|
1257
|
+
try {
|
|
1258
|
+
await fs.rename(tempPath, absolutePath);
|
|
1259
|
+
} catch (error) {
|
|
1260
|
+
await fs.rm(tempPath).catch(() => {});
|
|
1261
|
+
throw error;
|
|
1262
|
+
}
|
|
1221
1263
|
};
|
|
1222
1264
|
|
|
1223
1265
|
// ../auth/src/loginStatus.ts
|
|
@@ -1869,10 +1911,10 @@ var authenticate2 = async ({
|
|
|
1869
1911
|
const authUrl = `${authorizationEndpoint}?${authParams.toString()}`;
|
|
1870
1912
|
let strategy;
|
|
1871
1913
|
if (isBrowser2()) {
|
|
1872
|
-
const { BrowserAuthStrategy } = await import("./browser-strategy-
|
|
1914
|
+
const { BrowserAuthStrategy } = await import("./browser-strategy-1nk8hgcf.js");
|
|
1873
1915
|
strategy = new BrowserAuthStrategy;
|
|
1874
1916
|
} else {
|
|
1875
|
-
const { NodeAuthStrategy } = await import("./node-strategy-
|
|
1917
|
+
const { NodeAuthStrategy } = await import("./node-strategy-2r78gtca.js");
|
|
1876
1918
|
strategy = new NodeAuthStrategy;
|
|
1877
1919
|
}
|
|
1878
1920
|
const code = await strategy.execute(authUrl, effectiveRedirectUriUrl, state, {
|
|
@@ -1892,6 +1934,6 @@ var authenticate2 = async ({
|
|
|
1892
1934
|
});
|
|
1893
1935
|
};
|
|
1894
1936
|
|
|
1895
|
-
export { INHERITED_AUTH_PROFILE_ENV2, getActiveAuthProfile2, resolveSessionIdentity2, getLoginStatusAsync2, getAuthContext2, authenticate2 };
|
|
1937
|
+
export { INHERITED_AUTH_PROFILE_ENV2, getActiveAuthProfile2, parseJWT2, resolveSessionIdentity2, getLoginStatusAsync2, getAuthContext2, authenticate2 };
|
|
1896
1938
|
|
|
1897
|
-
//# debugId=
|
|
1939
|
+
//# debugId=81089D857F8DC3BE64756E2164756E21
|
|
@@ -133,17 +133,91 @@ function expandHandleIds(handle, node) {
|
|
|
133
133
|
function isTemplatedHandleId(id) {
|
|
134
134
|
return id.includes("{");
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var LINE_BREAKS = new Set([`
|
|
137
|
+
`, "\r", "\u2028", "\u2029"]);
|
|
137
138
|
function portMatchesTemplate(requestedPort, templateId) {
|
|
138
139
|
if (!isTemplatedHandleId(templateId)) {
|
|
139
140
|
return requestedPort === templateId;
|
|
140
141
|
}
|
|
141
|
-
const parts = templateId
|
|
142
|
-
const
|
|
143
|
-
const
|
|
144
|
-
|
|
142
|
+
const parts = splitTemplateId(templateId);
|
|
143
|
+
const first = parts[0];
|
|
144
|
+
const last = parts[parts.length - 1];
|
|
145
|
+
if (parts.length === 1) {
|
|
146
|
+
return requestedPort === first;
|
|
147
|
+
}
|
|
148
|
+
if (!requestedPort.startsWith(first) || !requestedPort.endsWith(last)) {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
const lastStart = requestedPort.length - last.length;
|
|
152
|
+
let gapStart = first.length;
|
|
153
|
+
for (const part of parts.slice(1, -1)) {
|
|
154
|
+
const partStart = findLiteral(requestedPort, part, gapStart + 1);
|
|
155
|
+
if (partStart === -1) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
if (hasLineBreak(requestedPort, gapStart, partStart)) {
|
|
159
|
+
return false;
|
|
160
|
+
}
|
|
161
|
+
gapStart = partStart + part.length;
|
|
162
|
+
}
|
|
163
|
+
return gapStart < lastStart && !hasLineBreak(requestedPort, gapStart, lastStart);
|
|
164
|
+
}
|
|
165
|
+
function splitTemplateId(templateId) {
|
|
166
|
+
const parts = [];
|
|
167
|
+
let partStart = 0;
|
|
168
|
+
for (let open = templateId.indexOf("{");open !== -1; open = templateId.indexOf("{", partStart)) {
|
|
169
|
+
const close = templateId.indexOf("}", open + 1);
|
|
170
|
+
if (close === -1) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
parts.push(templateId.slice(partStart, open));
|
|
174
|
+
partStart = close + 1;
|
|
175
|
+
}
|
|
176
|
+
parts.push(templateId.slice(partStart));
|
|
177
|
+
return parts;
|
|
178
|
+
}
|
|
179
|
+
function findLiteral(text, literal, from) {
|
|
180
|
+
if (literal === "") {
|
|
181
|
+
return from <= text.length ? from : -1;
|
|
182
|
+
}
|
|
183
|
+
const fallback = literalFallback(literal);
|
|
184
|
+
let matched = 0;
|
|
185
|
+
for (let index = from;index < text.length; index += 1) {
|
|
186
|
+
while (matched > 0 && text[index] !== literal[matched]) {
|
|
187
|
+
matched = fallback[matched - 1];
|
|
188
|
+
}
|
|
189
|
+
if (text[index] === literal[matched]) {
|
|
190
|
+
matched += 1;
|
|
191
|
+
}
|
|
192
|
+
if (matched === literal.length) {
|
|
193
|
+
return index - literal.length + 1;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return -1;
|
|
197
|
+
}
|
|
198
|
+
function literalFallback(literal) {
|
|
199
|
+
const fallback = new Array(literal.length).fill(0);
|
|
200
|
+
let matched = 0;
|
|
201
|
+
for (let index = 1;index < literal.length; index += 1) {
|
|
202
|
+
while (matched > 0 && literal[index] !== literal[matched]) {
|
|
203
|
+
matched = fallback[matched - 1];
|
|
204
|
+
}
|
|
205
|
+
if (literal[index] === literal[matched]) {
|
|
206
|
+
matched += 1;
|
|
207
|
+
}
|
|
208
|
+
fallback[index] = matched;
|
|
209
|
+
}
|
|
210
|
+
return fallback;
|
|
211
|
+
}
|
|
212
|
+
function hasLineBreak(text, start, end) {
|
|
213
|
+
for (let index = start;index < end; index += 1) {
|
|
214
|
+
if (LINE_BREAKS.has(text[index])) {
|
|
215
|
+
return true;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return false;
|
|
145
219
|
}
|
|
146
220
|
|
|
147
221
|
export { ERROR_SOURCE_PORT, enableErrorHandlingForErrorEdges, parseVisibleInputKey, isHandleVisible, applyInstanceSourceHandles, expandHandleIds, isTemplatedHandleId, portMatchesTemplate };
|
|
148
222
|
|
|
149
|
-
//# debugId=
|
|
223
|
+
//# debugId=508DBFBAEC879CE764756E2164756E21
|