@uipath/gov-tool 1.198.0 → 1.199.0-preview.105
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.
- package/dist/tool.js +108 -19
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -21230,7 +21230,7 @@ var require_commander = __commonJS((exports) => {
|
|
|
21230
21230
|
var package_default = {
|
|
21231
21231
|
name: "@uipath/gov-tool",
|
|
21232
21232
|
license: "MIT",
|
|
21233
|
-
version: "1.
|
|
21233
|
+
version: "1.199.0-preview.105",
|
|
21234
21234
|
description: "Manage UiPath governance — AOps policies, Access policies, and compliance packs.",
|
|
21235
21235
|
private: false,
|
|
21236
21236
|
repository: {
|
|
@@ -21636,7 +21636,7 @@ class VoidApiResponse {
|
|
|
21636
21636
|
var package_default2 = {
|
|
21637
21637
|
name: "@uipath/authz-sdk",
|
|
21638
21638
|
license: "MIT",
|
|
21639
|
-
version: "1.
|
|
21639
|
+
version: "1.199.0",
|
|
21640
21640
|
description: "SDK for the UiPath Authorization Service API.",
|
|
21641
21641
|
repository: {
|
|
21642
21642
|
type: "git",
|
|
@@ -22325,6 +22325,7 @@ var resolveConfigAsync = async ({
|
|
|
22325
22325
|
customAuthority,
|
|
22326
22326
|
customClientId,
|
|
22327
22327
|
customClientSecret,
|
|
22328
|
+
customClientAssertion,
|
|
22328
22329
|
customScopes
|
|
22329
22330
|
} = {}) => {
|
|
22330
22331
|
const fileAuth = getAuthFileConfig();
|
|
@@ -22350,7 +22351,7 @@ var resolveConfigAsync = async ({
|
|
|
22350
22351
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
22351
22352
|
clientSecret = fileAuth.clientSecret;
|
|
22352
22353
|
}
|
|
22353
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
22354
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
22354
22355
|
const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
22355
22356
|
return {
|
|
22356
22357
|
clientId,
|
|
@@ -23436,7 +23437,6 @@ function normalizeTokenRefreshUnavailableFailure() {
|
|
|
23436
23437
|
function errorMessage(error) {
|
|
23437
23438
|
return error instanceof Error ? error.message : String(error);
|
|
23438
23439
|
}
|
|
23439
|
-
|
|
23440
23440
|
// ../../auth/src/index.ts
|
|
23441
23441
|
init_constants();
|
|
23442
23442
|
|
|
@@ -23530,6 +23530,7 @@ function settlePromiseLike2(thenable) {
|
|
|
23530
23530
|
var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
|
|
23531
23531
|
var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
|
|
23532
23532
|
var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
|
|
23533
|
+
var DEFAULT_413 = "Payload too large (413). The upload exceeded the server or CDN size limit. Reduce the package size — for example, exclude unused dependencies or remove large files from the project — and try again.";
|
|
23533
23534
|
var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
|
|
23534
23535
|
var NETWORK_ERROR_CODES = new Set([
|
|
23535
23536
|
"ECONNREFUSED",
|
|
@@ -23631,6 +23632,9 @@ function classifyError(status, error) {
|
|
|
23631
23632
|
if (status === 405) {
|
|
23632
23633
|
return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
|
|
23633
23634
|
}
|
|
23635
|
+
if (status === 413) {
|
|
23636
|
+
return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
|
|
23637
|
+
}
|
|
23634
23638
|
if (status === 408) {
|
|
23635
23639
|
return { errorCode: "timeout", retry: "RetryLater" };
|
|
23636
23640
|
}
|
|
@@ -23708,6 +23712,8 @@ async function extractErrorDetails(error, options) {
|
|
|
23708
23712
|
result = "AuthenticationError";
|
|
23709
23713
|
} else if (status === 405) {
|
|
23710
23714
|
message = DEFAULT_405;
|
|
23715
|
+
} else if (status === 413) {
|
|
23716
|
+
message = DEFAULT_413;
|
|
23711
23717
|
} else if (status === 400 || status === 422) {
|
|
23712
23718
|
message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
|
|
23713
23719
|
result = "ValidationError";
|
|
@@ -30554,6 +30560,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
|
|
|
30554
30560
|
var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
|
|
30555
30561
|
var COMMAND_ATTRIBUTION = commandAttribution([
|
|
30556
30562
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
30563
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
30557
30564
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
30558
30565
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
30559
30566
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -31525,7 +31532,7 @@ class TextApiResponse {
|
|
|
31525
31532
|
var package_default3 = {
|
|
31526
31533
|
name: "@uipath/aops-policy-sdk",
|
|
31527
31534
|
license: "MIT",
|
|
31528
|
-
version: "1.
|
|
31535
|
+
version: "1.199.0",
|
|
31529
31536
|
description: "SDK for the UiPath AOps Governance API — policy management and deployment.",
|
|
31530
31537
|
repository: {
|
|
31531
31538
|
type: "git",
|
|
@@ -57311,7 +57318,7 @@ class VoidApiResponse3 {
|
|
|
57311
57318
|
var package_default4 = {
|
|
57312
57319
|
name: "@uipath/compliance-packs-sdk",
|
|
57313
57320
|
license: "MIT",
|
|
57314
|
-
version: "1.
|
|
57321
|
+
version: "1.199.0",
|
|
57315
57322
|
description: "SDK for the UiPath Governance Server Compliance Packs API.",
|
|
57316
57323
|
repository: {
|
|
57317
57324
|
type: "git",
|
|
@@ -57368,7 +57375,8 @@ function ControlEntryFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57368
57375
|
recommendedSetting: json2["recommendedSetting"],
|
|
57369
57376
|
configLocation: json2["configLocation"],
|
|
57370
57377
|
impact: json2["impact"],
|
|
57371
|
-
contributionKeys: json2["contributionKeys"]
|
|
57378
|
+
contributionKeys: json2["contributionKeys"],
|
|
57379
|
+
isManualConfigNeeded: json2["isManualConfigNeeded"] == null ? undefined : json2["isManualConfigNeeded"]
|
|
57372
57380
|
};
|
|
57373
57381
|
}
|
|
57374
57382
|
function ControlPredicateEqFromJSON(json2) {
|
|
@@ -57463,7 +57471,8 @@ function PackListEntryFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57463
57471
|
packLongName: json2["packLongName"] == null ? undefined : json2["packLongName"],
|
|
57464
57472
|
packVersion: json2["packVersion"],
|
|
57465
57473
|
description: json2["description"],
|
|
57466
|
-
|
|
57474
|
+
available: json2["available"],
|
|
57475
|
+
publishedAt: json2["publishedAt"] == null ? null : new Date(json2["publishedAt"]),
|
|
57467
57476
|
summary: PackSummaryCountsFromJSON(json2["summary"])
|
|
57468
57477
|
};
|
|
57469
57478
|
}
|
|
@@ -57478,6 +57487,36 @@ function CatalogListResponseFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57478
57487
|
packs: json2["packs"].map(PackListEntryFromJSON)
|
|
57479
57488
|
};
|
|
57480
57489
|
}
|
|
57490
|
+
function ControlCoverageFromJSON(json2) {
|
|
57491
|
+
return ControlCoverageFromJSONTyped(json2, false);
|
|
57492
|
+
}
|
|
57493
|
+
function ControlCoverageFromJSONTyped(json2, ignoreDiscriminator) {
|
|
57494
|
+
if (json2 == null) {
|
|
57495
|
+
return json2;
|
|
57496
|
+
}
|
|
57497
|
+
return {
|
|
57498
|
+
controlDisplayName: json2["controlDisplayName"],
|
|
57499
|
+
productIdentifier: json2["productIdentifier"],
|
|
57500
|
+
impact: json2["impact"],
|
|
57501
|
+
recommendedSetting: json2["recommendedSetting"],
|
|
57502
|
+
status: json2["status"]
|
|
57503
|
+
};
|
|
57504
|
+
}
|
|
57505
|
+
function ManualConfigCheckFromJSON(json2) {
|
|
57506
|
+
return ManualConfigCheckFromJSONTyped(json2, false);
|
|
57507
|
+
}
|
|
57508
|
+
function ManualConfigCheckFromJSONTyped(json2, ignoreDiscriminator) {
|
|
57509
|
+
if (json2 == null) {
|
|
57510
|
+
return json2;
|
|
57511
|
+
}
|
|
57512
|
+
return {
|
|
57513
|
+
controlDisplayName: json2["controlDisplayName"],
|
|
57514
|
+
productIdentifier: json2["productIdentifier"],
|
|
57515
|
+
key: json2["key"],
|
|
57516
|
+
expected: ControlPredicateFromJSON(json2["expected"]),
|
|
57517
|
+
actual: json2["actual"] == null ? undefined : json2["actual"]
|
|
57518
|
+
};
|
|
57519
|
+
}
|
|
57481
57520
|
function ClauseCoverageFromJSON(json2) {
|
|
57482
57521
|
return ClauseCoverageFromJSONTyped(json2, false);
|
|
57483
57522
|
}
|
|
@@ -57487,7 +57526,24 @@ function ClauseCoverageFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57487
57526
|
}
|
|
57488
57527
|
return {
|
|
57489
57528
|
clauseId: json2["clauseId"],
|
|
57490
|
-
status: json2["status"]
|
|
57529
|
+
status: json2["status"],
|
|
57530
|
+
deployedControlCount: json2["deployedControlCount"],
|
|
57531
|
+
checkableControlCount: json2["checkableControlCount"],
|
|
57532
|
+
manualConfigChecks: json2["manualConfigChecks"] == null ? undefined : json2["manualConfigChecks"].map(ManualConfigCheckFromJSON),
|
|
57533
|
+
controls: json2["controls"] == null ? undefined : json2["controls"].map(ControlCoverageFromJSON)
|
|
57534
|
+
};
|
|
57535
|
+
}
|
|
57536
|
+
function ClauseSummaryFromJSON(json2) {
|
|
57537
|
+
return ClauseSummaryFromJSONTyped(json2, false);
|
|
57538
|
+
}
|
|
57539
|
+
function ClauseSummaryFromJSONTyped(json2, ignoreDiscriminator) {
|
|
57540
|
+
if (json2 == null) {
|
|
57541
|
+
return json2;
|
|
57542
|
+
}
|
|
57543
|
+
return {
|
|
57544
|
+
fullyDeployedCount: json2["fullyDeployedCount"],
|
|
57545
|
+
partiallyDeployedCount: json2["partiallyDeployedCount"],
|
|
57546
|
+
notDeployedCount: json2["notDeployedCount"]
|
|
57491
57547
|
};
|
|
57492
57548
|
}
|
|
57493
57549
|
function CoverageSummaryFromJSON(json2) {
|
|
@@ -57500,7 +57556,8 @@ function CoverageSummaryFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57500
57556
|
return {
|
|
57501
57557
|
deploymentPolicyCount: json2["deploymentPolicyCount"],
|
|
57502
57558
|
inPlaceCount: json2["inPlaceCount"],
|
|
57503
|
-
newCount: json2["newCount"]
|
|
57559
|
+
newCount: json2["newCount"],
|
|
57560
|
+
clauseSummary: ClauseSummaryFromJSON(json2["clauseSummary"])
|
|
57504
57561
|
};
|
|
57505
57562
|
}
|
|
57506
57563
|
function DeploymentPolicyCoverageFromJSON(json2) {
|
|
@@ -57529,6 +57586,19 @@ function DeploymentPolicyEntryFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57529
57586
|
policyFile: json2["policyFile"]
|
|
57530
57587
|
};
|
|
57531
57588
|
}
|
|
57589
|
+
function UnsupportedClauseFromJSON(json2) {
|
|
57590
|
+
return UnsupportedClauseFromJSONTyped(json2, false);
|
|
57591
|
+
}
|
|
57592
|
+
function UnsupportedClauseFromJSONTyped(json2, ignoreDiscriminator) {
|
|
57593
|
+
if (json2 == null) {
|
|
57594
|
+
return json2;
|
|
57595
|
+
}
|
|
57596
|
+
return {
|
|
57597
|
+
clauseId: json2["clauseId"],
|
|
57598
|
+
clauseName: json2["clauseName"],
|
|
57599
|
+
description: json2["description"] == null ? undefined : json2["description"]
|
|
57600
|
+
};
|
|
57601
|
+
}
|
|
57532
57602
|
function PackCatalogDetailFromJSON(json2) {
|
|
57533
57603
|
return PackCatalogDetailFromJSONTyped(json2, false);
|
|
57534
57604
|
}
|
|
@@ -57545,7 +57615,9 @@ function PackCatalogDetailFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57545
57615
|
publishedAt: new Date(json2["publishedAt"]),
|
|
57546
57616
|
summary: PackSummaryCountsFromJSON(json2["summary"]),
|
|
57547
57617
|
deploymentPolicies: json2["deploymentPolicies"].map(DeploymentPolicyEntryFromJSON),
|
|
57548
|
-
clauses: json2["clauses"].map(CatalogClauseFromJSON)
|
|
57618
|
+
clauses: json2["clauses"].map(CatalogClauseFromJSON),
|
|
57619
|
+
documentationUrl: json2["documentationUrl"] == null ? undefined : json2["documentationUrl"],
|
|
57620
|
+
unsupportedClauses: json2["unsupportedClauses"].map(UnsupportedClauseFromJSON)
|
|
57549
57621
|
};
|
|
57550
57622
|
}
|
|
57551
57623
|
function PackCoverageResponseFromJSON(json2) {
|
|
@@ -57560,8 +57632,8 @@ function PackCoverageResponseFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57560
57632
|
scopeLevel: json2["scopeLevel"],
|
|
57561
57633
|
scopeTargetId: json2["scopeTargetId"],
|
|
57562
57634
|
summary: CoverageSummaryFromJSON(json2["summary"]),
|
|
57563
|
-
deploymentPolicies: json2["deploymentPolicies"].map(DeploymentPolicyCoverageFromJSON),
|
|
57564
|
-
clauses: json2["clauses"].map(ClauseCoverageFromJSON)
|
|
57635
|
+
deploymentPolicies: json2["deploymentPolicies"] == null ? undefined : json2["deploymentPolicies"].map(DeploymentPolicyCoverageFromJSON),
|
|
57636
|
+
clauses: json2["clauses"] == null ? undefined : json2["clauses"].map(ClauseCoverageFromJSON)
|
|
57565
57637
|
};
|
|
57566
57638
|
}
|
|
57567
57639
|
function PackPolicyDtoFromJSON(json2) {
|
|
@@ -57590,7 +57662,7 @@ function PackStateDetailDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
57590
57662
|
packId: json2["packId"],
|
|
57591
57663
|
packVersion: json2["packVersion"],
|
|
57592
57664
|
active: json2["active"],
|
|
57593
|
-
lastToggledAt: new Date(json2["lastToggledAt"]),
|
|
57665
|
+
lastToggledAt: json2["lastToggledAt"] == null ? null : new Date(json2["lastToggledAt"]),
|
|
57594
57666
|
lastToggledBy: json2["lastToggledBy"],
|
|
57595
57667
|
policies: json2["policies"].map(PackPolicyDtoFromJSON)
|
|
57596
57668
|
};
|
|
@@ -57896,6 +57968,7 @@ var resolveConfigAsync2 = async ({
|
|
|
57896
57968
|
customAuthority,
|
|
57897
57969
|
customClientId,
|
|
57898
57970
|
customClientSecret,
|
|
57971
|
+
customClientAssertion,
|
|
57899
57972
|
customScopes
|
|
57900
57973
|
} = {}) => {
|
|
57901
57974
|
const fileAuth = getAuthFileConfig2();
|
|
@@ -57921,7 +57994,7 @@ var resolveConfigAsync2 = async ({
|
|
|
57921
57994
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
57922
57995
|
clientSecret = fileAuth.clientSecret;
|
|
57923
57996
|
}
|
|
57924
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID2 && Boolean(clientSecret);
|
|
57997
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID2 && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
57925
57998
|
const scopes = resolveScopes2(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
57926
57999
|
return {
|
|
57927
58000
|
clientId,
|
|
@@ -59157,13 +59230,18 @@ var registerCatalogCommands = (compliancePacks) => {
|
|
|
59157
59230
|
|
|
59158
59231
|
// src/commands/compliance-pack/state.ts
|
|
59159
59232
|
var LOGIN_INSTRUCTIONS7 = "Ensure you are logged in with 'uip login' and have access to the compliance packs service.";
|
|
59233
|
+
var CONFLICT_INSTRUCTIONS = "Another operation for this pack is still in progress. Wait a few seconds and retry.";
|
|
59160
59234
|
async function runCommand(operation, successCode, errorInstructions) {
|
|
59161
59235
|
const [error, result] = await catchError2(operation());
|
|
59162
59236
|
if (error) {
|
|
59237
|
+
const details = await extractErrorDetails(error);
|
|
59238
|
+
const isConflict = details.context?.httpStatus === 409;
|
|
59163
59239
|
OutputFormatter.error({
|
|
59164
59240
|
Result: RESULTS.Failure,
|
|
59165
|
-
Message:
|
|
59166
|
-
Instructions: errorInstructions
|
|
59241
|
+
Message: details.message,
|
|
59242
|
+
Instructions: isConflict ? CONFLICT_INSTRUCTIONS : errorInstructions,
|
|
59243
|
+
...details.context ? { Context: details.context } : {},
|
|
59244
|
+
...isConflict ? { Retry: "RetryAfter10Seconds" } : {}
|
|
59167
59245
|
});
|
|
59168
59246
|
processContext.exit(1);
|
|
59169
59247
|
return;
|
|
@@ -59174,6 +59252,17 @@ async function runCommand(operation, successCode, errorInstructions) {
|
|
|
59174
59252
|
Data: result
|
|
59175
59253
|
});
|
|
59176
59254
|
}
|
|
59255
|
+
function normalizeCoverage(res) {
|
|
59256
|
+
return {
|
|
59257
|
+
...res,
|
|
59258
|
+
deploymentPolicies: res.deploymentPolicies ?? [],
|
|
59259
|
+
clauses: (res.clauses ?? []).map((clause) => ({
|
|
59260
|
+
...clause,
|
|
59261
|
+
manualConfigChecks: clause.manualConfigChecks ?? [],
|
|
59262
|
+
controls: clause.controls ?? []
|
|
59263
|
+
}))
|
|
59264
|
+
};
|
|
59265
|
+
}
|
|
59177
59266
|
var SCOPE_DESCRIPTION = "Scope level for the pack state ('tenant' or 'organization'). Currently 'tenant' is the routinely used level.";
|
|
59178
59267
|
var TARGET_ID_DESCRIPTION = "The tenant ID (UUID) when scope=tenant, or org ID when scope=organization.";
|
|
59179
59268
|
var PACK_ID_DESCRIPTION = "Pack identifier (e.g. iso-42001-2023). Use 'catalog list' to see available pack IDs.";
|
|
@@ -59380,7 +59469,7 @@ var registerStateCommands = (compliancePacks) => {
|
|
|
59380
59469
|
scopeLevel,
|
|
59381
59470
|
scopeTargetId,
|
|
59382
59471
|
packId
|
|
59383
|
-
})), "CompliancePacksStateCoverage", "Check the pack identifier with 'uip gov compliance-packs catalog list'. A 502 means the Aops state could not be fetched."));
|
|
59472
|
+
}).then(normalizeCoverage)), "CompliancePacksStateCoverage", "Check the pack identifier with 'uip gov compliance-packs catalog list'. A 502 means the Aops state could not be fetched."));
|
|
59384
59473
|
};
|
|
59385
59474
|
|
|
59386
59475
|
// src/tool.ts
|
|
@@ -59416,4 +59505,4 @@ export {
|
|
|
59416
59505
|
metadata
|
|
59417
59506
|
};
|
|
59418
59507
|
|
|
59419
|
-
//# debugId=
|
|
59508
|
+
//# debugId=56B5D2907A30424F64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/gov-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.199.0-preview.105",
|
|
5
5
|
"description": "Manage UiPath governance — AOps policies, Access policies, and compliance packs.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "30a83200f41e8bb994929322e33176b4355f6707"
|
|
27
27
|
}
|