@uipath/solution-sdk 1.203.0-preview.205 → 1.204.0-preview.206

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +2 -2
  2. package/dist/{embedded-file-reader-xxqe8vs8.js → embedded-file-reader-rf2g1kfj.js} +2 -2
  3. package/dist/generated/src/apis/DeploymentsApi.d.ts +27 -23
  4. package/dist/generated/src/models/DeploymentResourceInfo.d.ts +109 -0
  5. package/dist/generated/src/models/DeploymentResourceReplacementDto.d.ts +50 -0
  6. package/dist/generated/src/models/DeploymentUpgradeState.d.ts +27 -0
  7. package/dist/generated/src/models/PageInfoDtoOfDeploymentResourceInfo.d.ts +39 -0
  8. package/dist/generated/src/models/ResetConfigurationSource.d.ts +25 -0
  9. package/dist/generated/src/models/index.d.ts +5 -2
  10. package/dist/{index-y8tgscfm.js → index-6gp5j7j5.js} +22 -6
  11. package/dist/{index-4zqv4bn2.js → index-bdpp6dsk.js} +565 -92
  12. package/dist/index.js +345 -209
  13. package/dist/resources/index.js +418 -82
  14. package/dist/scripts/generate-sdk.js +14 -7
  15. package/dist/solution-auth.js +1 -1
  16. package/dist/src/index.d.ts +0 -1
  17. package/dist/src/resources/index.d.ts +2 -0
  18. package/dist/src/resources/providers/resource-builder-init.d.ts +1 -1
  19. package/dist/src/resources/services/remote-resources.d.ts +45 -0
  20. package/dist/src/resources/services/resource-name.d.ts +28 -0
  21. package/dist/src/resources/services/sync-resources-from-bindings.d.ts +17 -5
  22. package/dist/src/solution-auth.d.ts +3 -0
  23. package/dist/src/zip-utils.d.ts +8 -0
  24. package/package.json +2 -2
  25. package/dist/generated/src/models/DeploymentRunResponse.d.ts +0 -51
  26. package/dist/generated/src/models/DeploymentUpgradeRequest.d.ts +0 -38
  27. package/dist/src/deployments-auto-install.d.ts +0 -55
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  updateSolutionFile,
23
23
  updateUipxSolutionId,
24
24
  zipSync
25
- } from "./index-4zqv4bn2.js";
25
+ } from "./index-bdpp6dsk.js";
26
26
  import"./index-g0hcxnae.js";
27
27
  import"./index-1de529jm.js";
28
28
 
