@uipath/flow-tool 1.205.0-preview.277 → 1.206.0-preview.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/README.md +14 -12
  2. package/dist/THIRD-PARTY-NOTICES.md +74 -46
  3. package/dist/applicationinsights-web-8m26566f.js +17209 -0
  4. package/dist/authoring-x84r2a2j.js +23 -0
  5. package/dist/binding-service-s0wvr2xm.js +114 -0
  6. package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-gnftxwsf.js} +5 -6
  7. package/dist/connector-library-1yw5r47w.js +99 -0
  8. package/dist/{connector-service-kdg7mq7z.js → connector-service-r86mtxwn.js} +270 -275
  9. package/dist/{conversion-FQTRFHRX-e5wr281j.js → conversion-7O2PDOQB-3wwppx87.js} +477 -472
  10. package/dist/{de-FGHEJRCI-PK6WALXW-0dnvnmke.js → de-2BEKRUMY-MD7L477H-rj1rmtav.js} +425 -37
  11. package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
  12. package/dist/{de-VMMG2MN7-2ecwpg1b.js → de-3CU65EDB-r7r10am9.js} +82 -7
  13. package/dist/{de-UZI7FJDO-awjpqfz0.js → de-AI7ML6JM-km47f8k4.js} +20 -5
  14. package/dist/{de-B3EKCNFC-zdwybhh7.js → de-VQWT6L5Y-mch4qwyv.js} +38 -5
  15. package/dist/{de-XNTCMP5Z-xfkfqg20.js → de-XNTCMP5Z-nd4scb43.js} +1 -4
  16. package/dist/debug-conversation-trigger-3wzy90kj.js +23 -0
  17. package/dist/debug-http-client-zydr7tna.js +31 -0
  18. package/dist/debug-service-hdktqeek.js +60 -0
  19. package/dist/edge-service-zck3s9ss.js +267 -0
  20. package/dist/{elk.bundled-vpsbxz0p.js → elk.bundled-phy0zc81.js} +6860 -6860
  21. package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
  22. package/dist/en-LAVDF7IQ-ba7wzsxp.js +254 -0
  23. package/dist/en-LQHKFSEY-zf6a2myg.js +24 -0
  24. package/dist/en-U2NSIIZN-whenw6wh.js +58 -0
  25. package/dist/en-WPCQ4JKF-t3x07ggr.js +148 -0
  26. package/dist/en-X6T4SP2Y-FPGCJIFV-qdfapfzs.js +2756 -0
  27. package/dist/en-X6T4SP2Y-xe57av1w.js +2752 -0
  28. package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
  29. package/dist/{es-KR3ZSNMP-QLWVVWKJ-5egs0gj9.js → es-7ZTQTGKN-TXQBFYRA-bzh1e1gq.js} +422 -34
  30. package/dist/{es-EKHIPSW6-ya88nvm0.js → es-EKHIPSW6-asfceac2.js} +1 -4
  31. package/dist/{es-KEBF3AIM-g5rszh8f.js → es-EP563JWQ-1agj5n4e.js} +38 -5
  32. package/dist/{es-WY6FZ3HO-zksnn6dp.js → es-KHVY67FO-natcvmmm.js} +82 -7
  33. package/dist/{es-MX-5RELIXKI-jtjbcxbb.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
  34. package/dist/{es-MX-ZP2LJ3V7-k4brnfa9.js → es-MX-F7ZEHSNE-gxpm47vv.js} +82 -7
  35. package/dist/{es-MX-XXZJGC4R-W6EEIHXR-c2m4yjpj.js → es-MX-IHGRIEWH-23X37OPS-7cqdzpcy.js} +425 -37
  36. package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
  37. package/dist/{es-MX-OR6G2SFR-7yykk5ma.js → es-MX-OR6G2SFR-02t13sen.js} +1 -4
  38. package/dist/{es-MX-EL3CDS3F-sh84yvjr.js → es-MX-S2RFDGDE-x9r0tv30.js} +38 -5
  39. package/dist/{es-4UBUTCQA-t7hsackg.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
  40. package/dist/filter-engine-dh9s90gb.js +10 -0
  41. package/dist/first-party-service-ahcc6xc6.js +8 -0
  42. package/dist/flow-api-d4dvmadm.js +38 -0
  43. package/dist/{flow-debug-service-0xn8fk4a.js → flow-debug-service-hy21ddd9.js} +151 -195
  44. package/dist/flow-eval-node-target-tdrwqca7.js +29 -0
  45. package/dist/flow-eval-run-api-w4j8ra60.js +9 -0
  46. package/dist/{flow-eval-run-service-dcj8p7n7.js → flow-eval-run-service-5en4ahyn.js} +125 -149
  47. package/dist/{flow-eval-service-6c0y5a3b.js → flow-eval-service-2j28ect1.js} +57 -81
  48. package/dist/{flow-init-sdk-source-xvdvkq7d.js → flow-init-sdk-source-xnr4bg25.js} +8 -11
  49. package/dist/flow-init-service-bj3ev9bz.js +26 -0
  50. package/dist/flow-io-9q6xk473.js +24 -0
  51. package/dist/{flow-migrate-service-9w8dgydd.js → flow-migrate-service-dkx85jj5.js} +33 -54
  52. package/dist/{flow-pack-service-5s2cthq4.js → flow-pack-service-58m51sp8.js} +79 -103
  53. package/dist/flow-validate-service-9a3zate4.js +46 -0
  54. package/dist/{fr-DPD4GHX3-exeypjwk.js → fr-7LK3QUWT-a94yejcs.js} +38 -5
  55. package/dist/{fr-Y6NPVODW-AS7T42TR-v4qe2tha.js → fr-7ZDL4MVO-CXMRZDOF-qjkg6y2r.js} +425 -37
  56. package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
  57. package/dist/{fr-VBM5WRC2-707ha692.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
  58. package/dist/{fr-PRMYCRDC-0bk078by.js → fr-I42FODC5-p80x5v4b.js} +83 -8
  59. package/dist/{fr-IHD66TVT-vfvmefbx.js → fr-IHD66TVT-eq8h0d6c.js} +1 -4
  60. package/dist/{governance-fetcher-mx8gr86x.js → governance-fetcher-h8hpcwyh.js} +17 -21
  61. package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
  62. package/dist/{hitl-service-d943rxgm.js → hitl-service-hccqhm63.js} +22 -42
  63. package/dist/index-4e3w8x62.js +31 -0
  64. package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
  65. package/dist/index-5xh0cjag.js +82 -0
  66. package/dist/index-7fet3f0s.js +10 -0
  67. package/dist/index-d4bdedx3.js +32 -0
  68. package/dist/index-f5kq7265.js +24 -0
  69. package/dist/index-g2p2ww34.js +39 -0
  70. package/dist/index-ng011fzs.js +974 -0
  71. package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
  72. package/dist/{index-1b2je9n2.js → index-px95xmkg.js} +290 -268
  73. package/dist/index-tdwpejt6.js +22 -0
  74. package/dist/index-z2qk2qn6.js +24 -0
  75. package/dist/index.js +19 -28
  76. package/dist/index.umd.min-ttg1qc0x.js +7814 -0
  77. package/dist/init.js +22 -43
  78. package/dist/inline-entity-resolver-0neh2b43.js +25 -0
  79. package/dist/input-reader-zqaep7k7.js +11 -0
  80. package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
  81. package/dist/{ja-HFEQKCZF-hb2f25p8.js → ja-GI3OUHPZ-28fy60r0.js} +83 -8
  82. package/dist/{ja-JE5ZL7EY-hacj2m31.js → ja-JE5ZL7EY-607k4c7p.js} +1 -4
  83. package/dist/{ja-Q5PXKJ2V-BR5GRIDQ-fgqqpryf.js → ja-LGAM5HKR-NTPKIZEM-nv67917s.js} +422 -34
  84. package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
  85. package/dist/ja-WY2W6733-ayr36h1f.js +71 -0
  86. package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
  87. package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
  88. package/dist/known-types-v9sxcq1c.js +13 -0
  89. package/dist/{ko-AYBDSRZG-G43C3XUW-kng13fsg.js → ko-7B4SUZB7-2SLI636D-grbtfrcv.js} +424 -36
  90. package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
  91. package/dist/{ko-DJJRKCG5-5h3k9csc.js → ko-DJJRKCG5-4fekzjn4.js} +1 -4
  92. package/dist/{ko-LA5OSS5P-mq5h8sbk.js → ko-H2RGQWKJ-9696w762.js} +38 -5
  93. package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
  94. package/dist/{ko-B4SEC7QX-thq2wt6a.js → ko-RYKAL74T-10m4z8vw.js} +83 -8
  95. package/dist/localization-skqjy9nr.js +45 -0
  96. package/dist/maestro-automate-entry-d1v5q5mv.js +14 -0
  97. package/dist/{node-5ay0ddfj.js → node-0jy3qx5b.js} +69 -638
  98. package/dist/node-service-2nxpk751.js +64 -0
  99. package/dist/{node-strategy-1dmmhvf3.js → node-strategy-wrjxmbzt.js} +9 -12
  100. package/dist/node-sync-service-68vq10je.js +56 -0
  101. package/dist/packager-tool-14rdgz3c.js +55 -0
  102. package/dist/packager-tool-1rhch6b5.js +496 -0
  103. package/dist/packager-tool-21t17xzz.js +5073 -0
  104. package/dist/{packager-tool-pvhx9e12.js → packager-tool-2b0tn4p4.js} +58 -176
  105. package/dist/{packager-tool-xf9vf5nj.js → packager-tool-368bft50.js} +11 -11
  106. package/dist/{packager-tool-a5afh1dc.js → packager-tool-4fv0sq2h.js} +61 -67
  107. package/dist/packager-tool-4g87fbz6.js +273 -0
  108. package/dist/packager-tool-4zt1s51a.js +53 -0
  109. package/dist/{packager-tool-frjt46rb.js → packager-tool-508ka40b.js} +23 -23
  110. package/dist/{packager-tool-a5ywkf0w.js → packager-tool-5104bnpv.js} +22 -21
  111. package/dist/packager-tool-5dgpfh5e.js +1274 -0
  112. package/dist/packager-tool-5ve5ms3b.js +2393 -0
  113. package/dist/{packager-tool-dxgrhfq5.js → packager-tool-64r7e4ek.js} +8 -8
  114. package/dist/{packager-tool-kkwrd05c.js → packager-tool-65yf8zqb.js} +180 -1237
  115. package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
  116. package/dist/{packager-tool-hgfygxyj.js → packager-tool-6jpvvxyb.js} +27 -22
  117. package/dist/packager-tool-6vhefpmq.js +461 -0
  118. package/dist/{packager-tool-v9vpk48j.js → packager-tool-72xwbsmw.js} +441 -556
  119. package/dist/packager-tool-7atc775f.js +30 -0
  120. package/dist/packager-tool-7mxn3e7j.js +27 -0
  121. package/dist/{packager-tool-gpwnzqd9.js → packager-tool-7qtnffkc.js} +8 -7
  122. package/dist/{packager-tool-ymma2s85.js → packager-tool-8ba22j6n.js} +9 -6
  123. package/dist/{packager-tool-apawc11t.js → packager-tool-8ed52y5r.js} +1584 -1261
  124. package/dist/{packager-tool-143kcy6z.js → packager-tool-8n4bdvke.js} +13 -13
  125. package/dist/{packager-tool-p8gab24q.js → packager-tool-8qypzm9v.js} +424 -404
  126. package/dist/packager-tool-9217bxm2.js +6 -0
  127. package/dist/{packager-tool-zfrp8ecz.js → packager-tool-951nhh3e.js} +82 -82
  128. package/dist/{packager-tool-zjv3f1k3.js → packager-tool-99d2kj94.js} +8 -11
  129. package/dist/{packager-tool-z21c6mbp.js → packager-tool-a1h0q79w.js} +48 -48
  130. package/dist/{packager-tool-xk78j7dz.js → packager-tool-ac6rvny7.js} +52 -57
  131. package/dist/{packager-tool-3jkppykr.js → packager-tool-b2pkwwj1.js} +1273 -1300
  132. package/dist/{packager-tool-nhrc54tz.js → packager-tool-bbkkxbyq.js} +9 -8
  133. package/dist/{packager-tool-409n51pv.js → packager-tool-d07g2kpn.js} +7 -7
  134. package/dist/{packager-tool-8zzmg2f3.js → packager-tool-dx6sjbkd.js} +19 -19
  135. package/dist/{packager-tool-8g5931fz.js → packager-tool-em4ppegs.js} +36 -43
  136. package/dist/{packager-tool-zgsvggdr.js → packager-tool-f7rk9xhv.js} +4 -4
  137. package/dist/{packager-tool-jrnjzs5t.js → packager-tool-fzgfb0jt.js} +32175 -36281
  138. package/dist/{packager-tool-9rmaeaww.js → packager-tool-gdpw0daf.js} +25211 -11966
  139. package/dist/packager-tool-hk0fnvz5.js +14 -0
  140. package/dist/{packager-tool-dbsdy4xx.js → packager-tool-jd3v0bh1.js} +4 -4
  141. package/dist/{packager-tool-tqjfdpda.js → packager-tool-jmrhzfyj.js} +106 -80
  142. package/dist/{packager-tool-mgwzjh8c.js → packager-tool-kz3t4raw.js} +490 -246
  143. package/dist/{packager-tool-7bam8cjq.js → packager-tool-mdf7bws6.js} +53255 -27261
  144. package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
  145. package/dist/{packager-tool-nkrmjr3a.js → packager-tool-mphfxa9g.js} +125 -125
  146. package/dist/{packager-tool-kn86394c.js → packager-tool-p123mtfx.js} +66 -692
  147. package/dist/{packager-tool-t7ahhaer.js → packager-tool-pxq0bwp0.js} +208 -138
  148. package/dist/{packager-tool-j95w4fj3.js → packager-tool-q0f1dvtd.js} +11 -11
  149. package/dist/{packager-tool-8qp60s20.js → packager-tool-q2f18crb.js} +3 -3
  150. package/dist/packager-tool-q2kwk5bf.js +57 -0
  151. package/dist/{packager-tool-z502rf8m.js → packager-tool-rxqxza90.js} +192 -183
  152. package/dist/{packager-tool-vzezw19a.js → packager-tool-ryds9860.js} +33 -36
  153. package/dist/{packager-tool-ykbahxma.js → packager-tool-t17t9svg.js} +6 -6
  154. package/dist/{packager-tool-myhbp761.js → packager-tool-vgrswa8p.js} +53 -8
  155. package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
  156. package/dist/{packager-tool-1frs4sr4.js → packager-tool-yewnsyag.js} +37 -5
  157. package/dist/packager-tool-zdqbp34f.js +14 -0
  158. package/dist/{packager-tool-pacrqxv2.js → packager-tool-ze3fnf3s.js} +52 -34
  159. package/dist/packager-tool.js +12 -32
  160. package/dist/prepare-uip-ad7mfs8t.js +92 -0
  161. package/dist/{pt-3KUMINBZ-d0fexmny.js → pt-2RGHDOG4-gwe2ptvg.js} +38 -5
  162. package/dist/{pt-BR-3LGIH33I-tqbrd89y.js → pt-BR-3LGIH33I-hdf332je.js} +1 -4
  163. package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
  164. package/dist/{pt-BR-6VFBW5QT-hsck9gjj.js → pt-BR-IL3KLBID-m1mvqqzb.js} +83 -8
  165. package/dist/{pt-BR-WNNZTIMN-6fent688.js → pt-BR-JWHVZE6H-gvkknv49.js} +38 -5
  166. package/dist/{pt-BR-TKHNHMET-4Z5H4N5G-pzw3328h.js → pt-BR-PHLFHMXZ-JFPKUXIZ-gyb27t6e.js} +425 -37
  167. package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
  168. package/dist/{pt-RMIAKZB4-t80exmp7.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
  169. package/dist/{pt-ROXU257Y-OWZOS54V-ywap2t39.js → pt-N7ZTJT4W-GVODJMRX-p5b51p0b.js} +424 -36
  170. package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
  171. package/dist/{pt-PFZXVOQH-qshq0b2m.js → pt-PFZXVOQH-xvcm5b61.js} +1 -4
  172. package/dist/{pt-WOTPKWPZ-1rxcy8hs.js → pt-VLA5IOHO-8t4pze0h.js} +83 -8
  173. package/dist/{ro-GHOBYW2S-4zevc9dy.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
  174. package/dist/{ro-KMDT7LYJ-yhpnsdvw.js → ro-53TS7SWG-hnjx1c7b.js} +38 -5
  175. package/dist/{ro-AN5G62WQ-kcj00jwq.js → ro-AN5G62WQ-fzsv2ymm.js} +1 -4
  176. package/dist/{ro-AVAWPKOO-6WCG756B-v7pjv1hc.js → ro-FLNXVYJI-ZN43XZKK-2tajkc94.js} +422 -34
  177. package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
  178. package/dist/{ro-PB44YXML-zmhhwp5h.js → ro-IRNFX376-mh84zk3n.js} +82 -7
  179. package/dist/{ru-GSCT4ARZ-FTVCGQTL-gee86v14.js → ru-GSCT4ARZ-FTVCGQTL-v3d4ag31.js} +2 -4
  180. package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
  181. package/dist/{ru-T73OPRTC-4knxw497.js → ru-T73OPRTC-50m7tty9.js} +1 -4
  182. package/dist/{ru-WBLQ5B2U-wemdzdqd.js → ru-WBLQ5B2U-5qpt0mvh.js} +1 -4
  183. package/dist/{ru-WBLQ5B2U-8r3c7v6d.js → ru-WBLQ5B2U-bf20yr5y.js} +1 -4
  184. package/dist/{ru-WBLQ5B2U-kdey8qa4.js → ru-WBLQ5B2U-w2wmp3xb.js} +1 -4
  185. package/dist/{serialization-BXU6AKAN-vdqyr29x.js → serialization-Z3UYT6BW-y9gb55mp.js} +1638 -761
  186. package/dist/services/extract-schema/default-schema-document.d.ts +31 -0
  187. package/dist/services/node-service.d.ts +6 -3
  188. package/dist/services/node-validators/file-node-connection-validator.d.ts +2 -0
  189. package/dist/services/node-validators/index.d.ts +1 -0
  190. package/dist/services/orchestrator-connection-field.d.ts +24 -0
  191. package/dist/services/packaging-utils.d.ts +2 -2
  192. package/dist/services/vars-reference-rule.d.ts +4 -3
  193. package/dist/solution-auth-j8x84n5z.js +11 -0
  194. package/dist/solution-discovery-vn4q32bf.js +38 -0
  195. package/dist/{tidy-service-c3xbcma6.js → tidy-service-m33hhtc7.js} +37 -55
  196. package/dist/tool.js +18 -27
  197. package/dist/{tr-JMIP7ZSL-G3QYPVT2-gswngwcr.js → tr-7AIZZWZ6-ESAESUPL-77g9b7jb.js} +422 -34
  198. package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
  199. package/dist/{tr-SEC6RGZ4-0ttavjya.js → tr-EJKY7DVQ-rkctqva4.js} +83 -8
  200. package/dist/{tr-KHOCWWLF-8apf5y44.js → tr-KHOCWWLF-m9t24j5y.js} +1 -4
  201. package/dist/{tr-SC55DYHY-e4zgcd4t.js → tr-PIQY7JIT-2mkwk0kq.js} +38 -5
  202. package/dist/{tr-GDTLECMM-kngksm3r.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
  203. package/dist/utils/container-ports.d.ts +22 -0
  204. package/dist/utils/handle-expansion.d.ts +57 -3
  205. package/dist/utils/workflow-file-format.d.ts +14 -0
  206. package/dist/validation.js +44 -68
  207. package/dist/{variable-service-s0srgj90.js → variable-service-ea1erf93.js} +28 -49
  208. package/dist/{wait-for-flow-job-b0vj8828.js → wait-for-flow-job-a4xtda36.js} +29 -36
  209. package/dist/{zh-CN-MX7VIOF2-xznrtchf.js → zh-CN-4FH7E7UL-84y6j2ea.js} +82 -7
  210. package/dist/{zh-CN-4NI2EGMV-8g027vv3.js → zh-CN-4NI2EGMV-dt0wg0wh.js} +1 -4
  211. package/dist/{zh-CN-IFFXSEJS-MZQ4HU3Z-ge1ynmtz.js → zh-CN-CN2ARPFS-NIQTWDK2-b5c91fwn.js} +422 -34
  212. package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
  213. package/dist/{en-BPJVY3U7-xkpj5xc5.js → zh-CN-NIEVKROA-q4tbbwqz.js} +26 -7
  214. package/dist/{zh-CN-I5D7WHBD-ge92tbx9.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
  215. package/dist/{zh-TW-53SU6EH4-33x57egq.js → zh-TW-53SU6EH4-w0wz3nwg.js} +1 -4
  216. package/dist/{zh-TW-5SJ3GZT2-bsg054mw.js → zh-TW-5WQA6QTM-hns69sd4.js} +83 -8
  217. package/dist/{zh-TW-IYBNYAMG-J7FWTQTK-sx8d4ymg.js → zh-TW-7RUFEVFK-VKVRSVTP-jq2pcmar.js} +421 -33
  218. package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
  219. package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
  220. package/dist/{zh-TW-TN3MPNXL-jcgg2hcs.js → zh-TW-MSQM7YTT-m7r7nwnj.js} +38 -5
  221. package/package.json +2 -2
  222. package/dist/authoring-e1k40hyw.js +0 -24
  223. package/dist/binding-service-v1ejjevw.js +0 -157
  224. package/dist/de-FGHEJRCI-gn4cf5gh.js +0 -2697
  225. package/dist/de-MUJPA4EB-209jpeqe.js +0 -173
  226. package/dist/de-UZI7FJDO-mwvc4cxe.js +0 -200
  227. package/dist/debug-conversation-trigger-2crr9w4n.js +0 -30
  228. package/dist/debug-http-client-yqjzsnhw.js +0 -32
  229. package/dist/debug-service-nra3n02y.js +0 -61
  230. package/dist/edge-service-vq8cjh0x.js +0 -170
  231. package/dist/en-E454CJNK-ytfw06kj.js +0 -98
  232. package/dist/en-EJCBA3LK-0wb3b1xy.js +0 -146
  233. package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
  234. package/dist/en-GN2ZGWUE-03z2df4k.js +0 -136
  235. package/dist/en-LQHKFSEY-vvbe8ve9.js +0 -26
  236. package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
  237. package/dist/en-TBNO2WUV-77KTKLDE-4ktf0pqw.js +0 -1942
  238. package/dist/en-TBNO2WUV-9nan43e5.js +0 -1936
  239. package/dist/es-4UBUTCQA-m1ytpyx2.js +0 -200
  240. package/dist/es-7SE7HX2X-qda7whn6.js +0 -173
  241. package/dist/es-KR3ZSNMP-0cszm2n3.js +0 -2697
  242. package/dist/es-MX-2MYFZU7X-6v0q5rbn.js +0 -173
  243. package/dist/es-MX-5RELIXKI-9jhqtddc.js +0 -200
  244. package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +0 -2697
  245. package/dist/filter-engine-7ep90g7f.js +0 -11
  246. package/dist/first-party-service-srxaftkn.js +0 -27
  247. package/dist/flow-api-sat010z1.js +0 -42
  248. package/dist/flow-eval-node-target-b5xwf5gp.js +0 -52
  249. package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
  250. package/dist/flow-init-service-z6xc9zsz.js +0 -47
  251. package/dist/flow-io-hf4szx79.js +0 -44
  252. package/dist/flow-validate-service-3974mcq1.js +0 -70
  253. package/dist/fr-MDFKNZ4C-qmypp92m.js +0 -173
  254. package/dist/fr-VBM5WRC2-63z7w4mh.js +0 -200
  255. package/dist/fr-Y6NPVODW-q5ef3htr.js +0 -2697
  256. package/dist/index-cexznmfe.js +0 -667
  257. package/dist/index-cg9qhfb1.js +0 -635
  258. package/dist/index-d090f35d.js +0 -66
  259. package/dist/index-gxcjq6ns.js +0 -110
  260. package/dist/index-kmp9fmhb.js +0 -25
  261. package/dist/index-nsn889vf.js +0 -27
  262. package/dist/index-sqhbn7ew.js +0 -157
  263. package/dist/index-wycgq0ff.js +0 -3178
  264. package/dist/index.umd.min-fqefd9kn.js +0 -7814
  265. package/dist/inline-entity-resolver-23tt0g1j.js +0 -45
  266. package/dist/input-reader-n7kzdrev.js +0 -12
  267. package/dist/ja-43QL7CGO-h6qfxfay.js +0 -200
  268. package/dist/ja-MDG4BKZQ-gayaca2c.js +0 -38
  269. package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +0 -2697
  270. package/dist/ja-UTQEAP34-hvyf683h.js +0 -173
  271. package/dist/known-types-r51zxb9g.js +0 -19
  272. package/dist/ko-AXCHW2OK-pkwdcbmx.js +0 -173
  273. package/dist/ko-AYBDSRZG-am0h0m2r.js +0 -2697
  274. package/dist/ko-TLL6Z6CD-ag6gjynr.js +0 -200
  275. package/dist/localization-d6gjmrsw.js +0 -47
  276. package/dist/maestro-automate-entry-6f9act3w.js +0 -22
  277. package/dist/node-service-0t16wfqk.js +0 -92
  278. package/dist/node-sync-service-w84f66pb.js +0 -61
  279. package/dist/packager-tool-0gctz400.js +0 -17
  280. package/dist/packager-tool-4mna26cc.js +0 -133
  281. package/dist/packager-tool-4x7tzvv0.js +0 -1176
  282. package/dist/packager-tool-53w8skv5.js +0 -262
  283. package/dist/packager-tool-6ejqwbw9.js +0 -26
  284. package/dist/packager-tool-6z1hsm2h.js +0 -143
  285. package/dist/packager-tool-79jnagb9.js +0 -5367
  286. package/dist/packager-tool-9era57c0.js +0 -28
  287. package/dist/packager-tool-9jxzgsxc.js +0 -14
  288. package/dist/packager-tool-c23zrhj8.js +0 -11
  289. package/dist/packager-tool-d6qf5qmb.js +0 -49
  290. package/dist/packager-tool-dw1bm5y7.js +0 -8809
  291. package/dist/packager-tool-e3yks66r.js +0 -95
  292. package/dist/packager-tool-e5hj89zm.js +0 -6
  293. package/dist/packager-tool-e87tzg4y.js +0 -1937
  294. package/dist/packager-tool-eypvc2kv.js +0 -23
  295. package/dist/packager-tool-gbgfwx8f.js +0 -2
  296. package/dist/packager-tool-hk1gxnth.js +0 -11
  297. package/dist/packager-tool-hxyjn885.js +0 -24
  298. package/dist/packager-tool-j78fwwhq.js +0 -16
  299. package/dist/packager-tool-jgfzfqjm.js +0 -53
  300. package/dist/packager-tool-jysvpt8p.js +0 -11
  301. package/dist/packager-tool-m3wkcxf5.js +0 -11
  302. package/dist/packager-tool-mcaf4ewf.js +0 -46
  303. package/dist/packager-tool-mgcz986r.js +0 -143
  304. package/dist/packager-tool-p79yh9ww.js +0 -97
  305. package/dist/packager-tool-paq9c70w.js +0 -1332
  306. package/dist/packager-tool-pcvhcn2k.js +0 -2019
  307. package/dist/packager-tool-qkn0c042.js +0 -1922
  308. package/dist/packager-tool-qszay16r.js +0 -180
  309. package/dist/packager-tool-rs6jm14d.js +0 -23
  310. package/dist/packager-tool-s7wb0s9n.js +0 -6297
  311. package/dist/packager-tool-sc961w0q.js +0 -16
  312. package/dist/packager-tool-skcjythd.js +0 -22085
  313. package/dist/packager-tool-t07ev0jj.js +0 -1083
  314. package/dist/packager-tool-xj0agqpk.js +0 -11
  315. package/dist/packager-tool-z83pga0z.js +0 -1942
  316. package/dist/pt-3DIO5QWG-hb763vct.js +0 -173
  317. package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +0 -2697
  318. package/dist/pt-BR-USP2T7GD-rppy42ym.js +0 -200
  319. package/dist/pt-BR-Y6K6XHXK-37a932vp.js +0 -173
  320. package/dist/pt-RMIAKZB4-67enhx3m.js +0 -200
  321. package/dist/pt-ROXU257Y-yd80gx6s.js +0 -2697
  322. package/dist/ro-AVAWPKOO-42m6am1w.js +0 -2697
  323. package/dist/ro-BWR3ONRR-jmap5ajd.js +0 -173
  324. package/dist/ro-GHOBYW2S-mhnqsgaa.js +0 -200
  325. package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
  326. package/dist/ru-GSCT4ARZ-jrxwev63.js +0 -10
  327. package/dist/ru-WBLQ5B2U-dpqvtfwr.js +0 -10
  328. package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
  329. package/dist/shared-utils-tqnx96mg.js +0 -21
  330. package/dist/solution-auth-8qz5pw7z.js +0 -14
  331. package/dist/solution-discovery-6t0z143v.js +0 -44
  332. package/dist/tr-5IIHSFW5-stsb3dar.js +0 -173
  333. package/dist/tr-GDTLECMM-k5fhmq13.js +0 -200
  334. package/dist/tr-JMIP7ZSL-fb67ft9w.js +0 -2696
  335. package/dist/zh-CN-I5D7WHBD-sr5h0a98.js +0 -200
  336. package/dist/zh-CN-IFFXSEJS-tke4mzty.js +0 -2697
  337. package/dist/zh-CN-OUMLDKDS-q3a1rr5c.js +0 -38
  338. package/dist/zh-CN-R2KU4U5L-q4yhc33t.js +0 -173
  339. package/dist/zh-TW-2AVLM723-xsmap3gk.js +0 -200
  340. package/dist/zh-TW-GNKMELBF-r4ay2475.js +0 -173
  341. package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +0 -2697
  342. /package/dist/{packager-tool-yc4kw997.js → packager-tool-1qg04b7q.js} +0 -0
  343. /package/dist/{packager-tool-cqtsj6yh.js → packager-tool-2sazb7th.js} +0 -0
  344. /package/dist/{packager-tool-s9ff3kk4.js → packager-tool-887wr6jm.js} +0 -0
  345. /package/dist/{packager-tool-aw9v0raw.js → packager-tool-8c7nddd1.js} +0 -0
  346. /package/dist/{packager-tool-9cq9atem.js → packager-tool-a9xgmn1q.js} +0 -0
  347. /package/dist/{packager-tool-4kr6g0zw.js → packager-tool-cvh1a0nm.js} +0 -0
  348. /package/dist/{packager-tool-27avrkyk.js → packager-tool-k3egwd1m.js} +0 -0
  349. /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
  350. /package/dist/{packager-tool-10vc8pq4.js → packager-tool-wr7gn964.js} +0 -0
@@ -1,112 +1,102 @@
1
1
  import {
2
- isConnectorTriggerType,
3
- isConnectorWaitForEventType,
4
- isEventDrivenConnectorType,
5
- readEssentialConfiguration,
6
- scanDetailForCrossNodeBindings
7
- } from "./packager-tool-nhrc54tz.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
8
4
  import {
9
- INLINE_ACTIVITY_SOURCE,
10
- REQUEST_BUCKETS,
11
- createEntityBindings,
12
- getInlineActivityConfiguration,
13
- isEntityNode,
14
- regenerateBindingsFile,
15
- resolveEntityIdentity
16
- } from "./packager-tool-kkwrd05c.js";
17
- import"./packager-tool-cqtsj6yh.js";
18
- import"./packager-tool-143kcy6z.js";
5
+ catchError2
6
+ } from "./packager-tool-pxq0bwp0.js";
7
+ import {
8
+ extractErrorMessageSync,
9
+ logger
10
+ } from "./packager-tool-8ed52y5r.js";
19
11
  import {
20
- ACTIVITY_VERSION_V4,
12
+ generateRandomId2
13
+ } from "./packager-tool-fzgfb0jt.js";
14
+ import {
15
+ addBinding2
16
+ } from "./packager-tool-2b0tn4p4.js";
17
+ import {
18
+ storedActivityBindings,
19
+ planResourceBindings,
20
+ guardJsonString,
21
+ upsertResourceBinding,
22
+ externalExecutionOf,
23
+ externalExecutionWarning,
24
+ MANAGED_HTTP_CONNECTOR_KEY2,
25
+ MANAGED_HTTP_ENDPOINT,
26
+ IMPLICIT_CONNECTION,
27
+ managedHttpDetailErrors,
28
+ buildManagedHttpBodyParameters,
29
+ MANAGED_HTTP_TELEMETRY,
30
+ ACTIVITY_VERSION_V42,
31
+ isV4ActivityConfiguration2,
21
32
  FilterNotSupportedError,
22
- MANAGED_HTTP_CONNECTOR_KEY,
23
- applySavedFilterTree,
24
- assertActivityMetadataResolved,
25
- buildActivityEssentialConfiguration,
26
- buildInputMetadata,
27
- buildManagedHttpEssentialConfiguration,
33
+ substituteFilterVariables,
34
+ buildActivityEssentialConfiguration2,
28
35
  configureActivityClient,
29
- extractMultipartParameters,
30
- fetchConnectionInfo,
31
- fetchConnectorActivityMetadataV4,
32
- fetchConnectorMetadata,
33
- inlineMultipartFileValues,
36
+ applySavedFilterTree2,
37
+ assertActivityMetadataResolved2,
38
+ buildManagedHttpEssentialConfiguration2,
39
+ extractMultipartParameters2,
40
+ inlineMultipartFileValues2,
34
41
  isListOperation,
35
- isV4ActivityConfiguration,
42
+ buildInputMetadata2,
36
43
  normalizeHttpMethod,
37
- planResourceBindings,
38
- storedActivityBindings,
39
- substituteFilterVariables
40
- } from "./packager-tool-mgwzjh8c.js";
41
- import"./packager-tool-dxgrhfq5.js";
42
- import"./packager-tool-7hw344bt.js";
43
- import"./packager-tool-z21c6mbp.js";
44
- import"./packager-tool-409n51pv.js";
45
- import"./packager-tool-skcjythd.js";
46
- import"./packager-tool-4x7tzvv0.js";
47
- import"./packager-tool-3jkppykr.js";
48
- import"./packager-tool-ymma2s85.js";
49
- import"./packager-tool-tqjfdpda.js";
50
- import"./packager-tool-frjt46rb.js";
51
- import {
52
- findNodeDefinition
53
- } from "./packager-tool-hxyjn885.js";
54
- import"./packager-tool-xk78j7dz.js";
55
- import"./packager-tool-8qp60s20.js";
56
- import"./packager-tool-kn86394c.js";
57
- import"./packager-tool-0gctz400.js";
58
- import"./packager-tool-qa9gftnj.js";
59
- import"./packager-tool-yc4kw997.js";
60
- import {
61
- readFlowWorkflow,
62
- writeFlowWorkflow
63
- } from "./packager-tool-hgfygxyj.js";
64
- import"./packager-tool-9rmaeaww.js";
65
- import"./packager-tool-paq9c70w.js";
44
+ assertConnectionConnector2,
45
+ fetchConnectionInfo2,
46
+ fetchConnectorMetadata2,
47
+ fetchConnectorActivityMetadataV42
48
+ } from "./packager-tool-kz3t4raw.js";
49
+ import"./packager-tool-1qg04b7q.js";
50
+ import"./packager-tool-p123mtfx.js";
51
+ import"./packager-tool-65yf8zqb.js";
52
+ import"./packager-tool-508ka40b.js";
53
+ import"./packager-tool-jmrhzfyj.js";
54
+ import"./packager-tool-xb16e3tz.js";
55
+ import"./packager-tool-gdpw0daf.js";
56
+ import"./packager-tool-d07g2kpn.js";
57
+ import"./packager-tool-a1h0q79w.js";
58
+ import"./packager-tool-21t17xzz.js";
59
+ import"./packager-tool-b2pkwwj1.js";
60
+ import"./packager-tool-ze3fnf3s.js";
66
61
  import {
67
62
  entityScopeKey
68
- } from "./packager-tool-dw1bm5y7.js";
63
+ } from "./packager-tool-mdf7bws6.js";
69
64
  import {
70
- addBinding
71
- } from "./packager-tool-pvhx9e12.js";
72
- import"./packager-tool-jgfzfqjm.js";
73
- import"./packager-tool-dbsdy4xx.js";
65
+ readFlowWorkflow2,
66
+ writeFlowWorkflow2
67
+ } from "./packager-tool-6jpvvxyb.js";
68
+ import"./packager-tool-1rhch6b5.js";
69
+ import"./packager-tool-8n4bdvke.js";
74
70
  import {
75
- generateRandomId
76
- } from "./packager-tool-qkn0c042.js";
77
- import"./packager-tool-pacrqxv2.js";
78
- import"./packager-tool-nkrmjr3a.js";
79
- import"./packager-tool-rs6jm14d.js";
80
- import"./packager-tool-hk1gxnth.js";
81
- import"./packager-tool-mgcz986r.js";
82
- import"./packager-tool-xj0agqpk.js";
83
- import"./packager-tool-pcvhcn2k.js";
84
- import"./packager-tool-sc961w0q.js";
85
- import"./packager-tool-t07ev0jj.js";
86
- import"./packager-tool-7bam8cjq.js";
87
- import"./packager-tool-gbgfwx8f.js";
88
- import"./packager-tool-6z1hsm2h.js";
89
- import"./packager-tool-jysvpt8p.js";
90
- import"./packager-tool-s7wb0s9n.js";
91
- import"./packager-tool-p79yh9ww.js";
92
- import"./packager-tool-jrnjzs5t.js";
93
- import"./packager-tool-z83pga0z.js";
94
- import"./packager-tool-6ejqwbw9.js";
95
- import"./packager-tool-mcaf4ewf.js";
96
- import"./packager-tool-eypvc2kv.js";
71
+ findNodeDefinition
72
+ } from "./packager-tool-ac6rvny7.js";
97
73
  import {
98
- extractErrorMessageSync,
99
- logger
100
- } from "./packager-tool-apawc11t.js";
74
+ REQUEST_BUCKETS,
75
+ INLINE_ACTIVITY_SOURCE,
76
+ getInlineActivityConfiguration,
77
+ findOrchestratorConnectionField,
78
+ orchestratorConnectionKey,
79
+ regenerateBindingsFile,
80
+ isEntityNode2,
81
+ createEntityBindings2,
82
+ resolveEntityIdentity2
83
+ } from "./packager-tool-5dgpfh5e.js";
101
84
  import {
102
- catchError
103
- } from "./packager-tool-t7ahhaer.js";
85
+ isConnectorTriggerType,
86
+ isConnectorWaitForEventType,
87
+ isEventDrivenConnectorType,
88
+ readEssentialConfiguration,
89
+ scanDetailForCrossNodeBindings
90
+ } from "./packager-tool-bbkkxbyq.js";
91
+ import"./packager-tool-2sazb7th.js";
92
+ import"./packager-tool-64r7e4ek.js";
93
+ import"./packager-tool-8ba22j6n.js";
94
+ import"./packager-tool-14rdgz3c.js";
95
+ import"./packager-tool-jd3v0bh1.js";
96
+ import"./packager-tool-4g87fbz6.js";
104
97
  import {
105
- getFileSystem
106
- } from "./packager-tool-myhbp761.js";
107
- import"./packager-tool-4mna26cc.js";
108
- import"./packager-tool-c23zrhj8.js";
109
- import"./packager-tool-1yh8g550.js";
98
+ genericObjectDiscoveryCommands
99
+ } from "./packager-tool-4zt1s51a.js";
110
100
 
