@uipath/case-tool 1.205.0-preview.281 → 1.206.0-preview.282

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 (211) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +68 -7
  2. package/dist/applicationinsights-web-8m26566f.js +17209 -0
  3. package/dist/{authoring-kqh34zzm.js → authoring-vg90pqrn.js} +488 -213
  4. package/dist/bindings-v2-1da35xsc.js +27 -0
  5. package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-627rrg7z.js} +6 -7
  6. package/dist/{business-rule-export-ey588rv7.js → business-rule-export-jv60r9jf.js} +3 -7
  7. package/dist/carry-forward-sfdnta6q.js +52 -0
  8. package/dist/{case-api-sme7esce.js → case-api-by95rf40.js} +38 -37
  9. package/dist/{case-bindings-service-cht20gqt.js → case-bindings-service-pp3c9g1e.js} +93 -45
  10. package/dist/{case-debug-solution-projects-qqd3h10v.js → case-debug-solution-projects-je7h4hmq.js} +3 -7
  11. package/dist/{case-debug-studio-web-service-nqzmwbr5.js → case-debug-studio-web-service-d83h3atd.js} +48 -45
  12. package/dist/{case-described-io-service-dx1f4nxe.js → case-described-io-service-tsm8r189.js} +33 -15
  13. package/dist/case-event-trigger-bindings-qbs8ywf5.js +17 -0
  14. package/dist/{case-format-service-6aew6tqc.js → case-format-service-3sab2297.js} +9 -10
  15. package/dist/{case-pack-service-pqq8wnfd.js → case-pack-service-txnv711n.js} +47 -42
  16. package/dist/case-schema-version-cw0h2nrv.js +18 -0
  17. package/dist/case-shape-reader-xaxmrd40.js +14 -0
  18. package/dist/{case-splice-service-s5gccctq.js → case-splice-service-6y35w83e.js} +139 -51
  19. package/dist/{case-validate-service-vq38va33.js → case-validate-service-hz0j90we.js} +234 -170
  20. package/dist/connector-enrichment-service-sjjmb9dy.js +56 -0
  21. package/dist/connector-library-1yw5r47w.js +99 -0
  22. package/dist/connector-lookup-service-yerhg9cd.js +20 -0
  23. package/dist/connector-task-shape-bgywpbqc.js +13 -0
  24. package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
  25. package/dist/{de-UZI7FJDO-mwvc4cxe.js → de-AI7ML6JM-km47f8k4.js} +20 -5
  26. package/dist/debug-service-h4jxbn1r.js +56 -0
  27. package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
  28. package/dist/en-LAVDF7IQ-yzy20n6d.js +254 -0
  29. package/dist/en-X6T4SP2Y-xm47mf18.js +2752 -0
  30. package/dist/{enrichment-service-hv7ff88p.js → enrichment-service-wpprec7k.js} +36 -37
  31. package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
  32. package/dist/{es-MX-5RELIXKI-9jhqtddc.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
  33. package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
  34. package/dist/{es-4UBUTCQA-m1ytpyx2.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
  35. package/dist/filter-engine-dh9s90gb.js +10 -0
  36. package/dist/first-party-service-ahcc6xc6.js +8 -0
  37. package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
  38. package/dist/{fr-VBM5WRC2-63z7w4mh.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
  39. package/dist/index-21kns9qg.js +10 -0
  40. package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
  41. package/dist/{connector-task-spec-pzfzmfr5.js → index-9f8naxbk.js} +320 -144
  42. package/dist/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
  43. package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
  44. package/dist/index-j9t2k52h.js +35 -0
  45. package/dist/index-myf7b4a5.js +26 -0
  46. package/dist/index-nj3axvya.js +159 -0
  47. package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
  48. package/dist/index-pg9wmyrf.js +36 -0
  49. package/dist/index-z2qk2qn6.js +24 -0
  50. package/dist/index.js +19 -25
  51. package/dist/index.umd.min-ttg1qc0x.js +7814 -0
  52. package/dist/{init-entry-points-hhpv3e3f.js → init-entry-points-pc128f7z.js} +22 -35
  53. package/dist/input-reader-9ym8mkbc.js +10 -0
  54. package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
  55. package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
  56. package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
  57. package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
  58. package/dist/known-types-gak9by1w.js +11 -0
  59. package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
  60. package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
  61. package/dist/localSolutionDiscovery-48d1bnkj.js +15 -0
  62. package/dist/{migration-diagnosis-ns5cw4e3.js → migration-diagnosis-myqqgwj0.js} +1 -4
  63. package/dist/{node-strategy-v442hwgd.js → node-strategy-2mqzg36t.js} +15 -18
  64. package/dist/node-sync-service-y8b5w1rd.js +56 -0
  65. package/dist/{out-target-wjgmna0r.js → out-target-eqsttq1k.js} +18 -22
  66. package/dist/{packager-tool-f8vwy92w.js → packager-tool-0te1tyhf.js} +186 -16
  67. package/dist/{packager-tool-ydyvtknp.js → packager-tool-0w4fsdzv.js} +44 -20
  68. package/dist/{packager-tool-8ftat1vn.js → packager-tool-17b466mr.js} +59158 -59666
  69. package/dist/packager-tool-1nfdj0zm.js +425 -0
  70. package/dist/packager-tool-1wgav5ma.js +139 -0
  71. package/dist/{packager-tool-b1nw50ev.js → packager-tool-265h946t.js} +256 -486
  72. package/dist/{packager-tool-nj4seavy.js → packager-tool-35c9npcy.js} +26 -7
  73. package/dist/{packager-tool-r0x3qh59.js → packager-tool-388vyja1.js} +185 -29
  74. package/dist/packager-tool-3m8482sw.js +78 -0
  75. package/dist/packager-tool-3r23qsca.js +4832 -0
  76. package/dist/packager-tool-3xehbdyd.js +1302 -0
  77. package/dist/packager-tool-4avchhz8.js +539 -0
  78. package/dist/{packager-tool-9kvkzc05.js → packager-tool-5w0gjcck.js} +4 -4
  79. package/dist/packager-tool-68648y3j.js +6 -0
  80. package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
  81. package/dist/{packager-tool-aagnvyba.js → packager-tool-76zhn5pa.js} +131 -432
  82. package/dist/packager-tool-7x1tmb8a.js +46 -0
  83. package/dist/{packager-tool-kyrm4e5m.js → packager-tool-9ar5829n.js} +781 -741
  84. package/dist/{packager-tool-4p11fvf4.js → packager-tool-b2q8m9pq.js} +10 -13
  85. package/dist/packager-tool-bg3tdpva.js +27 -0
  86. package/dist/{packager-tool-wr12ndwk.js → packager-tool-ccejfs0r.js} +252 -468
  87. package/dist/{packager-tool-yn33pw57.js → packager-tool-dn9d4ywm.js} +246 -225
  88. package/dist/{packager-tool-kdhey8gz.js → packager-tool-e02jkmrq.js} +41 -29
  89. package/dist/{packager-tool-sq931c23.js → packager-tool-e1tx5mqg.js} +1 -1
  90. package/dist/{packager-tool-qn3zkrrc.js → packager-tool-ehjw672b.js} +32 -15
  91. package/dist/packager-tool-gy4yjqhf.js +178 -0
  92. package/dist/packager-tool-h2ar8xf8.js +222 -0
  93. package/dist/{packager-tool-v2kcgjbf.js → packager-tool-j6nfje7t.js} +5 -4
  94. package/dist/packager-tool-k0ar6cn7.js +295 -0
  95. package/dist/packager-tool-kz7zz79p.js +71 -0
  96. package/dist/{packager-tool-1gwbq864.js → packager-tool-m5384a1s.js} +66 -82
  97. package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
  98. package/dist/packager-tool-mk9fmzdy.js +20 -0
  99. package/dist/{packager-tool-yfmby4dd.js → packager-tool-mkt1njk2.js} +630 -689
  100. package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
  101. package/dist/{packager-tool-mqy97y5f.js → packager-tool-p5gs9xqy.js} +14 -14
  102. package/dist/{packager-tool-83v804p7.js → packager-tool-psmb758n.js} +3108 -2627
  103. package/dist/packager-tool-q26hncjr.js +13 -0
  104. package/dist/packager-tool-q9fnx278.js +77 -0
  105. package/dist/{packager-tool-ezds6t5e.js → packager-tool-s12s1dp6.js} +11 -11
  106. package/dist/packager-tool-scy94jyb.js +5424 -0
  107. package/dist/{packager-tool-yn7r7zq2.js → packager-tool-snesn0bt.js} +177 -96
  108. package/dist/{packager-tool-d8e2mrkq.js → packager-tool-tgehy324.js} +56 -56
  109. package/dist/{packager-tool-tqn0j6f9.js → packager-tool-v11fx4dk.js} +7 -7
  110. package/dist/{packager-tool-67vy1fz3.js → packager-tool-v6rkp2ay.js} +24 -92
  111. package/dist/{packager-tool-9sd483vs.js → packager-tool-vs7gqa4r.js} +15 -15
  112. package/dist/packager-tool-vyavrbym.js +488 -0
  113. package/dist/{packager-tool-b098y4a2.js → packager-tool-wbksf242.js} +97 -97
  114. package/dist/{packager-tool-2sn7d8fd.js → packager-tool-x74mmjkw.js} +9 -13
  115. package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
  116. package/dist/{packager-tool-a17g0pj1.js → packager-tool-xd1wbvay.js} +10 -8
  117. package/dist/{packager-tool-1yfw674x.js → packager-tool-xehhk3c3.js} +10 -5
  118. package/dist/packager-tool-yh8mmj3p.js +123 -0
  119. package/dist/{packager-tool-hdxtgckw.js → packager-tool-z070caqq.js} +56 -12
  120. package/dist/{packager-tool-b250k6w4.js → packager-tool-z1fw9a8v.js} +41 -9
  121. package/dist/{packager-tool-0gctz400.js → packager-tool-z9fmqtm6.js} +4 -4
  122. package/dist/{packager-tool-mzf4gmph.js → packager-tool-zbx189j3.js} +11 -8
  123. package/dist/{packager-tool-zf8f9pmm.js → packager-tool-zrbnms9b.js} +3 -4
  124. package/dist/packager-tool.js +10 -11
  125. package/dist/prepare-uip-ad7mfs8t.js +92 -0
  126. package/dist/{project-artifacts-bgyyb0dm.js → project-artifacts-q0c0zghw.js} +2 -6
  127. package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
  128. package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
  129. package/dist/{pt-RMIAKZB4-67enhx3m.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
  130. package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
  131. package/dist/{resolved-check-aqw7568y.js → resolved-check-dz8eqrf6.js} +2 -3
  132. package/dist/{resourcesSyncService-8ac6ncq2.js → resourcesSyncService-yrhhh62m.js} +81 -141
  133. package/dist/{ro-GHOBYW2S-mhnqsgaa.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
  134. package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
  135. package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
  136. package/dist/ru-WBLQ5B2U-bf20yr5y.js +7 -0
  137. package/dist/{rule-group-members-zje7n3kf.js → rule-group-members-p0nv1rmj.js} +1 -3
  138. package/dist/rule-type-declaration-s2nxpcfy.js +77 -0
  139. package/dist/{sdd-convert-service-8jpew7vz.js → sdd-convert-service-ffbx00k6.js} +481 -504
  140. package/dist/{sdd-lookup-fe900sdb.js → sdd-lookup-sah7wj5j.js} +8 -9
  141. package/dist/{sdd-resolve-service-qdtmxw9b.js → sdd-resolve-service-6nt10vhq.js} +28 -20
  142. package/dist/{sdd-resolve-siblings-8gf9zjwf.js → sdd-resolve-siblings-ap8j1c8h.js} +11 -14
  143. package/dist/solution-auth-a1p22hq1.js +11 -0
  144. package/dist/solution-discovery-r1y550sz.js +33 -0
  145. package/dist/{strict-case-rules-4tjcaznr.js → strict-case-rules-045kbjvv.js} +16 -28
  146. package/dist/{strict-entry-points-g2pd4mf4.js → strict-entry-points-40ha9afz.js} +15 -14
  147. package/dist/strict-sdd-audit-bp7fq2tg.js +26 -0
  148. package/dist/{task-selector-8bjn35dv.js → task-selector-jt60hdbt.js} +1 -3
  149. package/dist/{task-type-declaration-7a8fqdvs.js → task-type-declaration-yhczvj05.js} +9 -9
  150. package/dist/tool.js +18 -24
  151. package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
  152. package/dist/{tr-GDTLECMM-k5fhmq13.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
  153. package/dist/{trigger-enrichment-service-agvnhdf7.js → trigger-enrichment-service-z8kxy6qr.js} +53 -57
  154. package/dist/trigger-entry-point-id-751v48qd.js +14 -0
  155. package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
  156. package/dist/{zh-CN-I5D7WHBD-sr5h0a98.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
  157. package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
  158. package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
  159. package/package.json +2 -2
  160. package/dist/canvas-notes-86fxx1t8.js +0 -19
  161. package/dist/case-event-trigger-bindings-g9ftnm4x.js +0 -16
  162. package/dist/case-schema-version-h820ne16.js +0 -20
  163. package/dist/case-shape-reader-dsbraetf.js +0 -13
  164. package/dist/connector-enrichment-service-6kskfevq.js +0 -65
  165. package/dist/connector-lookup-service-yyn8kkw7.js +0 -22
  166. package/dist/connector-task-shape-mpazkf7s.js +0 -14
  167. package/dist/debug-service-7q98j726.js +0 -59
  168. package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
  169. package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
  170. package/dist/filter-engine-7ep90g7f.js +0 -11
  171. package/dist/first-party-service-srxaftkn.js +0 -27
  172. package/dist/index-0d7qc2gs.js +0 -282
  173. package/dist/index-jmv5by9z.js +0 -666
  174. package/dist/index-kmp9fmhb.js +0 -25
  175. package/dist/index-n9qvnx4x.js +0 -29
  176. package/dist/index-ngs0a2he.js +0 -15
  177. package/dist/index-xq6ajhgq.js +0 -157
  178. package/dist/index.umd.min-fqefd9kn.js +0 -7814
  179. package/dist/input-reader-c7wz8ra2.js +0 -11
  180. package/dist/known-types-5b6yrsqn.js +0 -16
  181. package/dist/localSolutionDiscovery-yyx234ak.js +0 -13
  182. package/dist/node-sync-service-2ezr3akv.js +0 -57
  183. package/dist/packager-tool-53w8skv5.js +0 -262
  184. package/dist/packager-tool-6z1hsm2h.js +0 -143
  185. package/dist/packager-tool-93mdeqay.js +0 -18
  186. package/dist/packager-tool-9kf3fqtr.js +0 -23
  187. package/dist/packager-tool-bfgdz1zh.js +0 -73
  188. package/dist/packager-tool-e15kqpyh.js +0 -266
  189. package/dist/packager-tool-gmykn1ef.js +0 -5365
  190. package/dist/packager-tool-jysvpt8p.js +0 -11
  191. package/dist/packager-tool-pcvhcn2k.js +0 -2019
  192. package/dist/packager-tool-rk25wp3c.js +0 -28
  193. package/dist/packager-tool-sc961w0q.js +0 -16
  194. package/dist/packager-tool-wekqkmgn.js +0 -265
  195. package/dist/packager-tool-yc4kw997.js +0 -13
  196. package/dist/packager-tool-zgpsnxkd.js +0 -13189
  197. package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
  198. package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
  199. package/dist/solution-auth-30yycqtv.js +0 -14
  200. package/dist/solution-discovery-e9mamp6w.js +0 -38
  201. package/dist/strict-sdd-audit-q7tb9yj7.js +0 -25
  202. package/dist/trigger-entry-point-id-yhqwnkx9.js +0 -15
  203. /package/dist/{packager-tool-5qp9xza1.js → packager-tool-1c30ttpm.js} +0 -0
  204. /package/dist/{packager-tool-mknccck5.js → packager-tool-1h7abxw6.js} +0 -0
  205. /package/dist/{packager-tool-9y1w2wds.js → packager-tool-fcektt1g.js} +0 -0
  206. /package/dist/{packager-tool-k6jbedyc.js → packager-tool-hcdnc420.js} +0 -0
  207. /package/dist/{packager-tool-7nxppa3d.js → packager-tool-jv5byaww.js} +0 -0
  208. /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
  209. /package/dist/{packager-tool-87y6xw3a.js → packager-tool-nfhtwa72.js} +0 -0
  210. /package/dist/{packager-tool-cv05dwac.js → packager-tool-p0rdmmvk.js} +0 -0
  211. /package/dist/{packager-tool-21qfsbxn.js → packager-tool-yaertxsw.js} +0 -0
@@ -1,20 +1,20 @@
1
1
  import {
2
- getAuthContext
3
- } from "./packager-tool-yn33pw57.js";
2
+ getAuthContext2
3
+ } from "./packager-tool-dn9d4ywm.js";
4
4
  import {
5
- isBrowser
6
- } from "./packager-tool-0gctz400.js";
7
- import {
8
- addSdkUserAgentHeader,
9
- catchError,
5
+ catchError2,
6
+ httpStatusOf,
10
7
  extractErrorMessage,
11
8
  getSdkUserAgentToken,
12
- httpStatusOf,
9
+ addSdkUserAgentHeader,
13
10
  installSdkUserAgentHeader
14
- } from "./packager-tool-83v804p7.js";
11
+ } from "./packager-tool-psmb758n.js";
15
12
  import {
16
- __require
17
- } from "./packager-tool-1yh8g550.js";
13
+ stripJsonStringGuard
14
+ } from "./packager-tool-h2ar8xf8.js";
15
+ import {
16
+ isBrowser2
17
+ } from "./packager-tool-z9fmqtm6.js";
18
18
 
19
19
  // ../integrationservice-sdk/generated/connections/src/runtime.ts
20
20
  var BASE_PATH = "https://alpha.uipath.com/entity/Azure/connections_".replace(/\/+$/, "");
@@ -6243,7 +6243,7 @@ var package_default = {
6243
6243
  name: "@uipath/integrationservice-sdk",
6244
6244
  author: "UiPath",
6245
6245
  license: "SEE LICENSE IN LICENSE.txt",
6246
- version: "1.205.0-preview.281",
6246
+ version: "1.206.0-preview.282",
6247
6247
  repository: {
6248
6248
  type: "git",
6249
6249
  url: "https://github.com/UiPath/cli.git",
@@ -6264,17 +6264,26 @@ var package_default = {
6264
6264
  ".": {
6265
6265
  types: "./dist/src/index.d.ts",
6266
6266
  default: "./dist/index.js"
6267
+ },
6268
+ "./bindings": {
6269
+ types: "./dist/src/bindings.d.ts",
6270
+ default: "./dist/bindings.js"
6271
+ },
6272
+ "./connections": {
6273
+ types: "./dist/src/connections.d.ts",
6274
+ default: "./dist/connections.js"
6267
6275
  }
6268
6276
  },
6269
6277
  files: [
6270
6278
  "dist"
6271
6279
  ],
6272
6280
  scripts: {
6273
- build: "bun build ./src/index.ts --outdir dist --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
6281
+ build: "bun build ./src/index.ts ./src/bindings.ts ./src/connections.ts --outdir dist --root ./src --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
6274
6282
  generate: "bun run src/scripts/generate-sdk.ts",
6275
6283
  lint: "biome check .",
6276
6284
  test: "vitest run",
6277
- "test:coverage": "vitest run --coverage"
6285
+ "test:coverage": "vitest run --coverage",
6286
+ typecheck: "tsc --noEmit"
6278
6287
  },
6279
6288
  devDependencies: {
6280
6289
  "@uipath/auth": "workspace:*",
@@ -6285,7 +6294,7 @@ var package_default = {
6285
6294
  typescript: "^7.0.2"
6286
6295
  },
6287
6296
  dependencies: {
6288
- "@uipath/integration-service-design-time": "2.10.0"
6297
+ "@uipath/integration-service-design-time": "3.3.0"
6289
6298
  }
6290
6299
  };
6291
6300
 
@@ -6317,7 +6326,7 @@ function resolveApiDomain(ApiClass) {
6317
6326
  return API_DOMAIN_MAP.get(ApiClass) ?? API_DOMAIN_BY_NAME.get(baseApiClassName(ApiClass.name));
6318
6327
  }
6319
6328
  async function getValidatedAuthContext(options) {
6320
- const ctx = await getAuthContext({
6329
+ const ctx = await getAuthContext2({
6321
6330
  tenant: options?.tenant,
6322
6331
  ensureTokenValidityMinutes: options?.loginValidity,
6323
6332
  requireOrganizationId: true,
@@ -6331,10 +6340,13 @@ async function getValidatedAuthContext(options) {
6331
6340
  tenantName: ctx.tenantName
6332
6341
  };
6333
6342
  }
6343
+ function tenantServiceRoot(baseUrl, organizationId, tenantName) {
6344
+ return `${baseUrl}/${encodeURIComponent(organizationId)}/${encodeURIComponent(tenantName)}`;
6345
+ }
6334
6346
  async function createConnectionsConfig(options) {
6335
6347
  const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
6336
6348
  return new Configuration({
6337
- basePath: `${baseUrl}/${organizationId}/${tenantName}/connections_`,
6349
+ basePath: `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/connections_`,
6338
6350
  accessToken: async () => accessToken,
6339
6351
  headers: addSdkUserAgentHeader({
6340
6352
  "x-uipath-source": "UiPath.CodingAgent"
@@ -6344,7 +6356,7 @@ async function createConnectionsConfig(options) {
6344
6356
  async function createElementsConfig(options) {
6345
6357
  const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
6346
6358
  return new Configuration2({
6347
- basePath: `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element`,
6359
+ basePath: `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/elements_/v3/element`,
6348
6360
  accessToken: async () => accessToken,
6349
6361
  headers: addSdkUserAgentHeader({
6350
6362
  "x-uipath-source": "UiPath.CodingAgent"
@@ -6356,15 +6368,14 @@ async function createApiClient(ApiClass, options) {
6356
6368
  if (!domain) {
6357
6369
  throw new Error(`Unknown API class: ${ApiClass.name}`);
6358
6370
  }
6359
- const config = domain === "connections" ? await createConnectionsConfig(options) : await createElementsConfig(options);
6371
+ if (domain === "connections") {
6372
+ const config = await createConnectionsConfig(options);
6373
+ return new ApiClass(config);
6374
+ }
6375
+ const config = await createElementsConfig(options);
6360
6376
  return new ApiClass(config);
6361
6377
  }
6362
- var ACTIVITY_VERSION_V1 = "1.0.0";
6363
6378
  var ACTIVITY_VERSION_V4 = "4.0.0";
6364
- var SUPPORTED_ACTIVITY_VERSIONS = [
6365
- ACTIVITY_VERSION_V1,
6366
- ACTIVITY_VERSION_V4
6367
- ];
6368
6379
  function isV4ActivityConfiguration(instanceParameters) {
6369
6380
  if (!instanceParameters)
6370
6381
  return false;
@@ -6372,7 +6383,7 @@ function isV4ActivityConfiguration(instanceParameters) {
6372
6383
  }
6373
6384
  async function getConnectorActivityMetadataV4(options, connectorKey, objectName) {
6374
6385
  const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
6375
- const url = `${baseUrl}/${organizationId}/${tenantName}/elements_/v4/element/connectors/${encodeURIComponent(connectorKey)}/objects/${encodeURIComponent(objectName)}/metadata`;
6386
+ const url = `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/elements_/v4/element/connectors/${encodeURIComponent(connectorKey)}/objects/${encodeURIComponent(objectName)}/metadata`;
6376
6387
  const response = await fetch(url, {
6377
6388
  headers: addSdkUserAgentHeader({
6378
6389
  Authorization: `Bearer ${accessToken}`,
@@ -6388,7 +6399,7 @@ async function getConnectorActivityMetadataV4(options, connectorKey, objectName)
6388
6399
  }
6389
6400
  async function runInstanceDesignAction(options, connectionOrInstanceId, method, relativeUrl, body) {
6390
6401
  const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
6391
- const url = `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element/instances/${encodeURIComponent(connectionOrInstanceId)}${relativeUrl}`;
6402
+ const url = `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/elements_/v3/element/instances/${encodeURIComponent(connectionOrInstanceId)}${relativeUrl}`;
6392
6403
  const headers = addSdkUserAgentHeader({
6393
6404
  Authorization: `Bearer ${accessToken}`,
6394
6405
  Accept: "application/json",
@@ -6416,7 +6427,7 @@ async function runInstanceDesignAction(options, connectionOrInstanceId, method,
6416
6427
  }
6417
6428
  async function getEventOperationObjects(options, elementInstanceId, connectorKey, eventOperation) {
6418
6429
  const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
6419
- const url = `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element/instances/${encodeURIComponent(String(elementInstanceId))}/elements/${encodeURIComponent(connectorKey)}/events/operations/${encodeURIComponent(eventOperation)}/objects`;
6430
+ const url = `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/elements_/v3/element/instances/${encodeURIComponent(String(elementInstanceId))}/elements/${encodeURIComponent(connectorKey)}/events/operations/${encodeURIComponent(eventOperation)}/objects`;
6420
6431
  const response = await fetch(url, {
6421
6432
  headers: addSdkUserAgentHeader({
6422
6433
  Authorization: `Bearer ${accessToken}`,
@@ -6446,141 +6457,6 @@ async function connectorApiFetch(url, init) {
6446
6457
  }
6447
6458
  }
6448
6459
 
6449
- // ../integrationservice-sdk/src/dap/activity-bindings.ts
6450
- var DROPPED_RESOURCES = ["connection", "eventtrigger"];
6451
- var isResourceType = (resource, types) => types.includes((resource ?? "").toLowerCase());
6452
- function storedActivityBindings(bindings) {
6453
- return bindings.filter((binding) => !isResourceType(binding.resource, DROPPED_RESOURCES));
6454
- }
6455
- function planResourceBindings(stored, resolved) {
6456
- const plans = [];
6457
- for (const { field, companion, selection } of resolved) {
6458
- const entry = stored.find((binding) => binding.key?.toLowerCase() === selection.key.toLowerCase() && !isResourceType(binding.resource, ["property"]));
6459
- if (entry === undefined)
6460
- continue;
6461
- const displayName = entry.value?.name?.displayName ?? field;
6462
- const rows = [
6463
- {
6464
- field,
6465
- propertyAttribute: "name",
6466
- name: displayName,
6467
- default: selection.name
6468
- }
6469
- ];
6470
- if (entry.value?.folderKey && selection.folderKey) {
6471
- rows.push({
6472
- field: companion,
6473
- propertyAttribute: "folderKey",
6474
- name: `${displayName} folder`,
6475
- default: selection.folderKey
6476
- });
6477
- }
6478
- plans.push({
6479
- resource: entry.resource,
6480
- resourceKey: selection.key,
6481
- rows
6482
- });
6483
- }
6484
- return plans;
6485
- }
6486
-
6487
- // ../integrationservice-sdk/src/dap/solution-resource-configurations.ts
6488
- var CATALOG_MISS = "was not found in the solution or in the resource catalog";
6489
- function createSolutionResourceConfigurationsProvider(solutionDir, namesByKey = new Map, openedEngine) {
6490
- let engine = openedEngine ? Promise.resolve(openedEngine) : undefined;
6491
- const ensureEngine = () => {
6492
- engine ??= openEngine().catch((err) => {
6493
- engine = undefined;
6494
- throw err;
6495
- });
6496
- return engine;
6497
- };
6498
- const where = solutionDir ? `in ${solutionDir} or the resource catalog` : "in the resource catalog";
6499
- return {
6500
- async getAllConfigurations(resourceKey) {
6501
- const { resources, services } = await ensureEngine();
6502
- const builder = solutionDir ? await services.getSolutionBuilder(solutionDir, true) : undefined;
6503
- const [error, graph] = await catchError(resources.readResourceConfigurationsAsync(services, builder, resourceKey, { name: namesByKey.get(resourceKey) }));
6504
- await builder?.disposeAsync();
6505
- if (error) {
6506
- const status = httpStatusOf(error) ?? (error.message.endsWith(CATALOG_MISS) ? 404 : undefined);
6507
- throw Object.assign(new Error(`Failed to read configuration for solution resource '${resourceKey}' ${where}: ${await extractErrorMessage(error)}`, { cause: error }), { status });
6508
- }
6509
- return {
6510
- resources: graph.resources ?? []
6511
- };
6512
- }
6513
- };
6514
- }
6515
- async function openEngine() {
6516
- const { getSolutionAuthContext } = await import("./solution-auth-30yycqtv.js");
6517
- await getSolutionAuthContext({});
6518
- const resources = await import("./index-ekwtgx7y.js");
6519
- return {
6520
- resources,
6521
- services: await resources.createResourceBuilderServices()
6522
- };
6523
- }
6524
-
6525
- // ../integrationservice-sdk/src/dap/filter-builder/index.ts
6526
- class FilterNotSupportedError extends Error {
6527
- constructor(message) {
6528
- super(message);
6529
- this.name = "FilterNotSupportedError";
6530
- }
6531
- }
6532
- function assertConditionSupported(condition) {
6533
- if (condition.value && condition.value.isLiteral === false) {
6534
- throw new FilterNotSupportedError(`Filter condition on '${condition.id}' uses a dynamic operand (value.isLiteral: false). The compiled expression would embed the raw expression as literal text, so the query would silently match nothing at runtime.`);
6535
- }
6536
- }
6537
- function assertFilterTreeSupported(tree) {
6538
- for (const condition of tree.filters ?? []) {
6539
- assertConditionSupported(condition);
6540
- }
6541
- for (const group of tree.groups ?? []) {
6542
- assertFilterTreeSupported(group);
6543
- }
6544
- }
6545
-
6546
- // ../integrationservice-sdk/src/dap/live-connection-provider.ts
6547
- var _locationShimmed = false;
6548
- function ensureLocationShim(origin) {
6549
- if (_locationShimmed || isBrowser()) {
6550
- return;
6551
- }
6552
- const url = new URL(origin);
6553
- const target = globalThis;
6554
- try {
6555
- target.location = url;
6556
- } catch {
6557
- Object.defineProperty(globalThis, "location", {
6558
- value: url,
6559
- configurable: true
6560
- });
6561
- }
6562
- _locationShimmed = true;
6563
- }
6564
- function createLiveConnectionsProvider() {
6565
- return {
6566
- getConnectionInfo: async (connectionId) => {
6567
- const ctx = await getAuthContext({
6568
- requireOrganizationId: true,
6569
- requireTenantName: true,
6570
- requireTenantId: true
6571
- });
6572
- ensureLocationShim(new URL(ctx.baseUrl).origin);
6573
- const apiBaseUri = `${ctx.baseUrl}/${ctx.organizationId}/${ctx.tenantName}/elements_`;
6574
- return {
6575
- id: connectionId,
6576
- elementInstanceId: connectionId,
6577
- connectorVersion: null,
6578
- ceToken: { accessToken: ctx.accessToken, apiBaseUri }
6579
- };
6580
- }
6581
- };
6582
- }
6583
-
6584
6460
  // ../integrationservice-sdk/src/dap/resource-field-resolver.ts
6585
6461
  var FIELD_ARRAY_MARKER = "[*]";
6586
6462
  function resourceFolderKeyFieldName(fieldName) {
@@ -6591,9 +6467,11 @@ function isResourceSelection(value) {
6591
6467
  return typeof value === "object" && value !== null && typeof value.key === "string" && typeof value.name === "string";
6592
6468
  }
6593
6469
 
6594
- class ResourceFieldResolutionError extends Error {
6595
- constructor(message) {
6470
+ class ResourceFieldResolutionError2 extends Error {
6471
+ fromInput;
6472
+ constructor(message, fromInput = false) {
6596
6473
  super(message);
6474
+ this.fromInput = fromInput;
6597
6475
  this.name = "ResourceFieldResolutionError";
6598
6476
  }
6599
6477
  }
@@ -6603,7 +6481,7 @@ async function resolveResourceFieldValues(fieldValues, resourceFields, solutionD
6603
6481
  solution ??= await openSolution(solutionDir);
6604
6482
  return solution;
6605
6483
  };
6606
- const [resolveError, resolved] = await catchError(resolveEach(fieldValues, resourceFields, openOnce));
6484
+ const [resolveError, resolved] = await catchError2(resolveEach(fieldValues, resourceFields, openOnce));
6607
6485
  const saveError = solution ? await saveSolution(solution, solutionDir) : null;
6608
6486
  if (resolveError) {
6609
6487
  if (saveError) {
@@ -6612,7 +6490,7 @@ async function resolveResourceFieldValues(fieldValues, resourceFields, solutionD
6612
6490
  throw resolveError;
6613
6491
  }
6614
6492
  if (saveError) {
6615
- throw new ResourceFieldResolutionError(`The resource was referenced but the solution at '${solutionDir}' could not be saved: ${saveError.message}`);
6493
+ throw new ResourceFieldResolutionError2(`The resource was referenced but the solution at '${solutionDir}' could not be saved: ${saveError.message}`);
6616
6494
  }
6617
6495
  return resolved;
6618
6496
  }
@@ -6624,10 +6502,10 @@ async function resolveEach(fieldValues, resourceFields, openOnce) {
6624
6502
  continue;
6625
6503
  }
6626
6504
  if (Array.isArray(value)) {
6627
- throw new ResourceFieldResolutionError(`'${field.name}' is a multi-select ${field.kind} picker, which the CLI cannot resolve yet — pick one ${field.kind} by name.`);
6505
+ throw new ResourceFieldResolutionError2(`'${field.name}' is a multi-select ${field.kind} picker, which the CLI cannot resolve yet — pick one ${field.kind} by name.`, true);
6628
6506
  }
6629
6507
  if (typeof value !== "string") {
6630
- throw new ResourceFieldResolutionError(`'${field.name}' is a ${field.kind} picker on this activity — pass the ${field.kind} name as a string.`);
6508
+ throw new ResourceFieldResolutionError2(`'${field.name}' is a ${field.kind} picker on this activity — pass the ${field.kind} name as a string.`, true);
6631
6509
  }
6632
6510
  const companion = resourceFolderKeyFieldName(field.name);
6633
6511
  const folderHint = fieldValues[companion];
@@ -6639,10 +6517,10 @@ async function resolveEach(fieldValues, resourceFields, openOnce) {
6639
6517
  return resolved;
6640
6518
  }
6641
6519
  async function openSolution(solutionDir) {
6642
- const [error, solution] = await catchError((async () => {
6643
- const { getSolutionAuthContext } = await import("./solution-auth-30yycqtv.js");
6520
+ const [error, solution] = await catchError2((async () => {
6521
+ const { getSolutionAuthContext } = await import("./solution-auth-a1p22hq1.js");
6644
6522
  await getSolutionAuthContext({});
6645
- const resources = await import("./index-ekwtgx7y.js");
6523
+ const resources = await import("./index-ec115v05.js");
6646
6524
  await resources.normalizeResourceFileCasing(solutionDir);
6647
6525
  const services = await resources.createResourceBuilderServices();
6648
6526
  return {
@@ -6651,7 +6529,7 @@ async function openSolution(solutionDir) {
6651
6529
  };
6652
6530
  })());
6653
6531
  if (error) {
6654
- throw new ResourceFieldResolutionError(`A resource picker needs the solution the resource is referenced into, and '${solutionDir}' could not be opened: ${error.message}. ` + "Check the project sits in a solution and you are logged in (run 'uip login').");
6532
+ throw new ResourceFieldResolutionError2(`A resource picker needs the solution the resource is referenced into, and '${solutionDir}' could not be opened: ${error.message}. ` + "Check the project sits in a solution and you are logged in (run 'uip login').");
6655
6533
  }
6656
6534
  return solution;
6657
6535
  }
@@ -6663,20 +6541,20 @@ async function saveSolution({ resources, builder }, solutionDir) {
6663
6541
  }
6664
6542
  async function referenceResource({ resources, builder }, field, name, folderHint, companion) {
6665
6543
  const matches = await resources.searchRcsResources(builder, field.kind, name);
6666
- const candidates = matches.filter((match2) => match2.name.toLowerCase() === name.toLowerCase() && (folderHint === undefined || matchesFolder(resources, match2, folderHint)));
6544
+ const candidates = matches.filter((match) => match.name.toLowerCase() === name.toLowerCase() && (folderHint === undefined || matchesFolder(resources, match, folderHint)));
6667
6545
  if (candidates.length === 0) {
6668
- throw new ResourceFieldResolutionError(`No ${field.kind} named '${name}'${folderHint ? ` in folder '${folderHint}'` : ""} was found. ` + "If a failed resource catalog lookup was logged above, check your login and retry. " + `Otherwise run 'uip solution resources list --source remote --kind ${field.kind} --search "${name}"' to discover candidates.`);
6546
+ throw new ResourceFieldResolutionError2(`No ${field.kind} named '${name}'${folderHint ? ` in folder '${folderHint}'` : ""} was found. ` + "If a failed resource catalog lookup was logged above, check your login and retry. " + `Otherwise run 'uip solution resources list --source remote --kind ${field.kind} --search "${name}"' to discover candidates.`);
6669
6547
  }
6670
6548
  if (candidates.length > 1) {
6671
- const folders = candidates.map((match2) => ` - ${match2.folder?.fullyQualifiedName ?? "<tenant>"} (folder key ${match2.folder?.folderKey ?? "<none>"})`).join(`
6549
+ const folders = candidates.map((match) => ` - ${match.folder?.fullyQualifiedName ?? "<tenant>"} (folder key ${match.folder?.folderKey ?? "<none>"})`).join(`
6672
6550
  `);
6673
- throw new ResourceFieldResolutionError(`${candidates.length} ${field.kind} resources are named '${name}'. Pass the folder key or path as '${companion}' to pick one:
6674
- ${folders}`);
6551
+ throw new ResourceFieldResolutionError2(`${candidates.length} ${field.kind} resources are named '${name}'. Pass the folder key or path as '${companion}' to pick one:
6552
+ ${folders}`, true);
6675
6553
  }
6676
6554
  const [match] = candidates;
6677
- const [loadError, solution] = await catchError(builder.context.loadAsync());
6555
+ const [loadError, solution] = await catchError2(builder.context.loadAsync());
6678
6556
  if (loadError) {
6679
- throw new ResourceFieldResolutionError(`Failed to read the solution before referencing ${field.kind} '${name}': ${loadError.message}`);
6557
+ throw new ResourceFieldResolutionError2(`Failed to read the solution before referencing ${field.kind} '${name}': ${loadError.message}`);
6680
6558
  }
6681
6559
  const existing = solution.resources.find((resource) => resource.key.toLowerCase() === match.key.toLowerCase());
6682
6560
  if (existing) {
@@ -6687,7 +6565,7 @@ ${folders}`);
6687
6565
  folderPath: match.folder?.fullyQualifiedName
6688
6566
  };
6689
6567
  }
6690
- const [referenceError, response] = await catchError(builder.addOrUpdateResourceToSolutionAsync({
6568
+ const [referenceError, response] = await catchError2(builder.addOrUpdateResourceToSolutionAsync({
6691
6569
  kind: field.kind,
6692
6570
  type: match.type,
6693
6571
  key: match.key,
@@ -6695,7 +6573,7 @@ ${folders}`);
6695
6573
  folder: match.folder
6696
6574
  }, true));
6697
6575
  if (referenceError) {
6698
- throw new ResourceFieldResolutionError(`Failed to reference ${field.kind} '${name}' into the solution: ${referenceError.message}`);
6576
+ throw new ResourceFieldResolutionError2(`Failed to reference ${field.kind} '${name}' into the solution: ${referenceError.message}`);
6699
6577
  }
6700
6578
  return {
6701
6579
  key: response.resource.key,
@@ -6714,9 +6592,104 @@ function matchesFolder({ normalizeFolderPath }, match, folderHint) {
6714
6592
  return normalizeFolderPath(folder.fullyQualifiedName) === hint || folder.path !== undefined && normalizeFolderPath(folder.path) === hint;
6715
6593
  }
6716
6594
 
6595
+ // ../integrationservice-sdk/src/dap/filter-builder/index.ts
6596
+ class FilterNotSupportedError extends Error {
6597
+ constructor(message) {
6598
+ super(message);
6599
+ this.name = "FilterNotSupportedError";
6600
+ }
6601
+ }
6602
+ function assertConditionSupported(condition) {
6603
+ if (condition.value && condition.value.isLiteral === false) {
6604
+ throw new FilterNotSupportedError(`Filter condition on '${condition.id}' uses a dynamic operand (value.isLiteral: false). The compiled expression would embed the raw expression as literal text, so the query would silently match nothing at runtime.`);
6605
+ }
6606
+ }
6607
+ function assertFilterTreeSupported(tree) {
6608
+ for (const condition of tree.filters ?? []) {
6609
+ assertConditionSupported(condition);
6610
+ }
6611
+ for (const group of tree.groups ?? []) {
6612
+ assertFilterTreeSupported(group);
6613
+ }
6614
+ }
6615
+
6616
+ // ../integrationservice-sdk/src/dap/live-connection-provider.ts
6617
+ var _locationShimmed = false;
6618
+ function ensureLocationShim(origin) {
6619
+ if (_locationShimmed || isBrowser2()) {
6620
+ return;
6621
+ }
6622
+ const url = new URL(origin);
6623
+ const target = globalThis;
6624
+ try {
6625
+ target.location = url;
6626
+ } catch {
6627
+ Object.defineProperty(globalThis, "location", {
6628
+ value: url,
6629
+ configurable: true
6630
+ });
6631
+ }
6632
+ _locationShimmed = true;
6633
+ }
6634
+ function createLiveConnectionsProvider() {
6635
+ return {
6636
+ getConnectionInfo: async (connectionId) => {
6637
+ const ctx = await getAuthContext2({
6638
+ requireOrganizationId: true,
6639
+ requireTenantName: true,
6640
+ requireTenantId: true
6641
+ });
6642
+ ensureLocationShim(new URL(ctx.baseUrl).origin);
6643
+ const apiBaseUri = `${ctx.baseUrl}/${ctx.organizationId}/${ctx.tenantName}/elements_`;
6644
+ return {
6645
+ id: connectionId,
6646
+ elementInstanceId: connectionId,
6647
+ connectorVersion: null,
6648
+ ceToken: { accessToken: ctx.accessToken, apiBaseUri }
6649
+ };
6650
+ }
6651
+ };
6652
+ }
6653
+
6654
+ // ../integrationservice-sdk/src/dap/solution-resource-configurations.ts
6655
+ var CATALOG_MISS = "was not found in the solution or in the resource catalog";
6656
+ function createSolutionResourceConfigurationsProvider(solutionDir, namesByKey = new Map, openedEngine) {
6657
+ let engine = openedEngine ? Promise.resolve(openedEngine) : undefined;
6658
+ const ensureEngine = () => {
6659
+ engine ??= openEngine().catch((err) => {
6660
+ engine = undefined;
6661
+ throw err;
6662
+ });
6663
+ return engine;
6664
+ };
6665
+ const where = solutionDir ? `in ${solutionDir} or the resource catalog` : "in the resource catalog";
6666
+ return {
6667
+ async getAllConfigurations(resourceKey) {
6668
+ const { resources, services } = await ensureEngine();
6669
+ const builder = solutionDir ? await services.getSolutionBuilder(solutionDir, true) : undefined;
6670
+ const [error, graph] = await catchError2(resources.readResourceConfigurationsAsync(services, builder, resourceKey, { name: namesByKey.get(resourceKey) }));
6671
+ await builder?.disposeAsync();
6672
+ if (error) {
6673
+ const status = httpStatusOf(error) ?? (error.message.endsWith(CATALOG_MISS) ? 404 : undefined);
6674
+ throw Object.assign(new Error(`Failed to read configuration for solution resource '${resourceKey}' ${where}: ${await extractErrorMessage(error)}`, { cause: error }), { status });
6675
+ }
6676
+ return {
6677
+ resources: graph.resources ?? []
6678
+ };
6679
+ }
6680
+ };
6681
+ }
6682
+ async function openEngine() {
6683
+ const { getSolutionAuthContext } = await import("./solution-auth-a1p22hq1.js");
6684
+ await getSolutionAuthContext({});
6685
+ const resources = await import("./index-ec115v05.js");
6686
+ return {
6687
+ resources,
6688
+ services: await resources.createResourceBuilderServices()
6689
+ };
6690
+ }
6691
+
6717
6692
  // ../integrationservice-sdk/src/dap/essential-config.ts
6718
- var MANAGED_HTTP_CONNECTOR_KEY = "uipath-uipath-http";
6719
- var MANAGED_HTTP_CONNECTOR_VERSION = "1.4.50";
6720
6693
  function buildActivityEssentialConfiguration(instanceParameters, methodInfo, savedFilterTrees = null, customFieldsRequestDetails = null) {
6721
6694
  const operation = methodInfo.operation.toLowerCase();
6722
6695
  const savedJitInputFieldId = computeSavedJitInputFieldId(operation, methodInfo.parameters, instanceParameters.objectName);
@@ -6764,7 +6737,7 @@ async function configureActivityClient({
6764
6737
  assertFilterTreeSupported(tree);
6765
6738
  }
6766
6739
  }
6767
- const { DesignTimeActivityClient } = await import("./index-fyc0k5dd.js");
6740
+ const { DesignTimeActivityClient } = await import("./index-5pzp2qeb.js");
6768
6741
  const initiateOptions = {
6769
6742
  connectionsProvider: createLiveConnectionsProvider(),
6770
6743
  ...solutionDir ? {
@@ -6818,28 +6791,6 @@ function assertActivityMetadataResolved(essentialConfiguration, connectionId) {
6818
6791
  throw new Error(`Connector activity metadata was not resolved for connection '${connectionId}' (no connectorVersion). Check the connection is enabled and you are logged in (run 'uip login').`);
6819
6792
  }
6820
6793
  }
6821
- function buildManagedHttpEssentialConfiguration() {
6822
- const essentialConfiguration = {
6823
- connectorVersion: MANAGED_HTTP_CONNECTOR_VERSION,
6824
- executionType: null,
6825
- customFieldsRequestDetails: null,
6826
- instanceParameters: {
6827
- connectorKey: MANAGED_HTTP_CONNECTOR_KEY,
6828
- objectName: "http-request",
6829
- httpMethod: "POST",
6830
- activityType: "Curated",
6831
- version: "1.0.0"
6832
- },
6833
- objectName: "http-request",
6834
- operation: "create",
6835
- packageVersion: "1.0.0",
6836
- httpMethod: "POST",
6837
- path: "/http-request",
6838
- unifiedTypesCompatible: true,
6839
- savedJitInputFieldId: "in_http-request"
6840
- };
6841
- return { essentialConfiguration };
6842
- }
6843
6794
 
6844
6795
  // ../integrationservice-sdk/src/dap/input-metadata.ts
6845
6796
  function findMultipartBodyField(params) {
@@ -6927,14 +6878,6 @@ function validateFolderKey(context) {
6927
6878
  return [];
6928
6879
  }
6929
6880
  var VALID_HTTP_METHODS = new Set(["GET", "POST", "PUT", "PATCH", "DELETE"]);
6930
- var METHOD_TO_OPERATION = {
6931
- GET: "List",
6932
- GETBYID: "Retrieve",
6933
- POST: "Create",
6934
- PATCH: "Update",
6935
- DELETE: "Delete",
6936
- PUT: "Replace"
6937
- };
6938
6881
  var OPERATION_TO_METHOD = {
6939
6882
  LIST: "GET",
6940
6883
  RETRIEVE: "GETBYID",
@@ -6973,7 +6916,7 @@ function validateMethodMatchesOperation(context) {
6973
6916
  return [];
6974
6917
  if (!VALID_HTTP_METHODS.has(context.httpMethod.toUpperCase()))
6975
6918
  return [];
6976
- const jsonStr = context.configuration.startsWith("=jsonString:") ? context.configuration.slice("=jsonString:".length) : context.configuration;
6919
+ const jsonStr = stripJsonStringGuard(context.configuration);
6977
6920
  let operation;
6978
6921
  try {
6979
6922
  const parsed = JSON.parse(jsonStr);
@@ -7047,7 +6990,7 @@ function validateConfiguration(context) {
7047
6990
  issue(context, "configuration", "Error", 'Configuration is missing or empty. Expected `=jsonString:` prefix wrapping a JSON string with shape `{"essentialConfiguration": {"objectName": "...", "connectionId": "...", ...}}`. Re-run `uip maestro flow nodes configure` to populate this field correctly.')
7048
6991
  ];
7049
6992
  }
7050
- const jsonStr = context.configuration.startsWith("=jsonString:") ? context.configuration.slice("=jsonString:".length) : context.configuration;
6993
+ const jsonStr = stripJsonStringGuard(context.configuration);
7051
6994
  try {
7052
6995
  const parsed = JSON.parse(jsonStr);
7053
6996
  if (!parsed.essentialConfiguration) {
@@ -7182,42 +7125,100 @@ var DEFAULT_RULES = [
7182
7125
  function validateIntSvcNode(context, rules = DEFAULT_RULES) {
7183
7126
  return rules.flatMap((rule) => rule(context));
7184
7127
  }
7128
+ // ../integrationservice-sdk/src/connection-state.ts
7129
+ var CONNECTION_STATE_NAMES = new Map([
7130
+ [ConnectionState.Enabled, "Enabled"],
7131
+ [ConnectionState.Disabled, "Disabled"],
7132
+ [ConnectionState.Expired, "Expired"],
7133
+ [ConnectionState.Failed, "Failed"]
7134
+ ]);
7185
7135
  // ../integrationservice-sdk/src/metadata/design-actions.ts
7186
7136
  var DESIGN_ACTION_TYPE = "api";
7187
- function matchApiAction(actions, fieldValues, actionName) {
7188
- let matched = null;
7189
- for (const candidate of actions) {
7137
+ function actionRefFieldNames(action) {
7138
+ const rules = action.rules ?? action.Rules ?? [];
7139
+ return rules.map((r) => r.refFieldName ?? r.RefFieldName).filter((n) => typeof n === "string");
7140
+ }
7141
+ var BUTTON_COMPONENT = "Button";
7142
+ function buttonInputNames(fields, parameters, designOverrides) {
7143
+ const component = (design) => design?.component;
7144
+ const names = new Set;
7145
+ for (const [name, field] of Object.entries(fieldMap(fields))) {
7146
+ if ((component(designOverrides(field)) ?? component(field.design)) === BUTTON_COMPONENT) {
7147
+ names.add(name);
7148
+ }
7149
+ }
7150
+ for (const parameter of Array.isArray(parameters) ? parameters : []) {
7151
+ const { name, design } = parameter;
7152
+ if (typeof name === "string" && component(design) === BUTTON_COMPONENT) {
7153
+ names.add(name);
7154
+ }
7155
+ }
7156
+ return names;
7157
+ }
7158
+
7159
+ class ConflictingDesignActionsError extends Error {
7160
+ actionNames;
7161
+ fieldName;
7162
+ requirements;
7163
+ constructor(actionNames, fieldName, requirements = []) {
7164
+ super(`More than one design action runs on field '${fieldName}' with the supplied values: ${actionNames.map((name) => `'${name}'`).join(", ")}.`);
7165
+ this.name = "ConflictingDesignActionsError";
7166
+ this.actionNames = actionNames;
7167
+ this.fieldName = fieldName;
7168
+ this.requirements = requirements;
7169
+ }
7170
+ }
7171
+ function matchApiAction(actions, fieldValues, actionName, buttons) {
7172
+ const satisfied = actions.filter((candidate) => {
7190
7173
  const type = candidate.actionType ?? candidate.ActionType;
7191
7174
  if (typeof type !== "string" || type.toLowerCase() !== DESIGN_ACTION_TYPE) {
7192
- continue;
7175
+ return false;
7193
7176
  }
7194
- const name = candidate.name ?? candidate.Name;
7195
- if (actionName && name !== actionName)
7196
- continue;
7177
+ if (actionName && actionNameOf(candidate) !== actionName)
7178
+ return false;
7197
7179
  const rules = candidate.rules ?? candidate.Rules ?? [];
7198
- if (!rules.every((rule) => ruleSatisfied(rule, fieldValues)))
7199
- continue;
7200
- matched = candidate;
7201
- break;
7180
+ return rules.every((rule) => ruleSatisfied(rule, fieldValues, buttons));
7181
+ });
7182
+ if (actionName)
7183
+ return satisfied[0] ? normalizeAction(satisfied[0]) : null;
7184
+ for (const field of Object.keys(fieldValues).reverse()) {
7185
+ const keyed = satisfied.filter((action) => actionRefFieldNames(action).includes(field));
7186
+ if (keyed.length > 1) {
7187
+ throw new ConflictingDesignActionsError(keyed.map(actionNameOf), field, keyed.map((action) => ({
7188
+ name: actionNameOf(action),
7189
+ refFieldNames: actionRefFieldNames(action)
7190
+ })));
7191
+ }
7192
+ if (keyed.length === 1)
7193
+ return normalizeAction(keyed[0]);
7202
7194
  }
7203
- if (!matched)
7204
- return null;
7205
- return normalizeAction(matched);
7195
+ return null;
7206
7196
  }
7207
- function ruleSatisfied(rule, fieldValues) {
7197
+ function actionNameOf(action) {
7198
+ return String(action.name ?? action.Name ?? "");
7199
+ }
7200
+ function ruleSatisfied(rule, fieldValues, buttons) {
7208
7201
  const fieldName = rule.refFieldName ?? rule.RefFieldName;
7209
7202
  if (typeof fieldName !== "string")
7210
- return true;
7211
- const value = fieldValues[fieldName];
7212
- const isEmpty = value === undefined || value === "";
7213
- if ((rule.isCleared ?? rule.IsCleared) === true)
7214
- return isEmpty;
7215
- if (isEmpty)
7216
7203
  return false;
7204
+ const recordLevel = rule.customRecordLevelFields ?? rule.CustomRecordLevelFields;
7205
+ if (typeof recordLevel === "string" && recordLevel.toLowerCase() === "generated") {
7206
+ return false;
7207
+ }
7208
+ const value = fieldValues[fieldName];
7209
+ if (value === undefined || value.trim() === "") {
7210
+ return (rule.isCleared ?? rule.IsCleared) === true;
7211
+ }
7212
+ if (buttons.has(fieldName))
7213
+ return true;
7214
+ if ((rule.isConstantValue ?? rule.IsConstantValue) === true)
7215
+ return true;
7217
7216
  const allowed = rule.refFieldValues ?? rule.RefFieldValues;
7218
- if (!Array.isArray(allowed) || allowed.length === 0)
7217
+ if (!Array.isArray(allowed))
7218
+ return false;
7219
+ if (allowed.length === 1 && String(allowed[0]) === "*")
7219
7220
  return true;
7220
- return allowed.some((v) => v === "*" || String(v) === value);
7221
+ return allowed.some((refValue) => typeof refValue === "boolean" ? value.toLowerCase() === String(refValue) : String(refValue) === value);
7221
7222
  }
7222
7223
  function normalizeAction(action) {
7223
7224
  const apiConfig = action.apiConfiguration ?? action.ApiConfiguration;
@@ -7251,7 +7252,7 @@ function normalizeAction(action) {
7251
7252
  rules: ruleFieldNames
7252
7253
  };
7253
7254
  }
7254
- var loadDesignTime = () => import("./index-fyc0k5dd.js");
7255
+ var loadDesignTime = () => import("./index-5pzp2qeb.js");
7255
7256
  var RESOURCE_KEY_EXPRESSION = "resourceKey";
7256
7257
  var SAFE_RESOURCE_KEY = /^(?!\.+$)[A-Za-z0-9._:-]+$/;
7257
7258
  function sentRequest(designTime, action) {
@@ -7321,11 +7322,18 @@ async function runDesignAction(options, connectionId, action, fieldValues, solut
7321
7322
  }
7322
7323
  return result.body;
7323
7324
  }
7324
-
7325
+ function fieldMap(fields) {
7326
+ if (Array.isArray(fields)) {
7327
+ return Object.fromEntries(fields.map((field) => [field.name, field]));
7328
+ }
7329
+ return fields ?? {};
7330
+ }
7331
+ // ../integrationservice-sdk/src/metadata/resource-metadata.ts
7332
+ var CRUD_OPERATIONS = new Set(["CREATED", "UPDATED", "DELETED"]);
7325
7333
  // ../integrationservice-sdk/src/metadata/trigger-design-actions.ts
7326
7334
  async function findTriggerDesignAction(eventObject, fieldValues, target, actionName) {
7327
7335
  const design = eventObject.design;
7328
- const declared = matchApiAction(design?.actions ?? [], fieldValues, actionName);
7336
+ const declared = matchApiAction(design?.actions ?? [], fieldValues, actionName, buttonInputNames(eventObject.fields, eventObject.parameters, (field) => field.events?.[target.operation]?.designOverrides));
7329
7337
  if (!declared)
7330
7338
  return null;
7331
7339
  const { routeTriggerObjectAction } = await loadDesignTime();
@@ -7353,230 +7361,6 @@ async function runTriggerDesignAction(options, connectionId, baseMetadata, actio
7353
7361
  const response = await runDesignAction(options, connectionId, action, fieldValues, solutionResources, configurationsProvider);
7354
7362
  return applyTriggerDesignActionRemap(baseMetadata, response, action.onSuccess);
7355
7363
  }
7356
- // ../integrationservice-sdk/src/connection-state.ts
7357
- var CONNECTION_STATE_NAMES = new Map([
7358
- [ConnectionState.Enabled, "Enabled"],
7359
- [ConnectionState.Disabled, "Disabled"],
7360
- [ConnectionState.Expired, "Expired"],
7361
- [ConnectionState.Failed, "Failed"]
7362
- ]);
7363
- function normalizeConnectionStatus(status) {
7364
- if (typeof status === "number") {
7365
- return CONNECTION_STATE_NAMES.get(status) ?? String(status);
7366
- }
7367
- if (typeof status === "string") {
7368
- const numericStatus = Number(status);
7369
- if (Number.isInteger(numericStatus)) {
7370
- return CONNECTION_STATE_NAMES.get(numericStatus) ?? status;
7371
- }
7372
- const normalized = status.toLowerCase();
7373
- if (normalized === "enabled")
7374
- return "Enabled";
7375
- if (normalized === "disabled")
7376
- return "Disabled";
7377
- if (normalized === "expired")
7378
- return "Expired";
7379
- if (normalized === "failed")
7380
- return "Failed";
7381
- return status;
7382
- }
7383
- return "Unknown";
7384
- }
7385
- // ../integrationservice-sdk/src/metadata/resource-metadata.ts
7386
- async function fetchRawMetadata(api, connectorKey, objectName, connectionId) {
7387
- if (connectionId) {
7388
- const response2 = await api.getInstanceObjectMetadataRaw({
7389
- connectionOrInstanceId: connectionId,
7390
- elementKey: connectorKey,
7391
- objectName,
7392
- includeParentArray: true
7393
- });
7394
- return await response2.raw.json();
7395
- }
7396
- const response = await api.getObjectMetadataRaw({
7397
- elementKey: connectorKey,
7398
- objectName,
7399
- includeParentArray: true
7400
- });
7401
- return await response.raw.json();
7402
- }
7403
- function buildResourceCompactSummary(metadata, operation) {
7404
- const metadataObj = metadata.metadata;
7405
- const methods = metadataObj?.method || {};
7406
- const fields = metadata.fields || {};
7407
- if (!operation) {
7408
- const availableOperations = Object.entries(methods).map(([methodKey, methodVal]) => {
7409
- const curated2 = methodVal.curated;
7410
- return {
7411
- method: methodKey,
7412
- name: METHOD_TO_OPERATION[methodKey] || methodKey,
7413
- description: methodVal.description,
7414
- path: methodVal.path,
7415
- curated: curated2?.displayName
7416
- };
7417
- });
7418
- return {
7419
- name: metadata.name,
7420
- displayName: metadata.displayName,
7421
- elementKey: metadata.elementKey,
7422
- availableOperations,
7423
- hint: "Use --operation <Create|List|Retrieve|Update|Delete|Replace> to see fields for a specific operation."
7424
- };
7425
- }
7426
- const httpMethod = OPERATION_TO_METHOD[operation.toUpperCase()] || operation.toUpperCase();
7427
- const methodInfo = methods[httpMethod];
7428
- if (!methodInfo) {
7429
- return {
7430
- name: metadata.name,
7431
- displayName: metadata.displayName,
7432
- elementKey: metadata.elementKey,
7433
- error: `Operation '${operation}' not found. Available: ${Object.keys(methods).map((k) => METHOD_TO_OPERATION[k] || k).join(", ")}`
7434
- };
7435
- }
7436
- const rawParams = methodInfo.parameters || [];
7437
- const parameters = rawParams.filter((p) => p.type === "path" || p.type === "query" || p.type === "multipart").map((p) => {
7438
- const param = {
7439
- name: p.name,
7440
- type: p.type,
7441
- dataType: p.dataType,
7442
- required: p.required === true,
7443
- displayName: p.displayName
7444
- };
7445
- if (p.description)
7446
- param.description = p.description;
7447
- if (p.defaultValue !== undefined)
7448
- param.defaultValue = p.defaultValue;
7449
- if (p.reference)
7450
- param.reference = p.reference;
7451
- return param;
7452
- });
7453
- const requestFields = [];
7454
- const responseFields = [];
7455
- for (const [, fieldDef] of Object.entries(fields)) {
7456
- const design = fieldDef.design;
7457
- const isHidden = design?.isHidden === true;
7458
- const fieldMethod = fieldDef.method?.[httpMethod];
7459
- if (!fieldMethod)
7460
- continue;
7461
- const compact = {
7462
- name: fieldDef.name,
7463
- type: fieldDef.type,
7464
- displayName: fieldDef.displayName
7465
- };
7466
- if (fieldDef.description)
7467
- compact.description = fieldDef.description;
7468
- if (fieldDef.reference)
7469
- compact.reference = fieldDef.reference;
7470
- if (Array.isArray(fieldDef.enum) && fieldDef.enum.length > 0) {
7471
- compact.enum = fieldDef.enum.map((e) => e.value ?? e);
7472
- }
7473
- if (fieldDef.primaryKey === true)
7474
- compact.primaryKey = true;
7475
- if (fieldDef.searchable === true)
7476
- compact.searchable = true;
7477
- if (fieldDef.searchableOperators !== undefined)
7478
- compact.searchableOperators = fieldDef.searchableOperators;
7479
- if (fieldDef.searchableNames !== undefined)
7480
- compact.searchableNames = fieldDef.searchableNames;
7481
- if (!isHidden && (fieldMethod.request === true || fieldMethod.requestCurated === true)) {
7482
- requestFields.push({
7483
- ...compact,
7484
- required: fieldMethod.required === true
7485
- });
7486
- }
7487
- if (fieldMethod.response === true || fieldMethod.responseCurated === true) {
7488
- responseFields.push(compact);
7489
- }
7490
- }
7491
- const curated = methodInfo.curated;
7492
- return {
7493
- name: metadata.name,
7494
- displayName: metadata.displayName,
7495
- elementKey: metadata.elementKey,
7496
- operation: {
7497
- method: httpMethod,
7498
- name: METHOD_TO_OPERATION[httpMethod] || httpMethod,
7499
- description: methodInfo.description,
7500
- path: methodInfo.path,
7501
- curated: curated?.displayName
7502
- },
7503
- parameters,
7504
- requestFields,
7505
- responseFields,
7506
- ...Object.keys(methods).length > 0 && {
7507
- method: JSON.stringify(methods)
7508
- }
7509
- };
7510
- }
7511
- var CRUD_OPERATIONS = new Set(["CREATED", "UPDATED", "DELETED"]);
7512
- async function fetchTriggerMetadata(api, connectorKey, operationName, objectName, connectionId) {
7513
- if (connectionId) {
7514
- return catchError(api.getInstanceEventObjectMetadata({
7515
- connectionOrInstanceId: connectionId,
7516
- elementKey: connectorKey,
7517
- operationName,
7518
- objectName,
7519
- allFields: true
7520
- }));
7521
- }
7522
- return catchError(api.getEventObjectMetadata({
7523
- elementKey: connectorKey,
7524
- operationName,
7525
- objectName,
7526
- allFields: true
7527
- }));
7528
- }
7529
- function buildCompactField(fieldDef, fieldName) {
7530
- const compact = {
7531
- name: fieldDef.name ?? fieldName,
7532
- type: fieldDef.type ?? fieldDef.dataType,
7533
- displayName: fieldDef.displayName
7534
- };
7535
- if (fieldDef.description)
7536
- compact.description = fieldDef.description;
7537
- if (fieldDef.reference)
7538
- compact.reference = fieldDef.reference;
7539
- if (Array.isArray(fieldDef.enum) && fieldDef.enum.length > 0) {
7540
- compact.enum = fieldDef.enum.map((e) => e.value ?? e);
7541
- }
7542
- return compact;
7543
- }
7544
- function buildTriggerCompactSummary(metadata, operationName) {
7545
- const fields = metadata.fields ?? {};
7546
- const eventParameters = [];
7547
- const filterFields = [];
7548
- const outputFields = [];
7549
- for (const [fieldName, fieldDef] of Object.entries(fields)) {
7550
- const compact = buildCompactField(fieldDef, fieldName);
7551
- outputFields.push({ ...compact });
7552
- const events = fieldDef.events;
7553
- if (events?.[operationName]) {
7554
- const eventDef = events[operationName];
7555
- const overrides = eventDef.designOverrides;
7556
- eventParameters.push({
7557
- ...compact,
7558
- displayName: overrides?.displayName ?? compact.displayName,
7559
- description: overrides?.description ?? compact.description,
7560
- required: eventDef.required === true
7561
- });
7562
- }
7563
- if (fieldDef.order === 1 || fieldDef.isCuratedEventField === true) {
7564
- filterFields.push({ ...compact });
7565
- }
7566
- }
7567
- return {
7568
- name: metadata.name,
7569
- displayName: metadata.displayName,
7570
- elementKey: metadata.elementKey,
7571
- operation: operationName,
7572
- eventMode: metadata.eventMode,
7573
- byoaConnection: metadata.byoaConnection === true,
7574
- isWebhookUrlVisible: metadata.isWebhookUrlVisible === true,
7575
- eventParameters,
7576
- filterFields,
7577
- outputFields
7578
- };
7579
- }
7580
- export { ConnectionOperationsApi, ConnectionsApi, ConnectorsApi, ElementsApi, createApiClient, ACTIVITY_VERSION_V4, SUPPORTED_ACTIVITY_VERSIONS, isV4ActivityConfiguration, getConnectorActivityMetadataV4, getEventOperationObjects, normalizeConnectionStatus, storedActivityBindings, planResourceBindings, createSolutionResourceConfigurationsProvider, MANAGED_HTTP_CONNECTOR_KEY, buildActivityEssentialConfiguration, createConfiguredActivityClient, configureActivityClient, applySavedFilterTree, assertActivityMetadataResolved, buildManagedHttpEssentialConfiguration, extractMultipartParameters, inlineMultipartFileValues, buildInputMetadata, validateIntSvcNode, resourcePickersRequestNeeds, fetchRawMetadata, buildResourceCompactSummary, fetchTriggerMetadata, buildTriggerCompactSummary, findTriggerDesignAction, triggerEventParameters, runTriggerDesignAction };
7364
+ export { ConnectionOperationsApi, ConnectionsApi, ConnectorsApi, ElementsApi, createApiClient, isV4ActivityConfiguration, getConnectorActivityMetadataV4, getEventOperationObjects, resourceFolderKeyFieldName, ResourceFieldResolutionError2, createSolutionResourceConfigurationsProvider, buildActivityEssentialConfiguration, createConfiguredActivityClient, configureActivityClient, assertActivityMetadataResolved, extractMultipartParameters, inlineMultipartFileValues, buildInputMetadata, validateIntSvcNode, ConflictingDesignActionsError, resourcePickersRequestNeeds, findTriggerDesignAction, triggerEventParameters, runTriggerDesignAction };
7581
7365
 
7582
- //# debugId=195578617CF39EE064756E2164756E21
7366
+ //# debugId=29D2FAE6F2C59FC664756E2164756E21