@uipath/case-tool 1.206.0-preview.303 → 1.207.0-preview.305

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 (150) hide show
  1. package/README.md +7 -90
  2. package/dist/THIRD-PARTY-NOTICES.md +162 -7
  3. package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
  4. package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
  5. package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
  6. package/dist/{business-rule-export-pggs7x01.js → business-rule-export-0pbc3ysq.js} +2 -2
  7. package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
  8. package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
  9. package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
  10. package/dist/case-catalog-h4fjn6q3.js +304 -0
  11. package/dist/{case-debug-solution-projects-c300019s.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
  12. package/dist/{case-debug-studio-web-service-b6xe8es1.js → case-debug-studio-web-service-7smzvq4c.js} +10 -9
  13. package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
  14. package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
  15. package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
  16. package/dist/case-pack-service-bp7sh20v.js +297 -0
  17. package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
  18. package/dist/{case-validate-service-p324kcry.js → case-validate-service-fxvq4qx7.js} +146 -38
  19. package/dist/{connector-enrichment-service-9wnew5a0.js → connector-enrichment-service-x0w721wj.js} +26 -25
  20. package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
  21. package/dist/{connector-lookup-service-v8r2htmg.js → connector-lookup-service-51pca3bf.js} +8 -8
  22. package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
  23. package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
  24. package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
  25. package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
  26. package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
  27. package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
  28. package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-7f4sdff5.js} +17 -17
  29. package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
  30. package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
  31. package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
  32. package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
  33. package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
  34. package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
  35. package/dist/{index-n1ndwwsz.js → index-2j5tfjwv.js} +129 -76
  36. package/dist/{index-kc1h1yf6.js → index-ezxmyhan.js} +4 -4
  37. package/dist/{index-j2gw61z0.js → index-gb75pv5a.js} +111 -65
  38. package/dist/index-prn518fr.js +36 -0
  39. package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
  40. package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
  41. package/dist/index-wkmh1h6w.js +26 -0
  42. package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
  43. package/dist/index.js +13 -11
  44. package/dist/init-entry-points-52kvvbg9.js +15 -0
  45. package/dist/input-reader-zr71xcm9.js +13 -0
  46. package/dist/integration-service-fetcher-bpbz1gcx.js +68 -0
  47. package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
  48. package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
  49. package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
  50. package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
  51. package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
  52. package/dist/library-option-pbvkt66g.js +13 -0
  53. package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
  54. package/dist/manifest-rhee8kem.js +32 -0
  55. package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
  56. package/dist/{node-sync-service-7n5960qy.js → node-sync-service-q1a37d6n.js} +21 -15
  57. package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
  58. package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
  59. package/dist/{packager-tool-rfdkx9c9.js → packager-tool-00qmds4s.js} +254 -69
  60. package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
  61. package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
  62. package/dist/{packager-tool-anvg0etj.js → packager-tool-178xtejt.js} +191 -154
  63. package/dist/{packager-tool-j69tzg52.js → packager-tool-1dsedy7x.js} +59 -34
  64. package/dist/packager-tool-1yew22sn.js +9 -0
  65. package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
  66. package/dist/{packager-tool-z4phaas7.js → packager-tool-2x40ye7a.js} +21 -7
  67. package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
  68. package/dist/packager-tool-34ttsx9q.js +18 -0
  69. package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
  70. package/dist/{packager-tool-7hcpmn4g.js → packager-tool-380ac64s.js} +61 -11
  71. package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
  72. package/dist/packager-tool-3k5j706w.js +73 -0
  73. package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
  74. package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
  75. package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
  76. package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
  77. package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
  78. package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
  79. package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
  80. package/dist/packager-tool-c9h0rwgv.js +31 -0
  81. package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
  82. package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
  83. package/dist/{packager-tool-m4kp6a7j.js → packager-tool-ej14cxen.js} +22 -22
  84. package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
  85. package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
  86. package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
  87. package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
  88. package/dist/packager-tool-geh2qybm.js +179 -0
  89. package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
  90. package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
  91. package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
  92. package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
  93. package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
  94. package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
  95. package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
  96. package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
  97. package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
  98. package/dist/packager-tool-n6h4bz4d.js +22 -0
  99. package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
  100. package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
  101. package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
  102. package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
  103. package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
  104. package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
  105. package/dist/packager-tool-vmfd007q.js +27 -0
  106. package/dist/packager-tool-wvf6b31h.js +50 -0
  107. package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
  108. package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
  109. package/dist/{packager-tool-jkwpw95j.js → packager-tool-z13dp55w.js} +3393 -3092
  110. package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
  111. package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
  112. package/dist/packager-tool.js +2 -2
  113. package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
  114. package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-77yctm8b.js} +1 -1
  115. package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
  116. package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
  117. package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
  118. package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
  119. package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
  120. package/dist/{resourcesSyncService-y5r4k43w.js → resourcesSyncService-gegbd8b8.js} +49 -26
  121. package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
  122. package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
  123. package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
  124. package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
  125. package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
  126. package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
  127. package/dist/{sdd-resolve-siblings-xsm2ktkq.js → sdd-resolve-siblings-qz7gwws5.js} +4 -4
  128. package/dist/solution-auth-yb1twb9d.js +11 -0
  129. package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
  130. package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
  131. package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
  132. package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
  133. package/dist/taggable-variables-gc58xb0s.js +6094 -0
  134. package/dist/task-type-declaration-b0ejzhc6.js +15 -0
  135. package/dist/tool.js +13 -11
  136. package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
  137. package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
  138. package/dist/{trigger-enrichment-service-dzkht78s.js → trigger-enrichment-service-bsj58ppa.js} +33 -32
  139. package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
  140. package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
  141. package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
  142. package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
  143. package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
  144. package/package.json +2 -2
  145. package/dist/case-pack-service-adhg30nq.js +0 -167
  146. package/dist/index-garh9kcd.js +0 -35
  147. package/dist/input-reader-pjt4a914.js +0 -10
  148. package/dist/packager-tool-v11fx4dk.js +0 -25
  149. package/dist/solution-auth-a1p22hq1.js +0 -11
  150. package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  catchError2,
