@uipath/flow-tool 1.203.0-preview.205 → 1.204.0-preview.206

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 (117) hide show
  1. package/README.md +4 -0
  2. package/dist/THIRD-PARTY-NOTICES.md +237 -2
  3. package/dist/authoring-4kyzh1tf.js +23 -0
  4. package/dist/{binding-service-ft8mabkr.js → binding-service-815skxfx.js} +28 -30
  5. package/dist/{connector-service-qnpnwzpv.js → connector-service-xw4f8a7v.js} +34 -31
  6. package/dist/{conversion-FQTRFHRX-xh98wp2q.js → conversion-FQTRFHRX-1q7rk0te.js} +5 -5
  7. package/dist/{debug-conversation-trigger-fy19ygsm.js → debug-conversation-trigger-qdgvrekh.js} +14 -16
  8. package/dist/{debug-http-client-53qk6pc5.js → debug-http-client-s78gbtbn.js} +3 -3
  9. package/dist/{debug-service-nyk0s6mc.js → debug-service-0ppdzgzv.js} +4 -4
  10. package/dist/{edge-service-an71q4ry.js → edge-service-ttzfnxkf.js} +13 -14
  11. package/dist/{embedded-file-reader-0sjt4nkj.js → embedded-file-reader-v8c2yj2a.js} +2 -2
  12. package/dist/{flow-api-2phdajnk.js → flow-api-b7k5dtpm.js} +8 -8
  13. package/dist/{flow-debug-service-bnzgj53b.js → flow-debug-service-4we602jx.js} +38 -35
  14. package/dist/{flow-eval-node-target-2mjben3g.js → flow-eval-node-target-331vzbkw.js} +14 -15
  15. package/dist/{flow-eval-run-api-1bw5e0k4.js → flow-eval-run-api-yq18x5rb.js} +4 -4
  16. package/dist/{flow-eval-run-service-qv8j8fd1.js → flow-eval-run-service-36h1bnm8.js} +40 -37
  17. package/dist/{flow-eval-service-amd02ctw.js → flow-eval-service-ndtk9f9j.js} +19 -20
  18. package/dist/flow-init-sdk-source-9fy9p8ap.js +58 -0
  19. package/dist/{flow-init-service-rnygj5f8.js → flow-init-service-kwhbdtpc.js} +19 -18
  20. package/dist/{flow-io-hddhkve5.js → flow-io-pt392xct.js} +13 -14
  21. package/dist/{flow-migrate-service-e3hm99gp.js → flow-migrate-service-xvz8pbmp.js} +14 -15
  22. package/dist/{flow-pack-service-g8jebcts.js → flow-pack-service-wg1kt2bt.js} +72 -39
  23. package/dist/flow-validate-service-xbhrj47n.js +64 -0
  24. package/dist/{governance-fetcher-cswx2cw7.js → governance-fetcher-5yy89pfd.js} +6 -5
  25. package/dist/{headless-mmnrkzve.js → headless-1pdmae01.js} +2 -2
  26. package/dist/{hitl-service-a4fmjrzh.js → hitl-service-q2d39v5s.js} +13 -14
  27. package/dist/{index-3ts7y9d3.js → index-2s8rmmw6.js} +5 -3
  28. package/dist/index-3jpjaq1g.js +26 -0
  29. package/dist/{index-t5zedby6.js → index-41vyzws2.js} +59 -27
  30. package/dist/{index-b46bavh7.js → index-5yw15y73.js} +2 -2
  31. package/dist/{index-212q16sv.js → index-7qw3ttge.js} +416 -87
  32. package/dist/{index-t8e0ft8r.js → index-c1q6mnw1.js} +3 -3
  33. package/dist/{index-xa7gm52r.js → index-dqqg54v6.js} +601 -61
  34. package/dist/index.js +10 -10
  35. package/dist/init.d.ts +1 -1
  36. package/dist/init.js +19 -18
  37. package/dist/{input-reader-tw0j373f.js → input-reader-bv7kt19c.js} +2 -2
  38. package/dist/{known-types-b64as10y.js → known-types-jhyhnkt6.js} +4 -4
  39. package/dist/{maestro-automate-entry-pqy9xqm3.js → maestro-automate-entry-qak46eg0.js} +2 -2
  40. package/dist/node-2whm5wkf.js +4823 -0
  41. package/dist/{node-service-qnny15cm.js → node-service-js01ft95.js} +31 -30
  42. package/dist/{node-strategy-gc4sg6a2.js → node-strategy-fdnkvq4a.js} +1 -1
  43. package/dist/{node-sync-service-f1x1ak6q.js → node-sync-service-pb3m4dp2.js} +9 -9
  44. package/dist/{packager-tool-et7wj8kr.js → packager-tool-0w4es6rz.js} +2 -2
  45. package/dist/{packager-tool-dph5p2f5.js → packager-tool-1mnq1c97.js} +1 -1
  46. package/dist/packager-tool-225z77w9.js +52 -0
  47. package/dist/{packager-tool-de2txaxx.js → packager-tool-2hzsf1rc.js} +5 -5
  48. package/dist/{packager-tool-vbser1d9.js → packager-tool-2qr8z5ke.js} +4 -4
  49. package/dist/{packager-tool-0egkaa38.js → packager-tool-32czz9mq.js} +2 -2
  50. package/dist/{packager-tool-0v3s8r01.js → packager-tool-3h2ktz6q.js} +2 -2
  51. package/dist/{packager-tool-h9d8c9rf.js → packager-tool-4zdhy0c3.js} +2 -2
  52. package/dist/{packager-tool-afd1wwf2.js → packager-tool-53c81nnr.js} +440 -29
  53. package/dist/{packager-tool-2c688mdj.js → packager-tool-57fak54h.js} +4 -4
  54. package/dist/{packager-tool-qa2xzxez.js → packager-tool-59s95scr.js} +1 -1
  55. package/dist/{packager-tool-n8p9cay6.js → packager-tool-6azk3rex.js} +1 -1
  56. package/dist/{packager-tool-26ydwf12.js → packager-tool-6h69pd2a.js} +23 -8
  57. package/dist/{packager-tool-mnrbdn6a.js → packager-tool-6scjsgh6.js} +55 -17
  58. package/dist/{packager-tool-xzf4xc65.js → packager-tool-70cta0be.js} +4 -4
  59. package/dist/{packager-tool-tw3j5h3z.js → packager-tool-8hj7w7em.js} +5 -5
  60. package/dist/{packager-tool-795gzq9k.js → packager-tool-8pmgk4f6.js} +1 -1
  61. package/dist/{packager-tool-321a1806.js → packager-tool-8vmx4j2w.js} +1 -1
  62. package/dist/{packager-tool-cnftzx4c.js → packager-tool-a6ph7149.js} +40 -11
  63. package/dist/{packager-tool-s0mzv3sx.js → packager-tool-aw60v0et.js} +1 -1
  64. package/dist/{packager-tool-e89k4pjj.js → packager-tool-c0rtxezv.js} +1 -1
  65. package/dist/{packager-tool-1w4f09cq.js → packager-tool-d0ny3x3b.js} +141 -96
  66. package/dist/{packager-tool-gzpvdcnw.js → packager-tool-da1cmt0q.js} +2 -2
  67. package/dist/{packager-tool-p8j4zvrq.js → packager-tool-dp8vjby4.js} +4829 -1364
  68. package/dist/packager-tool-e5hj89zm.js +6 -0
  69. package/dist/{packager-tool-fwp34rqp.js → packager-tool-ev80vk13.js} +8 -8
  70. package/dist/{packager-tool-gctpkdzs.js → packager-tool-hhy1gr2k.js} +1 -1
  71. package/dist/{packager-tool-sf9f6jft.js → packager-tool-hygq2wy6.js} +1 -1
  72. package/dist/{packager-tool-0v3tzseq.js → packager-tool-jeb6xmgw.js} +2 -2
  73. package/dist/packager-tool-krzxg3ga.js +804 -0
  74. package/dist/{packager-tool-1r5dnt9q.js → packager-tool-mv4jav1h.js} +1 -1
  75. package/dist/{packager-tool-pppzgwfw.js → packager-tool-n4vdjmjx.js} +18079 -18079
  76. package/dist/{packager-tool-t9c77psy.js → packager-tool-p1tb6d4f.js} +955 -150
  77. package/dist/{packager-tool-gs28y1eq.js → packager-tool-qhhrq12s.js} +2 -2
  78. package/dist/{packager-tool-6k8s7pt9.js → packager-tool-r7xy9sew.js} +1090 -545
  79. package/dist/{packager-tool-b1xs6aty.js → packager-tool-stq8800d.js} +902 -897
  80. package/dist/{packager-tool-61r38k4d.js → packager-tool-t57d6pzz.js} +320 -200
  81. package/dist/{packager-tool-a7t9v5ss.js → packager-tool-v9v9ch04.js} +2 -2
  82. package/dist/{packager-tool-cdn59g60.js → packager-tool-ve5t7317.js} +2 -2
  83. package/dist/{packager-tool-yxv9mm8s.js → packager-tool-vtaqtf7f.js} +10 -10
  84. package/dist/{packager-tool-t39edv0g.js → packager-tool-w3dy6vnj.js} +184 -193
  85. package/dist/{packager-tool-9kx94sj5.js → packager-tool-x5qafkb7.js} +2 -2
  86. package/dist/{packager-tool-s841bbkr.js → packager-tool-yednpbbw.js} +2 -2
  87. package/dist/{packager-tool-yxnepq2j.js → packager-tool-ysbskrta.js} +1 -1
  88. package/dist/packager-tool-zgsvggdr.js +50 -0
  89. package/dist/packager-tool.js +12 -13
  90. package/dist/{serialization-BXU6AKAN-rhgmwp06.js → serialization-BXU6AKAN-c2ge8yvb.js} +5 -5
  91. package/dist/services/flow-init-sdk-source.d.ts +28 -0
  92. package/dist/services/flow-init-service.d.ts +25 -0
  93. package/dist/services/inline-activity-service.d.ts +135 -0
  94. package/dist/services/node-service.d.ts +14 -0
  95. package/dist/services/node-validators/index.d.ts +2 -0
  96. package/dist/services/node-validators/inline-activity-validator.d.ts +18 -0
  97. package/dist/services/node-validators/types.d.ts +6 -0
  98. package/dist/services/node-validators/unresolved-binding-placeholder-validator.d.ts +2 -0
  99. package/dist/services/preview-id-rule.d.ts +33 -0
  100. package/dist/services/ui-only-node-types.d.ts +1 -0
  101. package/dist/{shared-utils-wv356cvj.js → shared-utils-9vfmrxtx.js} +2 -2
  102. package/dist/{packager-tool-es0a755k.js → tidy-service-q2wwwans.js} +33 -7
  103. package/dist/tool.js +10 -10
  104. package/dist/utils/flow-io.d.ts +3 -16
  105. package/dist/validation.js +35 -36
  106. package/dist/{variable-service-bc7920kx.js → variable-service-nm9fdwsw.js} +13 -14
  107. package/dist/{wait-for-flow-job-v0njb0dk.js → wait-for-flow-job-yzyamptd.js} +8 -8
  108. package/package.json +2 -2
  109. package/dist/authoring-tv4dh80p.js +0 -360
  110. package/dist/flow-validate-service-x9dtdrc7.js +0 -65
  111. package/dist/node-xdgxafqs.js +0 -15600
  112. package/dist/packager-tool-2513jrxr.js +0 -898
  113. package/dist/packager-tool-5kt8tsq4.js +0 -85
  114. package/dist/packager-tool-w0kr4mbc.js +0 -996
  115. package/dist/services/tidy-service.d.ts +0 -26
  116. package/dist/tidy-service-8y2tjmb5.js +0 -39
  117. /package/dist/{localization-y790z9vm.js → localization-xecwjpe2.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  UIPATH_HOME_DIR,
3
3
  catchError
4
- } from "./packager-tool-6k8s7pt9.js";
4
+ } from "./packager-tool-r7xy9sew.js";
5
5
  import {
6
6
  getFileSystem
7
- } from "./packager-tool-0v3s8r01.js";
7
+ } from "./packager-tool-3h2ktz6q.js";
8
8
  // ../../node_modules/acorn/dist/acorn.mjs
