@uipath/maestro-tool 0.1.9 → 0.1.10

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 (2) hide show
  1. package/dist/tool.js +758 -368
  2. package/package.json +3 -3
package/dist/tool.js CHANGED
@@ -168,19 +168,19 @@ toolsFactoryRepository.registerProjectToolFactory(new BpmnToolFactory);
168
168
  // package.json
169
169
  var package_default = {
170
170
  name: "@uipath/maestro-tool",
171
- version: "0.1.9",
171
+ version: "0.1.10",
172
172
  description: "Create, debug, and run Maestro projects and jobs.",
173
173
  private: false,
174
174
  repository: {
175
175
  type: "git",
176
- url: "https://github.com/UiPath/uipcli.git",
176
+ url: "https://github.com/UiPath/cli.git",
177
177
  directory: "packages/maestro-tool"
178
178
  },
179
179
  publishConfig: {
180
180
  registry: "https://registry.npmjs.org/"
181
181
  },
182
182
  keywords: [
183
- "uipcli-tool"
183
+ "cli-tool"
184
184
  ],
185
185
  type: "module",
186
186
  main: "./dist/tool.js",
@@ -223,9 +223,9 @@ var package_default = {
223
223
  import { getLoginStatusAsync as getLoginStatusAsync3 } from "@uipath/auth";
224
224
  import {
225
225
  catchError as catchError7,
226
- logger as logger5,
226
+ logger as logger7,
227
227
  OutputFormatter as OutputFormatter2,
228
- processContext
228
+ processContext as processContext2
229
229
  } from "@uipath/common";
230
230
 
231
231
  // src/services/maestro-api.ts
@@ -460,6 +460,13 @@ function querystringSingleKey(key, value, keyPrefix = "") {
460
460
  }
461
461
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
462
462
  }
463
+ function mapValues(data, fn) {
464
+ const result = {};
465
+ for (const key of Object.keys(data)) {
466
+ result[key] = fn(data[key]);
467
+ }
468
+ return result;
469
+ }
463
470
  class JSONApiResponse {
464
471
  raw;
465
472
  transformer;
@@ -718,6 +725,38 @@ function ResourceOverwriteDtoToJSONTyped(value, ignoreDiscriminator = false) {
718
725
  };
719
726
  }
720
727
 
728
+ // ../orchestrator-sdk/generated/src/models/TestAutomationJobDto.ts
729
+ function TestAutomationJobDtoToJSON(json) {
730
+ return TestAutomationJobDtoToJSONTyped(json, false);
731
+ }
732
+ function TestAutomationJobDtoToJSONTyped(value, ignoreDiscriminator = false) {
733
+ if (value == null) {
734
+ return value;
735
+ }
736
+ return {
737
+ key: value["key"],
738
+ releaseId: value["releaseId"],
739
+ releaseVersionId: value["releaseVersionId"],
740
+ inputArguments: value["inputArguments"],
741
+ entryPointPath: value["entryPointPath"],
742
+ robotId: value["robotId"]
743
+ };
744
+ }
745
+
746
+ // ../orchestrator-sdk/generated/src/models/CreateTestAutomationJobsRequest.ts
747
+ function CreateTestAutomationJobsRequestToJSON(json) {
748
+ return CreateTestAutomationJobsRequestToJSONTyped(json, false);
749
+ }
750
+ function CreateTestAutomationJobsRequestToJSONTyped(value, ignoreDiscriminator = false) {
751
+ if (value == null) {
752
+ return value;
753
+ }
754
+ return {
755
+ batchExecutionKey: value["batchExecutionKey"],
756
+ jobs: value["jobs"] == null ? undefined : value["jobs"].map(TestAutomationJobDtoToJSON)
757
+ };
758
+ }
759
+
721
760
  // ../orchestrator-sdk/generated/src/models/CurrentUserFolderDto.ts
722
761
  function CurrentUserFolderDtoFromJSON(json) {
723
762
  return CurrentUserFolderDtoFromJSONTyped(json, false);
@@ -738,6 +777,51 @@ function CurrentUserFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
738
777
  };
739
778
  }
740
779
 
780
+ // ../orchestrator-sdk/generated/src/models/UserJobDto.ts
781
+ function UserJobDtoFromJSON(json) {
782
+ return UserJobDtoFromJSONTyped(json, false);
783
+ }
784
+ function UserJobDtoFromJSONTyped(json, ignoreDiscriminator) {
785
+ if (json == null) {
786
+ return json;
787
+ }
788
+ return {
789
+ key: json["key"] == null ? undefined : json["key"],
790
+ packageId: json["packageId"] == null ? undefined : json["packageId"],
791
+ processName: json["processName"] == null ? undefined : json["processName"],
792
+ packageVersion: json["packageVersion"] == null ? undefined : json["packageVersion"],
793
+ processKey: json["processKey"] == null ? undefined : json["processKey"],
794
+ state: json["state"] == null ? undefined : json["state"],
795
+ startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
796
+ endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
797
+ creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
798
+ folderId: json["folderId"] == null ? undefined : json["folderId"],
799
+ fullyQualifiedFolderName: json["fullyQualifiedFolderName"] == null ? undefined : json["fullyQualifiedFolderName"],
800
+ source: json["source"] == null ? undefined : json["source"],
801
+ info: json["info"] == null ? undefined : json["info"],
802
+ hasVideoRecorded: json["hasVideoRecorded"] == null ? undefined : json["hasVideoRecorded"],
803
+ hostMachineName: json["hostMachineName"] == null ? undefined : json["hostMachineName"],
804
+ outputArguments: json["outputArguments"] == null ? undefined : json["outputArguments"],
805
+ id: json["id"] == null ? undefined : json["id"]
806
+ };
807
+ }
808
+
809
+ // ../orchestrator-sdk/generated/src/models/CursorPaginationResultOfUserJobDto.ts
810
+ function CursorPaginationResultOfUserJobDtoFromJSON(json) {
811
+ return CursorPaginationResultOfUserJobDtoFromJSONTyped(json, false);
812
+ }
813
+ function CursorPaginationResultOfUserJobDtoFromJSONTyped(json, ignoreDiscriminator) {
814
+ if (json == null) {
815
+ return json;
816
+ }
817
+ return {
818
+ count: json["count"] == null ? undefined : json["count"],
819
+ result: json["result"] == null ? undefined : json["result"].map(UserJobDtoFromJSON),
820
+ nextCursor: json["nextCursor"] == null ? undefined : json["nextCursor"],
821
+ prevCursor: json["prevCursor"] == null ? undefined : json["prevCursor"]
822
+ };
823
+ }
824
+
741
825
  // ../orchestrator-sdk/generated/src/models/FolderRolesDto.ts
742
826
  function FolderRolesDtoToJSON(json) {
743
827
  return FolderRolesDtoToJSONTyped(json, false);
@@ -784,6 +868,20 @@ function EntityCountDtoFromJSONTyped(json, ignoreDiscriminator) {
784
868
  };
785
869
  }
786
870
 
871
+ // ../orchestrator-sdk/generated/src/models/EntityHasExecutionMedia.ts
872
+ function EntityHasExecutionMediaFromJSON(json) {
873
+ return EntityHasExecutionMediaFromJSONTyped(json, false);
874
+ }
875
+ function EntityHasExecutionMediaFromJSONTyped(json, ignoreDiscriminator) {
876
+ if (json == null) {
877
+ return json;
878
+ }
879
+ return {
880
+ hasScreenshotsRecorded: json["hasScreenshotsRecorded"] == null ? undefined : json["hasScreenshotsRecorded"],
881
+ hasVideoRecorded: json["hasVideoRecorded"] == null ? undefined : json["hasVideoRecorded"]
882
+ };
883
+ }
884
+
787
885
  // ../orchestrator-sdk/generated/src/models/EntitySummaryDto.ts
788
886
  function EntitySummaryDtoFromJSON(json) {
789
887
  return EntitySummaryDtoFromJSONTyped(json, false);
@@ -989,6 +1087,20 @@ function EnvironmentDtoToJSONTyped2(value, ignoreDiscriminator = false) {
989
1087
  };
990
1088
  }
991
1089
 
1090
+ // ../orchestrator-sdk/generated/src/models/UpdatePolicyDto.ts
1091
+ function UpdatePolicyDtoFromJSON(json) {
1092
+ return UpdatePolicyDtoFromJSONTyped(json, false);
1093
+ }
1094
+ function UpdatePolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
1095
+ if (json == null) {
1096
+ return json;
1097
+ }
1098
+ return {
1099
+ type: json["Type"] == null ? undefined : json["Type"],
1100
+ specificVersion: json["SpecificVersion"] == null ? undefined : json["SpecificVersion"]
1101
+ };
1102
+ }
1103
+
992
1104
  // ../orchestrator-sdk/generated/src/models/ExportModel.ts
993
1105
  function ExportModelFromJSON(json) {
994
1106
  return ExportModelFromJSONTyped(json, false);
@@ -1035,6 +1147,84 @@ function ExtendedFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
1035
1147
  };
1036
1148
  }
1037
1149
 
1150
+ // ../orchestrator-sdk/generated/src/models/MachineVpnSettingsDto.ts
1151
+ function MachineVpnSettingsDtoFromJSON(json) {
1152
+ return MachineVpnSettingsDtoFromJSONTyped(json, false);
1153
+ }
1154
+ function MachineVpnSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
1155
+ if (json == null) {
1156
+ return json;
1157
+ }
1158
+ return {
1159
+ cidr: json["cidr"] == null ? undefined : json["cidr"]
1160
+ };
1161
+ }
1162
+
1163
+ // ../orchestrator-sdk/generated/src/models/MaintenanceWindowDto.ts
1164
+ function MaintenanceWindowDtoFromJSON(json) {
1165
+ return MaintenanceWindowDtoFromJSONTyped(json, false);
1166
+ }
1167
+ function MaintenanceWindowDtoFromJSONTyped(json, ignoreDiscriminator) {
1168
+ if (json == null) {
1169
+ return json;
1170
+ }
1171
+ return {
1172
+ enabled: json["enabled"] == null ? undefined : json["enabled"],
1173
+ jobStopStrategy: json["jobStopStrategy"] == null ? undefined : json["jobStopStrategy"],
1174
+ cronExpression: json["cronExpression"] == null ? undefined : json["cronExpression"],
1175
+ timezoneId: json["timezoneId"] == null ? undefined : json["timezoneId"],
1176
+ duration: json["duration"] == null ? undefined : json["duration"],
1177
+ nextExecutionTime: json["nextExecutionTime"] == null ? undefined : new Date(json["nextExecutionTime"])
1178
+ };
1179
+ }
1180
+
1181
+ // ../orchestrator-sdk/generated/src/models/UpdateInfoDto.ts
1182
+ function UpdateInfoDtoFromJSON(json) {
1183
+ return UpdateInfoDtoFromJSONTyped(json, false);
1184
+ }
1185
+ function UpdateInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
1186
+ if (json == null) {
1187
+ return json;
1188
+ }
1189
+ return {
1190
+ updateStatus: json["updateStatus"] == null ? undefined : json["updateStatus"],
1191
+ reason: json["reason"] == null ? undefined : json["reason"],
1192
+ targetUpdateVersion: json["targetUpdateVersion"] == null ? undefined : json["targetUpdateVersion"],
1193
+ isCommunity: json["isCommunity"] == null ? undefined : json["isCommunity"],
1194
+ statusInfo: json["statusInfo"] == null ? undefined : json["statusInfo"]
1195
+ };
1196
+ }
1197
+
1198
+ // ../orchestrator-sdk/generated/src/models/MachinesRobotVersionDto.ts
1199
+ function MachinesRobotVersionDtoFromJSON(json) {
1200
+ return MachinesRobotVersionDtoFromJSONTyped(json, false);
1201
+ }
1202
+ function MachinesRobotVersionDtoFromJSONTyped(json, ignoreDiscriminator) {
1203
+ if (json == null) {
1204
+ return json;
1205
+ }
1206
+ return {
1207
+ count: json["Count"] == null ? undefined : json["Count"],
1208
+ version: json["Version"] == null ? undefined : json["Version"],
1209
+ machineId: json["MachineId"] == null ? undefined : json["MachineId"]
1210
+ };
1211
+ }
1212
+
1213
+ // ../orchestrator-sdk/generated/src/models/RobotUserDto.ts
1214
+ function RobotUserDtoFromJSON(json) {
1215
+ return RobotUserDtoFromJSONTyped(json, false);
1216
+ }
1217
+ function RobotUserDtoFromJSONTyped(json, ignoreDiscriminator) {
1218
+ if (json == null) {
1219
+ return json;
1220
+ }
1221
+ return {
1222
+ userName: json["UserName"] == null ? undefined : json["UserName"],
1223
+ robotId: json["RobotId"],
1224
+ hasTriggers: json["HasTriggers"] == null ? undefined : json["HasTriggers"]
1225
+ };
1226
+ }
1227
+
1038
1228
  // ../orchestrator-sdk/generated/src/models/ExtendedResourceOverwriteDto.ts
1039
1229
  function ExtendedResourceOverwriteDtoToJSON(json) {
1040
1230
  return ExtendedResourceOverwriteDtoToJSONTyped(json, false);
@@ -1055,6 +1245,69 @@ function ExtendedResourceOverwriteDtoToJSONTyped(value, ignoreDiscriminator = fa
1055
1245
  };
1056
1246
  }
1057
1247
 
1248
+ // ../orchestrator-sdk/generated/src/models/UserRoleDto.ts
1249
+ function UserRoleDtoFromJSON(json) {
1250
+ return UserRoleDtoFromJSONTyped(json, false);
1251
+ }
1252
+ function UserRoleDtoFromJSONTyped(json, ignoreDiscriminator) {
1253
+ if (json == null) {
1254
+ return json;
1255
+ }
1256
+ return {
1257
+ userId: json["UserId"] == null ? undefined : json["UserId"],
1258
+ roleId: json["RoleId"] == null ? undefined : json["RoleId"],
1259
+ userName: json["UserName"] == null ? undefined : json["UserName"],
1260
+ roleName: json["RoleName"] == null ? undefined : json["RoleName"],
1261
+ roleType: json["RoleType"] == null ? undefined : json["RoleType"],
1262
+ id: json["Id"] == null ? undefined : json["Id"]
1263
+ };
1264
+ }
1265
+
1266
+ // ../orchestrator-sdk/generated/src/models/FolderDto.ts
1267
+ function FolderDtoFromJSON(json) {
1268
+ return FolderDtoFromJSONTyped(json, false);
1269
+ }
1270
+ function FolderDtoFromJSONTyped(json, ignoreDiscriminator) {
1271
+ if (json == null) {
1272
+ return json;
1273
+ }
1274
+ return {
1275
+ key: json["Key"] == null ? undefined : json["Key"],
1276
+ displayName: json["DisplayName"],
1277
+ fullyQualifiedName: json["FullyQualifiedName"] == null ? undefined : json["FullyQualifiedName"],
1278
+ description: json["Description"] == null ? undefined : json["Description"],
1279
+ folderType: json["FolderType"] == null ? undefined : json["FolderType"],
1280
+ isPersonal: json["IsPersonal"] == null ? undefined : json["IsPersonal"],
1281
+ provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
1282
+ permissionModel: json["PermissionModel"] == null ? undefined : json["PermissionModel"],
1283
+ parentId: json["ParentId"] == null ? undefined : json["ParentId"],
1284
+ parentKey: json["ParentKey"] == null ? undefined : json["ParentKey"],
1285
+ feedType: json["FeedType"] == null ? undefined : json["FeedType"],
1286
+ id: json["Id"] == null ? undefined : json["Id"]
1287
+ };
1288
+ }
1289
+ function FolderDtoToJSON(json) {
1290
+ return FolderDtoToJSONTyped(json, false);
1291
+ }
1292
+ function FolderDtoToJSONTyped(value, ignoreDiscriminator = false) {
1293
+ if (value == null) {
1294
+ return value;
1295
+ }
1296
+ return {
1297
+ Key: value["key"],
1298
+ DisplayName: value["displayName"],
1299
+ FullyQualifiedName: value["fullyQualifiedName"],
1300
+ Description: value["description"],
1301
+ FolderType: value["folderType"],
1302
+ ProvisionType: value["provisionType"],
1303
+ PermissionModel: value["permissionModel"],
1304
+ ParentId: value["parentId"],
1305
+ ParentKey: value["parentKey"],
1306
+ FeedType: value["feedType"],
1307
+ Id: value["id"]
1308
+ };
1309
+ }
1310
+
1058
1311
  // ../orchestrator-sdk/generated/src/models/FireTriggersForTasksRequest.ts
