@uipath/flow-tool 1.206.0-preview.306 → 1.207.0-preview.307

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/README.md +2 -1
  2. package/dist/THIRD-PARTY-NOTICES.md +12 -12
  3. package/dist/{applicationinsights-web-8m26566f.js → applicationinsights-web-c6epsatg.js} +1 -1
  4. package/dist/{authoring-az69rn0j.js → authoring-f5ttjy3d.js} +5 -5
  5. package/dist/{binding-service-jdzw5h8a.js → binding-service-b4kes1cr.js} +37 -34
  6. package/dist/{browser-strategy-gnftxwsf.js → browser-strategy-1nk8hgcf.js} +1 -1
  7. package/dist/case-catalog-h4fjn6q3.js +304 -0
  8. package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
  9. package/dist/{connector-service-yq01bg3n.js → connector-service-xjszs9v3.js} +156 -76
  10. package/dist/{conversion-7O2PDOQB-xx5zfw6n.js → conversion-A2KZVSOA-313011c5.js} +256 -90
  11. package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
  12. package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-NX7YTOSY-xvwqrst4.js} +1282 -10
  13. package/dist/{de-2BEKRUMY-MD7L477H-7mwat6r6.js → de-HF4GJ4EK-xrrajtht.js} +1277 -15
  14. package/dist/{de-VQWT6L5Y-mch4qwyv.js → de-IQ44WEAK-ayb953tp.js} +19 -4
  15. package/dist/{de-3CU65EDB-r7r10am9.js → de-T4OCQPNU-hrqdjart.js} +6 -6
  16. package/dist/{debug-conversation-trigger-62ebex43.js → debug-conversation-trigger-j20ms2xc.js} +4 -9
  17. package/dist/{debug-http-client-ykzhg1zx.js → debug-http-client-fypqjmfs.js} +6 -5
  18. package/dist/{debug-service-xq8vhrkq.js → debug-service-zv5hj0cx.js} +11 -6
  19. package/dist/{edge-service-w5jbtehr.js → edge-service-8jrhdfvf.js} +41 -31
  20. package/dist/{elk.bundled-phy0zc81.js → elk.bundled-pfmz610v.js} +1 -1
  21. package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
  22. package/dist/{en-LAVDF7IQ-ba7wzsxp.js → en-5JIPZTS5-v0f9wmd2.js} +4 -2
  23. package/dist/{en-X6T4SP2Y-FPGCJIFV-wsbs6fqx.js → en-ETY46SDS-RI6EZCN6-x64e1cks.js} +67 -3
  24. package/dist/{en-X6T4SP2Y-xe57av1w.js → en-ETY46SDS-yfqhqvbx.js} +66 -2
  25. package/dist/{en-WPCQ4JKF-jnj0q4e1.js → en-JZXY3PYE-m54g0zx7.js} +4 -4
  26. package/dist/{en-LQHKFSEY-jz2knr92.js → en-LQHKFSEY-bypy1p39.js} +1 -1
  27. package/dist/{en-U2NSIIZN-whenw6wh.js → en-T6VSEF3E-1hq4zfrt.js} +5 -3
  28. package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
  29. package/dist/{es-7ZTQTGKN-TXQBFYRA-q5v6wcmn.js → es-IYP2OLUY-7SKYGF6A-rd9jrktp.js} +1272 -11
  30. package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
  31. package/dist/{es-MX-S2RFDGDE-x9r0tv30.js → es-MX-A2DFN7CA-q5m62f60.js} +19 -4
  32. package/dist/{es-MX-IHGRIEWH-23X37OPS-vx539dfs.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -15
  33. package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-D74A6FRL-y7xh0r57.js} +1281 -10
  34. package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
  35. package/dist/{es-MX-F7ZEHSNE-gxpm47vv.js → es-MX-YQNHSXDT-fd5ybreb.js} +6 -6
  36. package/dist/{es-EP563JWQ-1agj5n4e.js → es-TNUPGHGG-886me0sq.js} +19 -4
  37. package/dist/{es-KHVY67FO-natcvmmm.js → es-YHECPVFB-7jsrxa01.js} +6 -6
  38. package/dist/extraction-availability-service-h08mngty.js +343 -0
  39. package/dist/{first-party-service-6b9ajm57.js → first-party-service-qfg2m05s.js} +1 -1
  40. package/dist/{flow-api-1hr7z6qc.js → flow-api-bmg7beey.js} +15 -12
  41. package/dist/{flow-debug-service-vt2k0v46.js → flow-debug-service-jb9jxat1.js} +232 -156
  42. package/dist/flow-eval-node-target-scxb918a.js +31 -0
  43. package/dist/flow-eval-run-api-g6sphtf3.js +11 -0
  44. package/dist/{flow-eval-run-service-vh2041qg.js → flow-eval-run-service-n68xb9sk.js} +116 -119
  45. package/dist/{flow-eval-service-q2zp54gq.js → flow-eval-service-88qyrg7d.js} +141 -337
  46. package/dist/{flow-init-sdk-source-vg1ckdrf.js → flow-init-sdk-source-t2q2w6v7.js} +5 -5
  47. package/dist/flow-init-service-v6jvdmqa.js +27 -0
  48. package/dist/flow-io-4z79xnb3.js +29 -0
  49. package/dist/{flow-migrate-service-wgrz2msp.js → flow-migrate-service-gbdh07zh.js} +20 -20
  50. package/dist/{flow-pack-service-kze10925.js → flow-pack-service-gca3ekj7.js} +89 -90
  51. package/dist/flow-validate-service-z0z4ndn8.js +49 -0
  52. package/dist/{fr-7LK3QUWT-a94yejcs.js → fr-EPBGOBOP-rs7qy97k.js} +19 -4
  53. package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-3ANDQPI3-gjhmym96.js} +1282 -10
  54. package/dist/{fr-7ZDL4MVO-CXMRZDOF-b816xj36.js → fr-NISALSPL-vzfmygd7.js} +1277 -15
  55. package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
  56. package/dist/{fr-I42FODC5-p80x5v4b.js → fr-W3AFCEDL-cjfr0xqp.js} +6 -6
  57. package/dist/{governance-fetcher-y0q4m57j.js → governance-fetcher-26h7eqrk.js} +7 -7
  58. package/dist/{headless-41t9wwb7.js → headless-23ywyx9h.js} +390 -195
  59. package/dist/{hitl-service-8rvw1zsh.js → hitl-service-v94wsz1f.js} +11 -11
  60. package/dist/{index-wss1mf5j.js → index-9a52zr4w.js} +3033 -767
  61. package/dist/{index-t2f7scza.js → index-db1djbzm.js} +12 -8
  62. package/dist/{index-amqqhge1.js → index-ewg6ygg0.js} +1 -1
  63. package/dist/{index-r44xc976.js → index-eyjrdzgx.js} +5 -5
  64. package/dist/{index-7fet3f0s.js → index-h67w2p9p.js} +3 -3
  65. package/dist/index-kwrhrb9p.js +161 -0
  66. package/dist/{index-f5kq7265.js → index-r6crd7tx.js} +6 -4
  67. package/dist/{index-ng011fzs.js → index-r6y07e14.js} +94 -74
  68. package/dist/{index-vvf52vnn.js → index-re7r0ezw.js} +34 -27
  69. package/dist/{index-5y5pbdx5.js → index-sazh9ymk.js} +13 -11
  70. package/dist/{index-5pzp2qeb.js → index-v3w1930f.js} +18 -18
  71. package/dist/{index-d4bdedx3.js → index-ynw2efd8.js} +6 -4
  72. package/dist/index.js +16 -14
  73. package/dist/{index.umd.min-ttg1qc0x.js → index.umd.min-5yxdz5j3.js} +1 -1
  74. package/dist/init.js +18 -17
  75. package/dist/{inline-entity-resolver-aty0xw8s.js → inline-entity-resolver-r7ebmssg.js} +11 -11
  76. package/dist/input-reader-3zvbsn6a.js +12 -0
  77. package/dist/integration-service-fetcher-0vdd4pbb.js +65 -0
  78. package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
  79. package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
  80. package/dist/{ja-LGAM5HKR-NTPKIZEM-aaj773vd.js → ja-HTS2Q4YG-7Q6WUI6H-j8dkhe93.js} +1278 -11
  81. package/dist/{ja-WY2W6733-ayr36h1f.js → ja-HWFIXC2V-gg9xvhsv.js} +19 -4
  82. package/dist/{ja-GI3OUHPZ-28fy60r0.js → ja-WOANIGX4-qnyzk2t8.js} +6 -6
  83. package/dist/{jmespath-wwym30dp.js → jmespath-dbsejrwn.js} +1 -1
  84. package/dist/json-input-pj18qjt0.js +17 -0
  85. package/dist/{known-types-v9sxcq1c.js → known-types-pen5h5kz.js} +4 -4
  86. package/dist/{ko-7B4SUZB7-2SLI636D-khdzwz6c.js → ko-3JFGTMNY-VT6UQ3IS-z5n880em.js} +1272 -11
  87. package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
  88. package/dist/{ko-H2RGQWKJ-9696w762.js → ko-L3BMYD3Q-exfhqfbh.js} +19 -4
  89. package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
  90. package/dist/{ko-RYKAL74T-10m4z8vw.js → ko-RMOVRC7M-whyynn7n.js} +6 -6
  91. package/dist/library-option-9fqvdh8v.js +14 -0
  92. package/dist/localization-axzmx1mb.js +45 -0
  93. package/dist/{maestro-automate-entry-d1v5q5mv.js → maestro-automate-entry-mrap5xmt.js} +2 -2
  94. package/dist/manifest-hmeqvk74.js +60 -0
  95. package/dist/node-service-d6211mt9.js +65 -0
  96. package/dist/{node-strategy-wrjxmbzt.js → node-strategy-2r78gtca.js} +2 -2
  97. package/dist/{node-sync-service-6h12t41d.js → node-sync-service-6wbypdgb.js} +22 -15
  98. package/dist/node-w3wny6qw.js +172 -0
  99. package/dist/packager-tool-0x8g8b5r.js +25 -0
  100. package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
  101. package/dist/packager-tool-1yew22sn.js +9 -0
  102. package/dist/{packager-tool-14rdgz3c.js → packager-tool-3sxg16ft.js} +7 -7
  103. package/dist/packager-tool-40bxn7j2.js +63 -0
  104. package/dist/{packager-tool-6an893wm.js → packager-tool-4f4jp7ez.js} +3 -3
  105. package/dist/packager-tool-4gh9ftn8.js +224 -0
  106. package/dist/{packager-tool-pxq0bwp0.js → packager-tool-4hn7v05x.js} +16 -9
  107. package/dist/packager-tool-4skf6ak1.js +31 -0
  108. package/dist/{packager-tool-951nhh3e.js → packager-tool-5n1v6y3q.js} +1 -1
  109. package/dist/{packager-tool-2b0tn4p4.js → packager-tool-6azsz9h8.js} +7 -7
  110. package/dist/{packager-tool-zydkpqta.js → packager-tool-6sqq0mzd.js} +330 -902
  111. package/dist/{packager-tool-54jdtyk4.js → packager-tool-7d6y5paj.js} +11 -11
  112. package/dist/{packager-tool-ac6rvny7.js → packager-tool-7re5d8aq.js} +1139 -466
  113. package/dist/{packager-tool-4w37xezc.js → packager-tool-7tmtjb7p.js} +13 -13
  114. package/dist/{packager-tool-6an563h8.js → packager-tool-7wpb19zf.js} +10 -3
  115. package/dist/packager-tool-8qc7ram5.js +16 -0
  116. package/dist/packager-tool-942v78s9.js +40 -0
  117. package/dist/packager-tool-9tv5cyhr.js +16 -0
  118. package/dist/{packager-tool-7atc775f.js → packager-tool-ajx79m52.js} +1 -1
  119. package/dist/{packager-tool-p7f12rkc.js → packager-tool-b14qj57y.js} +9 -7
  120. package/dist/packager-tool-bbq5kbb9.js +318 -0
  121. package/dist/{packager-tool-xhrm7cgz.js → packager-tool-bcsjm5hv.js} +470 -315
  122. package/dist/{packager-tool-xdaxdc00.js → packager-tool-bn09xgy8.js} +14 -14
  123. package/dist/{packager-tool-m30d5s5s.js → packager-tool-bv24wxxz.js} +24 -10
  124. package/dist/{packager-tool-1qg04b7q.js → packager-tool-bzcphfa8.js} +4 -2
  125. package/dist/packager-tool-c8mn8jr0.js +1060 -0
  126. package/dist/{packager-tool-gdpw0daf.js → packager-tool-dmhmcav3.js} +3773 -2625
  127. package/dist/{packager-tool-vb1ect63.js → packager-tool-e8bxpwdp.js} +21 -21
  128. package/dist/{packager-tool-m1y5ah6s.js → packager-tool-f3htkspn.js} +215 -233
  129. package/dist/{packager-tool-y1bcfvcs.js → packager-tool-frt20zp9.js} +2 -2
  130. package/dist/packager-tool-geh2qybm.js +179 -0
  131. package/dist/{packager-tool-1rhch6b5.js → packager-tool-gjjr2a2w.js} +66 -19
  132. package/dist/{packager-tool-v1q6601f.js → packager-tool-hyx81x30.js} +584 -651
  133. package/dist/{packager-tool-67h9vcvz.js → packager-tool-j6m8nkms.js} +1123 -295
  134. package/dist/{packager-tool-64r7e4ek.js → packager-tool-jjnfwfd4.js} +2 -2
  135. package/dist/packager-tool-kh1taypp.js +41 -0
  136. package/dist/{packager-tool-dc12ytg5.js → packager-tool-krr2x2ny.js} +10 -10
  137. package/dist/{packager-tool-pdt4jmnw.js → packager-tool-m2h98d2z.js} +246 -61
  138. package/dist/{packager-tool-9m5vba43.js → packager-tool-md1vcqh4.js} +233 -14
  139. package/dist/{packager-tool-4g87fbz6.js → packager-tool-mm6a12y4.js} +8 -8
  140. package/dist/{packager-tool-2n6eg5eq.js → packager-tool-mvzswn9n.js} +134 -68
  141. package/dist/{packager-tool-x4xdtsbp.js → packager-tool-n4fky033.js} +15328 -7171
  142. package/dist/{packager-tool-hyd7qpfw.js → packager-tool-npm5tzpt.js} +489 -118
  143. package/dist/packager-tool-p8ncdnsj.js +30 -0
  144. package/dist/{packager-tool-m126jzdd.js → packager-tool-qkdbfkev.js} +14 -11
  145. package/dist/{packager-tool-7mxn3e7j.js → packager-tool-qtz83h01.js} +4 -2
  146. package/dist/{packager-tool-hk0fnvz5.js → packager-tool-qx8wvedy.js} +1 -1
  147. package/dist/{packager-tool-q2kwk5bf.js → packager-tool-qyhvgenw.js} +6 -4
  148. package/dist/{packager-tool-6pyaaxzk.js → packager-tool-rcjtmknf.js} +351 -42
  149. package/dist/{packager-tool-jjkypwge.js → packager-tool-s8jxyjgj.js} +15 -4
  150. package/dist/packager-tool-swvgkcq7.js +5973 -0
  151. package/dist/{packager-tool-fzgfb0jt.js → packager-tool-t0e7fvqz.js} +1228 -759
  152. package/dist/packager-tool-t0zz0jtb.js +423 -0
  153. package/dist/{packager-tool-p123mtfx.js → packager-tool-tgawhrva.js} +58 -16
  154. package/dist/{packager-tool-yewnsyag.js → packager-tool-vg16h3pk.js} +80 -6
  155. package/dist/{packager-tool-dbc4hv4n.js → packager-tool-vtz6gvav.js} +8 -8
  156. package/dist/{packager-tool-f4t73ja0.js → packager-tool-wk6jaz9m.js} +228 -487
  157. package/dist/packager-tool-wvf6b31h.js +50 -0
  158. package/dist/packager-tool-xgh2t48c.js +255 -0
  159. package/dist/{packager-tool-w9bkq7zb.js → packager-tool-xgvp8a8g.js} +10 -10
  160. package/dist/{packager-tool-h1vt1vr2.js → packager-tool-ybn5fymq.js} +2 -2
  161. package/dist/packager-tool-yszyrt27.js +184 -0
  162. package/dist/packager-tool-yx0hy6pt.js +125 -0
  163. package/dist/{packager-tool-ze3fnf3s.js → packager-tool-zap4kd3z.js} +7 -2
  164. package/dist/{packager-tool-dr3zc9n9.js → packager-tool-zgzpqfcs.js} +13 -6
  165. package/dist/{node-tx150jvs.js → packager-tool-zrh55d4c.js} +190 -286
  166. package/dist/packager-tool.js +9 -9
  167. package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-8frvq826.js} +39 -6
  168. package/dist/provision-node-service-b8nkty72.js +86 -0
  169. package/dist/{pt-2RGHDOG4-gwe2ptvg.js → pt-6RCFX6CY-v42k92ey.js} +19 -4
  170. package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
  171. package/dist/{pt-BR-PHLFHMXZ-JFPKUXIZ-1cttmarb.js → pt-BR-7H7BP5DT-IOHWNCIU-kzbjgs8p.js} +1277 -11
  172. package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
  173. package/dist/{pt-BR-JWHVZE6H-gvkknv49.js → pt-BR-HDVM5NFA-azfx4gg9.js} +19 -4
  174. package/dist/{pt-BR-IL3KLBID-m1mvqqzb.js → pt-BR-HJIMGPPX-s18rb4vg.js} +6 -6
  175. package/dist/{pt-VLA5IOHO-8t4pze0h.js → pt-DZG5FPWK-6czrqk2t.js} +6 -6
  176. package/dist/{pt-N7ZTJT4W-GVODJMRX-ek3zjp9k.js → pt-QWGSZKMD-RTKSQCYA-j9wqwb10.js} +1272 -11
  177. package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
  178. package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
  179. package/dist/{ro-FLNXVYJI-ZN43XZKK-zrcvcsj5.js → ro-B7G474JK-9k2jjk88.js} +1271 -15
  180. package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-Q3BAA4S3-1ss8n5t0.js} +1276 -10
  181. package/dist/{ro-53TS7SWG-hnjx1c7b.js → ro-EEKX2X3R-tz9prn67.js} +19 -4
  182. package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
  183. package/dist/{ro-IRNFX376-mh84zk3n.js → ro-SX7RUXGR-kknxsr3g.js} +6 -6
  184. package/dist/ru-FNRVPXE5-7q150qf8.js +7 -0
  185. package/dist/ru-GSCT4ARZ-6OTD7JLB-j2ny4frk.js +12 -0
  186. package/dist/schema-document-service-007f2kw4.js +30 -0
  187. package/dist/{serialization-Z3UYT6BW-c994gtwh.js → serialization-7CB4AREI-b012f3vq.js} +482 -6161
  188. package/dist/services/binding-id-rule.d.ts +13 -0
  189. package/dist/services/binding-resource-types.d.ts +12 -0
  190. package/dist/services/extract-schema/default-schema-document.d.ts +9 -4
  191. package/dist/services/extract-schema/types.d.ts +73 -0
  192. package/dist/services/extract-schema/validate-schema-document.d.ts +75 -0
  193. package/dist/services/flow-scopes.d.ts +15 -0
  194. package/dist/services/flow-structure-checks.d.ts +8 -0
  195. package/dist/services/flow-validate-service.d.ts +44 -11
  196. package/dist/services/idp-processor-provisioning.d.ts +35 -0
  197. package/dist/services/node-service.d.ts +17 -23
  198. package/dist/services/node-validators/extract-schema-validator.d.ts +13 -0
  199. package/dist/services/node-validators/index.d.ts +1 -0
  200. package/dist/services/node-validators/js-expression-syntax-validator.d.ts +2 -1
  201. package/dist/services/node-validators/types.d.ts +2 -7
  202. package/dist/services/vars-reference-rule.d.ts +6 -0
  203. package/dist/solution-auth-k0s83ake.js +11 -0
  204. package/dist/{solution-definition-helper-6zwd9hjs.js → solution-definition-helper-qjj01xh0.js} +1 -1
  205. package/dist/{solution-discovery-wwwynadq.js → solution-discovery-v5qatmz2.js} +7 -7
  206. package/dist/taggable-variables-nc8td6er.js +134 -0
  207. package/dist/{tidy-service-g9qcarr9.js → tidy-service-ehhraxge.js} +17 -18
  208. package/dist/tool.js +16 -14
  209. package/dist/{tr-PIQY7JIT-2mkwk0kq.js → tr-B6TLBSLH-1797wxkh.js} +19 -4
  210. package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-CEOTUJRD-pv26erw5.js} +1276 -10
  211. package/dist/{tr-7AIZZWZ6-ESAESUPL-kgj5s586.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -15
  212. package/dist/{tr-EJKY7DVQ-rkctqva4.js → tr-OUB57VJ6-52t7zdzb.js} +6 -6
  213. package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
  214. package/dist/utils/handle-expansion.d.ts +2 -2
  215. package/dist/validation.js +42 -39
  216. package/dist/{variable-service-1s0z3e9j.js → variable-service-m8m88dy6.js} +17 -12
  217. package/dist/{wait-for-flow-job-vy4t4tbj.js → wait-for-flow-job-k990nmdn.js} +15 -12
  218. package/dist/{zh-CN-NIEVKROA-q4tbbwqz.js → zh-CN-7KN22KSH-mwvgyym6.js} +19 -4
  219. package/dist/{zh-CN-4FH7E7UL-84y6j2ea.js → zh-CN-FKWWWLFR-n15rj6p8.js} +6 -6
  220. package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
  221. package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-BB2LRIMQ-tj7kwma4.js} +1276 -10
  222. package/dist/{zh-CN-CN2ARPFS-NIQTWDK2-0t4qqqdc.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -15
  223. package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
  224. package/dist/{zh-TW-5WQA6QTM-hns69sd4.js → zh-TW-52QTEYIZ-2mj7hy3e.js} +6 -6
  225. package/dist/{zh-TW-MSQM7YTT-m7r7nwnj.js → zh-TW-I7BH3XP2-7rb4xpzg.js} +19 -4
  226. package/dist/{zh-TW-7RUFEVFK-VKVRSVTP-8zmewakq.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -16
  227. package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-ECGOEPYS-wv5068r9.js} +1277 -11
  228. package/package.json +2 -2
  229. package/dist/flow-eval-node-target-20cnm783.js +0 -29
  230. package/dist/flow-eval-run-api-w4j8ra60.js +0 -9
  231. package/dist/flow-init-service-4rvjej8m.js +0 -26
  232. package/dist/flow-io-e7t1s141.js +0 -24
  233. package/dist/flow-validate-service-wfkxyvkc.js +0 -46
  234. package/dist/input-reader-jjq3r7ry.js +0 -11
  235. package/dist/localization-erchshqr.js +0 -45
  236. package/dist/node-service-2mbw4sjk.js +0 -64
  237. package/dist/packager-tool-08dsxdz8.js +0 -56
  238. package/dist/packager-tool-2sazb7th.js +0 -2
  239. package/dist/packager-tool-9217bxm2.js +0 -6
  240. package/dist/packager-tool-cvh1a0nm.js +0 -16
  241. package/dist/packager-tool-d07g2kpn.js +0 -25
  242. package/dist/packager-tool-f7rk9xhv.js +0 -50
  243. package/dist/packager-tool-jd3v0bh1.js +0 -26
  244. package/dist/packager-tool-k3egwd1m.js +0 -15
  245. package/dist/packager-tool-mfj268wk.js +0 -18
  246. package/dist/packager-tool-q0f1dvtd.js +0 -40
  247. package/dist/packager-tool-wr7gn964.js +0 -2
  248. package/dist/packager-tool-z1w16vjv.js +0 -461
  249. package/dist/ru-GSCT4ARZ-FTVCGQTL-7d8rpmsn.js +0 -12
  250. package/dist/ru-T73OPRTC-50m7tty9.js +0 -7
  251. package/dist/services/connector-request-buckets.d.ts +0 -1
  252. package/dist/services/flow-eval-file-store.d.ts +0 -1
  253. package/dist/services/inline-entity-resolver.d.ts +0 -22
  254. package/dist/services/packaging-utils.d.ts +0 -130
  255. package/dist/services/preview-id-rule.d.ts +0 -33
  256. package/dist/services/ui-only-node-types.d.ts +0 -1
  257. package/dist/solution-auth-j8x84n5z.js +0 -11
  258. package/dist/utils/flow-io.d.ts +0 -19
  259. package/dist/utils/workflow-file-format.d.ts +0 -14
@@ -2,10 +2,14 @@ import {
2
2
  JS_EXPRESSION_PREFIX2,
3
3
  isExpressionValue2,
4
4
  getJsExpressionBody2,
5
- VALID_IDENTIFIER_PATTERN2,
5
+ splitVariableType2,
6
+ expectedTypeMembers2,
6
7
  isUnsafeKey2,
8
+ VALID_IDENTIFIER_PATTERN2,
7
9
  isPlainObject2,
8
10
  deepEqual2,
11
+ DYNAMIC_EXTRACT_NODE_TYPE2,
12
+ readExtractionOutputSchema2,
9
13
  instance2,
10
14
  isLoopNodeType2,
11
15
  isErrorHandlerNodeType2,
@@ -16,10 +20,9 @@ import {
16
20
  isSubflowNodeType2,
17
21
  isConversationalOrVoiceAgentNodeType2,
18
22
  isAgentNodeType2,
19
- DYNAMIC_EXTRACT_NODE_TYPE2,
20
- readExtractionOutputSchema2,
21
23
  ASSETS_PREFIX2,
22
24
  VARS_PREFIX2,
25
+ compareVersions2,
23
26
  isTimeLimitEnabled2,
24
27
  omitSyntheticGatewayOutputs2,
25
28
  toSerializedNodes2,
@@ -28,31 +31,32 @@ import {
28
31
  CONNECTOR_NODE_PREFIX2,
29
32
  CONNECTOR_TRIGGER_PREFIX2,
30
33
  TRIGGER_NODE_PREFIX2
31
- } from "./packager-tool-fzgfb0jt.js";
34
+ } from "./packager-tool-t0e7fvqz.js";
32
35
  import {
33
- NodeType,
34
- FIRE_AND_FORGET_INPUT,
35
- getLatestDefinitionByNodeType,
36
- getManifestKey,
37
- resolveNodeVersion,
38
- getDefinitionByTypeAndVersion
39
- } from "./packager-tool-gdpw0daf.js";
36
+ NodeType2,
37
+ FIRE_AND_FORGET_INPUT2,
38
+ allDefinitions2,
39
+ getLatestDefinitionByNodeType2,
40
+ getManifestKey2,
41
+ resolveNodeVersion2,
42
+ getDefinitionByTypeAndVersion2
43
+ } from "./packager-tool-dmhmcav3.js";
40
44
  import {
41
45
  EXPRESSION_MODEL_NAMESPACE
42
46
  } from "./packager-tool-887wr6jm.js";
43
47
  import {
44
48
  require_lib
45
- } from "./packager-tool-951nhh3e.js";
49
+ } from "./packager-tool-5n1v6y3q.js";
46
50
  import {
47
- parseConfigurationJson2,
48
- resolveJsonSchema,
49
- resolveConnectorOutputSchema
50
- } from "./packager-tool-4g87fbz6.js";
51
+ parseConfigurationJson3,
52
+ resolveJsonSchema2,
53
+ resolveConnectorOutputSchema2
54
+ } from "./packager-tool-mm6a12y4.js";
51
55
  import {
52
56
  __toESM,
53
57
  __commonJS,
54
58
  __require
55
- } from "./packager-tool-6an893wm.js";
59
+ } from "./packager-tool-4f4jp7ez.js";
56
60
 