@@ -326,7 +326,7 @@ var package_default = {
326
326
  name: "@uipath/solution-sdk",
327
327
  author: "UiPath",
328
328
  license: "SEE LICENSE IN LICENSE.txt",
329
- version: "1.203.0-preview.205",
329
+ version: "1.204.0-preview.206",
330
330
  repository: {
331
331
  type: "git",
332
332
  url: "https://github.com/UiPath/cli.git",
@@ -377,7 +377,7 @@ var package_default = {
377
377
  "@uipath/common": "workspace:*",
378
378
  "@uipath/filesystem": "workspace:*",
379
379
  "@uipath/orchestrator-sdk": "workspace:*",
380
- "@uipath/resource-builder-sdk": "2025.11.0-alpha5891-4020",
380
+ "@uipath/resource-builder-sdk": "2025.11.0-alpha6004-4107",
381
381
  "@uipath/solutionpackager-tool-core": "workspace:*",
382
382
  "@uipath/studioweb-sdk": "workspace:*",
383
383
  "@types/node": "^25.5.2",
@@ -1675,6 +1675,14 @@ function createSolutionApi(config, organizationName) {
1675
1675
  return new SolutionApi(buildStudioWebConfiguration(config, organizationName));
1676
1676
  }
1677
1677
  // ../studioweb-sdk/src/publish-locations.ts
1678
+ class PublishLocationsRequestError extends Error {
1679
+ name = "PublishLocationsRequestError";
1680
+ status;
1681
+ constructor(status, message) {
1682
+ super(message);
1683
+ this.status = status;
1684
+ }
1685
+ }
1678
1686
  async function getAvailablePublishLocationsV2(config, organizationName) {
1679
1687
  const url = `${studioWebBasePath(config, organizationName)}/api/resourcebuilder/solutions/v2/publish-location`;
1680
1688
  const headers = {
@@ -1686,7 +1694,7 @@ async function getAvailablePublishLocationsV2(config, organizationName) {
1686
1694
  const response = await fetch(url, { method: "GET", headers });
1687
1695
  if (!response.ok) {
1688
1696
  const text = await response.text();
1689
- throw new Error(`Failed to fetch publish locations (${response.status}): ${text}`);
1697
+ throw new PublishLocationsRequestError(response.status, `Failed to fetch publish locations (${response.status}): ${text}`);
1690
1698
  }
1691
1699
  const raw = await response.json();
1692
1700
  if (!Array.isArray(raw)) {
@@ -2428,138 +2436,258 @@ function DeploymentResourceValidationActionToJSON(value) {
2428
2436
  function DeploymentResourceValidationActionToJSONTyped(value, ignoreDiscriminator) {
2429
2437
  return value;
2430
2438
  }
2431
- // generated/src/models/DeploymentResourceValidationErrorKind.ts
2432
- var DeploymentResourceValidationErrorKind = {
2433
- Conflict: "Conflict",
2434
- ConfigurationError: "ConfigurationError"
2439
+
2440
+ // generated/src/models/ResetConfigurationSource.ts
2441
+ var ResetConfigurationSource = {
2442
+ Package: "Package",
2443
+ PreviousDeployment: "PreviousDeployment"
2435
2444
  };
2436
- function instanceOfDeploymentResourceValidationErrorKind(value) {
2437
- for (const key in DeploymentResourceValidationErrorKind) {
2438
- if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorKind, key)) {
2439
- if (DeploymentResourceValidationErrorKind[key] === value) {
2445
+ function instanceOfResetConfigurationSource(value) {
2446
+ for (const key in ResetConfigurationSource) {
2447
+ if (Object.prototype.hasOwnProperty.call(ResetConfigurationSource, key)) {
2448
+ if (ResetConfigurationSource[key] === value) {
2440
2449
  return true;
2441
2450
  }
2442
2451
  }
2443
2452
  }
2444
2453
  return false;
2445
2454
  }
2446
- function DeploymentResourceValidationErrorKindFromJSON(json) {
2447
- return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
2455
+ function ResetConfigurationSourceFromJSON(json) {
2456
+ return ResetConfigurationSourceFromJSONTyped(json, false);
2448
2457
  }
2449
- function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
2458
+ function ResetConfigurationSourceFromJSONTyped(json, ignoreDiscriminator) {
2450
2459
  return json;
2451
2460
  }
2452
- function DeploymentResourceValidationErrorKindToJSON(value) {
2461
+ function ResetConfigurationSourceToJSON(value) {
2453
2462
  return value;
2454
2463
  }
2455
- function DeploymentResourceValidationErrorKindToJSONTyped(value, ignoreDiscriminator) {
2464
+ function ResetConfigurationSourceToJSONTyped(value, ignoreDiscriminator) {
2456
2465
  return value;
2457
2466
  }
2458
- // generated/src/models/DeploymentResourceValidationErrorLevel.ts
2459
- var DeploymentResourceValidationErrorLevel = {
2460
- Error: "Error",
2461
- Warning: "Warning",
2462
- Info: "Info"
2467
+
2468
+ // generated/src/models/DeploymentUpgradeState.ts
2469
+ var DeploymentUpgradeState = {
2470
+ Unchanged: "Unchanged",
2471
+ Updated: "Updated",
2472
+ New: "New",
2473
+ Removed: "Removed"
2463
2474
  };
2464
- function instanceOfDeploymentResourceValidationErrorLevel(value) {
2465
- for (const key in DeploymentResourceValidationErrorLevel) {
2466
- if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorLevel, key)) {
2467
- if (DeploymentResourceValidationErrorLevel[key] === value) {
2475
+ function instanceOfDeploymentUpgradeState(value) {
2476
+ for (const key in DeploymentUpgradeState) {
2477
+ if (Object.prototype.hasOwnProperty.call(DeploymentUpgradeState, key)) {
2478
+ if (DeploymentUpgradeState[key] === value) {
2468
2479
  return true;
2469
2480
  }
2470
2481
  }
2471
2482
  }
2472
2483
  return false;
2473
2484
  }
2474
- function DeploymentResourceValidationErrorLevelFromJSON(json) {
2475
- return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
2485
+ function DeploymentUpgradeStateFromJSON(json) {
2486
+ return DeploymentUpgradeStateFromJSONTyped(json, false);
2476
2487
  }
2477
- function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
2488
+ function DeploymentUpgradeStateFromJSONTyped(json, ignoreDiscriminator) {
2478
2489
  return json;
2479
2490
  }
2480
- function DeploymentResourceValidationErrorLevelToJSON(value) {
2491
+ function DeploymentUpgradeStateToJSON(value) {
2481
2492
  return value;
2482
2493
  }
2483
- function DeploymentResourceValidationErrorLevelToJSONTyped(value, ignoreDiscriminator) {
2494
+ function DeploymentUpgradeStateToJSONTyped(value, ignoreDiscriminator) {
2484
2495
  return value;
2485
2496
  }
2486
- // generated/src/models/ServiceMessage.ts
2487
- function instanceOfServiceMessage(value) {
2488
- if (!("resource" in value) || value["resource"] === undefined)
2497
+
2498
+ // generated/src/models/DeploymentResourceReplacementDto.ts
2499
+ function instanceOfDeploymentResourceReplacementDto(value) {
2500
+ if (!("serviceResourceKey" in value) || value["serviceResourceKey"] === undefined)
2489
2501
  return false;
2490
- if (!("text" in value) || value["text"] === undefined)
2502
+ if (!("serviceResourceName" in value) || value["serviceResourceName"] === undefined)
2491
2503
  return false;
2492
- if (!("parameters" in value) || value["parameters"] === undefined)
2504
+ if (!("solutionResourceKey" in value) || value["solutionResourceKey"] === undefined)
2493
2505
  return false;
2494
2506
  return true;
2495
2507
  }
2496
- function ServiceMessageFromJSON(json) {
2497
- return ServiceMessageFromJSONTyped(json, false);
2508
+ function DeploymentResourceReplacementDtoFromJSON(json) {
2509
+ return DeploymentResourceReplacementDtoFromJSONTyped(json, false);
2498
2510
  }
2499
- function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
2511
+ function DeploymentResourceReplacementDtoFromJSONTyped(json, ignoreDiscriminator) {
2500
2512
  if (json == null) {
2501
2513
  return json;
2502
2514
  }
2503
2515
  return {
2504
- resource: json["resource"],
2505
- text: json["text"],
2506
- parameters: json["parameters"],
2507
- errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
2516
+ serviceResourceKey: json["serviceResourceKey"],
2517
+ serviceResourceName: json["serviceResourceName"],
2518
+ serviceFolderPath: json["serviceFolderPath"] == null ? undefined : json["serviceFolderPath"],
2519
+ solutionResourceKey: json["solutionResourceKey"]
2508
2520
  };
2509
2521
  }
2510
- function ServiceMessageToJSON(json) {
2511
- return ServiceMessageToJSONTyped(json, false);
2522
+ function DeploymentResourceReplacementDtoToJSON(json) {
2523
+ return DeploymentResourceReplacementDtoToJSONTyped(json, false);
2512
2524
  }
2513
- function ServiceMessageToJSONTyped(value, ignoreDiscriminator = false) {
2525
+ function DeploymentResourceReplacementDtoToJSONTyped(value, ignoreDiscriminator = false) {
2514
2526
  if (value == null) {
2515
2527
  return value;
2516
2528
  }
2517
2529
  return {
2518
- resource: value["resource"],
2519
- text: value["text"],
2520
- parameters: value["parameters"],
2521
- errorCode: value["errorCode"]
2530
+ serviceResourceKey: value["serviceResourceKey"],
2531
+ serviceResourceName: value["serviceResourceName"],
2532
+ serviceFolderPath: value["serviceFolderPath"],
2533
+ solutionResourceKey: value["solutionResourceKey"]
2522
2534
  };
2523
2535
  }
2524
2536
 
2525
- // generated/src/models/DeploymentRunResponse.ts
2526
- function instanceOfDeploymentRunResponse(value) {
2527
- if (!("scheduled" in value) || value["scheduled"] === undefined)
2537
+ // generated/src/models/FolderInfo.ts
2538
+ function instanceOfFolderInfo(value) {
2539
+ if (!("fullyQualifiedName" in value) || value["fullyQualifiedName"] === undefined)
2528
2540
  return false;
2529
- if (!("errors" in value) || value["errors"] === undefined)
2541
+ return true;
2542
+ }
2543
+ function FolderInfoFromJSON(json) {
2544
+ return FolderInfoFromJSONTyped(json, false);
2545
+ }
2546
+ function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
2547
+ if (json == null) {
2548
+ return json;
2549
+ }
2550
+ return {
2551
+ fullyQualifiedName: json["fullyQualifiedName"],
2552
+ path: json["path"] == null ? undefined : json["path"],
2553
+ folderKey: json["folderKey"] == null ? undefined : json["folderKey"]
2554
+ };
2555
+ }
2556
+ function FolderInfoToJSON(json) {
2557
+ return FolderInfoToJSONTyped(json, false);
2558
+ }
2559
+ function FolderInfoToJSONTyped(value, ignoreDiscriminator = false) {
2560
+ if (value == null) {
2561
+ return value;
2562
+ }
2563
+ return {
2564
+ fullyQualifiedName: value["fullyQualifiedName"],
2565
+ path: value["path"],
2566
+ folderKey: value["folderKey"]
2567
+ };
2568
+ }
2569
+
2570
+ // generated/src/models/DeploymentResourceInfo.ts
2571
+ function instanceOfDeploymentResourceInfo(value) {
2572
+ if (!("key" in value) || value["key"] === undefined)
2573
+ return false;
2574
+ if (!("name" in value) || value["name"] === undefined)
2575
+ return false;
2576
+ if (!("kind" in value) || value["kind"] === undefined)
2577
+ return false;
2578
+ if (!("apiVersion" in value) || value["apiVersion"] === undefined)
2579
+ return false;
2580
+ if (!("folders" in value) || value["folders"] === undefined)
2530
2581
  return false;
2531
- if (!("complete" in value) || value["complete"] === undefined)
2582
+ if (!("requiresConfiguration" in value) || value["requiresConfiguration"] === undefined)
2583
+ return false;
2584
+ if (!("isOverridable" in value) || value["isOverridable"] === undefined)
2585
+ return false;
2586
+ if (!("hasWarnings" in value) || value["hasWarnings"] === undefined)
2532
2587
  return false;
2533
2588
  return true;
2534
2589
  }
2535
- function DeploymentRunResponseFromJSON(json) {
2536
- return DeploymentRunResponseFromJSONTyped(json, false);
2590
+ function DeploymentResourceInfoFromJSON(json) {
2591
+ return DeploymentResourceInfoFromJSONTyped(json, false);
2537
2592
  }
2538
- function DeploymentRunResponseFromJSONTyped(json, ignoreDiscriminator) {
2593
+ function DeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
2539
2594
  if (json == null) {
2540
2595
  return json;
2541
2596
  }
2542
2597
  return {
2543
- instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
2544
- scheduled: json["scheduled"],
2545
- errors: json["errors"].map(ServiceMessageFromJSON),
2546
- complete: json["complete"]
2598
+ key: json["key"],
2599
+ name: json["name"],
2600
+ kind: json["kind"],
2601
+ type: json["type"] == null ? undefined : json["type"],
2602
+ apiVersion: json["apiVersion"],
2603
+ folders: json["folders"].map(FolderInfoFromJSON),
2604
+ requiresConfiguration: json["requiresConfiguration"],
2605
+ isOverridable: json["isOverridable"],
2606
+ hasWarnings: json["hasWarnings"],
2607
+ upgradeState: json["upgradeState"] == null ? undefined : DeploymentUpgradeStateFromJSON(json["upgradeState"]),
2608
+ upgradeConfigurationSource: json["upgradeConfigurationSource"] == null ? undefined : ResetConfigurationSourceFromJSON(json["upgradeConfigurationSource"]),
2609
+ resourceReplacement: json["resourceReplacement"] == null ? undefined : DeploymentResourceReplacementDtoFromJSON(json["resourceReplacement"]),
2610
+ selectedAction: json["selectedAction"] == null ? undefined : DeploymentResourceValidationActionFromJSON(json["selectedAction"])
2547
2611
  };
2548
2612
  }
2549
- function DeploymentRunResponseToJSON(json) {
2550
- return DeploymentRunResponseToJSONTyped(json, false);
2613
+ function DeploymentResourceInfoToJSON(json) {
2614
+ return DeploymentResourceInfoToJSONTyped(json, false);
2551
2615
  }
2552
- function DeploymentRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
2616
+ function DeploymentResourceInfoToJSONTyped(value, ignoreDiscriminator = false) {
2553
2617
  if (value == null) {
2554
2618
  return value;
2555
2619
  }
2556
2620
  return {
2557
- instanceId: value["instanceId"],
2558
- scheduled: value["scheduled"],
2559
- errors: value["errors"].map(ServiceMessageToJSON),
2560
- complete: value["complete"]
2621
+ key: value["key"],
2622
+ name: value["name"],
2623
+ kind: value["kind"],
2624
+ type: value["type"],
2625
+ apiVersion: value["apiVersion"],
2626
+ folders: value["folders"].map(FolderInfoToJSON),
2627
+ requiresConfiguration: value["requiresConfiguration"],
2628
+ isOverridable: value["isOverridable"],
2629
+ hasWarnings: value["hasWarnings"],
2630
+ upgradeState: DeploymentUpgradeStateToJSON(value["upgradeState"]),
2631
+ upgradeConfigurationSource: ResetConfigurationSourceToJSON(value["upgradeConfigurationSource"]),
2632
+ resourceReplacement: DeploymentResourceReplacementDtoToJSON(value["resourceReplacement"]),
2633
+ selectedAction: DeploymentResourceValidationActionToJSON(value["selectedAction"])
2561
2634
  };
2562
2635
  }
2636
+ // generated/src/models/DeploymentResourceValidationErrorKind.ts
2637
+ var DeploymentResourceValidationErrorKind = {
2638
+ Conflict: "Conflict",
2639
+ ConfigurationError: "ConfigurationError"
2640
+ };
2641
+ function instanceOfDeploymentResourceValidationErrorKind(value) {
2642
+ for (const key in DeploymentResourceValidationErrorKind) {
2643
+ if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorKind, key)) {
2644
+ if (DeploymentResourceValidationErrorKind[key] === value) {
2645
+ return true;
2646
+ }
2647
+ }
2648
+ }
2649
+ return false;
2650
+ }
2651
+ function DeploymentResourceValidationErrorKindFromJSON(json) {
2652
+ return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
2653
+ }
2654
+ function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
2655
+ return json;
2656
+ }
2657
+ function DeploymentResourceValidationErrorKindToJSON(value) {
2658
+ return value;
2659
+ }
2660
+ function DeploymentResourceValidationErrorKindToJSONTyped(value, ignoreDiscriminator) {
2661
+ return value;
2662
+ }
2663
+ // generated/src/models/DeploymentResourceValidationErrorLevel.ts
2664
+ var DeploymentResourceValidationErrorLevel = {
2665
+ Error: "Error",
2666
+ Warning: "Warning",
2667
+ Info: "Info"
2668
+ };
2669
+ function instanceOfDeploymentResourceValidationErrorLevel(value) {
2670
+ for (const key in DeploymentResourceValidationErrorLevel) {
2671
+ if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorLevel, key)) {
2672
+ if (DeploymentResourceValidationErrorLevel[key] === value) {
2673
+ return true;
2674
+ }
2675
+ }
2676
+ }
2677
+ return false;
2678
+ }
2679
+ function DeploymentResourceValidationErrorLevelFromJSON(json) {
2680
+ return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
2681
+ }
2682
+ function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
2683
+ return json;
2684
+ }
2685
+ function DeploymentResourceValidationErrorLevelToJSON(value) {
2686
+ return value;
2687
+ }
2688
+ function DeploymentResourceValidationErrorLevelToJSONTyped(value, ignoreDiscriminator) {
2689
+ return value;
2690
+ }
2563
2691
  // generated/src/models/DeploymentType.ts
2564
2692
  var DeploymentType = {
2565
2693
  Managed: "Managed",
@@ -2702,34 +2830,45 @@ function DeploymentSearchItemDto2ToJSONTyped(value, ignoreDiscriminator = false)
2702
2830
  previousInstanceId: value["previousInstanceId"]
2703
2831
  };
2704
2832
  }
2705
- // generated/src/models/DeploymentUpgradeRequest.ts
2706
- function instanceOfDeploymentUpgradeRequest(value) {
2833
+ // generated/src/models/ServiceMessage.ts
2834
+ function instanceOfServiceMessage(value) {
2835
+ if (!("resource" in value) || value["resource"] === undefined)
2836
+ return false;
2837
+ if (!("text" in value) || value["text"] === undefined)
2838
+ return false;
2839
+ if (!("parameters" in value) || value["parameters"] === undefined)
2840
+ return false;
2707
2841
  return true;
2708
2842
  }
2709
- function DeploymentUpgradeRequestFromJSON(json) {
2710
- return DeploymentUpgradeRequestFromJSONTyped(json, false);
2843
+ function ServiceMessageFromJSON(json) {
2844
+ return ServiceMessageFromJSONTyped(json, false);
2711
2845
  }
2712
- function DeploymentUpgradeRequestFromJSONTyped(json, ignoreDiscriminator) {
2846
+ function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
2713
2847
  if (json == null) {
2714
2848
  return json;
2715
2849
  }
2716
2850
  return {
2717
- deploymentName: json["deploymentName"] == null ? undefined : json["deploymentName"],
2718
- packageVersionKey: json["packageVersionKey"] == null ? undefined : json["packageVersionKey"]
2851
+ resource: json["resource"],
2852
+ text: json["text"],
2853
+ parameters: json["parameters"],
2854
+ errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
2719
2855
  };
2720
2856
  }
2721
- function DeploymentUpgradeRequestToJSON(json) {
2722
- return DeploymentUpgradeRequestToJSONTyped(json, false);
2857
+ function ServiceMessageToJSON(json) {
2858
+ return ServiceMessageToJSONTyped(json, false);
2723
2859
  }
2724
- function DeploymentUpgradeRequestToJSONTyped(value, ignoreDiscriminator = false) {
2860
+ function ServiceMessageToJSONTyped(value, ignoreDiscriminator = false) {
2725
2861
  if (value == null) {
2726
2862
  return value;
2727
2863
  }
2728
2864
  return {
2729
- deploymentName: value["deploymentName"],
2730
- packageVersionKey: value["packageVersionKey"]
2865
+ resource: value["resource"],
2866
+ text: value["text"],
2867
+ parameters: value["parameters"],
2868
+ errorCode: value["errorCode"]
2731
2869
  };
2732
2870
  }
2871
+
2733
2872
  // generated/src/models/ResourceValidationError.ts
2734
2873
  function instanceOfResourceValidationError(value) {
2735
2874
  if (!("resource" in value) || value["resource"] === undefined)
@@ -2977,38 +3116,6 @@ function ExtendedPackageVersionStateToJSON(value) {
2977
3116
  function ExtendedPackageVersionStateToJSONTyped(value, ignoreDiscriminator) {
2978
3117
  return value;
2979
3118
  }
2980
- // generated/src/models/FolderInfo.ts
2981
- function instanceOfFolderInfo(value) {
2982
- if (!("fullyQualifiedName" in value) || value["fullyQualifiedName"] === undefined)
2983
- return false;
2984
- return true;
2985
- }
2986
- function FolderInfoFromJSON(json) {
2987
- return FolderInfoFromJSONTyped(json, false);
2988
- }
2989
- function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
2990
- if (json == null) {
2991
- return json;
2992
- }
2993
- return {
2994
- fullyQualifiedName: json["fullyQualifiedName"],
2995
- path: json["path"] == null ? undefined : json["path"],
2996
- folderKey: json["folderKey"] == null ? undefined : json["folderKey"]
2997
- };
2998
- }
2999
- function FolderInfoToJSON(json) {
3000
- return FolderInfoToJSONTyped(json, false);
3001
- }
3002
- function FolderInfoToJSONTyped(value, ignoreDiscriminator = false) {
3003
- if (value == null) {
3004
- return value;
3005
- }
3006
- return {
3007
- fullyQualifiedName: value["fullyQualifiedName"],
3008
- path: value["path"],
3009
- folderKey: value["folderKey"]
3010
- };
3011
- }
3012
3119
  // generated/src/models/LocationDto.ts
3013
3120
  function instanceOfLocationDto(value) {
3014
3121
  if (!("name" in value) || value["name"] === undefined)
@@ -3293,6 +3400,38 @@ function PackageVersionInfoDtoToJSONTyped(value, ignoreDiscriminator = false) {
3293
3400
  components: PackageVersionComponentsDtoToJSON(value["components"])
3294
3401
  };
3295
3402
  }
3403
+ // generated/src/models/PageInfoDtoOfDeploymentResourceInfo.ts
3404
+ function instanceOfPageInfoDtoOfDeploymentResourceInfo(value) {
3405
+ if (!("count" in value) || value["count"] === undefined)
3406
+ return false;
3407
+ if (!("values" in value) || value["values"] === undefined)
3408
+ return false;
3409
+ return true;
3410
+ }
3411
+ function PageInfoDtoOfDeploymentResourceInfoFromJSON(json) {
3412
+ return PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, false);
3413
+ }
3414
+ function PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
3415
+ if (json == null) {
3416
+ return json;
3417
+ }
3418
+ return {
3419
+ count: json["count"],
3420
+ values: json["values"].map(DeploymentResourceInfoFromJSON)
3421
+ };
3422
+ }
3423
+ function PageInfoDtoOfDeploymentResourceInfoToJSON(json) {
3424
+ return PageInfoDtoOfDeploymentResourceInfoToJSONTyped(json, false);
3425
+ }
3426
+ function PageInfoDtoOfDeploymentResourceInfoToJSONTyped(value, ignoreDiscriminator = false) {
3427
+ if (value == null) {
3428
+ return value;
3429
+ }
3430
+ return {
3431
+ count: value["count"],
3432
+ values: value["values"].map(DeploymentResourceInfoToJSON)
3433
+ };
3434
+ }
3296
3435
  // generated/src/models/PageInfoDtoOfDeploymentSearchItemDto2.ts
3297
3436
  function instanceOfPageInfoDtoOfDeploymentSearchItemDto2(value) {
3298
3437
  if (!("count" in value) || value["count"] === undefined)
@@ -3605,6 +3744,35 @@ class ConfigurationsApi extends BaseAPI {
3605
3744
  }
3606
3745
  // generated/src/apis/DeploymentsApi.ts
3607
3746
  class DeploymentsApi extends BaseAPI {
3747
+ async deploymentsDeleteRaw(requestParameters, initOverrides) {
3748
+ if (requestParameters["deploymentKey"] == null) {
3749
+ throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsDelete().');
3750
+ }
3751
+ const queryParameters = {};
3752
+ const headerParameters = {};
3753
+ if (requestParameters["xUipathAsVersion"] != null) {
3754
+ headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
3755
+ }
3756
+ if (this.configuration && this.configuration.accessToken) {
3757
+ const token = this.configuration.accessToken;
3758
+ const tokenString = await token("Bearer", []);
3759
+ if (tokenString) {
3760
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3761
+ }
3762
+ }
3763
+ let urlPath = `/api/deployments/{deploymentKey}`;
3764
+ urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3765
+ const response = await this.request({
3766
+ path: urlPath,
3767
+ method: "DELETE",
3768
+ headers: headerParameters,
3769
+ query: queryParameters
3770
+ }, initOverrides);
3771
+ return new VoidApiResponse(response);
3772
+ }
3773
+ async deploymentsDelete(requestParameters, initOverrides) {
3774
+ await this.deploymentsDeleteRaw(requestParameters, initOverrides);
3775
+ }
3608
3776
  async deploymentsDeployRaw(requestParameters, initOverrides) {
3609
3777
  if (requestParameters["deploymentAutoRequest"] == null) {
3610
3778
  throw new RequiredError("deploymentAutoRequest", 'Required parameter "deploymentAutoRequest" was null or undefined when calling deploymentsDeploy().');
@@ -3669,46 +3837,24 @@ class DeploymentsApi extends BaseAPI {
3669
3837
  const response = await this.deploymentsGetByKeyRaw(requestParameters, initOverrides);
3670
3838
  return await response.value();
3671
3839
  }
3672
- async deploymentsGetValidationResultRaw(requestParameters, initOverrides) {
3840
+ async deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides) {
3673
3841
  if (requestParameters["deploymentKey"] == null) {
3674
- throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetValidationResult().');
3842
+ throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetDeploymentResources().');
3675
3843
  }
3676
3844
  const queryParameters = {};
3677
- if (requestParameters["deploymentAction"] != null) {
3678
- queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
3845
+ if (requestParameters["folderKey"] != null) {
3846
+ queryParameters["folderKey"] = requestParameters["folderKey"];
3679
3847
  }
3680
- const headerParameters = {};
3681
- if (requestParameters["xUipathAsVersion"] != null) {
3682
- headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
3848
+ if (requestParameters["kind"] != null) {
3849
+ queryParameters["kind"] = requestParameters["kind"];
3683
3850
  }
3684
- if (this.configuration && this.configuration.accessToken) {
3685
- const token = this.configuration.accessToken;
3686
- const tokenString = await token("Bearer", []);
3687
- if (tokenString) {
3688
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
3689
- }
3851
+ if (requestParameters["skip"] != null) {
3852
+ queryParameters["skip"] = requestParameters["skip"];
3690
3853
  }
3691
- let urlPath = `/api/deployments/{deploymentKey}/validation-result`;
3692
- urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3693
- const response = await this.request({
3694
- path: urlPath,
3695
- method: "GET",
3696
- headers: headerParameters,
3697
- query: queryParameters
3698
- }, initOverrides);
3699
- return new JSONApiResponse(response, (jsonValue) => DeploymentValidationResultDtoFromJSON(jsonValue));
3700
- }
3701
- async deploymentsGetValidationResult(requestParameters, initOverrides) {
3702
- const response = await this.deploymentsGetValidationResultRaw(requestParameters, initOverrides);
3703
- return await response.value();
3704
- }
3705
- async deploymentsPostRaw(requestParameters, initOverrides) {
3706
- if (requestParameters["deploymentRequest"] == null) {
3707
- throw new RequiredError("deploymentRequest", 'Required parameter "deploymentRequest" was null or undefined when calling deploymentsPost().');
3854
+ if (requestParameters["take"] != null) {
3855
+ queryParameters["take"] = requestParameters["take"];
3708
3856
  }
3709
- const queryParameters = {};
3710
3857
  const headerParameters = {};
3711
- headerParameters["Content-Type"] = "application/json";
3712
3858
  if (requestParameters["xUipathAsVersion"] != null) {
3713
3859
  headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
3714
3860
  }
@@ -3719,25 +3865,28 @@ class DeploymentsApi extends BaseAPI {
3719
3865
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
3720
3866
  }
3721
3867
  }
3722
- let urlPath = `/api/deployments`;
3868
+ let urlPath = `/api/deployments/{deploymentKey}/resources`;
3869
+ urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3723
3870
  const response = await this.request({
3724
3871
  path: urlPath,
3725
- method: "POST",
3872
+ method: "GET",
3726
3873
  headers: headerParameters,
3727
- query: queryParameters,
3728
- body: DeploymentRequestToJSON(requestParameters["deploymentRequest"])
3874
+ query: queryParameters
3729
3875
  }, initOverrides);
3730
- return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
3876
+ return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentResourceInfoFromJSON(jsonValue));
3731
3877
  }
3732
- async deploymentsPost(requestParameters, initOverrides) {
3733
- const response = await this.deploymentsPostRaw(requestParameters, initOverrides);
3878
+ async deploymentsGetDeploymentResources(requestParameters, initOverrides) {
3879
+ const response = await this.deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides);
3734
3880
  return await response.value();
3735
3881
  }
3736
- async deploymentsRunRaw(requestParameters, initOverrides) {
3882
+ async deploymentsGetValidationResultRaw(requestParameters, initOverrides) {
3737
3883
  if (requestParameters["deploymentKey"] == null) {
3738
- throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsRun().');
3884
+ throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetValidationResult().');
3739
3885
  }
3740
3886
  const queryParameters = {};
3887
+ if (requestParameters["deploymentAction"] != null) {
3888
+ queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
3889
+ }
3741
3890
  const headerParameters = {};
3742
3891
  if (requestParameters["xUipathAsVersion"] != null) {
3743
3892
  headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
@@ -3749,28 +3898,25 @@ class DeploymentsApi extends BaseAPI {
3749
3898
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
3750
3899
  }
3751
3900
  }
3752
- let urlPath = `/api/deployments/{deploymentKey}/run`;
3901
+ let urlPath = `/api/deployments/{deploymentKey}/validation-result`;
3753
3902
  urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3754
3903
  const response = await this.request({
3755
3904
  path: urlPath,
3756
- method: "POST",
3905
+ method: "GET",
3757
3906
  headers: headerParameters,
3758
3907
  query: queryParameters
3759
3908
  }, initOverrides);
3760
- return new JSONApiResponse(response, (jsonValue) => DeploymentRunResponseFromJSON(jsonValue));
3909
+ return new JSONApiResponse(response, (jsonValue) => DeploymentValidationResultDtoFromJSON(jsonValue));
3761
3910
  }
3762
- async deploymentsRun(requestParameters, initOverrides) {
3763
- const response = await this.deploymentsRunRaw(requestParameters, initOverrides);
3911
+ async deploymentsGetValidationResult(requestParameters, initOverrides) {
3912
+ const response = await this.deploymentsGetValidationResultRaw(requestParameters, initOverrides);
3764
3913
  return await response.value();
3765
3914
  }
3766
- async deploymentsUpgradeRaw(requestParameters, initOverrides) {
3767
- if (requestParameters["deploymentKey"] == null) {
3768
- throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsUpgrade().');
3915
+ async deploymentsPostRaw(requestParameters, initOverrides) {
3916
+ if (requestParameters["deploymentRequest"] == null) {
3917
+ throw new RequiredError("deploymentRequest", 'Required parameter "deploymentRequest" was null or undefined when calling deploymentsPost().');
3769
3918
  }
3770
3919
  const queryParameters = {};
3771
- if (requestParameters["packageVersionKey"] != null) {
3772
- queryParameters["packageVersionKey"] = requestParameters["packageVersionKey"];
3773
- }
3774
3920
  const headerParameters = {};
3775
3921
  headerParameters["Content-Type"] = "application/json";
3776
3922
  if (requestParameters["xUipathAsVersion"] != null) {
@@ -3783,19 +3929,18 @@ class DeploymentsApi extends BaseAPI {
3783
3929
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
3784
3930
  }
3785
3931
  }
3786
- let urlPath = `/api/deployments/{deploymentKey}/upgrade`;
3787
- urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3932
+ let urlPath = `/api/deployments`;
3788
3933
  const response = await this.request({
3789
3934
  path: urlPath,
3790
3935
  method: "POST",
3791
3936
  headers: headerParameters,
3792
3937
  query: queryParameters,
3793
- body: DeploymentUpgradeRequestToJSON(requestParameters["deploymentUpgradeRequest"])
3938
+ body: DeploymentRequestToJSON(requestParameters["deploymentRequest"])
3794
3939
  }, initOverrides);
3795
3940
  return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
3796
3941
  }
3797
- async deploymentsUpgrade(requestParameters, initOverrides) {
3798
- const response = await this.deploymentsUpgradeRaw(requestParameters, initOverrides);
3942
+ async deploymentsPost(requestParameters, initOverrides) {
3943
+ const response = await this.deploymentsPostRaw(requestParameters, initOverrides);
3799
3944
  return await response.value();
3800
3945
  }
3801
3946
  }
@@ -4197,7 +4342,8 @@ var DEFAULT_EXCLUDED_DIR_NAMES = new Set([
4197
4342
  "node_modules",
4198
4343
  "__pycache__",
4199
4344
  ".git",
4200
- ".local"
4345
+ ".local",
4346
+ ".flow-sdk"
4201
4347
  ]);
4202
4348
  var DEFAULT_EXCLUDED_FILE_PATTERNS = [
4203
4349
  /^\.env($|\..+)/
@@ -4561,32 +4707,6 @@ async function buildSolutionPackageFromDir(fs, solutionDir) {
4561
4707
  await fs.rm(stagingDir).catch(() => {});
4562
4708
  }
4563
4709
  }
4564
- // src/deployments-auto-install.ts
4565
- async function deploymentsAutoInstall(config, request, feedFolderKey) {
4566
- const url = `${config.basePath}/api/v2/deployments/auto-install`;
4567
- const response = await fetch(url, {
4568
- method: "POST",
4569
- headers: {
4570
- Authorization: `Bearer ${config.accessToken}`,
4571
- "Content-Type": "application/json",
4572
- "X-UIPATH-FolderKey": feedFolderKey
4573
- },
4574
- body: JSON.stringify(request)
4575
- });
4576
- if (!response.ok) {
4577
- throw new ResponseError(response, "Response returned an error code");
4578
- }
4579
- const text = await response.text();
4580
- if (!text) {
4581
- return {};
4582
- }
4583
- try {
4584
- const parsed = JSON.parse(text);
4585
- return parsed !== null && typeof parsed === "object" ? parsed : {};
4586
- } catch {
4587
- return {};
4588
- }
4589
- }
4590
4710
  // src/project-debug-status.ts
4591
4711
  var SUCCEEDED = "creationsucceeded";
4592
4712
  var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
@@ -5009,6 +5129,14 @@ export {
5009
5129
  DeploymentRequestFromJSONTyped,
5010
5130
  DeploymentRequestToJSON,
5011
5131
  DeploymentRequestToJSONTyped,
5132
+ DeploymentResourceInfoFromJSON,
5133
+ DeploymentResourceInfoFromJSONTyped,
5134
+ DeploymentResourceInfoToJSON,
5135
+ DeploymentResourceInfoToJSONTyped,
5136
+ DeploymentResourceReplacementDtoFromJSON,
5137
+ DeploymentResourceReplacementDtoFromJSONTyped,
5138
+ DeploymentResourceReplacementDtoToJSON,
5139
+ DeploymentResourceReplacementDtoToJSONTyped,
5012
5140
  DeploymentResourceValidationAction,
5013
5141
  DeploymentResourceValidationActionFromJSON,
5014
5142
  DeploymentResourceValidationActionFromJSONTyped,
@@ -5024,10 +5152,6 @@ export {
5024
5152
  DeploymentResourceValidationErrorLevelFromJSONTyped,
5025
5153
  DeploymentResourceValidationErrorLevelToJSON,
5026
5154
  DeploymentResourceValidationErrorLevelToJSONTyped,
5027
- DeploymentRunResponseFromJSON,
5028
- DeploymentRunResponseFromJSONTyped,
5029
- DeploymentRunResponseToJSON,
5030
- DeploymentRunResponseToJSONTyped,
5031
5155
  DeploymentSearchItemDto2FromJSON,
5032
5156
  DeploymentSearchItemDto2FromJSONTyped,
5033
5157
  DeploymentSearchItemDto2ToJSON,
@@ -5042,10 +5166,11 @@ export {
5042
5166
  DeploymentTypeFromJSONTyped,
5043
5167
  DeploymentTypeToJSON,
5044
5168
  DeploymentTypeToJSONTyped,
5045
- DeploymentUpgradeRequestFromJSON,
5046
- DeploymentUpgradeRequestFromJSONTyped,
5047
- DeploymentUpgradeRequestToJSON,
5048
- DeploymentUpgradeRequestToJSONTyped,
5169
+ DeploymentUpgradeState,
5170
+ DeploymentUpgradeStateFromJSON,
5171
+ DeploymentUpgradeStateFromJSONTyped,
5172
+ DeploymentUpgradeStateToJSON,
5173
+ DeploymentUpgradeStateToJSONTyped,
5049
5174
  DeploymentUpgradeType,
5050
5175
  DeploymentUpgradeTypeFromJSON,
5051
5176
  DeploymentUpgradeTypeFromJSONTyped,
@@ -5111,6 +5236,10 @@ export {
5111
5236
  PackageVersionResourceDtoToJSON,
5112
5237
  PackageVersionResourceDtoToJSONTyped,
5113
5238
  PackagesApi,
5239
+ PageInfoDtoOfDeploymentResourceInfoFromJSON,
5240
+ PageInfoDtoOfDeploymentResourceInfoFromJSONTyped,
5241
+ PageInfoDtoOfDeploymentResourceInfoToJSON,
5242
+ PageInfoDtoOfDeploymentResourceInfoToJSONTyped,
5114
5243
  PageInfoDtoOfDeploymentSearchItemDto2FromJSON,
5115
5244
  PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped,
5116
5245
  PageInfoDtoOfDeploymentSearchItemDto2ToJSON,
@@ -5138,6 +5267,11 @@ export {
5138
5267
  ProjectImportStatusToJSONTyped,
5139
5268
  ProjectsApi,
5140
5269
  RequiredError,
5270
+ ResetConfigurationSource,
5271
+ ResetConfigurationSourceFromJSON,
5272
+ ResetConfigurationSourceFromJSONTyped,
5273
+ ResetConfigurationSourceToJSON,
5274
+ ResetConfigurationSourceToJSONTyped,
5141
5275
  ResourceOverwriteFromJSON,
5142
5276
  ResourceOverwriteFromJSONTyped,
5143
5277
  ResourceOverwriteToJSON,
@@ -5196,7 +5330,6 @@ export {
5196
5330
  collectFiles,
5197
5331
  createSolutionManifest,
5198
5332
  createZipFromDir,
5199
- deploymentsAutoInstall,
5200
5333
  exists,
5201
5334
  finalizeZip64,
5202
5335
  findNearestParentUipxFile,
@@ -5215,14 +5348,15 @@ export {
5215
5348
  instanceOfDeploymentOperation,
5216
5349
  instanceOfDeploymentOperationStatus,
5217
5350
  instanceOfDeploymentRequest,
5351
+ instanceOfDeploymentResourceInfo,
5352
+ instanceOfDeploymentResourceReplacementDto,
5218
5353
  instanceOfDeploymentResourceValidationAction,
5219
5354
  instanceOfDeploymentResourceValidationErrorKind,
5220
5355
  instanceOfDeploymentResourceValidationErrorLevel,
5221
- instanceOfDeploymentRunResponse,
5222
5356
  instanceOfDeploymentSearchItemDto2,
5223
5357
  instanceOfDeploymentStatus,
5224
5358
  instanceOfDeploymentType,
5225
- instanceOfDeploymentUpgradeRequest,
5359
+ instanceOfDeploymentUpgradeState,
5226
5360
  instanceOfDeploymentUpgradeType,
5227
5361
  instanceOfDeploymentValidationResultDto,
5228
5362
  instanceOfDeploymentsSearchRequest2,
@@ -5237,12 +5371,14 @@ export {
5237
5371
  instanceOfPackageVersionInfoDto,
5238
5372
  instanceOfPackageVersionOrigin,
5239
5373
  instanceOfPackageVersionResourceDto,
5374
+ instanceOfPageInfoDtoOfDeploymentResourceInfo,
5240
5375
  instanceOfPageInfoDtoOfDeploymentSearchItemDto2,
5241
5376
  instanceOfPageInfoDtoOfPackageInfo,
5242
5377
  instanceOfProblemDetails,
5243
5378
  instanceOfProjectCreateRequest,
5244
5379
  instanceOfProjectDto,
5245
5380
  instanceOfProjectImportStatus,
5381
+ instanceOfResetConfigurationSource,
5246
5382
  instanceOfResourceOverwrite,
5247
5383
  instanceOfResourceStats,
5248
5384
  instanceOfResourceValidationDto,
@@ -5275,4 +5411,4 @@ export {
5275
5411
  uploadOrOverwriteSolution
5276
5412
  };
5277
5413
 
5278
- //# debugId=73CA21234E648CC964756E2164756E21
5414
+ //# debugId=1A637605292EF69064756E2164756E21