@uipath/apms-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/index.js +12 -5
- package/dist/tool.js +12 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21247,7 +21247,7 @@ var {
|
|
|
21247
21247
|
var package_default = {
|
|
21248
21248
|
name: "@uipath/apms-tool",
|
|
21249
21249
|
license: "MIT",
|
|
21250
|
-
version: "1.
|
|
21250
|
+
version: "1.199.0-preview.105",
|
|
21251
21251
|
description: "CLI plugin for the UiPath Access Policy Management Service.",
|
|
21252
21252
|
private: false,
|
|
21253
21253
|
repository: {
|
|
@@ -21655,7 +21655,7 @@ class VoidApiResponse {
|
|
|
21655
21655
|
var package_default2 = {
|
|
21656
21656
|
name: "@uipath/apms-sdk",
|
|
21657
21657
|
license: "MIT",
|
|
21658
|
-
version: "1.
|
|
21658
|
+
version: "1.199.0",
|
|
21659
21659
|
description: "SDK for the UiPath Access Policy Management Service API.",
|
|
21660
21660
|
repository: {
|
|
21661
21661
|
type: "git",
|
|
@@ -22736,6 +22736,7 @@ var resolveConfigAsync = async ({
|
|
|
22736
22736
|
customAuthority,
|
|
22737
22737
|
customClientId,
|
|
22738
22738
|
customClientSecret,
|
|
22739
|
+
customClientAssertion,
|
|
22739
22740
|
customScopes
|
|
22740
22741
|
} = {}) => {
|
|
22741
22742
|
const fileAuth = getAuthFileConfig();
|
|
@@ -22761,7 +22762,7 @@ var resolveConfigAsync = async ({
|
|
|
22761
22762
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
22762
22763
|
clientSecret = fileAuth.clientSecret;
|
|
22763
22764
|
}
|
|
22764
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
22765
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
22765
22766
|
const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
22766
22767
|
return {
|
|
22767
22768
|
clientId,
|
|
@@ -23847,7 +23848,6 @@ function normalizeTokenRefreshUnavailableFailure() {
|
|
|
23847
23848
|
function errorMessage(error) {
|
|
23848
23849
|
return error instanceof Error ? error.message : String(error);
|
|
23849
23850
|
}
|
|
23850
|
-
|
|
23851
23851
|
// ../../auth/src/index.ts
|
|
23852
23852
|
init_constants();
|
|
23853
23853
|
|
|
@@ -23945,6 +23945,7 @@ function settlePromiseLike2(thenable) {
|
|
|
23945
23945
|
var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
|
|
23946
23946
|
var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
|
|
23947
23947
|
var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
|
|
23948
|
+
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.";
|
|
23948
23949
|
var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
|
|
23949
23950
|
var NETWORK_ERROR_CODES = new Set([
|
|
23950
23951
|
"ECONNREFUSED",
|
|
@@ -24046,6 +24047,9 @@ function classifyError(status, error) {
|
|
|
24046
24047
|
if (status === 405) {
|
|
24047
24048
|
return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
|
|
24048
24049
|
}
|
|
24050
|
+
if (status === 413) {
|
|
24051
|
+
return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
|
|
24052
|
+
}
|
|
24049
24053
|
if (status === 408) {
|
|
24050
24054
|
return { errorCode: "timeout", retry: "RetryLater" };
|
|
24051
24055
|
}
|
|
@@ -24123,6 +24127,8 @@ async function extractErrorDetails(error, options) {
|
|
|
24123
24127
|
result = "AuthenticationError";
|
|
24124
24128
|
} else if (status === 405) {
|
|
24125
24129
|
message = DEFAULT_405;
|
|
24130
|
+
} else if (status === 413) {
|
|
24131
|
+
message = DEFAULT_413;
|
|
24126
24132
|
} else if (status === 400 || status === 422) {
|
|
24127
24133
|
message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
|
|
24128
24134
|
result = "ValidationError";
|
|
@@ -30953,6 +30959,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
|
|
|
30953
30959
|
var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
|
|
30954
30960
|
var COMMAND_ATTRIBUTION = commandAttribution([
|
|
30955
30961
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
30962
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
30956
30963
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
30957
30964
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
30958
30965
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -32388,4 +32395,4 @@ program2.name(metadata.commandPrefix).description(metadata.description).version(
|
|
|
32388
32395
|
await registerCommands(program2);
|
|
32389
32396
|
program2.parse(process.argv);
|
|
32390
32397
|
|
|
32391
|
-
//# debugId=
|
|
32398
|
+
//# debugId=95D85A7E2FE494C864756E2164756E21
|
package/dist/tool.js
CHANGED
|
@@ -19137,7 +19137,7 @@ var init_server = __esm(() => {
|
|
|
19137
19137
|
var package_default = {
|
|
19138
19138
|
name: "@uipath/apms-tool",
|
|
19139
19139
|
license: "MIT",
|
|
19140
|
-
version: "1.
|
|
19140
|
+
version: "1.199.0-preview.105",
|
|
19141
19141
|
description: "CLI plugin for the UiPath Access Policy Management Service.",
|
|
19142
19142
|
private: false,
|
|
19143
19143
|
repository: {
|
|
@@ -19545,7 +19545,7 @@ class VoidApiResponse {
|
|
|
19545
19545
|
var package_default2 = {
|
|
19546
19546
|
name: "@uipath/apms-sdk",
|
|
19547
19547
|
license: "MIT",
|
|
19548
|
-
version: "1.
|
|
19548
|
+
version: "1.199.0",
|
|
19549
19549
|
description: "SDK for the UiPath Access Policy Management Service API.",
|
|
19550
19550
|
repository: {
|
|
19551
19551
|
type: "git",
|
|
@@ -20626,6 +20626,7 @@ var resolveConfigAsync = async ({
|
|
|
20626
20626
|
customAuthority,
|
|
20627
20627
|
customClientId,
|
|
20628
20628
|
customClientSecret,
|
|
20629
|
+
customClientAssertion,
|
|
20629
20630
|
customScopes
|
|
20630
20631
|
} = {}) => {
|
|
20631
20632
|
const fileAuth = getAuthFileConfig();
|
|
@@ -20651,7 +20652,7 @@ var resolveConfigAsync = async ({
|
|
|
20651
20652
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
20652
20653
|
clientSecret = fileAuth.clientSecret;
|
|
20653
20654
|
}
|
|
20654
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
20655
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
20655
20656
|
const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
20656
20657
|
return {
|
|
20657
20658
|
clientId,
|
|
@@ -21737,7 +21738,6 @@ function normalizeTokenRefreshUnavailableFailure() {
|
|
|
21737
21738
|
function errorMessage(error) {
|
|
21738
21739
|
return error instanceof Error ? error.message : String(error);
|
|
21739
21740
|
}
|
|
21740
|
-
|
|
21741
21741
|
// ../../auth/src/index.ts
|
|
21742
21742
|
init_constants();
|
|
21743
21743
|
|
|
@@ -21835,6 +21835,7 @@ function settlePromiseLike2(thenable) {
|
|
|
21835
21835
|
var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
|
|
21836
21836
|
var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
|
|
21837
21837
|
var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
|
|
21838
|
+
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.";
|
|
21838
21839
|
var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
|
|
21839
21840
|
var NETWORK_ERROR_CODES = new Set([
|
|
21840
21841
|
"ECONNREFUSED",
|
|
@@ -21936,6 +21937,9 @@ function classifyError(status, error) {
|
|
|
21936
21937
|
if (status === 405) {
|
|
21937
21938
|
return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
|
|
21938
21939
|
}
|
|
21940
|
+
if (status === 413) {
|
|
21941
|
+
return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
|
|
21942
|
+
}
|
|
21939
21943
|
if (status === 408) {
|
|
21940
21944
|
return { errorCode: "timeout", retry: "RetryLater" };
|
|
21941
21945
|
}
|
|
@@ -22013,6 +22017,8 @@ async function extractErrorDetails(error, options) {
|
|
|
22013
22017
|
result = "AuthenticationError";
|
|
22014
22018
|
} else if (status === 405) {
|
|
22015
22019
|
message = DEFAULT_405;
|
|
22020
|
+
} else if (status === 413) {
|
|
22021
|
+
message = DEFAULT_413;
|
|
22016
22022
|
} else if (status === 400 || status === 422) {
|
|
22017
22023
|
message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
|
|
22018
22024
|
result = "ValidationError";
|
|
@@ -28847,6 +28853,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
|
|
|
28847
28853
|
var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
|
|
28848
28854
|
var COMMAND_ATTRIBUTION = commandAttribution([
|
|
28849
28855
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
28856
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
28850
28857
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
28851
28858
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
28852
28859
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -30285,4 +30292,4 @@ export {
|
|
|
30285
30292
|
metadata
|
|
30286
30293
|
};
|
|
30287
30294
|
|
|
30288
|
-
//# debugId=
|
|
30295
|
+
//# debugId=B01DEE14DF87A13C64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apms-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.199.0-preview.105",
|
|
5
5
|
"description": "CLI plugin for the UiPath Access Policy Management Service.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "30a83200f41e8bb994929322e33176b4355f6707"
|
|
30
30
|
}
|