57
61
  // ../../node_modules/typescript-5.4/lib/typescript.js
58
62
  var require_typescript = __commonJS(function(exports, module) {
@@ -162212,7 +162216,7 @@ ${e.message}`;
162212
162216
  }
162213
162217
  });
162214
162218
 
162215
- // ../../node_modules/@uipath/flow-expression-model/dist/chunk-EAGKY25Q.js
162219
+ // ../../node_modules/@uipath/flow-expression-model/dist/chunk-YSWTDTCP.js
162216
162220
  var now = () => typeof performance !== "undefined" ? performance.now() : Date.now();
162217
162221
  var defaultTelemetry = {
162218
162222
  track: () => {},
@@ -162229,6 +162233,93 @@ function getExpressionModelTelemetry() {
162229
162233
  var DEFAULT_VARIABLE_FLATTEN_DEPTH = 5;
162230
162234
  var SELF_PREFIX = "$self";
162231
162235
  var VARS_IDENTIFIER = "vars";
162236
+ var FILE_TYPE_JSON_SCHEMA = {
162237
+ type: "object",
162238
+ properties: {
162239
+ ID: { type: "string", description: "Orchestrator attachment key" },
162240
+ FullName: { type: "string", description: "File name" },
162241
+ MimeType: { type: "string", description: "The MIME type of the content, such as application/json or image/png" },
162242
+ Metadata: { type: "object", description: "Dictionary<string, string> of metadata", additionalProperties: { type: "string" } }
162243
+ },
162244
+ required: ["ID"]
162245
+ };
162246
+ function attachFileSchema(variable) {
162247
+ return variable.type === "file" && !variable.schema ? { ...variable, schema: FILE_TYPE_JSON_SCHEMA } : variable;
162248
+ }
162249
+ function withFileShape(node, type) {
162250
+ if (type !== "file" || node.properties && Object.keys(node.properties).length > 0)
162251
+ return node;
162252
+ return { ...node, properties: FILE_TYPE_JSON_SCHEMA.properties, required: FILE_TYPE_JSON_SCHEMA.required };
162253
+ }
162254
+ var FILE_SCHEMA_FIELDS = Object.keys(FILE_TYPE_JSON_SCHEMA.properties);
162255
+ function isFileShapedSchema(schema) {
162256
+ if (!schema?.properties)
162257
+ return false;
162258
+ const keys = Object.keys(schema.properties);
162259
+ return keys.length === FILE_SCHEMA_FIELDS.length && FILE_SCHEMA_FIELDS.every((field) => keys.includes(field));
162260
+ }
162261
+ function interpolate(template, params) {
162262
+ return template.replace(/\{\{\s*(\w+)\s*\}\}/g, (match, name) => {
162263
+ const value = params[name];
162264
+ return value === undefined ? match : String(value);
162265
+ });
162266
+ }
162267
+ function t(key, optionsOrDefault) {
162268
+ const options = typeof optionsOrDefault === "string" ? { defaultValue: optionsOrDefault } : optionsOrDefault;
162269
+ if (instance2.isInitialized) {
162270
+ const translated = instance2.t(key, { ns: EXPRESSION_MODEL_NAMESPACE, ...options });
162271
+ if (typeof translated === "string")
162272
+ return translated;
162273
+ }
162274
+ return interpolate(options.defaultValue, options);
162275
+ }
162276
+ function walkSchemaProperties(schema, segments, options) {
162277
+ let current2 = schema;
162278
+ const supportArrayItems = options?.supportArrayItems ?? false;
162279
+ for (const segment of segments) {
162280
+ if (!current2) {
162281
+ return;
162282
+ }
162283
+ if (supportArrayItems && segment === "[items]") {
162284
+ if (current2.type === "array" && current2.items && !Array.isArray(current2.items)) {
162285
+ current2 = current2.items;
162286
+ } else {
162287
+ return;
162288
+ }
162289
+ } else {
162290
+ if (!current2.properties?.[segment]) {
162291
+ return;
162292
+ }
162293
+ current2 = current2.properties[segment];
162294
+ }
162295
+ }
162296
+ return current2;
162297
+ }
162298
+ function isArraySchema(schema) {
162299
+ return schema.type === "array" && !!schema.items && !Array.isArray(schema.items);
162300
+ }
162301
+ function schemaVariableType(schema) {
162302
+ if (!schema?.type || Array.isArray(schema.type))
162303
+ return;
162304
+ if (schema.type !== "array")
162305
+ return schema.type;
162306
+ const itemType = isArraySchema(schema) ? schemaVariableType(schema.items) : undefined;
162307
+ return itemType ? `${itemType}[]` : undefined;
162308
+ }
162309
+ function withArrayType(variable, subType) {
162310
+ const { schema } = variable;
162311
+ if (variable.type !== "array" || schema && schema.type !== "array")
162312
+ return variable;
162313
+ const type = schemaVariableType(schema) ?? (subType ? `${subType}[]` : undefined);
162314
+ if (!type)
162315
+ return variable;
162316
+ return {
162317
+ ...variable,
162318
+ type,
162319
+ isArray: true,
162320
+ schema: schema && isArraySchema(schema) ? schema : { type: "array", items: { type: subType } }
162321
+ };
162322
+ }
162232
162323
  function asExpressionValue(value) {
162233
162324
  if (!value || typeof value !== "object" || Array.isArray(value))
162234
162325
  return;
@@ -162294,21 +162385,6 @@ function clampRecordSkip(skip) {
162294
162385
  const truncated = Math.trunc(skip);
162295
162386
  return truncated < MULTI_RECORD_MIN_SKIP ? MULTI_RECORD_MIN_SKIP : truncated;
162296
162387
  }
162297
- function interpolate(template, params) {
162298
- return template.replace(/\{\{\s*(\w+)\s*\}\}/g, (match, name) => {
162299
- const value = params[name];
162300
- return value === undefined ? match : String(value);
162301
- });
162302
- }
162303
- function t(key, optionsOrDefault) {
162304
- const options = typeof optionsOrDefault === "string" ? { defaultValue: optionsOrDefault } : optionsOrDefault;
162305
- if (instance2.isInitialized) {
162306
- const translated = instance2.t(key, { ns: EXPRESSION_MODEL_NAMESPACE, ...options });
162307
- if (typeof translated === "string")
162308
- return translated;
162309
- }
162310
- return interpolate(options.defaultValue, options);
162311
- }
162312
162388
  var IN_FILTER_OPERATOR = "in";
162313
162389
  var NOT_IN_FILTER_OPERATOR = "not in";
162314
162390
  var LEGACY_IN_FILTER_OPERATOR = "is any of";
@@ -162472,31 +162548,6 @@ function publishedRecordIdReference(nodeId) {
162472
162548
  const segments = nodeId.split(".").map((segment) => `['${segment}']`).join("");
162473
162549
  return `=js:vars${segments}['output']['Id']`;
162474
162550
  }
162475
- var FILE_TYPE_JSON_SCHEMA = {
162476
- type: "object",
162477
- properties: {
162478
- ID: { type: "string", description: "Orchestrator attachment key" },
162479
- FullName: { type: "string", description: "File name" },
162480
- MimeType: { type: "string", description: "The MIME type of the content, such as application/json or image/png" },
162481
- Metadata: { type: "object", description: "Dictionary<string, string> of metadata", additionalProperties: { type: "string" } }
162482
- },
162483
- required: ["ID"]
162484
- };
162485
- function attachFileSchema(variable) {
162486
- return variable.type === "file" && !variable.schema ? { ...variable, schema: FILE_TYPE_JSON_SCHEMA } : variable;
162487
- }
162488
- function withFileShape(node, type) {
162489
- if (type !== "file" || node.properties && Object.keys(node.properties).length > 0)
162490
- return node;
162491
- return { ...node, properties: FILE_TYPE_JSON_SCHEMA.properties, required: FILE_TYPE_JSON_SCHEMA.required };
162492
- }
162493
- var FILE_SCHEMA_FIELDS = Object.keys(FILE_TYPE_JSON_SCHEMA.properties);
162494
- function isFileShapedSchema(schema) {
162495
- if (!schema?.properties)
162496
- return false;
162497
- const keys = Object.keys(schema.properties);
162498
- return keys.length === FILE_SCHEMA_FIELDS.length && FILE_SCHEMA_FIELDS.every((field) => keys.includes(field));
162499
- }
162500
162551
  function getCuratedOutputFields(fieldsContainer) {
162501
162552
  const outputFields = fieldsContainer?.outputFields ?? [];
162502
162553
  return outputFields.filter((f) => f?.name && f.name !== "output" && f.name !== "response" && (f.responseCurated || f.primaryKey));
@@ -162899,8 +162950,12 @@ ${closeIndent}}`;
162899
162950
  }
162900
162951
  };