1059
1312
  function FireTriggersForTasksRequestToJSON(json) {
1060
1313
  return FireTriggersForTasksRequestToJSONTyped(json, false);
@@ -1207,51 +1460,6 @@ function FolderAssignmentsDtoFromJSONTyped(json, ignoreDiscriminator) {
1207
1460
  };
1208
1461
  }
1209
1462
 
1210
- // ../orchestrator-sdk/generated/src/models/FolderDto.ts
1211
- function FolderDtoFromJSON(json) {
1212
- return FolderDtoFromJSONTyped(json, false);
1213
- }
1214
- function FolderDtoFromJSONTyped(json, ignoreDiscriminator) {
1215
- if (json == null) {
1216
- return json;
1217
- }
1218
- return {
1219
- key: json["Key"] == null ? undefined : json["Key"],
1220
- displayName: json["DisplayName"],
1221
- fullyQualifiedName: json["FullyQualifiedName"] == null ? undefined : json["FullyQualifiedName"],
1222
- description: json["Description"] == null ? undefined : json["Description"],
1223
- folderType: json["FolderType"] == null ? undefined : json["FolderType"],
1224
- isPersonal: json["IsPersonal"] == null ? undefined : json["IsPersonal"],
1225
- provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
1226
- permissionModel: json["PermissionModel"] == null ? undefined : json["PermissionModel"],
1227
- parentId: json["ParentId"] == null ? undefined : json["ParentId"],
1228
- parentKey: json["ParentKey"] == null ? undefined : json["ParentKey"],
1229
- feedType: json["FeedType"] == null ? undefined : json["FeedType"],
1230
- id: json["Id"] == null ? undefined : json["Id"]
1231
- };
1232
- }
1233
- function FolderDtoToJSON(json) {
1234
- return FolderDtoToJSONTyped(json, false);
1235
- }
1236
- function FolderDtoToJSONTyped(value, ignoreDiscriminator = false) {
1237
- if (value == null) {
1238
- return value;
1239
- }
1240
- return {
1241
- Key: value["key"],
1242
- DisplayName: value["displayName"],
1243
- FullyQualifiedName: value["fullyQualifiedName"],
1244
- Description: value["description"],
1245
- FolderType: value["folderType"],
1246
- ProvisionType: value["provisionType"],
1247
- PermissionModel: value["permissionModel"],
1248
- ParentId: value["parentId"],
1249
- ParentKey: value["parentKey"],
1250
- FeedType: value["feedType"],
1251
- Id: value["id"]
1252
- };
1253
- }
1254
-
1255
1463
  // ../orchestrator-sdk/generated/src/models/FolderIdentifier.ts
1256
1464
  function FolderIdentifierFromJSON(json) {
1257
1465
  return FolderIdentifierFromJSONTyped(json, false);
@@ -1377,6 +1585,38 @@ function GetReleasesBindingsRequestToJSONTyped(value, ignoreDiscriminator = fals
1377
1585
  };
1378
1586
  }
1379
1587
 
1588
+ // ../orchestrator-sdk/generated/src/models/HierarchyJobDto.ts
1589
+ function HierarchyJobDtoFromJSON(json) {
1590
+ return HierarchyJobDtoFromJSONTyped(json, false);
1591
+ }
1592
+ function HierarchyJobDtoFromJSONTyped(json, ignoreDiscriminator) {
1593
+ if (json == null) {
1594
+ return json;
1595
+ }
1596
+ return {
1597
+ key: json["key"] == null ? undefined : json["key"],
1598
+ parentJobKey: json["parentJobKey"] == null ? undefined : json["parentJobKey"],
1599
+ processType: json["processType"] == null ? undefined : json["processType"],
1600
+ state: json["state"] == null ? undefined : json["state"],
1601
+ startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
1602
+ endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
1603
+ machineName: json["machineName"] == null ? undefined : json["machineName"],
1604
+ hostMachineName: json["hostMachineName"] == null ? undefined : json["hostMachineName"],
1605
+ priority: json["priority"] == null ? undefined : json["priority"],
1606
+ specificPriorityValue: json["specificPriorityValue"] == null ? undefined : json["specificPriorityValue"],
1607
+ runtimeType: json["runtimeType"] == null ? undefined : json["runtimeType"],
1608
+ type: json["type"] == null ? undefined : json["type"],
1609
+ serverlessJobType: json["serverlessJobType"] == null ? undefined : json["serverlessJobType"],
1610
+ entryPointPath: json["entryPointPath"] == null ? undefined : json["entryPointPath"],
1611
+ source: json["source"] == null ? undefined : json["source"],
1612
+ sourceType: json["sourceType"] == null ? undefined : json["sourceType"],
1613
+ folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
1614
+ folderName: json["folderName"] == null ? undefined : json["folderName"],
1615
+ releaseName: json["releaseName"] == null ? undefined : json["releaseName"],
1616
+ releaseKey: json["releaseKey"] == null ? undefined : json["releaseKey"]
1617
+ };
1618
+ }
1619
+
1380
1620
  // ../orchestrator-sdk/generated/src/models/JobArgumentsSchemaDto.ts
1381
1621
  function JobArgumentsSchemaDtoFromJSON(json) {
1382
1622
  return JobArgumentsSchemaDtoFromJSONTyped(json, false);
@@ -1543,111 +1783,37 @@ function SimpleReleaseDtoFromJSONTyped(json, ignoreDiscriminator) {
1543
1783
  supportsMultipleEntryPoints: json["SupportsMultipleEntryPoints"] == null ? undefined : json["SupportsMultipleEntryPoints"],
1544
1784
  requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
1545
1785
  isConversational: json["IsConversational"] == null ? undefined : json["IsConversational"],
1786
+ slug: json["Slug"] == null ? undefined : json["Slug"],
1546
1787
  minRequiredRobotVersion: json["MinRequiredRobotVersion"] == null ? undefined : json["MinRequiredRobotVersion"],
1547
- isAttended: json["IsAttended"] == null ? undefined : json["IsAttended"],
1548
- isCompiled: json["IsCompiled"] == null ? undefined : json["IsCompiled"],
1549
- automationHubIdeaUrl: json["AutomationHubIdeaUrl"] == null ? undefined : json["AutomationHubIdeaUrl"],
1550
- currentVersion: json["CurrentVersion"] == null ? undefined : ReleaseVersionDtoFromJSON(json["CurrentVersion"]),
1551
- releaseVersions: json["ReleaseVersions"] == null ? undefined : json["ReleaseVersions"].map(ReleaseVersionDtoFromJSON),
1552
- arguments: json["Arguments"] == null ? undefined : ArgumentMetadataFromJSON(json["Arguments"]),
1553
- processSettings: json["ProcessSettings"] == null ? undefined : ProcessSettingsDtoFromJSON(json["ProcessSettings"]),
1554
- videoRecordingSettings: json["VideoRecordingSettings"] == null ? undefined : VideoRecordingSettingsDtoFromJSON(json["VideoRecordingSettings"]),
1555
- autoUpdate: json["AutoUpdate"] == null ? undefined : json["AutoUpdate"],
1556
- hiddenForAttendedUser: json["HiddenForAttendedUser"] == null ? undefined : json["HiddenForAttendedUser"],
1557
- feedId: json["FeedId"] == null ? undefined : json["FeedId"],
1558
- jobPriority: json["JobPriority"] == null ? undefined : json["JobPriority"],
1559
- specificPriorityValue: json["SpecificPriorityValue"] == null ? undefined : json["SpecificPriorityValue"],
1560
- folderKey: json["FolderKey"] == null ? undefined : json["FolderKey"],
1561
- organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
1562
- organizationUnitFullyQualifiedName: json["OrganizationUnitFullyQualifiedName"] == null ? undefined : json["OrganizationUnitFullyQualifiedName"],
1563
- targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
1564
- robotSize: json["RobotSize"] == null ? undefined : json["RobotSize"],
1565
- tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
1566
- resourceOverwrites: json["ResourceOverwrites"] == null ? undefined : json["ResourceOverwrites"].map(ResourceOverwriteDtoFromJSON),
1567
- autoCreateConnectedTriggers: json["AutoCreateConnectedTriggers"] == null ? undefined : json["AutoCreateConnectedTriggers"],
1568
- remoteControlAccess: json["RemoteControlAccess"] == null ? undefined : json["RemoteControlAccess"],
1569
- targetRuntime: json["TargetRuntime"] == null ? undefined : json["TargetRuntime"],
1570
- publisherLicense: json["PublisherLicense"] == null ? undefined : json["PublisherLicense"],
1571
- lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
1572
- lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
1573
- creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
1574
- creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
1575
- id: json["Id"] == null ? undefined : json["Id"]
1576
- };
1577
- }
1578
-
1579
- // ../orchestrator-sdk/generated/src/models/MachineVpnSettingsDto.ts
1580
- function MachineVpnSettingsDtoFromJSON(json) {
1581
- return MachineVpnSettingsDtoFromJSONTyped(json, false);
1582
- }
1583
- function MachineVpnSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
1584
- if (json == null) {
1585
- return json;
1586
- }
1587
- return {
1588
- cidr: json["cidr"] == null ? undefined : json["cidr"]
1589
- };
1590
- }
1591
-
1592
- // ../orchestrator-sdk/generated/src/models/MaintenanceWindowDto.ts
1593
- function MaintenanceWindowDtoFromJSON(json) {
1594
- return MaintenanceWindowDtoFromJSONTyped(json, false);
1595
- }
1596
- function MaintenanceWindowDtoFromJSONTyped(json, ignoreDiscriminator) {
1597
- if (json == null) {
1598
- return json;
1599
- }
1600
- return {
1601
- enabled: json["enabled"] == null ? undefined : json["enabled"],
1602
- jobStopStrategy: json["jobStopStrategy"] == null ? undefined : json["jobStopStrategy"],
1603
- cronExpression: json["cronExpression"] == null ? undefined : json["cronExpression"],
1604
- timezoneId: json["timezoneId"] == null ? undefined : json["timezoneId"],
1605
- duration: json["duration"] == null ? undefined : json["duration"],
1606
- nextExecutionTime: json["nextExecutionTime"] == null ? undefined : new Date(json["nextExecutionTime"])
1607
- };
1608
- }
1609
-
1610
- // ../orchestrator-sdk/generated/src/models/MachinesRobotVersionDto.ts
1611
- function MachinesRobotVersionDtoFromJSON(json) {
1612
- return MachinesRobotVersionDtoFromJSONTyped(json, false);
1613
- }
1614
- function MachinesRobotVersionDtoFromJSONTyped(json, ignoreDiscriminator) {
1615
- if (json == null) {
1616
- return json;
1617
- }
1618
- return {
1619
- count: json["Count"] == null ? undefined : json["Count"],
1620
- version: json["Version"] == null ? undefined : json["Version"],
1621
- machineId: json["MachineId"] == null ? undefined : json["MachineId"]
1622
- };
1623
- }
1624
-
1625
- // ../orchestrator-sdk/generated/src/models/UpdatePolicyDto.ts
1626
- function UpdatePolicyDtoFromJSON(json) {
1627
- return UpdatePolicyDtoFromJSONTyped(json, false);
1628
- }
1629
- function UpdatePolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
1630
- if (json == null) {
1631
- return json;
1632
- }
1633
- return {
1634
- type: json["Type"] == null ? undefined : json["Type"],
1635
- specificVersion: json["SpecificVersion"] == null ? undefined : json["SpecificVersion"]
1636
- };
1637
- }
1638
-
1639
- // ../orchestrator-sdk/generated/src/models/RobotUserDto.ts
1640
- function RobotUserDtoFromJSON(json) {
1641
- return RobotUserDtoFromJSONTyped(json, false);
1642
- }
1643
- function RobotUserDtoFromJSONTyped(json, ignoreDiscriminator) {
1644
- if (json == null) {
1645
- return json;
1646
- }
1647
- return {
1648
- userName: json["UserName"] == null ? undefined : json["UserName"],
1649
- robotId: json["RobotId"],
1650
- hasTriggers: json["HasTriggers"] == null ? undefined : json["HasTriggers"]
1788
+ isAttended: json["IsAttended"] == null ? undefined : json["IsAttended"],
1789
+ isCompiled: json["IsCompiled"] == null ? undefined : json["IsCompiled"],
1790
+ automationHubIdeaUrl: json["AutomationHubIdeaUrl"] == null ? undefined : json["AutomationHubIdeaUrl"],
1791
+ currentVersion: json["CurrentVersion"] == null ? undefined : ReleaseVersionDtoFromJSON(json["CurrentVersion"]),
1792
+ releaseVersions: json["ReleaseVersions"] == null ? undefined : json["ReleaseVersions"].map(ReleaseVersionDtoFromJSON),
1793
+ arguments: json["Arguments"] == null ? undefined : ArgumentMetadataFromJSON(json["Arguments"]),
1794
+ processSettings: json["ProcessSettings"] == null ? undefined : ProcessSettingsDtoFromJSON(json["ProcessSettings"]),
1795
+ videoRecordingSettings: json["VideoRecordingSettings"] == null ? undefined : VideoRecordingSettingsDtoFromJSON(json["VideoRecordingSettings"]),
1796
+ autoUpdate: json["AutoUpdate"] == null ? undefined : json["AutoUpdate"],
1797
+ hiddenForAttendedUser: json["HiddenForAttendedUser"] == null ? undefined : json["HiddenForAttendedUser"],
1798
+ feedId: json["FeedId"] == null ? undefined : json["FeedId"],
1799
+ jobPriority: json["JobPriority"] == null ? undefined : json["JobPriority"],
1800
+ specificPriorityValue: json["SpecificPriorityValue"] == null ? undefined : json["SpecificPriorityValue"],
1801
+ folderKey: json["FolderKey"] == null ? undefined : json["FolderKey"],
1802
+ organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
1803
+ organizationUnitFullyQualifiedName: json["OrganizationUnitFullyQualifiedName"] == null ? undefined : json["OrganizationUnitFullyQualifiedName"],
1804
+ targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
1805
+ robotSize: json["RobotSize"] == null ? undefined : json["RobotSize"],
1806
+ tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
1807
+ resourceOverwrites: json["ResourceOverwrites"] == null ? undefined : json["ResourceOverwrites"].map(ResourceOverwriteDtoFromJSON),
1808
+ autoCreateConnectedTriggers: json["AutoCreateConnectedTriggers"] == null ? undefined : json["AutoCreateConnectedTriggers"],
1809
+ remoteControlAccess: json["RemoteControlAccess"] == null ? undefined : json["RemoteControlAccess"],
1810
+ targetRuntime: json["TargetRuntime"] == null ? undefined : json["TargetRuntime"],
1811
+ publisherLicense: json["PublisherLicense"] == null ? undefined : json["PublisherLicense"],
1812
+ lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
1813
+ lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
1814
+ creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
1815
+ creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
1816
+ id: json["Id"] == null ? undefined : json["Id"]
1651
1817
  };
1652
1818
  }
