@uipath/resourcecatalog-tool 1.198.0 → 1.199.0-preview.104

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 CHANGED
@@ -21247,7 +21247,7 @@ var {
21247
21247
  var package_default = {
21248
21248
  name: "@uipath/resourcecatalog-tool",
21249
21249
  license: "MIT",
21250
- version: "1.198.0",
21250
+ version: "1.199.0-preview.104",
21251
21251
  description: "CLI plugin for the UiPath Resource Catalog Service.",
21252
21252
  private: false,
21253
21253
  repository: {
@@ -21324,6 +21324,7 @@ function settlePromiseLike(thenable) {
21324
21324
  var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
21325
21325
  var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
21326
21326
  var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
21327
+ 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.";
21327
21328
  var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
21328
21329
  var NETWORK_ERROR_CODES = new Set([
21329
21330
  "ECONNREFUSED",
@@ -21425,6 +21426,9 @@ function classifyError(status, error) {
21425
21426
  if (status === 405) {
21426
21427
  return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
21427
21428
  }
21429
+ if (status === 413) {
21430
+ return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
21431
+ }
21428
21432
  if (status === 408) {
21429
21433
  return { errorCode: "timeout", retry: "RetryLater" };
21430
21434
  }
@@ -21502,6 +21506,8 @@ async function extractErrorDetails(error, options) {
21502
21506
  result = "AuthenticationError";
21503
21507
  } else if (status === 405) {
21504
21508
  message = DEFAULT_405;
21509
+ } else if (status === 413) {
21510
+ message = DEFAULT_413;
21505
21511
  } else if (status === 400 || status === 422) {
21506
21512
  message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
21507
21513
  result = "ValidationError";
@@ -28368,6 +28374,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
28368
28374
  var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
28369
28375
  var COMMAND_ATTRIBUTION = commandAttribution([
28370
28376
  ["cli", "troubleshoot", ["uip.feedback"]],
28377
+ ["llm-gateway", "operate", ["uip.llm-gateway"]],
28371
28378
  ["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
28372
28379
  ["context-grounding", "build", ["uip.context-grounding"]],
28373
28380
  ["api-workflow", "build", ["uip.api-workflow"]],
@@ -29025,7 +29032,7 @@ class VoidApiResponse {
29025
29032
  var package_default2 = {
29026
29033
  name: "@uipath/resourcecatalog-sdk",
29027
29034
  license: "MIT",
29028
- version: "1.198.0",
29035
+ version: "1.199.0",
29029
29036
  description: "SDK for the UiPath Resource Catalog Service API.",
29030
29037
  repository: {
29031
29038
  type: "git",
@@ -30467,6 +30474,7 @@ var resolveConfigAsync = async ({
30467
30474
  customAuthority,
30468
30475
  customClientId,
30469
30476
  customClientSecret,
30477
+ customClientAssertion,
30470
30478
  customScopes
30471
30479
  } = {}) => {
30472
30480
  const fileAuth = getAuthFileConfig();
@@ -30492,7 +30500,7 @@ var resolveConfigAsync = async ({
30492
30500
  if (!clientSecret && fileAuth.clientSecret) {
30493
30501
  clientSecret = fileAuth.clientSecret;
30494
30502
  }
30495
- const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
30503
+ const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
30496
30504
  const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
30497
30505
  return {
30498
30506
  clientId,
@@ -31578,7 +31586,6 @@ function normalizeTokenRefreshUnavailableFailure() {
31578
31586
  function errorMessage(error) {
31579
31587
  return error instanceof Error ? error.message : String(error);
31580
31588
  }
31581
-
31582
31589
  // ../../auth/src/index.ts
31583
31590
  init_constants();
31584
31591
 
@@ -31867,4 +31874,4 @@ program2.name(metadata.commandPrefix).description(metadata.description).version(
31867
31874
  await registerCommands(program2);
31868
31875
  program2.parse(process.argv);
31869
31876
 
31870
- //# debugId=22E52BACC3F14CFA64756E2164756E21
31877
+ //# debugId=0541F8FD77DCF92564756E2164756E21
package/dist/tool.js CHANGED
@@ -19137,7 +19137,7 @@ var init_server = __esm(() => {
19137
19137
  var package_default = {
19138
19138
  name: "@uipath/resourcecatalog-tool",
19139
19139
  license: "MIT",
19140
- version: "1.198.0",
19140
+ version: "1.199.0-preview.104",
19141
19141
  description: "CLI plugin for the UiPath Resource Catalog Service.",
19142
19142
  private: false,
19143
19143
  repository: {
@@ -19214,6 +19214,7 @@ function settlePromiseLike(thenable) {
19214
19214
  var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
19215
19215
  var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
19216
19216
  var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
19217
+ 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.";
19217
19218
  var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
19218
19219
  var NETWORK_ERROR_CODES = new Set([
19219
19220
  "ECONNREFUSED",
@@ -19315,6 +19316,9 @@ function classifyError(status, error) {
19315
19316
  if (status === 405) {
19316
19317
  return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
19317
19318
  }
19319
+ if (status === 413) {
19320
+ return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
19321
+ }
19318
19322
  if (status === 408) {
19319
19323
  return { errorCode: "timeout", retry: "RetryLater" };
19320
19324
  }
@@ -19392,6 +19396,8 @@ async function extractErrorDetails(error, options) {
19392
19396
  result = "AuthenticationError";
19393
19397
  } else if (status === 405) {
19394
19398
  message = DEFAULT_405;
19399
+ } else if (status === 413) {
19400
+ message = DEFAULT_413;
19395
19401
  } else if (status === 400 || status === 422) {
19396
19402
  message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
19397
19403
  result = "ValidationError";
@@ -26262,6 +26268,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
26262
26268
  var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
26263
26269
  var COMMAND_ATTRIBUTION = commandAttribution([
26264
26270
  ["cli", "troubleshoot", ["uip.feedback"]],
26271
+ ["llm-gateway", "operate", ["uip.llm-gateway"]],
26265
26272
  ["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
26266
26273
  ["context-grounding", "build", ["uip.context-grounding"]],
26267
26274
  ["api-workflow", "build", ["uip.api-workflow"]],
@@ -26923,7 +26930,7 @@ class VoidApiResponse {
26923
26930
  var package_default2 = {
26924
26931
  name: "@uipath/resourcecatalog-sdk",
26925
26932
  license: "MIT",
26926
- version: "1.198.0",
26933
+ version: "1.199.0",
26927
26934
  description: "SDK for the UiPath Resource Catalog Service API.",
26928
26935
  repository: {
26929
26936
  type: "git",
@@ -28365,6 +28372,7 @@ var resolveConfigAsync = async ({
28365
28372
  customAuthority,
28366
28373
  customClientId,
28367
28374
  customClientSecret,
28375
+ customClientAssertion,
28368
28376
  customScopes
28369
28377
  } = {}) => {
28370
28378
  const fileAuth = getAuthFileConfig();
@@ -28390,7 +28398,7 @@ var resolveConfigAsync = async ({
28390
28398
  if (!clientSecret && fileAuth.clientSecret) {
28391
28399
  clientSecret = fileAuth.clientSecret;
28392
28400
  }
28393
- const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
28401
+ const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
28394
28402
  const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
28395
28403
  return {
28396
28404
  clientId,
@@ -29476,7 +29484,6 @@ function normalizeTokenRefreshUnavailableFailure() {
29476
29484
  function errorMessage(error) {
29477
29485
  return error instanceof Error ? error.message : String(error);
29478
29486
  }
29479
-
29480
29487
  // ../../auth/src/index.ts
29481
29488
  init_constants();
29482
29489
 
@@ -29765,4 +29772,4 @@ export {
29765
29772
  metadata
29766
29773
  };
29767
29774
 
29768
- //# debugId=B8F89B4C288A876264756E2164756E21
29775
+ //# debugId=AE0F37D944399B7464756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/resourcecatalog-tool",
3
3
  "license": "MIT",
4
- "version": "1.198.0",
4
+ "version": "1.199.0-preview.104",
5
5
  "description": "CLI plugin for the UiPath Resource Catalog Service.",
6
6
  "private": false,
7
7
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "1fadf03d7a8dd102742571dff569fdac11808afb"
29
+ "gitHead": "829a8ab8a25bce5b62c284bd1ddc674d2947f647"
30
30
  }