162901
162952
 
162902
- // ../../node_modules/@uipath/flow-expression-model/dist/chunk-Z2HLLRUY.js
162953
+ // ../../node_modules/@uipath/flow-expression-model/dist/chunk-KZS72LRC.js
162903
162954
  var import_json5 = __toESM(require_lib(), 1);
162955
+ var NAMED_OUTPUT_TYPE_PATTERN = /^[A-Z][A-Za-z0-9]*Output$/;
162956
+ function isNamedOutputType(name) {
162957
+ return typeof name === "string" && NAMED_OUTPUT_TYPE_PATTERN.test(name);
162958
+ }
162904
162959
  function capitalize(str) {
162905
162960
  if (!str)
162906
162961
  return str;
@@ -162915,7 +162970,7 @@ function getOutputVariablePath(nodeId) {
162915
162970
  function globalsToVariableDefinitions(globals) {
162916
162971
  if (!globals)
162917
162972
  return [];
162918
- return globals.map((v) => ({
162973
+ return globals.map((v) => withArrayType({
162919
162974
  name: v.triggerNodeId ? `${VARS_PREFIX2}.${v.triggerNodeId}.output.${v.id}` : `${VARS_PREFIX2}.${v.id}`,
162920
162975
  type: v.type || "any",
162921
162976
  description: v.description,
@@ -162925,7 +162980,7 @@ function globalsToVariableDefinitions(globals) {
162925
162980
  direction: v.direction,
162926
162981
  schema: v.schema,
162927
162982
  default: v.defaultValue
162928
- }));
162983
+ }, v.subType));
162929
162984
  }
162930
162985
  function formatFilterValue(value, resolveNodeLabel) {
162931
162986
  const varRef = value.startsWith("$vars.") || value.startsWith("$metadata.") ? value.slice(1) : value;
@@ -162997,28 +163052,6 @@ function describeWindowValue(value, clamp, resolveNodeLabel) {
162997
163052
  return expressionText(value);
162998
163053
  return String(clamp(expressionText(value) || value));
162999
163054
  }
163000
- function walkSchemaProperties(schema, segments, options) {
163001
- let current = schema;
163002
- const supportArrayItems = options?.supportArrayItems ?? false;
163003
- for (const segment of segments) {
163004
- if (!current) {
163005
- return;
163006
- }
163007
- if (supportArrayItems && segment === "[items]") {
163008
- if (current.type === "array" && current.items && !Array.isArray(current.items)) {
163009
- current = current.items;
163010
- } else {
163011
- return;
163012
- }
163013
- } else {
163014
- if (!current.properties?.[segment]) {
163015
- return;
163016
- }
163017
- current = current.properties[segment];
163018
- }
163019
- }
163020
- return current;
163021
- }
163022
163055
  function findSchemaWithNavigation(path, lookup) {
163023
163056
  const exactMatch = lookup.get(path);
163024
163057
  if (exactMatch) {
@@ -163474,9 +163507,9 @@ function mergeAgentOutputDefinition(nodeType, inputs, baseOutputDef) {
163474
163507
  };
163475
163508
  return { ...baseOutputDef, ...dynamicOutput };
163476
163509
  }
163477
- var READ_ENTITY_NODE_TYPE = NodeType.DataFabricRead;
163478
- var UPDATE_ENTITY_NODE_TYPE = NodeType.DataFabricUpdate;
163479
- var CREATE_ENTITY_NODE_TYPE = NodeType.DataFabricCreate;
163510
+ var READ_ENTITY_NODE_TYPE = NodeType2.DataFabricRead;
163511
+ var UPDATE_ENTITY_NODE_TYPE = NodeType2.DataFabricUpdate;
163512
+ var CREATE_ENTITY_NODE_TYPE = NodeType2.DataFabricCreate;
163480
163513
  var DATA_FABRIC_SCHEMA_NODE_TYPES = /* @__PURE__ */ new Set([READ_ENTITY_NODE_TYPE, UPDATE_ENTITY_NODE_TYPE, CREATE_ENTITY_NODE_TYPE]);
163481
163514
  function mergeReadEntityOutputDefinition(nodeType, inputs, baseOutputDef) {
163482
163515
  if (!nodeType || !DATA_FABRIC_SCHEMA_NODE_TYPES.has(nodeType))
@@ -163682,11 +163715,13 @@ function flattenOutputDefinition(outputDef, sourceNodeId, sourceNodeLabel, maxDe
163682
163715
  }
163683
163716
  }
163684
163717
  for (const [outputName, outputSchema] of Object.entries(outputDef)) {
163718
+ const typeName = isNamedOutputType(outputSchema.typeName) ? outputSchema.typeName : undefined;
163685
163719
  const nestedSchema = outputSchema.schema;
163686
163720
  if (nestedSchema && typeof nestedSchema === "object" && nestedSchema.properties) {
163687
163721
  variables.push({
163688
163722
  name: `${prefix}.${outputName}`,
163689
163723
  type: getTypeString(nestedSchema),
163724
+ ...typeName && { typeName },
163690
163725
  description: outputSchema.description || outputSchema.title,
163691
163726
  source: sourceNodeLabel,
163692
163727
  sourceId: sourceNodeId,
@@ -163708,6 +163743,7 @@ function flattenOutputDefinition(outputDef, sourceNodeId, sourceNodeLabel, maxDe
163708
163743
  variables.push({
163709
163744
  name: `${prefix}.${outputName}`,
163710
163745
  type: getTypeString(inlineSchema),
163746
+ ...typeName && { typeName },
163711
163747
  description: outputSchema.description || outputSchema.title,
163712
163748
  source: sourceNodeLabel,
163713
163749
  sourceId: sourceNodeId,
@@ -163748,9 +163784,9 @@ function getNodeOutputVariables(node, maxDepth = DEFAULT_VARIABLE_FLATTEN_DEPTH,
163748
163784
  const isConnectorNode = node.type.startsWith(CONNECTOR_NODE_PREFIX2);
163749
163785
  if (isConnectorNode && node.inputs?.detail) {
163750
163786
  try {
163751
- const configuration = parseConfigurationJson2(node.inputs.detail.configuration);
163787
+ const configuration = parseConfigurationJson3(node.inputs.detail.configuration);
163752
163788
  const fieldsContainer = configuration?.fieldsContainer;
163753
- const resolved = resolveConnectorOutputSchema(fieldsContainer?.outputJsonSchema, fieldsContainer);
163789
+ const resolved = resolveConnectorOutputSchema2(fieldsContainer?.outputJsonSchema, fieldsContainer);
163754
163790
  if (resolved) {
163755
163791
  const outputSchema = resolved.schema;
163756
163792
  const fileOutputField = findFileOutputField(fieldsContainer);
@@ -163786,7 +163822,7 @@ function getNodeOutputVariables(node, maxDepth = DEFAULT_VARIABLE_FLATTEN_DEPTH,
163786
163822
  } catch {}
163787
163823
  }
163788
163824
  let outputDef = omitSyntheticGatewayOutputs2(node.type, node.outputs);
163789
- if (node.inputs?.[FIRE_AND_FORGET_INPUT] === true && outputDef) {
163825
+ if (node.inputs?.[FIRE_AND_FORGET_INPUT2] === true && outputDef) {
163790
163826
  outputDef = outputDef.error !== undefined ? { error: outputDef.error } : {};
163791
163827
  }
163792
163828
  if (!outputDef || Object.keys(outputDef).length === 0) {
@@ -163816,6 +163852,9 @@ function getNodeOutputVariables(node, maxDepth = DEFAULT_VARIABLE_FLATTEN_DEPTH,
163816
163852
  filteredOutputDef = filterOutputDefinitionByErrorHandling(filteredOutputDef, errorHandlingEnabled);
163817
163853
  }
163818
163854
  const variables = flattenOutputDefinition(filteredOutputDef, node.id, nodeLabel, maxDepth, node.id);
163855
+ for (const v of variables)
163856
+ if (v.typeName)
163857
+ v.typeVersion = node.typeVersion;
163819
163858
  if (node.type.startsWith(CONNECTOR_TRIGGER_PREFIX2) && filteredOutputDef.output?.type === "object") {
163820
163859
  for (const v of variables) {
163821
163860
  if (v.name === getOutputVariablePath(node.id) && !v.schema) {
@@ -164152,14 +164191,16 @@ function extractTypeFromEmittedDeclaration(dts) {
164152
164191
  const declared = dts?.replace(/\nexport \{\};?\s*$/, "").match(/export declare const __result: ([\s\S]+?);\s*$/);
164153
164192
  return declared?.[1].trim();
164154
164193
  }
164194
+ var CHECKED_EXPRESSION_IDENTIFIER = "__expr";
164155
164195
  async function checkExpressionMatchesType(backend, expression, declarations, expectedType) {
164156
164196
  const typeString = typeof expectedType === "string" ? expectedType : await schemaToTypeString(expectedType);
164157
- const { result, durationMs, waitMs } = await runQuery(backend, "expression-type-service.check", declarations, `const __expr = (`, expression, `
164197
+ const { result, durationMs, waitMs } = await runQuery(backend, "expression-type-service.check", declarations, `const ${CHECKED_EXPRESSION_IDENTIFIER} = (`, expression, `
164158
164198
  );
164159
- const __check: ${typeString} = __expr;
164160
- `, async (client, fileName, expressionOffset) => {
164199
+ const __check: ${typeString} = ${CHECKED_EXPRESSION_IDENTIFIER};
164200
+ `, async (client, fileName, expressionOffset, declarationsBlockLength) => {
164161
164201
  const [semantic, syntactic] = await Promise.all([client.getSemanticDiagnostics(fileName), client.getSyntacticDiagnostics(fileName)]);
164162
- const diagnostics = mapDiagnostics([...syntactic, ...semantic], expressionOffset, expression.length);
164202
+ const raw = [...syntactic, ...semantic].filter((d) => (d.start ?? 0) >= declarationsBlockLength);
164203
+ const diagnostics = mapDiagnostics(raw, expressionOffset, expression.length);
164163
164204
  return { matches: diagnostics.length === 0, diagnostics };
164164
164205
  });
164165
164206
  getExpressionModelTelemetry().track("expression-type-service.check", { matches: String(result.matches), diagnosticCount: String(result.diagnostics.length) }, { durationMs, waitMs });
@@ -164216,8 +164257,12 @@ async function collectScriptDiagnostics(backend, script, declarations) {
164216
164257
  getExpressionModelTelemetry().track("expression-type-service.script-diagnostics", { diagnosticCount: String(result.length) }, { durationMs, waitMs });
164217
164258
  return result;
164218
164259
  }
164219
- function isArraySchema(schema) {
164220
- return schema.type === "array" && !!schema.items && !Array.isArray(schema.items);
164260
+ function withRuntimeArrayType(variable) {
164261
+ const { schema } = variable;
164262
+ if (variable.type === "array" && schema && isArraySchema(schema) && (schema.items.format === "file" || isFileShapedSchema(schema.items))) {
164263
+ return { ...variable, type: "file[]", isArray: true };
164264
+ }
164265
+ return withArrayType(variable);
164221
164266
  }
164222
164267
  function isDerivedVariable(v) {
164223
164268
  return !!v.derivedFrom && !!v.derivationType;
@@ -164242,7 +164287,7 @@ function handleDerivedVariable(variable, typeRegistry, schemaMap) {
164242
164287
  $defs: sourceSchema.$defs
164243
164288
  };
164244
164289
  try {
164245
- const resolved = resolveJsonSchema(schemaWithDefinitions);
164290
+ const resolved = resolveJsonSchema2(schemaWithDefinitions);
164246
164291
  itemsSchema = resolved.schema;
164247
164292
  } catch (error) {
164248
164293
  if (true) {
@@ -164250,10 +164295,10 @@ function handleDerivedVariable(variable, typeRegistry, schemaMap) {
164250
164295
  }
164251
164296
  }
164252
164297
  }
164253
- const inferredType = typeof itemsSchema.type === "string" ? itemsSchema.type : Array.isArray(itemsSchema.type) ? itemsSchema.type.join(" | ") : undefined;
164298
+ const inferredType = Array.isArray(itemsSchema.type) ? itemsSchema.type.join(" | ") : itemsSchema.type;
164254
164299
  return { ...variable, schema: itemsSchema, ...inferredType && { type: inferredType } };
164255
164300
  } else if (variable.derivationType === "array-copy" && sourceSchema.type === "array") {
164256
- return { ...variable, schema: sourceSchema, type: "array", isArray: true };
164301
+ return withRuntimeArrayType({ ...variable, schema: sourceSchema, type: "array", isArray: true });
164257
164302
  }
164258
164303
  return variable;
164259
164304
  }
@@ -164298,9 +164343,14 @@ function enrichVariablesWithRegistry(variables, typeRegistry) {
164298
164343
  return v;
164299
164344
  if (isFileShapedSchema(schema))
164300
164345
  return { ...v, type: "file", schema: FILE_TYPE_JSON_SCHEMA };
164301
- const inferredType = typeof schema.type === "string" ? schema.type : Array.isArray(schema.type) ? schema.type.join(" | ") : undefined;
164346
+ const inferredType = Array.isArray(schema.type) ? schema.type.join(" | ") : schema.type;
164302
164347
  const arrayOverride = v.isArray && !isArraySchema(schema) && { isArray: false };
164303
- return { ...v, schema: mergeDeclaredIntoInferred(v.schema, schema), ...inferredType && { type: inferredType }, ...arrayOverride };
164348
+ return withRuntimeArrayType({
164349
+ ...v,
164350
+ schema: mergeDeclaredIntoInferred(v.schema, schema),
164351
+ ...inferredType && { type: inferredType },
164352
+ ...arrayOverride
164353
+ });
164304
164354
  });
164305
164355
  }
164306
164356
  function mergeDeclaredIntoInferred(declared, inferred) {
@@ -164385,13 +164435,29 @@ async function generateVariableDeclarationsInner(variables, selfNodeId, options
164385
164435
  const schemaVars = allActivityVars.filter((v) => v.schema && !hasNamedType(v));
164386
164436
  const compiledTypeMap = /* @__PURE__ */ new Map;
164387
164437
  const typeDecls = [];
164438
+ const namedTypeRefs = /* @__PURE__ */ new Map;
164439
+ const shapeOf = (v) => JSON.stringify([v.schema, !!v.isArray]);
164440
+ const newestByName = /* @__PURE__ */ new Map;
164441
+ for (const v of schemaVars) {
164442
+ if (!isNamedOutputType(v.typeName))
164443
+ continue;
164444
+ const current = newestByName.get(v.typeName);
164445
+ if (!current || compareVersions2(v.typeVersion ?? "0", current.typeVersion ?? "0") > 0)
164446
+ newestByName.set(v.typeName, v);
164447
+ }
164388
164448
  await Promise.all(schemaVars.map(async (v) => {
164389
164449
  if (!v.schema)
164390
164450
  return;
164391
164451
  const { varPath, activityName, propPath } = parseVarPath(v.name);
164392
- const typeName = getSchemaTypeName(activityName, propPath);
164393
- const typeRef = await compileSchemaType(v.schema, typeName, activityName, v.isArray, typeDecls);
164394
- compiledTypeMap.set(varPath, typeRef);
164452
+ const newest = isNamedOutputType(v.typeName) ? newestByName.get(v.typeName) : undefined;
164453
+ const namedType = newest && shapeOf(newest) === shapeOf(v) ? v.typeName : undefined;
164454
+ let typeRef = namedType ? namedTypeRefs.get(namedType) : undefined;
164455
+ if (!typeRef) {
164456
+ typeRef = compileSchemaType(v.schema, namedType ?? getSchemaTypeName(activityName, propPath), activityName, v.isArray, typeDecls);
164457
+ if (namedType)
164458
+ namedTypeRefs.set(namedType, typeRef);
164459
+ }
164460
+ compiledTypeMap.set(varPath, await typeRef);
164395
164461
  }));
164396
164462
  const plainActivityVars = allActivityVars.filter((v) => !v.schema || hasNamedType(v));
164397
164463
  const activities = groupVariablesByActivity(plainActivityVars);
@@ -164429,7 +164495,7 @@ async function generateVariableDeclarationsInner(variables, selfNodeId, options
164429
164495
  ` : `/** ${label} */
164430
164496
  `;
164431
164497
  if (v.schema && !hasNamedType(v)) {
164432
- const typeRef = await compileSchemaType(v.schema, varPath, varPath, v.isArray, typeDecls);
164498
+ const typeRef = await compileSchemaType(v.schema, `${varPath}_Var`, varPath, v.isArray, typeDecls);
164433
164499
  return ` ${description}${escapePropertyName(varPath)}: ${typeRef};`;
164434
164500
  } else {
164435
164501
  const tsType = mapTypeToTypeScript(v.type);
@@ -164665,13 +164731,19 @@ function escapePropertyName(name) {
164665
164731
  }
164666
164732
  function prefixTypeNames(typeDecl, nodeId, mainTypeName) {
164667
164733
  const prefix = nodeId.charAt(0).toUpperCase() + nodeId.slice(1);
164668
- const typeNames = [...typeDecl.matchAll(/^(?:type|interface)\s+(\w+)/gm)].map((match) => match[1]).filter((name) => name !== mainTypeName && !name.startsWith(prefix));
164734
+ const declaredNames = [...typeDecl.matchAll(/^(?:type|interface)\s+(\w+)/gm)].map((match) => match[1]);
164735
+ const typeNames = declaredNames.filter((name) => name !== mainTypeName && !name.startsWith(prefix));
164669
164736
  if (typeNames.length === 0) {
164670
164737
  return typeDecl;
164671
164738
  }
164739
+ const taken = /* @__PURE__ */ new Set([mainTypeName, ...declaredNames.filter((name) => !typeNames.includes(name))]);
164672
164740
  let result = typeDecl;
164673
164741
  for (const typeName of typeNames) {
164674
- result = result.replace(new RegExp(`\\b${typeName}\\b`, "g"), `${prefix}_${typeName}`);
164742
+ let renamed = `${prefix}_${typeName}`;
164743
+ for (let n = 2;taken.has(renamed); n++)
164744
+ renamed = `${prefix}_${typeName}_${n}`;
164745
+ taken.add(renamed);
164746
+ result = result.replace(new RegExp(`\\b${typeName}\\b`, "g"), renamed);
164675
164747
  }
164676
164748
  return result;
164677
164749
  }
@@ -164838,7 +164910,7 @@ function skipWhitespace(input, pos) {
164838
164910
  pos++;
164839
164911
  return pos;
164840
164912
  }
164841
- var SCRIPT_NODE_TYPE = NodeType.ActionScript;
164913
+ var SCRIPT_NODE_TYPE = NodeType2.ActionScript;
164842
164914
  function getScriptContent(node) {
164843
164915
  const script = node.inputs?.script;
164844
164916
  if (typeof script === "string")
@@ -164948,19 +165020,115 @@ function seedTriggerNodes(queue, nodes) {
164948
165020
  }
164949
165021
  }
164950
165022
  }
165023
+ var warned = /* @__PURE__ */ new Set;
165024
+ function warnOnce(message) {
165025
+ if (warned.has(message))
165026
+ return;
165027
+ warned.add(message);
165028
+ console.warn(`[expression-validation] ${message}`);
165029
+ }
165030
+ function readTypeMismatchSeverity(severity, fieldName) {
165031
+ if (severity === undefined || severity === "error" || severity === "warning")
165032
+ return severity;
165033
+ warnOnce(`Ignored typeMismatchSeverity ${JSON.stringify(severity)} on "${fieldName}": expected "error" or "warning".`);
165034
+ return;
165035
+ }
164951
165036
  function stripIndices(path) {
164952
165037
  return path.replace(/\[\d+\]/g, "");
164953
165038
  }
164954
- var FILE_ID_KEY = "ID";
164955
- var FILE_PROBE_TYPE = `{ ${FILE_ID_KEY}?: any }`;
164956
- function couldBeFile(checker, expression, declarations) {
164957
- return checker.doesExpressionMatchType(expression, declarations, FILE_PROBE_TYPE);
165039
+ function buildTypeProbe(schema, checked = `typeof ${CHECKED_EXPRESSION_IDENTIFIER}`) {
165040
+ const unlessUntyped = (type) => `unknown extends ${checked} ? never : ${type}`;
165041
+ const properties = schema.properties ?? {};
165042
+ const required = new Set(schema.required ?? []);
165043
+ const keys = [.../* @__PURE__ */ new Set([...required, ...Object.keys(properties)])];
165044
+ if (keys.length === 0)
165045
+ return unlessUntyped(schemaToTypeStringSync(schema));
165046
+ const value = `NonNullable<${checked}>`;
165047
+ const members = keys.map((key) => {
165048
+ const name = JSON.stringify(key);
165049
+ const member = required.has(key) ? name : `${name}?`;
165050
+ const pinned = properties[key]?.const;
165051
+ if (pinned === undefined)
165052
+ return `${member}: any`;
165053
+ const literal = JSON.stringify(pinned);
165054
+ return `${member}: ${value} extends { ${name}?: infer V } ? (${literal} extends V ? any : ${literal}) : any`;
165055
+ });
165056
+ return unlessUntyped(`{ ${members.join("; ")} } | null | undefined`);
165057
+ }
165058
+ function isSchema(value) {
165059
+ return typeof value === "object" && value !== null;
164958
165060
  }
164959
- var FILE_ARRAY_PROBE_TYPE = `Array<${FILE_PROBE_TYPE}>`;
164960
- function couldBeFileArray(checker, expression, declarations) {
164961
- return checker.doesExpressionMatchType(expression, declarations, FILE_ARRAY_PROBE_TYPE);
165061
+ function latestManifests(manifestMap) {
165062
+ const latestByNodeType = /* @__PURE__ */ new Map;
165063
+ for (const [key, manifest] of manifestMap ?? []) {
165064
+ const separator = key.lastIndexOf(":");
165065
+ const nodeType = key.slice(0, separator);
165066
+ const version = key.slice(separator + 1);
165067
+ const current = latestByNodeType.get(nodeType);
165068
+ if (!current || compareVersions2(version, current.version) > 0)
165069
+ latestByNodeType.set(nodeType, { version, manifest });
165070
+ }
165071
+ return [...latestByNodeType.values()].map(({ manifest }) => manifest);
164962
165072
  }
164963
- function buildExpressionPathMap(manifest) {
165073
+ function buildNamedTypes(manifestMap) {
165074
+ const types = /* @__PURE__ */ new Map([
165075
+ [
165076
+ "file",
165077
+ {
165078
+ schema: FILE_TYPE_JSON_SCHEMA,
165079
+ mismatchMessage: t("validation_expression_fileExpected_message", {
165080
+ defaultValue: "This value must be a file. To use a remote file, download the file first with an action that outputs a file, then reference that output."
165081
+ })
165082
+ }
165083
+ ]
165084
+ ]);
165085
+ const conflicting = /* @__PURE__ */ new Set;
165086
+ for (const manifest of latestManifests(manifestMap)) {
165087
+ for (const output of Object.values(manifest.outputDefinition ?? {})) {
165088
+ const name = output?.typeName;
165089
+ const schema = output?.schema;
165090
+ if (typeof name !== "string" || !isSchema(schema))
165091
+ continue;
165092
+ if (!isNamedOutputType(name)) {
165093
+ warnOnce(`Ignored output type "${name}": its name must end in "Output".`);
165094
+ continue;
165095
+ }
165096
+ const existing = types.get(name);
165097
+ if (existing && JSON.stringify(existing.schema) !== JSON.stringify(schema))
165098
+ conflicting.add(name);
165099
+ else
165100
+ types.set(name, { schema });
165101
+ }
165102
+ }
165103
+ for (const name of conflicting) {
165104
+ warnOnce(`Ignored output type "${name}": nodes declare it with different schemas.`);
165105
+ types.delete(name);
165106
+ }
165107
+ return types;
165108
+ }
165109
+ function memberBases(name) {
165110
+ return expectedTypeMembers2(name).map((member) => splitVariableType2(member).base);
165111
+ }
165112
+ async function checkNamedType(checker, expression, declarations, name, namedTypes, typeMismatchSeverity = "warning") {
165113
+ const members = expectedTypeMembers2(name);
165114
+ const probes = members.flatMap((member) => {
165115
+ const { base, isArray } = splitVariableType2(member);
165116
+ const type = namedTypes.get(base);
165117
+ if (!type) {
165118
+ warnOnce(`Ignored "${member}" in "${name}": no such named type.`);
165119
+ return [];
165120
+ }
165121
+ return isArray ? `unknown extends typeof ${CHECKED_EXPRESSION_IDENTIFIER} ? never : Array<${buildTypeProbe(type.schema, `(typeof ${CHECKED_EXPRESSION_IDENTIFIER})[number]`)}>` : buildTypeProbe(type.schema);
165122
+ });
165123
+ const results = await Promise.all(probes.map((probe) => checker.doesExpressionMatchType(expression, declarations, probe)));
165124
+ if (results.some((result) => result.matches))
165125
+ return;
165126
+ return {
165127
+ message: memberBases(name).map((base) => namedTypes.get(base)).find(Boolean)?.mismatchMessage ?? t("validation_expression_namedTypeExpected_message", { type: name, defaultValue: "This value must be of type {{type}}." }),
165128
+ severity: typeMismatchSeverity
165129
+ };
165130
+ }
165131
+ function buildExpressionPathMap(namedTypes, manifest) {
164964
165132
  const map = /* @__PURE__ */ new Map;
164965
165133
  if (!manifest)
164966
165134
  return map;
@@ -164972,7 +165140,10 @@ function buildExpressionPathMap(manifest) {
164972
165140
  continue;
164973
165141
  for (const field of section.fields) {
164974
165142
  if (field.type === "file") {
164975
- map.set(field.name, { expectedType: "file" });
165143
+ map.set(field.name, {
165144
+ expectedType: "file",
165145
+ typeMismatchSeverity: readTypeMismatchSeverity(field.componentProps?.typeMismatchSeverity, field.name)
165146
+ });
164976
165147
  continue;
164977
165148
  }
164978
165149
  if (field.type !== "custom")
@@ -164980,32 +165151,36 @@ function buildExpressionPathMap(manifest) {
164980
165151
  const props = field.componentProps;
164981
165152
  if (!props)
164982
165153
  continue;
165154
+ const typeMismatchSeverity = readTypeMismatchSeverity(props.typeMismatchSeverity, field.name);
164983
165155
  const validationMode = props.validationMode;
164984
165156
  if (validationMode === "expression" || validationMode === "script") {
164985
165157
  map.set(field.name, {
164986
165158
  expectedType: validationMode === "expression" ? props.returnType ?? props.expectedType ?? undefined : undefined,
164987
- validationMode
165159
+ validationMode,
165160
+ typeMismatchSeverity
164988
165161
  });
165162
+ } else if (typeof props.expectedType === "string" && memberBases(props.expectedType).some((base) => namedTypes.has(base) || isNamedOutputType(base))) {
165163
+ map.set(field.name, { expectedType: props.expectedType, typeMismatchSeverity });
164989
165164
  }
164990
165165
  if (field.component === "array-list-editor") {
164991
165166
  const expectedType = props.expectedType;
164992
- const allowFileArray = expectedType === "file";
164993
- map.set(`${field.name}.value`, { expectedType, allowFileArray });
164994
- map.set(field.name, { expectedType, fieldPathSuffix: "value", allowFileArray });
165167
+ map.set(`${field.name}.value`, { expectedType, typeMismatchSeverity });
165168
+ map.set(field.name, { expectedType, fieldPathSuffix: "value", typeMismatchSeverity });
164995
165169
  }
164996
165170
  if (field.component === "value-source-field" && props.staticEditor === "array-list") {
164997
165171
  const expectedType = props.expectedType;
164998
- const allowFileArray = expectedType === "file" || props.allowFileArray === true;
164999
165172
  const fieldPathContainer = { from: `${field.name}.items`, to: field.name };
165000
- map.set(`${field.name}.items.value`, { expectedType, allowFileArray, fieldPathContainer });
165001
- map.set(`${field.name}.items`, { expectedType, fieldPathSuffix: "value", allowFileArray, fieldPathContainer });
165173
+ map.set(`${field.name}.items.value`, { expectedType, typeMismatchSeverity, fieldPathContainer });
165174
+ map.set(`${field.name}.items`, { expectedType, fieldPathSuffix: "value", typeMismatchSeverity, fieldPathContainer });
165002
165175
  }
165003
165176
  const expressionValidationFields = props.expressionValidationFields;
165004
165177
  if (expressionValidationFields) {
165005
165178
  for (const vf of expressionValidationFields) {
165006
- map.set(vf.subPath ? `${field.name}.${vf.subPath}` : field.name, {
165179
+ const name = vf.subPath ? `${field.name}.${vf.subPath}` : field.name;
165180
+ map.set(name, {
165007
165181
  expectedType: vf.expectedType,
165008
- validationMode: vf.validationMode
165182
+ validationMode: vf.validationMode,
165183
+ typeMismatchSeverity: readTypeMismatchSeverity(vf.typeMismatchSeverity, name)
165009
165184
  });
165010
165185
  }
165011
165186
  }
@@ -165049,7 +165224,7 @@ function collectExpressionFields(node, expressionPaths, workflowVariables) {
165049
165224
  const pathInfo = expressionPaths.get(strippedPath);
165050
165225
  if (pathInfo ? !pathInfo.validationMode && !isExpressionLike : !isExpressionLike)
165051
165226
  return;
165052
- const expected = pathInfo?.expectedType ? { type: pathInfo.expectedType, allowFileArray: pathInfo.allowFileArray } : subflowInputTypes.get(strippedPath) ?? outputMappingTypes.get(strippedPath);
165227
+ const expected = pathInfo?.expectedType ? { type: pathInfo.expectedType, typeMismatchSeverity: pathInfo.typeMismatchSeverity } : subflowInputTypes.get(strippedPath) ?? outputMappingTypes.get(strippedPath);
165053
165228
  let fieldPath = pathInfo?.fieldPathSuffix && /\[\d+\]$/.test(path) ? `${path}.${pathInfo.fieldPathSuffix}` : path;
165054
165229
  const container = pathInfo?.fieldPathContainer;
165055
165230
  if (container && fieldPath.startsWith(container.from)) {
@@ -165135,6 +165310,60 @@ function getFullManifest(node, manifestMap) {
165135
165310
  const version = node.data.typeVersion || "1.0.0";
165136
165311
  return manifestMap.get(`${node.type}:${version}`);
165137
165312
  }
165313
+ async function checkField(checker, field, declarations, namedTypes) {
165314
+ const trimmed = field.expression.trim();
165315
+ if (!trimmed)
165316
+ return [];
165317
+ const errors = [];
165318
+ try {
165319
+ const diagnostics = field.validationMode === "script" ? await checker.getScriptDiagnostics(trimmed, declarations) : await checker.getExpressionDiagnostics(trimmed, declarations);
165320
+ for (const d of diagnostics) {
165321
+ if (d.start < 0) {
165322
+ console.warn(`[expression-validation] Dropped preamble diagnostic (TS${d.code}) for ${field.nodeId}/${field.fieldPath}: ${d.message}`);
165323
+ continue;
165324
+ }
165325
+ if (d.category <= 1) {
165326
+ errors.push({
165327
+ code: "EXPRESSION_DIAGNOSTIC",
165328
+ message: d.message,
165329
+ severity: "warning",
165330
+ nodeId: field.nodeId,
165331
+ fieldPath: field.fieldPath,
165332
+ layer: "field"
165333
+ });
165334
+ }
165335
+ }
165336
+ if (!field.expected || !diagnostics.every((d) => d.category > 1 || d.start < 0))
165337
+ return errors;
165338
+ const fieldError = {
165339
+ code: "EXPRESSION_TYPE_MISMATCH",
165340
+ nodeId: field.nodeId,
165341
+ fieldPath: field.fieldPath,
165342
+ layer: "field"
165343
+ };
165344
+ const typeName = field.expected.type;
165345
+ const bases = typeName ? memberBases(typeName) : [];
165346
+ if (typeName && bases.some((base) => namedTypes.has(base))) {
165347
+ const finding = await checkNamedType(checker, trimmed, declarations, typeName, namedTypes, field.expected.typeMismatchSeverity);
165348
+ if (finding)
165349
+ errors.push({ ...fieldError, ...finding });
165350
+ return errors;
165351
+ }
165352
+ if (bases.some(isNamedOutputType))
165353
+ return errors;
165354
+ const result = await checker.doesExpressionMatchType(trimmed, declarations, field.expected.schema ?? mapTypeToTypeScript(field.expected.type));
165355
+ if (!result.matches) {
165356
+ errors.push({
165357
+ ...fieldError,
165358
+ message: result.diagnostics[0]?.message ?? `Expression does not match expected type: ${field.expected.type ?? "declared schema"}`,
165359
+ severity: field.expected.typeMismatchSeverity ?? "warning"
165360
+ });
165361
+ }
165362
+ } catch (error) {
165363
+ console.error(`[expression-validation] Checker failed for ${field.nodeId}/${field.fieldPath}:`, error);
165364
+ }
165365
+ return errors;
165366
+ }
165138
165367
  var expressionValidationRule = {
165139
165368
  id: "expression-validation",
165140
165369
  severity: "warning",
@@ -165142,7 +165371,6 @@ var expressionValidationRule = {
165142
165371
  const checker = ctx.expressionChecker;
165143
165372
  if (!checker?.isReady())
165144
165373
  return [];
165145
- const errors = [];
165146
165374
  const globalTypeMap = /* @__PURE__ */ new Map;
165147
165375
  const globals = ctx.workflowVariables?.globals;
165148
165376
  if (globals) {
@@ -165151,69 +165379,21 @@ var expressionValidationRule = {
165151
165379
  globalTypeMap.set(g.id, { type: g.type, schema: g.schema });
165152
165380
  }
165153
165381
  }
165154
- for (const node of ctx.nodes) {
165382
+ const namedTypes = buildNamedTypes(ctx.manifestMap);
165383
+ const perNode = await Promise.all(ctx.nodes.map(async (node) => {
165155
165384
  const manifest = getFullManifest(node, ctx.manifestMap);
165156
- const expressionPaths = buildExpressionPathMap(manifest);
165385
+ const expressionPaths = buildExpressionPathMap(namedTypes, manifest);
165157
165386
  const fields = [
165158
165387
  ...collectExpressionFields(node, expressionPaths, ctx.workflowVariables),
165159
165388
  ...collectVariableUpdateFields(node.data.type ?? node.type, node.id, ctx.workflowVariables, globalTypeMap)
165160
165389
  ];
165161
165390
  if (fields.length === 0)
165162
- continue;
165391
+ return [];
165163
165392
  const declarations = await ctx.getDeclarationsForNode?.(node.id) ?? "";
165164
- for (const field of fields) {
165165
- const trimmed = field.expression.trim();
165166
- if (!trimmed)
165167
- continue;
165168
- try {
165169
- const diagnostics = field.validationMode === "script" ? await checker.getScriptDiagnostics(trimmed, declarations) : await checker.getExpressionDiagnostics(trimmed, declarations);
165170
- for (const d of diagnostics) {
165171
- if (d.start < 0) {
165172
- console.warn(`[expression-validation] Dropped preamble diagnostic (TS${d.code}) for ${field.nodeId}/${field.fieldPath}: ${d.message}`);
165173
- continue;
165174
- }
165175
- if (d.category <= 1) {
165176
- errors.push({
165177
- code: "EXPRESSION_DIAGNOSTIC",
165178
- message: d.message,
165179
- severity: "warning",
165180
- nodeId: field.nodeId,
165181
- fieldPath: field.fieldPath,
165182
- layer: "field"
165183
- });
165184
- }
165185
- }
165186
- if (field.expected && diagnostics.every((d) => d.category > 1 || d.start < 0)) {
165187
- const isFileField = field.expected.type === "file";
165188
- let result;
165189
- if (isFileField) {
165190
- result = await couldBeFile(checker, trimmed, declarations);
165191
- if (!result.matches && field.expected.allowFileArray) {
165192
- const arrayResult = await couldBeFileArray(checker, trimmed, declarations);
165193
- if (arrayResult.matches)
165194
- result = arrayResult;
165195
- }
165196
- } else {
165197
- result = await checker.doesExpressionMatchType(trimmed, declarations, field.expected.schema ?? mapTypeToTypeScript(field.expected.type));
165198
- }
165199
- if (!result.matches) {
165200
- const message = isFileField && result.diagnostics[0]?.code === 2559 ? t("validation_expression_fileExpected_message", {
165201
- defaultValue: "This value must be a file. To use a remote file, download the file first with an action that outputs a file, then reference that output."
165202
- }) : result.diagnostics[0]?.message ?? `Expression does not match expected type: ${field.expected.type ?? "declared schema"}`;
165203
- errors.push({
165204
- code: "EXPRESSION_TYPE_MISMATCH",
165205
- message,
165206
- severity: "warning",
165207
- nodeId: field.nodeId,
165208
- fieldPath: field.fieldPath,
165209
- layer: "field"
165210
- });
165211
- }
165212
- }
165213
- } catch {}
165214
- }
165215
- }
165216
- return errors;
165393
+ const perField = await Promise.all(fields.map((field) => checkField(checker, field, declarations, namedTypes)));
165394
+ return perField.flat();
165395
+ }));
165396
+ return perNode.flat();
165217
165397
  }
165218
165398
  };
165219
165399
  function isPlainObject22(value) {
@@ -165250,7 +165430,8 @@ function buildEffectiveNodeOutputs(args) {
165250
165430
  ...manifestShape,
165251
165431
  ...manifestOutput?.scope && { scope: manifestOutput.scope },
165252
165432
  ...manifestOutput?.source && { source: manifestOutput.source },
165253
- ...manifestOutput?.var && { var: manifestOutput.var }
165433
+ ...manifestOutput?.var && { var: manifestOutput.var },
165434
+ ...isNamedOutputType(declared?.typeName) && { typeName: declared.typeName }
165254
165435
  };
165255
165436
  }
165256
165437
  const effective = { ...manifestOutputs, ...nodeVariableOutputs };
@@ -165327,11 +165508,11 @@ function buildSubflowPassThroughOutputDefinition(entry, manifestMap, options = {
165327
165508
  if (entry.nodes.length === 0)
165328
165509
  return {};
165329
165510
  const terminalNodes = findTerminalNodes(entry.nodes, entry.edges, (n) => {
165330
- const manifest = manifestMap.get(getManifestKey(n.type, n.typeVersion));
165511
+ const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
165331
165512
  return manifest?.model?.type === "bpmn:StartEvent";
165332
165513
  });
165333
165514
  const terminalsWithOutputs = terminalNodes.map((n) => {
165334
- const manifest = manifestMap.get(getManifestKey(n.type, n.typeVersion));
165515
+ const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
165335
165516
  const manifestOutputDef = manifest?.outputDefinition;
165336
165517
  let outputDef;
165337
165518
  if (isSubflowNodeType2(n.type)) {
@@ -165401,12 +165582,12 @@ function computeSubflowEffectiveOutputDef(subflowNodeId, subflows, manifestMap,
165401
165582
  return buildSubflowOutputDefinition(allGlobals);
165402
165583
  }
165403
165584
  const terminalNodes = findTerminalNodes(entry.nodes, entry.edges, (n) => {
165404
- const manifest = manifestMap.get(getManifestKey(n.type, n.typeVersion));
165585
+ const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
165405
165586
  return manifest?.model?.type === "bpmn:StartEvent";
165406
165587
  });
165407
165588
  const outputKeys = {};
165408
165589
  for (const n of terminalNodes) {
165409
- const manifest = manifestMap.get(getManifestKey(n.type, n.typeVersion));
165590
+ const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
165410
165591
  let outputDef = isSubflowNodeType2(n.type) ? computeSubflowEffectiveOutputDef(n.id, subflows, manifestMap, seen) : undefined;
165411
165592
  if (!outputDef || Object.keys(outputDef).length === 0) {
165412
165593
  outputDef = manifest?.outputDefinition;
@@ -165558,18 +165739,32 @@ function buildManifestMap(flow, options) {
165558
165739
  const map = /* @__PURE__ */ new Map;
165559
165740
  const allNodes = [...flow.nodes, ...Object.values(flow.subflows ?? {}).flatMap((entry) => entry.nodes)];
165560
165741
  for (const node of allNodes) {
165561
- const version = resolveNodeVersion(node.typeVersion);
165562
- const key = getManifestKey(node.type, version);
165742
+ const version = resolveNodeVersion2(node.typeVersion);
165743
+ const key = getManifestKey2(node.type, version);
165563
165744
  if (map.has(key))
165564
165745
  continue;
165565
- const manifest = options.manifests?.get(key) ?? (includeOotb ? getDefinitionByTypeAndVersion(node.type, version) : undefined) ?? definitionsByKey.get(key) ?? (includeOotb ? getLatestDefinitionByNodeType(node.type) : undefined);
165746
+ const manifest = options.manifests?.get(key) ?? (includeOotb ? getDefinitionByTypeAndVersion2(node.type, version) : undefined) ?? definitionsByKey.get(key) ?? (includeOotb ? getLatestDefinitionByNodeType2(node.type) : undefined);
165566
165747
  if (manifest)
165567
165748
  map.set(key, manifest);
165568
165749
  }
165569
165750
  return map;
165570
165751
  }
165752
+ function buildRuleManifestMap(flowManifests, flow, options) {
165753
+ const map = /* @__PURE__ */ new Map;
165754
+ for (const def of flow.definitions ?? [])
165755
+ map.set(`${def.nodeType}:${def.version}`, def);
165756
+ if (options.includeOotbManifests !== false) {
165757
+ for (const def of allDefinitions2)
165758
+ map.set(getManifestKey2(def.nodeType, def.version), def);
165759
+ }
165760
+ for (const [key, manifest] of options.manifests ?? [])
165761
+ map.set(key, manifest);
165762
+ for (const [key, manifest] of flowManifests)
165763
+ map.set(key, manifest);
165764
+ return map;
165765
+ }
165571
165766
  function hydrateNodeOutputs(node, nodeVariables, context) {
165572
- const manifest = context.manifests.get(getManifestKey(node.type, resolveNodeVersion(node.typeVersion)));
165767
+ const manifest = context.manifests.get(getManifestKey2(node.type, resolveNodeVersion2(node.typeVersion)));
165573
165768
  return buildEffectiveNodeOutputs({
165574
165769
  manifestOutputs: manifest?.outputDefinition,
165575
165770
  nodeVariables: nodeVariables.filter((variable) => variable.binding?.nodeId === node.id),
@@ -165597,7 +165792,7 @@ async function checkWorkflowExpressions(flow, options) {
165597
165792
  const nodeVariables = flow.variables?.nodes ?? [];
165598
165793
  const scopeNodes = flow.nodes.map((n) => ({
165599
165794
  ...n,
165600
- typeVersion: resolveNodeVersion(n.typeVersion),
165795
+ typeVersion: resolveNodeVersion2(n.typeVersion),
165601
165796
  outputs: hydrateNodeOutputs(n, nodeVariables, { manifests: manifestMap, subflows: flow.subflows })
165602
165797
  }));
165603
165798
  const scopeEdges = flow.edges.map((e) => ({
@@ -165624,7 +165819,7 @@ async function checkWorkflowExpressions(flow, options) {
165624
165819
  return expressionValidationRule.validate({
165625
165820
  nodes: toSerializedNodes2(scopeNodes, extraNodeData(flow.subflows)),
165626
165821
  workflowVariables: flow.variables,
165627
- manifestMap,
165822
+ manifestMap: buildRuleManifestMap(manifestMap, flow, options),
165628
165823
  getDeclarationsForNode: (nodeId) => generateValidationDeclarationsFromScope({
165629
165824
  nodeId,
165630
165825
  scopeNodes,
@@ -177652,4 +177847,4 @@ export {
177652
177847
  getHeadlessExpressionChecker
177653
177848
  };
177654
177849
 
177655
- //# debugId=19989C602B34167164756E2164756E21
177850
+ //# debugId=4CD05983DD36F09264756E2164756E21