1653
1819
 
@@ -1779,20 +1945,67 @@ function JobMachineInfraTargetDtoToJSONTyped(value, ignoreDiscriminator = false)
1779
1945
  };
1780
1946
  }
1781
1947
 
1782
- // ../orchestrator-sdk/generated/src/models/UpdateInfoDto.ts
1783
- function UpdateInfoDtoFromJSON(json) {
1784
- return UpdateInfoDtoFromJSONTyped(json, false);
1948
+ // ../orchestrator-sdk/generated/src/models/JobStateChangeDto.ts
1949
+ function JobStateChangeDtoFromJSON(json) {
1950
+ return JobStateChangeDtoFromJSONTyped(json, false);
1785
1951
  }
1786
- function UpdateInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
1952
+ function JobStateChangeDtoFromJSONTyped(json, ignoreDiscriminator) {
1787
1953
  if (json == null) {
1788
1954
  return json;
1789
1955
  }
1790
1956
  return {
1791
- updateStatus: json["updateStatus"] == null ? undefined : json["updateStatus"],
1792
- reason: json["reason"] == null ? undefined : json["reason"],
1793
- targetUpdateVersion: json["targetUpdateVersion"] == null ? undefined : json["targetUpdateVersion"],
1794
- isCommunity: json["isCommunity"] == null ? undefined : json["isCommunity"],
1795
- statusInfo: json["statusInfo"] == null ? undefined : json["statusInfo"]
1957
+ jobId: json["jobId"] == null ? undefined : json["jobId"],
1958
+ creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
1959
+ state: json["state"] == null ? undefined : json["state"],
1960
+ previousState: json["previousState"] == null ? undefined : json["previousState"],
1961
+ subState: json["subState"] == null ? undefined : json["subState"],
1962
+ resumeItemKey: json["resumeItemKey"] == null ? undefined : json["resumeItemKey"],
1963
+ resumeItemType: json["resumeItemType"] == null ? undefined : json["resumeItemType"]
1964
+ };
1965
+ }
1966
+
1967
+ // ../orchestrator-sdk/generated/src/models/JobStatusOutputInfo.ts
1968
+ function JobStatusOutputInfoFromJSON(json) {
1969
+ return JobStatusOutputInfoFromJSONTyped(json, false);
1970
+ }
1971
+ function JobStatusOutputInfoFromJSONTyped(json, ignoreDiscriminator) {
1972
+ if (json == null) {
1973
+ return json;
1974
+ }
1975
+ return {
1976
+ id: json["id"] == null ? undefined : json["id"],
1977
+ key: json["key"] == null ? undefined : json["key"],
1978
+ state: json["state"] == null ? undefined : json["state"],
1979
+ startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
1980
+ endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
1981
+ creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
1982
+ hostMachineName: json["hostMachineName"] == null ? undefined : json["hostMachineName"],
1983
+ organizationUnitId: json["organizationUnitId"] == null ? undefined : json["organizationUnitId"],
1984
+ startingTriggerId: json["startingTriggerId"] == null ? undefined : json["startingTriggerId"],
1985
+ outputArguments: json["outputArguments"] == null ? undefined : json["outputArguments"],
1986
+ info: json["info"] == null ? undefined : json["info"],
1987
+ parentOperationId: json["parentOperationId"] == null ? undefined : json["parentOperationId"],
1988
+ runtimeErrorCode: json["runtimeErrorCode"] == null ? undefined : json["runtimeErrorCode"],
1989
+ targetFramework: json["targetFramework"] == null ? undefined : json["targetFramework"],
1990
+ processName: json["processName"] == null ? undefined : json["processName"],
1991
+ processVersion: json["processVersion"] == null ? undefined : json["processVersion"],
1992
+ folderFullyQualifiedName: json["folderFullyQualifiedName"] == null ? undefined : json["folderFullyQualifiedName"],
1993
+ folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
1994
+ creatorUserKey: json["creatorUserKey"] == null ? undefined : json["creatorUserKey"]
1995
+ };
1996
+ }
1997
+
1998
+ // ../orchestrator-sdk/generated/src/models/JobsHaveExecutionMediaRequest.ts
1999
+ function JobsHaveExecutionMediaRequestToJSON(json) {
2000
+ return JobsHaveExecutionMediaRequestToJSONTyped(json, false);
2001
+ }
2002
+ function JobsHaveExecutionMediaRequestToJSONTyped(value, ignoreDiscriminator = false) {
2003
+ if (value == null) {
2004
+ return value;
2005
+ }
2006
+ return {
2007
+ jobIds: value["jobIds"],
2008
+ format: value["format"]
1796
2009
  };
1797
2010
  }
1798
2011
 
@@ -2023,24 +2236,6 @@ function ODataValueOfIEnumerableOfPackageResourceDtoFromJSONTyped(json, ignoreDi
2023
2236
  };
2024
2237
  }
2025
2238
 
2026
- // ../orchestrator-sdk/generated/src/models/UserRoleDto.ts
2027
- function UserRoleDtoFromJSON(json) {
2028
- return UserRoleDtoFromJSONTyped(json, false);
2029
- }
2030
- function UserRoleDtoFromJSONTyped(json, ignoreDiscriminator) {
2031
- if (json == null) {
2032
- return json;
2033
- }
2034
- return {
2035
- userId: json["UserId"] == null ? undefined : json["UserId"],
2036
- roleId: json["RoleId"] == null ? undefined : json["RoleId"],
2037
- userName: json["UserName"] == null ? undefined : json["UserName"],
2038
- roleName: json["RoleName"] == null ? undefined : json["RoleName"],
2039
- roleType: json["RoleType"] == null ? undefined : json["RoleType"],
2040
- id: json["Id"] == null ? undefined : json["Id"]
2041
- };
2042
- }
2043
-
2044
2239
  // ../orchestrator-sdk/generated/src/models/ReleaseDto.ts
