@uipath/solution-tool 1.205.0-preview.281 → 1.206.0-preview.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
  2. package/dist/{cleanup-command-service-je9d70vv.js → cleanup-command-service-ejakyhea.js} +34 -31
  3. package/dist/deploy-delete-service-r7abfh28.js +23 -0
  4. package/dist/deploy-run-service-rnthz10q.js +23 -0
  5. package/dist/{deploy-status-service-919yn8wn.js → deploy-status-service-6my5vm61.js} +72 -62
  6. package/dist/deploy.js +35 -37
  7. package/dist/deployment-search-gfm907tx.js +54 -0
  8. package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
  9. package/dist/feed-resolver-14crsx5y.js +27 -0
  10. package/dist/feed-scope-failure-67cyybn0.js +20 -0
  11. package/dist/feed-session-g94q2bjc.js +23 -0
  12. package/dist/first-party-service-n3vva2m4.js +8 -0
  13. package/dist/governance-options-t20vsznh.js +19 -0
  14. package/dist/index-aspmac9f.js +24 -0
  15. package/dist/index-ddk6v1ej.js +60 -0
  16. package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
  17. package/dist/index-qq4kre7a.js +93 -0
  18. package/dist/index-t262f2xv.js +16 -0
  19. package/dist/index.js +33 -34
  20. package/dist/init.js +18 -21
  21. package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
  22. package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
  23. package/dist/{list-5fke71jn.js → list-jntan9tx.js} +23 -23
  24. package/dist/models/pack-command-types.d.ts +3 -1
  25. package/dist/node-kwzcw5ex.js +25 -0
  26. package/dist/pack-command-service-pwaeha7y.js +29 -0
  27. package/dist/{pack-project-ha0pxw3h.js → pack-project-ztt1hfrs.js} +33 -40
  28. package/dist/pack.js +26 -30
  29. package/dist/package-id-4tsg5jsb.js +11 -0
  30. package/dist/{packager-tool-4pa108k7.js → packager-tool-1bz9h5ca.js} +11 -11
  31. package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
  32. package/dist/{packager-tool-f23a485e.js → packager-tool-55ztfccd.js} +176 -196
  33. package/dist/{packager-tool-45a8fkw0.js → packager-tool-95y24705.js} +37 -39
  34. package/dist/{packager-tool-2vmz56qh.js → packager-tool-9j8e5q1z.js} +184 -33
  35. package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
  36. package/dist/packager-tool-a6va4gc5.js +1178 -0
  37. package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
  38. package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
  39. package/dist/{packager-tool-97rcgwvv.js → packager-tool-bs1jn1yn.js} +331 -55
  40. package/dist/packager-tool-c64hqa8n.js +106 -0
  41. package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
  42. package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
  43. package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
  44. package/dist/packager-tool-f84z7nds.js +130 -0
  45. package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
  46. package/dist/packager-tool-fqs6hdcy.js +290 -0
  47. package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
  48. package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
  49. package/dist/{packager-tool-gyqfs04e.js → packager-tool-nrhqgr4z.js} +273 -255
  50. package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
  51. package/dist/{packager-tool-d78ww4hb.js → packager-tool-pyt9fvty.js} +51 -48
  52. package/dist/packager-tool-q5d9df2q.js +74 -0
  53. package/dist/{packager-tool-cvf46scg.js → packager-tool-q8ryk6q9.js} +122 -89
  54. package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
  55. package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
  56. package/dist/packager-tool-resolver-td3bhccd.js +20 -0
  57. package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
  58. package/dist/{packager-tool-2t72aez8.js → packager-tool-snm6s7b5.js} +15 -15
  59. package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
  60. package/dist/{packager-tool-wm0jaz7p.js → packager-tool-t3a48ys5.js} +305 -657
  61. package/dist/{packager-tool-dnrk1gg6.js → packager-tool-t3ahzjh1.js} +356 -298
  62. package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
  63. package/dist/packager-tool-vrtabg73.js +2307 -0
  64. package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
  65. package/dist/{packager-tool-h1tq7bqf.js → packager-tool-vx39dhvn.js} +65 -35
  66. package/dist/{packager-tool-5qzgdb66.js → packager-tool-w34wyhwf.js} +13 -15
  67. package/dist/packager-tool-w8bcwfd3.js +280 -0
  68. package/dist/{packager-tool-1ybnxbp9.js → packager-tool-wm0h0wa1.js} +18 -18
  69. package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
  70. package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
  71. package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
  72. package/dist/{packager-tool-056k8w2f.js → packager-tool-z5r49ky9.js} +75 -9
  73. package/dist/packager-tool.js +6 -7
  74. package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
  75. package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
  76. package/dist/project-contributions-kh9yftvg.js +27 -0
  77. package/dist/publish.js +17 -17
  78. package/dist/resource-mutations-mfn5k1hb.js +27 -0
  79. package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
  80. package/dist/resource.js +13 -16
  81. package/dist/{restore-command-service-pzpet021.js → restore-command-service-n880dxre.js} +37 -34
  82. package/dist/{run-service-hk8w2h31.js → run-service-4vhn6mtb.js} +144 -66
  83. package/dist/services/deploy-activate-service.d.ts +2 -1
  84. package/dist/services/deployment-search-client.d.ts +2 -1
  85. package/dist/services/deployment-search.d.ts +39 -0
  86. package/dist/services/feed-resolver.d.ts +13 -1
  87. package/dist/services/feed-selection.d.ts +8 -5
  88. package/dist/services/feed-session.d.ts +34 -0
  89. package/dist/services/install-run.d.ts +92 -0
  90. package/dist/services/prepare-solution-resources.d.ts +11 -2
  91. package/dist/services/project-contributions.d.ts +2 -0
  92. package/dist/services/project-identity-telemetry.d.ts +3 -0
  93. package/dist/services/publish-service.d.ts +20 -3
  94. package/dist/services/solution-identity.d.ts +18 -0
  95. package/dist/ship-telemetry-bkf3800w.js +16 -0
  96. package/dist/solution-auth-jxcgd2m0.js +10 -0
  97. package/dist/solution-identity-92h2fbpa.js +19 -0
  98. package/dist/templates/AGENTS.md +27 -29
  99. package/dist/tool.js +32 -33
  100. package/package.json +2 -2
  101. package/dist/deploy-delete-service-0tm600d1.js +0 -25
  102. package/dist/deploy-run-service-hne5w17k.js +0 -25
  103. package/dist/deployment-search-32zvxn35.js +0 -55
  104. package/dist/feed-resolver-pdeb4wkq.js +0 -28
  105. package/dist/feed-scope-failure-4baame72.js +0 -19
  106. package/dist/feed-session-7xqphdrg.js +0 -17
  107. package/dist/first-party-service-sd8yaf73.js +0 -27
  108. package/dist/governance-options-bqgv5fte.js +0 -32
  109. package/dist/index-dqa169gp.js +0 -25
  110. package/dist/index-prm27bvm.js +0 -138
  111. package/dist/index-wdndcwab.js +0 -667
  112. package/dist/node-v7xhqwe2.js +0 -86
  113. package/dist/pack-command-service-b1v9c8cw.js +0 -35
  114. package/dist/package-id-rpzgy31w.js +0 -13
  115. package/dist/packager-tool-53w8skv5.js +0 -262
  116. package/dist/packager-tool-5edvzz80.js +0 -543
  117. package/dist/packager-tool-99jaqabz.js +0 -171
  118. package/dist/packager-tool-9hsmn8th.js +0 -418
  119. package/dist/packager-tool-azre7mm1.js +0 -182
  120. package/dist/packager-tool-fn13r8e1.js +0 -188
  121. package/dist/packager-tool-gdtpsdn7.js +0 -342
  122. package/dist/packager-tool-qw47eyw7.js +0 -43
  123. package/dist/packager-tool-resolver-994z3jkj.js +0 -23
  124. package/dist/packager-tool-tedbebpq.js +0 -5367
  125. package/dist/packager-tool-x1ah4eez.js +0 -68
  126. package/dist/prepare-solution-resources-m1djfj62.js +0 -29
  127. package/dist/project-contributions-79ndycrx.js +0 -32
  128. package/dist/resource-mutations-c3krjqze.js +0 -36
  129. package/dist/ship-telemetry-myes7ak5.js +0 -21
  130. package/dist/solution-auth-aead70sw.js +0 -11
  131. /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
  132. /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
@@ -1,43 +1,33 @@
1
1
  import {
2
- JsonSerializerFactory,
3
- JsonSerializerNames,
4
- JsonSerializerProxy,
5
- StreamSerializer
6
- } from "./packager-tool-gdtpsdn7.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
4
+ import {
5
+ catchError,
6
+ extractErrorMessage
7
+ } from "./packager-tool-m07vyk89.js";
7
8
  import {
8
- FirstPartyServiceApi
9
- } from "./packager-tool-53w8skv5.js";
9
+ logger,
10
+ isGuid
11
+ } from "./packager-tool-9vrwpgt3.js";
10
12
  import {
11
- getSolutionAuthContext
12
- } from "./packager-tool-61pwb567.js";
13
+ getLoginStatusAsync
14
+ } from "./packager-tool-t39pjz7n.js";
13
15
  import {
14
16
  UsersApi,
15
17
  createApiClient
16
- } from "./packager-tool-8ptbmmmp.js";
18
+ } from "./packager-tool-fp46ebde.js";
17
19
  import {
18
- findSolutionFileUpward,
19
- normalizeProjectType,
20
- toPortableRelativePath
21
- } from "./packager-tool-5edvzz80.js";
20
+ getSolutionAuthContext2
21
+ } from "./packager-tool-ppj5f4y7.js";
22
22
  import {
23
- getLoginStatusAsync
24
- } from "./packager-tool-43ahv5mn.js";
25
- import {
26
- isGuid,
27
- logger
28
- } from "./packager-tool-tx834spe.js";
29
- import {
30
- catchError,
31
- extractErrorMessage
32
- } from "./packager-tool-6ybywxxn.js";
33
- import {
34
- getFileSystem
35
- } from "./packager-tool-v1f5e8t9.js";
23
+ normalizeProjectType,
24
+ toPortableRelativePath2,
25
+ findSolutionFileUpward
26
+ } from "./packager-tool-c64hqa8n.js";
36
27
  import {
37
- __commonJS,
38
- __require,
39
- __toESM
40
- } from "./packager-tool-1de529jm.js";
28
+ __toESM,
29
+ __commonJS
30
+ } from "./packager-tool-epsr41wx.js";
41
31
 
42
32
  // ../../node_modules/reflect-metadata/Reflect.js
