@uipath/function-tool 1.203.0-preview.212 → 1.204.0-preview.211

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.
@@ -10,7 +10,7 @@ import {
10
10
  logger,
11
11
  summarizePlatformBody,
12
12
  unsupportedSolutionProjectType
13
- } from "./packager-tool-9331shqx.js";
13
+ } from "./packager-tool-5s8z8be9.js";
14
14
  import"./packager-tool-g0hcxnae.js";
15
15
  import"./packager-tool-1de529jm.js";
16
16
 
@@ -314,7 +314,7 @@ var package_default = {
314
314
  name: "@uipath/solution-sdk",
315
315
  author: "UiPath",
316
316
  license: "SEE LICENSE IN LICENSE.txt",
317
- version: "1.203.0-preview.212",
317
+ version: "1.204.0-preview.211",
318
318
  repository: {
319
319
  type: "git",
320
320
  url: "https://github.com/UiPath/cli.git",
@@ -365,7 +365,7 @@ var package_default = {
365
365
  "@uipath/common": "workspace:*",
366
366
  "@uipath/filesystem": "workspace:*",
367
367
  "@uipath/orchestrator-sdk": "workspace:*",
368
- "@uipath/resource-builder-sdk": "2025.11.0-alpha5891-4020",
368
+ "@uipath/resource-builder-sdk": "2025.11.0-alpha6004-4107",
369
369
  "@uipath/solutionpackager-tool-core": "workspace:*",
370
370
  "@uipath/studioweb-sdk": "workspace:*",
371
371
  "@types/node": "^25.5.2",
@@ -1663,6 +1663,14 @@ function createSolutionApi(config, organizationName) {
1663
1663
  return new SolutionApi(buildStudioWebConfiguration(config, organizationName));
1664
1664
  }
1665
1665
  // ../studioweb-sdk/src/publish-locations.ts
1666
+ class PublishLocationsRequestError extends Error {
1667
+ name = "PublishLocationsRequestError";
1668
+ status;
1669
+ constructor(status, message) {
1670
+ super(message);
1671
+ this.status = status;
1672
+ }
1673
+ }
1666
1674
  async function getAvailablePublishLocationsV2(config, organizationName) {
1667
1675
  const url = `${studioWebBasePath(config, organizationName)}/api/resourcebuilder/solutions/v2/publish-location`;
1668
1676
  const headers = {
@@ -1674,7 +1682,7 @@ async function getAvailablePublishLocationsV2(config, organizationName) {
1674
1682
  const response = await fetch(url, { method: "GET", headers });
1675
1683
  if (!response.ok) {
1676
1684
  const text = await response.text();
1677
- throw new Error(`Failed to fetch publish locations (${response.status}): ${text}`);
1685
+ throw new PublishLocationsRequestError(response.status, `Failed to fetch publish locations (${response.status}): ${text}`);
1678
1686
  }
1679
1687
  const raw = await response.json();
1680
1688
  if (!Array.isArray(raw)) {
@@ -2416,138 +2424,258 @@ function DeploymentResourceValidationActionToJSON(value) {
2416
2424
  function DeploymentResourceValidationActionToJSONTyped(value, ignoreDiscriminator) {
2417
2425
  return value;
2418
2426
  }
2419
- // ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorKind.ts
2420
- var DeploymentResourceValidationErrorKind = {
2421
- Conflict: "Conflict",
2422
- ConfigurationError: "ConfigurationError"
2427
+
2428
+ // ../solution-sdk/generated/src/models/ResetConfigurationSource.ts
2429
+ var ResetConfigurationSource = {
2430
+ Package: "Package",
2431
+ PreviousDeployment: "PreviousDeployment"
2423
2432
  };
2424
- function instanceOfDeploymentResourceValidationErrorKind(value) {
2425
- for (const key in DeploymentResourceValidationErrorKind) {
2426
- if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorKind, key)) {
2427
- if (DeploymentResourceValidationErrorKind[key] === value) {
2433
+ function instanceOfResetConfigurationSource(value) {
2434
+ for (const key in ResetConfigurationSource) {
2435
+ if (Object.prototype.hasOwnProperty.call(ResetConfigurationSource, key)) {
2436
+ if (ResetConfigurationSource[key] === value) {
2428
2437
  return true;
2429
2438
  }
2430
2439
  }
2431
2440
  }
2432
2441
  return false;
2433
2442
  }
2434
- function DeploymentResourceValidationErrorKindFromJSON(json) {
2435
- return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
2443
+ function ResetConfigurationSourceFromJSON(json) {
2444
+ return ResetConfigurationSourceFromJSONTyped(json, false);
2436
2445
  }
2437
- function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
2446
+ function ResetConfigurationSourceFromJSONTyped(json, ignoreDiscriminator) {
2438
2447
  return json;
2439
2448
  }
2440
- function DeploymentResourceValidationErrorKindToJSON(value) {
2449
+ function ResetConfigurationSourceToJSON(value) {
2441
2450
  return value;
2442
2451
  }
2443
- function DeploymentResourceValidationErrorKindToJSONTyped(value, ignoreDiscriminator) {
2452
+ function ResetConfigurationSourceToJSONTyped(value, ignoreDiscriminator) {
2444
2453
  return value;
2445
2454
  }
2446
- // ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorLevel.ts
2447
- var DeploymentResourceValidationErrorLevel = {
2448
- Error: "Error",
2449
- Warning: "Warning",
2450
- Info: "Info"
2455
+
2456
+ // ../solution-sdk/generated/src/models/DeploymentUpgradeState.ts
2457
+ var DeploymentUpgradeState = {
2458
+ Unchanged: "Unchanged",
2459
+ Updated: "Updated",
2460
+ New: "New",
2461
+ Removed: "Removed"
2451
2462
  };
2452
- function instanceOfDeploymentResourceValidationErrorLevel(value) {
2453
- for (const key in DeploymentResourceValidationErrorLevel) {
2454
- if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorLevel, key)) {
2455
- if (DeploymentResourceValidationErrorLevel[key] === value) {
2463
+ function instanceOfDeploymentUpgradeState(value) {
2464
+ for (const key in DeploymentUpgradeState) {
2465
+ if (Object.prototype.hasOwnProperty.call(DeploymentUpgradeState, key)) {
2466
+ if (DeploymentUpgradeState[key] === value) {
2456
2467
  return true;
2457
2468
  }
2458
2469
  }
2459
2470
  }
2460
2471
  return false;
2461
2472
  }
2462
- function DeploymentResourceValidationErrorLevelFromJSON(json) {
2463
- return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
2473
+ function DeploymentUpgradeStateFromJSON(json) {
2474
+ return DeploymentUpgradeStateFromJSONTyped(json, false);
2464
2475
  }
2465
- function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
2476
+ function DeploymentUpgradeStateFromJSONTyped(json, ignoreDiscriminator) {
2466
2477
  return json;
2467
2478
  }
2468
- function DeploymentResourceValidationErrorLevelToJSON(value) {
2479
+ function DeploymentUpgradeStateToJSON(value) {
2469
2480
  return value;
2470
2481
  }
2471
- function DeploymentResourceValidationErrorLevelToJSONTyped(value, ignoreDiscriminator) {
2482
+ function DeploymentUpgradeStateToJSONTyped(value, ignoreDiscriminator) {
2472
2483
  return value;
2473
2484
  }
2474
- // ../solution-sdk/generated/src/models/ServiceMessage.ts
2475
- function instanceOfServiceMessage(value) {
2476
- if (!("resource" in value) || value["resource"] === undefined)
2485
+
2486
+ // ../solution-sdk/generated/src/models/DeploymentResourceReplacementDto.ts
2487
+ function instanceOfDeploymentResourceReplacementDto(value) {
2488
+ if (!("serviceResourceKey" in value) || value["serviceResourceKey"] === undefined)
2477
2489
  return false;
2478
- if (!("text" in value) || value["text"] === undefined)
2490
+ if (!("serviceResourceName" in value) || value["serviceResourceName"] === undefined)
2479
2491
  return false;
2480
- if (!("parameters" in value) || value["parameters"] === undefined)
2492
+ if (!("solutionResourceKey" in value) || value["solutionResourceKey"] === undefined)
2481
2493
  return false;
2482
2494
  return true;
2483
2495
  }
2484
- function ServiceMessageFromJSON(json) {
2485
- return ServiceMessageFromJSONTyped(json, false);
2496
+ function DeploymentResourceReplacementDtoFromJSON(json) {
2497
+ return DeploymentResourceReplacementDtoFromJSONTyped(json, false);
2486
2498
  }
2487
- function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
2499
+ function DeploymentResourceReplacementDtoFromJSONTyped(json, ignoreDiscriminator) {
2488
2500
  if (json == null) {
2489
2501
  return json;
2490
2502
  }
2491
2503
  return {
2492
- resource: json["resource"],
2493
- text: json["text"],
2494
- parameters: json["parameters"],
2495
- errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
2504
+ serviceResourceKey: json["serviceResourceKey"],
2505
+ serviceResourceName: json["serviceResourceName"],
2506
+ serviceFolderPath: json["serviceFolderPath"] == null ? undefined : json["serviceFolderPath"],
2507
+ solutionResourceKey: json["solutionResourceKey"]
2496
2508
  };
2497
2509
  }
2498
- function ServiceMessageToJSON(json) {
2499
- return ServiceMessageToJSONTyped(json, false);
2510
+ function DeploymentResourceReplacementDtoToJSON(json) {
2511
+ return DeploymentResourceReplacementDtoToJSONTyped(json, false);
2500
2512
  }
2501
- function ServiceMessageToJSONTyped(value, ignoreDiscriminator = false) {
2513
+ function DeploymentResourceReplacementDtoToJSONTyped(value, ignoreDiscriminator = false) {
2502
2514
  if (value == null) {
2503
2515
  return value;
2504
2516
  }
2505
2517
  return {
2506
- resource: value["resource"],
2507
- text: value["text"],
2508
- parameters: value["parameters"],
2509
- errorCode: value["errorCode"]
2518
+ serviceResourceKey: value["serviceResourceKey"],
2519
+ serviceResourceName: value["serviceResourceName"],
2520
+ serviceFolderPath: value["serviceFolderPath"],
2521
+ solutionResourceKey: value["solutionResourceKey"]
2510
2522
  };
2511
2523
  }
2512
2524
 
2513
- // ../solution-sdk/generated/src/models/DeploymentRunResponse.ts
2514
- function instanceOfDeploymentRunResponse(value) {
2515
- if (!("scheduled" in value) || value["scheduled"] === undefined)
2525
+ // ../solution-sdk/generated/src/models/FolderInfo.ts
2526
+ function instanceOfFolderInfo(value) {
2527
+ if (!("fullyQualifiedName" in value) || value["fullyQualifiedName"] === undefined)
2516
2528
  return false;
2517
- if (!("errors" in value) || value["errors"] === undefined)
2529
+ return true;
2530
+ }
2531
+ function FolderInfoFromJSON(json) {
2532
+ return FolderInfoFromJSONTyped(json, false);
2533
+ }
2534
+ function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
2535
+ if (json == null) {
2536
+ return json;
2537
+ }
2538
+ return {
2539
+ fullyQualifiedName: json["fullyQualifiedName"],
2540
+ path: json["path"] == null ? undefined : json["path"],
2541
+ folderKey: json["folderKey"] == null ? undefined : json["folderKey"]
2542
+ };
2543
+ }
2544
+ function FolderInfoToJSON(json) {
2545
+ return FolderInfoToJSONTyped(json, false);
2546
+ }
2547
+ function FolderInfoToJSONTyped(value, ignoreDiscriminator = false) {
2548
+ if (value == null) {
2549
+ return value;
2550
+ }
2551
+ return {
2552
+ fullyQualifiedName: value["fullyQualifiedName"],
2553
+ path: value["path"],
2554
+ folderKey: value["folderKey"]
2555
+ };
2556
+ }
2557
+
2558
+ // ../solution-sdk/generated/src/models/DeploymentResourceInfo.ts
2559
+ function instanceOfDeploymentResourceInfo(value) {
2560
+ if (!("key" in value) || value["key"] === undefined)
2561
+ return false;
2562
+ if (!("name" in value) || value["name"] === undefined)
2563
+ return false;
2564
+ if (!("kind" in value) || value["kind"] === undefined)
2565
+ return false;
2566
+ if (!("apiVersion" in value) || value["apiVersion"] === undefined)
2567
+ return false;
2568
+ if (!("folders" in value) || value["folders"] === undefined)
2518
2569
  return false;
2519
- if (!("complete" in value) || value["complete"] === undefined)
2570
+ if (!("requiresConfiguration" in value) || value["requiresConfiguration"] === undefined)
2571
+ return false;
2572
+ if (!("isOverridable" in value) || value["isOverridable"] === undefined)
2573
+ return false;
2574
+ if (!("hasWarnings" in value) || value["hasWarnings"] === undefined)
2520
2575
  return false;
2521
2576
  return true;
2522
2577
  }
2523
- function DeploymentRunResponseFromJSON(json) {
2524
- return DeploymentRunResponseFromJSONTyped(json, false);
2578
+ function DeploymentResourceInfoFromJSON(json) {
2579
+ return DeploymentResourceInfoFromJSONTyped(json, false);
2525
2580
  }
2526
- function DeploymentRunResponseFromJSONTyped(json, ignoreDiscriminator) {
2581
+ function DeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
2527
2582
  if (json == null) {
2528
2583
  return json;
2529
2584
  }
2530
2585
  return {
2531
- instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
2532
- scheduled: json["scheduled"],
2533
- errors: json["errors"].map(ServiceMessageFromJSON),
2534
- complete: json["complete"]
2586
+ key: json["key"],
2587
+ name: json["name"],
2588
+ kind: json["kind"],
2589
+ type: json["type"] == null ? undefined : json["type"],
2590
+ apiVersion: json["apiVersion"],
2591
+ folders: json["folders"].map(FolderInfoFromJSON),
2592
+ requiresConfiguration: json["requiresConfiguration"],
2593
+ isOverridable: json["isOverridable"],
2594
+ hasWarnings: json["hasWarnings"],
2595
+ upgradeState: json["upgradeState"] == null ? undefined : DeploymentUpgradeStateFromJSON(json["upgradeState"]),
2596
+ upgradeConfigurationSource: json["upgradeConfigurationSource"] == null ? undefined : ResetConfigurationSourceFromJSON(json["upgradeConfigurationSource"]),
2597
+ resourceReplacement: json["resourceReplacement"] == null ? undefined : DeploymentResourceReplacementDtoFromJSON(json["resourceReplacement"]),
2598
+ selectedAction: json["selectedAction"] == null ? undefined : DeploymentResourceValidationActionFromJSON(json["selectedAction"])
2535
2599
  };
2536
2600
  }
2537
- function DeploymentRunResponseToJSON(json) {
2538
- return DeploymentRunResponseToJSONTyped(json, false);
2601
+ function DeploymentResourceInfoToJSON(json) {
2602
+ return DeploymentResourceInfoToJSONTyped(json, false);
2539
2603
  }
2540
- function DeploymentRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
2604
+ function DeploymentResourceInfoToJSONTyped(value, ignoreDiscriminator = false) {
2541
2605
  if (value == null) {
2542
2606
  return value;
2543
2607
  }
2544
2608
  return {
2545
- instanceId: value["instanceId"],
2546
- scheduled: value["scheduled"],
2547
- errors: value["errors"].map(ServiceMessageToJSON),
2548
- complete: value["complete"]
2609
+ key: value["key"],
2610
+ name: value["name"],
2611
+ kind: value["kind"],
2612
+ type: value["type"],
2613
+ apiVersion: value["apiVersion"],
2614
+ folders: value["folders"].map(FolderInfoToJSON),
2615
+ requiresConfiguration: value["requiresConfiguration"],
2616
+ isOverridable: value["isOverridable"],
2617
+ hasWarnings: value["hasWarnings"],
2618
+ upgradeState: DeploymentUpgradeStateToJSON(value["upgradeState"]),
2619
+ upgradeConfigurationSource: ResetConfigurationSourceToJSON(value["upgradeConfigurationSource"]),
2620
+ resourceReplacement: DeploymentResourceReplacementDtoToJSON(value["resourceReplacement"]),
2621
+ selectedAction: DeploymentResourceValidationActionToJSON(value["selectedAction"])
2549
2622
  };
2550
2623
  }
2624
+ // ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorKind.ts
2625
+ var DeploymentResourceValidationErrorKind = {
2626
+ Conflict: "Conflict",
2627
+ ConfigurationError: "ConfigurationError"
2628
+ };
2629
+ function instanceOfDeploymentResourceValidationErrorKind(value) {
2630
+ for (const key in DeploymentResourceValidationErrorKind) {
2631
+ if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorKind, key)) {
2632
+ if (DeploymentResourceValidationErrorKind[key] === value) {
2633
+ return true;
2634
+ }
2635
+ }
2636
+ }
2637
+ return false;
2638
+ }
2639
+ function DeploymentResourceValidationErrorKindFromJSON(json) {
2640
+ return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
2641
+ }
2642
+ function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
2643
+ return json;
2644
+ }
2645
+ function DeploymentResourceValidationErrorKindToJSON(value) {
2646
+ return value;
2647
+ }
2648
+ function DeploymentResourceValidationErrorKindToJSONTyped(value, ignoreDiscriminator) {
2649
+ return value;
2650
+ }
2651
+ // ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorLevel.ts
2652
+ var DeploymentResourceValidationErrorLevel = {
2653
+ Error: "Error",
2654
+ Warning: "Warning",
2655
+ Info: "Info"
2656
+ };
2657
+ function instanceOfDeploymentResourceValidationErrorLevel(value) {
2658
+ for (const key in DeploymentResourceValidationErrorLevel) {
2659
+ if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorLevel, key)) {
2660
+ if (DeploymentResourceValidationErrorLevel[key] === value) {
2661
+ return true;
2662
+ }
2663
+ }
2664
+ }
2665
+ return false;
2666
+ }
2667
+ function DeploymentResourceValidationErrorLevelFromJSON(json) {
2668
+ return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
2669
+ }
2670
+ function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
2671
+ return json;
2672
+ }
2673
+ function DeploymentResourceValidationErrorLevelToJSON(value) {
2674
+ return value;
2675
+ }
2676
+ function DeploymentResourceValidationErrorLevelToJSONTyped(value, ignoreDiscriminator) {
2677
+ return value;
2678
+ }
2551
2679
  // ../solution-sdk/generated/src/models/DeploymentType.ts
2552
2680
  var DeploymentType = {
2553
2681
  Managed: "Managed",
@@ -2690,34 +2818,45 @@ function DeploymentSearchItemDto2ToJSONTyped(value, ignoreDiscriminator = false)
2690
2818
  previousInstanceId: value["previousInstanceId"]
2691
2819
  };
2692
2820
  }
2693
- // ../solution-sdk/generated/src/models/DeploymentUpgradeRequest.ts
2694
- function instanceOfDeploymentUpgradeRequest(value) {
2821
+ // ../solution-sdk/generated/src/models/ServiceMessage.ts
2822
+ function instanceOfServiceMessage(value) {
2823
+ if (!("resource" in value) || value["resource"] === undefined)
2824
+ return false;
2825
+ if (!("text" in value) || value["text"] === undefined)
2826
+ return false;
2827
+ if (!("parameters" in value) || value["parameters"] === undefined)
2828
+ return false;
2695
2829
  return true;
2696
2830
  }
2697
- function DeploymentUpgradeRequestFromJSON(json) {
2698
- return DeploymentUpgradeRequestFromJSONTyped(json, false);
2831
+ function ServiceMessageFromJSON(json) {
2832
+ return ServiceMessageFromJSONTyped(json, false);
2699
2833
  }
2700
- function DeploymentUpgradeRequestFromJSONTyped(json, ignoreDiscriminator) {
2834
+ function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
2701
2835
  if (json == null) {
2702
2836
  return json;
2703
2837
  }
2704
2838
  return {
2705
- deploymentName: json["deploymentName"] == null ? undefined : json["deploymentName"],
2706
- packageVersionKey: json["packageVersionKey"] == null ? undefined : json["packageVersionKey"]
2839
+ resource: json["resource"],
2840
+ text: json["text"],
2841
+ parameters: json["parameters"],
2842
+ errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
2707
2843
  };
2708
2844
  }
2709
- function DeploymentUpgradeRequestToJSON(json) {
2710
- return DeploymentUpgradeRequestToJSONTyped(json, false);
2845
+ function ServiceMessageToJSON(json) {
2846
+ return ServiceMessageToJSONTyped(json, false);
2711
2847
  }
2712
- function DeploymentUpgradeRequestToJSONTyped(value, ignoreDiscriminator = false) {
2848
+ function ServiceMessageToJSONTyped(value, ignoreDiscriminator = false) {
2713
2849
  if (value == null) {
2714
2850
  return value;
2715
2851
  }
2716
2852
  return {
2717
- deploymentName: value["deploymentName"],
2718
- packageVersionKey: value["packageVersionKey"]
2853
+ resource: value["resource"],
2854
+ text: value["text"],
2855
+ parameters: value["parameters"],
2856
+ errorCode: value["errorCode"]
2719
2857
  };
2720
2858
  }
2859
+
2721
2860
  // ../solution-sdk/generated/src/models/ResourceValidationError.ts
2722
2861
  function instanceOfResourceValidationError(value) {
2723
2862
  if (!("resource" in value) || value["resource"] === undefined)
@@ -2965,38 +3104,6 @@ function ExtendedPackageVersionStateToJSON(value) {
2965
3104
  function ExtendedPackageVersionStateToJSONTyped(value, ignoreDiscriminator) {
2966
3105
  return value;
2967
3106
  }
2968
- // ../solution-sdk/generated/src/models/FolderInfo.ts
2969
- function instanceOfFolderInfo(value) {
2970
- if (!("fullyQualifiedName" in value) || value["fullyQualifiedName"] === undefined)
2971
- return false;
2972
- return true;
2973
- }
2974
- function FolderInfoFromJSON(json) {
2975
- return FolderInfoFromJSONTyped(json, false);
2976
- }
2977
- function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
2978
- if (json == null) {
2979
- return json;
2980
- }
2981
- return {
2982
- fullyQualifiedName: json["fullyQualifiedName"],
2983
- path: json["path"] == null ? undefined : json["path"],
2984
- folderKey: json["folderKey"] == null ? undefined : json["folderKey"]
2985
- };
2986
- }
2987
- function FolderInfoToJSON(json) {
2988
- return FolderInfoToJSONTyped(json, false);
2989
- }
2990
- function FolderInfoToJSONTyped(value, ignoreDiscriminator = false) {
2991
- if (value == null) {
2992
- return value;
2993
- }
2994
- return {
2995
- fullyQualifiedName: value["fullyQualifiedName"],
2996
- path: value["path"],
2997
- folderKey: value["folderKey"]
2998
- };
2999
- }
3000
3107
  // ../solution-sdk/generated/src/models/LocationDto.ts
3001
3108
  function instanceOfLocationDto(value) {
3002
3109
  if (!("name" in value) || value["name"] === undefined)
@@ -3281,6 +3388,38 @@ function PackageVersionInfoDtoToJSONTyped(value, ignoreDiscriminator = false) {
3281
3388
  components: PackageVersionComponentsDtoToJSON(value["components"])
3282
3389
  };
3283
3390
  }
3391
+ // ../solution-sdk/generated/src/models/PageInfoDtoOfDeploymentResourceInfo.ts
3392
+ function instanceOfPageInfoDtoOfDeploymentResourceInfo(value) {
3393
+ if (!("count" in value) || value["count"] === undefined)
3394
+ return false;
3395
+ if (!("values" in value) || value["values"] === undefined)
3396
+ return false;
3397
+ return true;
3398
+ }
3399
+ function PageInfoDtoOfDeploymentResourceInfoFromJSON(json) {
3400
+ return PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, false);
3401
+ }
3402
+ function PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json, ignoreDiscriminator) {
3403
+ if (json == null) {
3404
+ return json;
3405
+ }
3406
+ return {
3407
+ count: json["count"],
3408
+ values: json["values"].map(DeploymentResourceInfoFromJSON)
3409
+ };
3410
+ }
3411
+ function PageInfoDtoOfDeploymentResourceInfoToJSON(json) {
3412
+ return PageInfoDtoOfDeploymentResourceInfoToJSONTyped(json, false);
3413
+ }
3414
+ function PageInfoDtoOfDeploymentResourceInfoToJSONTyped(value, ignoreDiscriminator = false) {
3415
+ if (value == null) {
3416
+ return value;
3417
+ }
3418
+ return {
3419
+ count: value["count"],
3420
+ values: value["values"].map(DeploymentResourceInfoToJSON)
3421
+ };
3422
+ }
3284
3423
  // ../solution-sdk/generated/src/models/PageInfoDtoOfDeploymentSearchItemDto2.ts
3285
3424
  function instanceOfPageInfoDtoOfDeploymentSearchItemDto2(value) {
3286
3425
  if (!("count" in value) || value["count"] === undefined)
@@ -3593,6 +3732,35 @@ class ConfigurationsApi extends BaseAPI {
3593
3732
  }
3594
3733
  // ../solution-sdk/generated/src/apis/DeploymentsApi.ts
3595
3734
  class DeploymentsApi extends BaseAPI {
3735
+ async deploymentsDeleteRaw(requestParameters, initOverrides) {
3736
+ if (requestParameters["deploymentKey"] == null) {
3737
+ throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsDelete().');
3738
+ }
3739
+ const queryParameters = {};
3740
+ const headerParameters = {};
3741
+ if (requestParameters["xUipathAsVersion"] != null) {
3742
+ headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
3743
+ }
3744
+ if (this.configuration && this.configuration.accessToken) {
3745
+ const token = this.configuration.accessToken;
3746
+ const tokenString = await token("Bearer", []);
3747
+ if (tokenString) {
3748
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3749
+ }
3750
+ }
3751
+ let urlPath = `/api/deployments/{deploymentKey}`;
3752
+ urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3753
+ const response = await this.request({
3754
+ path: urlPath,
3755
+ method: "DELETE",
3756
+ headers: headerParameters,
3757
+ query: queryParameters
3758
+ }, initOverrides);
3759
+ return new VoidApiResponse(response);
3760
+ }
3761
+ async deploymentsDelete(requestParameters, initOverrides) {
3762
+ await this.deploymentsDeleteRaw(requestParameters, initOverrides);
3763
+ }
3596
3764
  async deploymentsDeployRaw(requestParameters, initOverrides) {
3597
3765
  if (requestParameters["deploymentAutoRequest"] == null) {
3598
3766
  throw new RequiredError("deploymentAutoRequest", 'Required parameter "deploymentAutoRequest" was null or undefined when calling deploymentsDeploy().');
@@ -3657,46 +3825,24 @@ class DeploymentsApi extends BaseAPI {
3657
3825
  const response = await this.deploymentsGetByKeyRaw(requestParameters, initOverrides);
3658
3826
  return await response.value();
3659
3827
  }
3660
- async deploymentsGetValidationResultRaw(requestParameters, initOverrides) {
3828
+ async deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides) {
3661
3829
  if (requestParameters["deploymentKey"] == null) {
3662
- throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetValidationResult().');
3830
+ throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetDeploymentResources().');
3663
3831
  }
3664
3832
  const queryParameters = {};
3665
- if (requestParameters["deploymentAction"] != null) {
3666
- queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
3833
+ if (requestParameters["folderKey"] != null) {
3834
+ queryParameters["folderKey"] = requestParameters["folderKey"];
3667
3835
  }
3668
- const headerParameters = {};
3669
- if (requestParameters["xUipathAsVersion"] != null) {
3670
- headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
3836
+ if (requestParameters["kind"] != null) {
3837
+ queryParameters["kind"] = requestParameters["kind"];
3671
3838
  }
3672
- if (this.configuration && this.configuration.accessToken) {
3673
- const token = this.configuration.accessToken;
3674
- const tokenString = await token("Bearer", []);
3675
- if (tokenString) {
3676
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
3677
- }
3839
+ if (requestParameters["skip"] != null) {
3840
+ queryParameters["skip"] = requestParameters["skip"];
3678
3841
  }
3679
- let urlPath = `/api/deployments/{deploymentKey}/validation-result`;
3680
- urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3681
- const response = await this.request({
3682
- path: urlPath,
3683
- method: "GET",
3684
- headers: headerParameters,
3685
- query: queryParameters
3686
- }, initOverrides);
3687
- return new JSONApiResponse(response, (jsonValue) => DeploymentValidationResultDtoFromJSON(jsonValue));
3688
- }
3689
- async deploymentsGetValidationResult(requestParameters, initOverrides) {
3690
- const response = await this.deploymentsGetValidationResultRaw(requestParameters, initOverrides);
3691
- return await response.value();
3692
- }
3693
- async deploymentsPostRaw(requestParameters, initOverrides) {
3694
- if (requestParameters["deploymentRequest"] == null) {
3695
- throw new RequiredError("deploymentRequest", 'Required parameter "deploymentRequest" was null or undefined when calling deploymentsPost().');
3842
+ if (requestParameters["take"] != null) {
3843
+ queryParameters["take"] = requestParameters["take"];
3696
3844
  }
3697
- const queryParameters = {};
3698
3845
  const headerParameters = {};
3699
- headerParameters["Content-Type"] = "application/json";
3700
3846
  if (requestParameters["xUipathAsVersion"] != null) {
3701
3847
  headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
3702
3848
  }
@@ -3707,25 +3853,28 @@ class DeploymentsApi extends BaseAPI {
3707
3853
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
3708
3854
  }
3709
3855
  }
3710
- let urlPath = `/api/deployments`;
3856
+ let urlPath = `/api/deployments/{deploymentKey}/resources`;
3857
+ urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3711
3858
  const response = await this.request({
3712
3859
  path: urlPath,
3713
- method: "POST",
3860
+ method: "GET",
3714
3861
  headers: headerParameters,
3715
- query: queryParameters,
3716
- body: DeploymentRequestToJSON(requestParameters["deploymentRequest"])
3862
+ query: queryParameters
3717
3863
  }, initOverrides);
3718
- return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
3864
+ return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentResourceInfoFromJSON(jsonValue));
3719
3865
  }
3720
- async deploymentsPost(requestParameters, initOverrides) {
3721
- const response = await this.deploymentsPostRaw(requestParameters, initOverrides);
3866
+ async deploymentsGetDeploymentResources(requestParameters, initOverrides) {
3867
+ const response = await this.deploymentsGetDeploymentResourcesRaw(requestParameters, initOverrides);
3722
3868
  return await response.value();
3723
3869
  }
3724
- async deploymentsRunRaw(requestParameters, initOverrides) {
3870
+ async deploymentsGetValidationResultRaw(requestParameters, initOverrides) {
3725
3871
  if (requestParameters["deploymentKey"] == null) {
3726
- throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsRun().');
3872
+ throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetValidationResult().');
3727
3873
  }
3728
3874
  const queryParameters = {};
3875
+ if (requestParameters["deploymentAction"] != null) {
3876
+ queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
3877
+ }
3729
3878
  const headerParameters = {};
3730
3879
  if (requestParameters["xUipathAsVersion"] != null) {
3731
3880
  headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
@@ -3737,28 +3886,25 @@ class DeploymentsApi extends BaseAPI {
3737
3886
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
3738
3887
  }
3739
3888
  }
3740
- let urlPath = `/api/deployments/{deploymentKey}/run`;
3889
+ let urlPath = `/api/deployments/{deploymentKey}/validation-result`;
3741
3890
  urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3742
3891
  const response = await this.request({
3743
3892
  path: urlPath,
3744
- method: "POST",
3893
+ method: "GET",
3745
3894
  headers: headerParameters,
3746
3895
  query: queryParameters
3747
3896
  }, initOverrides);
3748
- return new JSONApiResponse(response, (jsonValue) => DeploymentRunResponseFromJSON(jsonValue));
3897
+ return new JSONApiResponse(response, (jsonValue) => DeploymentValidationResultDtoFromJSON(jsonValue));
3749
3898
  }
3750
- async deploymentsRun(requestParameters, initOverrides) {
3751
- const response = await this.deploymentsRunRaw(requestParameters, initOverrides);
3899
+ async deploymentsGetValidationResult(requestParameters, initOverrides) {
3900
+ const response = await this.deploymentsGetValidationResultRaw(requestParameters, initOverrides);
3752
3901
  return await response.value();
3753
3902
  }
3754
- async deploymentsUpgradeRaw(requestParameters, initOverrides) {
3755
- if (requestParameters["deploymentKey"] == null) {
3756
- throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsUpgrade().');
3903
+ async deploymentsPostRaw(requestParameters, initOverrides) {
3904
+ if (requestParameters["deploymentRequest"] == null) {
3905
+ throw new RequiredError("deploymentRequest", 'Required parameter "deploymentRequest" was null or undefined when calling deploymentsPost().');
3757
3906
  }
3758
3907
  const queryParameters = {};
3759
- if (requestParameters["packageVersionKey"] != null) {
3760
- queryParameters["packageVersionKey"] = requestParameters["packageVersionKey"];
3761
- }
3762
3908
  const headerParameters = {};
3763
3909
  headerParameters["Content-Type"] = "application/json";
3764
3910
  if (requestParameters["xUipathAsVersion"] != null) {
@@ -3771,19 +3917,18 @@ class DeploymentsApi extends BaseAPI {
3771
3917
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
3772
3918
  }
3773
3919
  }
3774
- let urlPath = `/api/deployments/{deploymentKey}/upgrade`;
3775
- urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
3920
+ let urlPath = `/api/deployments`;
3776
3921
  const response = await this.request({
3777
3922
  path: urlPath,
3778
3923
  method: "POST",
3779
3924
  headers: headerParameters,
3780
3925
  query: queryParameters,
3781
- body: DeploymentUpgradeRequestToJSON(requestParameters["deploymentUpgradeRequest"])
3926
+ body: DeploymentRequestToJSON(requestParameters["deploymentRequest"])
3782
3927
  }, initOverrides);
3783
3928
  return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
3784
3929
  }
3785
- async deploymentsUpgrade(requestParameters, initOverrides) {
3786
- const response = await this.deploymentsUpgradeRaw(requestParameters, initOverrides);
3930
+ async deploymentsPost(requestParameters, initOverrides) {
3931
+ const response = await this.deploymentsPostRaw(requestParameters, initOverrides);
3787
3932
  return await response.value();
3788
3933
  }
3789
3934
  }
@@ -4716,7 +4861,8 @@ var DEFAULT_EXCLUDED_DIR_NAMES = new Set([
4716
4861
  "node_modules",
4717
4862
  "__pycache__",
4718
4863
  ".git",
4719
- ".local"
4864
+ ".local",
4865
+ ".flow-sdk"
4720
4866
  ]);
4721
4867
  var DEFAULT_EXCLUDED_FILE_PATTERNS = [
4722
4868
  /^\.env($|\..+)/
@@ -5080,32 +5226,6 @@ async function buildSolutionPackageFromDir(fs, solutionDir) {
5080
5226
  await fs.rm(stagingDir).catch(() => {});
5081
5227
  }
5082
5228
  }
5083
- // ../solution-sdk/src/deployments-auto-install.ts
5084
- async function deploymentsAutoInstall(config, request, feedFolderKey) {
5085
- const url = `${config.basePath}/api/v2/deployments/auto-install`;
5086
- const response = await fetch(url, {
5087
- method: "POST",
5088
- headers: {
5089
- Authorization: `Bearer ${config.accessToken}`,
5090
- "Content-Type": "application/json",
5091
- "X-UIPATH-FolderKey": feedFolderKey
5092
- },
5093
- body: JSON.stringify(request)
5094
- });
5095
- if (!response.ok) {
5096
- throw new ResponseError(response, "Response returned an error code");
5097
- }
5098
- const text = await response.text();
5099
- if (!text) {
5100
- return {};
5101
- }
5102
- try {
5103
- const parsed = JSON.parse(text);
5104
- return parsed !== null && typeof parsed === "object" ? parsed : {};
5105
- } catch {
5106
- return {};
5107
- }
5108
- }
5109
5229
  // ../solution-sdk/src/project-debug-status.ts
5110
5230
  var SUCCEEDED = "creationsucceeded";
5111
5231
  var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
@@ -5528,6 +5648,14 @@ export {
5528
5648
  DeploymentRequestFromJSONTyped,
5529
5649
  DeploymentRequestToJSON,
5530
5650
  DeploymentRequestToJSONTyped,
5651
+ DeploymentResourceInfoFromJSON,
5652
+ DeploymentResourceInfoFromJSONTyped,
5653
+ DeploymentResourceInfoToJSON,
5654
+ DeploymentResourceInfoToJSONTyped,
5655
+ DeploymentResourceReplacementDtoFromJSON,
5656
+ DeploymentResourceReplacementDtoFromJSONTyped,
5657
+ DeploymentResourceReplacementDtoToJSON,
5658
+ DeploymentResourceReplacementDtoToJSONTyped,
5531
5659
  DeploymentResourceValidationAction,
5532
5660
  DeploymentResourceValidationActionFromJSON,
5533
5661
  DeploymentResourceValidationActionFromJSONTyped,
@@ -5543,10 +5671,6 @@ export {
5543
5671
  DeploymentResourceValidationErrorLevelFromJSONTyped,
5544
5672
  DeploymentResourceValidationErrorLevelToJSON,
5545
5673
  DeploymentResourceValidationErrorLevelToJSONTyped,
5546
- DeploymentRunResponseFromJSON,
5547
- DeploymentRunResponseFromJSONTyped,
5548
- DeploymentRunResponseToJSON,
5549
- DeploymentRunResponseToJSONTyped,
5550
5674
  DeploymentSearchItemDto2FromJSON,
5551
5675
  DeploymentSearchItemDto2FromJSONTyped,
5552
5676
  DeploymentSearchItemDto2ToJSON,
@@ -5561,10 +5685,11 @@ export {
5561
5685
  DeploymentTypeFromJSONTyped,
5562
5686
  DeploymentTypeToJSON,
5563
5687
  DeploymentTypeToJSONTyped,
5564
- DeploymentUpgradeRequestFromJSON,
5565
- DeploymentUpgradeRequestFromJSONTyped,
5566
- DeploymentUpgradeRequestToJSON,
5567
- DeploymentUpgradeRequestToJSONTyped,
5688
+ DeploymentUpgradeState,
5689
+ DeploymentUpgradeStateFromJSON,
5690
+ DeploymentUpgradeStateFromJSONTyped,
5691
+ DeploymentUpgradeStateToJSON,
5692
+ DeploymentUpgradeStateToJSONTyped,
5568
5693
  DeploymentUpgradeType,
5569
5694
  DeploymentUpgradeTypeFromJSON,
5570
5695
  DeploymentUpgradeTypeFromJSONTyped,
@@ -5630,6 +5755,10 @@ export {
5630
5755
  PackageVersionResourceDtoToJSON,
5631
5756
  PackageVersionResourceDtoToJSONTyped,
5632
5757
  PackagesApi,
5758
+ PageInfoDtoOfDeploymentResourceInfoFromJSON,
5759
+ PageInfoDtoOfDeploymentResourceInfoFromJSONTyped,
5760
+ PageInfoDtoOfDeploymentResourceInfoToJSON,
5761
+ PageInfoDtoOfDeploymentResourceInfoToJSONTyped,
5633
5762
  PageInfoDtoOfDeploymentSearchItemDto2FromJSON,
5634
5763
  PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped,
5635
5764
  PageInfoDtoOfDeploymentSearchItemDto2ToJSON,
@@ -5657,6 +5786,11 @@ export {
5657
5786
  ProjectImportStatusToJSONTyped,
5658
5787
  ProjectsApi,
5659
5788
  RequiredError,
5789
+ ResetConfigurationSource,
5790
+ ResetConfigurationSourceFromJSON,
5791
+ ResetConfigurationSourceFromJSONTyped,
5792
+ ResetConfigurationSourceToJSON,
5793
+ ResetConfigurationSourceToJSONTyped,
5660
5794
  ResourceOverwriteFromJSON,
5661
5795
  ResourceOverwriteFromJSONTyped,
5662
5796
  ResourceOverwriteToJSON,
@@ -5715,7 +5849,6 @@ export {
5715
5849
  collectFiles,
5716
5850
  createSolutionManifest,
5717
5851
  createZipFromDir,
5718
- deploymentsAutoInstall,
5719
5852
  exists,
5720
5853
  finalizeZip64,
5721
5854
  findNearestParentUipxFile,
@@ -5734,14 +5867,15 @@ export {
5734
5867
  instanceOfDeploymentOperation,
5735
5868
  instanceOfDeploymentOperationStatus,
5736
5869
  instanceOfDeploymentRequest,
5870
+ instanceOfDeploymentResourceInfo,
5871
+ instanceOfDeploymentResourceReplacementDto,
5737
5872
  instanceOfDeploymentResourceValidationAction,
5738
5873
  instanceOfDeploymentResourceValidationErrorKind,
5739
5874
  instanceOfDeploymentResourceValidationErrorLevel,
5740
- instanceOfDeploymentRunResponse,
5741
5875
  instanceOfDeploymentSearchItemDto2,
5742
5876
  instanceOfDeploymentStatus,
5743
5877
  instanceOfDeploymentType,
5744
- instanceOfDeploymentUpgradeRequest,
5878
+ instanceOfDeploymentUpgradeState,
5745
5879
  instanceOfDeploymentUpgradeType,
5746
5880
  instanceOfDeploymentValidationResultDto,
5747
5881
  instanceOfDeploymentsSearchRequest2,
@@ -5756,12 +5890,14 @@ export {
5756
5890
  instanceOfPackageVersionInfoDto,
5757
5891
  instanceOfPackageVersionOrigin,
5758
5892
  instanceOfPackageVersionResourceDto,
5893
+ instanceOfPageInfoDtoOfDeploymentResourceInfo,
5759
5894
  instanceOfPageInfoDtoOfDeploymentSearchItemDto2,
5760
5895
  instanceOfPageInfoDtoOfPackageInfo,
5761
5896
  instanceOfProblemDetails,
5762
5897
  instanceOfProjectCreateRequest,
5763
5898
  instanceOfProjectDto,
5764
5899
  instanceOfProjectImportStatus,
5900
+ instanceOfResetConfigurationSource,
5765
5901
  instanceOfResourceOverwrite,
5766
5902
  instanceOfResourceStats,
5767
5903
  instanceOfResourceValidationDto,
@@ -5794,4 +5930,4 @@ export {
5794
5930
  uploadOrOverwriteSolution
5795
5931
  };
5796
5932
 
5797
- //# debugId=5B4A8AC57B70C35B64756E2164756E21
5933
+ //# debugId=BBF55DB6327A3C0664756E2164756E21