2045
2240
  function ReleaseDtoFromJSON(json) {
2046
2241
  return ReleaseDtoFromJSONTyped(json, false);
@@ -2070,6 +2265,7 @@ function ReleaseDtoFromJSONTyped(json, ignoreDiscriminator) {
2070
2265
  supportsMultipleEntryPoints: json["SupportsMultipleEntryPoints"] == null ? undefined : json["SupportsMultipleEntryPoints"],
2071
2266
  requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
2072
2267
  isConversational: json["IsConversational"] == null ? undefined : json["IsConversational"],
2268
+ slug: json["Slug"] == null ? undefined : json["Slug"],
2073
2269
  minRequiredRobotVersion: json["MinRequiredRobotVersion"] == null ? undefined : json["MinRequiredRobotVersion"],
2074
2270
  isAttended: json["IsAttended"] == null ? undefined : json["IsAttended"],
2075
2271
  isCompiled: json["IsCompiled"] == null ? undefined : json["IsCompiled"],
@@ -2130,6 +2326,7 @@ function ReleaseDtoToJSONTyped(value, ignoreDiscriminator = false) {
2130
2326
  SupportsMultipleEntryPoints: value["supportsMultipleEntryPoints"],
2131
2327
  RequiresUserInteraction: value["requiresUserInteraction"],
2132
2328
  IsConversational: value["isConversational"],
2329
+ Slug: value["slug"],
2133
2330
  MinRequiredRobotVersion: value["minRequiredRobotVersion"],
2134
2331
  IsAttended: value["isAttended"],
2135
2332
  IsCompiled: value["isCompiled"],
@@ -2212,6 +2409,7 @@ function ReleaseListModelFromJSONTyped(json, ignoreDiscriminator) {
2212
2409
  supportsMultipleEntryPoints: json["SupportsMultipleEntryPoints"] == null ? undefined : json["SupportsMultipleEntryPoints"],
2213
2410
  requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
2214
2411
  isConversational: json["IsConversational"] == null ? undefined : json["IsConversational"],
2412
+ slug: json["Slug"] == null ? undefined : json["Slug"],
2215
2413
  minRequiredRobotVersion: json["MinRequiredRobotVersion"] == null ? undefined : json["MinRequiredRobotVersion"],
2216
2414
  isAttended: json["IsAttended"] == null ? undefined : json["IsAttended"],
2217
2415
  isCompiled: json["IsCompiled"] == null ? undefined : json["IsCompiled"],
@@ -2600,6 +2798,7 @@ function ReleaseCreateCommandToJSONTyped(value, ignoreDiscriminator = false) {
2600
2798
  SupportsMultipleEntryPoints: value["supportsMultipleEntryPoints"],
2601
2799
  RequiresUserInteraction: value["requiresUserInteraction"],
2602
2800
  IsConversational: value["isConversational"],
2801
+ Slug: value["slug"],
2603
2802
  MinRequiredRobotVersion: value["minRequiredRobotVersion"],
2604
2803
  IsAttended: value["isAttended"],
2605
2804
  IsCompiled: value["isCompiled"],
@@ -2673,6 +2872,7 @@ function ReleaseGetModelFromJSONTyped(json, ignoreDiscriminator) {
2673
2872
  supportsMultipleEntryPoints: json["SupportsMultipleEntryPoints"] == null ? undefined : json["SupportsMultipleEntryPoints"],
2674
2873
  requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
2675
2874
  isConversational: json["IsConversational"] == null ? undefined : json["IsConversational"],
2875
+ slug: json["Slug"] == null ? undefined : json["Slug"],
2676
2876
  minRequiredRobotVersion: json["MinRequiredRobotVersion"] == null ? undefined : json["MinRequiredRobotVersion"],
2677
2877
  isAttended: json["IsAttended"] == null ? undefined : json["IsAttended"],
2678
2878
  isCompiled: json["IsCompiled"] == null ? undefined : json["IsCompiled"],
@@ -2741,6 +2941,7 @@ function ReleaseUpdateCommandToJSONTyped(value, ignoreDiscriminator = false) {
2741
2941
  SupportsMultipleEntryPoints: value["supportsMultipleEntryPoints"],
2742
2942
  RequiresUserInteraction: value["requiresUserInteraction"],
2743
2943
  IsConversational: value["isConversational"],
2944
+ Slug: value["slug"],
2744
2945
  MinRequiredRobotVersion: value["minRequiredRobotVersion"],
2745
2946
  IsAttended: value["isAttended"],
2746
2947
  IsCompiled: value["isCompiled"],
@@ -4199,6 +4400,27 @@ class FoldersApi extends BaseAPI {
4199
4400
 
4200
4401
  // ../orchestrator-sdk/generated/src/apis/JobsApi.ts
4201
4402
  class JobsApi extends BaseAPI {
4403
+ async jobsCreateTestAutomationJobsRaw(requestParameters, initOverrides) {
4404
+ const queryParameters = {};
4405
+ const headerParameters = {};
4406
+ headerParameters["Content-Type"] = "application/json";
4407
+ if (this.configuration && this.configuration.accessToken) {
4408
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
4409
+ }
4410
+ let urlPath = `/api/Jobs/CreateTestAutomationJobs`;
4411
+ const response = await this.request({
4412
+ path: urlPath,
4413
+ method: "POST",
4414
+ headers: headerParameters,
4415
+ query: queryParameters,
4416
+ body: CreateTestAutomationJobsRequestToJSON(requestParameters["body"])
4417
+ }, initOverrides);
4418
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(JobDtoFromJSON));
4419
+ }
4420
+ async jobsCreateTestAutomationJobs(requestParameters = {}, initOverrides) {
4421
+ const response = await this.jobsCreateTestAutomationJobsRaw(requestParameters, initOverrides);
4422
+ return await response.value();
4423
+ }
4202
4424
  async jobsExportRaw(requestParameters, initOverrides) {
4203
4425
  const queryParameters = {};
4204
4426
  if (requestParameters["$select"] != null) {
@@ -4464,6 +4686,81 @@ class JobsApi extends BaseAPI {
4464
4686
  const response = await this.jobsGetByKeyByIdentifierRaw(requestParameters, initOverrides);
4465
4687
  return await response.value();
4466
4688
  }
4689
+ async jobsGetJobGraphRaw(requestParameters, initOverrides) {
4690
+ if (requestParameters["jobKey"] == null) {
4691
+ throw new RequiredError("jobKey", 'Required parameter "jobKey" was null or undefined when calling jobsGetJobGraph().');
4692
+ }
4693
+ const queryParameters = {};
4694
+ if (requestParameters["jobKey"] != null) {
4695
+ queryParameters["jobKey"] = requestParameters["jobKey"];
4696
+ }
4697
+ const headerParameters = {};
4698
+ if (this.configuration && this.configuration.accessToken) {
4699
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
4700
+ }
4701
+ let urlPath = `/api/Jobs/GetJobGraph`;
4702
+ const response = await this.request({
4703
+ path: urlPath,
4704
+ method: "GET",
4705
+ headers: headerParameters,
4706
+ query: queryParameters
4707
+ }, initOverrides);
4708
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(HierarchyJobDtoFromJSON));
4709
+ }
4710
+ async jobsGetJobGraph(requestParameters, initOverrides) {
4711
+ const response = await this.jobsGetJobGraphRaw(requestParameters, initOverrides);
4712
+ return await response.value();
4713
+ }
4714
+ async jobsGetJobInfoRaw(requestParameters, initOverrides) {
4715
+ const queryParameters = {};
4716
+ if (requestParameters["jobKey"] != null) {
4717
+ queryParameters["jobKey"] = requestParameters["jobKey"];
4718
+ }
4719
+ const headerParameters = {};
4720
+ if (this.configuration && this.configuration.accessToken) {
4721
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
4722
+ }
4723
+ let urlPath = `/api/Jobs/GetJobInfo`;
4724
+ const response = await this.request({
4725
+ path: urlPath,
4726
+ method: "GET",
4727
+ headers: headerParameters,
4728
+ query: queryParameters
4729
+ }, initOverrides);
4730
+ return new JSONApiResponse(response, (jsonValue) => JobStatusOutputInfoFromJSON(jsonValue));
4731
+ }
4732
+ async jobsGetJobInfo(requestParameters = {}, initOverrides) {
4733
+ const response = await this.jobsGetJobInfoRaw(requestParameters, initOverrides);
4734
+ return await response.value();
4735
+ }
4736
+ async jobsGetJobStateHistoryRaw(requestParameters, initOverrides) {
4737
+ if (requestParameters["jobKey"] == null) {
4738
+ throw new RequiredError("jobKey", 'Required parameter "jobKey" was null or undefined when calling jobsGetJobStateHistory().');
4739
+ }
4740
+ const queryParameters = {};
4741
+ if (requestParameters["jobKey"] != null) {
4742
+ queryParameters["jobKey"] = requestParameters["jobKey"];
4743
+ }
4744
+ const headerParameters = {};
4745
+ if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
4746
+ headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
4747
+ }
4748
+ if (this.configuration && this.configuration.accessToken) {
4749
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
4750
+ }
4751
+ let urlPath = `/api/Jobs/GetJobStateHistory`;
4752
+ const response = await this.request({
4753
+ path: urlPath,
4754
+ method: "GET",
4755
+ headers: headerParameters,
4756
+ query: queryParameters
4757
+ }, initOverrides);
4758
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(JobStateChangeDtoFromJSON));
4759
+ }
4760
+ async jobsGetJobStateHistory(requestParameters, initOverrides) {
4761
+ const response = await this.jobsGetJobStateHistoryRaw(requestParameters, initOverrides);
4762
+ return await response.value();
4763
+ }
4467
4764
  async jobsGetRunningJobsByMachineByMachineidAndHostmachinenameRaw(requestParameters, initOverrides) {
4468
4765
  if (requestParameters["machineId"] == null) {
4469
4766
  throw new RequiredError("machineId", 'Required parameter "machineId" was null or undefined when calling jobsGetRunningJobsByMachineByMachineidAndHostmachinename().');
@@ -4518,6 +4815,70 @@ class JobsApi extends BaseAPI {
4518
4815
  const response = await this.jobsGetRunningJobsByMachineByMachineidAndHostmachinenameRaw(requestParameters, initOverrides);
4519
4816
  return await response.value();
4520
4817
  }
4818
+ async jobsGetUserJobsRaw(requestParameters, initOverrides) {
4819
+ const queryParameters = {};
4820
+ if (requestParameters["packageId"] != null) {
4821
+ queryParameters["packageId"] = requestParameters["packageId"];
4822
+ }
4823
+ if (requestParameters["processKey"] != null) {
4824
+ queryParameters["processKey"] = requestParameters["processKey"];
4825
+ }
4826
+ if (requestParameters["fromStartTime"] != null) {
4827
+ queryParameters["fromStartTime"] = requestParameters["fromStartTime"].toISOString();
4828
+ }
4829
+ if (requestParameters["limit"] != null) {
4830
+ queryParameters["limit"] = requestParameters["limit"];
4831
+ }
4832
+ if (requestParameters["targetFramework"] != null) {
4833
+ queryParameters["targetFramework"] = requestParameters["targetFramework"];
4834
+ }
4835
+ if (requestParameters["orderDirection"] != null) {
4836
+ queryParameters["orderDirection"] = requestParameters["orderDirection"];
4837
+ }
4838
+ if (requestParameters["cursor"] != null) {
4839
+ queryParameters["cursor"] = requestParameters["cursor"];
4840
+ }
4841
+ if (requestParameters["jobState"] != null) {
4842
+ queryParameters["jobState"] = requestParameters["jobState"];
4843
+ }
4844
+ const headerParameters = {};
4845
+ if (this.configuration && this.configuration.accessToken) {
4846
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
4847
+ }
4848
+ let urlPath = `/api/Jobs/GetUserJobs`;
4849
+ const response = await this.request({
4850
+ path: urlPath,
4851
+ method: "GET",
4852
+ headers: headerParameters,
4853
+ query: queryParameters
4854
+ }, initOverrides);
4855
+ return new JSONApiResponse(response, (jsonValue) => CursorPaginationResultOfUserJobDtoFromJSON(jsonValue));
4856
+ }
4857
+ async jobsGetUserJobs(requestParameters = {}, initOverrides) {
4858
+ const response = await this.jobsGetUserJobsRaw(requestParameters, initOverrides);
4859
+ return await response.value();
4860
+ }
4861
+ async jobsHaveExecutionMediaRaw(requestParameters, initOverrides) {
4862
+ const queryParameters = {};
4863
+ const headerParameters = {};
4864
+ headerParameters["Content-Type"] = "application/json";
4865
+ if (this.configuration && this.configuration.accessToken) {
4866
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
4867
+ }
4868
+ let urlPath = `/api/Jobs/HaveExecutionMedia`;
4869
+ const response = await this.request({
4870
+ path: urlPath,
4871
+ method: "POST",
4872
+ headers: headerParameters,
4873
+ query: queryParameters,
4874
+ body: JobsHaveExecutionMediaRequestToJSON(requestParameters["body"])
4875
+ }, initOverrides);
4876
+ return new JSONApiResponse(response, (jsonValue) => mapValues(jsonValue, EntityHasExecutionMediaFromJSON));
4877
+ }
4878
+ async jobsHaveExecutionMedia(requestParameters = {}, initOverrides) {
4879
+ const response = await this.jobsHaveExecutionMediaRaw(requestParameters, initOverrides);
4880
+ return await response.value();
4881
+ }
4521
4882
  async jobsRestartJobRaw(requestParameters, initOverrides) {
4522
4883
  const queryParameters = {};
4523
4884
  if (requestParameters["$select"] != null) {
@@ -4671,6 +5032,29 @@ class JobsApi extends BaseAPI {
4671
5032
  async jobsStopJobTreeById(requestParameters, initOverrides) {
4672
5033
  await this.jobsStopJobTreeByIdRaw(requestParameters, initOverrides);
4673
5034
  }
5035
+ async jobsStopJobTreeByKeyRaw(requestParameters, initOverrides) {
5036
+ const queryParameters = {};
5037
+ if (requestParameters["parentJobKey"] != null) {
5038
+ queryParameters["parentJobKey"] = requestParameters["parentJobKey"];
5039
+ }
5040
+ const headerParameters = {};
5041
+ headerParameters["Content-Type"] = "application/json";
5042
+ if (this.configuration && this.configuration.accessToken) {
5043
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
5044
+ }
5045
+ let urlPath = `/api/Jobs/StopJobTreeByKey`;
5046
+ const response = await this.request({
5047
+ path: urlPath,
5048
+ method: "POST",
5049
+ headers: headerParameters,
5050
+ query: queryParameters,
5051
+ body: StopJobRequestToJSON(requestParameters["body"])
5052
+ }, initOverrides);
5053
+ return new VoidApiResponse(response);
5054
+ }
5055
+ async jobsStopJobTreeByKey(requestParameters = {}, initOverrides) {
5056
+ await this.jobsStopJobTreeByKeyRaw(requestParameters, initOverrides);
5057
+ }
4674
5058
  async jobsStopJobsRaw(requestParameters, initOverrides) {
4675
5059
  const queryParameters = {};
4676
5060
  const headerParameters = {};
@@ -5801,6 +6185,12 @@ async function createOrchestratorConfig(options) {
5801
6185
  };
5802
6186
  if (options?.folderId) {
5803
6187
  headers["X-UIPATH-OrganizationUnitId"] = options.folderId;
6188
+ } else if (options?.folderKey && options?.folderPath) {
6189
+ throw new Error("Provide either folderKey or folderPath, not both.");
6190
+ } else if (options?.folderKey) {
6191
+ headers["X-UIPATH-FolderKey"] = options.folderKey;
6192
+ } else if (options?.folderPath) {
6193
+ headers["X-UIPATH-FolderPath"] = options.folderPath;
5804
6194
  }
5805
6195
  return new Configuration({
5806
6196
  basePath: orchestratorBasePath,
@@ -6172,16 +6562,11 @@ async function parseMaestroInputs(inputSource) {
6172
6562
  import { execFile } from "node:child_process";
6173
6563
  import crypto2 from "node:crypto";
6174
6564
  import { promisify } from "node:util";
6175
- import { catchError as catchError5, logger as logger4 } from "@uipath/common";
6565
+ import { catchError as catchError6, logger as logger6 } from "@uipath/common";
6176
6566
  import { getFileSystem as getFileSystem2 } from "@uipath/filesystem";
6177
6567
 
6178
- // ../maestro-sdk/dist/index.js
6568
+ // ../maestro-sdk/src/client.ts
6179
6569
  import { catchError as catchError3 } from "@uipath/common";
6180
- import { getLoginStatusAsync as getLoginStatusAsync2 } from "@uipath/auth";
6181
- import { logger as logger3 } from "@uipath/common";
6182
- import { catchError as catchError22, logger as logger22 } from "@uipath/common";
6183
- import { catchError as catchError32 } from "@uipath/common";
6184
- import { catchError as catchError4, logger as logger32, OutputFormatter } from "@uipath/common";
6185
6570
  function buildPimsUrl(config, path) {
6186
6571
  return `${config.baseUrl}/${config.organizationId}/${config.tenantId}/pims_/api/v1${path}`;
6187
6572
  }
@@ -6240,6 +6625,8 @@ async function pimsPost(config, path, body, options) {
6240
6625
  }
6241
6626
  return parsed;
6242
6627
  }
6628
+ // ../maestro-sdk/src/client-factory.ts
6629
+ import { getLoginStatusAsync as getLoginStatusAsync2 } from "@uipath/auth";
6243
6630
  async function createPimsConfig() {
6244
6631
  const status = await getLoginStatusAsync2({
6245
6632
  ensureTokenValidityMinutes: 10
@@ -6260,6 +6647,8 @@ async function createPimsConfig() {
6260
6647
  authToken: status.accessToken
6261
6648
  };
6262
6649
  }
6650
+ // ../maestro-sdk/src/debug-http-client.ts
6651
+ import { logger as logger3 } from "@uipath/common";
6263
6652
  function buildCommonHeaders2(config, options) {
6264
6653
  const headers = {
6265
6654
  Authorization: `Bearer ${config.authToken}`,
@@ -6363,6 +6752,8 @@ async function studioWebPost(config, organizationName, path, body, extraHeaders)
6363
6752
  }
6364
6753
  return response.json();
6365
6754
  }
6755
+ // ../maestro-sdk/src/debug-service.ts
6756
+ import { catchError as catchError4, logger as logger4 } from "@uipath/common";
6366
6757
  function extractStartEventId(bpmnXml) {
6367
6758
  const match = bpmnXml.match(/<bpmn:startEvent\s+id="([^"]+)"/);
6368
6759
  return match?.[1] ?? "start";
@@ -6414,10 +6805,16 @@ async function createDebugInstance(config, jobKey, solutionId, studioWebProjectI
6414
6805
  }
6415
6806
  return result;
6416
6807
  }
6417
- async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterval = 2000, maxPolls = 300) {
6808
+ async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterval = 2000, maxPolls = 300, jobKey) {
6418
6809
  let pollCount = 0;
6419
6810
  let lastStatus = "";
6420
6811
  const terminalStatuses = ["Completed", "Faulted", "Cancelled", "Failed"];
6812
+ const orchestratorTerminalStatuses = [
6813
+ "Successful",
6814
+ "Faulted",
6815
+ "Stopped",
6816
+ "Suspended"
6817
+ ];
6421
6818
  while (pollCount < maxPolls) {
6422
6819
  const status = await debugPimsGet(config, `/api/v1/debug-instances/${instanceId}/element-executions`);
6423
6820
  if (status.status !== lastStatus) {
@@ -6432,12 +6829,21 @@ async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterv
6432
6829
  callbacks?.onStatusChange?.(status.status, elementExecutions);
6433
6830
  } else if (pollCount % 5 === 0) {
6434
6831
  const elapsed = (pollCount + 1) * pollInterval / 1000;
6435
- logger22.info(`Still polling... status: ${lastStatus} (${elapsed}s elapsed)`);
6832
+ logger4.info(`Still polling... status: ${lastStatus} (${elapsed}s elapsed)`);
6436
6833
  }
6437
6834
  if (terminalStatuses.includes(status.status)) {
6438
- logger22.info(`Debug session reached terminal status: ${status.status}`);
6835
+ logger4.info(`Debug session reached terminal status: ${status.status}`);
6439
6836
  return status;
6440
6837
  }
6838
+ if (jobKey && pollCount > 0 && pollCount % 5 === 0) {
6839
+ const [, jobResponse] = await catchError4(orchestratorGet2(config, `/odata/Jobs?$filter=Key eq '${jobKey}'&$top=1`));
6840
+ const jobState = jobResponse?.value?.[0]?.State;
6841
+ if (jobState && orchestratorTerminalStatuses.includes(jobState)) {
6842
+ const jobInfo = jobResponse?.value?.[0]?.Info ?? "";
6843
+ logger4.info(`Orchestrator job reached terminal status: ${jobState}${jobInfo ? ` — ${jobInfo}` : ""}`);
6844
+ return { ...status, status: jobState };
6845
+ }
6846
+ }
6441
6847
  await new Promise((resolve) => setTimeout(resolve, pollInterval));
6442
6848
  pollCount++;
6443
6849
  }
@@ -6482,50 +6888,50 @@ async function overwriteSolutionOnStudioWeb(config, organizationName, uisFilePat
6482
6888
  }
6483
6889
  async function uploadOrOverwriteSolution(config, organizationName, uisFilePath, solutionId, fs) {
6484
6890
  if (solutionId) {
6485
- logger22.info(`Attempting to overwrite existing solution ${solutionId} on Studio Web...`);
6486
- const [overwriteError, overwriteResult] = await catchError22(overwriteSolutionOnStudioWeb(config, organizationName, uisFilePath, solutionId, fs));
6891
+ logger4.info(`Attempting to overwrite existing solution ${solutionId} on Studio Web...`);
6892
+ const [overwriteError, overwriteResult] = await catchError4(overwriteSolutionOnStudioWeb(config, organizationName, uisFilePath, solutionId, fs));
6487
6893
  if (!overwriteError) {
6488
6894
  return overwriteResult;
6489
6895
  }
6490
6896
  if (overwriteError.message.includes("404")) {
6491
- logger22.info(`Solution ${solutionId} not found on Studio Web. Importing as new solution...`);
6897
+ logger4.info(`Solution ${solutionId} not found on Studio Web. Importing as new solution...`);
6492
6898
  } else {
6493
6899
  throw overwriteError;
6494
6900
  }
6495
6901
  }
6496
- logger22.info("Importing new solution to Studio Web...");
6902
+ logger4.info("Importing new solution to Studio Web...");
6497
6903
  return uploadSolutionToStudioWeb(config, organizationName, uisFilePath, fs);
6498
6904
  }
6499
6905
  async function findSolutionFile(fs, projectPath) {
6500
6906
  const parentDir = fs.path.resolve(projectPath, "..");
6501
- const [dirError, entries] = await catchError22(fs.readdir(parentDir));
6907
+ const [dirError, entries] = await catchError4(fs.readdir(parentDir));
6502
6908
  if (dirError) {
6503
- logger22.error(`Could not read parent directory for .uipx file: ${dirError.message}`);
6909
+ logger4.error(`Could not read parent directory for .uipx file: ${dirError.message}`);
6504
6910
  return;
6505
6911
  }
6506
6912
  const uipxFile = entries.find((entry) => entry.endsWith(".uipx"));
6507
6913
  if (!uipxFile) {
6508
- logger22.info("No .uipx solution file found in parent directory.");
6914
+ logger4.info("No .uipx solution file found in parent directory.");
6509
6915
  return;
6510
6916
  }
6511
6917
  const uipxPath = fs.path.join(parentDir, uipxFile);
6512
- const [readError, content] = await catchError22(fs.readFile(uipxPath, "utf-8"));
6918
+ const [readError, content] = await catchError4(fs.readFile(uipxPath, "utf-8"));
6513
6919
  if (readError || content === null) {
6514
- logger22.error(`Could not read .uipx file: ${readError?.message ?? "file returned null"}`);
6920
+ logger4.error(`Could not read .uipx file: ${readError?.message ?? "file returned null"}`);
6515
6921
  return;
6516
6922
  }
6517
- const [parseError, parsed] = catchError22(() => JSON.parse(content));
6923
+ const [parseError, parsed] = catchError4(() => JSON.parse(content));
6518
6924
  if (parseError) {
6519
- logger22.error(`Could not parse .uipx file: ${parseError.message}`);
6925
+ logger4.error(`Could not parse .uipx file: ${parseError.message}`);
6520
6926
  return;
6521
6927
  }
6522
6928
  const solutionId = parsed.SolutionId;
6523
6929
  const projectId = parsed.Projects?.[0]?.Id;
6524
6930
  if (!solutionId) {
6525
- logger22.info("No SolutionId found in .uipx file.");
6931
+ logger4.info("No SolutionId found in .uipx file.");
6526
6932
  return;
6527
6933
  }
6528
- logger22.info(`Found solution file: ${uipxFile} (SolutionId: ${solutionId})`);
6934
+ logger4.info(`Found solution file: ${uipxFile} (SolutionId: ${solutionId})`);
6529
6935
  return {
6530
6936
  solutionId,
6531
6937
  projectId: projectId ?? crypto.randomUUID()
@@ -6577,84 +6983,68 @@ async function collectFilesRecursive(fs, dir) {
6577
6983
  }
6578
6984
  async function updateSolutionFile(fs, projectPath, newSolutionId) {
6579
6985
  const parentDir = fs.path.resolve(projectPath, "..");
6580
- const [dirError, entries] = await catchError22(fs.readdir(parentDir));
6986
+ const [dirError, entries] = await catchError4(fs.readdir(parentDir));
6581
6987
  if (dirError)
6582
6988
  return;
6583
6989
  const uipxFile = entries.find((entry) => entry.endsWith(".uipx"));
6584
6990
  if (!uipxFile)
6585
6991
  return;
6586
6992
  const uipxPath = fs.path.join(parentDir, uipxFile);
6587
- const [readError, content] = await catchError22(fs.readFile(uipxPath, "utf-8"));
6993
+ const [readError, content] = await catchError4(fs.readFile(uipxPath, "utf-8"));
6588
6994
  if (readError || content === null)
6589
6995
  return;
6590
- const [parseError, parsed] = catchError22(() => JSON.parse(content));
6996
+ const [parseError, parsed] = catchError4(() => JSON.parse(content));
6591
6997
  if (parseError)
6592
6998
  return;
6593
6999
  parsed.SolutionId = newSolutionId;
6594
- const [writeError] = await catchError22(fs.writeFile(uipxPath, JSON.stringify(parsed, null, 2)));
7000
+ const [writeError] = await catchError4(fs.writeFile(uipxPath, JSON.stringify(parsed, null, 2)));
6595
7001
  if (writeError) {
6596
- logger22.error(`Warning: Could not update .uipx with new SolutionId: ${writeError.message}`);
7002
+ logger4.error(`Warning: Could not update .uipx with new SolutionId: ${writeError.message}`);
6597
7003
  } else {
6598
- logger22.info(`Updated .uipx with Studio Web SolutionId: ${newSolutionId}`);
6599
- }
6600
- }
6601
- async function extractErrorMessage(error) {
6602
- const err = error;
6603
- const status = err.status || err.response?.status;
6604
- let extractedMessage;
6605
- if (err.response) {
6606
- const [bodyError, rawBody] = await catchError32(err.response.text?.() ?? Promise.resolve(undefined));
6607
- if (!bodyError && rawBody) {
6608
- const [parseError, parsed] = catchError32(() => JSON.parse(rawBody));
6609
- if (!parseError) {
6610
- extractedMessage = parsed?.message || parsed?.errorMessage || parsed?.title;
6611
- } else {
6612
- extractedMessage = rawBody;
6613
- }
6614
- }
6615
- }
6616
- if (status === 401) {
6617
- return "Unauthorized (401). Run `uip login` to authenticate.";
7004
+ logger4.info(`Updated .uipx with Studio Web SolutionId: ${newSolutionId}`);
6618
7005
  }
6619
- if (status === 403) {
6620
- return "Forbidden (403). Ensure the account has the required permissions.";
6621
- }
6622
- const baseMessage = extractedMessage || err.message || "Unknown error";
6623
- return status ? `HTTP ${status}: ${baseMessage}` : baseMessage;
6624
7006
  }
7007
+ // ../maestro-sdk/src/query-string.ts
6625
7008
  function buildQueryString(params) {
6626
7009
  const entries = Object.entries(params).filter((entry) => entry[1] !== undefined);
6627
7010
  if (entries.length === 0)
6628
7011
  return "";
6629
7012
  return `?${new URLSearchParams(entries).toString()}`;
6630
7013
  }
7014
+ // ../maestro-sdk/src/with-pims-call.ts
7015
+ import {
7016
+ catchError as catchError5,
7017
+ extractErrorMessage,
7018
+ logger as logger5,
7019
+ OutputFormatter,
7020
+ processContext
7021
+ } from "@uipath/common";
6631
7022
  async function withPimsCall(fn, errorMessage) {
6632
- const [configError, config] = await catchError4(createPimsConfig());
7023
+ const [configError, config] = await catchError5(createPimsConfig());
6633
7024
  if (configError) {
6634
- logger32.warn(`${errorMessage}: ${configError.message}`);
7025
+ logger5.warn(`${errorMessage}: ${configError.message}`);
6635
7026
  OutputFormatter.error({
6636
7027
  Result: "Failure",
6637
7028
  Message: errorMessage,
6638
7029
  Instructions: configError.message
6639
7030
  });
6640
- process.exitCode = 1;
7031
+ processContext.exit(1);
6641
7032
  return;
6642
7033
  }
6643
- const [error, result] = await catchError4(fn(config));
7034
+ const [error, result] = await catchError5(fn(config));
6644
7035
  if (error) {
6645
7036
  const msg = await extractErrorMessage(error);
6646
- logger32.warn(`${errorMessage}: ${msg}`);
7037
+ logger5.warn(`${errorMessage}: ${msg}`);
6647
7038
  OutputFormatter.error({
6648
7039
  Result: "Failure",
6649
7040
  Message: errorMessage,
6650
7041
  Instructions: msg
6651
7042
  });
6652
- process.exitCode = 1;
7043
+ processContext.exit(1);
6653
7044
  return;
6654
7045
  }
6655
7046
  return result;
6656
7047
  }
6657
-
6658
7048
  // src/services/maestro-debug-service.ts
6659
7049
  var execFileAsync = promisify(execFile);
6660
7050
 
@@ -6771,8 +7161,8 @@ class MaestroDebugService {
6771
7161
  };
6772
7162
  const allFiles = await collectFiles(stagingDir);
6773
7163
  const relFiles = allFiles.map((f) => this.fs.path.relative(stagingDir, f));
6774
- await catchError5(this.fs.rm(uisPath));
6775
- logger4.info(`Zipping ${relFiles.length} files into ${uisPath}`);
7164
+ await catchError6(this.fs.rm(uisPath));
7165
+ logger6.info(`Zipping ${relFiles.length} files into ${uisPath}`);
6776
7166
  await execFileAsync("zip", [uisPath, ...relFiles], {
6777
7167
  cwd: stagingDir
6778
7168
  });
@@ -6780,7 +7170,7 @@ class MaestroDebugService {
6780
7170
  throw new Error(`Zip file was not created at ${uisPath}`);
6781
7171
  }
6782
7172
  const stat = await this.fs.stat(uisPath);
6783
- logger4.info(`Created .uis file: ${uisPath} (size: ${stat?.size || 0} bytes)`);
7173
+ logger6.info(`Created .uis file: ${uisPath} (size: ${stat?.size || 0} bytes)`);
6784
7174
  await this.fs.rm(stagingDir);
6785
7175
  return uisPath;
6786
7176
  }
@@ -6807,10 +7197,10 @@ class MaestroDebugService {
6807
7197
  const entryPointsJson = JSON.parse(entryPointsContent);
6808
7198
  const rawEntryPoint = entryPointsJson.entryPoints?.[0]?.filePath ?? "";
6809
7199
  const entryPoint = rawEntryPoint.replace(/^\/content/, "");
6810
- logger4.info("Looking for .uipx solution file...");
7200
+ logger6.info("Looking for .uipx solution file...");
6811
7201
  const solutionInfo = await findSolutionFile(this.fs, absoluteProjectPath);
6812
7202
  const existingSolutionId = solutionInfo?.solutionId;
6813
- logger4.info("Building solution package from project...");
7203
+ logger6.info("Building solution package from project...");
6814
7204
  const solutionDir = this.fs.path.resolve(absoluteProjectPath, "..");
6815
7205
  const uisPath = await buildSolutionPackage(this.fs, solutionDir, (args, cwd) => execFileAsync("zip", args, { cwd }));
6816
7206
  const apiConfig = {
@@ -6821,27 +7211,27 @@ class MaestroDebugService {
6821
7211
  authToken: pimsConfig.authToken,
6822
7212
  organizationUnitId: pimsConfig.organizationUnitId
6823
7213
  };
6824
- logger4.info("Uploading solution to Studio Web...");
7214
+ logger6.info("Uploading solution to Studio Web...");
6825
7215
  const importResult = await uploadOrOverwriteSolution(apiConfig, pimsConfig.organizationName, uisPath, existingSolutionId, this.fs);
6826
7216
  const solutionId = importResult.id;
6827
7217
  await updateSolutionFile(this.fs, absoluteProjectPath, solutionId);
6828
7218
  const matchedProject = importResult.projects.find((p) => p.name === projectName);
6829
7219
  const studioWebProjectId = (matchedProject ?? importResult.projects[0]).id;
6830
7220
  const studioWebUrl = `${pimsConfig.baseUrl}/${encodeURIComponent(pimsConfig.organizationName)}/studio_/designer/${encodeURIComponent(studioWebProjectId)}?solutionId=${encodeURIComponent(solutionId)}`;
6831
- logger4.info(`Solution uploaded — solutionId: ${solutionId}, projectId: ${studioWebProjectId}`);
6832
- logger4.info(`Studio Web URL: ${studioWebUrl}`);
6833
- logger4.info("Fetching personal workspace folder...");
7221
+ logger6.info(`Solution uploaded — solutionId: ${solutionId}, projectId: ${studioWebProjectId}`);
7222
+ logger6.info(`Studio Web URL: ${studioWebUrl}`);
7223
+ logger6.info("Fetching personal workspace folder...");
6834
7224
  const folder = await getPersonalFolderKey(apiConfig);
6835
7225
  apiConfig.folderKey = folder.key;
6836
7226
  apiConfig.organizationUnitId = folder.id;
6837
- logger4.info(`Personal folder found — key: ${folder.key}, id: ${folder.id}`);
6838
- logger4.info("Beginning debug session in Orchestrator...");
7227
+ logger6.info(`Personal folder found — key: ${folder.key}, id: ${folder.id}`);
7228
+ logger6.info("Beginning debug session in Orchestrator...");
6839
7229
  const session = await beginDebugSession(apiConfig, JSON.stringify(options?.inputs ?? {}));
6840
- logger4.info(`Debug session started — jobKey: ${session.jobKey}`);
6841
- logger4.info("Creating debug instance in PIMS...");
7230
+ logger6.info(`Debug session started — jobKey: ${session.jobKey}`);
7231
+ logger6.info("Creating debug instance in PIMS...");
6842
7232
  const debugInstance = await createDebugInstance(apiConfig, session.jobKey, solutionId, studioWebProjectId, entryPoint, "processOrchestration");
6843
- logger4.info(`Debug instance created — instanceId: ${debugInstance.instanceId}, runId: ${debugInstance.runId}`);
6844
- logger4.info("Polling debug instance status...");
7233
+ logger6.info(`Debug instance created — instanceId: ${debugInstance.instanceId}, runId: ${debugInstance.runId}`);
7234
+ logger6.info("Polling debug instance status...");
6845
7235
  const finalStatus = await pollDebugInstanceStatus(apiConfig, debugInstance.instanceId, callbacks, pollInterval);
6846
7236
  return {
6847
7237
  jobKey: session.jobKey,
@@ -6862,13 +7252,13 @@ class MaestroDebugService {
6862
7252
  if (!lowerPath.endsWith(".bpmn")) {
6863
7253
  throw new Error(`Unsupported file type. Only .bpmn files are supported for Maestro debug.`);
6864
7254
  }
6865
- logger4.info("Reading .bpmn file...");
7255
+ logger6.info("Reading .bpmn file...");
6866
7256
  const bpmnXml = await this.readBpmnFile(filePath);
6867
7257
  const startEventId = extractStartEventId(bpmnXml);
6868
7258
  const projectName = this.fs.path.basename(filePath, ".bpmn");
6869
7259
  const safeName = projectName.replace(/[^a-zA-Z0-9_-]/g, "_");
6870
7260
  const projectDir = this.fs.path.join(this.fs.env.tmpdir(), `.maestro-debug-${safeName}-${Date.now()}`);
6871
- logger4.info("Generating project files...");
7261
+ logger6.info("Generating project files...");
6872
7262
  await this.fs.mkdir(projectDir);
6873
7263
  await this.fs.mkdir(this.fs.path.join(projectDir, "content"));
6874
7264
  const projectId = crypto2.randomUUID();
@@ -6916,7 +7306,7 @@ class MaestroDebugService {
6916
7306
  await this.fs.writeFile(this.fs.path.join(projectDir, "content", "bindings_v2.json"), JSON.stringify(bindingsJson, null, 2));
6917
7307
  await this.fs.writeFile(this.fs.path.join(projectDir, "content", "package-descriptor.json"), JSON.stringify(packageDescriptorJson, null, 2));
6918
7308
  await this.fs.writeFile(this.fs.path.join(projectDir, "content", `${safeName}.bpmn`), bpmnXml);
6919
- logger4.info("Building solution package...");
7309
+ logger6.info("Building solution package...");
6920
7310
  const uisPath = await this.buildSolutionPackage(projectDir, safeName);
6921
7311
  const apiConfig = {
6922
7312
  baseUrl: pimsConfig.baseUrl,
@@ -6926,25 +7316,25 @@ class MaestroDebugService {
6926
7316
  authToken: pimsConfig.authToken,
6927
7317
  organizationUnitId: pimsConfig.organizationUnitId
6928
7318
  };
6929
- logger4.info("Uploading solution to Studio Web...");
7319
+ logger6.info("Uploading solution to Studio Web...");
6930
7320
  const importResult = await uploadSolutionToStudioWeb(apiConfig, pimsConfig.organizationName, uisPath, this.fs);
6931
7321
  const solutionId = importResult.id;
6932
7322
  const studioWebProjectId = importResult.projects[0].id;
6933
7323
  const studioWebUrl = `${pimsConfig.baseUrl}/${encodeURIComponent(pimsConfig.organizationName)}/studio_/designer/${encodeURIComponent(studioWebProjectId)}?solutionId=${encodeURIComponent(solutionId)}`;
6934
- logger4.info(`Solution uploaded — solutionId: ${solutionId}, projectId: ${studioWebProjectId}`);
6935
- logger4.info(`Studio Web URL: ${studioWebUrl}`);
6936
- logger4.info("Fetching personal workspace folder...");
7324
+ logger6.info(`Solution uploaded — solutionId: ${solutionId}, projectId: ${studioWebProjectId}`);
7325
+ logger6.info(`Studio Web URL: ${studioWebUrl}`);
7326
+ logger6.info("Fetching personal workspace folder...");
6937
7327
  const folder = await getPersonalFolderKey(apiConfig);
6938
7328
  apiConfig.folderKey = folder.key;
6939
7329
  apiConfig.organizationUnitId = folder.id;
6940
- logger4.info(`Personal folder found — key: ${folder.key}, id: ${folder.id}`);
6941
- logger4.info("Beginning debug session in Orchestrator...");
7330
+ logger6.info(`Personal folder found — key: ${folder.key}, id: ${folder.id}`);
7331
+ logger6.info("Beginning debug session in Orchestrator...");
6942
7332
  const session = await beginDebugSession(apiConfig, JSON.stringify(options?.inputs ?? {}));
6943
- logger4.info(`Debug session started — jobKey: ${session.jobKey}`);
6944
- logger4.info("Creating debug instance in PIMS...");
7333
+ logger6.info(`Debug session started — jobKey: ${session.jobKey}`);
7334
+ logger6.info("Creating debug instance in PIMS...");
6945
7335
  const debugInstance = await createDebugInstance(apiConfig, session.jobKey, solutionId, studioWebProjectId, `/${safeName}.bpmn#${startEventId}`, "processOrchestration");
6946
- logger4.info(`Debug instance created — instanceId: ${debugInstance.instanceId}, runId: ${debugInstance.runId}`);
6947
- logger4.info("Polling debug instance status...");
7336
+ logger6.info(`Debug instance created — instanceId: ${debugInstance.instanceId}, runId: ${debugInstance.runId}`);
7337
+ logger6.info("Polling debug instance status...");
6948
7338
  const finalStatus = await pollDebugInstanceStatus(apiConfig, debugInstance.instanceId, callbacks, pollInterval);
6949
7339
  return {
6950
7340
  jobKey: session.jobKey,
@@ -6978,7 +7368,7 @@ function parseFolderId(raw, fallback) {
6978
7368
 
6979
7369
  // src/commands/debug.ts
6980
7370
  function registerDebugCommand(program) {
6981
- program.command("debug").description("Debug a maestro project by uploading to Studio Web and running a debug session").argument("<project-path>", "Path to the maestro project directory (must contain project.uiproj)").option("--folder-id <id>", "Orchestrator folder ID (OrganizationUnitId). Auto-detected if not provided.").option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext, async (projectPath, options) => {
7371
+ program.command("debug").description("Debug a maestro project by uploading to Studio Web and running a debug session").argument("<project-path>", "Path to the maestro project directory (must contain project.uiproj)").option("--folder-id <id>", "Orchestrator folder ID (OrganizationUnitId). Auto-detected if not provided.").option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext2, async (projectPath, options) => {
6982
7372
  const [loginError, loginStatus] = await catchError7(getLoginStatusAsync3({
6983
7373
  ensureTokenValidityMinutes: options.loginValidity
6984
7374
  }));
@@ -6988,7 +7378,7 @@ function registerDebugCommand(program) {
6988
7378
  Message: loginError.message,
6989
7379
  Instructions: "Check authentication and BPMN file"
6990
7380
  });
6991
- processContext.exit(1);
7381
+ processContext2.exit(1);
6992
7382
  return;
6993
7383
  }
6994
7384
  if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl) {
@@ -6997,7 +7387,7 @@ function registerDebugCommand(program) {
6997
7387
  Message: "Not logged in. Run 'uip login' first.",
6998
7388
  Instructions: "Check authentication and BPMN file"
6999
7389
  });
7000
- processContext.exit(1);
7390
+ processContext2.exit(1);
7001
7391
  return;
7002
7392
  }
7003
7393
  if (!loginStatus.organizationId) {
@@ -7006,7 +7396,7 @@ function registerDebugCommand(program) {
7006
7396
  Message: "Organization ID not available from login.",
7007
7397
  Instructions: "Check authentication and BPMN file"
7008
7398
  });
7009
- processContext.exit(1);
7399
+ processContext2.exit(1);
7010
7400
  return;
7011
7401
  }
7012
7402
  if (!loginStatus.tenantId) {
@@ -7015,7 +7405,7 @@ function registerDebugCommand(program) {
7015
7405
  Message: "Tenant ID not available from login.",
7016
7406
  Instructions: "Check authentication and BPMN file"
7017
7407
  });
7018
- processContext.exit(1);
7408
+ processContext2.exit(1);
7019
7409
  return;
7020
7410
  }
7021
7411
  if (!loginStatus.tenantName) {
@@ -7024,7 +7414,7 @@ function registerDebugCommand(program) {
7024
7414
  Message: "Tenant name not available from login.",
7025
7415
  Instructions: "Check authentication and BPMN file"
7026
7416
  });
7027
- processContext.exit(1);
7417
+ processContext2.exit(1);
7028
7418
  return;
7029
7419
  }
7030
7420
  if (!loginStatus.accessToken) {
@@ -7033,7 +7423,7 @@ function registerDebugCommand(program) {
7033
7423
  Message: "Access token not available from login.",
7034
7424
  Instructions: "Check authentication and BPMN file"
7035
7425
  });
7036
- processContext.exit(1);
7426
+ processContext2.exit(1);
7037
7427
  return;
7038
7428
  }
7039
7429
  const [folderErr, organizationUnitId] = catchError7(() => parseFolderId(options.folderId, loginStatus.organizationUnitId));
@@ -7043,7 +7433,7 @@ function registerDebugCommand(program) {
7043
7433
  Message: folderErr.message,
7044
7434
  Instructions: "Check authentication and BPMN file"
7045
7435
  });
7046
- processContext.exit(1);
7436
+ processContext2.exit(1);
7047
7437
  return;
7048
7438
  }
7049
7439
  const pimsConfig = {
@@ -7063,7 +7453,7 @@ function registerDebugCommand(program) {
7063
7453
  Message: `Invalid poll-interval: "${options.pollInterval}". Must be a positive number in milliseconds.`,
7064
7454
  Instructions: "Provide a valid positive integer, e.g. --poll-interval 2000"
7065
7455
  });
7066
- processContext.exit(1);
7456
+ processContext2.exit(1);
7067
7457
  return;
7068
7458
  }
7069
7459
  let inputs;
@@ -7075,24 +7465,24 @@ function registerDebugCommand(program) {
7075
7465
  Message: "Failed to parse inputs",
7076
7466
  Instructions: parseError.message
7077
7467
  });
7078
- processContext.exit(1);
7468
+ processContext2.exit(1);
7079
7469
  return;
7080
7470
  }
7081
7471
  inputs = parsedInputs;
7082
7472
  }
7083
- logger5.info(`Starting debug session for: ${projectPath}`);
7473
+ logger7.info(`Starting debug session for: ${projectPath}`);
7084
7474
  const [executeError, result] = await catchError7(service.executeProjectViaStudioWeb(projectPath, pimsConfig, {
7085
7475
  onStatusChange: (status, executions) => {
7086
7476
  const completed = executions.filter((e) => e.status === "Completed").length;
7087
7477
  const total = executions.length;
7088
- logger5.info(`Status: ${status} (${completed}/${total} elements completed)`);
7478
+ logger7.info(`Status: ${status} (${completed}/${total} elements completed)`);
7089
7479
  for (const exec of executions) {
7090
7480
  const icon = exec.status === "Completed" ? "v" : exec.status === "InProgress" ? ">" : "-";
7091
- logger5.info(` ${icon} ${exec.elementId} [${exec.status}]`);
7481
+ logger7.info(` ${icon} ${exec.elementId} [${exec.status}]`);
7092
7482
  }
7093
7483
  },
7094
7484
  onIncident: (incidents) => {
7095
- logger5.info(`Incidents: ${JSON.stringify(incidents)}`);
7485
+ logger7.info(`Incidents: ${JSON.stringify(incidents)}`);
7096
7486
  }
7097
7487
  }, pollInterval, { inputs }));
7098
7488
  if (executeError) {
@@ -7101,7 +7491,7 @@ function registerDebugCommand(program) {
7101
7491
  Message: executeError.message,
7102
7492
  Instructions: "Check authentication and BPMN file"
7103
7493
  });
7104
- processContext.exit(1);
7494
+ processContext2.exit(1);
7105
7495
  return;
7106
7496
  }
7107
7497
  OutputFormatter2.success({
@@ -7117,15 +7507,15 @@ function registerDebugCommand(program) {
7117
7507
  Instructions: `Debug completed with status: ${result.finalStatus}`
7118
7508
  });
7119
7509
  const success = result.finalStatus === "Completed" || result.finalStatus === "Successful";
7120
- processContext.exit(success ? 0 : 1);
7510
+ processContext2.exit(success ? 0 : 1);
7121
7511
  });
7122
7512
  }
7123
7513
 
7124
7514
  // src/commands/incidents.ts
7125
- import { OutputFormatter as OutputFormatter3, processContext as processContext2 } from "@uipath/common";
7515
+ import { OutputFormatter as OutputFormatter3, processContext as processContext3 } from "@uipath/common";
7126
7516
  var registerIncidentsCommand = (program) => {
7127
7517
  const incidents = program.command("incidents").description("Manage Maestro incident summaries");
7128
- incidents.command("list").description("List all incident summaries across processes").trackedAction(processContext2, async () => {
7518
+ incidents.command("list").description("List all incident summaries across processes").trackedAction(processContext3, async () => {
7129
7519
  const result = await withPimsCall((config) => pimsGet(config, "/incidents/summary"), "Error listing incidents");
7130
7520
  if (!result)
7131
7521
  return;
@@ -7138,7 +7528,7 @@ var registerIncidentsCommand = (program) => {
7138
7528
  };
7139
7529
 
7140
7530
  // src/commands/init.ts
7141
- import { catchError as catchError8, OutputFormatter as OutputFormatter4, processContext as processContext3 } from "@uipath/common";
7531
+ import { catchError as catchError8, OutputFormatter as OutputFormatter4, processContext as processContext4 } from "@uipath/common";
7142
7532
  import { getFileSystem as getFileSystem3 } from "@uipath/filesystem";
7143
7533
 
7144
7534
  // ../../node_modules/min-dash/dist/index.esm.js
@@ -13107,7 +13497,7 @@ function SimpleBpmnModdle(additionalPackages, options) {
13107
13497
  // src/commands/init.ts
13108
13498
  var VALID_PROJECT_NAME_REGEX = /^[a-zA-Z0-9_-]+$/;
13109
13499
  var registerInitCommand = (program) => {
13110
- program.command("init").description("Create a new Maestro project with boilerplate files").argument("<name>", "Maestro project name").option("--force", "Force initialization even if target directory is not empty (writes files without clearing existing contents)").trackedAction(processContext3, async (name2, options) => {
13500
+ program.command("init").description("Create a new Maestro project with boilerplate files").argument("<name>", "Maestro project name").option("--force", "Force initialization even if target directory is not empty (writes files without clearing existing contents)").trackedAction(processContext4, async (name2, options) => {
13111
13501
  const [error3] = await catchError8(initMaestroProject(name2, options));
13112
13502
  if (error3) {
13113
13503
  OutputFormatter4.error({
@@ -13115,7 +13505,7 @@ var registerInitCommand = (program) => {
13115
13505
  Message: "Failed to create Maestro project",
13116
13506
  Instructions: error3.message
13117
13507
  });
13118
- processContext3.exit(1);
13508
+ processContext4.exit(1);
13119
13509
  }
13120
13510
  });
13121
13511
  };
@@ -13259,11 +13649,11 @@ import {
13259
13649
  catchError as catchError9,
13260
13650
  DEFAULT_PAGE_SIZE,
13261
13651
  OutputFormatter as OutputFormatter5,
13262
- processContext as processContext4
13652
+ processContext as processContext5
13263
13653
  } from "@uipath/common";
13264
13654
  var registerInstancesCommand = (program) => {
13265
13655
  const instances = program.command("instances").description("Manage Maestro process instances");
13266
- instances.command("list").description("List process instances").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("-l, --limit <number>", "Number of items to return", String(DEFAULT_PAGE_SIZE)).option("--offset <number>", "Number of items to skip", "0").option("--process-key <process-key>", "Filter by process key").option("--package-id <id>", "Filter by package ID").option("--error-code <code>", "Filter by error code").trackedAction(processContext4, async (options) => {
13656
+ instances.command("list").description("List process instances").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("-l, --limit <number>", "Number of items to return", String(DEFAULT_PAGE_SIZE)).option("--offset <number>", "Number of items to skip", "0").option("--process-key <process-key>", "Filter by process key").option("--package-id <id>", "Filter by package ID").option("--error-code <code>", "Filter by error code").trackedAction(processContext5, async (options) => {
13267
13657
  const query = buildQueryString({
13268
13658
  processKey: options.processKey,
13269
13659
  packageId: options.packageId,
@@ -13281,7 +13671,7 @@ var registerInstancesCommand = (program) => {
13281
13671
  Data: result.value || []
13282
13672
  });
13283
13673
  });
13284
- instances.command("get").description("Get a process instance by ID").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext4, async (instanceId, options) => {
13674
+ instances.command("get").description("Get a process instance by ID").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext5, async (instanceId, options) => {
13285
13675
  const result = await withPimsCall((config) => pimsGet(config, `/instances/${instanceId}`, { folderKey: options.folderKey }), "Error getting instance");
13286
13676
  if (!result)
13287
13677
  return;
@@ -13291,7 +13681,7 @@ var registerInstancesCommand = (program) => {
13291
13681
  Data: result
13292
13682
  });
13293
13683
  });
13294
- instances.command("pause").description("Pause a running process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext4, async (instanceId, options) => {
13684
+ instances.command("pause").description("Pause a running process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext5, async (instanceId, options) => {
13295
13685
  const body = { comment: options.comment || "" };
13296
13686
  const reqOptions = { folderKey: options.folderKey };
13297
13687
  const result = await withPimsCall((config) => pimsPost(config, `/instances/${instanceId}/pause`, body, reqOptions), "Error pausing instance");
@@ -13303,7 +13693,7 @@ var registerInstancesCommand = (program) => {
13303
13693
  Data: result
13304
13694
  });
13305
13695
  });
13306
- instances.command("resume").description("Resume a paused process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext4, async (instanceId, options) => {
13696
+ instances.command("resume").description("Resume a paused process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext5, async (instanceId, options) => {
13307
13697
  const body = { comment: options.comment || "" };
13308
13698
  const reqOptions = { folderKey: options.folderKey };
13309
13699
  const result = await withPimsCall((config) => pimsPost(config, `/instances/${instanceId}/resume`, body, reqOptions), "Error resuming instance");
@@ -13315,7 +13705,7 @@ var registerInstancesCommand = (program) => {
13315
13705
  Data: result
13316
13706
  });
13317
13707
  });
13318
- instances.command("cancel").description("Cancel a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext4, async (instanceId, options) => {
13708
+ instances.command("cancel").description("Cancel a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext5, async (instanceId, options) => {
13319
13709
  const body = { comment: options.comment || "" };
13320
13710
  const reqOptions = { folderKey: options.folderKey };
13321
13711
  const result = await withPimsCall((config) => pimsPost(config, `/instances/${instanceId}/cancel`, body, reqOptions), "Error canceling instance");
@@ -13327,7 +13717,7 @@ var registerInstancesCommand = (program) => {
13327
13717
  Data: result
13328
13718
  });
13329
13719
  });
13330
- instances.command("variables").description("Get variables for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--parent-element-id <id>", "Filter variables by parent element ID").trackedAction(processContext4, async (instanceId, options) => {
13720
+ instances.command("variables").description("Get variables for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--parent-element-id <id>", "Filter variables by parent element ID").trackedAction(processContext5, async (instanceId, options) => {
13331
13721
  const query = buildQueryString({
13332
13722
  parentElementId: options.parentElementId
13333
13723
  });
@@ -13341,7 +13731,7 @@ var registerInstancesCommand = (program) => {
13341
13731
  Data: result
13342
13732
  });
13343
13733
  });
13344
- instances.command("incidents").description("Get incidents for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext4, async (instanceId, options) => {
13734
+ instances.command("incidents").description("Get incidents for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext5, async (instanceId, options) => {
13345
13735
  const result = await withPimsCall((config) => pimsGet(config, `/instances/${instanceId}/incidents`, { folderKey: options.folderKey }), "Error getting incidents");
13346
13736
  if (!result)
13347
13737
  return;
@@ -13351,7 +13741,7 @@ var registerInstancesCommand = (program) => {
13351
13741
  Data: result
13352
13742
  });
13353
13743
  });
13354
- instances.command("asset").description("Get the BPMN XML asset for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext4, async (instanceId, options) => {
13744
+ instances.command("asset").description("Get the BPMN XML asset for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext5, async (instanceId, options) => {
13355
13745
  const result = await withPimsCall((config) => pimsGet(config, `/instances/${instanceId}/asset?type=bpmn`, { folderKey: options.folderKey }), "Error getting asset");
13356
13746
  if (!result)
13357
13747
  return;
@@ -13361,7 +13751,7 @@ var registerInstancesCommand = (program) => {
13361
13751
  Data: result
13362
13752
  });
13363
13753
  });
13364
- instances.command("retry").description("Retry a faulted process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext4, async (instanceId, options) => {
13754
+ instances.command("retry").description("Retry a faulted process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext5, async (instanceId, options) => {
13365
13755
  const body = { comment: options.comment || "" };
13366
13756
  const reqOptions = { folderKey: options.folderKey };
13367
13757
  const result = await withPimsCall((config) => pimsPost(config, `/instances/${instanceId}/retry`, body, reqOptions), "Error retrying instance");
@@ -13373,7 +13763,7 @@ var registerInstancesCommand = (program) => {
13373
13763
  Data: result
13374
13764
  });
13375
13765
  });
13376
- instances.command("migrate").description("Migrate a process instance to a different package version").argument("<instance-id>", "Process instance ID").argument("<new-version>", "Target package version").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext4, async (instanceId, newVersion, options) => {
13766
+ instances.command("migrate").description("Migrate a process instance to a different package version").argument("<instance-id>", "Process instance ID").argument("<new-version>", "Target package version").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--comment <text>", "Optional comment for the operation").trackedAction(processContext5, async (instanceId, newVersion, options) => {
13377
13767
  const body = {
13378
13768
  newVersion,
13379
13769
  comment: options.comment || ""
@@ -13388,7 +13778,7 @@ var registerInstancesCommand = (program) => {
13388
13778
  Data: result
13389
13779
  });
13390
13780
  });
13391
- instances.command("goto").description("Move execution cursor from one element to another").argument("<instance-id>", "Process instance ID").argument("<transitions>", `JSON array of transitions, e.g. '[{"sourceElementId":"A","targetElementId":"B"}]'`).requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext4, async (instanceId, transitionsJson, options) => {
13781
+ instances.command("goto").description("Move execution cursor from one element to another").argument("<instance-id>", "Process instance ID").argument("<transitions>", `JSON array of transitions, e.g. '[{"sourceElementId":"A","targetElementId":"B"}]'`).requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext5, async (instanceId, transitionsJson, options) => {
13392
13782
  const [parseError, transitions] = catchError9(() => JSON.parse(transitionsJson));
13393
13783
  const isValidShape = !parseError && Array.isArray(transitions) && transitions.every((t) => t.sourceElementId && t.targetElementId);
13394
13784
  if (!isValidShape) {
@@ -13397,7 +13787,7 @@ var registerInstancesCommand = (program) => {
13397
13787
  Message: "Error applying goto",
13398
13788
  Instructions: parseError ? `Invalid transitions JSON: ${parseError.message}` : 'Each transition must have "sourceElementId" and "targetElementId"'
13399
13789
  });
13400
- processContext4.exit(1);
13790
+ processContext5.exit(1);
13401
13791
  return;
13402
13792
  }
13403
13793
  const body = { transitions };
@@ -13411,7 +13801,7 @@ var registerInstancesCommand = (program) => {
13411
13801
  Data: result
13412
13802
  });
13413
13803
  });
13414
- instances.command("cursors").description("Get current execution cursor positions for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext4, async (instanceId, options) => {
13804
+ instances.command("cursors").description("Get current execution cursor positions for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext5, async (instanceId, options) => {
13415
13805
  const result = await withPimsCall((config) => pimsGet(config, `/instances/${instanceId}/goto/cursors`, { folderKey: options.folderKey }), "Error getting cursors");
13416
13806
  if (!result)
13417
13807
  return;
@@ -13421,7 +13811,7 @@ var registerInstancesCommand = (program) => {
13421
13811
  Data: result
13422
13812
  });
13423
13813
  });
13424
- instances.command("element-executions").description("Get element executions for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext4, async (instanceId, options) => {
13814
+ instances.command("element-executions").description("Get element executions for a process instance").argument("<instance-id>", "Process instance ID").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").trackedAction(processContext5, async (instanceId, options) => {
13425
13815
  const result = await withPimsCall((config) => pimsGet(config, `/instances/${instanceId}/element-executions`, { folderKey: options.folderKey }), "Error getting element executions");
13426
13816
  if (!result)
13427
13817
  return;
@@ -13437,13 +13827,13 @@ var registerInstancesCommand = (program) => {
13437
13827
  import { getLoginStatusAsync as getLoginStatusAsync4 } from "@uipath/auth";
13438
13828
  import {
13439
13829
  catchError as catchError10,
13440
- logger as logger6,
13830
+ logger as logger8,
13441
13831
  OutputFormatter as OutputFormatter6,
13442
- processContext as processContext5
13832
+ processContext as processContext6
13443
13833
  } from "@uipath/common";
13444
13834
  function registerJobCommand(program) {
13445
13835
  const jobCmd = program.command("job").description("Manage Maestro jobs");
13446
- jobCmd.command("traces").description("Stream traces for a running job").argument("<job-key>", "Job key (GUID from run command)").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("--traces-service <name>", "Traces service name (default: llmopstenant_)", "llmopstenant_").option("--pretty", "Show traces in human-readable format instead of raw JSON").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext5, async (jobKey, options) => {
13836
+ jobCmd.command("traces").description("Stream traces for a running job").argument("<job-key>", "Job key (GUID from run command)").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("--traces-service <name>", "Traces service name (default: llmopstenant_)", "llmopstenant_").option("--pretty", "Show traces in human-readable format instead of raw JSON").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext6, async (jobKey, options) => {
13447
13837
  const [loginErr, loginStatus] = await catchError10(getLoginStatusAsync4({
13448
13838
  ensureTokenValidityMinutes: options.loginValidity
13449
13839
  }));
@@ -13453,7 +13843,7 @@ function registerJobCommand(program) {
13453
13843
  Message: loginErr.message,
13454
13844
  Instructions: "Check authentication and parameters"
13455
13845
  });
13456
- processContext5.exit(1);
13846
+ processContext6.exit(1);
13457
13847
  return;
13458
13848
  }
13459
13849
  if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl) {
@@ -13462,7 +13852,7 @@ function registerJobCommand(program) {
13462
13852
  Message: "Not logged in. Run 'uipcli login' first.",
13463
13853
  Instructions: "Check authentication and parameters"
13464
13854
  });
13465
- processContext5.exit(1);
13855
+ processContext6.exit(1);
13466
13856
  return;
13467
13857
  }
13468
13858
  const tenantName = options.tenant || loginStatus.tenantName;
@@ -13472,7 +13862,7 @@ function registerJobCommand(program) {
13472
13862
  Message: "Missing tenant or organization info.",
13473
13863
  Instructions: "Check authentication and parameters"
13474
13864
  });
13475
- processContext5.exit(1);
13865
+ processContext6.exit(1);
13476
13866
  return;
13477
13867
  }
13478
13868
  const config = {
@@ -13493,11 +13883,11 @@ function registerJobCommand(program) {
13493
13883
  Message: `Invalid poll-interval: ${options.pollInterval}. Must be a positive number.`,
13494
13884
  Instructions: "Check authentication and parameters"
13495
13885
  });
13496
- processContext5.exit(1);
13886
+ processContext6.exit(1);
13497
13887
  return;
13498
13888
  }
13499
13889
  const pollSeconds = pollIntervalMs / 1000;
13500
- logger6.info(`Streaming traces for job: ${jobKey}
13890
+ logger8.info(`Streaming traces for job: ${jobKey}
13501
13891
  Polling every ${pollSeconds}s...`);
13502
13892
  const [streamErr, result] = await catchError10(streamJobTraces(config, jobKey, {
13503
13893
  onTrace: (trace) => {
@@ -13506,16 +13896,16 @@ function registerJobCommand(program) {
13506
13896
  const statusIcon = trace.status === "Completed" ? "✓" : trace.status === "Failed" || trace.status === "Faulted" ? "✗" : trace.status === "Running" || trace.status === "InProgress" ? "⏳" : "•";
13507
13897
  const duration = trace.duration ? ` ${trace.duration}ms` : "";
13508
13898
  const name2 = trace.name.length > 60 ? `${trace.name.substring(0, 57)}...` : trace.name;
13509
- logger6.info(`[${time}] ${statusIcon} ${name2} (${trace.status})${duration}`);
13899
+ logger8.info(`[${time}] ${statusIcon} ${name2} (${trace.status})${duration}`);
13510
13900
  } else {
13511
- logger6.info(JSON.stringify(trace));
13901
+ logger8.info(JSON.stringify(trace));
13512
13902
  }
13513
13903
  },
13514
13904
  onComplete: (result2) => {
13515
- logger6.info(`Job ${result2.finalState}: ${result2.finalState} (${result2.duration}ms)`);
13905
+ logger8.info(`Job ${result2.finalState}: ${result2.finalState} (${result2.duration}ms)`);
13516
13906
  },
13517
13907
  onError: (error3) => {
13518
- logger6.error(`Error: ${error3.message}`);
13908
+ logger8.error(`Error: ${error3.message}`);
13519
13909
  },
13520
13910
  pollInterval: pollIntervalMs
13521
13911
  }));
@@ -13525,12 +13915,12 @@ function registerJobCommand(program) {
13525
13915
  Message: streamErr.message,
13526
13916
  Instructions: "Check authentication and parameters"
13527
13917
  });
13528
- processContext5.exit(1);
13918
+ processContext6.exit(1);
13529
13919
  return;
13530
13920
  }
13531
- processContext5.exit(result.success ? 0 : 1);
13921
+ processContext6.exit(result.success ? 0 : 1);
13532
13922
  });
13533
- jobCmd.command("status").description("Get detailed status of a Maestro job").argument("<job-key>", "Job key (GUID from run command)").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").option("--folder-key <key>", "Folder key (GUID from list command, defaults to authenticated folder)").option("--detailed", "Show full response with all fields").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext5, async (jobKey, options) => {
13923
+ jobCmd.command("status").description("Get detailed status of a Maestro job").argument("<job-key>", "Job key (GUID from run command)").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").option("--folder-key <key>", "Folder key (GUID from list command, defaults to authenticated folder)").option("--detailed", "Show full response with all fields").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext6, async (jobKey, options) => {
13534
13924
  const [loginErr, loginStatus] = await catchError10(getLoginStatusAsync4({
13535
13925
  ensureTokenValidityMinutes: options.loginValidity
13536
13926
  }));
@@ -13540,7 +13930,7 @@ function registerJobCommand(program) {
13540
13930
  Message: loginErr.message,
13541
13931
  Instructions: "Check job key, authentication, and folder permissions"
13542
13932
  });
13543
- processContext5.exit(1);
13933
+ processContext6.exit(1);
13544
13934
  return;
13545
13935
  }
13546
13936
  if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl) {
@@ -13549,7 +13939,7 @@ function registerJobCommand(program) {
13549
13939
  Message: "Not logged in. Run 'uipcli login' first.",
13550
13940
  Instructions: "Check job key, authentication, and folder permissions"
13551
13941
  });
13552
- processContext5.exit(1);
13942
+ processContext6.exit(1);
13553
13943
  return;
13554
13944
  }
13555
13945
  const tenantName = options.tenant || loginStatus.tenantName;
@@ -13559,7 +13949,7 @@ function registerJobCommand(program) {
13559
13949
  Message: "Missing tenant or organization info.",
13560
13950
  Instructions: "Check job key, authentication, and folder permissions"
13561
13951
  });
13562
- processContext5.exit(1);
13952
+ processContext6.exit(1);
13563
13953
  return;
13564
13954
  }
13565
13955
  const config = {
@@ -13579,7 +13969,7 @@ function registerJobCommand(program) {
13579
13969
  Message: statusErr.message,
13580
13970
  Instructions: "Check job key, authentication, and folder permissions"
13581
13971
  });
13582
- processContext5.exit(1);
13972
+ processContext6.exit(1);
13583
13973
  return;
13584
13974
  }
13585
13975
  const outputData = options.detailed ? status : {
@@ -13607,10 +13997,10 @@ function registerJobCommand(program) {
13607
13997
  }
13608
13998
 
13609
13999
  // src/commands/pack.ts
13610
- import { catchError as catchError12, OutputFormatter as OutputFormatter7, processContext as processContext6 } from "@uipath/common";
14000
+ import { catchError as catchError12, OutputFormatter as OutputFormatter7, processContext as processContext7 } from "@uipath/common";
13611
14001
 
13612
14002
  // src/services/maestro-pack-service.ts
13613
- import { catchError as catchError11, logger as logger7 } from "@uipath/common";
14003
+ import { catchError as catchError11, logger as logger9 } from "@uipath/common";
13614
14004
  import { getFileSystem as getFileSystem4 } from "@uipath/filesystem";
13615
14005
  import { NugetPackager as NugetPackager2 } from "@uipath/solutionpackager-tool-core";
13616
14006
  var VALID_PACKAGE_NAME_REGEX = /^[a-zA-Z0-9._-]+$/;
@@ -13627,14 +14017,14 @@ class MaestroPackService {
13627
14017
  if (!VALID_PACKAGE_NAME_REGEX.test(packageName)) {
13628
14018
  throw new Error(`Invalid package name "${packageName}". Package name can only contain letters, numbers, dots (.), underscores (_), and hyphens (-).`);
13629
14019
  }
13630
- logger7.info(`
14020
+ logger9.info(`
13631
14021
  Packing Maestro project...
13632
14022
  `);
13633
- logger7.info("Details:");
13634
- logger7.info(` Project: ${absoluteProjectPath}`);
13635
- logger7.info(` Package: ${packageName}@${options.version}`);
13636
- logger7.info(` Output: ${absoluteOutputPath}`);
13637
- logger7.info("");
14023
+ logger9.info("Details:");
14024
+ logger9.info(` Project: ${absoluteProjectPath}`);
14025
+ logger9.info(` Package: ${packageName}@${options.version}`);
14026
+ logger9.info(` Output: ${absoluteOutputPath}`);
14027
+ logger9.info("");
13638
14028
  await this.validate(absoluteProjectPath);
13639
14029
  await this.fs.mkdir(absoluteOutputPath);
13640
14030
  let tempDir;
@@ -13714,7 +14104,7 @@ Packing Maestro project...
13714
14104
 
13715
14105
  // src/commands/pack.ts
13716
14106
  var registerPackCommand = (program) => {
13717
- program.command("pack").description("Pack a Maestro project into a .nupkg file").argument("<projectPath>", "Path to the Maestro project directory").argument("<outputPath>", "Output directory where the .nupkg will be saved").option("-n, --name <name>", "Package name (default: project folder name)").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0").trackedAction(processContext6, async (projectPath, outputPath, options) => {
14107
+ program.command("pack").description("Pack a Maestro project into a .nupkg file").argument("<projectPath>", "Path to the Maestro project directory").argument("<outputPath>", "Output directory where the .nupkg will be saved").option("-n, --name <name>", "Package name (default: project folder name)").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0").trackedAction(processContext7, async (projectPath, outputPath, options) => {
13718
14108
  const service = new MaestroPackService;
13719
14109
  const [error3, result] = await catchError12(service.execute(projectPath, {
13720
14110
  output: outputPath,
@@ -13727,7 +14117,7 @@ var registerPackCommand = (program) => {
13727
14117
  Message: "Maestro pack failed",
13728
14118
  Instructions: error3.message
13729
14119
  });
13730
- processContext6.exit(1);
14120
+ processContext7.exit(1);
13731
14121
  return;
13732
14122
  }
13733
14123
  OutputFormatter7.success({
@@ -13745,9 +14135,9 @@ var registerPackCommand = (program) => {
13745
14135
  import { getLoginStatusAsync as getLoginStatusAsync5 } from "@uipath/auth";
13746
14136
  import {
13747
14137
  catchError as catchError13,
13748
- logger as logger8,
14138
+ logger as logger10,
13749
14139
  OutputFormatter as OutputFormatter8,
13750
- processContext as processContext7
14140
+ processContext as processContext8
13751
14141
  } from "@uipath/common";
13752
14142
 
13753
14143
  // src/utils/input-reader.ts
@@ -13773,7 +14163,7 @@ async function readStdin() {
13773
14163
  // src/commands/process.ts
13774
14164
  function registerProcessCommand(program) {
13775
14165
  const processCmd = program.command("process").description("Manage Maestro processes");
13776
- processCmd.command("list").description("List available Maestro processes").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--filter <odata>", "Additional OData filter").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext7, async (options) => {
14166
+ processCmd.command("list").description("List available Maestro processes").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--filter <odata>", "Additional OData filter").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext8, async (options) => {
13777
14167
  const [loginErr, loginStatus] = await catchError13(getLoginStatusAsync5({
13778
14168
  ensureTokenValidityMinutes: options.loginValidity
13779
14169
  }));
@@ -13783,7 +14173,7 @@ function registerProcessCommand(program) {
13783
14173
  Message: loginErr.message,
13784
14174
  Instructions: "Check authentication and permissions"
13785
14175
  });
13786
- processContext7.exit(1);
14176
+ processContext8.exit(1);
13787
14177
  return;
13788
14178
  }
13789
14179
  if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl) {
@@ -13792,7 +14182,7 @@ function registerProcessCommand(program) {
13792
14182
  Message: "Not logged in. Run 'uip login' first.",
13793
14183
  Instructions: "Check authentication and permissions"
13794
14184
  });
13795
- processContext7.exit(1);
14185
+ processContext8.exit(1);
13796
14186
  return;
13797
14187
  }
13798
14188
  const tenantName = options.tenant || loginStatus.tenantName;
@@ -13802,7 +14192,7 @@ function registerProcessCommand(program) {
13802
14192
  Message: "Tenant not provided and not available from login. Use --tenant flag.",
13803
14193
  Instructions: "Check authentication and permissions"
13804
14194
  });
13805
- processContext7.exit(1);
14195
+ processContext8.exit(1);
13806
14196
  return;
13807
14197
  }
13808
14198
  if (!loginStatus.organizationId) {
@@ -13811,7 +14201,7 @@ function registerProcessCommand(program) {
13811
14201
  Message: "Organization ID not available from login.",
13812
14202
  Instructions: "Check authentication and permissions"
13813
14203
  });
13814
- processContext7.exit(1);
14204
+ processContext8.exit(1);
13815
14205
  return;
13816
14206
  }
13817
14207
  const config = {
@@ -13830,7 +14220,7 @@ function registerProcessCommand(program) {
13830
14220
  Message: listErr.message,
13831
14221
  Instructions: "Check authentication and permissions"
13832
14222
  });
13833
- processContext7.exit(1);
14223
+ processContext8.exit(1);
13834
14224
  return;
13835
14225
  }
13836
14226
  if (processes.length === 0) {
@@ -13839,7 +14229,7 @@ function registerProcessCommand(program) {
13839
14229
  Message: "No Maestro processes found.",
13840
14230
  Instructions: "Check folder permissions or try a different folder."
13841
14231
  });
13842
- processContext7.exit(1);
14232
+ processContext8.exit(1);
13843
14233
  return;
13844
14234
  }
13845
14235
  const formattedData = processes.map((p) => ({
@@ -13859,7 +14249,7 @@ function registerProcessCommand(program) {
13859
14249
  Instructions: `Found ${processes.length} Maestro process(es)`
13860
14250
  });
13861
14251
  });
13862
- processCmd.command("get").description("Get Maestro process schema and details").argument("<process-key>", "Process key").argument("<feed-id>", "Feed ID (from 'maestro process list')").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext7, async (processKey, feedId, options) => {
14252
+ processCmd.command("get").description("Get Maestro process schema and details").argument("<process-key>", "Process key").argument("<feed-id>", "Feed ID (from 'maestro process list')").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext8, async (processKey, feedId, options) => {
13863
14253
  const [loginErr, loginStatus] = await catchError13(getLoginStatusAsync5({
13864
14254
  ensureTokenValidityMinutes: options.loginValidity
13865
14255
  }));
@@ -13869,7 +14259,7 @@ function registerProcessCommand(program) {
13869
14259
  Message: loginErr.message,
13870
14260
  Instructions: "Check authentication and process key"
13871
14261
  });
13872
- processContext7.exit(1);
14262
+ processContext8.exit(1);
13873
14263
  return;
13874
14264
  }
13875
14265
  if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl) {
@@ -13878,7 +14268,7 @@ function registerProcessCommand(program) {
13878
14268
  Message: "Not logged in. Run 'uip login' first.",
13879
14269
  Instructions: "Check authentication and process key"
13880
14270
  });
13881
- processContext7.exit(1);
14271
+ processContext8.exit(1);
13882
14272
  return;
13883
14273
  }
13884
14274
  const tenantName = options.tenant || loginStatus.tenantName;
@@ -13888,7 +14278,7 @@ function registerProcessCommand(program) {
13888
14278
  Message: "Tenant not provided and not available from login. Use --tenant flag.",
13889
14279
  Instructions: "Check authentication and process key"
13890
14280
  });
13891
- processContext7.exit(1);
14281
+ processContext8.exit(1);
13892
14282
  return;
13893
14283
  }
13894
14284
  if (!loginStatus.organizationId) {
@@ -13897,7 +14287,7 @@ function registerProcessCommand(program) {
13897
14287
  Message: "Organization ID not available from login.",
13898
14288
  Instructions: "Check authentication and process key"
13899
14289
  });
13900
- processContext7.exit(1);
14290
+ processContext8.exit(1);
13901
14291
  return;
13902
14292
  }
13903
14293
  const config = {
@@ -13917,7 +14307,7 @@ function registerProcessCommand(program) {
13917
14307
  Message: entryErr.message,
13918
14308
  Instructions: "Check authentication and process key"
13919
14309
  });
13920
- processContext7.exit(1);
14310
+ processContext8.exit(1);
13921
14311
  return;
13922
14312
  }
13923
14313
  if (entryPoints.length === 0) {
@@ -13926,7 +14316,7 @@ function registerProcessCommand(program) {
13926
14316
  Message: "No entry points found for this process.",
13927
14317
  Instructions: "Verify the process key is correct and published."
13928
14318
  });
13929
- processContext7.exit(1);
14319
+ processContext8.exit(1);
13930
14320
  return;
13931
14321
  }
13932
14322
  const formattedData = entryPoints.map((ep) => {
@@ -13946,7 +14336,7 @@ function registerProcessCommand(program) {
13946
14336
  Instructions: `Found ${entryPoints.length} entry point(s) for ${processKey}`
13947
14337
  });
13948
14338
  });
13949
- processCmd.command("run").description("Run a Maestro process with inputs").argument("<process-key>", "Process key").argument("<folder-key>", "Folder key (GUID)").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").option("--release-key <key>", "Release key (GUID, from list command)").option("--feed-id <id>", "Feed ID for package lookup (optional)").option("--robot-ids <ids>", "Comma-separated robot IDs (optional)").option("--validate", "Validate inputs against process schema (basic: required fields + primitive types)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext7, async (processKey, folderKey, options) => {
14339
+ processCmd.command("run").description("Run a Maestro process with inputs").argument("<process-key>", "Process key").argument("<folder-key>", "Folder key (GUID)").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("-t, --tenant <tenant-name>", "Tenant (optional, defaults to authenticated tenant)").option("--release-key <key>", "Release key (GUID, from list command)").option("--feed-id <id>", "Feed ID for package lookup (optional)").option("--robot-ids <ids>", "Comma-separated robot IDs (optional)").option("--validate", "Validate inputs against process schema (basic: required fields + primitive types)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).trackedAction(processContext8, async (processKey, folderKey, options) => {
13950
14340
  const [loginErr, loginStatus] = await catchError13(getLoginStatusAsync5({
13951
14341
  ensureTokenValidityMinutes: options.loginValidity
13952
14342
  }));
@@ -13956,7 +14346,7 @@ function registerProcessCommand(program) {
13956
14346
  Message: loginErr.message,
13957
14347
  Instructions: "Check authentication and parameters"
13958
14348
  });
13959
- processContext7.exit(1);
14349
+ processContext8.exit(1);
13960
14350
  return;
13961
14351
  }
13962
14352
  if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl) {
@@ -13965,7 +14355,7 @@ function registerProcessCommand(program) {
13965
14355
  Message: "Not logged in. Run 'uip login' first.",
13966
14356
  Instructions: "Check authentication and parameters"
13967
14357
  });
13968
- processContext7.exit(1);
14358
+ processContext8.exit(1);
13969
14359
  return;
13970
14360
  }
13971
14361
  const tenantName = options.tenant || loginStatus.tenantName;
@@ -13975,7 +14365,7 @@ function registerProcessCommand(program) {
13975
14365
  Message: "Tenant not provided and not available from login. Use --tenant flag.",
13976
14366
  Instructions: "Check authentication and parameters"
13977
14367
  });