3
3
  logger
4
- } from "./packager-tool-6ewsbrnb.js";
4
+ } from "./packager-tool-j8mnpsv8.js";
5
5
  import {
6
6
  ConnectionsApi,
7
7
  ElementsApi,
8
- createApiClient,
9
- isV4ActivityConfiguration,
10
- getConnectorActivityMetadataV4
11
- } from "./packager-tool-jkwpw95j.js";
8
+ createApiClient2,
9
+ isV4ActivityConfiguration2,
10
+ getConnectorActivityMetadataV4,
11
+ connectorMaxPageSize
12
+ } from "./packager-tool-z13dp55w.js";
12
13
 
13
14
  // ../maestro-sdk/src/registry/integration-service-fetcher.ts
14
15
  function parseContext(node) {
@@ -60,11 +61,11 @@ function extractFields(metadata, method, requestOnly) {
60
61
  return compact;
61
62
  });
62
63
  }
63
- function isConnectorNode(node) {
64
+ function isConnectorNode2(node) {
64
65
  const nodeType = node.nodeType;
65
66
  return nodeType?.startsWith("uipath.connector") || false;
66
67
  }
67
- function isConnectorTriggerNode(node) {
68
+ function isConnectorTriggerNode2(node) {
68
69
  const nodeType = node.nodeType;
69
70
  return nodeType?.startsWith("uipath.connector.trigger") || false;
70
71
  }
@@ -80,15 +81,15 @@ function toCompactField(field, required) {
80
81
  applyOptionalFieldProps(compact, field);
81
82
  return compact;
82
83
  }
83
- function extractTriggerEventParameters(metadata, operationName) {
84
+ function extractTriggerEventParameters2(metadata, operationName) {
84
85
  const fields = Object.values(metadata?.fields ?? {});
85
86
  return fields.filter((field) => !!field.events?.[operationName]).map((field) => toCompactField(field, field.events?.[operationName]?.required === true));
86
87
  }
87
- function extractTriggerFilterFields(metadata) {
88
+ function extractTriggerFilterFields2(metadata) {
88
89
  const fields = Object.values(metadata?.fields ?? {});
89
90
  return fields.filter((field) => field.order === 1).map((field) => toCompactField(field, false));
90
91
  }
91
- function extractActivityFilterFields(metadata, _method) {
92
+ function extractActivityFilterFields2(metadata, _method) {
92
93
  const fieldsObj = metadata?.fields ?? {};
93
94
  const fields = Array.isArray(fieldsObj) ? fieldsObj : Object.values(fieldsObj);
94
95
  return fields.filter((field) => field.searchable === true).map((field) => {
@@ -118,8 +119,8 @@ function extractTriggerOutputFields(metadata) {
118
119
  return compact;
119
120
  });
120
121
  }
121
- async function fetchConnectorTriggerMetadata(connectorKey, operationName, objectName, connectionId) {
122
- const api = await createApiClient(ElementsApi);
122
+ async function fetchConnectorTriggerMetadata2(connectorKey, operationName, objectName, connectionId) {
123
+ const api = await createApiClient2(ElementsApi);
123
124
  const triggerMetadata = await api.getInstanceEventObjectMetadata({
124
125
  connectionOrInstanceId: connectionId,
125
126
  elementKey: connectorKey,
@@ -143,13 +144,30 @@ function getConfigurationString(node) {
143
144
  }
144
145
  return;
145
146
  }
146
- function getConnectorConfiguration(node) {
147
+ function getConnectorConfiguration2(node) {
147
148
  const configStr = getConfigurationString(node);
148
149
  if (!configStr)
149
150
  return null;
150
151
  const [err, parsed] = catchError2(() => JSON.parse(configStr));
151
152
  return err ? null : parsed;
152
153
  }
154
+ function getConnectorInfo2(node) {
155
+ const context = parseContext(node);
156
+ const config = getConnectorConfiguration2(node);
157
+ if (!context && !config)
158
+ return null;
159
+ const connectorKey = config?.connectorKey ?? context?.connectorKey ?? "";
160
+ const objectName = config?.objectName ?? context?.objectName ?? "";
161
+ if (!connectorKey || !objectName)
162
+ return null;
163
+ return {
164
+ connectorKey,
165
+ objectName,
166
+ method: config?.httpMethod ?? context?.method ?? "POST",
167
+ activityType: config?.activityType ?? ""
168
+ };
169
+ }
170
+
153
171
  class ConnectionConnectorMismatchError2 extends Error {
154
172
  instructions;
155
173
  constructor(message, instructions) {
@@ -158,14 +176,14 @@ class ConnectionConnectorMismatchError2 extends Error {
158
176
  this.name = "ConnectionConnectorMismatchError";
159
177
  }
160
178
  }
161
- function assertConnectionConnector(connectionId, info, connectorKey, subject) {
179
+ function assertConnectionConnector2(connectionId, info, connectorKey, subject) {
162
180
  if (!info.connectorKey || !connectorKey || info.connectorKey.toLowerCase() === connectorKey.toLowerCase()) {
163
181
  return;
164
182
  }
165
183
  throw new ConnectionConnectorMismatchError2(`Connection "${connectionId}" is a ${info.connectorKey} connection, but ${subject} runs on ${connectorKey}.`, `Pass a ${connectorKey} connection: 'uip is connections list ${connectorKey} --all-folders'.`);
166
184
  }
167
- async function fetchConnectionInfo(connectionId) {
168
- const api = await createApiClient(ConnectionsApi);
185
+ async function fetchConnectionInfo2(connectionId) {
186
+ const api = await createApiClient2(ConnectionsApi);
169
187
  const response = await api.apiV1ConnectionsConnectionIdGet({
170
188
  connectionId
171
189
  });
@@ -183,7 +201,7 @@ async function fetchConnectionInfo(connectionId) {
183
201
  };
184
202
  }
185
203
  async function fetchConnectorMetadata2(connectorKey, objectName, connectionId) {
186
- const api = await createApiClient(ElementsApi);
204
+ const api = await createApiClient2(ElementsApi);
187
205
  if (connectionId) {
188
206
  const response = await api.getInstanceObjectMetadataRaw({
189
207
  connectionOrInstanceId: connectionId,
@@ -200,14 +218,22 @@ async function fetchConnectorMetadata2(connectorKey, objectName, connectionId) {
200
218
  });
201
219
  return await response.raw.json();
202
220
  }
203
- async function fetchConnectorActivityMetadataV4(connectorKey, objectName) {
221
+ async function fetchConnectorMaxPageSize2(connectorKey) {
222
+ const api = await createApiClient2(ElementsApi);
223
+ const response = await api.getElementStringRaw({
224
+ elementKey: connectorKey
225
+ });
226
+ const element = JSON.parse(await response.raw.text());
227
+ return connectorMaxPageSize(element.configuration);
228
+ }
229
+ async function fetchConnectorActivityMetadataV42(connectorKey, objectName) {
204
230
  return await getConnectorActivityMetadataV4(undefined, connectorKey, objectName);
205
231
  }
206
232
  function buildEnrichedActivityNode(node, metadata, method) {
207
233
  const connectorMethodInfo = metadata?.metadata?.method?.[method];
208
234
  const inputFields = extractFields(metadata, method, true);
209
235
  const outputFields = extractFields(metadata, method, false);
210
- const filterFields = extractActivityFilterFields(metadata, method);
236
+ const filterFields = extractActivityFilterFields2(metadata, method);
211
237
  return {
212
238
  ...node,
213
239
  ...connectorMethodInfo && { connectorMethodInfo },
@@ -220,8 +246,8 @@ function buildEnrichedActivityNode(node, metadata, method) {
220
246
  }
221
247
  async function enrichConnectorActivityNode(node, connectionId) {
222
248
  const parsed = parseContext(node);
223
- const config = getConnectorConfiguration(node);
224
- if (isV4ActivityConfiguration(config)) {
249
+ const config = getConnectorConfiguration2(node);
250
+ if (isV4ActivityConfiguration2(config)) {
225
251
  return enrichV4ConnectorActivityNode(node, connectionId, config);
226
252
  }
227
253
  if (!parsed)
@@ -244,34 +270,33 @@ async function enrichV4ConnectorActivityNode(node, connectionId, config) {
244
270
  if (connectionId) {
245
271
  logger.warn("v4 metadata endpoints are not connection-scoped — --connection-id is ignored for 4.0.0 enrichment.");
246
272
  }
247
- const [error, metadata] = await catchError2(fetchConnectorActivityMetadataV4(connectorKey, objectName));
273
+ const [error, metadata] = await catchError2(fetchConnectorActivityMetadataV42(connectorKey, objectName));
248
274
  if (error) {
249
275
  logger.warn(`IS v4 enrichment failed: ${error.message}`);
250
276
  return node;
251
277
  }
252
278
  return buildEnrichedActivityNode(node, metadata, method);
253
279
  }
254
- async function enrichConnectorNode(node, connectionId) {
255
- if (!isConnectorNode(node))
280
+ async function enrichConnectorNode2(node, connectionId) {
281
+ if (!isConnectorNode2(node))
256
282
  return node;
257
- return isConnectorTriggerNode(node) ? enrichConnectorTriggerNode(node, connectionId) : enrichConnectorActivityNode(node, connectionId);
283
+ return isConnectorTriggerNode2(node) ? enrichConnectorTriggerNode(node, connectionId) : enrichConnectorActivityNode(node, connectionId);
258
284
  }
259
285
  async function enrichConnectorTriggerNode(node, connectionId) {
260
- if (!connectionId) {
261
- throw new Error("Trigger nodes require --connection-id for IS enrichment. Provide it with --connection-id <id>.");
262
- }
286
+ if (!connectionId)
287
+ return node;
263
288
  const parsed = parseContext(node);
264
289
  if (!parsed?.operation)
265
290
  return node;
266
291
  const { connectorKey, objectName, operation } = parsed;
267
- const metadata = await fetchConnectorTriggerMetadata(connectorKey, operation, objectName, connectionId);
268
- const eventParameters = extractTriggerEventParameters(metadata, operation);
269
- const filterFields = extractTriggerFilterFields(metadata);
292
+ const metadata = await fetchConnectorTriggerMetadata2(connectorKey, operation, objectName, connectionId);
293
+ const eventParameters = extractTriggerEventParameters2(metadata, operation);
294
+ const filterFields = extractTriggerFilterFields2(metadata);
270
295
  const outputFields = extractTriggerOutputFields(metadata);
271
296
  let byoaConnection = false;
272
297
  let elementInstanceId = null;
273
298
  if (connectionId) {
274
- const [connErr, connInfo] = await catchError2(fetchConnectionInfo(connectionId));
299
+ const [connErr, connInfo] = await catchError2(fetchConnectionInfo2(connectionId));
275
300
  if (!connErr) {
276
301
  byoaConnection = connInfo.byoaConnection;
277
302
  elementInstanceId = connInfo.elementInstanceId;
@@ -290,6 +315,6 @@ async function enrichConnectorTriggerNode(node, connectionId) {
290
315
  };
291
316
  }
292
317
 
293
- export { extractTriggerEventParameters, extractTriggerFilterFields, extractActivityFilterFields, fetchConnectorTriggerMetadata, ConnectionConnectorMismatchError2, assertConnectionConnector, fetchConnectionInfo, fetchConnectorMetadata2, enrichConnectorNode };
318
+ export { isConnectorNode2, isConnectorTriggerNode2, extractTriggerEventParameters2, extractTriggerFilterFields2, extractActivityFilterFields2, fetchConnectorTriggerMetadata2, getConnectorConfiguration2, getConnectorInfo2, ConnectionConnectorMismatchError2, assertConnectionConnector2, fetchConnectionInfo2, fetchConnectorMetadata2, fetchConnectorMaxPageSize2, fetchConnectorActivityMetadataV42, enrichConnectorNode2 };
294
319
 
295
- //# debugId=1F5E5EEBDAE1651764756E2164756E21
320
+ //# debugId=B707F299EE30E2D164756E2164756E21
@@ -0,0 +1,9 @@
1
+ // ../common/src/guid.ts
2
+ var GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
3
+ function isGuid(value) {
4
+ return GUID_REGEX.test(value);
5
+ }
6
+
7
+ export { isGuid };
8
+
9
+ //# debugId=96A1E422D88D1FB764756E2164756E21
@@ -25,7 +25,7 @@ var stampEntryPointIds2 = (plan, ids) => {
25
25
  return written;
26
26
  };
27
27
  var stampFromEntryPointsBeside2 = async (plan, out) => {
28
- const { readEntryPointIds } = await import("./case-event-trigger-bindings-pmad4dev.js");
28
+ const { readEntryPointIds } = await import("./case-event-trigger-bindings-8nd78j4e.js");
29
29
  const read = await readEntryPointIds(out);
30
30
  if ("error" in read)
31
31
  return { error: read.error };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  catchError2,
3
+ RESULTS,
3
4
  redactTokens,
4
5
  parseAuthChallenge,
5
- RESULTS,
6
6
  summarizePlatformBody,
7
7
  logger,
8
8
  getSdkUserAgentToken,
9
9
  addSdkUserAgentHeader,
10
10
  installSdkUserAgentHeader
11
- } from "./packager-tool-6ewsbrnb.js";
11
+ } from "./packager-tool-j8mnpsv8.js";
12
12
  import {
13
13
  zipSync
14
14
  } from "./packager-tool-wbksf242.js";
@@ -501,7 +501,7 @@ var package_default = {
501
501
  name: "@uipath/solution-sdk",
502
502
  author: "UiPath",
503
503
  license: "SEE LICENSE IN LICENSE.txt",
504
- version: "1.206.0-preview.303",
504
+ version: "1.207.0-preview.305",
505
505
  repository: {
506
506
  type: "git",
507
507
  url: "https://github.com/UiPath/cli.git",
@@ -542,6 +542,10 @@ var package_default = {
542
542
  "./project-context": {
543
543
  types: "./dist/src/project-context.d.ts",
544
544
  default: "./dist/project-context.js"
545
+ },
546
+ "./invocation-graph": {
547
+ types: "./dist/src/invocation-graph.d.ts",
548
+ default: "./dist/invocation-graph.js"
545
549
  }
546
550
  },
547
551
  bin: {
@@ -552,7 +556,7 @@ var package_default = {
552
556
  ],
553
557
  private: false,
554
558
  scripts: {
555
- build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.ts ./src/project-context.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
559
+ build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.ts ./src/project-context.ts ./src/invocation-graph.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
556
560
  generate: "bun run src/scripts/generate-sdk.ts",
557
561
  lint: "biome check .",
558
562
  test: "vitest run",
@@ -974,14 +978,16 @@ async function mirrorTree(fs, srcDir, relativeBase, destBaseDir, ignoreRules) {
974
978
  if (rootRel) {
975
979
  await fs.mkdir(fs.path.join(destBaseDir, rootRel));
976
980
  }
977
- return;
981
+ return [];
978
982
  }
983
+ const copied = [];
979
984
  for (const f of files) {
980
985
  const relPath = fs.path.relative(relativeBase, f);
981
986
  const destPath = fs.path.join(destBaseDir, relPath);
982
987
  const data = await fs.readFile(f);
983
988
  if (data) {
984
989
  await fs.writeFile(destPath, data);
990
+ copied.push(f);
985
991
  } else {
986
992
  logger.warn(`Skipping empty or unreadable file: ${f}`);
987
993
  }
@@ -993,6 +999,7 @@ async function mirrorTree(fs, srcDir, relativeBase, destBaseDir, ignoreRules) {
993
999
  }
994
1000
  await fs.mkdir(fs.path.join(destBaseDir, relPath));
995
1001
  }
1002
+ return copied;
996
1003
  }
997
1004
  async function buildSolutionPackageFromDir2(fs, solutionDir) {
998
1005
  const absoluteSolutionDir = fs.path.resolve(solutionDir);
@@ -1112,6 +1119,7 @@ function buildAuthRefusalInstructions({
1112
1119
  const closing = bodySuffix ? `If the grants and the tenant are already right, report the platform ` + `response, including its traceId.${bodySuffix}` : challenge.error ? `If the grants and the tenant are already right, report that reason ` + `together with the request path and status above.` : `If the grants and the tenant are already right, report the request ` + `path and status above — Studio Web returned no response body and ` + `no authentication challenge, so there is nothing further to quote.`;
1113
1120
  return `Studio Web ${refusal} while ${what}. ${diagnosis}${actor}${tenant}` + `Nothing was uploaded and nothing ran, so the ${subject} is not the ` + `cause. ${closing}`;
1114
1121
  }
1122
+ var INVALID_FILE_NAME_ERROR_CODE = "20039";
1115
1123
  function buildSolutionUploadFailureOutput2(err, options = {}) {
1116
1124
  const stage = err.operation === "overwrite" ? "overwrite-solution" : "import-solution";
1117
1125
  const authRefusal = isAuthRefusal(err.status);
@@ -1132,7 +1140,8 @@ function buildSolutionUploadFailureOutput2(err, options = {}) {
1132
1140
  identityType: options.identityType,
1133
1141
  clientId: options.clientId
1134
1142
  }) : undefined;
1135
- const Instructions = authInstructions ?? (err.operation === "overwrite" ? `Studio Web refused to replace the contents of solution ` + `${target}. Nothing was uploaded and nothing ran, so the ` + `${subject} is not the cause: do not re-author it, and do not ` + `copy the project into another solution. Confirm that ${target} ` + `is a solution you can still write to, and that it is the one ` + `this project should publish to — it comes from the SolutionId ` + `recorded in the enclosing solution file. If it is right, report ` + `the platform response.${bodySuffix}` : `Studio Web refused to import the solution package. Nothing was ` + `uploaded and nothing ran, so no part of the ${subject} executed ` + `— but the package itself may be what was rejected.${importHint} ` + `Report the platform response if the ${subject} is ` + `well-formed.${bodySuffix}`);
1143
+ const invalidFileName = err.parsedErrorCode === INVALID_FILE_NAME_ERROR_CODE;
1144
+ const Instructions = authInstructions ?? (invalidFileName ? `Studio Web refused a file name in the uploaded solution ` + `package: a file inside a project folder has a name holding a ` + `control character or one of : * ? " < > |, and the platform ` + `does not say which file. Rename that file, or move it out ` + `of the project folder, and upload again. Retrying ` + `unchanged fails the same way.${bodySuffix}` : err.operation === "overwrite" ? `Studio Web refused to replace the contents of solution ` + `${target}. Nothing was uploaded and nothing ran, so the ` + `${subject} is not the cause: do not re-author it, and do not ` + `copy the project into another solution. Confirm that ${target} ` + `is a solution you can still write to, and that it is the one ` + `this project should publish to — it comes from the SolutionId ` + `recorded in the enclosing solution file. If it is right, report ` + `the platform response.${bodySuffix}` : `Studio Web refused to import the solution package. Nothing was ` + `uploaded and nothing ran, so no part of the ${subject} executed ` + `— but the package itself may be what was rejected.${importHint} ` + `Report the platform response if the ${subject} is ` + `well-formed.${bodySuffix}`);
1136
1145
  const Context = {
1137
1146
  httpStatus: err.status,
1138
1147
  stage,
@@ -1151,6 +1160,11 @@ function buildSolutionUploadFailureOutput2(err, options = {}) {
1151
1160
  if (err.status === 401 && options.identityType === "Application") {
1152
1161
  output.ErrorCode = "permission_denied";
1153
1162
  }
1163
+ if (invalidFileName) {
1164
+ output.ErrorCode = "invalid_argument";
1165
+ output.Retry = "RetryWillNotFix";
1166
+ return output;
1167
+ }
1154
1168
  if (err.operation === "overwrite" && err.status >= 500 && err.status < 600) {
1155
1169
  output.Retry = "RetryAfter30Seconds";
1156
1170
  }
@@ -1285,4 +1299,4 @@ async function uploadOrOverwriteSolution2(config, organizationName, fileBufferOr
1285
1299
  }
1286
1300
  export { buildSolutionPackageFromDir2, isSolutionUploadHttpError2, buildSolutionUploadFailureOutput2, uploadOrOverwriteSolution2 };
1287
1301
 
1288
- //# debugId=B92824039194DD4664756E2164756E21
1302
+ //# debugId=E764D44A2060333264756E2164756E21
@@ -80,6 +80,6 @@ var activityTypeIdMessage = (subject, context, consequence) => {
80
80
  return `Connector ${subject} has a metadata configuration with no ` + `${ACTIVITY_TYPE_ID_KEY} at context[metadata].` + `${ACTIVITY_TYPE_ID_PATH}. ${consequence}`;
81
81
  };
82
82
 
83
- export { contextEntries, contextEntry, missingContextKeys, readActivityTypeId, ACTIVITY_TYPE_ID_PATH, activityTypeIdMessage };
83
+ export { contextEntries, contextEntry, entryValue, missingContextKeys, readActivityTypeId, ACTIVITY_TYPE_ID_PATH, activityTypeIdMessage };
84
84
 
85
- //# debugId=F8BD888811A2746964756E2164756E21
85
+ //# debugId=BD614689A6641ED064756E2164756E21
@@ -0,0 +1,18 @@
1
+ // src/utils/pull-failure-next-step.ts
2
+ function pullFailureNextStep(errorCode, retry, source) {
3
+ const pull = "'uip maestro case registry pull --force'";
4
+ if (errorCode === "authentication_required") {
5
+ return `Run 'uip login', then ${pull}.`;
6
+ }
7
+ if (errorCode === "permission_denied") {
8
+ return `This account cannot read ${source}. Get access to it, then run ${pull}.`;
9
+ }
10
+ if (retry === "RetryWillNotFix") {
11
+ return `Fix the cause, then run ${pull}; a retry alone gets the same answer.`;
12
+ }
13
+ return `Run ${pull} later; a retry now gets the same answer.`;
14
+ }
15
+
16
+ export { pullFailureNextStep };
17
+
18
+ //# debugId=6A7407EBB3D924A364756E2164756E21
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./packager-tool-z070caqq.js";
3
+ } from "./packager-tool-p64w2wrt.js";
4
4
  import {
5
5
  catchError2
6
- } from "./packager-tool-6ewsbrnb.js";
6
+ } from "./packager-tool-j8mnpsv8.js";
7
7
 
8
8
  // ../maestro-sdk/src/registry/snapshot.ts
9
9
  function maestroRegistryRoot(filesystem) {
@@ -1,29 +1,61 @@
1
1
  import {
2
- catchError2
3
- } from "./packager-tool-6ewsbrnb.js";
2
+ catchError2,
3
+ defaultRetryForErrorCode
4
+ } from "./packager-tool-j8mnpsv8.js";
4
5
  import {
5
6
  ConnectorsApi,
6
- createApiClient
7
- } from "./packager-tool-jkwpw95j.js";
7
+ createApiClient2
8
+ } from "./packager-tool-z13dp55w.js";
8
9
  import {
9
10
  TYPECACHE_ACTIVITY_INDEX_TYPES,
10
11
  TYPECACHE_TRIGGER_INDEX_TYPES,
11
12
  TYPECACHE_PACKAGE_INDEX_TYPES
12
13
  } from "./packager-tool-jv5byaww.js";
13
14
  import {
14
- loadResourceIndex
15
- } from "./packager-tool-k871wgpe.js";
15
+ pullFailureNextStep
16
+ } from "./packager-tool-34ttsx9q.js";
17
+ import {
18
+ loadResourceIndex,
19
+ loadIndexMetadata
20
+ } from "./packager-tool-j53d4vv1.js";
16
21
 
17
22
  // src/services/connector-lookup-service.ts
23
+ var MAX_UPSTREAM_MESSAGE = 400;
24
+
25
+ class ConnectorCatalogUnavailableError extends Error {
26
+ errorCode;
27
+ retry;
28
+ instructions;
29
+ status;
30
+ index;
31
+ constructor(index, failure) {
32
+ super(`Connector catalog unavailable: the last pull of ${index} failed with HTTP ${failure.httpStatus} from Studio Web TypeCache at ${new Date(failure.at).toISOString()}.`);
33
+ this.name = "ConnectorCatalogUnavailableError";
34
+ this.index = index;
35
+ this.status = failure.httpStatus;
36
+ this.errorCode = failure.errorCode ?? "unknown_error";
37
+ this.retry = failure.retry ?? defaultRetryForErrorCode(this.errorCode);
38
+ const upstream = failure.message.length > MAX_UPSTREAM_MESSAGE ? `${failure.message.slice(0, MAX_UPSTREAM_MESSAGE)}…` : failure.message;
39
+ this.instructions = `Studio Web TypeCache answered: ${upstream}. ` + "The connector catalog cannot be read until a pull succeeds. " + pullFailureNextStep(this.errorCode, this.retry, "Studio Web TypeCache");
40
+ }
41
+ }
42
+ async function pullFailureFor(index) {
43
+ const [, meta] = await catchError2(loadIndexMetadata(index));
44
+ const failure = meta?.lastError;
45
+ return typeof failure?.httpStatus !== "number" ? undefined : new ConnectorCatalogUnavailableError(index, failure);
46
+ }
18
47
  async function lookupTypeCacheEntry2(uiPathActivityTypeId, type) {
19
48
  const types = typeof type === "string" ? [type] : type;
20
49
  let entry;
21
50
  let matchedType = types[0];
51
+ let unavailable;
22
52
  for (const candidate of types) {
23
53
  const [loadError, entries] = await catchError2(loadResourceIndex(candidate));
24
54
  if (loadError) {
55
+ const failed = await pullFailureFor(candidate);
25
56
  if (types.length === 1)
26
- throw loadError;
57
+ throw failed ?? loadError;
58
+ unavailable ??= failed;
27
59
  continue;
28
60
  }
29
61
  const match = entries.find((e) => e.uiPathActivityTypeId === uiPathActivityTypeId);
@@ -34,6 +66,8 @@ async function lookupTypeCacheEntry2(uiPathActivityTypeId, type) {
34
66
  }
35
67
  }
36
68
  if (!entry) {
69
+ if (unavailable)
70
+ throw unavailable;
37
71
  throw new Error(`No entry found in ${types.join(", ")} with uiPathActivityTypeId: ${uiPathActivityTypeId}`);
38
72
  }
39
73
  const [parseError, config] = catchError2(() => JSON.parse(entry.configuration));
@@ -62,6 +96,8 @@ var caseTypeCacheSource2 = {
62
96
  async lookupEntry(kind, activityTypeId) {
63
97
  const sources = kind === "activity" ? TYPECACHE_ACTIVITY_INDEX_TYPES : TYPECACHE_TRIGGER_INDEX_TYPES;
64
98
  const [err, result] = await catchError2(lookupTypeCacheEntry2(activityTypeId, sources));
99
+ if (err instanceof ConnectorCatalogUnavailableError)
100
+ throw err;
65
101
  if (err) {
66
102
  throw new Error(`No TypeCache entry found in ${sources.join(", ")} for uiPathActivityTypeId "${activityTypeId}". ` + `If the id is correct, run 'uip maestro case registry pull' to refresh the local cache. ` + `If you're looking up the other kind, pass --type ${kind === "activity" ? "trigger" : "activity"}.`);
67
103
  }
@@ -73,10 +109,24 @@ var caseTypeCacheSource2 = {
73
109
  },
74
110
  lookupConnectorDisplayName
75
111
  };
112
+
113
+ class ConnectionsFetchError extends Error {
114
+ response;
115
+ status;
116
+ constructor(connectorKey, cause) {
117
+ super(`Failed to fetch connections for connector "${connectorKey}": ${cause.message}`, { cause });
118
+ this.name = "ConnectionsFetchError";
119
+ const response = cause.response;
120
+ if (typeof response?.status === "number") {
121
+ this.response = response;
122
+ this.status = response.status;
123
+ }
124
+ }
125
+ }
76
126
  async function fetchConnectorConnections2(connectorKey) {
77
- const [apiError, api] = await catchError2(createApiClient(ConnectorsApi));
127
+ const [apiError, api] = await catchError2(createApiClient2(ConnectorsApi));
78
128
  if (apiError) {
79
- throw new Error(`Failed to create Integration Service client: ${apiError.message}`);
129
+ throw new Error(`Failed to create Integration Service client: ${apiError.message}`, { cause: apiError });
80
130
  }
81
131
  const [fetchError, connections] = await catchError2(api.apiV1ConnectorsKeyOrIdConnectionsGet({
82
132
  keyOrId: connectorKey,
@@ -84,11 +134,11 @@ async function fetchConnectorConnections2(connectorKey) {
84
134
  folderDefaults: true
85
135
  }));
86
136
  if (fetchError) {
87
- throw new Error(`Failed to fetch connections for connector "${connectorKey}": ${fetchError.message}`);
137
+ throw new ConnectionsFetchError(connectorKey, fetchError);
88
138
  }
89
139
  return connections;
90
140
  }
91
141
 
92
142
  export { lookupTypeCacheEntry2, caseTypeCacheSource2, fetchConnectorConnections2 };
93
143
 
94
- //# debugId=0DE36F85D9934EA164756E2164756E21
144
+ //# debugId=FDC6F4075355D99764756E2164756E21