@uipath/maestro-tool 1.202.1 → 1.202.2-preview.167
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/dist/THIRD-PARTY-NOTICES.md +458 -6
- package/dist/{authoring-p4w2zfvc.js → authoring-61hqf5em.js} +3 -3
- package/dist/{authoring-k357kqhs.js → authoring-6r3wx3fa.js} +3 -3
- package/dist/{authoring-y3ryfdt0.js → authoring-818595dq.js} +3 -3
- package/dist/{binding-service-mys9xgtq.js → binding-service-nf8s60kw.js} +26 -26
- package/dist/{bpmn-branch-2ebce3qk.js → bpmn-branch-axw0gebf.js} +28 -28
- package/dist/{bpmn-format-service-g3k5n1c6.js → bpmn-format-service-r67afbny.js} +2 -2
- package/dist/{bpmn-refresh-service-56cah1yc.js → bpmn-refresh-service-ew545y06.js} +2 -2
- package/dist/{bpmn-update-metadata-service-zrpe3te9.js → bpmn-update-metadata-service-jhahhjab.js} +2 -2
- package/dist/{bpmn-validate-service-ye7g6xqv.js → bpmn-validate-service-6z2dj8ac.js} +2 -2
- package/dist/{case-api-04304252.js → case-api-4mstfkzf.js} +3 -3
- package/dist/{case-debug-studio-web-service-k3hb3zzf.js → case-debug-studio-web-service-kej9yvnm.js} +5 -5
- package/dist/{case-pack-service-jvtttcen.js → case-pack-service-v7wtb0qt.js} +1 -1
- package/dist/{case-validate-service-tc5fkzzn.js → case-validate-service-mxw0fvb6.js} +2 -2
- package/dist/{connector-enrichment-service-eqmw407z.js → connector-enrichment-service-sfej22vp.js} +21 -21
- package/dist/{connector-lookup-service-r4wtr37y.js → connector-lookup-service-754r8zyj.js} +4 -4
- package/dist/{connector-service-3bgm62za.js → connector-service-34e5sww9.js} +25 -25
- package/dist/{connector-task-spec-719etyhq.js → connector-task-spec-445ht34h.js} +21 -21
- package/dist/{conversion-QANACVCM-vmngxta7.js → conversion-FQTRFHRX-03xh3xbp.js} +208 -125
- package/dist/{de-6U7ECGHH-xwsw33fk.js → de-B3EKCNFC-zdwybhh7.js} +7 -4
- package/dist/{de-7XQXX2DK-IDWR6CAR-n4z245kt.js → de-FGHEJRCI-PK6WALXW-0dnvnmke.js} +153 -9
- package/dist/{de-7XQXX2DK-tqdy5n2b.js → de-FGHEJRCI-rv513mfh.js} +153 -9
- package/dist/{de-5KVP66U6-1bnf4zt5.js → de-MUJPA4EB-209jpeqe.js} +14 -2
- package/dist/{de-HKTOVV4H-pe9w0xn8.js → de-VMMG2MN7-2ecwpg1b.js} +2 -5
- package/dist/{de-XLT4QPIP-kj81dxjc.js → de-XNTCMP5Z-xfkfqg20.js} +7 -4
- package/dist/{debug-conversation-trigger-4wwf0q8y.js → debug-conversation-trigger-hg29g110.js} +13 -13
- package/dist/{debug-http-client-mad6ks68.js → debug-http-client-c4teyma3.js} +2 -2
- package/dist/{debug-service-wgp53msz.js → debug-service-m5jdyz3q.js} +3 -3
- package/dist/{edge-service-xn2a6p72.js → edge-service-y7s1gej8.js} +12 -12
- package/dist/en-BPJVY3U7-xkpj5xc5.js +52 -0
- package/dist/{en-P4AS26D7-zptp77bm.js → en-E454CJNK-ytfw06kj.js} +4 -2
- package/dist/{en-X3S6IZ5J-nhkg6pwn.js → en-GN2ZGWUE-03z2df4k.js} +26 -2
- package/dist/{en-5ZGC5VQ3-EWX7ILY7-rmtj70fk.js → en-TBNO2WUV-77KTKLDE-4ktf0pqw.js} +141 -3
- package/dist/{en-5ZGC5VQ3-h581y30k.js → en-TBNO2WUV-rfe87pgh.js} +140 -2
- package/dist/{enrichment-service-j7wtzbrp.js → enrichment-service-a65qt7y1.js} +3 -3
- package/dist/{es-VFPNVMP5-bx2c337j.js → es-7SE7HX2X-qda7whn6.js} +14 -2
- package/dist/{es-NQICVYSQ-3dtqgget.js → es-EKHIPSW6-ya88nvm0.js} +7 -4
- package/dist/{es-PQ3RA33Q-y4kxhjfr.js → es-KEBF3AIM-g5rszh8f.js} +7 -4
- package/dist/{es-ZGCPPOME-8gazspjj.js → es-KR3ZSNMP-84zphx0x.js} +153 -9
- package/dist/{es-ZGCPPOME-24PJEGPV-rn86z9kn.js → es-KR3ZSNMP-QLWVVWKJ-5egs0gj9.js} +153 -9
- package/dist/{es-MX-XAVLOQW3-q00km2y7.js → es-MX-2MYFZU7X-6v0q5rbn.js} +14 -2
- package/dist/{es-MX-NHTIP5YM-ar6zfx95.js → es-MX-EL3CDS3F-sh84yvjr.js} +7 -4
- package/dist/{es-MX-OKNDG2NH-tcac6j4g.js → es-MX-OR6G2SFR-7yykk5ma.js} +7 -4
- package/dist/{es-MX-U2VN3SZW-anynsmd8.js → es-MX-XXZJGC4R-2mr8jtgm.js} +153 -9
- package/dist/{es-MX-U2VN3SZW-KYAJ2ONK-kdram1g1.js → es-MX-XXZJGC4R-W6EEIHXR-c2m4yjpj.js} +153 -9
- package/dist/{es-MX-H2EAXLYI-j42kfkxy.js → es-MX-ZP2LJ3V7-k4brnfa9.js} +2 -5
- package/dist/{es-O4PAV2CR-0g23ve3v.js → es-WY6FZ3HO-zksnn6dp.js} +2 -5
- package/dist/{flow-api-m53t2xq7.js → flow-api-vqvvs0q2.js} +6 -6
- package/dist/{flow-debug-service-yk2d27p1.js → flow-debug-service-sr8q4935.js} +31 -31
- package/dist/{flow-eval-node-target-13ek4f1p.js → flow-eval-node-target-m5cb0cba.js} +12 -12
- package/dist/{flow-eval-run-service-86tpst0m.js → flow-eval-run-service-24fdnzdd.js} +32 -32
- package/dist/{flow-eval-service-y6ex6rke.js → flow-eval-service-hr607z0a.js} +16 -16
- package/dist/{flow-init-service-mpf8h2rc.js → flow-init-service-20s8zq5t.js} +16 -16
- package/dist/{flow-io-hgw3em5c.js → flow-io-2h9pq7bs.js} +12 -12
- package/dist/{flow-migrate-service-6j2rpfzt.js → flow-migrate-service-c4xz0kbp.js} +13 -13
- package/dist/{flow-pack-service-1gnvp34k.js → flow-pack-service-ps9g6em8.js} +29 -29
- package/dist/{flow-validate-service-9wjnacww.js → flow-validate-service-690jvc5p.js} +32 -32
- package/dist/{fr-R4L3OAWI-30khpsmn.js → fr-DPD4GHX3-exeypjwk.js} +7 -4
- package/dist/{fr-PFHIL7YZ-2n589p47.js → fr-IHD66TVT-vfvmefbx.js} +7 -4
- package/dist/{fr-E5MDO4EG-c3mkty2t.js → fr-MDFKNZ4C-qmypp92m.js} +14 -2
- package/dist/{fr-5YRGHXF5-kz1ywpv6.js → fr-PRMYCRDC-0bk078by.js} +2 -5
- package/dist/{fr-T3G5GZCT-y3f7xb1q.js → fr-Y6NPVODW-8vr1ja4b.js} +153 -9
- package/dist/{fr-T3G5GZCT-TU4IKBEG-k6xz1s1f.js → fr-Y6NPVODW-AS7T42TR-v4qe2tha.js} +153 -9
- package/dist/{governance-fetcher-hx85sbpf.js → governance-fetcher-c9hg124v.js} +3 -3
- package/dist/{headless-h1h3kfw1.js → headless-85f2cys0.js} +360 -180
- package/dist/{hitl-service-f3zvaq6r.js → hitl-service-3mcyyqfa.js} +12 -12
- package/dist/{index-wazjha2r.js → index-0j6xww0f.js} +2 -2
- package/dist/{index-4g3wd82s.js → index-8dwjq9bf.js} +3 -3
- package/dist/{index-4zrwgb3c.js → index-acd6bpqc.js} +6 -6
- package/dist/{index-eybzsdcc.js → index-d1yqqk6q.js} +62 -4
- package/dist/{index-4x4kd9c1.js → index-q7hpt6r3.js} +17 -17
- package/dist/{index-1w6v1x0s.js → index-yqfqxh2r.js} +3 -3
- package/dist/index.js +3 -3
- package/dist/{input-reader-hvv2vb7w.js → input-reader-1wda1a2v.js} +1 -1
- package/dist/{input-reader-81w89fjj.js → input-reader-svafwk7x.js} +1 -1
- package/dist/{ja-SDAPAVCR-kg39dfap.js → ja-HFEQKCZF-hb2f25p8.js} +2 -5
- package/dist/{ja-P4OSE367-srr3qypg.js → ja-JE5ZL7EY-hacj2m31.js} +7 -4
- package/dist/{ja-ZHKCBE5W-x73w6x3e.js → ja-MDG4BKZQ-gayaca2c.js} +7 -4
- package/dist/{ja-BI5K3JDZ-GTIHISTZ-s6n3r2ab.js → ja-Q5PXKJ2V-BR5GRIDQ-fgqqpryf.js} +153 -9
- package/dist/{ja-BI5K3JDZ-77zat4z2.js → ja-Q5PXKJ2V-p4msxzjd.js} +153 -9
- package/dist/{ja-DPO5PPLO-mysfmznx.js → ja-UTQEAP34-hvyf683h.js} +14 -2
- package/dist/{known-types-a20evmmg.js → known-types-eq32py2n.js} +7 -7
- package/dist/{ko-ITOPNIYI-hmxd2asd.js → ko-AXCHW2OK-pkwdcbmx.js} +14 -2
- package/dist/{ko-JOBF5V7N-4bv0mjje.js → ko-AYBDSRZG-41mdmsg1.js} +153 -9
- package/dist/{ko-JOBF5V7N-O7T4HKIE-ape840y0.js → ko-AYBDSRZG-G43C3XUW-kng13fsg.js} +153 -9
- package/dist/{ko-NAGOZLC3-gaxxsnd2.js → ko-B4SEC7QX-thq2wt6a.js} +2 -5
- package/dist/{ko-PYOS2KJP-e7dshyxy.js → ko-DJJRKCG5-5h3k9csc.js} +7 -4
- package/dist/{ko-6W7OGLLB-mnmqc584.js → ko-LA5OSS5P-mq5h8sbk.js} +7 -4
- package/dist/localization-xecwjpe2.js +47 -0
- package/dist/{maestro-debug-service-5pjy4kp0.js → maestro-debug-service-gtvzk5a7.js} +5 -5
- package/dist/{maestro-pack-service-t13e86z1.js → maestro-pack-service-fam5zdm3.js} +2 -2
- package/dist/{node-service-z7akfnxt.js → node-service-wh7jfgn9.js} +26 -26
- package/dist/{node-sync-service-yfws8zyx.js → node-sync-service-m5rjrrw0.js} +12 -14
- package/dist/{node-jkh8qtrz.js → node-zjvhyq2m.js} +3 -3
- package/dist/{packager-tool-ahj646v3.js → packager-tool-0yvjv0nk.js} +32 -31
- package/dist/{packager-tool-zj7v1k9j.js → packager-tool-12636p2y.js} +3 -3
- package/dist/{packager-tool-tn5e7wnb.js → packager-tool-29eg86w6.js} +2 -2
- package/dist/{packager-tool-7p56pr16.js → packager-tool-2mj6z314.js} +6 -6
- package/dist/{packager-tool-a42jnpy5.js → packager-tool-4mna26cc.js} +27 -3
- package/dist/{packager-tool-a25ctv7h.js → packager-tool-750rbywx.js} +2 -2
- package/dist/{packager-tool-r7rp3zz3.js → packager-tool-79gws1zn.js} +1 -1
- package/dist/{packager-tool-wp25zdm0.js → packager-tool-83wng8f0.js} +7 -7
- package/dist/{packager-tool-7grhv1hg.js → packager-tool-a6yfnjgx.js} +1 -1
- package/dist/{packager-tool-tcz1gmag.js → packager-tool-aak2rzp8.js} +16 -21
- package/dist/{packager-tool-4n32vhzt.js → packager-tool-am67sn1c.js} +1 -1
- package/dist/{packager-tool-tb9ea902.js → packager-tool-asteg6p8.js} +3 -3
- package/dist/{packager-tool-q1227jxk.js → packager-tool-b0a80f57.js} +4 -4
- package/dist/{packager-tool-2mt20rxw.js → packager-tool-cj2ka9jr.js} +2 -2
- package/dist/{packager-tool-jm7twdzq.js → packager-tool-d5mjdpbf.js} +1 -1
- package/dist/packager-tool-d6qf5qmb.js +49 -0
- package/dist/packager-tool-d9dpx9wn.js +180 -0
- package/dist/{packager-tool-4awh3ct6.js → packager-tool-db4jm1rz.js} +1 -1
- package/dist/{packager-tool-09xysehb.js → packager-tool-e3yks66r.js} +5 -3
- package/dist/{packager-tool-m5qfverj.js → packager-tool-e8td7b01.js} +1143 -694
- package/dist/{packager-tool-k2nmkphc.js → packager-tool-ejyeka5x.js} +214 -23
- package/dist/{packager-tool-sfk34qja.js → packager-tool-fxx9gdy4.js} +8 -8
- package/dist/{packager-tool-m4gbq68e.js → packager-tool-g32wn5ny.js} +2 -2
- package/dist/{packager-tool-35rk0942.js → packager-tool-gfdjafqy.js} +3 -3
- package/dist/{packager-tool-hd0smshj.js → packager-tool-gxqd24n0.js} +4 -4
- package/dist/{packager-tool-vpqyvh4c.js → packager-tool-jjpc0yka.js} +19 -19
- package/dist/{packager-tool-pvjqhdxy.js → packager-tool-kg5sxneg.js} +1 -1
- package/dist/{packager-tool-mt5pyyf2.js → packager-tool-m351tkkr.js} +2 -2
- package/dist/{packager-tool-xwyjkrqz.js → packager-tool-me5q0naa.js} +2 -2
- package/dist/{packager-tool-2gg5em7a.js → packager-tool-ngk0jrec.js} +5 -5
- package/dist/{packager-tool-bay2m7j4.js → packager-tool-nxw5yzs7.js} +11439 -6786
- package/dist/{packager-tool-e0p2zsyc.js → packager-tool-p79yh9ww.js} +16 -16
- package/dist/{packager-tool-r6q5qwad.js → packager-tool-pap09zfh.js} +1 -1
- package/dist/{packager-tool-7exrv6w7.js → packager-tool-pm3qh1hy.js} +1 -1
- package/dist/{packager-tool-knzxevgr.js → packager-tool-q55pc04m.js} +3 -3
- package/dist/{packager-tool-k4sjzxvh.js → packager-tool-qgh5yaeh.js} +1 -1
- package/dist/{packager-tool-58q3tvh7.js → packager-tool-r87gxwqa.js} +159 -21
- package/dist/{packager-tool-spgs86me.js → packager-tool-rc9vc09w.js} +2 -2
- package/dist/{packager-tool-h2gfp0j3.js → packager-tool-rr8hveb9.js} +1 -1
- package/dist/{packager-tool-3hjbc16b.js → packager-tool-s1r7krkp.js} +1 -1
- package/dist/{packager-tool-fs8d9nzm.js → packager-tool-txwec4pr.js} +7 -7
- package/dist/{packager-tool-q38dn0kk.js → packager-tool-tynyeccc.js} +3 -3
- package/dist/{packager-tool-p9stswjj.js → packager-tool-w20r6n9v.js} +10976 -6421
- package/dist/{packager-tool-yaxmsr2h.js → packager-tool-wz5xatzb.js} +4 -4
- package/dist/{packager-tool-nrvxycwb.js → packager-tool-xatnrtwp.js} +4 -4
- package/dist/{packager-tool-wb9vkz4m.js → packager-tool-xtv236p7.js} +1 -1
- package/dist/{packager-tool-z9bfhmm5.js → packager-tool-z83pga0z.js} +159 -21
- package/dist/packager-tool.js +10 -10
- package/dist/{project-artifacts-46mqbkmn.js → project-artifacts-9z7atbk7.js} +1 -1
- package/dist/{pt-YI4VE4YQ-wdkn2dcf.js → pt-3DIO5QWG-hb763vct.js} +14 -2
- package/dist/{pt-D6A6MVB2-yvxca8vz.js → pt-3KUMINBZ-d0fexmny.js} +7 -4
- package/dist/{pt-BR-Z3TUDJHM-8v73x9s7.js → pt-BR-3LGIH33I-tqbrd89y.js} +7 -4
- package/dist/{pt-BR-DXXSYJDO-a2tp13v7.js → pt-BR-6VFBW5QT-hsck9gjj.js} +2 -5
- package/dist/{pt-BR-7DYX2YPT-LZYH4YFD-bx43vx3z.js → pt-BR-TKHNHMET-4Z5H4N5G-pzw3328h.js} +153 -9
- package/dist/{pt-BR-7DYX2YPT-fqxqzqtf.js → pt-BR-TKHNHMET-sn91xyq0.js} +153 -9
- package/dist/{pt-BR-UQCYHKMJ-q78n7q70.js → pt-BR-WNNZTIMN-6fent688.js} +7 -4
- package/dist/{pt-BR-BXURWX4W-bwfcwhk1.js → pt-BR-Y6K6XHXK-37a932vp.js} +14 -2
- package/dist/{pt-KSBWHAVQ-mhvhgr2p.js → pt-PFZXVOQH-qshq0b2m.js} +7 -4
- package/dist/{pt-HTXGGX6Y-97t21dty.js → pt-ROXU257Y-2f6bxev4.js} +153 -9
- package/dist/{pt-HTXGGX6Y-ZHQSDFKI-vehfxadc.js → pt-ROXU257Y-OWZOS54V-ywap2t39.js} +153 -9
- package/dist/{pt-7TR74ZMB-bmphh4x2.js → pt-WOTPKWPZ-1rxcy8hs.js} +2 -5
- package/dist/{resourcesSyncService-6x7zvt1e.js → resourcesSyncService-qcp5pg3h.js} +18 -18
- package/dist/{ro-VZUZTAMR-f4q0g3em.js → ro-AN5G62WQ-kcj00jwq.js} +7 -4
- package/dist/{ro-KTNQ3MNU-XIE6YPQN-gen8p82z.js → ro-AVAWPKOO-6WCG756B-v7pjv1hc.js} +153 -9
- package/dist/{ro-KTNQ3MNU-y08n1x5g.js → ro-AVAWPKOO-b89pw79r.js} +153 -9
- package/dist/{ro-RKXZUG7Z-nndrrsq7.js → ro-BWR3ONRR-jmap5ajd.js} +14 -2
- package/dist/{ro-4TMBHS5M-jz0anpt6.js → ro-KMDT7LYJ-yhpnsdvw.js} +7 -4
- package/dist/{ro-BJFER5OI-83tq8vxh.js → ro-PB44YXML-zmhhwp5h.js} +2 -5
- package/dist/{serialization-J5QK3HPY-8kaqsdct.js → serialization-BXU6AKAN-dk0sqx89.js} +1995 -953
- package/dist/{shared-utils-p2hqmpb8.js → shared-utils-twgpb9ax.js} +1 -1
- package/dist/{tidy-service-rm7y4dn2.js → tidy-service-6srt5bks.js} +13 -13
- package/dist/{tool-xpmr8bsy.js → tool-cyb3khxm.js} +31 -31
- package/dist/{tool-hm0yzjxd.js → tool-rbkxn1v2.js} +83 -83
- package/dist/tool.js +3 -3
- package/dist/{tr-AA6O2WSR-86ba4bdf.js → tr-5IIHSFW5-stsb3dar.js} +14 -2
- package/dist/{tr-XHSSPNK7-GW5KVXR3-2w3f1ss6.js → tr-JMIP7ZSL-G3QYPVT2-gswngwcr.js} +153 -9
- package/dist/{tr-XHSSPNK7-cmqyc4wd.js → tr-JMIP7ZSL-c39b6pe4.js} +153 -9
- package/dist/{tr-W4AVRSQ4-hjr81xzk.js → tr-KHOCWWLF-8apf5y44.js} +7 -4
- package/dist/{tr-GSQQ6SOT-hv1gyeaa.js → tr-SC55DYHY-e4zgcd4t.js} +7 -4
- package/dist/{tr-RQTZ2DMS-w3cwv8s4.js → tr-SEC6RGZ4-0ttavjya.js} +2 -5
- package/dist/{trigger-enrichment-service-9ekw9bph.js → trigger-enrichment-service-pv2da4rz.js} +21 -21
- package/dist/{variable-service-25vdpt12.js → variable-service-nmhv9v68.js} +12 -12
- package/dist/{wait-for-flow-job-r3037prg.js → wait-for-flow-job-sx0ht8sb.js} +6 -6
- package/dist/{zh-CN-6YRAN57T-rd7x2tqs.js → zh-CN-4NI2EGMV-8g027vv3.js} +7 -4
- package/dist/{zh-CN-2EHQT23P-mr63c4xz.js → zh-CN-IFFXSEJS-9wm9gmrv.js} +153 -9
- package/dist/{zh-CN-2EHQT23P-T5XRQCVS-ac17dpc1.js → zh-CN-IFFXSEJS-MZQ4HU3Z-ge1ynmtz.js} +153 -9
- package/dist/{zh-CN-ZC6LT4IN-kbzvvzz5.js → zh-CN-MX7VIOF2-xznrtchf.js} +2 -5
- package/dist/{zh-CN-EDFRBU32-vvj7tmaq.js → zh-CN-OUMLDKDS-q3a1rr5c.js} +7 -4
- package/dist/{zh-CN-R2KLHXQV-agqr45ds.js → zh-CN-R2KU4U5L-q4yhc33t.js} +14 -2
- package/dist/{zh-TW-SO2245GN-n2bn1gg4.js → zh-TW-53SU6EH4-33x57egq.js} +7 -4
- package/dist/{zh-TW-R7Y5KVMU-m61y07e3.js → zh-TW-5SJ3GZT2-bsg054mw.js} +2 -5
- package/dist/{zh-TW-RJGCQANM-w0x3qc1p.js → zh-TW-GNKMELBF-r4ay2475.js} +14 -2
- package/dist/{zh-TW-MGZCE5BT-c4ekmrz9.js → zh-TW-IYBNYAMG-8727c7v2.js} +153 -9
- package/dist/{zh-TW-MGZCE5BT-P6FLIUAR-zmq07vhs.js → zh-TW-IYBNYAMG-J7FWTQTK-sx8d4ymg.js} +153 -9
- package/dist/{zh-TW-HAICM6DE-rh7k3cq7.js → zh-TW-TN3MPNXL-jcgg2hcs.js} +7 -4
- package/package.json +2 -2
- package/dist/en-EPWMLP2N-2wvge238.js +0 -28
- package/dist/localization-bbsjxbj4.js +0 -47
- package/dist/packager-tool-abbtfk2v.js +0 -54
- package/dist/packager-tool-k99nf3pq.js +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VALIDATION_NAMESPACE
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-p79yh9ww.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__export,
|
|
@@ -23043,7 +23043,410 @@ function date4(params) {
|
|
|
23043
23043
|
|
|
23044
23044
|
// ../../node_modules/zod/v4/classic/external.js
|
|
23045
23045
|
config(en_default());
|
|
23046
|
-
// ../../node_modules/@uipath/flow-schema/dist/chunk-
|
|
23046
|
+
// ../../node_modules/@uipath/flow-schema/dist/chunk-GWRTD4DY.js
|
|
23047
|
+
var JS_EXPRESSION_PREFIX = "=js:";
|
|
23048
|
+
var expressionFieldTypeSchema = exports_external.enum(["string", "number", "boolean", "object", "array", "null"]);
|
|
23049
|
+
var expressionModeSchema = exports_external.enum(["literal", "jsExpression"]);
|
|
23050
|
+
var expressionValueSchema = exports_external.object({
|
|
23051
|
+
type: expressionModeSchema,
|
|
23052
|
+
expression: exports_external.string(),
|
|
23053
|
+
fieldType: expressionFieldTypeSchema
|
|
23054
|
+
}).strict();
|
|
23055
|
+
var expressionLikeSchema = exports_external.union([exports_external.string(), expressionValueSchema]);
|
|
23056
|
+
function isExpressionValue(v) {
|
|
23057
|
+
return expressionValueSchema.safeParse(v).success;
|
|
23058
|
+
}
|
|
23059
|
+
function isEmptyExpressionValue(ev) {
|
|
23060
|
+
return ev.expression.trim() === "";
|
|
23061
|
+
}
|
|
23062
|
+
function inferFieldType(value) {
|
|
23063
|
+
if (Array.isArray(value))
|
|
23064
|
+
return "array";
|
|
23065
|
+
if (value === null)
|
|
23066
|
+
return "null";
|
|
23067
|
+
const t = typeof value;
|
|
23068
|
+
if (t === "string" || t === "number" || t === "boolean" || t === "object")
|
|
23069
|
+
return t;
|
|
23070
|
+
return "string";
|
|
23071
|
+
}
|
|
23072
|
+
function encodeLiteral(raw, fieldType) {
|
|
23073
|
+
switch (fieldType) {
|
|
23074
|
+
case "string":
|
|
23075
|
+
if (typeof raw === "string")
|
|
23076
|
+
return raw;
|
|
23077
|
+
if (raw == null)
|
|
23078
|
+
return "";
|
|
23079
|
+
if (typeof raw === "object") {
|
|
23080
|
+
try {
|
|
23081
|
+
return JSON.stringify(raw);
|
|
23082
|
+
} catch {
|
|
23083
|
+
return String(raw);
|
|
23084
|
+
}
|
|
23085
|
+
}
|
|
23086
|
+
return String(raw);
|
|
23087
|
+
case "number":
|
|
23088
|
+
case "boolean":
|
|
23089
|
+
return raw == null ? "" : String(raw);
|
|
23090
|
+
case "null":
|
|
23091
|
+
return "null";
|
|
23092
|
+
case "object":
|
|
23093
|
+
case "array":
|
|
23094
|
+
return JSON.stringify(raw ?? null);
|
|
23095
|
+
}
|
|
23096
|
+
}
|
|
23097
|
+
function decodeLiteral(ev) {
|
|
23098
|
+
if (ev.type === "jsExpression")
|
|
23099
|
+
return ev.expression;
|
|
23100
|
+
switch (ev.fieldType) {
|
|
23101
|
+
case "string":
|
|
23102
|
+
return ev.expression;
|
|
23103
|
+
case "number":
|
|
23104
|
+
return ev.expression === "" ? undefined : Number(ev.expression);
|
|
23105
|
+
case "boolean":
|
|
23106
|
+
return ev.expression === "" ? undefined : ev.expression === "true";
|
|
23107
|
+
case "null":
|
|
23108
|
+
return null;
|
|
23109
|
+
case "object":
|
|
23110
|
+
case "array":
|
|
23111
|
+
if (ev.expression === "")
|
|
23112
|
+
return;
|
|
23113
|
+
try {
|
|
23114
|
+
return JSON.parse(ev.expression);
|
|
23115
|
+
} catch {
|
|
23116
|
+
return;
|
|
23117
|
+
}
|
|
23118
|
+
}
|
|
23119
|
+
}
|
|
23120
|
+
function coerceToExpressionValue(value, fieldType) {
|
|
23121
|
+
if (isExpressionValue(value))
|
|
23122
|
+
return value;
|
|
23123
|
+
const resolvedFieldType = fieldType ?? inferFieldType(value);
|
|
23124
|
+
if (typeof value === "string") {
|
|
23125
|
+
if (value.startsWith(JS_EXPRESSION_PREFIX)) {
|
|
23126
|
+
return {
|
|
23127
|
+
type: "jsExpression",
|
|
23128
|
+
expression: value.slice(JS_EXPRESSION_PREFIX.length),
|
|
23129
|
+
fieldType: resolvedFieldType
|
|
23130
|
+
};
|
|
23131
|
+
}
|
|
23132
|
+
return { type: "literal", expression: value, fieldType: resolvedFieldType };
|
|
23133
|
+
}
|
|
23134
|
+
return { type: "literal", expression: encodeLiteral(value, resolvedFieldType), fieldType: resolvedFieldType };
|
|
23135
|
+
}
|
|
23136
|
+
function getJsExpressionBody(value) {
|
|
23137
|
+
if (isExpressionValue(value)) {
|
|
23138
|
+
return value.type === "jsExpression" ? value.expression : undefined;
|
|
23139
|
+
}
|
|
23140
|
+
if (typeof value === "string" && value.startsWith(JS_EXPRESSION_PREFIX)) {
|
|
23141
|
+
return value.slice(JS_EXPRESSION_PREFIX.length);
|
|
23142
|
+
}
|
|
23143
|
+
return;
|
|
23144
|
+
}
|
|
23145
|
+
function expectedTypeToFieldType(expectedType) {
|
|
23146
|
+
switch (expectedType) {
|
|
23147
|
+
case "number":
|
|
23148
|
+
case "integer":
|
|
23149
|
+
return "number";
|
|
23150
|
+
case "boolean":
|
|
23151
|
+
return "boolean";
|
|
23152
|
+
case "object":
|
|
23153
|
+
return "object";
|
|
23154
|
+
case "array":
|
|
23155
|
+
return "array";
|
|
23156
|
+
case "null":
|
|
23157
|
+
return "null";
|
|
23158
|
+
case "string":
|
|
23159
|
+
case "text":
|
|
23160
|
+
default:
|
|
23161
|
+
return "string";
|
|
23162
|
+
}
|
|
23163
|
+
}
|
|
23164
|
+
function jsonSchemaTypeToFieldType(raw) {
|
|
23165
|
+
if (Array.isArray(raw)) {
|
|
23166
|
+
for (const t of raw) {
|
|
23167
|
+
const mapped = jsonSchemaTypeToFieldType(t);
|
|
23168
|
+
if (mapped)
|
|
23169
|
+
return mapped;
|
|
23170
|
+
}
|
|
23171
|
+
return;
|
|
23172
|
+
}
|
|
23173
|
+
if (typeof raw !== "string")
|
|
23174
|
+
return;
|
|
23175
|
+
switch (raw) {
|
|
23176
|
+
case "string":
|
|
23177
|
+
case "number":
|
|
23178
|
+
case "boolean":
|
|
23179
|
+
case "object":
|
|
23180
|
+
case "array":
|
|
23181
|
+
case "null":
|
|
23182
|
+
return raw;
|
|
23183
|
+
case "integer":
|
|
23184
|
+
return "number";
|
|
23185
|
+
default:
|
|
23186
|
+
return;
|
|
23187
|
+
}
|
|
23188
|
+
}
|
|
23189
|
+
function coerceInputsViaSchema(value, schema) {
|
|
23190
|
+
if (isExpressionValue(value))
|
|
23191
|
+
return value;
|
|
23192
|
+
if (Array.isArray(value)) {
|
|
23193
|
+
if (schema?.items) {
|
|
23194
|
+
for (let i = 0;i < value.length; i++) {
|
|
23195
|
+
value[i] = coerceInputsViaSchema(value[i], schema.items);
|
|
23196
|
+
}
|
|
23197
|
+
}
|
|
23198
|
+
return value;
|
|
23199
|
+
}
|
|
23200
|
+
if (value !== null && typeof value === "object") {
|
|
23201
|
+
if (schema?.properties) {
|
|
23202
|
+
const props = schema.properties;
|
|
23203
|
+
for (const [k, v] of Object.entries(value)) {
|
|
23204
|
+
value[k] = coerceInputsViaSchema(v, props[k]);
|
|
23205
|
+
}
|
|
23206
|
+
}
|
|
23207
|
+
return value;
|
|
23208
|
+
}
|
|
23209
|
+
if (typeof value === "string") {
|
|
23210
|
+
if (value.startsWith(JS_EXPRESSION_PREFIX)) {
|
|
23211
|
+
return coerceToExpressionValue(value, jsonSchemaTypeToFieldType(schema?.type));
|
|
23212
|
+
}
|
|
23213
|
+
if (hasMustacheInterpolation(value)) {
|
|
23214
|
+
return {
|
|
23215
|
+
type: "literal",
|
|
23216
|
+
expression: value,
|
|
23217
|
+
fieldType: jsonSchemaTypeToFieldType(schema?.type) ?? "string"
|
|
23218
|
+
};
|
|
23219
|
+
}
|
|
23220
|
+
}
|
|
23221
|
+
return value;
|
|
23222
|
+
}
|
|
23223
|
+
function hasMustacheInterpolation(s) {
|
|
23224
|
+
const stripped = s.replace(/\\\{/g, "").replace(/\\\}/g, "");
|
|
23225
|
+
return /\{\{[^{}]+\}\}/.test(stripped);
|
|
23226
|
+
}
|
|
23227
|
+
var ESCAPED_MUSTACHE_PLACEHOLDER = "__FLOW_ESCAPED_MUSTACHE__";
|
|
23228
|
+
var ESCAPED_MUSTACHE_REGEX = /\\\{\{/g;
|
|
23229
|
+
var hasMustache = (value) => {
|
|
23230
|
+
if (!value)
|
|
23231
|
+
return false;
|
|
23232
|
+
const open = value.indexOf("{{");
|
|
23233
|
+
return open !== -1 && value.indexOf("}}", open + 2) !== -1;
|
|
23234
|
+
};
|
|
23235
|
+
var parseMustacheSegments = (value) => {
|
|
23236
|
+
if (!value)
|
|
23237
|
+
return { segments: [], tail: "" };
|
|
23238
|
+
const segments = [];
|
|
23239
|
+
let pos = 0;
|
|
23240
|
+
while (pos < value.length) {
|
|
23241
|
+
const openIdx = value.indexOf("{{", pos);
|
|
23242
|
+
if (openIdx === -1)
|
|
23243
|
+
break;
|
|
23244
|
+
const closeIdx = value.indexOf("}}", openIdx + 2);
|
|
23245
|
+
if (closeIdx === -1)
|
|
23246
|
+
break;
|
|
23247
|
+
segments.push({
|
|
23248
|
+
staticText: value.slice(pos, openIdx),
|
|
23249
|
+
expression: value.slice(openIdx + 2, closeIdx).trim()
|
|
23250
|
+
});
|
|
23251
|
+
pos = closeIdx + 2;
|
|
23252
|
+
}
|
|
23253
|
+
return { segments, tail: value.slice(pos) };
|
|
23254
|
+
};
|
|
23255
|
+
function templateInterpolationBody(expr) {
|
|
23256
|
+
if (!hasMustache(expr))
|
|
23257
|
+
return;
|
|
23258
|
+
const input = expr.replace(ESCAPED_MUSTACHE_REGEX, ESCAPED_MUSTACHE_PLACEHOLDER);
|
|
23259
|
+
const restore = (s) => escapeTemplateLiteralText(s.replaceAll(ESCAPED_MUSTACHE_PLACEHOLDER, "{{"));
|
|
23260
|
+
const { segments, tail } = parseMustacheSegments(input);
|
|
23261
|
+
let result = "";
|
|
23262
|
+
for (const seg of segments)
|
|
23263
|
+
result += restore(seg.staticText) + "${" + seg.expression + "}";
|
|
23264
|
+
return result + restore(tail);
|
|
23265
|
+
}
|
|
23266
|
+
var TEMPLATE_SENSITIVE = /[\\`]|\$\{/g;
|
|
23267
|
+
var escapeTemplateLiteralText = (text) => text.replace(TEMPLATE_SENSITIVE, (match) => `\\${match}`);
|
|
23268
|
+
var QES_UNSAFE_CHAR = /["\\\s\u0000-\u001f]/;
|
|
23269
|
+
function isQesUncarryableValue(value) {
|
|
23270
|
+
const jsBody = getJsExpressionBody(value);
|
|
23271
|
+
if (jsBody !== undefined)
|
|
23272
|
+
return jsBody.trim() !== "" && QES_UNSAFE_CHAR.test(jsBody);
|
|
23273
|
+
const text = isExpressionValue(value) ? value.expression : typeof value === "string" ? value : "";
|
|
23274
|
+
const templateBody = templateInterpolationBody(text);
|
|
23275
|
+
return templateBody !== undefined && QES_UNSAFE_CHAR.test(templateBody);
|
|
23276
|
+
}
|
|
23277
|
+
var RESERVED_WORDS = [
|
|
23278
|
+
"break",
|
|
23279
|
+
"case",
|
|
23280
|
+
"catch",
|
|
23281
|
+
"continue",
|
|
23282
|
+
"debugger",
|
|
23283
|
+
"default",
|
|
23284
|
+
"delete",
|
|
23285
|
+
"do",
|
|
23286
|
+
"else",
|
|
23287
|
+
"finally",
|
|
23288
|
+
"for",
|
|
23289
|
+
"function",
|
|
23290
|
+
"if",
|
|
23291
|
+
"in",
|
|
23292
|
+
"instanceof",
|
|
23293
|
+
"new",
|
|
23294
|
+
"return",
|
|
23295
|
+
"switch",
|
|
23296
|
+
"this",
|
|
23297
|
+
"throw",
|
|
23298
|
+
"try",
|
|
23299
|
+
"typeof",
|
|
23300
|
+
"var",
|
|
23301
|
+
"void",
|
|
23302
|
+
"while",
|
|
23303
|
+
"with",
|
|
23304
|
+
"class",
|
|
23305
|
+
"const",
|
|
23306
|
+
"enum",
|
|
23307
|
+
"export",
|
|
23308
|
+
"extends",
|
|
23309
|
+
"import",
|
|
23310
|
+
"super",
|
|
23311
|
+
"implements",
|
|
23312
|
+
"interface",
|
|
23313
|
+
"let",
|
|
23314
|
+
"package",
|
|
23315
|
+
"private",
|
|
23316
|
+
"protected",
|
|
23317
|
+
"public",
|
|
23318
|
+
"static",
|
|
23319
|
+
"yield"
|
|
23320
|
+
];
|
|
23321
|
+
var VALID_IDENTIFIER_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
|
|
23322
|
+
var FLAT_SEP = "__";
|
|
23323
|
+
function generateRandomId(length) {
|
|
23324
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
23325
|
+
let result = "";
|
|
23326
|
+
for (let i = 0;i < length; i++) {
|
|
23327
|
+
result += chars.charAt(Math.floor(Math.random() * chars.length));
|
|
23328
|
+
}
|
|
23329
|
+
return result;
|
|
23330
|
+
}
|
|
23331
|
+
function generateNextId(prefix, count = 6) {
|
|
23332
|
+
return `${prefix}${generateRandomId(count)}`;
|
|
23333
|
+
}
|
|
23334
|
+
var UNSAFE_PROPERTY_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
23335
|
+
var isUnsafeKey = (key) => UNSAFE_PROPERTY_KEYS.has(key);
|
|
23336
|
+
function isPlainObject2(value) {
|
|
23337
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
23338
|
+
}
|
|
23339
|
+
function deepEqual(a, b) {
|
|
23340
|
+
if (a === b)
|
|
23341
|
+
return true;
|
|
23342
|
+
if (a === null || b === null)
|
|
23343
|
+
return a === b;
|
|
23344
|
+
if (a === undefined || b === undefined)
|
|
23345
|
+
return a === b;
|
|
23346
|
+
if (typeof a !== typeof b)
|
|
23347
|
+
return false;
|
|
23348
|
+
if (Array.isArray(a)) {
|
|
23349
|
+
if (!Array.isArray(b) || a.length !== b.length)
|
|
23350
|
+
return false;
|
|
23351
|
+
return a.every((val, i) => deepEqual(val, b[i]));
|
|
23352
|
+
}
|
|
23353
|
+
if (typeof a === "object") {
|
|
23354
|
+
if (Array.isArray(b))
|
|
23355
|
+
return false;
|
|
23356
|
+
const objA = a;
|
|
23357
|
+
const objB = b;
|
|
23358
|
+
const keysA = Object.keys(objA);
|
|
23359
|
+
const keysB = Object.keys(objB);
|
|
23360
|
+
if (keysA.length !== keysB.length)
|
|
23361
|
+
return false;
|
|
23362
|
+
return keysA.every((key) => (key in objB) && deepEqual(objA[key], objB[key]));
|
|
23363
|
+
}
|
|
23364
|
+
return false;
|
|
23365
|
+
}
|
|
23366
|
+
var IN_FILTER_OPERATOR = "in";
|
|
23367
|
+
var NOT_IN_FILTER_OPERATOR = "not in";
|
|
23368
|
+
var LEGACY_IN_FILTER_OPERATOR = "is any of";
|
|
23369
|
+
function isValueListFilterOperator(operator) {
|
|
23370
|
+
return operator === IN_FILTER_OPERATOR || operator === NOT_IN_FILTER_OPERATOR || operator === LEGACY_IN_FILTER_OPERATOR;
|
|
23371
|
+
}
|
|
23372
|
+
function resolveReadResultMode(cfg) {
|
|
23373
|
+
return cfg?.resultMode === "multiple" ? "multiple" : "single";
|
|
23374
|
+
}
|
|
23375
|
+
function readExpressionText(value) {
|
|
23376
|
+
if (typeof value === "string")
|
|
23377
|
+
return value;
|
|
23378
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
23379
|
+
return "";
|
|
23380
|
+
const expression = value.expression;
|
|
23381
|
+
return typeof expression === "string" ? expression : "";
|
|
23382
|
+
}
|
|
23383
|
+
function isJsExpressionShape(value) {
|
|
23384
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
23385
|
+
return false;
|
|
23386
|
+
return value.type === "jsExpression";
|
|
23387
|
+
}
|
|
23388
|
+
function readEntityFilterValueListIsEmpty(row, multiRecord) {
|
|
23389
|
+
if (!multiRecord || !isValueListFilterOperator(row?.operator))
|
|
23390
|
+
return false;
|
|
23391
|
+
const text = readExpressionText(row?.value);
|
|
23392
|
+
if (!row?.field || !text.trim())
|
|
23393
|
+
return false;
|
|
23394
|
+
if (isJsExpressionShape(row?.value))
|
|
23395
|
+
return false;
|
|
23396
|
+
return text.split(",").every((part) => !part.trim());
|
|
23397
|
+
}
|
|
23398
|
+
function readEntityFilterRowYieldsPredicate(row, multiRecord) {
|
|
23399
|
+
if (!row?.field || !readExpressionText(row.value).trim())
|
|
23400
|
+
return false;
|
|
23401
|
+
if (!isValueListFilterOperator(row.operator))
|
|
23402
|
+
return true;
|
|
23403
|
+
return multiRecord && !readEntityFilterValueListIsEmpty(row, true);
|
|
23404
|
+
}
|
|
23405
|
+
function entityWriteRowHasValue(value) {
|
|
23406
|
+
if (typeof value === "boolean")
|
|
23407
|
+
return true;
|
|
23408
|
+
if (typeof value === "number")
|
|
23409
|
+
return Number.isFinite(value);
|
|
23410
|
+
const body = getJsExpressionBody(value);
|
|
23411
|
+
if (body !== undefined)
|
|
23412
|
+
return body.trim() !== "";
|
|
23413
|
+
return readExpressionText(value).trim() !== "";
|
|
23414
|
+
}
|
|
23415
|
+
var SYSTEM_ENTITY_FIELD_NAMES = /* @__PURE__ */ new Set(["id", "createtime", "createdby", "updatetime", "updatedby"]);
|
|
23416
|
+
function isNonNullableEntityWriteField(field) {
|
|
23417
|
+
if (!field || field.isRequired !== true)
|
|
23418
|
+
return false;
|
|
23419
|
+
if (field.isAttachment === true || field.isAutoNumber === true || field.isSystemField === true)
|
|
23420
|
+
return false;
|
|
23421
|
+
const name = typeof field.name === "string" ? field.name.trim().toLowerCase() : "";
|
|
23422
|
+
return name !== "" && !SYSTEM_ENTITY_FIELD_NAMES.has(name);
|
|
23423
|
+
}
|
|
23424
|
+
function isMandatoryEntityWriteField(field) {
|
|
23425
|
+
return isNonNullableEntityWriteField(field) && field?.hasDefaultValue !== true;
|
|
23426
|
+
}
|
|
23427
|
+
function entityWriteFieldNames(entityFields, predicate) {
|
|
23428
|
+
if (!Array.isArray(entityFields))
|
|
23429
|
+
return [];
|
|
23430
|
+
return entityFields.filter((field) => predicate(field)).map((field) => field.name.trim());
|
|
23431
|
+
}
|
|
23432
|
+
function nonNullableEntityWriteFields(entityFields) {
|
|
23433
|
+
return entityWriteFieldNames(entityFields, isNonNullableEntityWriteField);
|
|
23434
|
+
}
|
|
23435
|
+
function mandatoryEntityWriteFields(entityFields) {
|
|
23436
|
+
return entityWriteFieldNames(entityFields, isMandatoryEntityWriteField);
|
|
23437
|
+
}
|
|
23438
|
+
function readEntityFilterRows(filters) {
|
|
23439
|
+
if (Array.isArray(filters))
|
|
23440
|
+
return filters;
|
|
23441
|
+
if (!filters || typeof filters !== "object")
|
|
23442
|
+
return [];
|
|
23443
|
+
const model = filters;
|
|
23444
|
+
const rows = Array.isArray(model.rows) ? model.rows : [];
|
|
23445
|
+
const groups = Array.isArray(model.groups) ? model.groups : [];
|
|
23446
|
+
return [...rows, ...groups.flatMap((g) => Array.isArray(g?.rows) ? g.rows : [])];
|
|
23447
|
+
}
|
|
23448
|
+
|
|
23449
|
+
// ../../node_modules/@uipath/flow-schema/dist/chunk-M4DXYS4M.js
|
|
23047
23450
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
23048
23451
|
var import_ajv_errors = __toESM(require_dist(), 1);
|
|
23049
23452
|
|
|
@@ -26146,7 +26549,7 @@ __export(exports_util2, {
|
|
|
26146
26549
|
getParsedType: () => getParsedType2,
|
|
26147
26550
|
getSizableOrigin: () => getSizableOrigin2,
|
|
26148
26551
|
isObject: () => isObject2,
|
|
26149
|
-
isPlainObject: () =>
|
|
26552
|
+
isPlainObject: () => isPlainObject3,
|
|
26150
26553
|
issue: () => issue2,
|
|
26151
26554
|
joinValues: () => joinValues2,
|
|
26152
26555
|
jsonStringifyReplacer: () => jsonStringifyReplacer2,
|
|
@@ -26290,7 +26693,7 @@ var allowsEval2 = cached2(() => {
|
|
|
26290
26693
|
return false;
|
|
26291
26694
|
}
|
|
26292
26695
|
});
|
|
26293
|
-
function
|
|
26696
|
+
function isPlainObject3(o) {
|
|
26294
26697
|
if (isObject2(o) === false)
|
|
26295
26698
|
return false;
|
|
26296
26699
|
const ctor = o.constructor;
|
|
@@ -26475,7 +26878,7 @@ function omit2(schema, mask) {
|
|
|
26475
26878
|
});
|
|
26476
26879
|
}
|
|
26477
26880
|
function extend2(schema, shape) {
|
|
26478
|
-
if (!
|
|
26881
|
+
if (!isPlainObject3(shape)) {
|
|
26479
26882
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
26480
26883
|
}
|
|
26481
26884
|
const def = {
|
|
@@ -28464,7 +28867,7 @@ function mergeValues2(a, b) {
|
|
|
28464
28867
|
if (a instanceof Date && b instanceof Date && +a === +b) {
|
|
28465
28868
|
return { valid: true, data: a };
|
|
28466
28869
|
}
|
|
28467
|
-
if (
|
|
28870
|
+
if (isPlainObject3(a) && isPlainObject3(b)) {
|
|
28468
28871
|
const bKeys = Object.keys(b);
|
|
28469
28872
|
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
28470
28873
|
const newObj = { ...a, ...b };
|
|
@@ -28594,7 +28997,7 @@ var $ZodRecord2 = /* @__PURE__ */ $constructor2("$ZodRecord", (inst, def) => {
|
|
|
28594
28997
|
$ZodType2.init(inst, def);
|
|
28595
28998
|
inst._zod.parse = (payload, ctx) => {
|
|
28596
28999
|
const input = payload.value;
|
|
28597
|
-
if (!
|
|
29000
|
+
if (!isPlainObject3(input)) {
|
|
28598
29001
|
payload.issues.push({
|
|
28599
29002
|
expected: "record",
|
|
28600
29003
|
code: "invalid_type",
|
|
@@ -46588,7 +46991,7 @@ var ternary = {
|
|
|
46588
46991
|
};
|
|
46589
46992
|
jsep.plugins.register(ternary);
|
|
46590
46993
|
|
|
46591
|
-
// ../../node_modules/@uipath/flow-schema/dist/chunk-
|
|
46994
|
+
// ../../node_modules/@uipath/flow-schema/dist/chunk-M4DXYS4M.js
|
|
46592
46995
|
function isBlockingSeverity(severity) {
|
|
46593
46996
|
return severity === "error" || severity === "critical";
|
|
46594
46997
|
}
|
|
@@ -46606,186 +47009,6 @@ var agentEnforcementsSchema = exports_external.object({
|
|
|
46606
47009
|
shouldEnforceHumanInTheLoop: exports_external.boolean().optional(),
|
|
46607
47010
|
maxIterations: exports_external.number().nullable().optional()
|
|
46608
47011
|
});
|
|
46609
|
-
var JS_EXPRESSION_PREFIX = "=js:";
|
|
46610
|
-
var expressionFieldTypeSchema = exports_external.enum(["string", "number", "boolean", "object", "array", "null"]);
|
|
46611
|
-
var expressionModeSchema = exports_external.enum(["literal", "jsExpression"]);
|
|
46612
|
-
var expressionValueSchema = exports_external.object({
|
|
46613
|
-
type: expressionModeSchema,
|
|
46614
|
-
expression: exports_external.string(),
|
|
46615
|
-
fieldType: expressionFieldTypeSchema
|
|
46616
|
-
}).strict();
|
|
46617
|
-
var expressionLikeSchema = exports_external.union([exports_external.string(), expressionValueSchema]);
|
|
46618
|
-
function isExpressionValue(v) {
|
|
46619
|
-
return expressionValueSchema.safeParse(v).success;
|
|
46620
|
-
}
|
|
46621
|
-
function isEmptyExpressionValue(ev) {
|
|
46622
|
-
return ev.expression.trim() === "";
|
|
46623
|
-
}
|
|
46624
|
-
function inferFieldType(value) {
|
|
46625
|
-
if (Array.isArray(value))
|
|
46626
|
-
return "array";
|
|
46627
|
-
if (value === null)
|
|
46628
|
-
return "null";
|
|
46629
|
-
const t13 = typeof value;
|
|
46630
|
-
if (t13 === "string" || t13 === "number" || t13 === "boolean" || t13 === "object")
|
|
46631
|
-
return t13;
|
|
46632
|
-
return "string";
|
|
46633
|
-
}
|
|
46634
|
-
function encodeLiteral(raw, fieldType) {
|
|
46635
|
-
switch (fieldType) {
|
|
46636
|
-
case "string":
|
|
46637
|
-
if (typeof raw === "string")
|
|
46638
|
-
return raw;
|
|
46639
|
-
if (raw == null)
|
|
46640
|
-
return "";
|
|
46641
|
-
if (typeof raw === "object") {
|
|
46642
|
-
try {
|
|
46643
|
-
return JSON.stringify(raw);
|
|
46644
|
-
} catch {
|
|
46645
|
-
return String(raw);
|
|
46646
|
-
}
|
|
46647
|
-
}
|
|
46648
|
-
return String(raw);
|
|
46649
|
-
case "number":
|
|
46650
|
-
case "boolean":
|
|
46651
|
-
return raw == null ? "" : String(raw);
|
|
46652
|
-
case "null":
|
|
46653
|
-
return "null";
|
|
46654
|
-
case "object":
|
|
46655
|
-
case "array":
|
|
46656
|
-
return JSON.stringify(raw ?? null);
|
|
46657
|
-
}
|
|
46658
|
-
}
|
|
46659
|
-
function decodeLiteral(ev) {
|
|
46660
|
-
if (ev.type === "jsExpression")
|
|
46661
|
-
return ev.expression;
|
|
46662
|
-
switch (ev.fieldType) {
|
|
46663
|
-
case "string":
|
|
46664
|
-
return ev.expression;
|
|
46665
|
-
case "number":
|
|
46666
|
-
return ev.expression === "" ? undefined : Number(ev.expression);
|
|
46667
|
-
case "boolean":
|
|
46668
|
-
return ev.expression === "" ? undefined : ev.expression === "true";
|
|
46669
|
-
case "null":
|
|
46670
|
-
return null;
|
|
46671
|
-
case "object":
|
|
46672
|
-
case "array":
|
|
46673
|
-
if (ev.expression === "")
|
|
46674
|
-
return;
|
|
46675
|
-
try {
|
|
46676
|
-
return JSON.parse(ev.expression);
|
|
46677
|
-
} catch {
|
|
46678
|
-
return;
|
|
46679
|
-
}
|
|
46680
|
-
}
|
|
46681
|
-
}
|
|
46682
|
-
function coerceToExpressionValue(value, fieldType) {
|
|
46683
|
-
if (isExpressionValue(value))
|
|
46684
|
-
return value;
|
|
46685
|
-
const resolvedFieldType = fieldType ?? inferFieldType(value);
|
|
46686
|
-
if (typeof value === "string") {
|
|
46687
|
-
if (value.startsWith(JS_EXPRESSION_PREFIX)) {
|
|
46688
|
-
return {
|
|
46689
|
-
type: "jsExpression",
|
|
46690
|
-
expression: value.slice(JS_EXPRESSION_PREFIX.length),
|
|
46691
|
-
fieldType: resolvedFieldType
|
|
46692
|
-
};
|
|
46693
|
-
}
|
|
46694
|
-
return { type: "literal", expression: value, fieldType: resolvedFieldType };
|
|
46695
|
-
}
|
|
46696
|
-
return { type: "literal", expression: encodeLiteral(value, resolvedFieldType), fieldType: resolvedFieldType };
|
|
46697
|
-
}
|
|
46698
|
-
function getJsExpressionBody(value) {
|
|
46699
|
-
if (isExpressionValue(value)) {
|
|
46700
|
-
return value.type === "jsExpression" ? value.expression : undefined;
|
|
46701
|
-
}
|
|
46702
|
-
if (typeof value === "string" && value.startsWith(JS_EXPRESSION_PREFIX)) {
|
|
46703
|
-
return value.slice(JS_EXPRESSION_PREFIX.length);
|
|
46704
|
-
}
|
|
46705
|
-
return;
|
|
46706
|
-
}
|
|
46707
|
-
function expectedTypeToFieldType(expectedType) {
|
|
46708
|
-
switch (expectedType) {
|
|
46709
|
-
case "number":
|
|
46710
|
-
case "integer":
|
|
46711
|
-
return "number";
|
|
46712
|
-
case "boolean":
|
|
46713
|
-
return "boolean";
|
|
46714
|
-
case "object":
|
|
46715
|
-
return "object";
|
|
46716
|
-
case "array":
|
|
46717
|
-
return "array";
|
|
46718
|
-
case "null":
|
|
46719
|
-
return "null";
|
|
46720
|
-
case "string":
|
|
46721
|
-
case "text":
|
|
46722
|
-
default:
|
|
46723
|
-
return "string";
|
|
46724
|
-
}
|
|
46725
|
-
}
|
|
46726
|
-
function jsonSchemaTypeToFieldType(raw) {
|
|
46727
|
-
if (Array.isArray(raw)) {
|
|
46728
|
-
for (const t13 of raw) {
|
|
46729
|
-
const mapped = jsonSchemaTypeToFieldType(t13);
|
|
46730
|
-
if (mapped)
|
|
46731
|
-
return mapped;
|
|
46732
|
-
}
|
|
46733
|
-
return;
|
|
46734
|
-
}
|
|
46735
|
-
if (typeof raw !== "string")
|
|
46736
|
-
return;
|
|
46737
|
-
switch (raw) {
|
|
46738
|
-
case "string":
|
|
46739
|
-
case "number":
|
|
46740
|
-
case "boolean":
|
|
46741
|
-
case "object":
|
|
46742
|
-
case "array":
|
|
46743
|
-
case "null":
|
|
46744
|
-
return raw;
|
|
46745
|
-
case "integer":
|
|
46746
|
-
return "number";
|
|
46747
|
-
default:
|
|
46748
|
-
return;
|
|
46749
|
-
}
|
|
46750
|
-
}
|
|
46751
|
-
function coerceInputsViaSchema(value, schema) {
|
|
46752
|
-
if (isExpressionValue(value))
|
|
46753
|
-
return value;
|
|
46754
|
-
if (Array.isArray(value)) {
|
|
46755
|
-
if (schema?.items) {
|
|
46756
|
-
for (let i = 0;i < value.length; i++) {
|
|
46757
|
-
value[i] = coerceInputsViaSchema(value[i], schema.items);
|
|
46758
|
-
}
|
|
46759
|
-
}
|
|
46760
|
-
return value;
|
|
46761
|
-
}
|
|
46762
|
-
if (value !== null && typeof value === "object") {
|
|
46763
|
-
if (schema?.properties) {
|
|
46764
|
-
const props = schema.properties;
|
|
46765
|
-
for (const [k, v] of Object.entries(value)) {
|
|
46766
|
-
value[k] = coerceInputsViaSchema(v, props[k]);
|
|
46767
|
-
}
|
|
46768
|
-
}
|
|
46769
|
-
return value;
|
|
46770
|
-
}
|
|
46771
|
-
if (typeof value === "string") {
|
|
46772
|
-
if (value.startsWith(JS_EXPRESSION_PREFIX)) {
|
|
46773
|
-
return coerceToExpressionValue(value, jsonSchemaTypeToFieldType(schema?.type));
|
|
46774
|
-
}
|
|
46775
|
-
if (hasMustacheInterpolation(value)) {
|
|
46776
|
-
return {
|
|
46777
|
-
type: "literal",
|
|
46778
|
-
expression: value,
|
|
46779
|
-
fieldType: jsonSchemaTypeToFieldType(schema?.type) ?? "string"
|
|
46780
|
-
};
|
|
46781
|
-
}
|
|
46782
|
-
}
|
|
46783
|
-
return value;
|
|
46784
|
-
}
|
|
46785
|
-
function hasMustacheInterpolation(s) {
|
|
46786
|
-
const stripped = s.replace(/\\\{/g, "").replace(/\\\}/g, "");
|
|
46787
|
-
return /\{\{[^{}]+\}\}/.test(stripped);
|
|
46788
|
-
}
|
|
46789
47012
|
var t2 = instance.getFixedT(null, VALIDATION_NAMESPACE);
|
|
46790
47013
|
function isExpression(value) {
|
|
46791
47014
|
if (isExpressionValue(value))
|
|
@@ -47916,10 +48139,10 @@ function normalizeFormTriggerSchema(schema) {
|
|
|
47916
48139
|
};
|
|
47917
48140
|
}
|
|
47918
48141
|
function getHitlFieldChannelKey(field) {
|
|
47919
|
-
if (field.label)
|
|
47920
|
-
return field.label;
|
|
47921
48142
|
if (field.id)
|
|
47922
48143
|
return field.id;
|
|
48144
|
+
if (field.label)
|
|
48145
|
+
return field.label;
|
|
47923
48146
|
return null;
|
|
47924
48147
|
}
|
|
47925
48148
|
function isHitlInputDirectionField(field) {
|
|
@@ -48394,6 +48617,7 @@ var HITL_CODED_ACTION_NODE_TYPE = "uipath.human-in-the-loop.coded-action-app";
|
|
|
48394
48617
|
var HITL_DOC_VALIDATION_NODE_TYPE = "uipath.human-in-the-loop.document-validation";
|
|
48395
48618
|
var DYNAMIC_EXTRACT_NODE_TYPE = "uipath.ixp.extract-document-builder";
|
|
48396
48619
|
var FORM_TRIGGER_NODE_TYPE = "core.trigger.form";
|
|
48620
|
+
var UI_ONLY_NODE_TYPES = /* @__PURE__ */ new Set(["stickyNote"]);
|
|
48397
48621
|
var HITL_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
48398
48622
|
HITL_QUICK_FORM_NODE_TYPE,
|
|
48399
48623
|
HITL_CODED_ACTION_NODE_TYPE,
|
|
@@ -48474,6 +48698,15 @@ function collectStrings(value, out) {
|
|
|
48474
48698
|
collectStrings(v, out);
|
|
48475
48699
|
}
|
|
48476
48700
|
}
|
|
48701
|
+
function collectObjectBindingStrings(value, out) {
|
|
48702
|
+
const { argumentPath } = value;
|
|
48703
|
+
if (typeof argumentPath === "string" && argumentPath)
|
|
48704
|
+
out.push(argumentPath);
|
|
48705
|
+
for (const [key, v] of Object.entries(value)) {
|
|
48706
|
+
if (key !== "argumentPath")
|
|
48707
|
+
collectBindingStrings(v, out);
|
|
48708
|
+
}
|
|
48709
|
+
}
|
|
48477
48710
|
function collectBindingStrings(value, out) {
|
|
48478
48711
|
if (value == null)
|
|
48479
48712
|
return;
|
|
@@ -48486,8 +48719,7 @@ function collectBindingStrings(value, out) {
|
|
|
48486
48719
|
for (const v of value)
|
|
48487
48720
|
collectBindingStrings(v, out);
|
|
48488
48721
|
} else if (typeof value === "object") {
|
|
48489
|
-
|
|
48490
|
-
collectBindingStrings(v, out);
|
|
48722
|
+
collectObjectBindingStrings(value, out);
|
|
48491
48723
|
}
|
|
48492
48724
|
}
|
|
48493
48725
|
var agentEmptyVarRule = {
|
|
@@ -48554,154 +48786,399 @@ function emitEmptyVarWarnings(agent, strings, orphanIds) {
|
|
|
48554
48786
|
}
|
|
48555
48787
|
return errors5;
|
|
48556
48788
|
}
|
|
48557
|
-
var
|
|
48558
|
-
|
|
48559
|
-
|
|
48560
|
-
|
|
48561
|
-
|
|
48562
|
-
|
|
48563
|
-
|
|
48789
|
+
var JobAttachmentSchema = {
|
|
48790
|
+
type: "object",
|
|
48791
|
+
"x-uipath-resource-kind": "JobAttachment",
|
|
48792
|
+
properties: {
|
|
48793
|
+
ID: {
|
|
48794
|
+
type: "string",
|
|
48795
|
+
description: "Orchestrator attachment key"
|
|
48796
|
+
},
|
|
48797
|
+
FullName: {
|
|
48798
|
+
type: "string",
|
|
48799
|
+
description: "File name"
|
|
48800
|
+
},
|
|
48801
|
+
MimeType: {
|
|
48802
|
+
type: "string",
|
|
48803
|
+
description: 'The MIME type of the content, such as "application/json" or "image/png"'
|
|
48804
|
+
},
|
|
48805
|
+
Metadata: {
|
|
48806
|
+
type: "object",
|
|
48807
|
+
description: "Dictionary of metadata",
|
|
48808
|
+
additionalProperties: {
|
|
48809
|
+
type: "string"
|
|
48810
|
+
}
|
|
48564
48811
|
}
|
|
48565
|
-
|
|
48566
|
-
|
|
48812
|
+
},
|
|
48813
|
+
required: ["ID"]
|
|
48814
|
+
};
|
|
48815
|
+
var ANALYZE_FILES_SCHEMA = {
|
|
48816
|
+
inputSchema: {
|
|
48817
|
+
type: "object",
|
|
48818
|
+
properties: {
|
|
48819
|
+
attachments: {
|
|
48820
|
+
type: "array",
|
|
48821
|
+
items: JobAttachmentSchema,
|
|
48822
|
+
description: "Array of files, documents, images, or other attachments to process"
|
|
48823
|
+
},
|
|
48824
|
+
analysisTask: {
|
|
48825
|
+
type: "string",
|
|
48826
|
+
description: "The task, question, or instruction for processing the files (e.g., 'summarize this document', 'extract key points', 'what is in this image')"
|
|
48827
|
+
}
|
|
48828
|
+
},
|
|
48829
|
+
required: ["attachments", "analysisTask"]
|
|
48830
|
+
},
|
|
48831
|
+
outputSchema: {
|
|
48832
|
+
type: "object",
|
|
48833
|
+
properties: {
|
|
48834
|
+
analysis: {
|
|
48835
|
+
type: "string",
|
|
48836
|
+
description: "Analysis result of the attachments (analysis, summary, extracted information, etc.)"
|
|
48837
|
+
}
|
|
48838
|
+
},
|
|
48839
|
+
required: ["analysis"]
|
|
48840
|
+
}
|
|
48841
|
+
};
|
|
48842
|
+
var SUMMARIZE_SCHEMA = {
|
|
48843
|
+
inputSchema: {
|
|
48844
|
+
type: "object",
|
|
48845
|
+
properties: {
|
|
48846
|
+
attachment: {
|
|
48847
|
+
type: "object",
|
|
48848
|
+
title: "Source",
|
|
48849
|
+
description: "File or document to summarize",
|
|
48850
|
+
properties: JobAttachmentSchema.properties,
|
|
48851
|
+
required: JobAttachmentSchema.required
|
|
48852
|
+
}
|
|
48853
|
+
},
|
|
48854
|
+
required: ["attachment"]
|
|
48855
|
+
},
|
|
48856
|
+
outputSchema: {
|
|
48857
|
+
type: "array",
|
|
48858
|
+
items: {
|
|
48859
|
+
type: "object",
|
|
48860
|
+
properties: {
|
|
48861
|
+
content: {
|
|
48862
|
+
type: "string",
|
|
48863
|
+
description: "The content of the analyzed attachment"
|
|
48864
|
+
}
|
|
48865
|
+
}
|
|
48567
48866
|
}
|
|
48568
|
-
|
|
48569
|
-
|
|
48570
|
-
|
|
48571
|
-
|
|
48572
|
-
|
|
48573
|
-
|
|
48574
|
-
|
|
48575
|
-
|
|
48576
|
-
|
|
48577
|
-
|
|
48578
|
-
|
|
48579
|
-
|
|
48580
|
-
|
|
48867
|
+
}
|
|
48868
|
+
};
|
|
48869
|
+
var BATCH_TRANSFORM_SCHEMA = {
|
|
48870
|
+
inputSchema: {
|
|
48871
|
+
type: "object",
|
|
48872
|
+
properties: {
|
|
48873
|
+
attachment: {
|
|
48874
|
+
type: "object",
|
|
48875
|
+
title: "Source",
|
|
48876
|
+
description: "CSV file to transform",
|
|
48877
|
+
properties: JobAttachmentSchema.properties,
|
|
48878
|
+
required: JobAttachmentSchema.required
|
|
48879
|
+
}
|
|
48880
|
+
},
|
|
48881
|
+
required: ["attachment"]
|
|
48882
|
+
},
|
|
48883
|
+
outputSchema: {
|
|
48884
|
+
type: "array",
|
|
48885
|
+
items: {
|
|
48886
|
+
type: "object",
|
|
48887
|
+
properties: {
|
|
48888
|
+
content: {
|
|
48889
|
+
type: "string",
|
|
48890
|
+
description: "The content of the transformed row"
|
|
48891
|
+
}
|
|
48581
48892
|
}
|
|
48582
48893
|
}
|
|
48583
|
-
|
|
48584
|
-
|
|
48585
|
-
|
|
48586
|
-
|
|
48894
|
+
}
|
|
48895
|
+
};
|
|
48896
|
+
var nameValuePairSchema = (nameDescription, valueDescription) => ({
|
|
48897
|
+
type: "object",
|
|
48898
|
+
properties: {
|
|
48899
|
+
name: {
|
|
48900
|
+
type: "string",
|
|
48901
|
+
description: nameDescription
|
|
48902
|
+
},
|
|
48903
|
+
value: {
|
|
48904
|
+
type: "string",
|
|
48905
|
+
description: valueDescription
|
|
48906
|
+
}
|
|
48907
|
+
},
|
|
48908
|
+
required: ["name", "value"]
|
|
48909
|
+
});
|
|
48910
|
+
var HTTP_REQUEST_SCHEMA = {
|
|
48911
|
+
inputSchema: {
|
|
48912
|
+
type: "object",
|
|
48913
|
+
properties: {
|
|
48914
|
+
url: {
|
|
48915
|
+
type: "string",
|
|
48916
|
+
description: "The absolute URL to send the request to."
|
|
48917
|
+
},
|
|
48918
|
+
method: {
|
|
48919
|
+
type: "string",
|
|
48920
|
+
description: "HTTP method to use, one of: GET, POST, PUT, PATCH, DELETE."
|
|
48921
|
+
},
|
|
48922
|
+
headers: {
|
|
48923
|
+
type: "array",
|
|
48924
|
+
description: "Request headers as a list of name/value pairs.",
|
|
48925
|
+
items: nameValuePairSchema("Header name.", "Header value.")
|
|
48926
|
+
},
|
|
48927
|
+
params: {
|
|
48928
|
+
type: "array",
|
|
48929
|
+
description: "Query-string parameters as a list of name/value pairs.",
|
|
48930
|
+
items: nameValuePairSchema("Parameter name.", "Parameter value.")
|
|
48931
|
+
},
|
|
48932
|
+
body: {
|
|
48933
|
+
type: "string",
|
|
48934
|
+
description: "Request body sent as-is. Provide JSON as a string and set a Content-Type header if the endpoint expects JSON."
|
|
48935
|
+
},
|
|
48936
|
+
timeout: {
|
|
48937
|
+
type: "number",
|
|
48938
|
+
description: "Request timeout in seconds."
|
|
48587
48939
|
}
|
|
48588
|
-
|
|
48940
|
+
},
|
|
48941
|
+
required: ["url"]
|
|
48942
|
+
},
|
|
48943
|
+
outputSchema: {
|
|
48944
|
+
type: "object",
|
|
48945
|
+
properties: {}
|
|
48946
|
+
}
|
|
48947
|
+
};
|
|
48948
|
+
var BUILT_IN_TOOL_SCHEMAS = {
|
|
48949
|
+
"uipath.agent.resource.tool.builtin.analyzefiles": ANALYZE_FILES_SCHEMA,
|
|
48950
|
+
"uipath.agent.resource.tool.builtin.summarize": SUMMARIZE_SCHEMA,
|
|
48951
|
+
"uipath.agent.resource.tool.builtin.batchtransform": BATCH_TRANSFORM_SCHEMA,
|
|
48952
|
+
"uipath.agent.resource.tool.builtin.httprequest": HTTP_REQUEST_SCHEMA
|
|
48953
|
+
};
|
|
48954
|
+
function getToolFields(schema, filterType = "any") {
|
|
48955
|
+
const fields = [];
|
|
48956
|
+
const isTypeCompatible = (type) => {
|
|
48957
|
+
if (filterType === "any")
|
|
48958
|
+
return true;
|
|
48959
|
+
if (!type)
|
|
48960
|
+
return false;
|
|
48961
|
+
if (filterType === "number")
|
|
48962
|
+
return type === "number" || type === "integer";
|
|
48963
|
+
return type === filterType;
|
|
48964
|
+
};
|
|
48965
|
+
const collectPaths = (obj, source, path = "") => {
|
|
48966
|
+
if (!obj || typeof obj !== "object")
|
|
48967
|
+
return;
|
|
48968
|
+
if (obj.type === "object" && obj.properties) {
|
|
48969
|
+
for (const [propName, propSchema] of Object.entries(obj.properties)) {
|
|
48970
|
+
const propPath = path ? `${path}.${propName}` : propName;
|
|
48971
|
+
collectPaths(propSchema, source, propPath);
|
|
48972
|
+
}
|
|
48973
|
+
return;
|
|
48974
|
+
}
|
|
48975
|
+
if (obj.type === "array" && obj.items) {
|
|
48976
|
+
const items = obj.items;
|
|
48977
|
+
const arrayPath = path ? `${path}[*]` : "[*]";
|
|
48978
|
+
if (items.type === "object" && items.properties) {
|
|
48979
|
+
for (const [propName, propSchema] of Object.entries(items.properties)) {
|
|
48980
|
+
const itemPath = `${arrayPath}.${propName}`;
|
|
48981
|
+
collectPaths(propSchema, source, itemPath);
|
|
48982
|
+
}
|
|
48983
|
+
} else if (items.type && isTypeCompatible(items.type)) {
|
|
48984
|
+
fields.push({
|
|
48985
|
+
path: arrayPath,
|
|
48986
|
+
source,
|
|
48987
|
+
title: obj.title || obj.description,
|
|
48988
|
+
type: items.type
|
|
48989
|
+
});
|
|
48990
|
+
}
|
|
48991
|
+
return;
|
|
48589
48992
|
}
|
|
48590
|
-
|
|
48591
|
-
|
|
48592
|
-
|
|
48593
|
-
|
|
48993
|
+
if (obj.type && isTypeCompatible(obj.type)) {
|
|
48994
|
+
fields.push({
|
|
48995
|
+
path,
|
|
48996
|
+
source,
|
|
48997
|
+
title: obj.title || obj.description,
|
|
48998
|
+
type: obj.type
|
|
48999
|
+
});
|
|
49000
|
+
}
|
|
49001
|
+
};
|
|
49002
|
+
if (schema.inputSchema) {
|
|
49003
|
+
if (schema.inputSchema.type === "object" && schema.inputSchema.properties) {
|
|
49004
|
+
for (const [propName, propSchema] of Object.entries(schema.inputSchema.properties)) {
|
|
49005
|
+
collectPaths(propSchema, "input", propName);
|
|
48594
49006
|
}
|
|
48595
|
-
return { valid: true };
|
|
48596
49007
|
}
|
|
48597
|
-
cursor = next;
|
|
48598
|
-
}
|
|
48599
|
-
return { valid: true };
|
|
48600
|
-
}
|
|
48601
|
-
function* iterateJsExpressionBodies(value, pathPrefix) {
|
|
48602
|
-
const body = getJsExpressionBody(value);
|
|
48603
|
-
if (body !== undefined) {
|
|
48604
|
-
yield { body, path: pathPrefix };
|
|
48605
|
-
return;
|
|
48606
49008
|
}
|
|
48607
|
-
if (
|
|
48608
|
-
|
|
48609
|
-
|
|
48610
|
-
|
|
48611
|
-
|
|
49009
|
+
if (schema.outputSchema) {
|
|
49010
|
+
if (schema.outputSchema.type === "object" && schema.outputSchema.properties) {
|
|
49011
|
+
for (const [propName, propSchema] of Object.entries(schema.outputSchema.properties)) {
|
|
49012
|
+
collectPaths(propSchema, "output", propName);
|
|
49013
|
+
}
|
|
49014
|
+
} else if (schema.outputSchema.type === "array" && schema.outputSchema.items) {
|
|
49015
|
+
const items = schema.outputSchema.items;
|
|
49016
|
+
if (items.type === "object" && items.properties) {
|
|
49017
|
+
for (const [propName, propSchema] of Object.entries(items.properties)) {
|
|
49018
|
+
collectPaths(propSchema, "output", `[*].${propName}`);
|
|
49019
|
+
}
|
|
49020
|
+
}
|
|
48612
49021
|
}
|
|
49022
|
+
}
|
|
49023
|
+
return fields;
|
|
49024
|
+
}
|
|
49025
|
+
function getBuiltInToolSchema(nodeType2) {
|
|
49026
|
+
return BUILT_IN_TOOL_SCHEMAS[nodeType2];
|
|
49027
|
+
}
|
|
49028
|
+
var FILE_SCHEMA_FIELDS = Object.keys(JobAttachmentSchema.properties ?? {});
|
|
49029
|
+
function isFileTypeString(type) {
|
|
49030
|
+
return type === "file" || type === "octet-stream";
|
|
49031
|
+
}
|
|
49032
|
+
function isFileShapedSchema(schema) {
|
|
49033
|
+
const properties = schema?.properties;
|
|
49034
|
+
if (!properties)
|
|
49035
|
+
return false;
|
|
49036
|
+
const keys = Object.keys(properties);
|
|
49037
|
+
return keys.length === FILE_SCHEMA_FIELDS.length && FILE_SCHEMA_FIELDS.every((field) => keys.includes(field));
|
|
49038
|
+
}
|
|
49039
|
+
function isFileSchemaNode(schema) {
|
|
49040
|
+
if (!schema || typeof schema !== "object")
|
|
49041
|
+
return false;
|
|
49042
|
+
return isFileTypeString(schema.type) || isFileShapedSchema(schema);
|
|
49043
|
+
}
|
|
49044
|
+
function isFileTypedVariable(variable) {
|
|
49045
|
+
if (!variable)
|
|
49046
|
+
return false;
|
|
49047
|
+
if (isFileTypeString(variable.type))
|
|
49048
|
+
return true;
|
|
49049
|
+
if (variable.type === "array" && isFileTypeString(variable.subType))
|
|
49050
|
+
return true;
|
|
49051
|
+
const schema = variable.schema;
|
|
49052
|
+
return isFileShapedSchema(schema) || isFileSchemaNode(schema?.items);
|
|
49053
|
+
}
|
|
49054
|
+
function isFileShapedInputNode(node) {
|
|
49055
|
+
if (!node || typeof node !== "object")
|
|
49056
|
+
return false;
|
|
49057
|
+
const n = node;
|
|
49058
|
+
if (n["x-uipath-resource-kind"] === "JobAttachment")
|
|
49059
|
+
return true;
|
|
49060
|
+
if (typeof n.$ref === "string" && n.$ref.toLowerCase().includes("job-attachment"))
|
|
49061
|
+
return true;
|
|
49062
|
+
if (n.type === "file" || n.type === "octet-stream")
|
|
49063
|
+
return true;
|
|
49064
|
+
if (n.properties && FILE_SCHEMA_FIELDS.every((field) => (field in n.properties)))
|
|
49065
|
+
return true;
|
|
49066
|
+
return isFileShapedInputNode(n.items);
|
|
49067
|
+
}
|
|
49068
|
+
function schemaAcceptsFileInput(inputSchema) {
|
|
49069
|
+
const properties = inputSchema?.properties;
|
|
49070
|
+
if (!properties)
|
|
49071
|
+
return false;
|
|
49072
|
+
return Object.values(properties).some(isFileShapedInputNode);
|
|
49073
|
+
}
|
|
49074
|
+
var FILE_CAPABLE_BUILTIN_TOOL_TYPES = new Set(Object.entries(BUILT_IN_TOOL_SCHEMAS).filter(([, schemas5]) => schemaAcceptsFileInput(schemas5.inputSchema)).map(([nodeType2]) => nodeType2));
|
|
49075
|
+
function getNodeType5(node) {
|
|
49076
|
+
return node.data?.type ?? node.type ?? "";
|
|
49077
|
+
}
|
|
49078
|
+
function getInputs(node) {
|
|
49079
|
+
return node.data?.inputs;
|
|
49080
|
+
}
|
|
49081
|
+
function collectStrings2(value, out) {
|
|
49082
|
+
if (typeof value === "string") {
|
|
49083
|
+
out.push(value);
|
|
49084
|
+
} else if (Array.isArray(value)) {
|
|
49085
|
+
for (const v of value)
|
|
49086
|
+
collectStrings2(v, out);
|
|
48613
49087
|
} else if (value && typeof value === "object") {
|
|
48614
|
-
for (const
|
|
48615
|
-
|
|
49088
|
+
for (const v of Object.values(value))
|
|
49089
|
+
collectStrings2(v, out);
|
|
49090
|
+
}
|
|
49091
|
+
}
|
|
49092
|
+
function extractVarsPaths(text) {
|
|
49093
|
+
const paths = [];
|
|
49094
|
+
const re = /\$vars\.([A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*)(?![\w$.[])/g;
|
|
49095
|
+
let match;
|
|
49096
|
+
while ((match = re.exec(text)) !== null)
|
|
49097
|
+
paths.push(match[1]);
|
|
49098
|
+
return paths;
|
|
49099
|
+
}
|
|
49100
|
+
function agentHasFileCapableTool(agent, nodes, edges, toolAcceptsFileFromManifest) {
|
|
49101
|
+
const neighbourIds = collectNeighbourIds(agent.id, edges);
|
|
49102
|
+
if (neighbourIds.size === 0)
|
|
49103
|
+
return false;
|
|
49104
|
+
return nodes.some((node) => {
|
|
49105
|
+
if (!neighbourIds.has(node.id))
|
|
49106
|
+
return false;
|
|
49107
|
+
const nodeType2 = getNodeType5(node);
|
|
49108
|
+
if (!isAgentResourceNodeType(nodeType2))
|
|
49109
|
+
return false;
|
|
49110
|
+
return FILE_CAPABLE_BUILTIN_TOOL_TYPES.has(nodeType2) || (toolAcceptsFileFromManifest?.(node) ?? false);
|
|
49111
|
+
});
|
|
49112
|
+
}
|
|
49113
|
+
function collectNeighbourIds(nodeId, edges) {
|
|
49114
|
+
const neighbourIds = /* @__PURE__ */ new Set;
|
|
49115
|
+
for (const e of edges) {
|
|
49116
|
+
if (e.source === nodeId && e.target)
|
|
49117
|
+
neighbourIds.add(e.target);
|
|
49118
|
+
else if (e.target === nodeId && e.source)
|
|
49119
|
+
neighbourIds.add(e.source);
|
|
49120
|
+
}
|
|
49121
|
+
return neighbourIds;
|
|
49122
|
+
}
|
|
49123
|
+
function findUnhandledFilePromptVarPaths(agent, nodes, edges, resolveVariable, toolAcceptsFileFromManifest) {
|
|
49124
|
+
const inputs = getInputs(agent);
|
|
49125
|
+
const promptStrings = [];
|
|
49126
|
+
collectStrings2(inputs?.systemPrompt, promptStrings);
|
|
49127
|
+
collectStrings2(inputs?.userPrompt, promptStrings);
|
|
49128
|
+
const filePaths = /* @__PURE__ */ new Set;
|
|
49129
|
+
for (const text of promptStrings) {
|
|
49130
|
+
for (const path of extractVarsPaths(text)) {
|
|
49131
|
+
if (!filePaths.has(path) && isFileTypedVariable(resolveVariable(path)))
|
|
49132
|
+
filePaths.add(path);
|
|
48616
49133
|
}
|
|
48617
49134
|
}
|
|
49135
|
+
if (filePaths.size === 0)
|
|
49136
|
+
return [];
|
|
49137
|
+
if (agentHasFileCapableTool(agent, nodes, edges, toolAcceptsFileFromManifest))
|
|
49138
|
+
return [];
|
|
49139
|
+
return [...filePaths];
|
|
49140
|
+
}
|
|
49141
|
+
function getNodeType6(node) {
|
|
49142
|
+
return node.data?.type ?? node.type ?? "";
|
|
49143
|
+
}
|
|
49144
|
+
function indexVariablesByPath(variables) {
|
|
49145
|
+
const byPath = /* @__PURE__ */ new Map;
|
|
49146
|
+
for (const g of variables.globals ?? []) {
|
|
49147
|
+
byPath.set(g.triggerNodeId ? `${g.triggerNodeId}.output.${g.id}` : g.id, g);
|
|
49148
|
+
}
|
|
49149
|
+
for (const output of variables.nodeOutputs ?? []) {
|
|
49150
|
+
byPath.set(output.path, output);
|
|
49151
|
+
}
|
|
49152
|
+
return byPath;
|
|
48618
49153
|
}
|
|
48619
|
-
var
|
|
48620
|
-
id: "
|
|
48621
|
-
severity: "
|
|
49154
|
+
var agentFileNotAnalyzedRule = {
|
|
49155
|
+
id: "agent-file-not-analyzed",
|
|
49156
|
+
severity: "warning",
|
|
48622
49157
|
validate(ctx) {
|
|
49158
|
+
if (!ctx.workflowVariables)
|
|
49159
|
+
return [];
|
|
49160
|
+
const variablesByPath = indexVariablesByPath(ctx.workflowVariables);
|
|
49161
|
+
if (variablesByPath.size === 0)
|
|
49162
|
+
return [];
|
|
49163
|
+
const resolveVariable = (path) => variablesByPath.get(path);
|
|
49164
|
+
const toolAcceptsFileFromManifest = (toolNode) => {
|
|
49165
|
+
const type = toolNode.data?.type ?? toolNode.type;
|
|
49166
|
+
if (!type)
|
|
49167
|
+
return false;
|
|
49168
|
+
const version26 = toolNode.data?.typeVersion ?? "1.0.0";
|
|
49169
|
+
const manifest = ctx.manifests.get(`${type}:${version26}`);
|
|
49170
|
+
return manifest ? schemaAcceptsFileInput(manifest.inputDefinition) : false;
|
|
49171
|
+
};
|
|
48623
49172
|
const errors5 = [];
|
|
48624
|
-
const
|
|
48625
|
-
|
|
48626
|
-
|
|
48627
|
-
|
|
48628
|
-
|
|
48629
|
-
|
|
48630
|
-
|
|
48631
|
-
|
|
48632
|
-
|
|
48633
|
-
}
|
|
48634
|
-
const hasWorkflowVarsContext = ctx.workflowVariableIds !== undefined;
|
|
48635
|
-
if (knownRoots.size === 0)
|
|
48636
|
-
return errors5;
|
|
48637
|
-
for (const node of ctx.nodes) {
|
|
48638
|
-
const inputs = node.data?.inputs;
|
|
48639
|
-
if (inputs == null || typeof inputs !== "object")
|
|
48640
|
-
continue;
|
|
48641
|
-
const nodeLabel = getNodeLabel(node, getManifestForNode(node, ctx.manifests));
|
|
48642
|
-
for (const { body, path: fieldPath } of iterateJsExpressionBodies(inputs, "inputs")) {
|
|
48643
|
-
VARS_REF_REGEX2.lastIndex = 0;
|
|
48644
|
-
const seenInThisExpr = /* @__PURE__ */ new Set;
|
|
48645
|
-
let match;
|
|
48646
|
-
while ((match = VARS_REF_REGEX2.exec(body)) !== null) {
|
|
48647
|
-
const fullRef = match[1];
|
|
48648
|
-
if (seenInThisExpr.has(fullRef))
|
|
48649
|
-
continue;
|
|
48650
|
-
seenInThisExpr.add(fullRef);
|
|
48651
|
-
const segments = fullRef.split(".");
|
|
48652
|
-
const rootSegment = segments[0];
|
|
48653
|
-
if (!knownRoots.has(rootSegment)) {
|
|
48654
|
-
if (!hasWorkflowVarsContext)
|
|
48655
|
-
continue;
|
|
48656
|
-
errors5.push({
|
|
48657
|
-
code: "EXPR_UNRESOLVED_REF",
|
|
48658
|
-
message: `Expression in "${nodeLabel}" references "$vars.${rootSegment}" but no workflow variable or node "${rootSegment}" exists. Add the variable/node to the flow or remove the reference.`,
|
|
48659
|
-
severity: "error",
|
|
48660
|
-
nodeId: node.id,
|
|
48661
|
-
fieldPath,
|
|
48662
|
-
layer: "field"
|
|
48663
|
-
});
|
|
48664
|
-
continue;
|
|
48665
|
-
}
|
|
48666
|
-
if (!nodeIds.has(rootSegment) || segments.length < 2)
|
|
48667
|
-
continue;
|
|
48668
|
-
const producerNode = nodesById.get(rootSegment);
|
|
48669
|
-
if (!producerNode)
|
|
48670
|
-
continue;
|
|
48671
|
-
const producerManifest = getManifestForNode(producerNode, ctx.manifests);
|
|
48672
|
-
const outputDef = producerManifest?.outputDefinition;
|
|
48673
|
-
if (!outputDef || typeof outputDef !== "object")
|
|
48674
|
-
continue;
|
|
48675
|
-
const outputVarName = segments[1];
|
|
48676
|
-
const outputSchema = outputDef[outputVarName];
|
|
48677
|
-
if (outputSchema === undefined) {
|
|
48678
|
-
const available = Object.keys(outputDef);
|
|
48679
|
-
errors5.push({
|
|
48680
|
-
code: "EXPR_INVALID_OUTPUT_PATH",
|
|
48681
|
-
message: `Expression in "${nodeLabel}" references "$vars.${fullRef}" but node "${rootSegment}" has no output named "${outputVarName}". Available outputs: ${available.length > 0 ? available.join(", ") : "(none)"}.`,
|
|
48682
|
-
severity: "error",
|
|
48683
|
-
nodeId: node.id,
|
|
48684
|
-
fieldPath,
|
|
48685
|
-
layer: "field"
|
|
48686
|
-
});
|
|
48687
|
-
continue;
|
|
48688
|
-
}
|
|
48689
|
-
if (segments.length < 3)
|
|
48690
|
-
continue;
|
|
48691
|
-
const deepPath = segments.slice(2);
|
|
48692
|
-
const result = pathExistsOnOutputSchema(outputSchema, deepPath);
|
|
48693
|
-
if (!result.valid) {
|
|
48694
|
-
const matchedSoFar = [outputVarName, ...deepPath.slice(0, result.matchedDepth ?? 0)].join(".");
|
|
48695
|
-
errors5.push({
|
|
48696
|
-
code: "EXPR_INVALID_OUTPUT_PATH",
|
|
48697
|
-
message: `Expression in "${nodeLabel}" references "$vars.${fullRef}" but field "${result.missingSegment}" is not declared on node "${rootSegment}"'s output schema (matched up to "${matchedSoFar}").`,
|
|
48698
|
-
severity: "error",
|
|
48699
|
-
nodeId: node.id,
|
|
48700
|
-
fieldPath,
|
|
48701
|
-
layer: "field"
|
|
48702
|
-
});
|
|
48703
|
-
}
|
|
48704
|
-
}
|
|
49173
|
+
for (const agent of ctx.nodes.filter((n) => isAutonomousAgentNodeType(getNodeType6(n)))) {
|
|
49174
|
+
for (const path of findUnhandledFilePromptVarPaths(agent, ctx.nodes, ctx.edges, resolveVariable, toolAcceptsFileFromManifest)) {
|
|
49175
|
+
errors5.push({
|
|
49176
|
+
code: "AGENT_FILE_NOT_ANALYZED",
|
|
49177
|
+
...localized("agentFileNotAnalyzed_unconsumedFileVar_message", { path }, 'Agent uses the file variable "$vars.{{path}}" in its prompt, but it has no tool that can read files, so the agent gets only the file reference and not its contents. Add a file-reading tool such as Analyze Files.'),
|
|
49178
|
+
severity: "warning",
|
|
49179
|
+
nodeId: agent.id,
|
|
49180
|
+
layer: "field"
|
|
49181
|
+
});
|
|
48705
49182
|
}
|
|
48706
49183
|
}
|
|
48707
49184
|
return errors5;
|
|
@@ -48719,19 +49196,29 @@ var conversationalRequiredFieldsRule = {
|
|
|
48719
49196
|
if (isVoiceAgentNodeType(node.type))
|
|
48720
49197
|
continue;
|
|
48721
49198
|
const settings = inputs.conversationalAgentSettings ?? {};
|
|
48722
|
-
const isEmpty = readStringField(settings.conversationId).trim() === "";
|
|
48723
|
-
if (!isEmpty)
|
|
48724
|
-
continue;
|
|
48725
49199
|
const manifest = getManifestForNode(node, ctx.manifests);
|
|
48726
49200
|
const label = getNodeLabel(node, manifest);
|
|
48727
|
-
|
|
48728
|
-
|
|
48729
|
-
|
|
48730
|
-
|
|
48731
|
-
|
|
48732
|
-
|
|
48733
|
-
|
|
48734
|
-
|
|
49201
|
+
if (settings.mode !== "custom" && readStringField(settings.context).trim() === "") {
|
|
49202
|
+
errors5.push({
|
|
49203
|
+
code: "CONVERSATIONAL_CONTEXT_REQUIRED",
|
|
49204
|
+
...localized("conversationalRequired_contextRequired_message", { label }, "{{label}}: Conversation context is required"),
|
|
49205
|
+
severity: "error",
|
|
49206
|
+
nodeId: node.id,
|
|
49207
|
+
fieldPath: "inputs.conversationalAgentSettings.context",
|
|
49208
|
+
layer: "node"
|
|
49209
|
+
});
|
|
49210
|
+
continue;
|
|
49211
|
+
}
|
|
49212
|
+
if (readStringField(settings.conversationId).trim() === "") {
|
|
49213
|
+
errors5.push({
|
|
49214
|
+
code: "CONVERSATIONAL_CONVERSATION_ID_REQUIRED",
|
|
49215
|
+
...localized("conversationalRequired_conversationIdRequired_message", { label }, "{{label}}: Conversation ID is required"),
|
|
49216
|
+
severity: "error",
|
|
49217
|
+
nodeId: node.id,
|
|
49218
|
+
fieldPath: "inputs.conversationalAgentSettings.conversationId",
|
|
49219
|
+
layer: "node"
|
|
49220
|
+
});
|
|
49221
|
+
}
|
|
48735
49222
|
}
|
|
48736
49223
|
return errors5;
|
|
48737
49224
|
}
|
|
@@ -49045,14 +49532,220 @@ var scriptMustacheRule = {
|
|
|
49045
49532
|
return errors5;
|
|
49046
49533
|
}
|
|
49047
49534
|
};
|
|
49048
|
-
|
|
49535
|
+
var MAX_PATH_SEGMENTS = 3;
|
|
49536
|
+
var RELATED_PRIMARY_KEY = "Id";
|
|
49537
|
+
function relatedPathsIn(config3) {
|
|
49538
|
+
const seen = /* @__PURE__ */ new Set;
|
|
49539
|
+
const rows = readEntityFilterRows(config3._filters);
|
|
49540
|
+
const candidates = [...rows.map((f) => f.field), config3._sort?.field, ...config3._selectedFieldNames ?? []];
|
|
49541
|
+
for (const candidate of candidates) {
|
|
49542
|
+
if (typeof candidate === "string" && candidate.includes("."))
|
|
49543
|
+
seen.add(candidate);
|
|
49544
|
+
}
|
|
49545
|
+
return [...seen];
|
|
49546
|
+
}
|
|
49547
|
+
function relatedColumnMapIn(config3) {
|
|
49548
|
+
const raw = config3._relatedFields;
|
|
49549
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw))
|
|
49550
|
+
return;
|
|
49551
|
+
const map3 = {};
|
|
49552
|
+
for (const [entity, columns] of Object.entries(raw)) {
|
|
49553
|
+
if (!Array.isArray(columns))
|
|
49554
|
+
continue;
|
|
49555
|
+
map3[entity] = columns.filter((c) => typeof c?.name === "string");
|
|
49556
|
+
}
|
|
49557
|
+
return map3;
|
|
49558
|
+
}
|
|
49559
|
+
function validateRelatedPaths(fields, relatedPaths, relatedFields) {
|
|
49560
|
+
for (const path of relatedPaths) {
|
|
49561
|
+
const segments = path.split(".");
|
|
49562
|
+
if (segments.length > MAX_PATH_SEGMENTS)
|
|
49563
|
+
return { problem: "unsupportedPathDepth", problemDetail: { path } };
|
|
49564
|
+
if (segments.length < 2 || segments.some((segment) => segment === "")) {
|
|
49565
|
+
return { problem: "unresolvedRelatedField", problemDetail: { path } };
|
|
49566
|
+
}
|
|
49567
|
+
if (QES_UNSAFE_CHAR.test(path))
|
|
49568
|
+
return { problem: "uncarryablePath", problemDetail: { path } };
|
|
49569
|
+
const relation = fields.find((f) => f.name === segments[0])?.referenceEntityName;
|
|
49570
|
+
if (typeof relation !== "string" || relation === "") {
|
|
49571
|
+
return { problem: "unresolvedRelatedField", problemDetail: { path } };
|
|
49572
|
+
}
|
|
49573
|
+
const columns = relatedFields?.[relation];
|
|
49574
|
+
if (columns?.length && !columns.some((column) => column.name === segments[1])) {
|
|
49575
|
+
return { problem: "unresolvedRelatedField", problemDetail: { path } };
|
|
49576
|
+
}
|
|
49577
|
+
if (segments.length === 3 && segments[2] !== RELATED_PRIMARY_KEY) {
|
|
49578
|
+
return { problem: "unsupportedPathDepth", problemDetail: { path } };
|
|
49579
|
+
}
|
|
49580
|
+
}
|
|
49581
|
+
return {};
|
|
49582
|
+
}
|
|
49583
|
+
var READ_ENTITY = "core.datafabric.read";
|
|
49584
|
+
var CREATE_ENTITY = "core.datafabric.create";
|
|
49585
|
+
var UPDATE_ENTITY = "core.datafabric.update";
|
|
49586
|
+
var RECORD_TARGET_NODES = /* @__PURE__ */ new Set([UPDATE_ENTITY, "core.datafabric.delete"]);
|
|
49587
|
+
var PROBLEM_CODES = {
|
|
49588
|
+
uncarryable: "ENTITY_QUERY_EXPRESSION_UNCARRYABLE",
|
|
49589
|
+
cleared: "ENTITY_QUERY_FILTER_EXPRESSION_EMPTY",
|
|
49590
|
+
emptyList: "ENTITY_QUERY_FILTER_VALUE_LIST_EMPTY",
|
|
49591
|
+
unresolvedRelation: "ENTITY_QUERY_UNRESOLVED_RELATION",
|
|
49592
|
+
uncarryableRelationPath: "ENTITY_QUERY_UNCARRYABLE_RELATION_PATH",
|
|
49593
|
+
unfilteredSingle: "ENTITY_QUERY_SINGLE_RECORD_UNFILTERED",
|
|
49594
|
+
incompleteSingleRow: "ENTITY_QUERY_SINGLE_RECORD_ROW_INCOMPLETE",
|
|
49595
|
+
requiredMissing: "ENTITY_WRITE_REQUIRED_FIELD_MISSING",
|
|
49596
|
+
requiredBlanked: "ENTITY_WRITE_REQUIRED_FIELD_BLANKED"
|
|
49597
|
+
};
|
|
49598
|
+
function writeRows(value) {
|
|
49599
|
+
return Array.isArray(value) ? value.filter((row) => !!row && typeof row === "object") : [];
|
|
49600
|
+
}
|
|
49601
|
+
function rowField(row) {
|
|
49602
|
+
return typeof row.field === "string" ? row.field.trim() : "";
|
|
49603
|
+
}
|
|
49604
|
+
function requiredFieldProblem(nodeType2, entityConfig) {
|
|
49605
|
+
if (nodeType2 === CREATE_ENTITY) {
|
|
49606
|
+
const mandatory = mandatoryEntityWriteFields(entityConfig._entityFields);
|
|
49607
|
+
if (mandatory.length === 0)
|
|
49608
|
+
return;
|
|
49609
|
+
const supplied = new Set(writeRows(entityConfig.fieldValues).filter((row) => entityWriteRowHasValue(row.value)).map(rowField));
|
|
49610
|
+
const fields2 = mandatory.filter((name) => !supplied.has(name));
|
|
49611
|
+
return fields2.length > 0 ? { problem: "requiredMissing", fields: fields2 } : undefined;
|
|
49612
|
+
}
|
|
49613
|
+
const nonNullable = new Set(nonNullableEntityWriteFields(entityConfig._entityFields));
|
|
49614
|
+
if (nonNullable.size === 0)
|
|
49615
|
+
return;
|
|
49616
|
+
const fields = [
|
|
49617
|
+
...new Set(writeRows(entityConfig.fieldUpdates).filter((row) => nonNullable.has(rowField(row)) && !entityWriteRowHasValue(row.value)).map(rowField))
|
|
49618
|
+
];
|
|
49619
|
+
return fields.length > 0 ? { problem: "requiredBlanked", fields } : undefined;
|
|
49620
|
+
}
|
|
49621
|
+
function relationProblem(entityConfig) {
|
|
49622
|
+
const paths = relatedPathsIn(entityConfig);
|
|
49623
|
+
if (paths.length === 0)
|
|
49624
|
+
return;
|
|
49625
|
+
const rawFields = entityConfig._entityFields;
|
|
49626
|
+
const fields = Array.isArray(rawFields) ? rawFields.filter((f) => typeof f?.name === "string") : [];
|
|
49627
|
+
const { problem, problemDetail } = validateRelatedPaths(fields, paths, relatedColumnMapIn(entityConfig));
|
|
49628
|
+
if (!problem)
|
|
49629
|
+
return;
|
|
49630
|
+
return {
|
|
49631
|
+
problem: problem === "uncarryablePath" ? "uncarryableRelationPath" : "unresolvedRelation",
|
|
49632
|
+
path: problemDetail?.path
|
|
49633
|
+
};
|
|
49634
|
+
}
|
|
49635
|
+
var SELF_REFERENCE = /(^|[^\w$])\$self\b/;
|
|
49636
|
+
function isSelfReferential(value) {
|
|
49637
|
+
const body = getJsExpressionBody(value);
|
|
49638
|
+
return body !== undefined && SELF_REFERENCE.test(body);
|
|
49639
|
+
}
|
|
49640
|
+
function isUnqueryable(value) {
|
|
49641
|
+
return isQesUncarryableValue(value) || isSelfReferential(value);
|
|
49642
|
+
}
|
|
49643
|
+
function isFilterExpressionCleared(f) {
|
|
49644
|
+
const body = getJsExpressionBody(f.value);
|
|
49645
|
+
return body !== undefined && body.trim() === "";
|
|
49646
|
+
}
|
|
49647
|
+
function problemMessage(problem, relationPath, fields) {
|
|
49648
|
+
switch (problem) {
|
|
49649
|
+
case "unresolvedRelation":
|
|
49650
|
+
return localized("entityQuery_unresolvedRelation_message", { path: relationPath ?? "" }, "{{path}} is no longer available. Pick a field on this entity or one of its direct relations.");
|
|
49651
|
+
case "uncarryableRelationPath":
|
|
49652
|
+
return localized("entityQuery_uncarryableRelationPath_message", { path: relationPath ?? "" }, "{{path}} cannot be used as written. Remove any spaces, quotes or backslashes from the column name.");
|
|
49653
|
+
case "cleared":
|
|
49654
|
+
return localized("entityQuery_emptyFilterExpression_message", {}, "Write an expression for every filter, or remove the filter");
|
|
49655
|
+
case "emptyList":
|
|
49656
|
+
return localized("entityQuery_emptyFilterValueList_message", {}, "Add at least one value to the filter, or remove the filter");
|
|
49657
|
+
case "unfilteredSingle":
|
|
49658
|
+
return localized("entityQuery_unfilteredSingleRecord_message", {}, "Add a condition, or read multiple records instead");
|
|
49659
|
+
case "incompleteSingleRow":
|
|
49660
|
+
return localized("entityQuery_incompleteSingleRecordRow_message", {}, "Select a field and enter a value");
|
|
49661
|
+
case "uncarryable":
|
|
49662
|
+
return localized("entityQuery_uncarryableExpression_message", {}, "Store this expression in a variable, or write it without spaces, quotes, or backslashes");
|
|
49663
|
+
case "requiredMissing":
|
|
49664
|
+
return localized("entityWrite_requiredFieldMissing_message", { fields: fields ?? "" }, "Set a value for {{fields}}");
|
|
49665
|
+
case "requiredBlanked":
|
|
49666
|
+
return localized("entityWrite_requiredFieldBlanked_message", { fields: fields ?? "" }, "Set a value for {{fields}}, or remove them from the update");
|
|
49667
|
+
}
|
|
49668
|
+
}
|
|
49669
|
+
var entityQueryExpressionRule = {
|
|
49670
|
+
id: "entity-query-expression",
|
|
49671
|
+
severity: "error",
|
|
49672
|
+
validate(ctx) {
|
|
49673
|
+
const errors5 = [];
|
|
49674
|
+
for (const node of ctx.nodes) {
|
|
49675
|
+
const entityConfig = node.data.inputs?.entityConfig ?? {};
|
|
49676
|
+
let problem;
|
|
49677
|
+
let relationPath;
|
|
49678
|
+
if (node.type === READ_ENTITY) {
|
|
49679
|
+
const filters = readEntityFilterRows(entityConfig._filters);
|
|
49680
|
+
const multiRecord = resolveReadResultMode(entityConfig) === "multiple";
|
|
49681
|
+
const compiles = (f) => Boolean(f?.field) && (!isValueListFilterOperator(f.operator) || multiRecord);
|
|
49682
|
+
if (filters.some((f) => compiles(f) && isUnqueryable(f.value)))
|
|
49683
|
+
problem = "uncarryable";
|
|
49684
|
+
else if (multiRecord && (isUnqueryable(entityConfig._recordLimit) || isUnqueryable(entityConfig._skip)))
|
|
49685
|
+
problem = "uncarryable";
|
|
49686
|
+
else if (filters.some((f) => compiles(f) && isFilterExpressionCleared(f)))
|
|
49687
|
+
problem = "cleared";
|
|
49688
|
+
else if (filters.some((f) => readEntityFilterValueListIsEmpty(f, multiRecord)))
|
|
49689
|
+
problem = "emptyList";
|
|
49690
|
+
else {
|
|
49691
|
+
const relation = relationProblem(entityConfig);
|
|
49692
|
+
if (relation) {
|
|
49693
|
+
problem = relation.problem;
|
|
49694
|
+
relationPath = relation.path;
|
|
49695
|
+
} else if (!multiRecord && readStringField(entityConfig.entityName).trim() !== "" && !filters.some((f) => readEntityFilterRowYieldsPredicate(f, false))) {
|
|
49696
|
+
problem = filters.length === 0 ? "unfilteredSingle" : "incompleteSingleRow";
|
|
49697
|
+
}
|
|
49698
|
+
}
|
|
49699
|
+
} else if (RECORD_TARGET_NODES.has(node.type)) {
|
|
49700
|
+
if (isRecordTargetedById(entityConfig) && isUnqueryable(entityConfig.recordId))
|
|
49701
|
+
problem = "uncarryable";
|
|
49702
|
+
}
|
|
49703
|
+
if (problem) {
|
|
49704
|
+
errors5.push({
|
|
49705
|
+
code: PROBLEM_CODES[problem],
|
|
49706
|
+
...problemMessage(problem, relationPath),
|
|
49707
|
+
severity: "error",
|
|
49708
|
+
nodeId: node.id,
|
|
49709
|
+
fieldPath: "inputs.entityConfig",
|
|
49710
|
+
layer: "field"
|
|
49711
|
+
});
|
|
49712
|
+
}
|
|
49713
|
+
if (node.type !== CREATE_ENTITY && node.type !== UPDATE_ENTITY)
|
|
49714
|
+
continue;
|
|
49715
|
+
if (readStringField(entityConfig.entityName).trim() === "")
|
|
49716
|
+
continue;
|
|
49717
|
+
const required3 = requiredFieldProblem(node.type, entityConfig);
|
|
49718
|
+
if (!required3)
|
|
49719
|
+
continue;
|
|
49720
|
+
errors5.push({
|
|
49721
|
+
code: PROBLEM_CODES[required3.problem],
|
|
49722
|
+
...problemMessage(required3.problem, undefined, required3.fields.join(", ")),
|
|
49723
|
+
severity: "error",
|
|
49724
|
+
nodeId: node.id,
|
|
49725
|
+
fieldPath: "inputs.entityConfig",
|
|
49726
|
+
layer: "field"
|
|
49727
|
+
});
|
|
49728
|
+
}
|
|
49729
|
+
return errors5;
|
|
49730
|
+
}
|
|
49731
|
+
};
|
|
49732
|
+
function isRecordTargetedById(entityConfig) {
|
|
49733
|
+
if (entityConfig.recordSource === "byId")
|
|
49734
|
+
return true;
|
|
49735
|
+
if (entityConfig.recordSource === "fromRead" || entityConfig.readEntityNodeId)
|
|
49736
|
+
return false;
|
|
49737
|
+
const recordId = entityConfig.recordId;
|
|
49738
|
+
const text = isExpressionValue(recordId) ? recordId.expression : typeof recordId === "string" ? recordId : "";
|
|
49739
|
+
return text.trim() !== "";
|
|
49740
|
+
}
|
|
49741
|
+
function getNodeType7(node) {
|
|
49049
49742
|
return node.data?.type ?? node.type ?? "";
|
|
49050
49743
|
}
|
|
49051
49744
|
var singleConversationTriggerRule = {
|
|
49052
49745
|
id: "single-conversation-trigger",
|
|
49053
49746
|
severity: "error",
|
|
49054
49747
|
validate(ctx) {
|
|
49055
|
-
const triggers = ctx.nodes.filter((n) =>
|
|
49748
|
+
const triggers = ctx.nodes.filter((n) => getNodeType7(n) === "core.trigger.conversation");
|
|
49056
49749
|
if (triggers.length <= 1)
|
|
49057
49750
|
return [];
|
|
49058
49751
|
return triggers.map((node) => ({
|
|
@@ -49109,6 +49802,7 @@ var generalRules = [
|
|
|
49109
49802
|
agentInputRefsRule,
|
|
49110
49803
|
agentDuplicateToolNamesRule,
|
|
49111
49804
|
agentEmptyVarRule,
|
|
49805
|
+
agentFileNotAnalyzedRule,
|
|
49112
49806
|
conversationalRequiredFieldsRule,
|
|
49113
49807
|
conversationalVoiceCallContextRule,
|
|
49114
49808
|
conversationalVoiceEndCallContextRule,
|
|
@@ -49118,10 +49812,11 @@ var generalRules = [
|
|
|
49118
49812
|
hitlDocValidationRule,
|
|
49119
49813
|
ixpSchemaDraftRule,
|
|
49120
49814
|
scriptMustacheRule,
|
|
49815
|
+
entityQueryExpressionRule,
|
|
49121
49816
|
singleConversationTriggerRule,
|
|
49122
49817
|
doWhileLimitRule
|
|
49123
49818
|
];
|
|
49124
|
-
var cliRules =
|
|
49819
|
+
var cliRules = generalRules;
|
|
49125
49820
|
function runRules(rules, ctx) {
|
|
49126
49821
|
const errors5 = [];
|
|
49127
49822
|
for (const rule of rules) {
|
|
@@ -49150,95 +49845,6 @@ function toSerializedNodes(nodes, extraData) {
|
|
|
49150
49845
|
return nodes.map((node) => toSerializedNode(node, extraData?.(node)));
|
|
49151
49846
|
}
|
|
49152
49847
|
|
|
49153
|
-
// ../../node_modules/@uipath/flow-schema/dist/chunk-XPPKWK2Y.js
|
|
49154
|
-
var RESERVED_WORDS = [
|
|
49155
|
-
"break",
|
|
49156
|
-
"case",
|
|
49157
|
-
"catch",
|
|
49158
|
-
"continue",
|
|
49159
|
-
"debugger",
|
|
49160
|
-
"default",
|
|
49161
|
-
"delete",
|
|
49162
|
-
"do",
|
|
49163
|
-
"else",
|
|
49164
|
-
"finally",
|
|
49165
|
-
"for",
|
|
49166
|
-
"function",
|
|
49167
|
-
"if",
|
|
49168
|
-
"in",
|
|
49169
|
-
"instanceof",
|
|
49170
|
-
"new",
|
|
49171
|
-
"return",
|
|
49172
|
-
"switch",
|
|
49173
|
-
"this",
|
|
49174
|
-
"throw",
|
|
49175
|
-
"try",
|
|
49176
|
-
"typeof",
|
|
49177
|
-
"var",
|
|
49178
|
-
"void",
|
|
49179
|
-
"while",
|
|
49180
|
-
"with",
|
|
49181
|
-
"class",
|
|
49182
|
-
"const",
|
|
49183
|
-
"enum",
|
|
49184
|
-
"export",
|
|
49185
|
-
"extends",
|
|
49186
|
-
"import",
|
|
49187
|
-
"super",
|
|
49188
|
-
"implements",
|
|
49189
|
-
"interface",
|
|
49190
|
-
"let",
|
|
49191
|
-
"package",
|
|
49192
|
-
"private",
|
|
49193
|
-
"protected",
|
|
49194
|
-
"public",
|
|
49195
|
-
"static",
|
|
49196
|
-
"yield"
|
|
49197
|
-
];
|
|
49198
|
-
var VALID_IDENTIFIER_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
|
|
49199
|
-
var FLAT_SEP = "__";
|
|
49200
|
-
function generateRandomId(length) {
|
|
49201
|
-
const chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
49202
|
-
let result = "";
|
|
49203
|
-
for (let i = 0;i < length; i++) {
|
|
49204
|
-
result += chars2.charAt(Math.floor(Math.random() * chars2.length));
|
|
49205
|
-
}
|
|
49206
|
-
return result;
|
|
49207
|
-
}
|
|
49208
|
-
function generateNextId(prefix, count = 6) {
|
|
49209
|
-
return `${prefix}${generateRandomId(count)}`;
|
|
49210
|
-
}
|
|
49211
|
-
function isPlainObject3(value) {
|
|
49212
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
49213
|
-
}
|
|
49214
|
-
function deepEqual(a, b) {
|
|
49215
|
-
if (a === b)
|
|
49216
|
-
return true;
|
|
49217
|
-
if (a === null || b === null)
|
|
49218
|
-
return a === b;
|
|
49219
|
-
if (a === undefined || b === undefined)
|
|
49220
|
-
return a === b;
|
|
49221
|
-
if (typeof a !== typeof b)
|
|
49222
|
-
return false;
|
|
49223
|
-
if (Array.isArray(a)) {
|
|
49224
|
-
if (!Array.isArray(b) || a.length !== b.length)
|
|
49225
|
-
return false;
|
|
49226
|
-
return a.every((val, i) => deepEqual(val, b[i]));
|
|
49227
|
-
}
|
|
49228
|
-
if (typeof a === "object") {
|
|
49229
|
-
if (Array.isArray(b))
|
|
49230
|
-
return false;
|
|
49231
|
-
const objA = a;
|
|
49232
|
-
const objB = b;
|
|
49233
|
-
const keysA = Object.keys(objA);
|
|
49234
|
-
const keysB = Object.keys(objB);
|
|
49235
|
-
if (keysA.length !== keysB.length)
|
|
49236
|
-
return false;
|
|
49237
|
-
return keysA.every((key) => (key in objB) && deepEqual(objA[key], objB[key]));
|
|
49238
|
-
}
|
|
49239
|
-
return false;
|
|
49240
|
-
}
|
|
49241
|
-
|
|
49242
49848
|
// ../../node_modules/@uipath/flow-schema/dist/index.js
|
|
49243
49849
|
var import_object = __toESM(require_index_cjs(), 1);
|
|
49244
49850
|
var workflowRuntimeSchema = exports_external.enum(["maestro", "api-function"]);
|
|
@@ -49562,6 +50168,7 @@ var nodeSchema2 = nodeSchema.extend({
|
|
|
49562
50168
|
typeVersion: exports_external.string().regex(/^\d+\.\d+(\.\d+)?$/, 'Version must be in format "x.y" or "x.y.z"')
|
|
49563
50169
|
});
|
|
49564
50170
|
var nodeManifestSchema2 = exports_external.lazy(() => nodeManifestSchema.extend({
|
|
50171
|
+
display: nodeDisplayManifestSchema.extend({ isPreview: exports_external.boolean().optional() }),
|
|
49565
50172
|
projectId: exports_external.string().optional(),
|
|
49566
50173
|
entryPointPath: exports_external.string().optional(),
|
|
49567
50174
|
unsupportedRuntime: exports_external.boolean().optional(),
|
|
@@ -49791,7 +50398,6 @@ function constraintWithAddNodePanel(constraint) {
|
|
|
49791
50398
|
jsep.plugins.register(import_object.default);
|
|
49792
50399
|
var IDENTIFIER_RE = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
49793
50400
|
var SAFE_CALLBACK = /* @__PURE__ */ Symbol("safeExpressionCallback");
|
|
49794
|
-
var DANGEROUS_PROPERTY_NAMES = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
49795
50401
|
var SAFE_GLOBALS = { Array, Boolean, JSON, Math, Number, Object, String };
|
|
49796
50402
|
var SAFE_MATH_METHODS = {
|
|
49797
50403
|
abs: Math.abs,
|
|
@@ -49964,7 +50570,7 @@ function getMemberKey(node, context) {
|
|
|
49964
50570
|
return node.property.name;
|
|
49965
50571
|
}
|
|
49966
50572
|
function isSafePropertyKey(key) {
|
|
49967
|
-
return !
|
|
50573
|
+
return !isUnsafeKey(key);
|
|
49968
50574
|
}
|
|
49969
50575
|
function getObjectPropertyKey(prop, context) {
|
|
49970
50576
|
if (prop.computed)
|
|
@@ -50133,7 +50739,7 @@ function createSafeCallback(params, body, context) {
|
|
|
50133
50739
|
}
|
|
50134
50740
|
function parseArrowParams(params) {
|
|
50135
50741
|
const names = params.split(",").map((param) => param.trim()).filter(Boolean);
|
|
50136
|
-
if (names.some((name) => !IDENTIFIER_RE.test(name) ||
|
|
50742
|
+
if (names.some((name) => !IDENTIFIER_RE.test(name) || isUnsafeKey(name)))
|
|
50137
50743
|
throw new Error("Unsupported arrow callback params");
|
|
50138
50744
|
return names;
|
|
50139
50745
|
}
|
|
@@ -50992,7 +51598,7 @@ var ProjectType = {
|
|
|
50992
51598
|
ProcessOrchestration: "processorchestration"
|
|
50993
51599
|
};
|
|
50994
51600
|
var AGENT_TARGET_RUNTIME = "pythonAgent";
|
|
50995
|
-
var solutionSupportedResources = ["process", "queue", "app", "ixpDeployment"];
|
|
51601
|
+
var solutionSupportedResources = ["process", "queue", "app", "ixpDeployment", "idpProcessor"];
|
|
50996
51602
|
var RESOURCE_CONFIG = {
|
|
50997
51603
|
process: {
|
|
50998
51604
|
nameField: "name",
|
|
@@ -51052,6 +51658,74 @@ var mapTypeToJsonSchema = (type) => {
|
|
|
51052
51658
|
var isValidDefaultValueForVariable = (value) => {
|
|
51053
51659
|
return value !== undefined && value !== "";
|
|
51054
51660
|
};
|
|
51661
|
+
var JOB_ATTACHMENT_DEFINITION_KEY = "job-attachment";
|
|
51662
|
+
var JOB_ATTACHMENT_REF = `#/definitions/${JOB_ATTACHMENT_DEFINITION_KEY}`;
|
|
51663
|
+
var isJobAttachmentRef = (node) => {
|
|
51664
|
+
const ref = node?.$ref;
|
|
51665
|
+
return typeof ref === "string" && ref.endsWith(`/${JOB_ATTACHMENT_DEFINITION_KEY}`);
|
|
51666
|
+
};
|
|
51667
|
+
var convertFileTypesToRefs = (schema) => {
|
|
51668
|
+
if (!schema || typeof schema !== "object" || Array.isArray(schema))
|
|
51669
|
+
return { schema, hasFile: false };
|
|
51670
|
+
const node = schema;
|
|
51671
|
+
if (node.type === "file") {
|
|
51672
|
+
const { type: _type, ...rest } = node;
|
|
51673
|
+
return { schema: { ...rest, $ref: JOB_ATTACHMENT_REF }, hasFile: true };
|
|
51674
|
+
}
|
|
51675
|
+
let hasFile = false;
|
|
51676
|
+
const out = { ...node };
|
|
51677
|
+
for (const key of ["items", "additionalProperties"]) {
|
|
51678
|
+
const child = node[key];
|
|
51679
|
+
if (child && typeof child === "object" && !Array.isArray(child)) {
|
|
51680
|
+
const converted = convertFileTypesToRefs(child);
|
|
51681
|
+
out[key] = converted.schema;
|
|
51682
|
+
if (converted.hasFile)
|
|
51683
|
+
hasFile = true;
|
|
51684
|
+
}
|
|
51685
|
+
}
|
|
51686
|
+
if (node.properties && typeof node.properties === "object" && !Array.isArray(node.properties)) {
|
|
51687
|
+
const props = {};
|
|
51688
|
+
for (const [propKey, propSchema] of Object.entries(node.properties)) {
|
|
51689
|
+
const converted = convertFileTypesToRefs(propSchema);
|
|
51690
|
+
props[propKey] = converted.schema;
|
|
51691
|
+
if (converted.hasFile)
|
|
51692
|
+
hasFile = true;
|
|
51693
|
+
}
|
|
51694
|
+
out.properties = props;
|
|
51695
|
+
}
|
|
51696
|
+
return { schema: out, hasFile };
|
|
51697
|
+
};
|
|
51698
|
+
var convertJobAttachmentRefsToFileTypes = (schema) => {
|
|
51699
|
+
if (!schema || typeof schema !== "object" || Array.isArray(schema))
|
|
51700
|
+
return schema;
|
|
51701
|
+
const node = schema;
|
|
51702
|
+
if (isJobAttachmentRef(node)) {
|
|
51703
|
+
const { $ref: _ref, ...rest } = node;
|
|
51704
|
+
return { ...rest, type: "file" };
|
|
51705
|
+
}
|
|
51706
|
+
const out = { ...node };
|
|
51707
|
+
for (const key of ["items", "additionalProperties"]) {
|
|
51708
|
+
const child = node[key];
|
|
51709
|
+
if (child && typeof child === "object" && !Array.isArray(child))
|
|
51710
|
+
out[key] = convertJobAttachmentRefsToFileTypes(child);
|
|
51711
|
+
}
|
|
51712
|
+
if (node.properties && typeof node.properties === "object" && !Array.isArray(node.properties)) {
|
|
51713
|
+
const props = {};
|
|
51714
|
+
for (const [propKey, propSchema] of Object.entries(node.properties)) {
|
|
51715
|
+
props[propKey] = convertJobAttachmentRefsToFileTypes(propSchema);
|
|
51716
|
+
}
|
|
51717
|
+
out.properties = props;
|
|
51718
|
+
}
|
|
51719
|
+
return out;
|
|
51720
|
+
};
|
|
51721
|
+
var variableHasFileType = (variable) => {
|
|
51722
|
+
if (variable.type === "file")
|
|
51723
|
+
return true;
|
|
51724
|
+
if ((variable.type === "array" || variable.type === "object") && variable.schema) {
|
|
51725
|
+
return convertFileTypesToRefs(variable.schema).hasFile;
|
|
51726
|
+
}
|
|
51727
|
+
return false;
|
|
51728
|
+
};
|
|
51055
51729
|
var variableToJsonSchema = (variable) => {
|
|
51056
51730
|
if (variable.type === "jsonSchema") {
|
|
51057
51731
|
const body = variable.body ?? variable.schema;
|
|
@@ -51063,7 +51737,7 @@ var variableToJsonSchema = (variable) => {
|
|
|
51063
51737
|
return { type: "object" };
|
|
51064
51738
|
}
|
|
51065
51739
|
if (variable.type === "file") {
|
|
51066
|
-
return { $ref:
|
|
51740
|
+
return { $ref: JOB_ATTACHMENT_REF };
|
|
51067
51741
|
}
|
|
51068
51742
|
const defaults = {
|
|
51069
51743
|
...isValidDefaultValueForVariable(variable.defaultValue) ? { default: variable.defaultValue } : {},
|
|
@@ -51071,7 +51745,7 @@ var variableToJsonSchema = (variable) => {
|
|
|
51071
51745
|
};
|
|
51072
51746
|
if ((variable.type === "array" || variable.type === "object") && variable.schema) {
|
|
51073
51747
|
const { $schema: _$schema, ...rest } = variable.schema;
|
|
51074
|
-
return { ...rest, title: variable.id, ...defaults };
|
|
51748
|
+
return convertFileTypesToRefs({ ...rest, title: variable.id, ...defaults }).schema;
|
|
51075
51749
|
}
|
|
51076
51750
|
const { type, format } = mapTypeToJsonSchema(variable.type);
|
|
51077
51751
|
return {
|
|
@@ -51153,6 +51827,12 @@ var inputsMatchBinding = (node, binding) => {
|
|
|
51153
51827
|
const detail = node.inputs?.detail;
|
|
51154
51828
|
return detail?.connectionResourceId === binding.resourceKey;
|
|
51155
51829
|
};
|
|
51830
|
+
var idpProcessorMatchesBinding = (node, binding) => {
|
|
51831
|
+
if (binding.resource !== "idpProcessor")
|
|
51832
|
+
return false;
|
|
51833
|
+
const processorKey = node.inputs?.processorKey;
|
|
51834
|
+
return typeof processorKey === "string" && processorKey !== "" && processorKey === binding.resourceKey;
|
|
51835
|
+
};
|
|
51156
51836
|
var entityConfigMatchesBinding = (node, binding) => {
|
|
51157
51837
|
if (binding.resource !== "Entity")
|
|
51158
51838
|
return false;
|
|
@@ -51160,6 +51840,11 @@ var entityConfigMatchesBinding = (node, binding) => {
|
|
|
51160
51840
|
const scopeKey = entityConfig?._resourceKey || entityConfig?._entityKey;
|
|
51161
51841
|
return typeof scopeKey === "string" && scopeKey !== "" && scopeKey === binding.resourceKey;
|
|
51162
51842
|
};
|
|
51843
|
+
var entityNodeIsTenantScoped = (node) => {
|
|
51844
|
+
const entityConfig = node.inputs?.entityConfig;
|
|
51845
|
+
const folderKey = entityConfig?._folderKey;
|
|
51846
|
+
return typeof folderKey !== "string" || folderKey === "";
|
|
51847
|
+
};
|
|
51163
51848
|
var getConnectionMetadata = (manifestModel, node) => {
|
|
51164
51849
|
const connectorKey = manifestModel?.context?.find((ctx) => ctx.name === "connectorKey")?.value;
|
|
51165
51850
|
const detail = node?.inputs?.detail;
|
|
@@ -51172,7 +51857,9 @@ var getConnectionMetadata = (manifestModel, node) => {
|
|
|
51172
51857
|
var getBindingResources = (nodes, bindings, definitions = [], subflows, options = {}) => {
|
|
51173
51858
|
const bindingResources = [];
|
|
51174
51859
|
for (const binding of bindings) {
|
|
51175
|
-
|
|
51860
|
+
if (binding.resource === "index")
|
|
51861
|
+
continue;
|
|
51862
|
+
const node = nodes.find((n) => modelMatchesBinding(getManifestModel(n, definitions), binding) || inputsMatchBinding(n, binding) || entityConfigMatchesBinding(n, binding) || idpProcessorMatchesBinding(n, binding));
|
|
51176
51863
|
let subflowNode;
|
|
51177
51864
|
if (!node && subflows) {
|
|
51178
51865
|
for (const entry of Object.values(subflows)) {
|
|
@@ -51186,6 +51873,9 @@ var getBindingResources = (nodes, bindings, definitions = [], subflows, options
|
|
|
51186
51873
|
if (!node && !subflowNode || skippablePropertyAttributes.includes(binding.propertyAttribute?.toLowerCase() || "")) {
|
|
51187
51874
|
continue;
|
|
51188
51875
|
}
|
|
51876
|
+
if (binding.resource === "Entity" && node && entityNodeIsTenantScoped(node)) {
|
|
51877
|
+
continue;
|
|
51878
|
+
}
|
|
51189
51879
|
const resourceConfig = RESOURCE_CONFIG[binding.resource];
|
|
51190
51880
|
const resource = resourceConfig?.resource || binding.resource;
|
|
51191
51881
|
const subType = resourceConfig?.subType || binding.resourceSubType;
|
|
@@ -51479,6 +52169,7 @@ var JOB_ATTACHMENTS_DEFINITION = {
|
|
|
51479
52169
|
"x-uipath-resource-kind": "JobAttachment"
|
|
51480
52170
|
}
|
|
51481
52171
|
};
|
|
52172
|
+
var isTriggerScopedInput = (global, triggerNodeId) => global.direction === "in" && global.triggerNodeId === triggerNodeId;
|
|
51482
52173
|
var getEffectiveTriggerInputs = (startNode, definitions, globals) => {
|
|
51483
52174
|
const def = findNodeManifest(startNode, definitions);
|
|
51484
52175
|
const schemaProps = def?.outputDefinition?.output?.schema?.properties;
|
|
@@ -51490,38 +52181,34 @@ var getEffectiveTriggerInputs = (startNode, definitions, globals) => {
|
|
|
51490
52181
|
triggerNodeId: startNode.id
|
|
51491
52182
|
}));
|
|
51492
52183
|
}
|
|
51493
|
-
return (globals ?? []).filter((g) => g
|
|
52184
|
+
return (globals ?? []).filter((g) => isTriggerScopedInput(g, startNode.id));
|
|
51494
52185
|
};
|
|
51495
|
-
var
|
|
51496
|
-
const inputVars = getEffectiveTriggerInputs(startNode, definitions, variables.globals);
|
|
51497
|
-
let hasFileType = false;
|
|
52186
|
+
var buildSchemaProperties = (variables) => {
|
|
51498
52187
|
const properties = {};
|
|
51499
|
-
|
|
51500
|
-
|
|
52188
|
+
let hasFileType = false;
|
|
52189
|
+
for (const variable of variables) {
|
|
52190
|
+
if (variableHasFileType(variable))
|
|
51501
52191
|
hasFileType = true;
|
|
51502
|
-
}
|
|
51503
52192
|
properties[variable.id] = variableToJsonSchema(variable);
|
|
51504
52193
|
}
|
|
52194
|
+
return { properties, ...hasFileType ? { definitions: JOB_ATTACHMENTS_DEFINITION } : {} };
|
|
52195
|
+
};
|
|
52196
|
+
var buildInputSchema = (variables, startNode, definitions) => {
|
|
52197
|
+
const inputVars = getEffectiveTriggerInputs(startNode, definitions, variables.globals);
|
|
52198
|
+
const { properties, definitions: fileDefinitions } = buildSchemaProperties(inputVars);
|
|
51505
52199
|
return {
|
|
51506
52200
|
type: "object",
|
|
51507
52201
|
properties,
|
|
51508
|
-
...
|
|
52202
|
+
...fileDefinitions && { definitions: fileDefinitions }
|
|
51509
52203
|
};
|
|
51510
52204
|
};
|
|
51511
52205
|
var buildOutputSchema = (variables) => {
|
|
51512
52206
|
const outputVars = (variables.globals || []).filter((v) => v.direction === "out");
|
|
51513
|
-
|
|
51514
|
-
const properties = {};
|
|
51515
|
-
for (const variable of outputVars) {
|
|
51516
|
-
if (variable.type === "file") {
|
|
51517
|
-
hasFileType = true;
|
|
51518
|
-
}
|
|
51519
|
-
properties[variable.id] = variableToJsonSchema(variable);
|
|
51520
|
-
}
|
|
52207
|
+
const { properties, definitions } = buildSchemaProperties(outputVars);
|
|
51521
52208
|
return {
|
|
51522
52209
|
type: "object",
|
|
51523
52210
|
properties,
|
|
51524
|
-
...
|
|
52211
|
+
...definitions && { definitions }
|
|
51525
52212
|
};
|
|
51526
52213
|
};
|
|
51527
52214
|
var getEntryPoints = (bpmnFileName, nodes, variables, definitions, projectType = ProjectType.ProcessOrchestration) => {
|
|
@@ -51624,9 +52311,10 @@ function assertNoFormTriggerConflict(existing, incoming) {
|
|
|
51624
52311
|
var sanitizeFileName = (name) => {
|
|
51625
52312
|
return name.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
51626
52313
|
};
|
|
52314
|
+
var toBpmnFileName = (flowFileName) => flowFileName.replace(/\.flow$/, ".bpmn");
|
|
51627
52315
|
async function generateWorkflowPackaging(options) {
|
|
51628
52316
|
const { fileName, nodes, bindings, definitions, subflows, includeFormTriggers = false, toBpmn } = options;
|
|
51629
|
-
const bpmnFileName = fileName
|
|
52317
|
+
const bpmnFileName = toBpmnFileName(fileName);
|
|
51630
52318
|
const bpmnXml = await toBpmn();
|
|
51631
52319
|
const bindingResources = getBindingResources(nodes, bindings, definitions, subflows, { includeFormTriggers });
|
|
51632
52320
|
return { bpmnXml, bpmnFileName, bindingResources };
|
|
@@ -51886,7 +52574,7 @@ function matchContextBindings(name, bindings, nodeResourceKey, nodeBindingResour
|
|
|
51886
52574
|
return hasScope ? candidates.filter((b) => b.name === name && b.resourceKey === nodeResourceKey) : candidates.filter((b) => b.name === name);
|
|
51887
52575
|
}
|
|
51888
52576
|
var CONVERSATIONAL_AGENT_SETTINGS = {
|
|
51889
|
-
model: "anthropic.claude-sonnet-
|
|
52577
|
+
model: "anthropic.claude-sonnet-5",
|
|
51890
52578
|
maxTokens: 8192,
|
|
51891
52579
|
maxIterations: 8,
|
|
51892
52580
|
temperature: 0,
|
|
@@ -51930,245 +52618,6 @@ var DEFAULT_CONVERSATIONAL_VOICE_SETTINGS = {
|
|
|
51930
52618
|
persona: DEFAULT_CONVERSATIONAL_VOICE_MODEL_ENTRY.personas[0],
|
|
51931
52619
|
agentSpeaksFirst: DEFAULT_VOICE_AGENT_SPEAKS_FIRST
|
|
51932
52620
|
};
|
|
51933
|
-
var JobAttachmentSchema = {
|
|
51934
|
-
type: "object",
|
|
51935
|
-
"x-uipath-resource-kind": "JobAttachment",
|
|
51936
|
-
properties: {
|
|
51937
|
-
ID: {
|
|
51938
|
-
type: "string",
|
|
51939
|
-
description: "Orchestrator attachment key"
|
|
51940
|
-
},
|
|
51941
|
-
FullName: {
|
|
51942
|
-
type: "string",
|
|
51943
|
-
description: "File name"
|
|
51944
|
-
},
|
|
51945
|
-
MimeType: {
|
|
51946
|
-
type: "string",
|
|
51947
|
-
description: 'The MIME type of the content, such as "application/json" or "image/png"'
|
|
51948
|
-
},
|
|
51949
|
-
Metadata: {
|
|
51950
|
-
type: "object",
|
|
51951
|
-
description: "Dictionary of metadata",
|
|
51952
|
-
additionalProperties: {
|
|
51953
|
-
type: "string"
|
|
51954
|
-
}
|
|
51955
|
-
}
|
|
51956
|
-
},
|
|
51957
|
-
required: ["ID"]
|
|
51958
|
-
};
|
|
51959
|
-
var ANALYZE_FILES_SCHEMA = {
|
|
51960
|
-
inputSchema: {
|
|
51961
|
-
type: "object",
|
|
51962
|
-
properties: {
|
|
51963
|
-
attachments: {
|
|
51964
|
-
type: "array",
|
|
51965
|
-
items: JobAttachmentSchema,
|
|
51966
|
-
description: "Array of files, documents, images, or other attachments to process"
|
|
51967
|
-
},
|
|
51968
|
-
analysisTask: {
|
|
51969
|
-
type: "string",
|
|
51970
|
-
description: "The task, question, or instruction for processing the files (e.g., 'summarize this document', 'extract key points', 'what is in this image')"
|
|
51971
|
-
}
|
|
51972
|
-
},
|
|
51973
|
-
required: ["attachments", "analysisTask"]
|
|
51974
|
-
},
|
|
51975
|
-
outputSchema: {
|
|
51976
|
-
type: "object",
|
|
51977
|
-
properties: {
|
|
51978
|
-
analysis: {
|
|
51979
|
-
type: "string",
|
|
51980
|
-
description: "Analysis result of the attachments (analysis, summary, extracted information, etc.)"
|
|
51981
|
-
}
|
|
51982
|
-
},
|
|
51983
|
-
required: ["analysis"]
|
|
51984
|
-
}
|
|
51985
|
-
};
|
|
51986
|
-
var SUMMARIZE_SCHEMA = {
|
|
51987
|
-
inputSchema: {
|
|
51988
|
-
type: "object",
|
|
51989
|
-
properties: {
|
|
51990
|
-
attachment: {
|
|
51991
|
-
type: "object",
|
|
51992
|
-
title: "Source",
|
|
51993
|
-
description: "File or document to summarize",
|
|
51994
|
-
properties: JobAttachmentSchema.properties,
|
|
51995
|
-
required: JobAttachmentSchema.required
|
|
51996
|
-
}
|
|
51997
|
-
},
|
|
51998
|
-
required: ["attachment"]
|
|
51999
|
-
},
|
|
52000
|
-
outputSchema: {
|
|
52001
|
-
type: "array",
|
|
52002
|
-
items: {
|
|
52003
|
-
type: "object",
|
|
52004
|
-
properties: {
|
|
52005
|
-
content: {
|
|
52006
|
-
type: "string",
|
|
52007
|
-
description: "The content of the analyzed attachment"
|
|
52008
|
-
}
|
|
52009
|
-
}
|
|
52010
|
-
}
|
|
52011
|
-
}
|
|
52012
|
-
};
|
|
52013
|
-
var BATCH_TRANSFORM_SCHEMA = {
|
|
52014
|
-
inputSchema: {
|
|
52015
|
-
type: "object",
|
|
52016
|
-
properties: {
|
|
52017
|
-
attachment: {
|
|
52018
|
-
type: "object",
|
|
52019
|
-
title: "Source",
|
|
52020
|
-
description: "CSV file to transform",
|
|
52021
|
-
properties: JobAttachmentSchema.properties,
|
|
52022
|
-
required: JobAttachmentSchema.required
|
|
52023
|
-
}
|
|
52024
|
-
},
|
|
52025
|
-
required: ["attachment"]
|
|
52026
|
-
},
|
|
52027
|
-
outputSchema: {
|
|
52028
|
-
type: "array",
|
|
52029
|
-
items: {
|
|
52030
|
-
type: "object",
|
|
52031
|
-
properties: {
|
|
52032
|
-
content: {
|
|
52033
|
-
type: "string",
|
|
52034
|
-
description: "The content of the transformed row"
|
|
52035
|
-
}
|
|
52036
|
-
}
|
|
52037
|
-
}
|
|
52038
|
-
}
|
|
52039
|
-
};
|
|
52040
|
-
var nameValuePairSchema = (nameDescription, valueDescription) => ({
|
|
52041
|
-
type: "object",
|
|
52042
|
-
properties: {
|
|
52043
|
-
name: {
|
|
52044
|
-
type: "string",
|
|
52045
|
-
description: nameDescription
|
|
52046
|
-
},
|
|
52047
|
-
value: {
|
|
52048
|
-
type: "string",
|
|
52049
|
-
description: valueDescription
|
|
52050
|
-
}
|
|
52051
|
-
},
|
|
52052
|
-
required: ["name", "value"]
|
|
52053
|
-
});
|
|
52054
|
-
var HTTP_REQUEST_SCHEMA = {
|
|
52055
|
-
inputSchema: {
|
|
52056
|
-
type: "object",
|
|
52057
|
-
properties: {
|
|
52058
|
-
url: {
|
|
52059
|
-
type: "string",
|
|
52060
|
-
description: "The absolute URL to send the request to."
|
|
52061
|
-
},
|
|
52062
|
-
method: {
|
|
52063
|
-
type: "string",
|
|
52064
|
-
description: "HTTP method to use, one of: GET, POST, PUT, PATCH, DELETE."
|
|
52065
|
-
},
|
|
52066
|
-
headers: {
|
|
52067
|
-
type: "array",
|
|
52068
|
-
description: "Request headers as a list of name/value pairs.",
|
|
52069
|
-
items: nameValuePairSchema("Header name.", "Header value.")
|
|
52070
|
-
},
|
|
52071
|
-
params: {
|
|
52072
|
-
type: "array",
|
|
52073
|
-
description: "Query-string parameters as a list of name/value pairs.",
|
|
52074
|
-
items: nameValuePairSchema("Parameter name.", "Parameter value.")
|
|
52075
|
-
},
|
|
52076
|
-
body: {
|
|
52077
|
-
type: "string",
|
|
52078
|
-
description: "Request body sent as-is. Provide JSON as a string and set a Content-Type header if the endpoint expects JSON."
|
|
52079
|
-
},
|
|
52080
|
-
timeout: {
|
|
52081
|
-
type: "number",
|
|
52082
|
-
description: "Request timeout in seconds."
|
|
52083
|
-
}
|
|
52084
|
-
},
|
|
52085
|
-
required: ["url"]
|
|
52086
|
-
},
|
|
52087
|
-
outputSchema: {
|
|
52088
|
-
type: "object",
|
|
52089
|
-
properties: {}
|
|
52090
|
-
}
|
|
52091
|
-
};
|
|
52092
|
-
var BUILT_IN_TOOL_SCHEMAS = {
|
|
52093
|
-
"uipath.agent.resource.tool.builtin.analyzefiles": ANALYZE_FILES_SCHEMA,
|
|
52094
|
-
"uipath.agent.resource.tool.builtin.summarize": SUMMARIZE_SCHEMA,
|
|
52095
|
-
"uipath.agent.resource.tool.builtin.batchtransform": BATCH_TRANSFORM_SCHEMA,
|
|
52096
|
-
"uipath.agent.resource.tool.builtin.httprequest": HTTP_REQUEST_SCHEMA
|
|
52097
|
-
};
|
|
52098
|
-
function getToolFields(schema, filterType = "any") {
|
|
52099
|
-
const fields = [];
|
|
52100
|
-
const isTypeCompatible = (type) => {
|
|
52101
|
-
if (filterType === "any")
|
|
52102
|
-
return true;
|
|
52103
|
-
if (!type)
|
|
52104
|
-
return false;
|
|
52105
|
-
if (filterType === "number")
|
|
52106
|
-
return type === "number" || type === "integer";
|
|
52107
|
-
return type === filterType;
|
|
52108
|
-
};
|
|
52109
|
-
const collectPaths = (obj, source, path = "") => {
|
|
52110
|
-
if (!obj || typeof obj !== "object")
|
|
52111
|
-
return;
|
|
52112
|
-
if (obj.type === "object" && obj.properties) {
|
|
52113
|
-
for (const [propName, propSchema] of Object.entries(obj.properties)) {
|
|
52114
|
-
const propPath = path ? `${path}.${propName}` : propName;
|
|
52115
|
-
collectPaths(propSchema, source, propPath);
|
|
52116
|
-
}
|
|
52117
|
-
return;
|
|
52118
|
-
}
|
|
52119
|
-
if (obj.type === "array" && obj.items) {
|
|
52120
|
-
const items = obj.items;
|
|
52121
|
-
const arrayPath = path ? `${path}[*]` : "[*]";
|
|
52122
|
-
if (items.type === "object" && items.properties) {
|
|
52123
|
-
for (const [propName, propSchema] of Object.entries(items.properties)) {
|
|
52124
|
-
const itemPath = `${arrayPath}.${propName}`;
|
|
52125
|
-
collectPaths(propSchema, source, itemPath);
|
|
52126
|
-
}
|
|
52127
|
-
} else if (items.type && isTypeCompatible(items.type)) {
|
|
52128
|
-
fields.push({
|
|
52129
|
-
path: arrayPath,
|
|
52130
|
-
source,
|
|
52131
|
-
title: obj.title || obj.description,
|
|
52132
|
-
type: items.type
|
|
52133
|
-
});
|
|
52134
|
-
}
|
|
52135
|
-
return;
|
|
52136
|
-
}
|
|
52137
|
-
if (obj.type && isTypeCompatible(obj.type)) {
|
|
52138
|
-
fields.push({
|
|
52139
|
-
path,
|
|
52140
|
-
source,
|
|
52141
|
-
title: obj.title || obj.description,
|
|
52142
|
-
type: obj.type
|
|
52143
|
-
});
|
|
52144
|
-
}
|
|
52145
|
-
};
|
|
52146
|
-
if (schema.inputSchema) {
|
|
52147
|
-
if (schema.inputSchema.type === "object" && schema.inputSchema.properties) {
|
|
52148
|
-
for (const [propName, propSchema] of Object.entries(schema.inputSchema.properties)) {
|
|
52149
|
-
collectPaths(propSchema, "input", propName);
|
|
52150
|
-
}
|
|
52151
|
-
}
|
|
52152
|
-
}
|
|
52153
|
-
if (schema.outputSchema) {
|
|
52154
|
-
if (schema.outputSchema.type === "object" && schema.outputSchema.properties) {
|
|
52155
|
-
for (const [propName, propSchema] of Object.entries(schema.outputSchema.properties)) {
|
|
52156
|
-
collectPaths(propSchema, "output", propName);
|
|
52157
|
-
}
|
|
52158
|
-
} else if (schema.outputSchema.type === "array" && schema.outputSchema.items) {
|
|
52159
|
-
const items = schema.outputSchema.items;
|
|
52160
|
-
if (items.type === "object" && items.properties) {
|
|
52161
|
-
for (const [propName, propSchema] of Object.entries(items.properties)) {
|
|
52162
|
-
collectPaths(propSchema, "output", `[*].${propName}`);
|
|
52163
|
-
}
|
|
52164
|
-
}
|
|
52165
|
-
}
|
|
52166
|
-
}
|
|
52167
|
-
return fields;
|
|
52168
|
-
}
|
|
52169
|
-
function getBuiltInToolSchema(nodeType2) {
|
|
52170
|
-
return BUILT_IN_TOOL_SCHEMAS[nodeType2];
|
|
52171
|
-
}
|
|
52172
52621
|
var DOTNET_STRING_TYPES = /* @__PURE__ */ new Set(["System.String", "System.Char", "System.Guid", "System.Uri", "System.TimeSpan"]);
|
|
52173
52622
|
var DOTNET_DATE_TYPES = /* @__PURE__ */ new Set(["System.DateTime", "System.DateOnly", "System.DateTimeOffset"]);
|
|
52174
52623
|
var DOTNET_INTEGER_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -52414,6 +52863,6 @@ async function executeWritePlan(plan, callbacks) {
|
|
|
52414
52863
|
inlinedRefs: plan.inlinedRefs
|
|
52415
52864
|
};
|
|
52416
52865
|
}
|
|
52417
|
-
export { exports_external,
|
|
52866
|
+
export { exports_external, JS_EXPRESSION_PREFIX, expressionFieldTypeSchema, expressionModeSchema, expressionValueSchema, expressionLikeSchema, isExpressionValue, isEmptyExpressionValue, encodeLiteral, decodeLiteral, coerceToExpressionValue, getJsExpressionBody, expectedTypeToFieldType, coerceInputsViaSchema, ESCAPED_MUSTACHE_PLACEHOLDER, hasMustache, parseMustacheSegments, templateInterpolationBody, QES_UNSAFE_CHAR, isQesUncarryableValue, RESERVED_WORDS, VALID_IDENTIFIER_PATTERN, FLAT_SEP, generateRandomId, generateNextId, UNSAFE_PROPERTY_KEYS, isUnsafeKey, isPlainObject2 as isPlainObject, deepEqual, entityWriteRowHasValue, isNonNullableEntityWriteField, isMandatoryEntityWriteField, nonNullableEntityWriteFields, mandatoryEntityWriteFields, instance, migrations, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentFlowLayoutStorageSchema, applyMigrations, getLatestVersion, isBlockingSeverity, shouldBlockAction, agentEnforcementsSchema, isExpression, decodeLiteralForValidation, decodeLiteralsForValidation, isJsonSchema, normalizeInputDefinition, resolveNestedFieldSchema, getFieldValidator, getNodeValidator, schemaErrorsToValidationErrors, clearValidatorCache, getManifestForNode, getNodeLabel, resolveTemplate, isTriggerNodeType, isEndNodeType, LOOP_NODE_TYPE, DOWHILE_NODE_TYPE, isLoopNodeType, isCollectionLoopNodeType, isDoWhileNodeType, DOWHILE_MAX_LIMIT, DOWHILE_MIN_LIMIT, parseDoWhileLimit, resolveDoWhileLimit, DECISION_NODE_TYPE, SWITCH_NODE_TYPE, MERGE_NODE_TYPE, MOCK_NODE_TYPE, SYNTHETIC_GATEWAY_OUTPUT_KEYS, isGatewayNodeType, supportsVariableUpdates, SUBFLOW_NODE_TYPE, isSubflowNodeType, AUTONOMOUS_AGENT_NODE_TYPE, CONVERSATIONAL_AGENT_NODE_TYPE, VOICE_AGENT_NODE_TYPE, CONVERSATIONAL_AGENT_ICON, AGENT_NODE_TYPES, isConversationalOrVoiceAgentNodeType, isVoiceAgentNodeType, isAutonomousAgentNodeType, isAgentNodeType, isPublishedAgentNodeType, isAgentToolNodeType, AGENT_RESOURCE_PREFIX, isAgentResourceNodeType, CONVERSATIONAL_VOICE_END_CALL_NODE_TYPE, CONVERSATION_TRIGGER_NODE_TYPE, isConversationalRuntimeNodeType, isCallContextEmpty, schemaValidationRule, minConnectionsRule, triggerRequiredRule, dataTransformRule, outputMappingRule, ESCALATION_QUICK_FORM_NODE_TYPE, ESCALATION_TASK_TYPE, ESCALATION_TYPE_CODE, resolveEscalationTaskType, AGENT_RESOURCE_SOURCE_HANDLES, isToolNode, isContextNode, isEscalationNode, isQuickFormEscalationNode, isMcpNode, isA2aNode, isMemoryNode, isAgentResourceNode, DEFAULT_STORAGE_VERSION, getDefaultAgentContent, RecipientType, BYO_VALIDATOR_TYPE, temperatureExceededMessage, maxTokensExceededMessage, maxIterationsExceededMessage, modelNotAvailableMessage, governanceRule, DEFAULT_TRIGGER_OUTCOME, withDefaultTriggerOutcome, normalizeFormTriggerSchema, getHitlFieldChannelKey, isHitlInputDirectionField, isHitlOutputDirectionField, findDuplicateHitlChannelKeys, isAutoDerivedFieldBinding, stripAutoDerivedFieldBindings, conditionExpressionRule, agentDuplicateToolNamesRule, HITL_NODE_TYPE, HITL_QUICK_FORM_NODE_TYPE, HITL_CODED_ACTION_NODE_TYPE, HITL_DOC_VALIDATION_NODE_TYPE, DYNAMIC_EXTRACT_NODE_TYPE, FORM_TRIGGER_NODE_TYPE, UI_ONLY_NODE_TYPES, HITL_NODE_TYPES, isHitlNodeType, isHumanActionNodeType, collectWrittenGlobalIds, agentEmptyVarRule, JobAttachmentSchema, ANALYZE_FILES_SCHEMA, SUMMARIZE_SCHEMA, BATCH_TRANSFORM_SCHEMA, HTTP_REQUEST_SCHEMA, BUILT_IN_TOOL_SCHEMAS, getToolFields, getBuiltInToolSchema, isFileTypedVariable, schemaAcceptsFileInput, findUnhandledFilePromptVarPaths, IXP_SCHEMA_EDITOR_DRAFT_EXTENSION, IXP_SCHEMA_EDITOR_ISSUES_EXTENSION, IXP_SCHEMA_INVALID_ERROR_CODE, readIxpSchemaEditorDraft, stripIxpSchemaEditorDraft, attachIxpSchemaEditorDraft, ixpSchemaDraftRule, relatedPathsIn, relatedColumnMapIn, validateRelatedPaths, generalRules, cliRules, runRules, toSerializedNode, toSerializedNodes, workflowRuntimeSchema, DEFAULT_WORKFLOW_RUNTIME, argumentBindingSchema, workflowVariableSchema, variableUpdateSchema, nodeVariableSchema, workflowVariablesSchema, EMPTY_VARIABLES, workflowConnectionSchema, nodeLayoutSchema, waypointSchema, edgeLayoutSchema, layoutSchema, bindingSchema, nodeDisplayManifestSchema, nodeManifestSchema, idSchema, edgeSchema2, nodeSchema2, nodeManifestSchema2, categoryManifestSchema2, versionSchema2, subflowEntrySchema, workflowSchema, workflowSchemaV1_0_0, workflowSchemaV1_0, workflowSchemaV1_1, workflowSchemaV1_2, workflowSchemaV1_3, workflowSchemaV1_4, workflowSchemaV1_5, workflowSchemaV1_6, workflowSchemaV1_7, workflowSchemaV1_8, workflowSchemaV1_9, workflowSchemaV1_10, WORKFLOW_VERSIONS, CURRENT_WORKFLOW_VERSION, MINIMUM_SUPPORTED_SCHEMA_VERSION, workflowFileSchema, subflowFileSchema5, workflowManifestSchema, manifestResponseSchema, handleTargetSchema2, addNodePanelSearchScopeSchema, addNodePanelCreateActionSchema, addNodePanelConfigSchema, connectionConstraintSchema2, constraintWithAddNodePanel, evaluateExpression, evaluateTemplate, evaluateCondition, matchesTypePattern, checkCategoryConstraint, validateConnection, canAcceptMoreConnections, meetsMinimumConnections, resolveRefs, containsRef, applyJsonPointer, parsePointerTokens, toJsonPointer, fileFormatToInMemoryWorkflow, resolveAndConvertWorkflow, inMemoryWorkflowToFileFormat, parseWorkflowJson, workflowScopes, collectWorkflowNodesDeep, compareVersions, CONNECTOR_NODE_PREFIX, CONNECTOR_TRIGGER_PREFIX, CONNECTOR_EVENT_PREFIX, TRIGGER_NODE_PREFIX, TRIGGER_TYPE_PREFIXES, buildConnectorNodeType, parseConnectorNodeType, WEEKDAYS, isQuartzCron, isValidQuartzCron, getTimeCycleFromCronExpression, getCronExpressionFromTimeCycleValue, BINDINGS_PATH_PREFIX, BINDINGS_PLACEHOLDER_PATH_PREFIX, EntryPointType, ProjectType, AGENT_TARGET_RUNTIME, JOB_ATTACHMENT_DEFINITION_KEY, JOB_ATTACHMENT_REF, isJobAttachmentRef, convertFileTypesToRefs, convertJobAttachmentRefsToFileTypes, variableToJsonSchema, getBindingResourceValue, getBindingResources, isStartEventNode, isTriggerScopedInput, getEffectiveTriggerInputs, buildSchemaProperties, buildInputSchema, buildOutputSchema, getEntryPoints, getStartEventNodes, generateOperateJson, generatePackageDescriptor, generateBindingsJson, generateEntryPointsJson, deduplicateBindings, mergeBindingResources, sanitizeFileName, toBpmnFileName, generateWorkflowPackaging, applyConnectionOverwritesToWorkflow, applyConnectionRemovalsToWorkflow, createBindingPackage, findDefaultEntryPointNodeId, getAllEntryPoints, serializeFrequencyToCron, parseCronToFrequency, resolveContextBindingPlaceholders, matchContextBindings, CONVERSATIONAL_AGENT_SETTINGS, CONVERSATIONAL_OUTPUTS_MIN_VERSION, DEFAULT_CONVERSATIONAL_VOICE_MODEL, VOICE_MODELS, getVoiceModel, getPersonasForModel, VOICE_TURN_DETECTION_SENSITIVITIES, VOICE_TURN_DETECTION_LIMITS, DEFAULT_VOICE_AGENT_SPEAKS_FIRST, DEFAULT_CONVERSATIONAL_VOICE_SETTINGS, createInputSchemaFromAppSchema, createOutputSchemaFromAppSchema, createDotNetTypeMapping, createOutcomeMappingFromSchema, getOutcomeNames, unresolveRefs, createRefResolver, planWriteThrough, executeWritePlan };
|
|
52418
52867
|
|
|
52419
|
-
//# debugId=
|
|
52868
|
+
//# debugId=2EBA6A1EF1CF30D564756E2164756E21
|