13978
- processContext7.exit(1);
14368
+ processContext8.exit(1);
13979
14369
  return;
13980
14370
  }
13981
14371
  if (!loginStatus.organizationId) {
@@ -13984,7 +14374,7 @@ function registerProcessCommand(program) {
13984
14374
  Message: "Organization ID not available from login.",
13985
14375
  Instructions: "Check authentication and parameters"
13986
14376
  });
13987
- processContext7.exit(1);
14377
+ processContext8.exit(1);
13988
14378
  return;
13989
14379
  }
13990
14380
  let inputs = {};
@@ -13996,7 +14386,7 @@ function registerProcessCommand(program) {
13996
14386
  Message: parseErr.message,
13997
14387
  Instructions: "Check authentication and parameters"
13998
14388
  });
13999
- processContext7.exit(1);
14389
+ processContext8.exit(1);
14000
14390
  return;
14001
14391
  }
14002
14392
  inputs = parsedInputs;
@@ -14008,7 +14398,7 @@ function registerProcessCommand(program) {
14008
14398
  Message: stdinErr.message,
14009
14399
  Instructions: "Check authentication and parameters"
14010
14400
  });
14011
- processContext7.exit(1);
14401
+ processContext8.exit(1);
14012
14402
  return;
14013
14403
  }