9
9
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
10
10
  var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
@@ -5355,9 +5355,79 @@ Parser.acorn = {
5355
5355
  function parse3(input, options) {
5356
5356
  return Parser.parse(input, options);
5357
5357
  }
5358
+
5359
+ // ../maestro-sdk/src/jint-globals.ts
5360
+ var JINT_GLOBALS = [
5361
+ "AggregateError",
5362
+ "Array",
5363
+ "ArrayBuffer",
5364
+ "AsyncDisposableStack",
5365
+ "Atomics",
5366
+ "BigInt",
5367
+ "BigInt64Array",
5368
+ "BigUint64Array",
5369
+ "Boolean",
5370
+ "DataView",
5371
+ "Date",
5372
+ "DisposableStack",
5373
+ "Error",
5374
+ "EvalError",
5375
+ "FinalizationRegistry",
5376
+ "Float16Array",
5377
+ "Float32Array",
5378
+ "Float64Array",
5379
+ "Function",
5380
+ "Generator",
5381
+ "Infinity",
5382
+ "Int16Array",
5383
+ "Int32Array",
5384
+ "Int8Array",
5385
+ "JSON",
5386
+ "Map",
5387
+ "Math",
5388
+ "NaN",
5389
+ "Number",
5390
+ "Object",
5391
+ "Promise",
5392
+ "Proxy",
5393
+ "RangeError",
5394
+ "ReferenceError",
5395
+ "Reflect",
5396
+ "RegExp",
5397
+ "Set",
5398
+ "ShadowRealm",
5399
+ "SharedArrayBuffer",
5400
+ "String",
5401
+ "SuppressedError",
5402
+ "Symbol",
5403
+ "SyntaxError",
5404
+ "TypeError",
5405
+ "TypedArray",
5406
+ "URIError",
5407
+ "Uint16Array",
5408
+ "Uint32Array",
5409
+ "Uint8Array",
5410
+ "Uint8ClampedArray",
5411
+ "WeakMap",
5412
+ "WeakRef",
5413
+ "WeakSet",
5414
+ "decodeURI",
5415
+ "decodeURIComponent",
5416
+ "encodeURI",
5417
+ "encodeURIComponent",
5418
+ "escape",
5419
+ "eval",
5420
+ "globalThis",
5421
+ "isFinite",
5422
+ "isNaN",
5423
+ "parseFloat",
5424
+ "parseInt",
5425
+ "undefined",
5426
+ "unescape"
5427
+ ];
5358
5428
  // ../maestro-sdk/src/manifest/bpmn-spec.json
5359
5429
  var bpmn_spec_default = {
5360
- version: "1.0.0",
5430
+ version: "1.1.0",
5361
5431
  source: "PO.Frontend registry generator (2026-04-14) + CLI notes",
5362
5432
  extractedFrom: {
5363
5433
  designSchemaUtils: "src/services/serialization/design-schema/design-schema-utils.ts",
@@ -5653,40 +5723,36 @@ var bpmn_spec_default = {
5653
5723
  extensionTag: "uipath:activity",
5654
5724
  contextFields: [
5655
5725
  {
5656
- name: "releaseKey",
5657
- displayName: "Process",
5726
+ name: "name",
5727
+ displayName: "Business rule",
5658
5728
  type: "string",
5659
- required: false,
5729
+ required: true,
5660
5730
  hidden: true,
5661
5731
  isPrimaryKey: false,
5662
- binding: false,
5732
+ binding: true,
5663
5733
  defaultValue: null,
5664
5734
  bindingInfo: {
5665
- resource: "process",
5735
+ resource: "BusinessRule",
5666
5736
  resourceKeyPattern: "${metadata.key}",
5667
- propertyAttribute: "Key"
5737
+ propertyAttribute: "name"
5668
5738
  }
5669
5739
  },
5670
- {
5671
- name: "folderId",
5672
- type: "string",
5673
- required: false,
5674
- hidden: true,
5675
- isPrimaryKey: false,
5676
- binding: false,
5677
- defaultValue: null
5678
- },
5679
5740
  {
5680
5741
  name: "folderPath",
5681
5742
  type: "string",
5682
- required: false,
5743
+ required: true,
5683
5744
  hidden: true,
5684
5745
  isPrimaryKey: false,
5685
- binding: false,
5686
- defaultValue: null
5746
+ binding: true,
5747
+ defaultValue: null,
5748
+ bindingInfo: {
5749
+ resource: "BusinessRule",
5750
+ resourceKeyPattern: "${metadata.key}",
5751
+ propertyAttribute: "folderPath"
5752
+ }
5687
5753
  },
5688
5754
  {
5689
- name: "name",
5755
+ name: "_label",
5690
5756
  type: "string",
5691
5757
  required: false,
5692
5758
  hidden: true,
@@ -5699,36 +5765,39 @@ var bpmn_spec_default = {
5699
5765
  inputName: "JobArguments",
5700
5766
  inputTarget: "bodyField",
5701
5767
  outputSource: null,
5702
- outputType: "Orchestrator.BusinessRules",
5703
- outputName: "Execute business rule [Preview]",
5768
+ outputType: null,
5704
5769
  useRelativeSource: true,
5705
5770
  bindingPattern: "businessRule",
5706
5771
  bindingInfo: {
5707
- resource: "process",
5772
+ resource: "BusinessRule",
5708
5773
  resourceKeyPattern: "${metadata.key}",
5709
- propertyAttribute: "Key",
5710
- contextField: "releaseKey"
5774
+ propertyAttribute: "name",
5775
+ contextField: "name"
5711
5776
  },
5712
5777
  requiresDiscovery: true,
5713
5778
  isDynamic: true,
5714
5779
  xmlTemplate: `<bpmn:BusinessRuleTask id="{id}" name="{name}">
5715
5780
  <bpmn:extensionElements>
5716
5781
  <uipath:activity version="v1">
5717
- <uipath:type value="Orchestrator.BusinessRules" version="v1" />
5782
+ <uipath:type value="Orchestrator.BusinessRules" version="v2" />
5718
5783
  <uipath:context>
5719
- <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
5720
- <uipath:input name="folderId" type="string" value="{folderId}" />
5721
- <uipath:input name="folderPath" type="string" value="{folderPath}" />
5722
- <uipath:input name="name" type="string" value="{name}" />
5784
+ <uipath:input name="name" type="string" value="=bindings.{nameBindingId}" />
5785
+ <uipath:input name="folderPath" type="string" value="=bindings.{folderPathBindingId}" />
5786
+ <uipath:input name="_label" type="string" value="{_label}" />
5787
+ <uipath:inputSchema type="jsonSchema"><![CDATA[{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"required":[]}]]></uipath:inputSchema>
5723
5788
  </uipath:context>
5724
5789
  <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
5725
- <uipath:output name="Execute business rule [Preview]" type="Orchestrator.BusinessRules" var="{varId}" />
5790
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
5791
+ <uipath:output name="{outputName}" type="{outputType}" source="={outputName}" var="{outputVarId}" />
5726
5792
  </uipath:activity>
5727
5793
  </bpmn:extensionElements>
5728
5794
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
5729
5795
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
5730
5796
  </bpmn:BusinessRuleTask>`,
5731
- discoveryNotes: "Uses getOrchestratorBusinessRules() to list available business rules"
5797
+ discoveryNotes: "Uses getOrchestratorBusinessRules() to list available business rules",
5798
+ inputNotes: "isSplitInputs=true in design schema: the canvas shows one input per rule argument and serialization merges them into the single JobArguments JSON body. The uipath:context inputSchema lists each argument with its type, and its required array names the required ones.",
5799
+ contextFieldNotes: `name and folderPath each point to a root binding with resource="BusinessRule" and propertyAttribute name or folderPath; the engine runs the rule by these two. resourceKey is the rule's entity key, which for a rule in the solution folder is its name; the name and folderPath defaults are the rule name and its folder path. The folderPath binding default is an empty string when the rule lives in the running job's folder. _label holds the rule name as a plain value.`,
5800
+ outputNotes: "One uipath:output per rule output, named after the output with source =<output name>, plus an Error output (type jsonSchema, source =Error). Each var names a process variable declared as uipath:inputOutput on this element."
5732
5801
  },
5733
5802
  "Intsvc.ActivityExecution": {
5734
5803
  extensionType: "Intsvc.ActivityExecution",
@@ -7031,6 +7100,95 @@ var bpmn_spec_default = {
7031
7100
  </bpmn:ServiceTask>`,
7032
7101
  discoveryNotes: "Uses getResourceCatalogProcesses('API', search) to list available API workflows"
7033
7102
  },
7103
+ "Orchestrator.ExecuteFunctionAsync": {
7104
+ extensionType: "Orchestrator.ExecuteFunctionAsync",
7105
+ label: "Start and wait for Function [Preview]",
7106
+ bpmnElement: "bpmn:ServiceTask",
7107
+ placements: {
7108
+ activity: {
7109
+ type: "bpmn:ServiceTask"
7110
+ }
7111
+ },
7112
+ extensionTag: "uipath:activity",
7113
+ contextFields: [
7114
+ {
7115
+ name: "releaseKey",
7116
+ displayName: "Function",
7117
+ type: "string",
7118
+ required: false,
7119
+ hidden: true,
7120
+ isPrimaryKey: false,
7121
+ binding: false,
7122
+ defaultValue: null,
7123
+ bindingInfo: {
7124
+ resource: "process",
7125
+ resourceKeyPattern: "${metadata.key}",
7126
+ propertyAttribute: "Key"
7127
+ }
7128
+ },
7129
+ {
7130
+ name: "folderId",
7131
+ type: "string",
7132
+ required: false,
7133
+ hidden: true,
7134
+ isPrimaryKey: false,
7135
+ binding: false,
7136
+ defaultValue: null
7137
+ },
7138
+ {
7139
+ name: "folderPath",
7140
+ type: "string",
7141
+ required: false,
7142
+ hidden: true,
7143
+ isPrimaryKey: false,
7144
+ binding: false,
7145
+ defaultValue: null
7146
+ },
7147
+ {
7148
+ name: "name",
7149
+ type: "string",
7150
+ required: false,
7151
+ hidden: true,
7152
+ isPrimaryKey: false,
7153
+ binding: false,
7154
+ defaultValue: null
7155
+ }
7156
+ ],
7157
+ inputPattern: "mergedBody",
7158
+ inputName: "JobArguments",
7159
+ inputTarget: "bodyField",
7160
+ outputSource: null,
7161
+ outputType: "Orchestrator.RunJob",
7162
+ outputName: "Process response",
7163
+ useRelativeSource: true,
7164
+ bindingPattern: "process",
7165
+ bindingInfo: {
7166
+ resource: "process",
7167
+ resourceKeyPattern: "${metadata.key}",
7168
+ propertyAttribute: "Key",
7169
+ contextField: "releaseKey"
7170
+ },
7171
+ requiresDiscovery: true,
7172
+ isDynamic: true,
7173
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7174
+ <bpmn:extensionElements>
7175
+ <uipath:activity version="v1">
7176
+ <uipath:type value="Orchestrator.ExecuteFunctionAsync" version="v2" />
7177
+ <uipath:context>
7178
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
7179
+ <uipath:input name="folderId" type="string" value="{folderId}" />
7180
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
7181
+ <uipath:input name="name" type="string" value="{name}" />
7182
+ </uipath:context>
7183
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7184
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
7185
+ </uipath:activity>
7186
+ </bpmn:extensionElements>
7187
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7188
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7189
+ </bpmn:ServiceTask>`,
7190
+ discoveryNotes: "Uses getResourceCatalogProcesses('function', search) to list available Functions. Studio Web bindings use the Function process resource subtype."
7191
+ },
7034
7192
  "Orchestrator.CreateQueueItem": {
7035
7193
  extensionType: "Orchestrator.CreateQueueItem",
7036
7194
  label: "Create queue item",
@@ -7337,9 +7495,9 @@ var bpmn_spec_default = {
7337
7495
  inputName: "JobArguments",
7338
7496
  inputTarget: "bodyField",
7339
7497
  outputSource: null,
7340
- outputType: "Orchestrator.RunJob",
7341
- outputName: "Process response",
7342
- useRelativeSource: true,
7498
+ outputType: null,
7499
+ outputName: null,
7500
+ outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartAgenticProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartAgenticProcess when you need the job result.",
7343
7501
  bindingPattern: "process",
7344
7502
  bindingInfo: {
7345
7503
  resource: "process",
@@ -7360,7 +7518,6 @@ var bpmn_spec_default = {
7360
7518
  <uipath:input name="name" type="string" value="{name}" />
7361
7519
  </uipath:context>
7362
7520
  <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7363
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
7364
7521
  </uipath:activity>
7365
7522
  </bpmn:extensionElements>
7366
7523
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
@@ -7515,9 +7672,9 @@ var bpmn_spec_default = {
7515
7672
  inputName: "JobArguments",
7516
7673
  inputTarget: "bodyField",
7517
7674
  outputSource: null,
7518
- outputType: "Orchestrator.RunJob",
7519
- outputName: "Process response",
7520
- useRelativeSource: true,
7675
+ outputType: null,
7676
+ outputName: null,
7677
+ outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartCaseMgmtProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartCaseMgmtProcess when you need the job result.",
7521
7678
  bindingPattern: "process",
7522
7679
  bindingInfo: {
7523
7680
  resource: "process",
@@ -7538,7 +7695,6 @@ var bpmn_spec_default = {
7538
7695
  <uipath:input name="name" type="string" value="{name}" />
7539
7696
  </uipath:context>
7540
7697
  <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7541
- <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
7542
7698
  </uipath:activity>
7543
7699
  </bpmn:extensionElements>
7544
7700
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
@@ -7546,55 +7702,232 @@ var bpmn_spec_default = {
7546
7702
  </bpmn:CallActivity>`,
7547
7703
  discoveryNotes: "Uses getSupportedOrchestratorTasks('caseManagement', search, 0, 100, true) to list available case management processes"
7548
7704
  },
7549
- "A2A.AgentExecution": {
7550
- extensionType: "A2A.AgentExecution",
7551
- label: "Start and wait for A2A agent",
7552
- bpmnElement: "bpmn:ServiceTask",
7705
+ "Orchestrator.StartFlowProcess": {
7706
+ extensionType: "Orchestrator.StartFlowProcess",
7707
+ label: "Start and wait for Maestro Flow",
7708
+ bpmnElement: "bpmn:CallActivity",
7553
7709
  placements: {
7554
7710
  activity: {
7555
- type: "bpmn:ServiceTask"
7711
+ type: "bpmn:CallActivity"
7556
7712
  }
7557
7713
  },
7558
7714
  extensionTag: "uipath:activity",
7559
- contextFields: [],
7560
- inputPattern: "mergedBody",
7561
- inputName: "body",
7562
- inputTarget: "body",
7563
- outputSource: null,
7564
- outputType: "A2A.AgentExecution",
7565
- outputName: "a2aResponse",
7566
- useRelativeSource: true,
7567
- bindingPattern: "none",
7568
- requiresDiscovery: false,
7569
- isDynamic: true,
7570
- xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7571
- <bpmn:extensionElements>
7572
- <uipath:activity version="v1">
7573
- <uipath:type value="A2A.AgentExecution" version="v1" />
7574
- <uipath:input name="body" type="json" target="body"><![CDATA[{}]]></uipath:input>
7575
- <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
7576
- </uipath:activity>
7577
- </bpmn:extensionElements>
7578
- <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7579
- <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7580
- </bpmn:ServiceTask>`,
7581
- inputFieldNotes: "Auto-initialized by A2AFPSFormControl on load. Version is set to v2. Outputs include a2aResponse (jsonSchema with A2A response schema, source=result) and Error (any, source=Error).",
7582
- outputNotes: "Output schema includes: isSuccess (boolean), response (string), sessionId (string), status (string), taskId (string), artifacts (array of {index, parts, metadata}). Also includes Error output (type=any, source=Error).",
7583
- inputFields: [
7715
+ contextFields: [
7584
7716
  {
7585
- name: "agentUrl",
7586
- displayName: "Agent URL",
7717
+ name: "releaseKey",
7718
+ displayName: "Maestro Flow",
7587
7719
  type: "string",
7588
- required: true,
7589
- description: "URL of the A2A agent endpoint"
7720
+ required: false,
7721
+ hidden: true,
7722
+ isPrimaryKey: false,
7723
+ binding: false,
7724
+ defaultValue: null,
7725
+ bindingInfo: {
7726
+ resource: "process",
7727
+ resourceKeyPattern: "${metadata.key}",
7728
+ propertyAttribute: "Key"
7729
+ }
7590
7730
  },
7591
7731
  {
7592
- name: "skillId",
7593
- displayName: "Skill ID",
7732
+ name: "folderId",
7594
7733
  type: "string",
7595
- required: true,
7596
- description: "Identifier for the specific skill to invoke on the agent"
7597
- },
7734
+ required: false,
7735
+ hidden: true,
7736
+ isPrimaryKey: false,
7737
+ binding: false,
7738
+ defaultValue: null
7739
+ },
7740
+ {
7741
+ name: "folderPath",
7742
+ type: "string",
7743
+ required: false,
7744
+ hidden: true,
7745
+ isPrimaryKey: false,
7746
+ binding: false,
7747
+ defaultValue: null
7748
+ },
7749
+ {
7750
+ name: "name",
7751
+ type: "string",
7752
+ required: false,
7753
+ hidden: true,
7754
+ isPrimaryKey: false,
7755
+ binding: false,
7756
+ defaultValue: null
7757
+ }
7758
+ ],
7759
+ inputPattern: "mergedBody",
7760
+ inputName: "JobArguments",
7761
+ inputTarget: "bodyField",
7762
+ outputSource: null,
7763
+ outputType: "Orchestrator.RunJob",
7764
+ outputName: "Process response",
7765
+ useRelativeSource: true,
7766
+ bindingPattern: "process",
7767
+ bindingInfo: {
7768
+ resource: "process",
7769
+ resourceKeyPattern: "${metadata.key}",
7770
+ propertyAttribute: "Key",
7771
+ contextField: "releaseKey"
7772
+ },
7773
+ requiresDiscovery: true,
7774
+ isDynamic: true,
7775
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
7776
+ <bpmn:extensionElements>
7777
+ <uipath:activity version="v1">
7778
+ <uipath:type value="Orchestrator.StartFlowProcess" version="v2" />
7779
+ <uipath:context>
7780
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
7781
+ <uipath:input name="folderId" type="string" value="{folderId}" />
7782
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
7783
+ <uipath:input name="name" type="string" value="{name}" />
7784
+ </uipath:context>
7785
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7786
+ <uipath:output name="Process response" type="Orchestrator.RunJob" var="{varId}" />
7787
+ </uipath:activity>
7788
+ </bpmn:extensionElements>
7789
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7790
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7791
+ </bpmn:CallActivity>`,
7792
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes. Studio Web bindings use the Flow process resource subtype."
7793
+ },
7794
+ "Orchestrator.StartFlowProcessAsync": {
7795
+ extensionType: "Orchestrator.StartFlowProcessAsync",
7796
+ label: "Start Maestro Flow",
7797
+ bpmnElement: "bpmn:CallActivity",
7798
+ placements: {
7799
+ activity: {
7800
+ type: "bpmn:CallActivity"
7801
+ }
7802
+ },
7803
+ extensionTag: "uipath:activity",
7804
+ contextFields: [
7805
+ {
7806
+ name: "releaseKey",
7807
+ displayName: "Maestro Flow",
7808
+ type: "string",
7809
+ required: false,
7810
+ hidden: true,
7811
+ isPrimaryKey: false,
7812
+ binding: false,
7813
+ defaultValue: null,
7814
+ bindingInfo: {
7815
+ resource: "process",
7816
+ resourceKeyPattern: "${metadata.key}",
7817
+ propertyAttribute: "Key"
7818
+ }
7819
+ },
7820
+ {
7821
+ name: "folderId",
7822
+ type: "string",
7823
+ required: false,
7824
+ hidden: true,
7825
+ isPrimaryKey: false,
7826
+ binding: false,
7827
+ defaultValue: null
7828
+ },
7829
+ {
7830
+ name: "folderPath",
7831
+ type: "string",
7832
+ required: false,
7833
+ hidden: true,
7834
+ isPrimaryKey: false,
7835
+ binding: false,
7836
+ defaultValue: null
7837
+ },
7838
+ {
7839
+ name: "name",
7840
+ type: "string",
7841
+ required: false,
7842
+ hidden: true,
7843
+ isPrimaryKey: false,
7844
+ binding: false,
7845
+ defaultValue: null
7846
+ }
7847
+ ],
7848
+ inputPattern: "mergedBody",
7849
+ inputName: "JobArguments",
7850
+ inputTarget: "bodyField",
7851
+ outputSource: null,
7852
+ outputType: null,
7853
+ outputName: null,
7854
+ outputNotes: "Fire-and-forget: the canvas clears the process outputs for this type (getAgenticProcessInputOutputValues sets outputs to [] for Orchestrator.StartFlowProcessAsync), so the payload carries none of the entry-point outputs its sync sibling returns. A process picked straight from Orchestrator (no solutionResourceKey) can still contribute task-definition outputs, which is why this type stays on the canvas-owned dynamic path. Use Orchestrator.StartFlowProcess when you need the job result.",
7855
+ bindingPattern: "process",
7856
+ bindingInfo: {
7857
+ resource: "process",
7858
+ resourceKeyPattern: "${metadata.key}",
7859
+ propertyAttribute: "Key",
7860
+ contextField: "releaseKey"
7861
+ },
7862
+ requiresDiscovery: true,
7863
+ isDynamic: true,
7864
+ xmlTemplate: `<bpmn:CallActivity id="{id}" name="{name}">
7865
+ <bpmn:extensionElements>
7866
+ <uipath:activity version="v1">
7867
+ <uipath:type value="Orchestrator.StartFlowProcessAsync" version="v2" />
7868
+ <uipath:context>
7869
+ <uipath:input name="releaseKey" type="string" value="{releaseKey}" />
7870
+ <uipath:input name="folderId" type="string" value="{folderId}" />
7871
+ <uipath:input name="folderPath" type="string" value="{folderPath}" />
7872
+ <uipath:input name="name" type="string" value="{name}" />
7873
+ </uipath:context>
7874
+ <uipath:input name="JobArguments" type="json" target="bodyField"><![CDATA[{}]]></uipath:input>
7875
+ </uipath:activity>
7876
+ </bpmn:extensionElements>
7877
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7878
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7879
+ </bpmn:CallActivity>`,
7880
+ discoveryNotes: "Uses getSupportedOrchestratorTasks('Flow', search, 0, 100, true) to list available flow processes."
7881
+ },
7882
+ "A2A.AgentExecution": {
7883
+ extensionType: "A2A.AgentExecution",
7884
+ label: "Start and wait for A2A agent",
7885
+ bpmnElement: "bpmn:ServiceTask",
7886
+ placements: {
7887
+ activity: {
7888
+ type: "bpmn:ServiceTask"
7889
+ }
7890
+ },
7891
+ extensionTag: "uipath:activity",
7892
+ contextFields: [],
7893
+ inputPattern: "mergedBody",
7894
+ inputName: "body",
7895
+ inputTarget: "body",
7896
+ outputSource: null,
7897
+ outputType: "A2A.AgentExecution",
7898
+ outputName: "a2aResponse",
7899
+ useRelativeSource: true,
7900
+ bindingPattern: "none",
7901
+ requiresDiscovery: false,
7902
+ isDynamic: true,
7903
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
7904
+ <bpmn:extensionElements>
7905
+ <uipath:activity version="v1">
7906
+ <uipath:type value="A2A.AgentExecution" version="v1" />
7907
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"agentUrl":"{agentUrl}","skillId":"{skillId}","input":"{input}","authToken":"{authToken}","agentName":"{agentName}"}]]></uipath:input>
7908
+ <uipath:output name="a2aResponse" type="A2A.AgentExecution" var="{varId}" />
7909
+ </uipath:activity>
7910
+ </bpmn:extensionElements>
7911
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
7912
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
7913
+ </bpmn:ServiceTask>`,
7914
+ inputFieldNotes: "Auto-initialized by A2AFPSFormControl on load. Version is set to v2. Outputs include a2aResponse (jsonSchema with A2A response schema, source=result) and Error (any, source=Error). authToken should be an expression or variable (for example =vars.authToken), never a literal token.",
7915
+ outputNotes: "Output schema includes: isSuccess (boolean), response (string), sessionId (string), status (string), taskId (string), artifacts (array of {index, parts, metadata}). Also includes Error output (type=any, source=Error).",
7916
+ inputFields: [
7917
+ {
7918
+ name: "agentUrl",
7919
+ displayName: "Agent URL",
7920
+ type: "string",
7921
+ required: true,
7922
+ description: "URL of the A2A agent endpoint"
7923
+ },
7924
+ {
7925
+ name: "skillId",
7926
+ displayName: "Skill ID",
7927
+ type: "string",
7928
+ required: true,
7929
+ description: "Identifier for the specific skill to invoke on the agent"
7930
+ },
7598
7931
  {
7599
7932
  name: "input",
7600
7933
  displayName: "Input",
@@ -7672,6 +8005,95 @@ var bpmn_spec_default = {
7672
8005
  inputNotes: "Inputs are merged into a single json input named 'args' with target 'bodyField'. An inputSchema is created from the input variables.",
7673
8006
  extensionTagNotes: "bpmn:ScriptTask is routed through createModdleExtensionVariableMapping (same as BPMN.Variables). Inputs are merged into a single 'args' JSON body with inputSchema."
7674
8007
  },
8008
+ "ConversationalService.QueueServiceMessage": {
8009
+ extensionType: "ConversationalService.QueueServiceMessage",
8010
+ label: "Queue service message",
8011
+ bpmnElement: "bpmn:ServiceTask",
8012
+ placements: {
8013
+ activity: {
8014
+ type: "bpmn:ServiceTask"
8015
+ }
8016
+ },
8017
+ extensionTag: "uipath:activity",
8018
+ contextFields: [
8019
+ {
8020
+ name: "_label",
8021
+ type: "string",
8022
+ required: false,
8023
+ hidden: true,
8024
+ isPrimaryKey: false,
8025
+ binding: false,
8026
+ defaultValue: null
8027
+ }
8028
+ ],
8029
+ inputPattern: "mergedBody",
8030
+ inputName: "body",
8031
+ inputTarget: "body",
8032
+ outputSource: "=response",
8033
+ outputType: "jsonSchema",
8034
+ outputName: "response",
8035
+ additionalOutputs: [
8036
+ {
8037
+ name: "Error",
8038
+ type: "jsonSchema",
8039
+ source: "=Error",
8040
+ required: false
8041
+ }
8042
+ ],
8043
+ bindingPattern: "none",
8044
+ requiresDiscovery: false,
8045
+ isDynamic: false,
8046
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8047
+ <bpmn:extensionElements>
8048
+ <uipath:activity version="v1">
8049
+ <uipath:type value="ConversationalService.QueueServiceMessage" version="v1" />
8050
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"conversationId":"{conversationId}","userContent":"{userContent}","assistantContent":"{assistantContent}"}]]></uipath:input>
8051
+ <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
8052
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
8053
+ </uipath:activity>
8054
+ </bpmn:extensionElements>
8055
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8056
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8057
+ </bpmn:ServiceTask>`,
8058
+ inputNotes: "The custom Studio Web form seeds conversationId, userContent, and assistantContent as required fields. The generic FPS serializer merges them into the body JSON payload. It also writes a uipath:inputSchema built from those fields inside uipath:context; the template leaves it out because it is derived, not authored.",
8059
+ contextFieldNotes: 'The design schema declares the three fields as context; the shipped custom form (ConversationalServiceFPSFormControl.tsx) declares them as inputs with target: "body", and the generic serializer merges them into the body.',
8060
+ outputNotes: 'The response schema contains the queued message id, conversation and content fields, MIME types, pending state, and timestamps. Studio Web always writes the standard Error output. Validation also accepts files without it. Extra outputs that narrow the response carry custom="true".',
8061
+ inputFields: [
8062
+ {
8063
+ name: "conversationId",
8064
+ displayName: "Conversation ID",
8065
+ type: "string",
8066
+ required: true,
8067
+ hidden: false,
8068
+ isPrimaryKey: false,
8069
+ binding: false,
8070
+ defaultValue: null,
8071
+ target: "body"
8072
+ },
8073
+ {
8074
+ name: "userContent",
8075
+ displayName: "User content",
8076
+ type: "string",
8077
+ required: true,
8078
+ hidden: false,
8079
+ isPrimaryKey: false,
8080
+ binding: false,
8081
+ defaultValue: null,
8082
+ target: "body"
8083
+ },
8084
+ {
8085
+ name: "assistantContent",
8086
+ displayName: "Assistant content",
8087
+ type: "string",
8088
+ required: true,
8089
+ hidden: false,
8090
+ isPrimaryKey: false,
8091
+ binding: false,
8092
+ defaultValue: null,
8093
+ target: "body"
8094
+ }
8095
+ ]
8096
+ },
7675
8097
  "Intsvc.TimerTrigger": {
7676
8098
  extensionType: "Intsvc.TimerTrigger",
7677
8099
  label: "Timer trigger",
@@ -7861,7 +8283,7 @@ var bpmn_spec_default = {
7861
8283
  <uipath:input name="_label" type="string" value="{_label}" />
7862
8284
  <uipath:input name="inputSchema" type="jsonSchema" value="{inputSchema}" />
7863
8285
  </uipath:context>
7864
- <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"","SpecificContent":{},"Error":"","TimeToLive":""}]]></uipath:input>
8286
+ <uipath:input name="ItemData" type="json" target="body"><![CDATA[{"Reference":"{Reference}","SpecificContent":{},"TimeToLive":""}]]></uipath:input>
7865
8287
  <uipath:output name="response" type="Maestro.SendMessageEvent" var="{varId}" />
7866
8288
  </uipath:event>
7867
8289
  </bpmn:extensionElements>
@@ -8028,6 +8450,154 @@ var bpmn_spec_default = {
8028
8450
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8029
8451
  </bpmn:ServiceTask>`,
8030
8452
  bpmnElementNotes: "Not in FPS_TO_NODE_MAPPING activity section; used internally for case management processes. Likely bpmn:ServiceTask or bpmn:Task."
8453
+ },
8454
+ "IXP.Extraction": {
8455
+ extensionType: "IXP.Extraction",
8456
+ label: "Document extraction",
8457
+ bpmnElement: "bpmn:ServiceTask",
8458
+ placements: {
8459
+ activity: {
8460
+ type: "bpmn:ServiceTask"
8461
+ }
8462
+ },
8463
+ extensionTag: "uipath:activity",
8464
+ contextFields: [
8465
+ {
8466
+ name: "solutionResourceKey",
8467
+ displayName: "Solution resource key",
8468
+ type: "string",
8469
+ required: true,
8470
+ hidden: true,
8471
+ isPrimaryKey: true,
8472
+ binding: false,
8473
+ defaultValue: null
8474
+ },
8475
+ {
8476
+ name: "name",
8477
+ displayName: "Deployment name",
8478
+ type: "string",
8479
+ required: false,
8480
+ hidden: true,
8481
+ isPrimaryKey: false,
8482
+ binding: true,
8483
+ defaultValue: null,
8484
+ bindingInfo: {
8485
+ resource: "ixpDeployment",
8486
+ resourceKeyPattern: "${context.solutionResourceKey}",
8487
+ propertyAttribute: "name"
8488
+ }
8489
+ },
8490
+ {
8491
+ name: "folderKey",
8492
+ displayName: "Folder key",
8493
+ type: "string",
8494
+ required: false,
8495
+ hidden: true,
8496
+ isPrimaryKey: false,
8497
+ binding: false,
8498
+ defaultValue: null
8499
+ },
8500
+ {
8501
+ name: "folderName",
8502
+ displayName: "Folder name",
8503
+ type: "string",
8504
+ required: false,
8505
+ hidden: true,
8506
+ isPrimaryKey: false,
8507
+ binding: false,
8508
+ defaultValue: null
8509
+ },
8510
+ {
8511
+ name: "modelName",
8512
+ displayName: "Model name",
8513
+ type: "string",
8514
+ required: false,
8515
+ hidden: true,
8516
+ isPrimaryKey: false,
8517
+ binding: false,
8518
+ defaultValue: null
8519
+ },
8520
+ {
8521
+ name: "modelDisplayName",
8522
+ displayName: "Model display name",
8523
+ type: "string",
8524
+ required: false,
8525
+ hidden: true,
8526
+ isPrimaryKey: false,
8527
+ binding: false,
8528
+ defaultValue: null
8529
+ },
8530
+ {
8531
+ name: "digitizationMode",
8532
+ displayName: "Digitization mode",
8533
+ type: "string",
8534
+ required: false,
8535
+ hidden: true,
8536
+ isPrimaryKey: false,
8537
+ binding: false,
8538
+ defaultValue: "fileUpload",
8539
+ enum: [
8540
+ "fileUpload"
8541
+ ],
8542
+ description: "Only value the canvas can emit today; DU has not exposed other digitization modes for IXP extraction. The enum is documentary — the validator does not enforce context-field enums."
8543
+ }
8544
+ ],
8545
+ inputPattern: "mergedBody",
8546
+ inputName: "input",
8547
+ inputTarget: "bodyField",
8548
+ additionalInputs: [
8549
+ {
8550
+ name: "pageRange",
8551
+ type: "string",
8552
+ target: "header",
8553
+ required: false
8554
+ }
8555
+ ],
8556
+ outputSource: "=result",
8557
+ outputType: "jsonSchema",
8558
+ outputName: "output",
8559
+ additionalOutputs: [
8560
+ {
8561
+ name: "error",
8562
+ type: "jsonSchema",
8563
+ source: "=Error",
8564
+ required: true
8565
+ }
8566
+ ],
8567
+ bindingPattern: "ixpDeployment",
8568
+ bindingInfo: {
8569
+ resource: "ixpDeployment",
8570
+ resourceKeyPattern: "${context.solutionResourceKey}",
8571
+ propertyAttribute: "name",
8572
+ contextField: "name"
8573
+ },
8574
+ requiresDiscovery: true,
8575
+ isDynamic: false,
8576
+ xmlTemplate: `<bpmn:ServiceTask id="{id}" name="{name}">
8577
+ <bpmn:extensionElements>
8578
+ <uipath:activity version="v1">
8579
+ <uipath:type value="IXP.Extraction" version="v2" />
8580
+ <uipath:context>
8581
+ <uipath:input name="solutionResourceKey" type="string" value="{solutionResourceKey}" />
8582
+ <uipath:input name="name" type="string" value="=bindings.{bindingId}" />
8583
+ <uipath:input name="folderKey" type="string" value="{folderKey}" />
8584
+ <uipath:input name="folderName" type="string" value="{folderName}" />
8585
+ <uipath:input name="modelName" type="string" value="{modelName}" />
8586
+ <uipath:input name="modelDisplayName" type="string" value="{modelDisplayName}" />
8587
+ <uipath:input name="digitizationMode" type="string" value="fileUpload" />
8588
+ </uipath:context>
8589
+ <uipath:input name="input" type="json" target="bodyField"><![CDATA[{"downloadedFileOutput":"{fileRef}"}]]></uipath:input>
8590
+ <uipath:output name="output" type="jsonSchema" source="=result" var="{varId}" />
8591
+ <uipath:output name="error" type="jsonSchema" source="=Error" var="{errorVarId}" />
8592
+ </uipath:activity>
8593
+ </bpmn:extensionElements>
8594
+ <bpmn:incoming>{incomingEdge}</bpmn:incoming>
8595
+ <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
8596
+ </bpmn:ServiceTask>`,
8597
+ discoveryNotes: "Uses the Studio Web solution resource picker to select an IXP deployment, resolve its folder and model details, and create the deployment name binding.",
8598
+ inputNotes: 'Studio Web turns the design-time fileRef input into the runtime input JSON body. When the author fills in a page range it also writes a sibling <uipath:input name="pageRange" type="string" target="header" value="..." /> next to the merged body, so pageRange is declared in additionalInputs rather than folded into the bodyField payload. It is left out when empty, which is why the template does not show it.',
8599
+ contextFieldNotes: "The serializer keeps the solution resource key and bound deployment name, fills folder/model display fallbacks, and currently forces digitizationMode=fileUpload. The deployment name is a binding on the ixpDeployment resource whose resourceKey is the same value as the solutionResourceKey context input. The canvas passes unknown context entries through; this contract rejects them.",
8600
+ outputNotes: "Studio Web adds both the extraction result output (jsonSchema, source=result) and the standard error output (jsonSchema, source=Error). Exports older than PO.Frontend migration S199 use =this or =this.result; rewrite to =result."
8031
8601
  }
8032
8602
  },
8033
8603
  bpmnElements: {
@@ -8354,6 +8924,7 @@ var bpmn_spec_default = {
8354
8924
 
8355
8925
  // ../maestro-sdk/src/manifest/bpmn-spec.ts
8356
8926
  var BPMN_SPEC = bpmn_spec_default;
8927
+ var MERGED_INPUT_PATTERNS = new Set(["mergedBody", "splitInputsItemData", "scriptArgs"]);
8357
8928
  var STATIC_UIPATH_EXTENSION_TAG_NAMES = [
8358
8929
  "binding",
8359
8930
  "bindings",
@@ -8394,72 +8965,7 @@ var SCRIPT_RUNTIME_GLOBALS = new Set([
8394
8965
  "uipath",
8395
8966
  "console",
8396
8967
  "arguments",
8397
- "AggregateError",
8398
- "Array",
8399
- "ArrayBuffer",
8400
- "AsyncDisposableStack",
8401
- "Atomics",
8402
- "BigInt",
8403
- "BigInt64Array",
8404
- "BigUint64Array",
8405
- "Boolean",
8406
- "DataView",
8407
- "Date",
8408
- "DisposableStack",
8409
- "Error",
8410
- "EvalError",
8411
- "FinalizationRegistry",
8412
- "Float16Array",
8413
- "Float32Array",
8414
- "Float64Array",
8415
- "Function",
8416
- "Generator",
8417
- "Infinity",
8418
- "Int16Array",
8419
- "Int32Array",
8420
- "Int8Array",
8421
- "JSON",
8422
- "Map",
8423
- "Math",
8424
- "NaN",
8425
- "Number",
8426
- "Object",
8427
- "Promise",
8428
- "Proxy",
8429
- "RangeError",
8430
- "ReferenceError",
8431
- "Reflect",
8432
- "RegExp",
8433
- "Set",
8434
- "ShadowRealm",
8435
- "SharedArrayBuffer",
8436
- "String",
8437
- "SuppressedError",
8438
- "Symbol",
8439
- "SyntaxError",
8440
- "TypeError",
8441
- "TypedArray",
8442
- "URIError",
8443
- "Uint16Array",
8444
- "Uint32Array",
8445
- "Uint8Array",
8446
- "Uint8ClampedArray",
8447
- "WeakMap",
8448
- "WeakRef",
8449
- "WeakSet",
8450
- "decodeURI",
8451
- "decodeURIComponent",
8452
- "encodeURI",
8453
- "encodeURIComponent",
8454
- "escape",
8455
- "eval",
8456
- "globalThis",
8457
- "isFinite",
8458
- "isNaN",
8459
- "parseFloat",
8460
- "parseInt",
8461
- "undefined",
8462
- "unescape"
8968
+ ...JINT_GLOBALS
8463
8969
  ]);
8464
8970
  var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
8465
8971
  var CALL_ACTIVITY_TYPES = Object.entries(BPMN_SPEC.extensionTypes).filter(([, contract]) => contract.bpmnElement === "bpmn:CallActivity").map(([type]) => type).sort((a, b) => a.localeCompare(b));
@@ -8474,6 +8980,7 @@ async function resolveStorageDir() {
8474
8980
  const fs = getFileSystem();
8475
8981
  return fs.path.join(fs.env.homedir(), UIPATH_HOME_DIR, MAESTRO_REGISTRY_DIR);
8476
8982
  }
8983
+ var RENAME_RETRYABLE_CODES = new Set(["EPERM", "EBUSY", "EACCES"]);
8477
8984
  async function loadRegistry() {
8478
8985
  const fs = getFileSystem();
8479
8986
  const dir = await resolveStorageDir();
@@ -8491,6 +8998,304 @@ async function loadRegistry() {
8491
8998
  }
8492
8999
  return parsed;
8493
9000
  }
8494
- export { parse3 as parse, loadRegistry };
9001
+ // src/services/inline-activity-service.ts
9002
+ import { randomUUID } from "node:crypto";
9003
+ var INLINE_ACTIVITY_TYPE_PREFIX = "uipath.connector.custom.";
9004
+ var INLINE_ACTIVITY_SOURCE = "inline";
9005
+ var INLINE_ACTIVITY_VERSION = "4.0.0";
9006
+
9007
+ class InlineActivityError extends Error {
9008
+ code = "InlineActivityInvalid";
9009
+ instructions;
9010
+ constructor(message, instructions) {
9011
+ super(message);
9012
+ this.name = "InlineActivityError";
9013
+ this.instructions = instructions;
9014
+ }
9015
+ }
9016
+ var asBag = (v) => v && typeof v === "object" && !Array.isArray(v) ? v : {};
9017
+ var text = (v) => typeof v === "string" ? v : "";
9018
+ function parseInlineActivityNodeType(nodeType) {
9019
+ if (!nodeType.startsWith(INLINE_ACTIVITY_TYPE_PREFIX)) {
9020
+ throw new InlineActivityError(`Node type "${nodeType}" is not a non-catalog activity type.`, `A non-catalog activity node type is "${INLINE_ACTIVITY_TYPE_PREFIX}<connector-key>.<activity-slug>", e.g. "${INLINE_ACTIVITY_TYPE_PREFIX}uipath-salesforce-slack.add-users-to-user-group".`);
9021
+ }
9022
+ const rest = nodeType.slice(INLINE_ACTIVITY_TYPE_PREFIX.length);
9023
+ const dot = rest.indexOf(".");
9024
+ const connectorKey = dot === -1 ? rest : rest.slice(0, dot);
9025
+ const slug = dot === -1 ? "" : rest.slice(dot + 1);
9026
+ if (!connectorKey || !slug) {
9027
+ throw new InlineActivityError(`Node type "${nodeType}" is missing the connector key or the activity slug.`, `Use "${INLINE_ACTIVITY_TYPE_PREFIX}<connector-key>.<activity-slug>" — both parts are required.`);
9028
+ }
9029
+ return { connectorKey, slug };
9030
+ }
9031
+ async function readInlineActivityMetadata(metadataFile) {
9032
+ const fs = getFileSystem();
9033
+ const raw = await fs.readFile(metadataFile, "utf-8");
9034
+ if (raw === null || raw === undefined) {
9035
+ throw new InlineActivityError(`Activity metadata file not found: ${metadataFile}`, "Pass the <Name>.json that `uip is activities metadata generate` wrote.");
9036
+ }
9037
+ let parsed;
9038
+ try {
9039
+ parsed = JSON.parse(String(raw));
9040
+ } catch (err) {
9041
+ throw new InlineActivityError(`Activity metadata is not valid JSON (${metadataFile}): ${err instanceof Error ? err.message : String(err)}`, "Regenerate it with `uip is activities metadata generate <min-file>` — never hand-edit generated metadata.");
9042
+ }
9043
+ return assertInlineActivityMetadata(parsed, metadataFile);
9044
+ }
9045
+ function assertInlineActivityMetadata(value, where) {
9046
+ const m = asBag(value);
9047
+ const problems = [];
9048
+ for (const key of ["name", "elementKey", "path"]) {
9049
+ if (!text(m[key])) {
9050
+ problems.push(`missing top-level "${key}"`);
9051
+ }
9052
+ }
9053
+ const slots = asBag(asBag(m.metadata).method);
9054
+ const verbs = Object.keys(slots);
9055
+ if (verbs.length !== 1) {
9056
+ problems.push(`metadata.method must have exactly one verb slot (got ${verbs.length})`);
9057
+ } else {
9058
+ const slot = asBag(slots[verbs[0]]);
9059
+ for (const key of ["operation", "method", "path", "scriptRef"]) {
9060
+ if (!text(slot[key])) {
9061
+ problems.push(`method ${verbs[0]}: missing "${key}"`);
9062
+ }
9063
+ }
9064
+ }
9065
+ if (problems.length > 0) {
9066
+ throw new InlineActivityError(`Activity metadata is not a v4 activity (${where}):
9067
+ - ${problems.join(`
9068
+ - `)}`, "Regenerate it with `uip is activities metadata generate <min-file>`; this command reads the file that writes.");
9069
+ }
9070
+ return m;
9071
+ }
9072
+ function verbSlotOf(metadata) {
9073
+ const verb = Object.keys(metadata.metadata.method)[0];
9074
+ return { verb, slot: metadata.metadata.method[verb] };
9075
+ }
9076
+ function collectScriptRefs(metadata) {
9077
+ const { slot } = verbSlotOf(metadata);
9078
+ const lookups = [];
9079
+ const add = (ref2) => {
9080
+ const r = text(ref2);
9081
+ if (r && r !== slot.scriptRef && !lookups.includes(r)) {
9082
+ lookups.push(r);
9083
+ }
9084
+ };
9085
+ for (const p of slot.parameters ?? []) {
9086
+ add(asBag(p.reference).scriptRef);
9087
+ }
9088
+ for (const f of Object.values(metadata.fields ?? {})) {
9089
+ add(asBag(asBag(f).reference).scriptRef);
9090
+ }
9091
+ return { main: slot.scriptRef, lookups };
9092
+ }
9093
+ async function readInlineScripts(scriptsDir, refs) {
9094
+ const fs = getFileSystem();
9095
+ const scripts = {};
9096
+ const missing = [];
9097
+ for (const ref2 of refs) {
9098
+ const file = fs.path.join(scriptsDir, `${ref2}.js`);
9099
+ const source = await fs.readFile(file, "utf-8");
9100
+ if (source === null || source === undefined) {
9101
+ missing.push(file);
9102
+ continue;
9103
+ }
9104
+ scripts[ref2] = String(source);
9105
+ }
9106
+ if (missing.length > 0) {
9107
+ throw new InlineActivityError(`Action script(s) not found:
9108
+ - ${missing.join(`
9109
+ - `)}`, "Every scriptRef in the metadata — the main action and each lookup reference — needs a <scriptRef>.js in --scripts. Generate the missing script, or fix the scriptRef in the min-file and regenerate.");
9110
+ }
9111
+ return scripts;
9112
+ }
9113
+ function buildInlineActivityDefinition(args) {
9114
+ const { nodeType, connectorKey, metadata, activityTypeId } = args;
9115
+ const { slot } = verbSlotOf(metadata);
9116
+ const label = metadata.displayName ?? metadata.name;
9117
+ const description = metadata.description ?? "";
9118
+ const configuration = {
9119
+ connectorKey,
9120
+ objectName: metadata.name,
9121
+ httpMethod: slot.method,
9122
+ activityType: "Curated",
9123
+ activitySource: INLINE_ACTIVITY_SOURCE,
9124
+ version: INLINE_ACTIVITY_VERSION,
9125
+ operation: slot.operation,
9126
+ supportsStreaming: false,
9127
+ subType: "standard"
9128
+ };
9129
+ const manifest = {
9130
+ nodeType,
9131
+ version: INLINE_ACTIVITY_VERSION,
9132
+ category: `connector.${connectorKey}`,
9133
+ tags: ["connector", "activity", INLINE_ACTIVITY_SOURCE],
9134
+ sortOrder: 1,
9135
+ supportsErrorHandling: true,
9136
+ description,
9137
+ display: {
9138
+ label,
9139
+ description,
9140
+ sourceDisplayName: connectorKey
9141
+ },
9142
+ handleConfiguration: [
9143
+ {
9144
+ position: "left",
9145
+ handles: [
9146
+ {
9147
+ id: "input",
9148
+ type: "target",
9149
+ handleType: "input",
9150
+ label: ""
9151
+ }
9152
+ ]
9153
+ },
9154
+ {
9155
+ position: "right",
9156
+ handles: [
9157
+ {
9158
+ id: "output",
9159
+ type: "source",
9160
+ handleType: "output",
9161
+ label: ""
9162
+ }
9163
+ ]
9164
+ }
9165
+ ],
9166
+ model: {
9167
+ type: "bpmn:SendTask",
9168
+ serviceType: "Intsvc.ActivityExecution",
9169
+ bindings: {
9170
+ resource: "Connection",
9171
+ resourceKey: "",
9172
+ values: [
9173
+ {
9174
+ name: `${connectorKey} connection`,
9175
+ propertyAttribute: "ConnectionId"
9176
+ },
9177
+ { name: "FolderKey", propertyAttribute: "FolderKey" }
9178
+ ]
9179
+ },
9180
+ context: [
9181
+ { name: "connectorKey", type: "string", value: connectorKey },
9182
+ { name: "operation", type: "string", value: slot.operation },
9183
+ { name: "objectName", type: "string", value: metadata.name },
9184
+ { name: "method", type: "string", value: slot.method },
9185
+ {
9186
+ name: "connection",
9187
+ type: "string",
9188
+ value: `<bindings.${connectorKey} connection>`
9189
+ },
9190
+ {
9191
+ name: "folderKey",
9192
+ type: "string",
9193
+ value: "<bindings.FolderKey>"
9194
+ },
9195
+ {
9196
+ name: "activityConfigurationVersion",
9197
+ type: "string",
9198
+ value: "v1"
9199
+ },
9200
+ {
9201
+ name: "metadata",
9202
+ type: "json",
9203
+ body: {
9204
+ telemetryData: {
9205
+ connectorKey,
9206
+ connectorName: label
9207
+ },
9208
+ inputMetadata: {},
9209
+ errorState: { hasError: true }
9210
+ }
9211
+ }
9212
+ ]
9213
+ },
9214
+ form: {
9215
+ id: "connector-properties",
9216
+ title: "Connector configuration",
9217
+ sections: [
9218
+ {
9219
+ id: "connector",
9220
+ title: "Connector",
9221
+ collapsible: true,
9222
+ defaultExpanded: true,
9223
+ fields: [
9224
+ {
9225
+ label: "",
9226
+ name: "inputs.detail",
9227
+ type: "custom",
9228
+ component: "dap-config",
9229
+ componentProps: {
9230
+ connectorDetail: {
9231
+ uiPathActivityTypeId: activityTypeId,
9232
+ displayName: label,
9233
+ description,
9234
+ configuration: JSON.stringify(configuration)
9235
+ }
9236
+ }
9237
+ }
9238
+ ]
9239
+ }
9240
+ ]
9241
+ },
9242
+ inputDefinition: {},
9243
+ inputDefaults: {},
9244
+ outputDefinition: {
9245
+ output: {
9246
+ type: "object",
9247
+ description: "The return value of the connector.",
9248
+ source: "=result.response",
9249
+ var: "output"
9250
+ }
9251
+ },
9252
+ debug: { runtime: "bpmnEngine" }
9253
+ };
9254
+ return manifest;
9255
+ }
9256
+ async function prepareInlineActivity(nodeType, input) {
9257
+ const { connectorKey } = parseInlineActivityNodeType(nodeType);
9258
+ const metadata = await readInlineActivityMetadata(input.metadataFile);
9259
+ if (metadata.elementKey !== connectorKey) {
9260
+ throw new InlineActivityError(`Node type names connector "${connectorKey}" but the metadata was generated for "${metadata.elementKey}".`, `Use "${INLINE_ACTIVITY_TYPE_PREFIX}${metadata.elementKey}.<activity-slug>", or regenerate the metadata for "${connectorKey}".`);
9261
+ }
9262
+ const { main, lookups } = collectScriptRefs(metadata);
9263
+ const scripts = await readInlineScripts(input.scriptsDir, [
9264
+ main,
9265
+ ...lookups
9266
+ ]);
9267
+ const manifest = buildInlineActivityDefinition({
9268
+ nodeType,
9269
+ connectorKey,
9270
+ metadata,
9271
+ activityTypeId: randomUUID()
9272
+ });
9273
+ return {
9274
+ manifest,
9275
+ connectorKey,
9276
+ configuration: { metadata, scriptRef: main, scripts }
9277
+ };
9278
+ }
9279
+ function getInlineActivityConfiguration(node) {
9280
+ const raw = node.inputs?.inlineActivityConfiguration;
9281
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
9282
+ return;
9283
+ }
9284
+ return raw;
9285
+ }
9286
+ function definitionConfigurationOf(definition) {
9287
+ const form = asBag(definition.form);
9288
+ for (const section of form.sections ?? []) {
9289
+ for (const field of asBag(section).fields ?? []) {
9290
+ const detail = asBag(asBag(asBag(field).componentProps).connectorDetail);
9291
+ if (typeof detail.configuration === "string") {
9292
+ return detail.configuration;
9293
+ }
9294
+ }
9295
+ }
9296
+ return;
9297
+ }
9298
+
9299
+ export { parse3 as parse, loadRegistry, INLINE_ACTIVITY_TYPE_PREFIX, INLINE_ACTIVITY_SOURCE, InlineActivityError, collectScriptRefs, prepareInlineActivity, getInlineActivityConfiguration, definitionConfigurationOf };
8495
9300
 
8496
- //# debugId=A57A677A16BD8BD264756E2164756E21
9301
+ //# debugId=BAC50F3104FF6B2B64756E2164756E21