111
101
  // src/services/connector-service.ts
112
102
  class InvalidDetailError extends Error {
@@ -182,8 +172,8 @@ function resolveObjectName(instanceParameters, context, config, connectorKey, de
182
172
  const displayName = cd?.displayName ?? nodeType ?? "<unknown>";
183
173
  const operation = typeof instanceParameters.operation === "string" ? instanceParameters.operation : "Create";
184
174
  throw new InvalidDetailError(`objectName is required for the generic '${displayName}' activity. Run:
185
- ` + ` uip is resources list ${connectorKey} --operation ${operation} --connection-id ${config.connectionId}
186
- ` + `to enumerate valid object names, then pass it as --detail.objectName (e.g. "objectName": "Account").`);
175
+ ` + genericObjectDiscoveryCommands(connectorKey, config.connectionId, operation).map((command) => ` ${command}
176
+ `).join("") + `to find a valid object name, then pass it as --detail.objectName (e.g. "objectName": "Account").`);
187
177
  }
188
178
  function resolveTriggerObjectName(context, config, connectorKey, operation, nodeType) {
189
179
  const fromContext = getContextValue(context, "objectName");
@@ -208,19 +198,21 @@ function extractInstanceParameters(definitions, nodeType) {
208
198
  throw new Error(`Malformed configuration JSON in definition for '${nodeType}': ${err instanceof Error ? err.message : String(err)}`);
209
199
  }
210
200
  }
211
- function ensureConnectionBindings(workflow, connectorKey, connectionId, folderKey) {
201
+ function ensureConnectionBindings(workflow, connectorKey, connectionId, folderKey, resourceSubType) {
212
202
  const liveConnectionKeys = collectConfiguredConnectionKeys(workflow);
213
203
  upsertConnectionResourceBinding(workflow, {
214
204
  name: `${connectorKey} connection`,
215
205
  propertyAttribute: "ConnectionId",
216
206
  resourceKey: connectionId,
217
- default: connectionId
207
+ default: connectionId,
208
+ resourceSubType
218
209
  }, liveConnectionKeys);
219
210
  upsertConnectionResourceBinding(workflow, {
220
211
  name: "FolderKey",
221
212
  propertyAttribute: "FolderKey",
222
213
  resourceKey: connectionId,
223
- default: folderKey
214
+ default: folderKey,
215
+ resourceSubType
224
216
  }, liveConnectionKeys);
225
217
  }
226
218
  function collectConfiguredConnectionKeys(workflow) {
@@ -228,9 +220,16 @@ function collectConfiguredConnectionKeys(workflow) {
228
220
  const collect = (nodes) => {
229
221
  for (const node of nodes ?? []) {
230
222
  const detail = node.inputs?.detail;
231
- const key = detail?.connectionResourceId;
232
- if (typeof key === "string" && key.length > 0)
233
- keys.add(key);
223
+ if (isManagedHttpType(node.type ?? "") && detail?.connectionId === IMPLICIT_CONNECTION) {
224
+ keys.add("");
225
+ }
226
+ for (const key of [
227
+ detail?.connectionResourceId,
228
+ orchestratorConnectionKey(workflow.definitions, node)
229
+ ]) {
230
+ if (typeof key === "string" && key.length > 0)
231
+ keys.add(key);
232
+ }
234
233
  }
235
234
  };
236
235
  collect(workflow.nodes);
@@ -243,50 +242,62 @@ function collectConfiguredConnectionKeys(workflow) {
243
242
  function upsertConnectionResourceBinding(workflow, spec, liveConnectionKeys) {
244
243
  const bindings = workflow.bindings ?? [];
245
244
  const sameSlot = bindings.filter((b) => b.name === spec.name && b.resource?.toLowerCase() === "connection" && b.propertyAttribute === spec.propertyAttribute);
245
+ const claim = (row) => {
246
+ const rekeyed = row.resourceKey !== spec.resourceKey;
247
+ row.resource = "connection";
248
+ row.resourceKey = spec.resourceKey;
249
+ row.default = spec.default;
250
+ if (spec.resourceSubType !== undefined) {
251
+ row.resourceSubType = spec.resourceSubType;
252
+ } else if (rekeyed) {
253
+ delete row.resourceSubType;
254
+ }
255
+ };
246
256
  const exact = sameSlot.find((b) => b.resourceKey === spec.resourceKey);
247
257
  if (exact) {
248
- exact.resource = "connection";
249
- exact.default = spec.default;
258
+ claim(exact);
250
259
  return;
251
260
  }
252
- const claimable = sameSlot.find((b) => !b.resourceKey) ?? sameSlot.find((b) => !liveConnectionKeys.has(b.resourceKey));
261
+ const isFree = (b) => !liveConnectionKeys.has(b.resourceKey ?? "");
262
+ const claimable = sameSlot.find((b) => !b.resourceKey && isFree(b)) ?? sameSlot.find(isFree);
253
263
  if (claimable) {
254
- claimable.resource = "connection";
255
- claimable.resourceKey = spec.resourceKey;
256
- claimable.default = spec.default;
264
+ claim(claimable);
257
265
  return;
258
266
  }
259
267
  const fresh = {
260
- id: `b${generateRandomId(8)}`,
268
+ id: `b${generateRandomId2(8)}`,
261
269
  name: spec.name,
262
270
  type: "string",
263
271
  resource: "connection",
264
272
  resourceKey: spec.resourceKey,
265
273
  default: spec.default,
266
- propertyAttribute: spec.propertyAttribute
274
+ propertyAttribute: spec.propertyAttribute,
275
+ ...spec.resourceSubType !== undefined && {
276
+ resourceSubType: spec.resourceSubType
277
+ }
267
278
  };
268
- addBinding(workflow, fresh);
279
+ addBinding2(workflow, fresh);
269
280
  }
270
281
  function addManualModeImplicitBindings(workflow, connectorKey) {
271
282
  const connBinding = {
272
- id: `b${generateRandomId(8)}`,
283
+ id: `b${generateRandomId2(8)}`,
273
284
  name: `${connectorKey} connection`,
274
285
  type: "string",
275
286
  resource: "connection",
276
287
  resourceKey: "",
277
- default: "ImplicitConnection",
288
+ default: IMPLICIT_CONNECTION,
278
289
  propertyAttribute: "ConnectionId"
279
290
  };
280
291
  const folderBinding = {
281
- id: `b${generateRandomId(8)}`,
292
+ id: `b${generateRandomId2(8)}`,
282
293
  name: "FolderKey",
283
294
  type: "string",
284
295
  resource: "connection",
285
296
  resourceKey: "",
286
297
  propertyAttribute: "FolderKey"
287
298
  };
288
- addBinding(workflow, connBinding);
289
- addBinding(workflow, folderBinding);
299
+ addBinding2(workflow, connBinding);
300
+ addBinding2(workflow, folderBinding);
290
301
  }
291
302
  function solutionDirOf(fs, flowFilePath) {
292
303
  const projectDir = fs.path.dirname(fs.path.resolve(flowFilePath));
@@ -358,24 +369,10 @@ function applyResolvedFolderKeys(detail, resolved) {
358
369
  }
359
370
  }
360
371
  function upsertSolutionResourceBinding(workflow, spec) {
361
- const bindings = workflow.bindings ?? [];
362
- const existing = bindings.find((b) => b.resource === spec.resource && b.resourceKey === spec.resourceKey && b.propertyAttribute === spec.propertyAttribute);
363
- if (existing) {
364
- existing.name = spec.name;
365
- existing.default = spec.default;
366
- return existing;
367
- }
368
- const fresh = {
369
- id: `b${generateRandomId(8)}`,
370
- name: spec.name,
371
- type: "string",
372
- resource: spec.resource,
373
- resourceKey: spec.resourceKey,
374
- ...spec.default ? { default: spec.default } : {},
375
- propertyAttribute: spec.propertyAttribute
376
- };
377
- addBinding(workflow, fresh);
378
- return fresh;
372
+ const { binding, created } = upsertResourceBinding(workflow.bindings ?? [], spec, () => `b${generateRandomId2(8)}`);
373
+ if (created)
374
+ addBinding2(workflow, binding);
375
+ return binding;
379
376
  }
380
377
  function promoteResourceBindings(workflow, detail, storedBindings, resolved) {
381
378
  for (const plan of planResourceBindings(storedBindings, resolved)) {
@@ -399,13 +396,12 @@ function persistActivityBindings(workflow, detail, bindings, resolved) {
399
396
  detail.bindings = stored;
400
397
  promoteResourceBindings(workflow, detail, stored, resolved);
401
398
  }
402
- async function createConnectionResourceFile(fs, flowFilePath, connectionId, connectorKey) {
399
+ async function createConnectionResourceFile(fs, flowFilePath, connectionId, connectorKey, connInfo) {
403
400
  const solutionDir = solutionDirOf(fs, flowFilePath);
404
- const [fetchErr, connInfo] = await catchError(fetchConnectionInfo(connectionId));
405
- const connectionName = fetchErr ? connectionId : connInfo.name;
406
- const connectorName = fetchErr ? connectorKey : connInfo.connectorName;
407
- const connectorVersion = fetchErr ? null : connInfo.connectorVersion;
408
- const pollingInterval = fetchErr ? null : connInfo.pollingInterval;
401
+ const connectionName = connInfo?.name ?? connectionId;
402
+ const connectorName = connInfo?.connectorName ?? connectorKey;
403
+ const connectorVersion = connInfo?.connectorVersion ?? null;
404
+ const pollingInterval = connInfo?.pollingInterval ?? null;
409
405
  const resourceDir = fs.path.join(solutionDir, "resources", "solution_folder", "connection", connectorKey);
410
406
  const resourcePath = fs.path.join(resourceDir, `${connectionName}.json`);
411
407
  if (await fs.exists(resourcePath)) {
@@ -414,7 +410,7 @@ async function createConnectionResourceFile(fs, flowFilePath, connectionId, conn
414
410
  if (await hasConnectionResourceWithKey(fs, resourceDir, connectionId)) {
415
411
  return;
416
412
  }
417
- await fs.mkdir(resourceDir, { recursive: true });
413
+ await fs.mkdir(resourceDir);
418
414
  const resourceFile = {
419
415
  docVersion: "1.0.0",
420
416
  resource: {
@@ -449,10 +445,10 @@ async function hasConnectionResourceWithKey(fs, resourceDir, connectionId) {
449
445
  for (const file of await fs.readdir(resourceDir)) {
450
446
  if (!file.endsWith(".json"))
451
447
  continue;
452
- const [readErr, raw] = await catchError(fs.readFile(fs.path.join(resourceDir, file), "utf-8"));
448
+ const [readErr, raw] = await catchError2(fs.readFile(fs.path.join(resourceDir, file), "utf-8"));
453
449
  if (readErr || !raw)
454
450
  continue;
455
- const [parseErr, parsed] = catchError(() => JSON.parse(raw));
451
+ const [parseErr, parsed] = catchError2(() => JSON.parse(raw));
456
452
  if (!parseErr && parsed?.resource?.key === connectionId) {
457
453
  return true;
458
454
  }
@@ -603,63 +599,8 @@ function validateConnectorTriggerDetail(config) {
603
599
  function isManagedHttpType(nodeType) {
604
600
  return nodeType === "core.action.http.v2";
605
601
  }
606
- var VALID_HTTP_METHODS = new Set([
607
- "GET",
608
- "POST",
609
- "PUT",
610
- "PATCH",
611
- "DELETE",
612
- "OPTIONS",
613
- "HEAD"
614
- ]);
615
- var VALID_MANAGED_HTTP_KEYS = new Set([
616
- "authentication",
617
- "method",
618
- "url",
619
- "connectionId",
620
- "folderKey",
621
- "targetConnector",
622
- "headers",
623
- "query",
624
- "body"
625
- ]);
626
602
  function validateManagedHttpDetail(config) {
627
- const errors = [];
628
- const auth = config.authentication;
629
- if (auth !== "connector" && auth !== "manual") {
630
- errors.push('authentication is required ("connector" or "manual")');
631
- }
632
- if (typeof config.method !== "string" || !VALID_HTTP_METHODS.has(config.method)) {
633
- errors.push(`method must be one of: ${[...VALID_HTTP_METHODS].join(", ")}`);
634
- }
635
- if (auth === "connector") {
636
- if (typeof config.connectionId !== "string" || !config.connectionId) {
637
- errors.push("connectionId is required for connector mode");
638
- }
639
- if (typeof config.folderKey !== "string" || !config.folderKey) {
640
- errors.push("folderKey is required for connector mode");
641
- }
642
- if (typeof config.targetConnector !== "string" || !config.targetConnector) {
643
- errors.push("targetConnector is required for connector mode");
644
- }
645
- if (config.url !== undefined && typeof config.url !== "string") {
646
- errors.push("url must be a string");
647
- }
648
- } else if (auth === "manual") {
649
- if (typeof config.url !== "string" || !config.url) {
650
- errors.push("url is required for manual mode");
651
- }
652
- }
653
- for (const key of ["headers", "query"]) {
654
- const val = config[key];
655
- if (val !== undefined && (typeof val !== "object" || val === null || Array.isArray(val))) {
656
- errors.push(`${key} must be a JSON object`);
657
- }
658
- }
659
- const unknownKeys = Object.keys(config).filter((k) => !VALID_MANAGED_HTTP_KEYS.has(k));
660
- if (unknownKeys.length > 0) {
661
- errors.push(`Unknown keys: ${unknownKeys.join(", ")}. Valid keys: ${[...VALID_MANAGED_HTTP_KEYS].join(", ")}`);
662
- }
603
+ const errors = managedHttpDetailErrors(config);
663
604
  if (errors.length > 0) {
664
605
  throw new InvalidDetailError(`Invalid --detail:
665
606
  - ${errors.join(`
@@ -671,52 +612,62 @@ function configureManagedHttp(workflow, node, config) {
671
612
  const definitions = workflow.definitions ?? [];
672
613
  const context = getModelContext(node, definitions);
673
614
  const activityTypeId = extractActivityTypeId(context) ?? extractActivityTypeIdFromDefinition(definitions, node.type ?? "");
674
- const bodyParameters = {
675
- authentication: config.authentication,
676
- method: config.method
677
- };
678
- if (config.authentication === "connector") {
679
- bodyParameters.targetConnector = config.targetConnector;
680
- bodyParameters.connection = config.connectionId;
681
- if (config.url !== undefined) {
682
- bodyParameters.path = config.url;
683
- bodyParameters.url = config.url;
684
- }
685
- } else {
686
- bodyParameters.url = config.url;
687
- }
688
- if (config.headers !== undefined)
689
- bodyParameters.headers = config.headers;
690
- if (config.query !== undefined)
691
- bodyParameters.query = config.query;
692
- if (config.body !== undefined)
693
- bodyParameters.body = config.body;
615
+ const bodyParameters = buildManagedHttpBodyParameters(config);
694
616
  const detail = {
695
- connector: MANAGED_HTTP_CONNECTOR_KEY,
696
- connectionId: config.authentication === "connector" ? config.connectionId : "ImplicitConnection",
617
+ connector: MANAGED_HTTP_CONNECTOR_KEY2,
618
+ connectionId: config.authentication === "connector" ? config.connectionId : IMPLICIT_CONNECTION,
697
619
  connectionResourceId: config.authentication === "connector" ? config.connectionId : null,
698
620
  connectionFolderKey: config.authentication === "connector" ? config.folderKey : null,
699
621
  method: "POST",
700
- endpoint: "/http-request",
622
+ endpoint: MANAGED_HTTP_ENDPOINT,
701
623
  bodyParameters,
702
- configuration: `=jsonString:${JSON.stringify(buildManagedHttpEssentialConfiguration())}`,
624
+ configuration: guardJsonString(JSON.stringify(buildManagedHttpEssentialConfiguration2())),
703
625
  ...activityTypeId ? { uiPathActivityTypeId: activityTypeId } : {},
704
626
  errorState: { issues: [] },
705
- telemetryData: {
706
- connectorKey: MANAGED_HTTP_CONNECTOR_KEY,
707
- connectorName: "HTTP",
708
- operationType: "create",
709
- objectName: "http-request",
710
- objectDisplayName: "HTTP Request",
711
- primaryKeyName: ""
712
- }
627
+ telemetryData: { ...MANAGED_HTTP_TELEMETRY }
713
628
  };
714
629
  node.inputs = { ...node.inputs ?? {}, detail };
715
630
  if (config.authentication === "connector") {
716
- ensureConnectionBindings(workflow, MANAGED_HTTP_CONNECTOR_KEY, config.connectionId, config.folderKey);
631
+ ensureConnectionBindings(workflow, MANAGED_HTTP_CONNECTOR_KEY2, config.connectionId, config.folderKey);
717
632
  } else {
718
- addManualModeImplicitBindings(workflow, MANAGED_HTTP_CONNECTOR_KEY);
633
+ addManualModeImplicitBindings(workflow, MANAGED_HTTP_CONNECTOR_KEY2);
634
+ }
635
+ }
636
+ var VALID_ORCHESTRATOR_CONNECTION_KEYS = new Set([
637
+ "connectionId",
638
+ "folderKey"
639
+ ]);
640
+ async function configureOrchestratorConnection(workflow, node, field, rawDetail) {
641
+ const errors = [];
642
+ const { connectionId, folderKey } = rawDetail;
643
+ if (typeof connectionId !== "string" || !connectionId) {
644
+ errors.push("connectionId is required");
719
645
  }
646
+ if (folderKey !== undefined && (typeof folderKey !== "string" || !folderKey)) {
647
+ errors.push("folderKey must be a non-empty string");
648
+ }
649
+ const unknownKeys = Object.keys(rawDetail).filter((k) => !VALID_ORCHESTRATOR_CONNECTION_KEYS.has(k));
650
+ if (unknownKeys.length > 0) {
651
+ errors.push(`Unknown keys: ${unknownKeys.join(", ")}. Valid keys: ${[...VALID_ORCHESTRATOR_CONNECTION_KEYS].join(", ")}`);
652
+ }
653
+ if (errors.length > 0) {
654
+ throw new InvalidDetailError(`Invalid --detail:
655
+ - ${errors.join(`
656
+ - `)}`);
657
+ }
658
+ const id = connectionId;
659
+ const [fetchErr, info] = await catchError2(fetchConnectionInfo2(id));
660
+ if (!fetchErr && info.connectorKey && info.connectorKey !== field.connectorKey) {
661
+ throw new InvalidDetailError(`Connection '${id}' belongs to connector '${info.connectorKey}'. Node '${node.id}' needs a '${field.connectorKey}' connection.`);
662
+ }
663
+ const folder = folderKey ?? info?.folderKey;
664
+ if (!folder) {
665
+ const reason = fetchErr ? `: ${extractErrorMessageSync(fetchErr)}` : "";
666
+ throw new InvalidDetailError(`Could not read the folder of connection '${id}'${reason}. Pass folderKey in --detail.`);
667
+ }
668
+ node.inputs = { ...node.inputs, connectionId: id };
669
+ ensureConnectionBindings(workflow, field.bindingConnectorKey, id, folder, field.connectorKey);
670
+ return { connectionId: id, connection: fetchErr ? undefined : info };
720
671
  }
721
672
  function hasFileResponseField(metadata, method) {
722
673
  const fieldsObj = metadata?.fields ?? {};
@@ -960,16 +911,26 @@ function substituteDetailFilter(tree) {
960
911
  throw error;
961
912
  }
962
913
  }
963
- async function configureActivity(workflow, node, config, solutionDir) {
914
+ async function fetchConnectionIfReachable(connectionId) {
915
+ if (!connectionId)
916
+ return;
917
+ const [error, info] = await catchError2(fetchConnectionInfo2(connectionId));
918
+ return error ? undefined : info;
919
+ }
920
+ async function configureActivity(workflow, node, config, solutionDir, connection) {
921
+ const warnings = [];
964
922
  const definitions = workflow.definitions ?? [];
965
923
  const context = getModelContext(node, definitions);
966
924
  const connectorKey = getContextValue(context, "connectorKey") ?? "";
925
+ if (connection) {
926
+ assertConnectionConnector2(config.connectionId, connection, connectorKey, `"${node.type ?? ""}"`);
927
+ }
967
928
  const activityTypeId = extractActivityTypeId(context) ?? extractActivityTypeIdFromDefinition(definitions, node.type ?? "");
968
929
  const instanceParameters = extractInstanceParameters(definitions, node.type ?? "");
969
930
  if (!instanceParameters) {
970
931
  throw new Error(`No instanceParameters found in definition for "${node.type}" — cannot build configuration`);
971
932
  }
972
- const isV4Activity = isV4ActivityConfiguration(instanceParameters);
933
+ const isV4Activity = isV4ActivityConfiguration2(instanceParameters);
973
934
  const inline = getInlineActivityConfiguration(node);
974
935
  let objectName;
975
936
  if (isV4Activity) {
@@ -987,7 +948,7 @@ async function configureActivity(workflow, node, config, solutionDir) {
987
948
  connectionFolderKey: config.folderKey,
988
949
  ...isV4Activity && {
989
950
  activityContext: {
990
- version: ACTIVITY_VERSION_V4,
951
+ version: ACTIVITY_VERSION_V42,
991
952
  ...inline && { source: INLINE_ACTIVITY_SOURCE },
992
953
  scriptRef: inline?.scriptRef ?? objectName
993
954
  }
@@ -1012,13 +973,29 @@ async function configureActivity(workflow, node, config, solutionDir) {
1012
973
  if (isGeneric && typeof instanceParameters.operation === "string") {
1013
974
  resolvedInstanceParameters.operation = instanceParameters.operation.toLowerCase();
1014
975
  }
1015
- const [metaError, metadata] = inline ? [null, inline.metadata] : await catchError(isV4Activity ? fetchConnectorActivityMetadataV4(connectorKey, objectName) : fetchConnectorMetadata(connectorKey, objectName, config.connectionId));
976
+ const [metaError, metadata] = inline ? [null, inline.metadata] : await catchError2(isV4Activity ? fetchConnectorActivityMetadataV42(connectorKey, objectName) : fetchConnectorMetadata2(connectorKey, objectName, config.connectionId));
1016
977
  if (metaError) {
1017
978
  throw new Error(`Failed to fetch IS metadata for ${connectorKey}/${objectName}: ${extractErrorMessageSync(metaError)}`);
1018
979
  }
980
+ const external = externalExecutionOf(metadata);
981
+ if (external) {
982
+ detail.executionType = external.executionType;
983
+ if (external.eventMode)
984
+ detail.eventMode = external.eventMode;
985
+ if (external.eventType)
986
+ detail.eventType = external.eventType;
987
+ const warning = externalExecutionWarning(external, `${connectorKey}/${objectName}`);
988
+ if (warning)
989
+ warnings.push(warning);
990
+ }
1019
991
  const methodMap = metadata?.metadata?.method ?? {};
1020
- const methodInfo = methodMap[config.method] ?? Object.values(methodMap).find((m) => m.method === config.method);
992
+ const manifestMethod = instanceParameters.httpMethod;
993
+ const metadataMethodKey = typeof manifestMethod === "string" && manifestMethod in methodMap ? manifestMethod : (config.method in methodMap) ? config.method : Object.keys(methodMap).find((key) => methodMap[key]?.method === config.method) ?? config.method;
994
+ const methodInfo = methodMap[metadataMethodKey];
1021
995
  if (methodInfo) {
996
+ if (typeof methodInfo.method === "string" && methodInfo.method) {
997
+ detail.method = normalizeHttpMethod(methodInfo.method);
998
+ }
1022
999
  let filterInputName = null;
1023
1000
  let filterVariables = {};
1024
1001
  if (isV4Activity) {
@@ -1028,7 +1005,7 @@ async function configureActivity(workflow, node, config, solutionDir) {
1028
1005
  if (config.customFieldsRequestDetails) {
1029
1006
  throw new InvalidDetailError(`customFieldsRequestDetails is not supported for the 4.0.0 activity "${node.type}" — design-time ObjectActions are v3-only. Drop it from --detail.`);
1030
1007
  }
1031
- detail.configuration = `=jsonString:${JSON.stringify(buildActivityEssentialConfiguration(resolvedInstanceParameters, methodInfo))}`;
1008
+ detail.configuration = guardJsonString(JSON.stringify(buildActivityEssentialConfiguration2(resolvedInstanceParameters, methodInfo)));
1032
1009
  } else {
1033
1010
  const filterBuilderParam = (methodInfo.parameters ?? []).find((p) => p.design?.component === "FilterBuilder");
1034
1011
  let rawJsFilterParamName = null;
@@ -1072,7 +1049,7 @@ async function configureActivity(workflow, node, config, solutionDir) {
1072
1049
  solutionDir
1073
1050
  });
1074
1051
  applyResolvedFolderKeys(detail, resolvedResources);
1075
- assertActivityMetadataResolved(activityClient.getEssentialConfiguration().essentialConfiguration, config.connectionId);
1052
+ assertActivityMetadataResolved2(activityClient.getEssentialConfiguration().essentialConfiguration, config.connectionId);
1076
1053
  if (filterInputName && authoredFilterTree) {
1077
1054
  const compiledFilter = activityClient.getCompiledFilter(filterInputName);
1078
1055
  assertCompiledFilterResolvable(compiledFilter, filterInputName, authoredFilterTree);
@@ -1082,15 +1059,15 @@ async function configureActivity(workflow, node, config, solutionDir) {
1082
1059
  };
1083
1060
  if (Object.keys(filterVariables).length > 0) {
1084
1061
  detail.filterVariables = filterVariables;
1085
- await applySavedFilterTree(activityClient, filterInputName, authoredFilterTree);
1062
+ await applySavedFilterTree2(activityClient, filterInputName, authoredFilterTree);
1086
1063
  }
1087
1064
  }
1088
1065
  const { essentialConfiguration } = activityClient.getEssentialConfiguration();
1089
- detail.configuration = `=jsonString:${JSON.stringify({ essentialConfiguration })}`;
1066
+ detail.configuration = guardJsonString(JSON.stringify({ essentialConfiguration }));
1090
1067
  persistActivityBindings(workflow, detail, activityClient.getBindings(), resolvedResources);
1091
1068
  }
1092
1069
  if ((node.type ?? "").startsWith("uipath.agent.resource.tool.connector.")) {
1093
- const { bodyParameters, queryParameters, pathParameters } = buildAgentToolParamsFromMetadata(metadata, config.method);
1070
+ const { bodyParameters, queryParameters, pathParameters } = buildAgentToolParamsFromMetadata(metadata, metadataMethodKey);
1094
1071
  if (!detail.bodyParameters && Object.keys(bodyParameters).length > 0)
1095
1072
  detail.bodyParameters = bodyParameters;
1096
1073
  if (!detail.queryParameters && Object.keys(queryParameters).length > 0)
@@ -1099,8 +1076,8 @@ async function configureActivity(workflow, node, config, solutionDir) {
1099
1076
  detail.pathParameters = pathParameters;
1100
1077
  }
1101
1078
  const params = methodInfo.parameters ?? [];
1102
- const rawMultipartParams = extractMultipartParameters(params);
1103
- const { multipartParams, bodyParameters: cleanedBodyParameters } = inlineMultipartFileValues(rawMultipartParams, detail.bodyParameters);
1079
+ const rawMultipartParams = extractMultipartParameters2(params);
1080
+ const { multipartParams, bodyParameters: cleanedBodyParameters } = inlineMultipartFileValues2(rawMultipartParams, detail.bodyParameters);
1104
1081
  if (multipartParams.length > 0) {
1105
1082
  detail.multipartParameters = multipartParams;
1106
1083
  }
@@ -1109,12 +1086,12 @@ async function configureActivity(workflow, node, config, solutionDir) {
1109
1086
  } else {
1110
1087
  delete detail.bodyParameters;
1111
1088
  }
1112
- const inputMeta = buildInputMetadata(multipartParams, methodInfo.operation, methodInfo.pagination?.maxPageSize, filterInputName && Object.keys(filterVariables).length > 0 ? [filterInputName] : undefined);
1089
+ const inputMeta = buildInputMetadata2(multipartParams, methodInfo.operation, methodInfo.pagination?.maxPageSize, filterInputName && Object.keys(filterVariables).length > 0 ? [filterInputName] : undefined);
1113
1090
  if (inputMeta) {
1114
1091
  detail.inputMetadata = inputMeta;
1115
1092
  }
1116
- patchOutputType(definitions, node, hasFileResponseField(metadata, config.method) ? "file" : isListOperation(methodInfo.operation) ? "array" : "object");
1117
- patchRequiredInputs(workflow, definitions, node, metadata, config.method, {
1093
+ patchOutputType(definitions, node, hasFileResponseField(metadata, metadataMethodKey) ? "file" : isListOperation(methodInfo.operation) ? "array" : "object");
1094
+ patchRequiredInputs(workflow, definitions, node, metadata, metadataMethodKey, {
1118
1095
  objectName,
1119
1096
  path: methodInfo.path,
1120
1097
  operation: methodInfo.operation
@@ -1124,11 +1101,15 @@ async function configureActivity(workflow, node, config, solutionDir) {
1124
1101
  }
1125
1102
  node.inputs = { ...node.inputs ?? {}, detail };
1126
1103
  ensureConnectionBindings(workflow, connectorKey, config.connectionId, config.folderKey);
1104
+ return warnings;
1127
1105
  }
1128
- async function configureTrigger(workflow, node, config, solutionDir) {
1106
+ async function configureTrigger(workflow, node, config, solutionDir, connection) {
1129
1107
  const definitions = workflow.definitions ?? [];
1130
1108
  const context = getModelContext(node, definitions);
1131
1109
  const connectorKey = getContextValue(context, "connectorKey") ?? "";
1110
+ if (connection) {
1111
+ assertConnectionConnector2(config.connectionId, connection, connectorKey, `"${node.type ?? ""}"`);
1112
+ }
1132
1113
  const operation = getContextValue(context, "operation") ?? "";
1133
1114
  const objectName = resolveTriggerObjectName(context, config, connectorKey, operation, node.type ?? "");
1134
1115
  const activityTypeId = extractActivityTypeIdFromDefinition(definitions, node.type ?? "");
@@ -1175,16 +1156,16 @@ async function configureTrigger(workflow, node, config, solutionDir) {
1175
1156
  solutionDir
1176
1157
  });
1177
1158
  applyResolvedFolderKeys(detail, resolvedResources);
1178
- assertActivityMetadataResolved(triggerClient.getEssentialConfiguration().essentialConfiguration, config.connectionId);
1159
+ assertActivityMetadataResolved2(triggerClient.getEssentialConfiguration().essentialConfiguration, config.connectionId);
1179
1160
  const compiledTriggerFilter = triggerClient.getCompiledFilter("filter");
1180
1161
  assertCompiledFilterResolvable(compiledTriggerFilter, "filter", filterTree);
1181
1162
  detail.filterExpression = compiledTriggerFilter;
1182
1163
  if (filterTree && Object.keys(filterVariables).length > 0) {
1183
1164
  detail.filterVariables = filterVariables;
1184
- await applySavedFilterTree(triggerClient, "filter", filterTree);
1165
+ await applySavedFilterTree2(triggerClient, "filter", filterTree);
1185
1166
  }
1186
1167
  const { essentialConfiguration } = triggerClient.getEssentialConfiguration();
1187
- detail.configuration = `=jsonString:${JSON.stringify({ essentialConfiguration })}`;
1168
+ detail.configuration = guardJsonString(JSON.stringify({ essentialConfiguration }));
1188
1169
  persistActivityBindings(workflow, detail, triggerClient.getBindings(), resolvedResources);
1189
1170
  if (activityTypeId)
1190
1171
  detail.uiPathActivityTypeId = activityTypeId;
@@ -1193,7 +1174,7 @@ async function configureTrigger(workflow, node, config, solutionDir) {
1193
1174
  ensureConnectionBindings(workflow, connectorKey, config.connectionId, config.folderKey);
1194
1175
  }
1195
1176
  async function configureConnectorNode(filePath, nodeId, rawDetail) {
1196
- const { workflow, refMap } = await readFlowWorkflow(filePath);
1177
+ const { workflow, refMap } = await readFlowWorkflow2(filePath);
1197
1178
  const node = workflow.nodes.find((n) => n.id === nodeId);
1198
1179
  if (!node)
1199
1180
  throw new Error(`Node '${nodeId}' not found`);
@@ -1202,11 +1183,11 @@ async function configureConnectorNode(filePath, nodeId, rawDetail) {
1202
1183
  if (isManagedHttpType(nodeType)) {
1203
1184
  const config = validateManagedHttpDetail(rawDetail);
1204
1185
  configureManagedHttp(workflow, node, config);
1205
- await writeFlowWorkflow(filePath, workflow, refMap);
1206
- const fs2 = getFileSystem();
1207
- await regenerateBindingsFile(fs2, filePath);
1186
+ await writeFlowWorkflow2(filePath, workflow, refMap);
1187
+ const fs = getFileSystem();
1188
+ await regenerateBindingsFile(fs, filePath);
1208
1189
  if (config.authentication === "connector") {
1209
- await createConnectionResourceFile(fs2, filePath, config.connectionId, config.targetConnector);
1190
+ await createConnectionResourceFile(fs, filePath, config.connectionId, config.targetConnector, await fetchConnectionIfReachable(config.connectionId));
1210
1191
  }
1211
1192
  return {
1212
1193
  bindingsCreated: workflow.bindings.length,
@@ -1214,7 +1195,7 @@ async function configureConnectorNode(filePath, nodeId, rawDetail) {
1214
1195
  ...crossNodeBindingWarnings(node, nodeIds)
1215
1196
  };
1216
1197
  }
1217
- if (isEntityNode({ nodeType })) {
1198
+ if (isEntityNode2({ nodeType })) {
1218
1199
  const entityName = rawDetail.entityName;
1219
1200
  if (typeof entityName !== "string" || entityName.trim() === "") {
1220
1201
  throw new InvalidDetailError(`Data Fabric node '${nodeId}' needs an entity name: --detail '{"entityName":"<Name>"}'.`);
@@ -1232,12 +1213,12 @@ async function configureConnectorNode(filePath, nodeId, rawDetail) {
1232
1213
  inputs.entityConfig = merged;
1233
1214
  node.inputs = inputs;
1234
1215
  const bindingsBefore = workflow.bindings?.length ?? 0;
1235
- await resolveEntityIdentity(filePath, node);
1236
- for (const entityBinding of createEntityBindings(node)) {
1237
- addBinding(workflow, entityBinding);
1216
+ await resolveEntityIdentity2(filePath, node);
1217
+ for (const entityBinding of createEntityBindings2(node)) {
1218
+ addBinding2(workflow, entityBinding);
1238
1219
  }
1239
1220
  const bindingsCreated = (workflow.bindings?.length ?? 0) - bindingsBefore;
1240
- await writeFlowWorkflow(filePath, workflow, refMap);
1221
+ await writeFlowWorkflow2(filePath, workflow, refMap);
1241
1222
  await regenerateBindingsFile(getFileSystem(), filePath);
1242
1223
  const bound = entityScopeKey(node.inputs?.entityConfig) !== "";
1243
1224
  const warnings = bound ? [] : [
@@ -1249,6 +1230,18 @@ async function configureConnectorNode(filePath, nodeId, rawDetail) {
1249
1230
  ...warnings.length > 0 ? { warnings } : {}
1250
1231
  };
1251
1232
  }
1233
+ const orchestratorField = findOrchestratorConnectionField(workflow.definitions, node);
1234
+ if (orchestratorField) {
1235
+ const { connectionId, connection } = await configureOrchestratorConnection(workflow, node, orchestratorField, rawDetail);
1236
+ await writeFlowWorkflow2(filePath, workflow, refMap);
1237
+ const fs = getFileSystem();
1238
+ await regenerateBindingsFile(fs, filePath);
1239
+ await createConnectionResourceFile(fs, filePath, connectionId, orchestratorField.connectorKey, connection);
1240
+ return {
1241
+ bindingsCreated: workflow.bindings.length,
1242
+ detailPopulated: true
1243
+ };
1244
+ }
1252
1245
  if (!nodeType.startsWith("uipath.connector") && !nodeType.startsWith("uipath.agent.resource.tool.connector.")) {
1253
1246
  throw new Error(`Node '${nodeId}' is not a connector type node, no operation done.`);
1254
1247
  }
@@ -1257,26 +1250,32 @@ async function configureConnectorNode(filePath, nodeId, rawDetail) {
1257
1250
  const pickerRows = nodePickerRows(workflow, node);
1258
1251
  const previousPickerRows = pickerRows.map((binding) => binding.id);
1259
1252
  const detailInput = restorePickerLiterals(pickerRows, rawDetail);
1253
+ const connectionId = rawDetail.connectionId;
1254
+ const connection = await fetchConnectionIfReachable(connectionId);
1255
+ let configureWarnings = [];
1260
1256
  if (isEventDrivenConnectorType(nodeType)) {
1261
1257
  const config = validateConnectorTriggerDetail(detailInput);
1262
- await configureTrigger(workflow, node, config, solutionDir);
1258
+ await configureTrigger(workflow, node, config, solutionDir, connection);
1263
1259
  } else {
1264
1260
  const config = validateConnectorDetail(detailInput);
1265
- await configureActivity(workflow, node, config, solutionDir);
1261
+ configureWarnings = await configureActivity(workflow, node, config, solutionDir, connection);
1266
1262
  }
1267
1263
  dropReleasedPickerRows(workflow, previousPickerRows);
1268
- await writeFlowWorkflow(filePath, workflow, refMap);
1264
+ await writeFlowWorkflow2(filePath, workflow, refMap);
1269
1265
  await regenerateBindingsFile(fs, filePath);
1270
- const connectionId = rawDetail.connectionId;
1271
1266
  const defs = workflow.definitions ?? [];
1272
1267
  const connectorKey = getContextValue(getModelContext(node, defs), "connectorKey");
1273
1268
  if (connectionId && connectorKey) {
1274
- await createConnectionResourceFile(fs, filePath, connectionId, connectorKey);
1269
+ await createConnectionResourceFile(fs, filePath, connectionId, connectorKey, connection);
1275
1270
  }
1271
+ const warnings = [
1272
+ ...configureWarnings,
1273
+ ...(isEventDrivenConnectorType(nodeType) ? undefined : crossNodeBindingWarnings(node, nodeIds).warnings) ?? []
1274
+ ];
1276
1275
  return {
1277
1276
  bindingsCreated: workflow.bindings.length,
1278
1277
  detailPopulated: true,
1279
- ...isEventDrivenConnectorType(nodeType) ? {} : crossNodeBindingWarnings(node, nodeIds)
1278
+ ...warnings.length > 0 ? { warnings } : {}
1280
1279
  };
1281
1280
  }
1282
1281
  function crossNodeBindingWarnings(node, nodeIds) {
@@ -1288,11 +1287,7 @@ function crossNodeBindingWarnings(node, nodeIds) {
1288
1287
  }
1289
1288
  export {
1290
1289
  InvalidDetailError,
1291
- buildAgentToolParamsFromMetadata,
1292
- configureConnectorNode,
1293
- validateConnectorDetail,
1294
- validateConnectorTriggerDetail,
1295
- validateManagedHttpDetail
1290
+ configureConnectorNode
1296
1291
  };
1297
1292
 
1298
- //# debugId=D8F02FE5A99E3D7164756E2164756E21
1293
+ //# debugId=AC17D6779AD7944264756E2164756E21