14014
14404
  if (stdinData) {
@@ -14019,7 +14409,7 @@ function registerProcessCommand(program) {
14019
14409
  Message: parseErr.message,
14020
14410
  Instructions: "Check authentication and parameters"
14021
14411
  });
14022
- processContext7.exit(1);
14412
+ processContext8.exit(1);
14023
14413
  return;
14024
14414
  }
14025
14415
  inputs = parsedInputs;
@@ -14045,7 +14435,7 @@ function registerProcessCommand(program) {
14045
14435
  Message: `Invalid robot-ids: ${options.robotIds}. Must be comma-separated numbers.`,
14046
14436
  Instructions: "Check authentication and parameters"
14047
14437
  });
14048
- processContext7.exit(1);
14438
+ processContext8.exit(1);
14049
14439
  return;
14050
14440
  }
14051
14441
  }
@@ -14057,7 +14447,7 @@ function registerProcessCommand(program) {
14057
14447
  Message: validateErr.message,
14058
14448
  Instructions: "Check authentication and parameters"
14059
14449
  });
14060
- processContext7.exit(1);
14450
+ processContext8.exit(1);
14061
14451
  return;
14062
14452
  }
14063
14453
  if (!validation.valid) {
@@ -14068,10 +14458,10 @@ function registerProcessCommand(program) {
14068
14458
  Message: "Input validation failed",
14069
14459
  Instructions: errorList || "Check required input fields"
14070
14460
  });