43
33
  var require_Reflect = __commonJS(function() {
@@ -56,16 +46,16 @@ var require_Reflect = __commonJS(function() {
56
46
  and limitations under the License.
57
47
  ***************************************************************************** */
58
48
  var Reflect2;
59
- (function(Reflect3) {
49
+ (function(Reflect2) {
60
50
  (function(factory) {
61
51
  var root = typeof globalThis === "object" ? globalThis : typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : sloppyModeThis();
62
- var exporter = makeExporter(Reflect3);
52
+ var exporter = makeExporter(Reflect2);
63
53
  if (typeof root.Reflect !== "undefined") {
64
54
  exporter = makeExporter(root.Reflect, exporter);
65
55
  }
66
56
  factory(exporter, root);
67
57
  if (typeof root.Reflect === "undefined") {
68
- root.Reflect = Reflect3;
58
+ root.Reflect = Reflect2;
69
59
  }
70
60
  function makeExporter(target, previous) {
71
61
  return function(key, value) {
@@ -249,8 +239,8 @@ var require_Reflect = __commonJS(function() {
249
239
  return descriptor;
250
240
  }
251
241
  function OrdinaryHasMetadata(MetadataKey, O, P) {
252
- var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
253
- if (hasOwn2)
242
+ var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
243
+ if (hasOwn)
254
244
  return true;
255
245
  var parent = OrdinaryGetPrototypeOf(O);
256
246
  if (!IsNull(parent))
@@ -264,8 +254,8 @@ var require_Reflect = __commonJS(function() {
264
254
  return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
265
255
  }
266
256
  function OrdinaryGetMetadata(MetadataKey, O, P) {
267
- var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
268
- if (hasOwn2)
257
+ var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
258
+ if (hasOwn)
269
259
  return OrdinaryGetOwnMetadata(MetadataKey, O, P);
270
260
  var parent = OrdinaryGetPrototypeOf(O);
271
261
  if (!IsNull(parent))
@@ -597,48 +587,48 @@ var require_Reflect = __commonJS(function() {
597
587
  }
598
588
  }
599
589
  function GetOrCreateMetadataRegistry() {
600
- var metadataRegistry2;
590
+ var metadataRegistry;
601
591
  if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
602
- metadataRegistry2 = root.Reflect[registrySymbol];
592
+ metadataRegistry = root.Reflect[registrySymbol];
603
593
  }
604
- if (IsUndefined(metadataRegistry2)) {
605
- metadataRegistry2 = CreateMetadataRegistry();
594
+ if (IsUndefined(metadataRegistry)) {
595
+ metadataRegistry = CreateMetadataRegistry();
606
596
  }
607
597
  if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
608
598
  Object.defineProperty(root.Reflect, registrySymbol, {
609
599
  enumerable: false,
610
600
  configurable: false,
611
601
  writable: false,
612
- value: metadataRegistry2
602
+ value: metadataRegistry
613
603
  });
614
604
  }
615
- return metadataRegistry2;
605
+ return metadataRegistry;
616
606
  }
617
607
  function CreateMetadataProvider(registry) {
618
- var metadata2 = new _WeakMap;
608
+ var metadata = new _WeakMap;
619
609
  var provider = {
620
610
  isProviderFor: function(O, P) {
621
- var targetMetadata = metadata2.get(O);
611
+ var targetMetadata = metadata.get(O);
622
612
  if (IsUndefined(targetMetadata))
623
613
  return false;
624
614
  return targetMetadata.has(P);
625
615
  },
626
- OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata2,
627
- OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata2,
628
- OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata2,
629
- OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys2,
616
+ OrdinaryDefineOwnMetadata,
617
+ OrdinaryHasOwnMetadata,
618
+ OrdinaryGetOwnMetadata,
619
+ OrdinaryOwnMetadataKeys,
630
620
  OrdinaryDeleteMetadata
631
621
  };
632
622
  metadataRegistry.registerProvider(provider);
633
623
  return provider;
634
624
  function GetOrCreateMetadataMap(O, P, Create) {
635
- var targetMetadata = metadata2.get(O);
625
+ var targetMetadata = metadata.get(O);
636
626
  var createdTargetMetadata = false;
637
627
  if (IsUndefined(targetMetadata)) {
638
628
  if (!Create)
639
629
  return;
640
630
  targetMetadata = new _Map;
641
- metadata2.set(O, targetMetadata);
631
+ metadata.set(O, targetMetadata);
642
632
  createdTargetMetadata = true;
643
633
  }
644
634
  var metadataMap = targetMetadata.get(P);
@@ -650,30 +640,30 @@ var require_Reflect = __commonJS(function() {
650
640
  if (!registry.setProvider(O, P, provider)) {
651
641
  targetMetadata.delete(P);
652
642
  if (createdTargetMetadata) {
653
- metadata2.delete(O);
643
+ metadata.delete(O);
654
644
  }
655
645
  throw new Error("Wrong provider for target.");
656
646
  }
657
647
  }
658
648
  return metadataMap;
659
649
  }
660
- function OrdinaryHasOwnMetadata2(MetadataKey, O, P) {
650
+ function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
661
651
  var metadataMap = GetOrCreateMetadataMap(O, P, false);
662
652
  if (IsUndefined(metadataMap))
663
653
  return false;
664
654
  return ToBoolean(metadataMap.has(MetadataKey));
665
655
  }
666
- function OrdinaryGetOwnMetadata2(MetadataKey, O, P) {
656
+ function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
667
657
  var metadataMap = GetOrCreateMetadataMap(O, P, false);
668
658
  if (IsUndefined(metadataMap))
669
659
  return;
670
660
  return metadataMap.get(MetadataKey);
671
661
  }
672
- function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O, P) {
662
+ function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
673
663
  var metadataMap = GetOrCreateMetadataMap(O, P, true);
674
664
  metadataMap.set(MetadataKey, MetadataValue);
675
665
  }
676
- function OrdinaryOwnMetadataKeys2(O, P) {
666
+ function OrdinaryOwnMetadataKeys(O, P) {
677
667
  var keys = [];
678
668
  var metadataMap = GetOrCreateMetadataMap(O, P, false);
679
669
  if (IsUndefined(metadataMap))
@@ -707,11 +697,11 @@ var require_Reflect = __commonJS(function() {
707
697
  if (!metadataMap.delete(MetadataKey))
708
698
  return false;
709
699
  if (metadataMap.size === 0) {
710
- var targetMetadata = metadata2.get(O);
700
+ var targetMetadata = metadata.get(O);
711
701
  if (!IsUndefined(targetMetadata)) {
712
702
  targetMetadata.delete(P);
713
703
  if (targetMetadata.size === 0) {
714
- metadata2.delete(targetMetadata);
704
+ metadata.delete(targetMetadata);
715
705
  }
716
706
  }
717
707
  }
@@ -719,7 +709,7 @@ var require_Reflect = __commonJS(function() {
719
709
  }
720
710
  }
721
711
  function CreateFallbackProvider(reflect) {
722
- var { defineMetadata: defineMetadata2, hasOwnMetadata: hasOwnMetadata2, getOwnMetadata: getOwnMetadata2, getOwnMetadataKeys: getOwnMetadataKeys2, deleteMetadata: deleteMetadata2 } = reflect;
712
+ var { defineMetadata, hasOwnMetadata, getOwnMetadata, getOwnMetadataKeys, deleteMetadata } = reflect;
723
713
  var metadataOwner = new _WeakMap;
724
714
  var provider = {
725
715
  isProviderFor: function(O, P) {
@@ -727,7 +717,7 @@ var require_Reflect = __commonJS(function() {
727
717
  if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
728
718
  return true;
729
719
  }
730
- if (getOwnMetadataKeys2(O, P).length) {
720
+ if (getOwnMetadataKeys(O, P).length) {
731
721
  if (IsUndefined(metadataPropertySet)) {
732
722
  metadataPropertySet = new _Set;
733
723
  metadataOwner.set(O, metadataPropertySet);
@@ -737,11 +727,11 @@ var require_Reflect = __commonJS(function() {
737
727
  }
738
728
  return false;
739
729
  },
740
- OrdinaryDefineOwnMetadata: defineMetadata2,
741
- OrdinaryHasOwnMetadata: hasOwnMetadata2,
742
- OrdinaryGetOwnMetadata: getOwnMetadata2,
743
- OrdinaryOwnMetadataKeys: getOwnMetadataKeys2,
744
- OrdinaryDeleteMetadata: deleteMetadata2
730
+ OrdinaryDefineOwnMetadata: defineMetadata,
731
+ OrdinaryHasOwnMetadata: hasOwnMetadata,
732
+ OrdinaryGetOwnMetadata: getOwnMetadata,
733
+ OrdinaryOwnMetadataKeys: getOwnMetadataKeys,
734
+ OrdinaryDeleteMetadata: deleteMetadata
745
735
  };
746
736
  return provider;
747
737
  }
@@ -762,19 +752,19 @@ var require_Reflect = __commonJS(function() {
762
752
  var cacheSentinel = {};
763
753
  var arraySentinel = [];
764
754
  var MapIterator = function() {
765
- function MapIterator2(keys, values, selector) {
755
+ function MapIterator(keys, values, selector) {
766
756
  this._index = 0;
767
757
  this._keys = keys;
768
758
  this._values = values;
769
759
  this._selector = selector;
770
760
  }
771
- MapIterator2.prototype["@@iterator"] = function() {
761
+ MapIterator.prototype["@@iterator"] = function() {
772
762
  return this;
773
763
  };
774
- MapIterator2.prototype[iteratorSymbol] = function() {
764
+ MapIterator.prototype[iteratorSymbol] = function() {
775
765
  return this;
776
766
  };
777
- MapIterator2.prototype.next = function() {
767
+ MapIterator.prototype.next = function() {
778
768
  var index = this._index;
779
769
  if (index >= 0 && index < this._keys.length) {
780
770
  var result = this._selector(this._keys[index], this._values[index]);
@@ -789,7 +779,7 @@ var require_Reflect = __commonJS(function() {
789
779
  }
790
780
  return { value: undefined, done: true };
791
781
  };
792
- MapIterator2.prototype.throw = function(error) {
782
+ MapIterator.prototype.throw = function(error) {
793
783
  if (this._index >= 0) {
794
784
  this._index = -1;
795
785
  this._keys = arraySentinel;
@@ -797,7 +787,7 @@ var require_Reflect = __commonJS(function() {
797
787
  }
798
788
  throw error;
799
789
  };
800
- MapIterator2.prototype.return = function(value) {
790
+ MapIterator.prototype.return = function(value) {
801
791
  if (this._index >= 0) {
802
792
  this._index = -1;
803
793
  this._keys = arraySentinel;
@@ -805,35 +795,35 @@ var require_Reflect = __commonJS(function() {
805
795
  }
806
796
  return { value, done: true };
807
797
  };
808
- return MapIterator2;
798
+ return MapIterator;
809
799
  }();
810
800
  var Map2 = function() {
811
- function Map3() {
801
+ function Map2() {
812
802
  this._keys = [];
813
803
  this._values = [];
814
804
  this._cacheKey = cacheSentinel;
815
805
  this._cacheIndex = -2;
816
806
  }
817
- Object.defineProperty(Map3.prototype, "size", {
807
+ Object.defineProperty(Map2.prototype, "size", {
818
808
  get: function() {
819
809
  return this._keys.length;
820
810
  },
821
811
  enumerable: true,
822
812
  configurable: true
823
813
  });
824
- Map3.prototype.has = function(key) {
814
+ Map2.prototype.has = function(key) {
825
815
  return this._find(key, false) >= 0;
826
816
  };
827
- Map3.prototype.get = function(key) {
817
+ Map2.prototype.get = function(key) {
828
818
  var index = this._find(key, false);
829
819
  return index >= 0 ? this._values[index] : undefined;
830
820
  };
831
- Map3.prototype.set = function(key, value) {
821
+ Map2.prototype.set = function(key, value) {
832
822
  var index = this._find(key, true);
833
823
  this._values[index] = value;
834
824
  return this;
835
825
  };
836
- Map3.prototype.delete = function(key) {
826
+ Map2.prototype.delete = function(key) {
837
827
  var index = this._find(key, false);
838
828
  if (index >= 0) {
839
829
  var size = this._keys.length;
@@ -851,28 +841,28 @@ var require_Reflect = __commonJS(function() {
851
841
  }
852
842
  return false;
853
843
  };
854
- Map3.prototype.clear = function() {
844
+ Map2.prototype.clear = function() {
855
845
  this._keys.length = 0;
856
846
  this._values.length = 0;
857
847
  this._cacheKey = cacheSentinel;
858
848
  this._cacheIndex = -2;
859
849
  };
860
- Map3.prototype.keys = function() {
850
+ Map2.prototype.keys = function() {
861
851
  return new MapIterator(this._keys, this._values, getKey);
862
852
  };
863
- Map3.prototype.values = function() {
853
+ Map2.prototype.values = function() {
864
854
  return new MapIterator(this._keys, this._values, getValue);
865
855
  };
866
- Map3.prototype.entries = function() {
856
+ Map2.prototype.entries = function() {
867
857
  return new MapIterator(this._keys, this._values, getEntry);
868
858
  };
869
- Map3.prototype["@@iterator"] = function() {
859
+ Map2.prototype["@@iterator"] = function() {
870
860
  return this.entries();
871
861
  };
872
- Map3.prototype[iteratorSymbol] = function() {
862
+ Map2.prototype[iteratorSymbol] = function() {
873
863
  return this.entries();
874
864
  };
875
- Map3.prototype._find = function(key, insert) {
865
+ Map2.prototype._find = function(key, insert) {
876
866
  if (!SameValueZero(this._cacheKey, key)) {
877
867
  this._cacheIndex = -1;
878
868
  for (var i = 0;i < this._keys.length; i++) {
@@ -889,7 +879,7 @@ var require_Reflect = __commonJS(function() {
889
879
  }
890
880
  return this._cacheIndex;
891
881
  };
892
- return Map3;
882
+ return Map2;
893
883
  }();
894
884
  return Map2;
895
885
  function getKey(key, _) {
@@ -904,44 +894,44 @@ var require_Reflect = __commonJS(function() {
904
894
  }
905
895
  function CreateSetPolyfill() {
906
896
  var Set2 = function() {
907
- function Set3() {
897
+ function Set2() {
908
898
  this._map = new _Map;
909
899
  }
910
- Object.defineProperty(Set3.prototype, "size", {
900
+ Object.defineProperty(Set2.prototype, "size", {
911
901
  get: function() {
912
902
  return this._map.size;
913
903
  },
914
904
  enumerable: true,
915
905
  configurable: true
916
906
  });
917
- Set3.prototype.has = function(value) {
907
+ Set2.prototype.has = function(value) {
918
908
  return this._map.has(value);
919
909
  };
920
- Set3.prototype.add = function(value) {
910
+ Set2.prototype.add = function(value) {
921
911
  return this._map.set(value, value), this;
922
912
  };
923
- Set3.prototype.delete = function(value) {
913
+ Set2.prototype.delete = function(value) {
924
914
  return this._map.delete(value);
925
915
  };
926
- Set3.prototype.clear = function() {
916
+ Set2.prototype.clear = function() {
927
917
  this._map.clear();
928
918
  };
929
- Set3.prototype.keys = function() {
919
+ Set2.prototype.keys = function() {
930
920
  return this._map.keys();
931
921
  };
932
- Set3.prototype.values = function() {
922
+ Set2.prototype.values = function() {
933
923
  return this._map.keys();
934
924
  };
935
- Set3.prototype.entries = function() {
925
+ Set2.prototype.entries = function() {
936
926
  return this._map.entries();
937
927
  };
938
- Set3.prototype["@@iterator"] = function() {
928
+ Set2.prototype["@@iterator"] = function() {
939
929
  return this.keys();
940
930
  };
941
- Set3.prototype[iteratorSymbol] = function() {
931
+ Set2.prototype[iteratorSymbol] = function() {
942
932
  return this.keys();
943
933
  };
944
- return Set3;
934
+ return Set2;
945
935
  }();
946
936
  return Set2;
947
937
  }
@@ -1380,8 +1370,8 @@ var require_tslib = __commonJS(function(exports, module) {
1380
1370
  };
1381
1371
  }
1382
1372
  function settle(resolve, reject, d, v) {
1383
- Promise.resolve(v).then(function(v2) {
1384
- resolve({ value: v2, done: d });
1373
+ Promise.resolve(v).then(function(v) {
1374
+ resolve({ value: v, done: d });
1385
1375
  }, reject);
1386
1376
  }
1387
1377
  };
@@ -1451,11 +1441,11 @@ var require_tslib = __commonJS(function(exports, module) {
1451
1441
  var require_lifecycle = __commonJS(function(exports) {
1452
1442
  Object.defineProperty(exports, "__esModule", { value: true });
1453
1443
  var Lifecycle;
1454
- (function(Lifecycle2) {
1455
- Lifecycle2[Lifecycle2["Transient"] = 0] = "Transient";
1456
- Lifecycle2[Lifecycle2["Singleton"] = 1] = "Singleton";
1457
- Lifecycle2[Lifecycle2["ResolutionScoped"] = 2] = "ResolutionScoped";
1458
- Lifecycle2[Lifecycle2["ContainerScoped"] = 3] = "ContainerScoped";
1444
+ (function(Lifecycle) {
1445
+ Lifecycle[Lifecycle["Transient"] = 0] = "Transient";
1446
+ Lifecycle[Lifecycle["Singleton"] = 1] = "Singleton";
1447
+ Lifecycle[Lifecycle["ResolutionScoped"] = 2] = "ResolutionScoped";
1448
+ Lifecycle[Lifecycle["ContainerScoped"] = 3] = "ContainerScoped";
1459
1449
  })(Lifecycle || (Lifecycle = {}));
1460
1450
  exports.default = Lifecycle;
1461
1451
  });
@@ -1964,9 +1954,9 @@ var require_dependency_container = __commonJS(function(exports) {
1964
1954
  }
1965
1955
  this.executePreResolutionInterceptor(token, "All");
1966
1956
  if (registrations) {
1967
- const result2 = registrations.map((item) => this.resolveRegistration(item, context));
1968
- this.executePostResolutionInterceptor(token, result2, "All");
1969
- return result2;
1957
+ const result = registrations.map((item) => this.resolveRegistration(item, context));
1958
+ this.executePostResolutionInterceptor(token, result, "All");
1959
+ return result;
1970
1960
  }
1971
1961
  const result = [this.construct(token, context)];
1972
1962
  this.executePostResolutionInterceptor(token, result, "All");
@@ -2400,6 +2390,541 @@ var require_cjs = __commonJS(function(exports) {
2400
2390
  return dependency_container_1.instance;
2401
2391
  } });
2402
2392
  });
2393
+
2394
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-names.js
2395
+ var JsonSerializerNames2 = {
2396
+ DefaultCaseInsensitive: "DefaultCaseInsensitive",
2397
+ CaseInsensitive: "CaseInsensitive",
2398
+ Indented: "Indented",
2399
+ CamelCase: "CamelCase",
2400
+ CaseInsensitiveIndented: "CaseInsensitiveIndented",
2401
+ IndentedIgnoreNull: "IndentedIgnoreNull",
2402
+ PreservePropertyNames: "PreservePropertyNames",
2403
+ CamelCaseIndented: "CamelCaseIndented",
2404
+ AllNames: [
2405
+ "DefaultCaseInsensitive",
2406
+ "CaseInsensitive",
2407
+ "Indented",
2408
+ "CamelCase",
2409
+ "CaseInsensitiveIndented",
2410
+ "IndentedIgnoreNull",
2411
+ "PreservePropertyNames",
2412
+ "CamelCaseIndented"
2413
+ ]
2414
+ };
2415
+
2416
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer.js
2417
+ class JsonSerializer2 {
2418
+ serialize(value) {
2419
+ if (value == null)
2420
+ return null;
2421
+ let toSerialize = value;
2422
+ if (this.options.ignoreNull)
2423
+ toSerialize = this.removeNullValues(value);
2424
+ if (this.options.camelCase && !this.options.preservePropertyNames)
2425
+ toSerialize = this.toCamelCase(toSerialize);
2426
+ if (this.options.enumCamelCase !== false)
2427
+ toSerialize = this.convertEnumValuesToCamelCase(toSerialize);
2428
+ const json = JSON.stringify(toSerialize, null, this.options.indented ? 2 : undefined);
2429
+ return json;
2430
+ }
2431
+ async serializeAsync(stream, value, cancellationToken) {
2432
+ cancellationToken?.throwIfAborted?.();
2433
+ const json = this.serialize(value);
2434
+ if (json === null)
2435
+ return;
2436
+ const writer = stream.getWriter();
2437
+ try {
2438
+ const bytes = this.encoder.encode(json);
2439
+ await writer.write(bytes);
2440
+ } finally {
2441
+ writer.releaseLock();
2442
+ }
2443
+ }
2444
+ serializeToUtf8Bytes(value) {
2445
+ const json = this.serialize(value);
2446
+ if (json === null)
2447
+ return new Uint8Array(0);
2448
+ return this.encoder.encode(json);
2449
+ }
2450
+ deserialize(value) {
2451
+ if (value == null || value === "")
2452
+ return null;
2453
+ try {
2454
+ let cleanValue = value.charCodeAt(0) === 65279 ? value.slice(1) : value;
2455
+ if (cleanValue.charCodeAt(cleanValue.length - 1) === 26)
2456
+ cleanValue = cleanValue.slice(0, -1);
2457
+ const parsed = JSON.parse(cleanValue);
2458
+ return parsed;
2459
+ } catch {
2460
+ return null;
2461
+ }
2462
+ }
2463
+ deserializeAsType(value, _type) {
2464
+ return this.deserialize(value);
2465
+ }
2466
+ removeNullValues(obj) {
2467
+ if (obj == null)
2468
+ return obj;
2469
+ if (Array.isArray(obj))
2470
+ return obj.map((item) => this.removeNullValues(item));
2471
+ if (typeof obj == "object") {
2472
+ const result = {};
2473
+ for (const [key, val] of Object.entries(obj))
2474
+ if (val != null)
2475
+ result[key] = this.removeNullValues(val);
2476
+ return result;
2477
+ }
2478
+ return obj;
2479
+ }
2480
+ toCamelCase(obj) {
2481
+ if (obj == null)
2482
+ return obj;
2483
+ if (Array.isArray(obj))
2484
+ return obj.map((item) => this.toCamelCase(item));
2485
+ if (typeof obj == "object") {
2486
+ const result = {};
2487
+ for (const [key, val] of Object.entries(obj)) {
2488
+ const camelKey = key.charAt(0).toLowerCase() + key.slice(1);
2489
+ result[camelKey] = this.toCamelCase(val);
2490
+ }
2491
+ return result;
2492
+ }
2493
+ return obj;
2494
+ }
2495
+ convertEnumValuesToCamelCase(obj, className) {
2496
+ if (obj == null)
2497
+ return obj;
2498
+ if (typeof obj == "string")
2499
+ return this.tryConvertEnumStringToCamelCase(obj, undefined, undefined);
2500
+ if (Array.isArray(obj))
2501
+ return obj.map((item) => this.convertEnumValuesToCamelCase(item, className));
2502
+ if (typeof obj == "object") {
2503
+ const result = {};
2504
+ const currentClassName = obj.constructor?.name !== "Object" ? obj.constructor.name : className;
2505
+ for (const [key, val] of Object.entries(obj))
2506
+ if (typeof val == "string")
2507
+ result[key] = this.tryConvertEnumStringToCamelCase(val, currentClassName, key);
2508
+ else if (Array.isArray(val))
2509
+ result[key] = val.map((item) => {
2510
+ if (typeof item == "string")
2511
+ return this.tryConvertEnumStringToCamelCase(item, currentClassName, key);
2512
+ return this.convertEnumValuesToCamelCase(item, currentClassName);
2513
+ });
2514
+ else
2515
+ result[key] = this.convertEnumValuesToCamelCase(val, currentClassName);
2516
+ return result;
2517
+ }
2518
+ return obj;
2519
+ }
2520
+ tryConvertEnumStringToCamelCase(value, className, propertyName) {
2521
+ if (this.camelCaseEnumProperties.size > 0) {
2522
+ if (!propertyName || !this.isKnownCamelCaseEnum(className, propertyName))
2523
+ return value;
2524
+ } else if (propertyName && this.isInPropertySet(this.pascalCaseEnumProperties, className, propertyName))
2525
+ return value;
2526
+ if (/^[A-Z][a-zA-Z0-9]*$/.test(value))
2527
+ return value.charAt(0).toLowerCase() + value.slice(1);
2528
+ return value;
2529
+ }
2530
+ isKnownCamelCaseEnum(className, propertyName) {
2531
+ if (this.isInPropertySet(this.pascalCaseEnumProperties, className, propertyName))
2532
+ return false;
2533
+ return this.isInPropertySet(this.camelCaseEnumProperties, className, propertyName);
2534
+ }
2535
+ isInPropertySet(propertySet, className, propertyName) {
2536
+ if (className && propertySet.has(`${className}.${propertyName}`))
2537
+ return true;
2538
+ return propertySet.has(propertyName);
2539
+ }
2540
+ constructor(options = {}) {
2541
+ this.isContextBased = false;
2542
+ this.encoder = new TextEncoder;
2543
+ this.options = options;
2544
+ this.camelCaseEnumProperties = new Set(options.camelCaseEnumProperties ?? []);
2545
+ this.pascalCaseEnumProperties = new Set(options.pascalCaseEnumProperties ?? []);
2546
+ }
2547
+ }
2548
+
2549
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/pascal-case-enum-properties.js
2550
+ var CAMEL_CASE_ENUM_PROPERTIES2 = [
2551
+ "scope",
2552
+ "replaceOption",
2553
+ "lookupStrategy",
2554
+ "folderType"
2555
+ ];
2556
+ var SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES2 = [
2557
+ "propertyCategory"
2558
+ ];
2559
+ var RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES2 = [
2560
+ "ValidationState.errorSeverity",
2561
+ "ValidationState.errorType",
2562
+ "AddOrUpdateResourceToSolutionResponse.status",
2563
+ "Overwrite.type",
2564
+ "OverwriteValidationError.severity",
2565
+ "ProjectResourceDescriptor.provisionType"
2566
+ ];
2567
+ var PASCAL_CASE_ENUM_PROPERTIES2 = [
2568
+ ...SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES2,
2569
+ ...RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES2
2570
+ ];
2571
+
2572
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/json-serializer-factory.js
2573
+ class JsonSerializerFactory2 {
2574
+ get() {
2575
+ return this.defaultSerializer;
2576
+ }
2577
+ getByName(name) {
2578
+ if (!name)
2579
+ return this.defaultSerializer;
2580
+ let serializer = this.namedSerializers.get(name);
2581
+ if (!serializer) {
2582
+ serializer = this.createNamedSerializer(name);
2583
+ this.namedSerializers.set(name, serializer);
2584
+ }
2585
+ return serializer;
2586
+ }
2587
+ initializePredefinedSerializers() {
2588
+ for (const name of JsonSerializerNames2.AllNames)
2589
+ this.namedSerializers.set(name, this.createNamedSerializer(name));
2590
+ }
2591
+ createNamedSerializer(name) {
2592
+ const options = this.createOptionsForName(name);
2593
+ return new JsonSerializer2(options);
2594
+ }
2595
+ createOptionsForName(name) {
2596
+ const options = {
2597
+ ...this.baseOptions
2598
+ };
2599
+ switch (name) {
2600
+ case JsonSerializerNames2.DefaultCaseInsensitive:
2601
+ return {
2602
+ caseInsensitive: true
2603
+ };
2604
+ case JsonSerializerNames2.CaseInsensitive:
2605
+ options.caseInsensitive = true;
2606
+ break;
2607
+ case JsonSerializerNames2.Indented:
2608
+ options.indented = true;
2609
+ break;
2610
+ case JsonSerializerNames2.CamelCase:
2611
+ options.camelCase = true;
2612
+ break;
2613
+ case JsonSerializerNames2.CaseInsensitiveIndented:
2614
+ options.caseInsensitive = true;
2615
+ options.indented = true;
2616
+ break;
2617
+ case JsonSerializerNames2.IndentedIgnoreNull:
2618
+ options.indented = true;
2619
+ options.ignoreNull = true;
2620
+ break;
2621
+ case JsonSerializerNames2.PreservePropertyNames:
2622
+ options.preservePropertyNames = true;
2623
+ options.camelCase = false;
2624
+ break;
2625
+ case JsonSerializerNames2.CamelCaseIndented:
2626
+ options.indented = true;
2627
+ options.camelCase = true;
2628
+ options.ignoreNull = true;
2629
+ break;
2630
+ default:
2631
+ break;
2632
+ }
2633
+ return options;
2634
+ }
2635
+ constructor(options) {
2636
+ const defaults = {
2637
+ camelCase: true,
2638
+ enumCamelCase: true,
2639
+ camelCaseEnumProperties: CAMEL_CASE_ENUM_PROPERTIES2,
2640
+ pascalCaseEnumProperties: PASCAL_CASE_ENUM_PROPERTIES2
2641
+ };
2642
+ this.baseOptions = options ? {
2643
+ ...defaults,
2644
+ ...options
2645
+ } : defaults;
2646
+ this.defaultSerializer = new JsonSerializer2(this.baseOptions);
2647
+ this.namedSerializers = new Map;
2648
+ this.initializePredefinedSerializers();
2649
+ }
2650
+ }
2651
+
2652
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/serializer-proxy.js
2653
+ class JsonSerializerProxy2 {
2654
+ serialize(value) {
2655
+ return this.jsonSerializer.serialize(value);
2656
+ }
2657
+ serializeAsync(stream, value, cancellationToken) {
2658
+ return this.jsonSerializer.serializeAsync(stream, value, cancellationToken);
2659
+ }
2660
+ serializeToUtf8Bytes(value) {
2661
+ return this.jsonSerializer.serializeToUtf8Bytes(value);
2662
+ }
2663
+ deserialize(value) {
2664
+ return this.jsonSerializer.deserialize(value);
2665
+ }
2666
+ tryDeserializeObject(json) {
2667
+ if (!json || json.trim() === "")
2668
+ return null;
2669
+ try {
2670
+ return this.jsonSerializer.isContextBased ? this.jsonSerializer.deserialize(json) : this.caseInsensitiveSerializer.deserialize(json);
2671
+ } catch (ex) {
2672
+ this.logger.info("Deserialization failed with exception.", ex);
2673
+ return null;
2674
+ }
2675
+ }
2676
+ tryDeserialize(value) {
2677
+ if (!value || value.trim() === "")
2678
+ return [
2679
+ false,
2680
+ null
2681
+ ];
2682
+ try {
2683
+ const result = this.jsonSerializer.deserialize(value);
2684
+ return [
2685
+ true,
2686
+ result
2687
+ ];
2688
+ } catch (ex) {
2689
+ this.logger.info("Deserialization failed with exception.", ex);
2690
+ return [
2691
+ false,
2692
+ null
2693
+ ];
2694
+ }
2695
+ }
2696
+ constructor(jsonSerializerFactory, loggerFactory) {
2697
+ this.jsonSerializer = jsonSerializerFactory.get();
2698
+ this.caseInsensitiveSerializer = jsonSerializerFactory.getByName(JsonSerializerNames2.CaseInsensitive);
2699
+ this.logger = loggerFactory.create("JsonSerializerProxy");
2700
+ }
2701
+ }
2702
+
2703
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/serialization/stream-serializer.js
2704
+ class StreamSerializer2 {
2705
+ async serializeAsync(data, cancellationToken) {
2706
+ cancellationToken?.throwIfAborted?.();
2707
+ const serializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.PreservePropertyNames);
2708
+ const serializedContent = serializer.serialize(data);
2709
+ const encoder = new TextEncoder;
2710
+ const bytes = serializedContent ? encoder.encode(serializedContent) : new Uint8Array(0);
2711
+ let streamClosed = false;
2712
+ const stream = new ReadableStream({
2713
+ start(controller) {
2714
+ controller.enqueue(bytes);
2715
+ controller.close();
2716
+ streamClosed = true;
2717
+ }
2718
+ });
2719
+ const disposeStream = this.disposeStream;
2720
+ return {
2721
+ stream,
2722
+ dispose() {
2723
+ if (disposeStream && !streamClosed)
2724
+ stream.cancel().catch(() => {});
2725
+ }
2726
+ };
2727
+ }
2728
+ constructor(jsonSerializerFactory, disposeStream = true) {
2729
+ this.jsonSerializerFactory = jsonSerializerFactory;
2730
+ this.disposeStream = disposeStream;
2731
+ }
2732
+ }
2733
+ // ../../node_modules/@uipath/resource-builder-sdk/dist/clients/generated/first-party-service.js
2734
+ class HttpClient {
2735
+ encodeQueryParam(key, value) {
2736
+ const encodedKey = encodeURIComponent(key);
2737
+ return `${encodedKey}=${encodeURIComponent(typeof value == "number" ? value : `${value}`)}`;
2738
+ }
2739
+ addQueryParam(query, key) {
2740
+ return this.encodeQueryParam(key, query[key]);
2741
+ }
2742
+ addArrayQueryParam(query, key) {
2743
+ const value = query[key];
2744
+ return value.map((v) => this.encodeQueryParam(key, v)).join("&");
2745
+ }
2746
+ toQueryString(rawQuery) {
2747
+ const query = rawQuery || {};
2748
+ const keys = Object.keys(query).filter((key) => query[key] !== undefined);
2749
+ return keys.map((key) => Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)).join("&");
2750
+ }
2751
+ addQueryParams(rawQuery) {
2752
+ const queryString = this.toQueryString(rawQuery);
2753
+ return queryString ? `?${queryString}` : "";
2754
+ }
2755
+ mergeRequestParams(params1, params2) {
2756
+ return {
2757
+ ...this.baseApiParams,
2758
+ ...params1,
2759
+ ...params2 || {},
2760
+ headers: {
2761
+ ...this.baseApiParams.headers || {},
2762
+ ...params1.headers || {},
2763
+ ...params2 && params2.headers || {}
2764
+ }
2765
+ };
2766
+ }
2767
+ constructor(apiConfig = {}) {
2768
+ this.baseUrl = "https://localhost:7008";
2769
+ this.securityData = null;
2770
+ this.abortControllers = new Map;
2771
+ this.customFetch = (...fetchParams) => fetch(...fetchParams);
2772
+ this.baseApiParams = {
2773
+ credentials: "same-origin",
2774
+ headers: {},
2775
+ redirect: "follow",
2776
+ referrerPolicy: "no-referrer"
2777
+ };
2778
+ this.setSecurityData = (data) => {
2779
+ this.securityData = data;
2780
+ };
2781
+ this.contentFormatters = {
2782
+ ["application/json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
2783
+ ["application/vnd.api+json"]: (input) => input !== null && (typeof input == "object" || typeof input == "string") ? JSON.stringify(input) : input,
2784
+ ["text/plain"]: (input) => input !== null && typeof input != "string" ? JSON.stringify(input) : input,
2785
+ ["multipart/form-data"]: (input) => {
2786
+ if (input instanceof FormData)
2787
+ return input;
2788
+ return Object.keys(input || {}).reduce((formData, key) => {
2789
+ const property = input[key];
2790
+ formData.append(key, property instanceof Blob ? property : typeof property == "object" && property !== null ? JSON.stringify(property) : `${property}`);
2791
+ return formData;
2792
+ }, new FormData);
2793
+ },
2794
+ ["application/x-www-form-urlencoded"]: (input) => this.toQueryString(input)
2795
+ };
2796
+ this.createAbortSignal = (cancelToken) => {
2797
+ if (this.abortControllers.has(cancelToken)) {
2798
+ const abortController = this.abortControllers.get(cancelToken);
2799
+ if (abortController)
2800
+ return abortController.signal;
2801
+ return;
2802
+ }
2803
+ const abortController = new AbortController;
2804
+ this.abortControllers.set(cancelToken, abortController);
2805
+ return abortController.signal;
2806
+ };
2807
+ this.abortRequest = (cancelToken) => {
2808
+ const abortController = this.abortControllers.get(cancelToken);
2809
+ if (abortController) {
2810
+ abortController.abort();
2811
+ this.abortControllers.delete(cancelToken);
2812
+ }
2813
+ };
2814
+ this.request = async ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }) => {
2815
+ const secureParams = (typeof secure == "boolean" ? secure : this.baseApiParams.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
2816
+ const requestParams = this.mergeRequestParams(params, secureParams);
2817
+ const queryString = query && this.toQueryString(query);
2818
+ const payloadFormatter = this.contentFormatters[type || "application/json"];
2819
+ const responseFormat = format || requestParams.format;
2820
+ return this.customFetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, {
2821
+ ...requestParams,
2822
+ headers: {
2823
+ ...requestParams.headers || {},
2824
+ ...type && type !== "multipart/form-data" ? {
2825
+ "Content-Type": type
2826
+ } : {}
2827
+ },
2828
+ signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
2829
+ body: body == null ? null : payloadFormatter(body)
2830
+ }).then(async (response) => {
2831
+ const r = response;
2832
+ r.data = null;
2833
+ r.error = null;
2834
+ const responseToParse = responseFormat ? response.clone() : response;
2835
+ const data = responseFormat ? await responseToParse[responseFormat]().then((data) => {
2836
+ if (r.ok)
2837
+ r.data = data;
2838
+ else
2839
+ r.error = data;
2840
+ return r;
2841
+ }).catch((e) => {
2842
+ r.error = e;
2843
+ return r;
2844
+ }) : r;
2845
+ if (cancelToken)
2846
+ this.abortControllers.delete(cancelToken);
2847
+ if (!response.ok)
2848
+ throw data;
2849
+ return data.data;
2850
+ });
2851
+ };
2852
+ Object.assign(this, apiConfig);
2853
+ }
2854
+ }
2855
+
2856
+ class FirstPartyServiceApi2 extends HttpClient {
2857
+ constructor(...args) {
2858
+ super(...args), this.v2 = {
2859
+ automationSolutionsGetMetadata: (params = {}) => this.request({
2860
+ path: "/v2/automationsolutions/metadata",
2861
+ method: "GET",
2862
+ ...params
2863
+ }),
2864
+ automationSolutionsHeadMetadata: (params = {}) => this.request({
2865
+ path: "/v2/automationsolutions/metadata",
2866
+ method: "HEAD",
2867
+ ...params
2868
+ }),
2869
+ automationSolutionsSetState: (data, query, params = {}) => this.request({
2870
+ path: "/v2/automationsolutions",
2871
+ method: "PATCH",
2872
+ query,
2873
+ body: data,
2874
+ type: "application/json",
2875
+ ...params
2876
+ }),
2877
+ automationSolutionsInstall: (data, query, params = {}) => this.request({
2878
+ path: "/v2/automationsolutions",
2879
+ method: "PUT",
2880
+ query,
2881
+ body: data,
2882
+ format: "json",
2883
+ ...params
2884
+ }),
2885
+ automationSolutionsUninstall: (data, query, params = {}) => this.request({
2886
+ path: "/v2/automationsolutions",
2887
+ method: "DELETE",
2888
+ query,
2889
+ body: data,
2890
+ type: "application/json",
2891
+ format: "json",
2892
+ ...params
2893
+ }),
2894
+ automationSolutionsExport: (data, params = {}) => this.request({
2895
+ path: "/v2/automationsolutions/export",
2896
+ method: "POST",
2897
+ body: data,
2898
+ type: "application/json",
2899
+ format: "json",
2900
+ ...params
2901
+ }),
2902
+ automationSolutionsGetTranslations: (query, params = {}) => this.request({
2903
+ path: "/v2/automationsolutions/translations",
2904
+ method: "GET",
2905
+ query,
2906
+ format: "json",
2907
+ ...params
2908
+ }),
2909
+ automationSolutionsValidate: (data, query, params = {}) => this.request({
2910
+ path: "/v2/automationsolutions/validate",
2911
+ method: "POST",
2912
+ query,
2913
+ body: data,
2914
+ type: "application/json",
2915
+ format: "json",
2916
+ ...params
2917
+ }),
2918
+ automationSolutionsLookup: (query, params = {}) => this.request({
2919
+ path: "/v2/automationsolutions/lookup",
2920
+ method: "GET",
2921
+ query,
2922
+ format: "json",
2923
+ ...params
2924
+ })
2925
+ };
2926
+ }
2927
+ }
2403
2928
  // ../../node_modules/@uipath/resource-builder-sdk/dist/providers/file-storage-provider.js
2404
2929
  function isFileNotFoundError(error) {
2405
2930
  if (!error || typeof error != "object")
@@ -3486,12 +4011,12 @@ function cancellationError(signal) {
3486
4011
  class MultiFileSolutionDefinitionProvider {
3487
4012
  get caseInsensitiveSerializer() {
3488
4013
  if (!this._caseInsensitiveSerializer)
3489
- this._caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames.CaseInsensitive);
4014
+ this._caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CaseInsensitive);
3490
4015
  return this._caseInsensitiveSerializer;
3491
4016
  }
3492
4017
  get jsonSerializer() {
3493
4018
  if (!this._jsonSerializer)
3494
- this._jsonSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames.CamelCaseIndented);
4019
+ this._jsonSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CamelCaseIndented);
3495
4020
  return this._jsonSerializer;
3496
4021
  }
3497
4022
  async getFileStorageProviderAsync(context, cancellationToken) {
@@ -4141,11 +4666,11 @@ class MultiFileSolutionDefinitionFactory {
4141
4666
 
4142
4667
  // ../../node_modules/@uipath/resource-builder-sdk/dist/embedded-files-default.js
4143
4668
  async function createDefaultEmbeddedFileReaderAsync() {
4144
- const [{ EmbeddedFileReader }, { JsonSerializerFactory: JsonSerializerFactory2 }] = await Promise.all([
4145
- import("./embedded-file-reader-z4becc02.js"),
4146
- import("./index-dqa169gp.js")
4669
+ const [{ EmbeddedFileReader }, { JsonSerializerFactory }] = await Promise.all([
4670
+ import("./embedded-file-reader-0228j82a.js"),
4671
+ import("./index-aspmac9f.js")
4147
4672
  ]);
4148
- return new EmbeddedFileReader(new JsonSerializerFactory2);
4673
+ return new EmbeddedFileReader(new JsonSerializerFactory);
4149
4674
  }
4150
4675
 
4151
4676
  // ../../node_modules/@uipath/resource-builder-sdk/dist/services/artifact-resource-spec-enhancer.js
@@ -5910,7 +6435,7 @@ class ValidateSolutionDefinitionRequestHandler {
5910
6435
  }
5911
6436
  jsonContent = new TextDecoder("utf-8").decode(combined);
5912
6437
  }
5913
- const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames.CaseInsensitive);
6438
+ const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CaseInsensitive);
5914
6439
  const solution = caseInsensitiveSerializer.deserialize(jsonContent);
5915
6440
  if (solution == null) {
5916
6441
  this.logger.warn("Deserialization failed: the solution definition file is not valid");
@@ -6810,7 +7335,7 @@ class ResourceOverwritesService {
6810
7335
  this.useGetByKeysOverwriteValidation = useGetByKeysOverwriteValidation;
6811
7336
  this._overwritesPath = DebugOverwritesConstants.ResourceOverwritesFileName;
6812
7337
  this.logger = loggerFactory.create("ResourceOverwritesService");
6813
- this.indentedSerializer = jsonSerializerFactory.getByName(JsonSerializerNames.CamelCaseIndented);
7338
+ this.indentedSerializer = jsonSerializerFactory.getByName(JsonSerializerNames2.CamelCaseIndented);
6814
7339
  }
6815
7340
  }
6816
7341
  var GUID_REGEX = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
@@ -7552,9 +8077,9 @@ class SolutionDefinitionHelper {
7552
8077
  noOtherResourceInProjectReferencesDependency(solution, resourceToDelete, dependency) {
7553
8078
  return !(solution.resources ?? []).some((r) => r !== resourceToDelete && r.projectKey === resourceToDelete.projectKey && (r.dependencies ?? []).some((dep) => invariantEquals(dep.name.trim(), dependency.name.trim()) && invariantEquals(dep.kind.trim(), dependency.kind.trim())));
7554
8079
  }
7555
- constructor(metadataReader, logger2) {
8080
+ constructor(metadataReader, logger) {
7556
8081
  this.metadataReader = metadataReader;
7557
- this.logger = logger2;
8082
+ this.logger = logger;
7558
8083
  }
7559
8084
  }
7560
8085
 
@@ -7889,9 +8414,9 @@ class AllConfigurationsRequestHandler {
7889
8414
  await this.collectResourceConfigurations(context, solution, depResource, visited, resources, cancellationToken);
7890
8415
  }
7891
8416
  }
7892
- constructor(mediator, logger2) {
8417
+ constructor(mediator, logger) {
7893
8418
  this.mediator = mediator;
7894
- this.logger = logger2;
8419
+ this.logger = logger;
7895
8420
  }
7896
8421
  }
7897
8422
 
@@ -8143,17 +8668,17 @@ class CreateVirtualResourceCommandHandler {
8143
8668
  this.metadataReader = metadataReader;
8144
8669
  }
8145
8670
  }
8146
- async function deleteResourceInternalAsync(context, resourceKey, allowProjectResourceDelete, metadataReader, resourceOverwritesService, logger2, cancellationToken) {
8671
+ async function deleteResourceInternalAsync(context, resourceKey, allowProjectResourceDelete, metadataReader, resourceOverwritesService, logger, cancellationToken) {
8147
8672
  const solution = await context.loadAsync(cancellationToken);
8148
- logger2.info("Deleting resource from solution", {
8673
+ logger.info("Deleting resource from solution", {
8149
8674
  resourceKey
8150
8675
  });
8151
8676
  const resource = solution.resources.find((r) => r.key === resourceKey);
8152
8677
  if (!resource)
8153
- return void logger2.warn("Resource not found in solution", {
8678
+ return void logger.warn("Resource not found in solution", {
8154
8679
  resourceKey
8155
8680
  });
8156
- const helper = new SolutionDefinitionHelper(metadataReader, logger2);
8681
+ const helper = new SolutionDefinitionHelper(metadataReader, logger);
8157
8682
  await helper.verifyIfResourceCanBeDeletedAsync(solution, resource, allowProjectResourceDelete, cancellationToken);
8158
8683
  const resourcesToDelete = helper.getResourcesToDelete(solution, resource);
8159
8684
  const allRemovedKeys = new Set(resourcesToDelete.map((r) => r.key));
@@ -8173,7 +8698,7 @@ async function deleteResourceInternalAsync(context, resourceKey, allowProjectRes
8173
8698
  ...allRemovedKeys
8174
8699
  ], cancellationToken);
8175
8700
  } catch (error) {
8176
- logger2.warn("Failed to remove overwrites for deleted resources", error);
8701
+ logger.warn("Failed to remove overwrites for deleted resources", error);
8177
8702
  }
8178
8703
  }
8179
8704
 
@@ -9592,7 +10117,7 @@ class ValidateResourceDefinitionRequestHandler {
9592
10117
  offset += chunk.length;
9593
10118
  }
9594
10119
  const jsonContent = new TextDecoder("utf-8").decode(combined);
9595
- const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames.CaseInsensitive);
10120
+ const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CaseInsensitive);
9596
10121
  const solution = caseInsensitiveSerializer.deserialize(jsonContent);
9597
10122
  if (solution == null) {
9598
10123
  this.logger.warn("Deserialization failed: the solution definition file is not valid");
@@ -9626,7 +10151,7 @@ var resource_catalog_FolderType = /* @__PURE__ */ function(FolderType) {
9626
10151
  FolderType["DebugSolution"] = "DebugSolution";
9627
10152
  return FolderType;
9628
10153
  }({});
9629
- class HttpClient {
10154
+ class HttpClient2 {
9630
10155
  encodeQueryParam(key, value) {
9631
10156
  const encodedKey = encodeURIComponent(key);
9632
10157
  return `${encodedKey}=${encodeURIComponent(typeof value == "number" ? value : `${value}`)}`;
@@ -9690,9 +10215,9 @@ class HttpClient {
9690
10215
  };
9691
10216
  this.createAbortSignal = (cancelToken) => {
9692
10217
  if (this.abortControllers.has(cancelToken)) {
9693
- const abortController2 = this.abortControllers.get(cancelToken);
9694
- if (abortController2)
9695
- return abortController2.signal;
10218
+ const abortController = this.abortControllers.get(cancelToken);
10219
+ if (abortController)
10220
+ return abortController.signal;
9696
10221
  return;
9697
10222
  }
9698
10223
  const abortController = new AbortController;
@@ -9727,11 +10252,11 @@ class HttpClient {
9727
10252
  r.data = null;
9728
10253
  r.error = null;
9729
10254
  const responseToParse = responseFormat ? response.clone() : response;
9730
- const data = responseFormat ? await responseToParse[responseFormat]().then((data2) => {
10255
+ const data = responseFormat ? await responseToParse[responseFormat]().then((data) => {
9731
10256
  if (r.ok)
9732
- r.data = data2;
10257
+ r.data = data;
9733
10258
  else
9734
- r.error = data2;
10259
+ r.error = data;
9735
10260
  return r;
9736
10261
  }).catch((e) => {
9737
10262
  r.error = e;
@@ -9748,7 +10273,7 @@ class HttpClient {
9748
10273
  }
9749
10274
  }
9750
10275
 
9751
- class ResourceCatalogApi extends HttpClient {
10276
+ class ResourceCatalogApi extends HttpClient2 {
9752
10277
  constructor(...args) {
9753
10278
  super(...args), this.entities = {
9754
10279
  entitiesGet: (query, params = {}) => this.request({
@@ -10645,7 +11170,7 @@ class FirstPartyServiceClientFactory {
10645
11170
  throw new Error(`Unable to obtain access token for scope: ${FIRST_PARTY_SERVICE_SCOPE}`);
10646
11171
  if (!accountKey)
10647
11172
  throw new Error("Unable to obtain account key");
10648
- const client = new FirstPartyServiceApi({
11173
+ const client = new FirstPartyServiceApi2({
10649
11174
  baseUrl,
10650
11175
  baseApiParams: {
10651
11176
  secure: true
@@ -10741,11 +11266,11 @@ class FirstPartyServiceClientProxy {
10741
11266
  });
10742
11267
  } catch (error) {
10743
11268
  if (isAbortError(error)) {
10744
- const errorMessage2 = buildServiceExportErrorMessage(serviceName, resourceArray);
10745
- this.logger.error(errorMessage2, error instanceof Error ? error : new Error(errorMessage2));
10746
- const ex2 = new BadRequestException(ErrorCodes.ImportCancelled, error instanceof Error ? error.message : errorMessage2, error);
10747
- ex2.exceptionData = getExceptionData(error, serviceName, resourceArray);
10748
- throw ex2;
11269
+ const errorMessage = buildServiceExportErrorMessage(serviceName, resourceArray);
11270
+ this.logger.error(errorMessage, error instanceof Error ? error : new Error(errorMessage));
11271
+ const ex = new BadRequestException(ErrorCodes.ImportCancelled, error instanceof Error ? error.message : errorMessage, error);
11272
+ ex.exceptionData = getExceptionData(error, serviceName, resourceArray);
11273
+ throw ex;
10749
11274
  }
10750
11275
  if (error instanceof DisconnectedException) {
10751
11276
  this.logger.error("Cannot export resources in disconnected mode.", error);
@@ -10783,7 +11308,7 @@ class FirstPartyServiceClientProxy {
10783
11308
  const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
10784
11309
  if (!accountKey)
10785
11310
  throw new BadRequestException(ErrorCodes.AuthenticationFailed, "Unable to obtain account key");
10786
- const client = new (await import("./first-party-service-sd8yaf73.js")).FirstPartyServiceApi({
11311
+ const client = new (await import("./first-party-service-n3vva2m4.js")).FirstPartyServiceApi({
10787
11312
  baseUrl: fullBaseUrl,
10788
11313
  baseApiParams: {
10789
11314
  secure: true
@@ -10888,7 +11413,7 @@ class FirstPartyServiceClientProxy {
10888
11413
  }
10889
11414
 
10890
11415
  // ../../node_modules/@uipath/resource-builder-sdk/dist/clients/generated/automation-solutions.js
10891
- class HttpClient2 {
11416
+ class HttpClient3 {
10892
11417
  encodeQueryParam(key, value) {
10893
11418
  const encodedKey = encodeURIComponent(key);
10894
11419
  return `${encodedKey}=${encodeURIComponent(typeof value == "number" ? value : `${value}`)}`;
@@ -10952,9 +11477,9 @@ class HttpClient2 {
10952
11477
  };
10953
11478
  this.createAbortSignal = (cancelToken) => {
10954
11479
  if (this.abortControllers.has(cancelToken)) {
10955
- const abortController2 = this.abortControllers.get(cancelToken);
10956
- if (abortController2)
10957
- return abortController2.signal;
11480
+ const abortController = this.abortControllers.get(cancelToken);
11481
+ if (abortController)
11482
+ return abortController.signal;
10958
11483
  return;
10959
11484
  }
10960
11485
  const abortController = new AbortController;
@@ -10989,11 +11514,11 @@ class HttpClient2 {
10989
11514
  r.data = null;
10990
11515
  r.error = null;
10991
11516
  const responseToParse = responseFormat ? response.clone() : response;
10992
- const data = responseFormat ? await responseToParse[responseFormat]().then((data2) => {
11517
+ const data = responseFormat ? await responseToParse[responseFormat]().then((data) => {
10993
11518
  if (r.ok)
10994
- r.data = data2;
11519
+ r.data = data;
10995
11520
  else
10996
- r.error = data2;
11521
+ r.error = data;
10997
11522
  return r;
10998
11523
  }).catch((e) => {
10999
11524
  r.error = e;
@@ -11010,7 +11535,7 @@ class HttpClient2 {
11010
11535
  }
11011
11536
  }
11012
11537
 
11013
- class AutomationSolutionsApi extends HttpClient2 {
11538
+ class AutomationSolutionsApi extends HttpClient3 {
11014
11539
  constructor(...args) {
11015
11540
  super(...args), this.api = {
11016
11541
  configurationsPost: (data, params = {}) => this.request({
@@ -14618,9 +15143,9 @@ class ProjectResourcesDescriptorFactory {
14618
15143
  // ../../node_modules/@uipath/resource-builder-sdk/dist/config/projects/project-configuration-service.js
14619
15144
  class ProjectConfigurationService {
14620
15145
  async getDefaultConfigurationAsync(cancellationToken) {
14621
- const projectsConfiguration2 = this.projectConfigurationReader.getAll();
15146
+ const projectsConfiguration = this.projectConfigurationReader.getAll();
14622
15147
  const language = this.getCurrentLanguage();
14623
- const entries = Object.entries(projectsConfiguration2);
15148
+ const entries = Object.entries(projectsConfiguration);
14624
15149
  const results = {};
14625
15150
  for (const [projectType, config] of entries) {
14626
15151
  const supportedResources = await this.projectResourcesDescriptorFactory.createAsync(projectType, language, cancellationToken);
@@ -14864,18 +15389,18 @@ function registerServices(diContainer, embeddedFileReader) {
14864
15389
  return new ResourceBuilder(metadataReader, translationsReader, mediator);
14865
15390
  }
14866
15391
  });
14867
- diContainer.registerInstance(ServiceTokens.JsonSerializerFactory, new JsonSerializerFactory);
15392
+ diContainer.registerInstance(ServiceTokens.JsonSerializerFactory, new JsonSerializerFactory2);
14868
15393
  diContainer.register(ServiceTokens.SerializerProxy, {
14869
15394
  useFactory: (c) => {
14870
15395
  const jsonSerializerFactory = c.resolve(ServiceTokens.JsonSerializerFactory);
14871
15396
  const loggerFactory = c.resolve(ServiceTokens.LoggerFactory);
14872
- return new JsonSerializerProxy(jsonSerializerFactory, loggerFactory);
15397
+ return new JsonSerializerProxy2(jsonSerializerFactory, loggerFactory);
14873
15398
  }
14874
15399
  });
14875
15400
  diContainer.register(ServiceTokens.StreamSerializer, {
14876
15401
  useFactory: (c) => {
14877
15402
  const jsonSerializerFactory = c.resolve(ServiceTokens.JsonSerializerFactory);
14878
- return new StreamSerializer(jsonSerializerFactory);
15403
+ return new StreamSerializer2(jsonSerializerFactory);
14879
15404
  }
14880
15405
  });
14881
15406
  }
@@ -14931,8 +15456,8 @@ function registerHandlers(diContainer) {
14931
15456
  useFactory: (c) => {
14932
15457
  const mediator = c.resolve(ServiceTokens.Mediator);
14933
15458
  const loggerFactory = c.resolve(ServiceTokens.LoggerFactory);
14934
- const logger2 = loggerFactory.create("AllConfigurationsRequestHandler");
14935
- return new AllConfigurationsRequestHandler(mediator, logger2);
15459
+ const logger = loggerFactory.create("AllConfigurationsRequestHandler");
15460
+ return new AllConfigurationsRequestHandler(mediator, logger);
14936
15461
  }
14937
15462
  });
14938
15463
  diContainer.register(createRequestHandlerToken(RetrieveConfigurationRequest.name), {
@@ -15263,21 +15788,21 @@ class ResourceBuilderServices {
15263
15788
  const factory = this._container.resolve(Tokens.ISolutionBuilderFactory);
15264
15789
  return factory.createAsync(solutionPath, isReadOnly, cancellationToken);
15265
15790
  }
15266
- constructor(container3) {
15267
- this._container = container3;
15791
+ constructor(container) {
15792
+ this._container = container;
15268
15793
  }
15269
15794
  }
15270
15795
 
15271
15796
  // ../../node_modules/@uipath/resource-builder-sdk/dist/logging/logger.js
15272
- var logger_LogLevel = /* @__PURE__ */ function(LogLevel2) {
15273
- LogLevel2[LogLevel2["Trace"] = 0] = "Trace";
15274
- LogLevel2[LogLevel2["Debug"] = 1] = "Debug";
15275
- LogLevel2[LogLevel2["Information"] = 2] = "Information";
15276
- LogLevel2[LogLevel2["Warning"] = 3] = "Warning";
15277
- LogLevel2[LogLevel2["Error"] = 4] = "Error";
15278
- LogLevel2[LogLevel2["Critical"] = 5] = "Critical";
15279
- LogLevel2[LogLevel2["None"] = 6] = "None";
15280
- return LogLevel2;
15797
+ var logger_LogLevel = /* @__PURE__ */ function(LogLevel) {
15798
+ LogLevel[LogLevel["Trace"] = 0] = "Trace";
15799
+ LogLevel[LogLevel["Debug"] = 1] = "Debug";
15800
+ LogLevel[LogLevel["Information"] = 2] = "Information";
15801
+ LogLevel[LogLevel["Warning"] = 3] = "Warning";
15802
+ LogLevel[LogLevel["Error"] = 4] = "Error";
15803
+ LogLevel[LogLevel["Critical"] = 5] = "Critical";
15804
+ LogLevel[LogLevel["None"] = 6] = "None";
15805
+ return LogLevel;
15281
15806
  }({});
15282
15807
  function parseLogLevel(level) {
15283
15808
  if (level === undefined)
@@ -15517,7 +16042,7 @@ class ResourceBuilderConfiguration {
15517
16042
  };
15518
16043
  } else if (!solutionDefinitionProvider && fileStorageProviderFactory)
15519
16044
  solutionDefinitionFactory = {
15520
- instance: new MultiFileSolutionDefinitionFactory(fileStorageProviderFactory.instance, new JsonSerializerFactory, loggerFactoryInstance, this._solutionContextOptions),
16045
+ instance: new MultiFileSolutionDefinitionFactory(fileStorageProviderFactory.instance, new JsonSerializerFactory2, loggerFactoryInstance, this._solutionContextOptions),
15521
16046
  lifetime: service_tokens_ServiceLifetime.Scoped
15522
16047
  };
15523
16048
  const artifactResourceSpecEnhancerInstance = this._artifactResourceSpecEnhancerProvider ? await this.resolveGenericProvider(this._artifactResourceSpecEnhancerProvider) : new DefaultArtifactResourceSpecEnhancer;
@@ -15526,8 +16051,8 @@ class ResourceBuilderConfiguration {
15526
16051
  lifetime: this._artifactResourceSpecEnhancerLifetime
15527
16052
  };
15528
16053
  const embeddedFileReader = await createDefaultEmbeddedFileReaderAsync();
15529
- const container3 = createContainer(accessProvider, cacheProvider, secretsProvider, fileStorageProviderFactory, ipRangeBypassSecretProvider, solutionDefinitionProvider, solutionDefinitionFactory, artifactResourceSpecEnhancer, this._httpReaderOptions, loggerFactory, embeddedFileReader, this._solutionContextOptions, featureFlagProvider);
15530
- return new ResourceBuilderServices(container3);
16054
+ const container = createContainer(accessProvider, cacheProvider, secretsProvider, fileStorageProviderFactory, ipRangeBypassSecretProvider, solutionDefinitionProvider, solutionDefinitionFactory, artifactResourceSpecEnhancer, this._httpReaderOptions, loggerFactory, embeddedFileReader, this._solutionContextOptions, featureFlagProvider);
16055
+ return new ResourceBuilderServices(container);
15531
16056
  }
15532
16057
  async buildServices() {
15533
16058
  return this.build();
@@ -15549,7 +16074,7 @@ function createResourceBuilderConfiguration() {
15549
16074
  return new ResourceBuilderConfiguration;
15550
16075
  }
15551
16076
  // ../solution-sdk/src/resources/services/solution-manifest.ts
15552
- async function assertSolutionManifest(dir) {
16077
+ async function assertSolutionManifest2(dir) {
15553
16078
  const fs = getFileSystem();
15554
16079
  const entries = await fs.readdir(dir);
15555
16080
  const hasManifest = entries.some((f) => f.endsWith(".uipx"));
@@ -15590,7 +16115,7 @@ async function resolveProjectDirFromManifest(fs, solutionDir, projectKey) {
15590
16115
  const relativePath = entry?.ProjectRelativePath;
15591
16116
  if (typeof relativePath !== "string" || !relativePath)
15592
16117
  return;
15593
- return fs.path.join(solutionDir, fs.path.dirname(toPortableRelativePath(relativePath)));
16118
+ return fs.path.join(solutionDir, fs.path.dirname(toPortableRelativePath2(relativePath)));
15594
16119
  }
15595
16120
 
15596
16121
  // ../solution-sdk/src/resources/services/entry-point-spec-enhancer.ts
@@ -15611,7 +16136,7 @@ class EntryPointSpecEnhancer {
15611
16136
  }
15612
16137
  }
15613
16138
  async applyEntryPointAsync(context, projectKey, spec) {
15614
- const computed = await computeEntryPointSpec(this.fs, context.path, projectKey);
16139
+ const computed = await computeEntryPointSpec2(this.fs, context.path, projectKey);
15615
16140
  if (!computed)
15616
16141
  return;
15617
16142
  for (const [key, value] of Object.entries(computed)) {
@@ -15619,7 +16144,7 @@ class EntryPointSpecEnhancer {
15619
16144
  }
15620
16145
  }
15621
16146
  }
15622
- async function computeEntryPointSpec(fs, solutionDir, projectKey) {
16147
+ async function computeEntryPointSpec2(fs, solutionDir, projectKey) {
15623
16148
  const projectDir = await resolveProjectDirFromManifest(fs, solutionDir, projectKey);
15624
16149
  if (!projectDir)
15625
16150
  return;
@@ -15686,7 +16211,7 @@ class ArtefactPairBindingProvider extends MultiFileSolutionDefinitionProvider {
15686
16211
  const [readError, key] = await catchError(this.readResourceKey(storage, file, cancellationToken));
15687
16212
  if (readError)
15688
16213
  continue;
15689
- pathsByKey.get(key)?.push(toPortableRelativePath(file));
16214
+ pathsByKey.get(key)?.push(toPortableRelativePath2(file));
15690
16215
  }
15691
16216
  const lines = [...pathsByKey].map(([key, paths]) => `Resource key ${describeKey(key)} is used by: ${paths.join(", ")}`);
15692
16217
  const fixes = [
@@ -15709,7 +16234,15 @@ class ArtefactPairBindingProvider extends MultiFileSolutionDefinitionProvider {
15709
16234
  }
15710
16235
  }
15711
16236
 
15712
- class ArtefactPairBindingSolutionDefinitionFactory extends MultiFileSolutionDefinitionFactory {
16237
+ class ArtefactPairBindingSolutionDefinitionFactory {
16238
+ fileStorageProviderFactory;
16239
+ jsonSerializerFactory;
16240
+ loggerFactory;
16241
+ constructor(fileStorageProviderFactory, jsonSerializerFactory, loggerFactory) {
16242
+ this.fileStorageProviderFactory = fileStorageProviderFactory;
16243
+ this.jsonSerializerFactory = jsonSerializerFactory;
16244
+ this.loggerFactory = loggerFactory;
16245
+ }
15713
16246
  async getProviderAsync() {
15714
16247
  return new ArtefactPairBindingProvider(this.fileStorageProviderFactory, this.jsonSerializerFactory, this.loggerFactory);
15715
16248
  }
@@ -15907,7 +16440,7 @@ class FileSystemFileStorageProviderFactory {
15907
16440
  const profilePath = fs.path.join(context.path, "userProfile", userId);
15908
16441
  const exists = await fs.exists(profilePath);
15909
16442
  if (!exists) {
15910
- await fs.mkdir(profilePath, { recursive: true });
16443
+ await fs.mkdir(profilePath);
15911
16444
  }
15912
16445
  return new FileSystemFileStorageProvider(profilePath);
15913
16446
  }
@@ -16036,15 +16569,15 @@ class SolutionAccessProvider {
16036
16569
  }
16037
16570
 
16038
16571
  // ../solution-sdk/src/resources/providers/resource-builder-init.ts
16039
- async function createResourceBuilderServices() {
16572
+ async function createResourceBuilderServices2() {
16040
16573
  const loggerFactory = new CliResourceBuilderLoggerFactory;
16041
16574
  const fileStorageProviderFactory = new FileSystemFileStorageProviderFactory;
16042
- const jsonSerializerFactory = new JsonSerializerFactory;
16575
+ const jsonSerializerFactory = new JsonSerializerFactory2;
16043
16576
  return await createResourceBuilderConfiguration().addAccessProvider(new SolutionAccessProvider).addFileStorageProviderFactory(fileStorageProviderFactory).addLoggerFactory(loggerFactory).addSolutionDefinitionFactory(new ArtefactPairBindingSolutionDefinitionFactory(fileStorageProviderFactory, jsonSerializerFactory, loggerFactory)).addArtifactResourceSpecEnhancer(new EntryPointSpecEnhancer).build();
16044
16577
  }
16045
16578
 
16046
16579
  // ../solution-sdk/src/resources/commands/project-utils.ts
16047
- async function findProjectFile(projectDir) {
16580
+ async function findProjectFile2(projectDir) {
16048
16581
  const fs = getFileSystem();
16049
16582
  const uiprojPath = fs.path.join(projectDir, "project.uiproj");
16050
16583
  const jsonProjPath = fs.path.join(projectDir, "project.json");
@@ -16094,17 +16627,17 @@ class ProjectManifestError extends Error {
16094
16627
  this.reason = reason;
16095
16628
  }
16096
16629
  }
16097
- function isProjectManifestError(error) {
16630
+ function isProjectManifestError2(error) {
16098
16631
  return !!error && typeof error === "object" && error.__projectManifestError === true;
16099
16632
  }
16100
- function isMissingProjectTypeError(error) {
16101
- return isProjectManifestError(error) && error.reason === "no-project-type";
16633
+ function isMissingProjectTypeError2(error) {
16634
+ return isProjectManifestError2(error) && error.reason === "no-project-type";
16102
16635
  }
16103
16636
  function lastPathSegment(filePath) {
16104
16637
  const parts = filePath.split(/[/\\]/);
16105
16638
  return parts[parts.length - 1] ?? filePath;
16106
16639
  }
16107
- async function readProjectFile(filePath, useProjectJson) {
16640
+ async function readProjectFile2(filePath, useProjectJson) {
16108
16641
  const fs = getFileSystem();
16109
16642
  const [readError, rawContent] = await catchError(fs.readFile(filePath, "utf-8"));
16110
16643
  if (readError || !rawContent) {
@@ -16141,7 +16674,7 @@ async function readProjectFile(filePath, useProjectJson) {
16141
16674
  }
16142
16675
  return [null, { content, projectType: normalizeProjectType(projectType) }];
16143
16676
  }
16144
- async function readSolutionFile(filePath) {
16677
+ async function readSolutionFile2(filePath) {
16145
16678
  const fs = getFileSystem();
16146
16679
  const [readError, rawContent] = await catchError(fs.readFile(filePath, "utf-8"));
16147
16680
  if (readError || !rawContent) {
@@ -16156,7 +16689,7 @@ async function readSolutionFile(filePath) {
16156
16689
  }
16157
16690
  return [null, { solution, rawContent }];
16158
16691
  }
16159
- async function resolveSolutionFilePath(solutionFileOption, searchStartDir) {
16692
+ async function resolveSolutionFilePath2(solutionFileOption, searchStartDir) {
16160
16693
  const fs = getFileSystem();
16161
16694
  if (solutionFileOption) {
16162
16695
  const resolved = fs.path.resolve(fs.env.cwd(), solutionFileOption);
@@ -16172,19 +16705,19 @@ async function resolveSolutionFilePath(solutionFileOption, searchStartDir) {
16172
16705
  }
16173
16706
  return [null, found];
16174
16707
  }
16175
- async function writeSolutionFile(filePath, solution) {
16708
+ async function writeSolutionFile2(filePath, solution) {
16176
16709
  const fs = getFileSystem();
16177
16710
  const [writeError] = await catchError(fs.writeFile(filePath, `${JSON.stringify(solution, null, 2)}
16178
16711
  `));
16179
- return writeError;
16712
+ return writeError ?? null;
16180
16713
  }
16181
- async function restoreSolutionFile(filePath, rawContent) {
16714
+ async function restoreSolutionFile2(filePath, rawContent) {
16182
16715
  const fs = getFileSystem();
16183
16716
  const [writeError] = await catchError(fs.writeFile(filePath, rawContent));
16184
- return writeError;
16717
+ return writeError ?? null;
16185
16718
  }
16186
- async function createProjectInSolutionBuilder(solutionDir, projectId, projectName, projectType, subType) {
16187
- const [servicesError, services] = await catchError(createResourceBuilderServices());
16719
+ async function createProjectInSolutionBuilder2(solutionDir, projectId, projectName, projectType, subType) {
16720
+ const [servicesError, services] = await catchError(createResourceBuilderServices2());
16188
16721
  if (servicesError) {
16189
16722
  return servicesError;
16190
16723
  }
@@ -16199,7 +16732,7 @@ async function createProjectInSolutionBuilder(solutionDir, projectId, projectNam
16199
16732
  subType
16200
16733
  }));
16201
16734
  await catchError(solutionBuilder.disposeAsync());
16202
- return createError;
16735
+ return createError ?? null;
16203
16736
  }
16204
16737
  // ../solution-sdk/src/resources/services/catalog-lookup-failure.ts
16205
16738
  var NO_CLIENT_MESSAGE = "Unable to create Resource Catalog client";
@@ -16304,21 +16837,21 @@ class CatalogLookupError extends Error {
16304
16837
  }
16305
16838
  }
16306
16839
  // ../solution-sdk/src/resources/services/local-resource-matcher.ts
16307
- function normalizeFolderPath(path) {
16840
+ function normalizeFolderPath2(path) {
16308
16841
  if (!path)
16309
16842
  return;
16310
16843
  if (path === "." || path === "solution_folder")
16311
16844
  return;
16312
16845
  return path.toLowerCase();
16313
16846
  }
16314
- function findMatchingLocalResource(resources, kind, name, folderPath) {
16315
- const normalizedFolder = normalizeFolderPath(folderPath);
16847
+ function findMatchingLocalResource2(resources, kind, name, folderPath) {
16848
+ const normalizedFolder = normalizeFolderPath2(folderPath);
16316
16849
  const lowerKind = kind.toLowerCase();
16317
16850
  const matchesName = nameSuffixRegex(name, false);
16318
16851
  return resources.find((r) => {
16319
16852
  if ((r.kind ?? "").toLowerCase() !== lowerKind)
16320
16853
  return false;
16321
- if (normalizeFolderPath(r.folders?.[0]?.fullyQualifiedName) !== normalizedFolder)
16854
+ if (normalizeFolderPath2(r.folders?.[0]?.fullyQualifiedName) !== normalizedFolder)
16322
16855
  return false;
16323
16856
  return matchesName.test(r.name ?? "");
16324
16857
  });
@@ -16363,8 +16896,8 @@ function hasPackageDependency(resource) {
16363
16896
  return (resource.dependencies ?? []).some((dependency) => (dependency.kind ?? "").toLowerCase() === "package");
16364
16897
  }
16365
16898
  // ../solution-sdk/src/resources/services/project-artifacts-service.ts
16366
- async function addProjectArtifactsToSolutionAsync(options) {
16367
- const error = await createProjectInSolutionBuilder(options.solutionDir, options.projectId, options.projectName, normalizeProjectType(options.projectType), options.projectSubType);
16899
+ async function addProjectArtifactsToSolutionAsync2(options) {
16900
+ const error = await createProjectInSolutionBuilder2(options.solutionDir, options.projectId, options.projectName, normalizeProjectType(options.projectType), options.projectSubType);
16368
16901
  return error ? artifactFailure(options, error) : { Created: true };
16369
16902
  }
16370
16903
  function artifactFailure(options, error) {
@@ -16373,11 +16906,11 @@ function artifactFailure(options, error) {
16373
16906
  }
16374
16907
  // ../solution-sdk/src/resources/services/project-template-types.ts
16375
16908
  var reader;
16376
- function hasBareTemplateRow(projectType) {
16909
+ function hasBareTemplateRow2(projectType) {
16377
16910
  reader ??= new EmbeddedProjectConfigurationReader;
16378
16911
  return reader.getTemplateResourcesByType(projectType, undefined, false).length > 0;
16379
16912
  }
16380
- function hasAnyTemplateRow(projectType) {
16913
+ function hasAnyTemplateRow2(projectType) {
16381
16914
  reader ??= new EmbeddedProjectConfigurationReader;
16382
16915
  const wanted = projectType.toLowerCase();
16383
16916
  return Object.keys(reader.getAll()).some((row) => {
@@ -16386,7 +16919,7 @@ function hasAnyTemplateRow(projectType) {
16386
16919
  });
16387
16920
  }
16388
16921
  // ../solution-sdk/src/resources/services/remote-resources.ts
16389
- function getRemoteResourceClients(services) {
16922
+ function getRemoteResourceClients2(services) {
16390
16923
  return {
16391
16924
  catalog: services.container.resolve(Tokens.IResourceCatalogClientProxy),
16392
16925
  importer: services.container.resolve(Tokens.IImportResourceHelper)
@@ -16408,20 +16941,6 @@ async function findCatalogEntityAsync(catalog, query, match) {
16408
16941
  } while (pageCursor);
16409
16942
  return;
16410
16943
  }
16411
- async function findCatalogEntitiesAsync(catalog, query, match) {
16412
- const found = [];
16413
- let pageCursor;
16414
- do {
16415
- const page = await catalog.searchFolderEntities({
16416
- ...query,
16417
- pageSize: 100,
16418
- pageCursor
16419
- });
16420
- found.push(...(page.items ?? []).filter(match));
16421
- pageCursor = page.nextPage ?? undefined;
16422
- } while (pageCursor);
16423
- return found;
16424
- }
16425
16944
  function toResourceReference(entity) {
16426
16945
  return toCatalogReference({
16427
16946
  kind: entity.entityType ?? "",
@@ -16439,11 +16958,11 @@ function toCatalogReference(reference) {
16439
16958
  folder: folderPath ? { fullyQualifiedName: folderPath, folderKey } : undefined
16440
16959
  };
16441
16960
  }
16442
- async function exportResourceDefinitionAsync(importer, reference) {
16961
+ async function exportResourceDefinitionAsync2(importer, reference) {
16443
16962
  const payload = await importer.exportResourceAsync(reference);
16444
16963
  return payload.resourceDefinitions.find((d) => d.key === reference.key);
16445
16964
  }
16446
- function readSpecProperty(spec, name) {
16965
+ function readSpecProperty2(spec, name) {
16447
16966
  if (!spec) {
16448
16967
  return;
16449
16968
  }
@@ -16454,26 +16973,6 @@ function readSpecProperty(spec, name) {
16454
16973
  const key = Object.keys(spec).find((k) => k.toLowerCase() === lower);
16455
16974
  return key === undefined ? undefined : spec[key];
16456
16975
  }
16457
- function readSpecEntryPoints(spec) {
16458
- const entryPoints = parseJsonString(readSpecProperty(spec, "entryPoints"));
16459
- if (!Array.isArray(entryPoints) || !entryPoints.every((entry) => entry !== null && typeof entry === "object")) {
16460
- return;
16461
- }
16462
- return entryPoints.map((entry) => ({
16463
- UniqueId: String(readSpecProperty(entry, "uniqueId") ?? ""),
16464
- Path: String(readSpecProperty(entry, "path") ?? ""),
16465
- DisplayName: String(readSpecProperty(entry, "displayName") ?? ""),
16466
- InputArguments: readSpecProperty(entry, "inputArguments"),
16467
- OutputArguments: readSpecProperty(entry, "outputArguments")
16468
- }));
16469
- }
16470
- function parseJsonString(raw) {
16471
- if (typeof raw !== "string") {
16472
- return raw;
16473
- }
16474
- const [error, parsed] = catchError(() => JSON.parse(raw));
16475
- return error ? undefined : parsed;
16476
- }
16477
16976
  // ../solution-sdk/src/resources/services/resource-casing.ts
16478
16977
  var RESOURCE_FILES_FOLDER_NAME2 = "resources";
16479
16978
  function lowerFirstChar(value) {
@@ -16492,7 +16991,7 @@ function normalizeResourceCasing(solution) {
16492
16991
  }
16493
16992
  return normalized;
16494
16993
  }
16495
- async function saveCasingNormalized(builder) {
16994
+ async function saveCasingNormalized2(builder) {
16496
16995
  const [loadError, solution] = await catchError(builder.context.loadAsync());
16497
16996
  if (loadError) {
16498
16997
  logger.warn(`Skipping resource casing normalization; failed to load solution: ${loadError.message}`);
@@ -16502,7 +17001,7 @@ async function saveCasingNormalized(builder) {
16502
17001
  const [disposeError] = await catchError(builder.disposeAsync());
16503
17002
  return disposeError ?? null;
16504
17003
  }
16505
- async function normalizeResourceFileCasing(solutionDir) {
17004
+ async function normalizeResourceFileCasing2(solutionDir) {
16506
17005
  const fs = getFileSystem();
16507
17006
  const root = fs.path.join(solutionDir, RESOURCE_FILES_FOLDER_NAME2);
16508
17007
  if (!await fs.exists(root))
@@ -16665,7 +17164,7 @@ async function refreshArtefactSpecsAsync(builder, configurations) {
16665
17164
  return resources;
16666
17165
  }
16667
17166
  async function exportResourceConfigurationsAsync(services, resourceKey, hint = {}) {
16668
- const { catalog, importer } = getRemoteResourceClients(services);
17167
+ const { catalog, importer } = getRemoteResourceClients2(services);
16669
17168
  const byKey = (item) => item.entityKey === resourceKey;
16670
17169
  const entity = (hint.name ? await findCatalogEntityAsync(catalog, { name: hint.name }, byKey) : undefined) ?? await findCatalogEntityAsync(catalog, {}, byKey);
16671
17170
  if (!entity) {
@@ -16702,7 +17201,7 @@ async function readLocalAsync(builder, resourceKey, read) {
16702
17201
  return;
16703
17202
  throw error;
16704
17203
  }
16705
- async function readResourceConfigurationsAsync(services, builder, resourceKey, hint = {}) {
17204
+ async function readResourceConfigurationsAsync2(services, builder, resourceKey, hint = {}) {
16706
17205
  const local = await readLocalAsync(builder, resourceKey, (b) => b.getAllConfigurationsAsync(resourceKey));
16707
17206
  if (!local) {
16708
17207
  return exportResourceConfigurationsAsync(services, resourceKey, hint);
@@ -16710,43 +17209,20 @@ async function readResourceConfigurationsAsync(services, builder, resourceKey, h
16710
17209
  await refreshArtefactSpecsAsync(local.builder, local.value?.resources ?? []);
16711
17210
  return local.value;
16712
17211
  }
16713
- async function readResourceConfigurationAsync(services, builder, resourceKey) {
17212
+ async function readResourceConfigurationAsync2(services, builder, resourceKey) {
16714
17213
  const local = await readLocalAsync(builder, resourceKey, (b) => b.getConfigurationAsync(resourceKey));
16715
17214
  if (local) {
16716
17215
  const configuration = local.value;
16717
- const resources2 = await refreshArtefactSpecsAsync(local.builder, [
17216
+ const resources = await refreshArtefactSpecsAsync(local.builder, [
16718
17217
  configuration
16719
17218
  ]);
16720
- return { configuration, resource: resources2.get(configuration.key) };
17219
+ return { configuration, resource: resources.get(configuration.key) };
16721
17220
  }
16722
17221
  const { resources } = await exportResourceConfigurationsAsync(services, resourceKey);
16723
17222
  const primary = resources.find((r) => r.key === resourceKey) ?? resources[0];
16724
17223
  const { key, spec, locks, apiVersion, isOverridable } = primary;
16725
17224
  return { configuration: { key, spec, locks, apiVersion, isOverridable } };
16726
17225
  }
16727
- // ../solution-sdk/src/resources/services/resource-lookup.ts
16728
- async function findResourcesByNameAsync(services, builder, { kind, name, subTypes, folderKey }) {
16729
- const same = (a, b) => (a ?? "").toLowerCase() === b.toLowerCase();
16730
- const ofSubType = (type) => subTypes === undefined || subTypes.some((t) => same(type, t));
16731
- if (builder) {
16732
- const solution = await builder.context.loadAsync();
16733
- const local = solution.resources.filter((r) => same(r.kind, kind) && same(r.name, name) && ofSubType(r.type)).map((r) => ({
16734
- key: r.key,
16735
- local: true,
16736
- folderPath: r.folders?.[0]?.fullyQualifiedName
16737
- }));
16738
- if (local.length > 0)
16739
- return local;
16740
- }
16741
- const { catalog } = getRemoteResourceClients(services);
16742
- const rows = await findCatalogEntitiesAsync(catalog, { name, entityTypes: [kind] }, (row) => same(row.entityType, kind) && same(row.entityName, name) && ofSubType(row.entitySubType) && (folderKey === undefined || same(row.folderKey, folderKey)));
16743
- return rows.map((row) => ({
16744
- key: row.entityKey ?? "",
16745
- local: false,
16746
- folderPath: row.fullyQualifiedName ?? undefined,
16747
- folderKey: row.folderKey ?? undefined
16748
- }));
16749
- }
16750
17226
  // ../solution-sdk/src/resources/services/resource-name.ts
16751
17227
  var MAX_RESOURCE_NAME_LENGTH = 256;
16752
17228
  var UNSAFE_NAME_CHARS = /[\\/:*?"<>|]/;
@@ -16757,7 +17233,7 @@ function hasControlChar(value) {
16757
17233
  }
16758
17234
  return false;
16759
17235
  }
16760
- function validateResourceName(name, options = {}) {
17236
+ function validateResourceName2(name, options = {}) {
16761
17237
  const optionName = options.optionName ?? "--name";
16762
17238
  if (name.trim() === "") {
16763
17239
  return {
@@ -16782,18 +17258,13 @@ function validateResourceName(name, options = {}) {
16782
17258
  }
16783
17259
  return { ok: true };
16784
17260
  }
16785
- function assertValidResourceName(name, options = {}) {
16786
- const result = validateResourceName(name, options);
16787
- if (!result.ok) {
16788
- throw new Error(`${result.message}. ${result.instructions}`);
16789
- }
16790
- }
16791
17261
  // ../solution-sdk/src/resources/services/sync-resources-from-bindings.ts
16792
17262
  var TYPE_IS_IDENTITY_REPLACE_OPTIONS = new Set([
16793
17263
  "SameType",
16794
17264
  "SameNameAndType"
16795
17265
  ]);
16796
17266
  var BINDINGS_JSON_FALLBACK_TYPES = new Set(["agent", "function"]);
17267
+ var IMPLICIT_CONNECTION = "ImplicitConnection";
16797
17268
 
16798
17269
  class OverwriteRefreshError extends Error {
16799
17270
  }
@@ -16801,9 +17272,13 @@ function placeholderForType(type) {
16801
17272
  switch ((type ?? "string").toLowerCase()) {
16802
17273
  case "boolean":
16803
17274
  return false;
16804
- case "integer":
16805
- case "number":
17275
+ case "int":
17276
+ case "long":
17277
+ case "float":
17278
+ case "double":
16806
17279
  return 0;
17280
+ case "array":
17281
+ return [];
16807
17282
  default:
16808
17283
  return "";
16809
17284
  }
@@ -16867,13 +17342,13 @@ async function buildKindResolver(metadataReader) {
16867
17342
  return resolved;
16868
17343
  };
16869
17344
  }
16870
- function formatResourceSubtypes(subtypes) {
17345
+ function formatResourceSubtypes2(subtypes) {
16871
17346
  return subtypes.map((subtype) => {
16872
17347
  const alias = mapSolutionToResourceSubtype(subtype);
16873
17348
  return alias && alias.toLowerCase() !== subtype.toLowerCase() ? `${subtype} (${alias})` : subtype;
16874
17349
  }).join(", ");
16875
17350
  }
16876
- function sameResourceSubtype(a, b) {
17351
+ function sameResourceSubtype2(a, b) {
16877
17352
  if (a === undefined || b === undefined)
16878
17353
  return false;
16879
17354
  if (a.toLowerCase() === b.toLowerCase())
@@ -16881,7 +17356,7 @@ function sameResourceSubtype(a, b) {
16881
17356
  return mapSolutionToResourceSubtype(a)?.toLowerCase() === mapSolutionToResourceSubtype(b)?.toLowerCase();
16882
17357
  }
16883
17358
  function findSubtypeEntry(list, type) {
16884
- return list.find((r) => !!r.type && sameResourceSubtype(r.type, type));
17359
+ return list.find((r) => !!r.type && sameResourceSubtype2(r.type, type));
16885
17360
  }
16886
17361
  function resolveBindingResourceIdentity(binding) {
16887
17362
  switch (binding.resourceType) {
@@ -16897,7 +17372,7 @@ function resolveBindingResourceIdentity(binding) {
16897
17372
  };
16898
17373
  }
16899
17374
  }
16900
- async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTypes, projectBindings) {
17375
+ async function syncResourcesFromBindings2(solutionDir, projectPaths, projectSubTypes, projectBindings, selfProvisioned) {
16901
17376
  const result = {
16902
17377
  created: 0,
16903
17378
  imported: 0,
@@ -16907,13 +17382,13 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
16907
17382
  warnings: [],
16908
17383
  unresolved: []
16909
17384
  };
16910
- const uipxProjects = await readUipxProjects(solutionDir);
17385
+ const uipxProjects = await readUipxProjects2(solutionDir);
16911
17386
  const paths = projectPaths ?? uipxProjects.map((p) => p.path);
16912
17387
  if (paths.length === 0) {
16913
17388
  return result;
16914
17389
  }
16915
17390
  const bindingsJsonFallbackDirs = new Set(uipxProjects.filter((p) => BINDINGS_JSON_FALLBACK_TYPES.has(p.type.toLowerCase())).map((p) => p.path));
16916
- const [servicesError, services] = await catchError(createResourceBuilderServices());
17391
+ const [servicesError, services] = await catchError(createResourceBuilderServices2());
16917
17392
  if (servicesError) {
16918
17393
  logger.warn(`Failed to create resource builder services: ${servicesError.message}`);
16919
17394
  return result;
@@ -16927,7 +17402,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
16927
17402
  if (allBindings.length === 0 && projectPaths !== undefined) {
16928
17403
  return result;
16929
17404
  }
16930
- await normalizeResourceFileCasing(solutionDir);
17405
+ await normalizeResourceFileCasing2(solutionDir);
16931
17406
  const [builderError, builder] = await catchError(services.getSolutionBuilder(solutionDir));
16932
17407
  if (builderError) {
16933
17408
  logger.warn(`Failed to get solution builder: ${builderError.message}`);
@@ -16938,9 +17413,9 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
16938
17413
  const memberProjectKeys = new Set(uipxProjects.map((project) => project.id.toLowerCase()));
16939
17414
  await pruneMemberClones(builder, memberProjectKeys, result);
16940
17415
  if (allBindings.length === 0) {
16941
- const saveError2 = await saveAndDisposeBuilder(builder, solutionDir);
16942
- if (saveError2) {
16943
- throw new Error(`Failed to save solution changes: ${saveError2.message}`);
17416
+ const saveError = await saveAndDisposeBuilder(builder, solutionDir);
17417
+ if (saveError) {
17418
+ throw new Error(`Failed to save solution changes: ${saveError.message}`);
16944
17419
  }
16945
17420
  return result;
16946
17421
  }
@@ -16953,6 +17428,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
16953
17428
  const resolvedKeys = new Set;
16954
17429
  const overwrittenKeys = new Set;
16955
17430
  const bindingKey = (kind, name) => `${kind}:${name ?? ""}`.toLowerCase();
17431
+ const selfProvisionedKeys = new Set((selfProvisioned ?? []).map((r) => bindingKey(r.kind, r.name)));
16956
17432
  const recordUnchecked = async (error, kind, name, directCloudKey) => {
16957
17433
  if (error) {
16958
17434
  const failure = classifyCatalogFailure(error);
@@ -16984,13 +17460,13 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
16984
17460
  const name = getResourceName(binding);
16985
17461
  const folderPath = getFolderPathProperty(binding).defaultValue;
16986
17462
  const directCloudKey = isConnection ? getConnectionKey(binding) : undefined;
16987
- if (isConnection && !directCloudKey) {
17463
+ if (isConnection && (!directCloudKey || directCloudKey === IMPLICIT_CONNECTION)) {
16988
17464
  continue;
16989
17465
  }
16990
17466
  if (!isConnection && !name) {
16991
17467
  continue;
16992
17468
  }
16993
- if (!isConnection && !normalizeFolderPath(folderPath) && findMatchingLocalResource(solution.resources ?? [], kind, name, folderPath)) {
17469
+ if (!isConnection && !normalizeFolderPath2(folderPath) && findMatchingLocalResource2(solution.resources ?? [], kind, name, folderPath)) {
16994
17470
  result.skipped++;
16995
17471
  logger.info(`Skipping ${kind} "${name}" — an in-solution resource already covers this solution-relative binding`);
16996
17472
  continue;
@@ -17000,8 +17476,20 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
17000
17476
  logger.info(`Skipping ${kind} "${name}" — the solution provisions this project itself; its member declaration covers the binding`);
17001
17477
  continue;
17002
17478
  }
17479
+ if (!isConnection && selfProvisionedKeys.has(bindingKey(kind, name))) {
17480
+ virtualCandidates.push({
17481
+ binding,
17482
+ kind,
17483
+ type: identity.type ?? metadata?.type,
17484
+ metadata,
17485
+ name,
17486
+ folderPath,
17487
+ catalogMiss: false
17488
+ });
17489
+ continue;
17490
+ }
17003
17491
  const lookupsStopped = !!result.catalogLookupFailure && stopsCatalogLookups(result.catalogLookupFailure);
17004
- const [lookupError, rcsMatch] = lookupsStopped ? [undefined, undefined] : await catchError(directCloudKey ? findResourceByKeyInRcs(builder, kind, directCloudKey, folderPath, true) : findResourceInRcs(builder, kind, name, folderPath, true));
17492
+ const [lookupError, rcsMatch] = lookupsStopped ? [undefined, undefined] : await catchError(directCloudKey ? findResourceByKeyInRcs2(builder, kind, directCloudKey, folderPath, true) : findResourceInRcs2(builder, kind, name, folderPath, true));
17005
17493
  if (lookupsStopped || lookupError) {
17006
17494
  await recordUnchecked(lookupError, kind, name, directCloudKey);
17007
17495
  continue;
@@ -17009,7 +17497,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
17009
17497
  const resolvedType = identity.type ?? rcsMatch?.type ?? metadata?.type;
17010
17498
  if (!rcsMatch) {
17011
17499
  if (isConnection) {
17012
- result.warnings.push(normalizeFolderPath(folderPath) ? `Connection ${directCloudKey} not found in Resource Catalog in the required folder "${folderPath}" (it may exist in a different folder)` : `Connection ${directCloudKey} not found in Resource Catalog`);
17500
+ result.warnings.push(normalizeFolderPath2(folderPath) ? `Connection ${directCloudKey} not found in Resource Catalog in the required folder "${folderPath}" (it may exist in a different folder)` : `Connection ${directCloudKey} not found in Resource Catalog`);
17013
17501
  continue;
17014
17502
  }
17015
17503
  virtualCandidates.push({
@@ -17018,7 +17506,8 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
17018
17506
  type: resolvedType,
17019
17507
  metadata,
17020
17508
  name,
17021
- folderPath
17509
+ folderPath,
17510
+ catalogMiss: true
17022
17511
  });
17023
17512
  continue;
17024
17513
  }
@@ -17072,7 +17561,8 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
17072
17561
  type: resolvedType,
17073
17562
  metadata,
17074
17563
  name,
17075
- folderPath
17564
+ folderPath,
17565
+ catalogMiss: false
17076
17566
  });
17077
17567
  }
17078
17568
  const virtualCandidatesSeen = new Set;
@@ -17084,7 +17574,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
17084
17574
  return true;
17085
17575
  });
17086
17576
  for (const candidate of dedupedVirtuals) {
17087
- const [syncError, created] = await catchError(createVirtualForBinding(builder, candidate.binding, candidate.kind, candidate.type, candidate.metadata, candidate.name, candidate.folderPath, result));
17577
+ const [syncError, created] = await catchError(createVirtualForBinding(builder, candidate.binding, candidate.kind, candidate.type, candidate.metadata, candidate.name, candidate.folderPath, result, candidate.catalogMiss));
17088
17578
  if (syncError) {
17089
17579
  logger.warn(`Failed to create virtual ${candidate.kind}/${candidate.name}: ${syncError.message}`);
17090
17580
  } else if (created) {
@@ -17139,7 +17629,7 @@ async function isUncheckedBindingCovered(builder, knownResourceKeys, kind, name,
17139
17629
  return knownResourceKeys.has(directCloudKey.toLowerCase());
17140
17630
  }
17141
17631
  const solution = await builder.context.loadAsync();
17142
- return !!findMatchingLocalResource(solution.resources ?? [], kind, name, undefined);
17632
+ return !!findMatchingLocalResource2(solution.resources ?? [], kind, name, undefined);
17143
17633
  }
17144
17634
  async function refreshKnownResource(services, builder, reference, overwrittenKeys) {
17145
17635
  const solution = await builder.context.loadAsync();
@@ -17186,9 +17676,9 @@ async function saveAndDisposeBuilder(builder, solutionDir) {
17186
17676
  const [saveError] = await catchError(context.forceSaveChangesAsync.call(context));
17187
17677
  await builder.disposeAsync();
17188
17678
  if (!saveError) {
17189
- await normalizeResourceFileCasing(solutionDir);
17679
+ await normalizeResourceFileCasing2(solutionDir);
17190
17680
  }
17191
- return saveError;
17681
+ return saveError ?? null;
17192
17682
  }
17193
17683
  function isConnectionBinding(binding) {
17194
17684
  return binding.resourceType === models_BindingsResourceType.Connection || binding.resourceType === models_BindingsResourceType.EventTrigger;
@@ -17196,7 +17686,7 @@ function isConnectionBinding(binding) {
17196
17686
  function getConnectionKey(binding) {
17197
17687
  return binding.dynamicValues[BindingsKnownKeys.ConnectionIdPropertyName]?.defaultValue || binding.bindingKey;
17198
17688
  }
17199
- function uniqueNameForResource(name, kind, excludeKey, solution) {
17689
+ function uniqueNameForResource2(name, kind, excludeKey, solution) {
17200
17690
  const escaped = name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17201
17691
  const suffixRegex = new RegExp(`^${escaped}(_\\d+)?$`, "i");
17202
17692
  const conflicts = solution.resources.filter((r) => r.key !== excludeKey && (r.kind ?? "").toLowerCase() === kind.toLowerCase() && !!r.name && suffixRegex.test(r.name));
@@ -17220,7 +17710,7 @@ async function mintVirtualResource(builder, kind, type, name, metadata) {
17220
17710
  if (!resource) {
17221
17711
  return { finalName: name };
17222
17712
  }
17223
- const uniqueName = uniqueNameForResource(name, kind, key, solution);
17713
+ const uniqueName = uniqueNameForResource2(name, kind, key, solution);
17224
17714
  resource.name = uniqueName;
17225
17715
  if (resource.spec) {
17226
17716
  resource.spec.name = uniqueName;
@@ -17233,10 +17723,10 @@ async function mintVirtualResource(builder, kind, type, name, metadata) {
17233
17723
  }
17234
17724
  return { resource, finalName: uniqueName };
17235
17725
  }
17236
- async function createVirtualForBinding(builder, _binding, kind, type, metadata, name, folderPath, result) {
17726
+ async function createVirtualForBinding(builder, _binding, kind, type, metadata, name, folderPath, result, catalogMiss) {
17237
17727
  const virtualizable = metadata?.virtualizable ?? false;
17238
17728
  const preLoadSolution = await builder.context.loadAsync();
17239
- const alreadyVirtualized = findMatchingLocalResource(preLoadSolution.resources, kind, name, undefined);
17729
+ const alreadyVirtualized = findMatchingLocalResource2(preLoadSolution.resources, kind, name, undefined);
17240
17730
  if (alreadyVirtualized) {
17241
17731
  result.skipped++;
17242
17732
  logger.info(`Skipping virtual ${kind} "${name}" — existing resource "${alreadyVirtualized.name}" in solution_folder already covers this binding (requested folder "${folderPath}")`);
@@ -17247,16 +17737,16 @@ async function createVirtualForBinding(builder, _binding, kind, type, metadata,
17247
17737
  return false;
17248
17738
  result.created++;
17249
17739
  logger.info(`Created ${kind} "${name}" in solution`);
17250
- if (!virtualizable) {
17740
+ if (!virtualizable && catalogMiss) {
17251
17741
  const warning = `${kind} "${name}" not found in Orchestrator. Link it before deploy: uip solution deploy config link <file> "${name}" --name <existing-name>`;
17252
17742
  result.warnings.push(warning);
17253
17743
  logger.warn(warning);
17254
17744
  }
17255
17745
  return true;
17256
17746
  }
17257
- async function findResourceByKeyInRcs(builder, kind, expectedKey, folderPath, propagateErrors = false) {
17747
+ async function findResourceByKeyInRcs2(builder, kind, expectedKey, folderPath, propagateErrors = false) {
17258
17748
  const expectedLower = expectedKey.toLowerCase();
17259
- const normalizedFolder = normalizeFolderPath(folderPath);
17749
+ const normalizedFolder = normalizeFolderPath2(folderPath);
17260
17750
  const mismatchedFolders = [];
17261
17751
  let pageCursor;
17262
17752
  do {
@@ -17284,7 +17774,7 @@ async function findResourceByKeyInRcs(builder, kind, expectedKey, folderPath, pr
17284
17774
  if (!normalizedFolder) {
17285
17775
  return match;
17286
17776
  }
17287
- if (normalizeFolderPath(match.folder.fullyQualifiedName) === normalizedFolder) {
17777
+ if (normalizeFolderPath2(match.folder.fullyQualifiedName) === normalizedFolder) {
17288
17778
  return match;
17289
17779
  }
17290
17780
  mismatchedFolders.push(match.folder.fullyQualifiedName || "<tenant>");
@@ -17298,7 +17788,7 @@ async function findResourceByKeyInRcs(builder, kind, expectedKey, folderPath, pr
17298
17788
  }
17299
17789
  return;
17300
17790
  }
17301
- async function searchRcsResources(builder, kind, name) {
17791
+ async function searchRcsResources2(builder, kind, name) {
17302
17792
  const [searchError, matches] = await catchError(searchRcsResourcesStrict(builder, kind, name));
17303
17793
  if (searchError) {
17304
17794
  logger.warn(`Failed to search ${kind} resources in RCS: ${searchError.message}`);
@@ -17330,15 +17820,15 @@ async function searchRcsResourcesStrict(builder, kind, name) {
17330
17820
  } while (pageCursor);
17331
17821
  return allMatches;
17332
17822
  }
17333
- async function findResourceInRcs(builder, kind, name, folderPath, propagateErrors = false) {
17334
- const allMatches = propagateErrors ? await searchRcsResourcesStrict(builder, kind, name) : await searchRcsResources(builder, kind, name);
17823
+ async function findResourceInRcs2(builder, kind, name, folderPath, propagateErrors = false) {
17824
+ const allMatches = propagateErrors ? await searchRcsResourcesStrict(builder, kind, name) : await searchRcsResources2(builder, kind, name);
17335
17825
  if (allMatches.length === 0) {
17336
17826
  return;
17337
17827
  }
17338
17828
  if (allMatches.length === 1) {
17339
17829
  return allMatches[0];
17340
17830
  }
17341
- const normalized = normalizeFolderPath(folderPath);
17831
+ const normalized = normalizeFolderPath2(folderPath);
17342
17832
  if (normalized) {
17343
17833
  const inFolder = allMatches.filter((m) => m.folder?.fullyQualifiedName?.toLowerCase() === normalized);
17344
17834
  if (inFolder.length === 1) {
@@ -17354,22 +17844,22 @@ async function findResourceInRcs(builder, kind, name, folderPath, propagateError
17354
17844
  logger.warn(`Found ${allMatches.length} ${kind} resources named "${name}" across folders and binding has no folder hint. Marking unresolved.`);
17355
17845
  return;
17356
17846
  }
17357
- async function createResourceKindMetadataResolver(services) {
17847
+ async function createResourceKindMetadataResolver2(services) {
17358
17848
  const metadataReader = services.container.resolve(Tokens.IMetadataReader);
17359
17849
  return buildKindResolver(metadataReader);
17360
17850
  }
17361
- async function resolveResourceKindMetadata(services, kind, type) {
17362
- const resolver = await createResourceKindMetadataResolver(services);
17851
+ async function resolveResourceKindMetadata2(services, kind, type) {
17852
+ const resolver = await createResourceKindMetadataResolver2(services);
17363
17853
  return resolver(kind, type);
17364
17854
  }
17365
- async function createLocalResource(params) {
17855
+ async function createLocalResource2(params) {
17366
17856
  const { builder, services, kind, type, name } = params;
17367
17857
  if (type !== undefined && type.trim() === "") {
17368
17858
  throw new Error(`Type for kind ${kind} is empty.`);
17369
17859
  }
17370
- const metadata = await resolveResourceKindMetadata(services, kind, type);
17860
+ const metadata = await resolveResourceKindMetadata2(services, kind, type);
17371
17861
  if (type !== undefined && metadata && !metadata.typeMatched) {
17372
- throw new Error(metadata.subtypes.length > 0 ? `Unknown type "${type}" for kind ${kind}. Use one of: ${formatResourceSubtypes(metadata.subtypes)}` : `Kind ${kind} has no subtypes, so type "${type}" does not apply.`);
17862
+ throw new Error(metadata.subtypes.length > 0 ? `Unknown type "${type}" for kind ${kind}. Use one of: ${formatResourceSubtypes2(metadata.subtypes)}` : `Kind ${kind} has no subtypes, so type "${type}" does not apply.`);
17373
17863
  }
17374
17864
  const minted = await mintVirtualResource(builder, kind, metadata?.type ?? type, name, metadata);
17375
17865
  if (!minted?.resource)
@@ -17385,7 +17875,7 @@ function mapUipxTypeToReconcileType(uipxType) {
17385
17875
  }
17386
17876
  return uipxType;
17387
17877
  }
17388
- async function readUipxProjects(solutionDir) {
17878
+ async function readUipxProjects2(solutionDir) {
17389
17879
  const fs = getFileSystem();
17390
17880
  const uipxPath = await findUipxFile(solutionDir);
17391
17881
  if (!uipxPath)
@@ -17404,7 +17894,7 @@ async function readUipxProjects(solutionDir) {
17404
17894
  for (const entry of parsed.Projects ?? []) {
17405
17895
  if (!entry.Type || !entry.Id || !entry.ProjectRelativePath)
17406
17896
  continue;
17407
- const projFilePath = fs.path.join(solutionDir, toPortableRelativePath(entry.ProjectRelativePath));
17897
+ const projFilePath = fs.path.join(solutionDir, toPortableRelativePath2(entry.ProjectRelativePath));
17408
17898
  const projectDir = fs.path.dirname(projFilePath);
17409
17899
  const name = await readUiprojName(projFilePath) ?? fs.path.basename(projectDir);
17410
17900
  projects.push({
@@ -17438,7 +17928,7 @@ async function snapshotResourceIdentities(builder) {
17438
17928
  async function reconcileSolutionProjects(builder, solutionDir, projectSubTypes) {
17439
17929
  const fs = getFileSystem();
17440
17930
  const outcome = { projectsCount: 0, resourcesAdded: 0 };
17441
- const uipxProjects = await readUipxProjects(solutionDir);
17931
+ const uipxProjects = await readUipxProjects2(solutionDir);
17442
17932
  const projectDetails = uipxProjects.flatMap((project) => {
17443
17933
  const reconcileType = mapUipxTypeToReconcileType(project.type);
17444
17934
  if (!reconcileType)
@@ -17542,14 +18032,14 @@ async function collectBindings(bindingsJsonFallbackDirs, serializer, sources) {
17542
18032
  if (contribution) {
17543
18033
  if (contribution.bindings.length === 0)
17544
18034
  continue;
17545
- const parsed2 = deserializeBindings(JSON.stringify({
18035
+ const parsed = deserializeBindings(JSON.stringify({
17546
18036
  version: "2.0",
17547
18037
  resources: contribution.bindings
17548
18038
  }), `${dir} (bindings contributed by the project's tool; project ${contribution.projectId})`, serializer);
17549
- if ("error" in parsed2)
17550
- parseErrors.push(parsed2.error);
18039
+ if ("error" in parsed)
18040
+ parseErrors.push(parsed.error);
17551
18041
  else
17552
- allBindings.push(...parsed2.resources);
18042
+ allBindings.push(...parsed.resources);
17553
18043
  continue;
17554
18044
  }
17555
18045
  const v2Path = fs.path.join(dir, "bindings_v2.json");
@@ -17603,8 +18093,8 @@ function deserializeBindings(decoded, source, serializer) {
17603
18093
  }
17604
18094
  return { resources: metadata?.resources ?? [] };
17605
18095
  }
17606
- async function syncAndLog(solutionDir, projectSubTypes, options) {
17607
- const [syncError, syncResult] = await catchError(syncResourcesFromBindings(solutionDir, undefined, projectSubTypes, options?.projectBindings));
18096
+ async function syncAndLog2(solutionDir, projectSubTypes, options) {
18097
+ const [syncError, syncResult] = await catchError(syncResourcesFromBindings2(solutionDir, undefined, projectSubTypes, options?.projectBindings, options?.selfProvisioned));
17608
18098
  if (syncError) {
17609
18099
  if (options?.failOnUnresolved)
17610
18100
  throw syncError;
@@ -17623,7 +18113,7 @@ async function syncAndLog(solutionDir, projectSubTypes, options) {
17623
18113
  }
17624
18114
 
17625
18115
  // ../solution-sdk/src/resources/services/resource-refresh-service.ts
17626
- async function resourceRefreshAsync(solutionPath = ".", options = {}) {
18116
+ async function resourceRefreshAsync2(solutionPath = ".", options = {}) {
17627
18117
  const fs = getFileSystem();
17628
18118
  const resolvedPath = fs.path.resolve(fs.env.cwd(), solutionPath);
17629
18119
  if (!await fs.exists(resolvedPath)) {
@@ -17633,7 +18123,7 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
17633
18123
  message: `Solution directory not found: ${resolvedPath}`
17634
18124
  };
17635
18125
  }
17636
- const [manifestError] = await catchError(assertSolutionManifest(resolvedPath));
18126
+ const [manifestError] = await catchError(assertSolutionManifest2(resolvedPath));
17637
18127
  if (manifestError) {
17638
18128
  return {
17639
18129
  ok: false,
@@ -17641,7 +18131,7 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
17641
18131
  message: manifestError.message
17642
18132
  };
17643
18133
  }
17644
- const [authError] = await catchError(getSolutionAuthContext({
18134
+ const [authError] = await catchError(getSolutionAuthContext2({
17645
18135
  loginValidity: options.loginValidity,
17646
18136
  envFilePath: options.envFilePath
17647
18137
  }));
@@ -17660,7 +18150,7 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
17660
18150
  if (bindingsError) {
17661
18151
  resolverWarnings.push(`Could not read the bindings projects contribute: ${bindingsError.message}. Those projects were synced from any bindings_v2.json on disk instead; fix the tool install and re-run 'uip solution resources refresh'.`);
17662
18152
  }
17663
- const [syncError, result] = await catchError(syncResourcesFromBindings(resolvedPath, undefined, projectSubTypes ?? new Map, projectBindings ?? new Map));
18153
+ const [syncError, result] = await catchError(syncResourcesFromBindings2(resolvedPath, undefined, projectSubTypes ?? new Map, projectBindings ?? new Map));
17664
18154
  if (syncError) {
17665
18155
  return {
17666
18156
  ok: false,
@@ -17680,7 +18170,7 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
17680
18170
  }
17681
18171
  // ../solution-sdk/src/resources/services/resource-remote-sync.ts
17682
18172
  var NOT_FOUND_PATTERN = /not found/i;
17683
- async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options = {}) {
18173
+ async function resourceRemoteSyncAsync2(solutionPath = ".", resourceKey, options = {}) {
17684
18174
  const fs = getFileSystem();
17685
18175
  const resolvedPath = fs.path.resolve(fs.env.cwd(), solutionPath);
17686
18176
  if (!await fs.exists(resolvedPath)) {
@@ -17690,7 +18180,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
17690
18180
  message: `Solution directory not found: ${resolvedPath}`
17691
18181
  };
17692
18182
  }
17693
- const [manifestError] = await catchError(assertSolutionManifest(resolvedPath));
18183
+ const [manifestError] = await catchError(assertSolutionManifest2(resolvedPath));
17694
18184
  if (manifestError) {
17695
18185
  return {
17696
18186
  ok: false,
@@ -17698,7 +18188,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
17698
18188
  message: manifestError.message
17699
18189
  };
17700
18190
  }
17701
- const [authError] = await catchError(getSolutionAuthContext({
18191
+ const [authError] = await catchError(getSolutionAuthContext2({
17702
18192
  loginValidity: options.loginValidity,
17703
18193
  envFilePath: options.envFilePath
17704
18194
  }));
@@ -17709,7 +18199,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
17709
18199
  message: await extractErrorMessage(authError)
17710
18200
  };
17711
18201
  }
17712
- const [servicesError, services] = await catchError(createResourceBuilderServices());
18202
+ const [servicesError, services] = await catchError(createResourceBuilderServices2());
17713
18203
  if (servicesError) {
17714
18204
  return {
17715
18205
  ok: false,
@@ -17717,7 +18207,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
17717
18207
  message: servicesError.message
17718
18208
  };
17719
18209
  }
17720
- await normalizeResourceFileCasing(resolvedPath);
18210
+ await normalizeResourceFileCasing2(resolvedPath);
17721
18211
  const [builderError, builder] = await catchError(services.getSolutionBuilder(resolvedPath, !options.force));
17722
18212
  if (builderError) {
17723
18213
  return {
@@ -17727,9 +18217,9 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
17727
18217
  };
17728
18218
  }
17729
18219
  const [runError, result] = await catchError(runSyncAsync(builder, resourceKey, options));
17730
- const disposeError = await saveCasingNormalized(builder);
18220
+ const disposeError = await saveCasingNormalized2(builder);
17731
18221
  if (!disposeError) {
17732
- await normalizeResourceFileCasing(resolvedPath);
18222
+ await normalizeResourceFileCasing2(resolvedPath);
17733
18223
  }
17734
18224
  if (runError) {
17735
18225
  return { ok: false, reason: "sync_failed", message: runError.message };
@@ -17855,6 +18345,6 @@ function sortKeysDeep(value) {
17855
18345
  }
17856
18346
  return sorted;
17857
18347
  }
17858
- export { Tokens, models_BindingsResourceType, getResourceName, getFolderPathProperty, getResourceKindForBinding, assertSolutionManifest, readSolutionManifest, resolveProjectDirFromManifest, EntryPointSpecEnhancer, computeEntryPointSpec, applyEntryPointEnhancementAsync, createResourceBuilderServices, findProjectFile, ProjectManifestError, isProjectManifestError, isMissingProjectTypeError, readProjectFile, readSolutionFile, resolveSolutionFilePath, writeSolutionFile, restoreSolutionFile, createProjectInSolutionBuilder, CatalogLookupError, normalizeFolderPath, findMatchingLocalResource, findMatchingMemberResource, findMemberCloneResources, addProjectArtifactsToSolutionAsync, hasBareTemplateRow, hasAnyTemplateRow, getRemoteResourceClients, findCatalogEntityAsync, findCatalogEntitiesAsync, toResourceReference, toCatalogReference, exportResourceDefinitionAsync, readSpecProperty, readSpecEntryPoints, normalizeResourceCasing, saveCasingNormalized, normalizeResourceFileCasing, isResourceKeyNotFound, refreshArtefactSpecsAsync, exportResourceConfigurationsAsync, readResourceConfigurationsAsync, readResourceConfigurationAsync, findResourcesByNameAsync, MAX_RESOURCE_NAME_LENGTH, validateResourceName, assertValidResourceName, formatResourceSubtypes, sameResourceSubtype, syncResourcesFromBindings, uniqueNameForResource, findResourceByKeyInRcs, searchRcsResources, searchRcsResourcesStrict, findResourceInRcs, createResourceKindMetadataResolver, resolveResourceKindMetadata, createLocalResource, readUipxProjects, syncAndLog, resourceRefreshAsync, resourceRemoteSyncAsync };
18348
+ export { JsonSerializerNames2, JsonSerializer2, CAMEL_CASE_ENUM_PROPERTIES2, SHARED_CORE_ABSTRACTIONS_PASCAL_CASE_PROPERTIES2, RESOURCE_BUILDER_PASCAL_CASE_PROPERTIES2, PASCAL_CASE_ENUM_PROPERTIES2, JsonSerializerFactory2, JsonSerializerProxy2, StreamSerializer2, Tokens, models_BindingsResourceType, getResourceName, getFolderPathProperty, getResourceKindForBinding, FirstPartyServiceApi2, assertSolutionManifest2, computeEntryPointSpec2, createResourceBuilderServices2, findProjectFile2, isProjectManifestError2, isMissingProjectTypeError2, readProjectFile2, readSolutionFile2, resolveSolutionFilePath2, writeSolutionFile2, restoreSolutionFile2, createProjectInSolutionBuilder2, normalizeFolderPath2, findMatchingLocalResource2, addProjectArtifactsToSolutionAsync2, hasBareTemplateRow2, hasAnyTemplateRow2, getRemoteResourceClients2, exportResourceDefinitionAsync2, readSpecProperty2, saveCasingNormalized2, normalizeResourceFileCasing2, readResourceConfigurationsAsync2, readResourceConfigurationAsync2, validateResourceName2, formatResourceSubtypes2, sameResourceSubtype2, syncResourcesFromBindings2, uniqueNameForResource2, findResourceByKeyInRcs2, searchRcsResources2, findResourceInRcs2, createResourceKindMetadataResolver2, resolveResourceKindMetadata2, createLocalResource2, readUipxProjects2, syncAndLog2, resourceRefreshAsync2, resourceRemoteSyncAsync2 };
17859
18349
 
17860
- //# debugId=D96A40C680DB2DF664756E2164756E21
18350
+ //# debugId=C7560BF264F83A5464756E2164756E21