14071
- processContext7.exit(1);
14461
+ processContext8.exit(1);
14072
14462
  return;
14073
14463
  }
14074
- logger8.info("Input validation passed");
14464
+ logger10.info("Input validation passed");
14075
14465
  }
14076
14466
  const [jobErr, job] = await catchError13(startMaestroProjectJob(config));
14077
14467
  if (jobErr) {
@@ -14080,7 +14470,7 @@ function registerProcessCommand(program) {
14080
14470
  Message: jobErr.message,
14081
14471
  Instructions: "Check authentication and parameters"
14082
14472
  });
14083
- processContext7.exit(1);
14473
+ processContext8.exit(1);
14084
14474
  return;
14085
14475
  }
14086
14476
  OutputFormatter8.success({
@@ -14093,7 +14483,7 @@ function registerProcessCommand(program) {
14093
14483
  },
14094
14484
  Instructions: `Watch traces: uip maestro job traces ${job.key}`
14095
14485
  });
14096
- processContext7.exit(0);
14486
+ processContext8.exit(0);
14097
14487
  });
14098
14488
  }
14099
14489
  function parseEntryPointSchemas(ep) {
@@ -14102,17 +14492,17 @@ function parseEntryPointSchemas(ep) {
14102
14492
  output: JSON.parse(ep.OutputArguments)
14103
14493
  }));
14104
14494
  if (err) {
14105
- logger8.warn(`Failed to parse arguments for ${ep.Path}: ${err.message}`);
14495
+ logger10.warn(`Failed to parse arguments for ${ep.Path}: ${err.message}`);
14106
14496
  return { input: {}, output: {} };
14107
14497
  }
14108
14498
  return schemas;
14109
14499
  }
14110
14500
 
14111
14501
  // src/commands/processes.ts
14112
- import { OutputFormatter as OutputFormatter9, processContext as processContext8 } from "@uipath/common";
14502
+ import { OutputFormatter as OutputFormatter9, processContext as processContext9 } from "@uipath/common";
14113
14503
  var registerProcessesCommand = (program) => {
14114
14504
  const processes = program.command("processes").description("Manage Maestro process summaries");
14115
- processes.command("list").description("List all process summaries").trackedAction(processContext8, async () => {
14505
+ processes.command("list").description("List all process summaries").trackedAction(processContext9, async () => {
14116
14506
  const result = await withPimsCall((config) => pimsGet(config, "/processes/summary"), "Error listing processes");
14117
14507
  if (!result)
14118
14508
  return;
@@ -14122,7 +14512,7 @@ var registerProcessesCommand = (program) => {
14122
14512
  Data: result
14123
14513
  });
14124
14514
  });
14125
- processes.command("incidents").description("Get incidents for a specific process").argument("<process-key>", "Process definition key").option("--folder-key <key>", "Folder key").trackedAction(processContext8, async (processKey, options) => {
14515
+ processes.command("incidents").description("Get incidents for a specific process").argument("<process-key>", "Process definition key").option("--folder-key <key>", "Folder key").trackedAction(processContext9, async (processKey, options) => {
14126
14516
  const reqOptions = { folderKey: options.folderKey };
14127
14517
  const result = await withPimsCall((config) => pimsGet(config, `/incidents/process/${processKey}`, reqOptions), "Error getting process incidents");
14128
14518
  if (!result)