@uipath/orchestrator-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/tool.js +43 -70
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -21250,7 +21250,7 @@ var init_server = __esm(() => {
|
|
|
21250
21250
|
var package_default = {
|
|
21251
21251
|
name: "@uipath/orchestrator-tool",
|
|
21252
21252
|
license: "MIT",
|
|
21253
|
-
version: "1.
|
|
21253
|
+
version: "1.199.0-preview.104",
|
|
21254
21254
|
description: "Manage Orchestrator folders, jobs, processes, and releases.",
|
|
21255
21255
|
private: false,
|
|
21256
21256
|
repository: {
|
|
@@ -21329,6 +21329,7 @@ function settlePromiseLike(thenable) {
|
|
|
21329
21329
|
var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
|
|
21330
21330
|
var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
|
|
21331
21331
|
var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
|
|
21332
|
+
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.";
|
|
21332
21333
|
var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
|
|
21333
21334
|
var NETWORK_ERROR_CODES = new Set([
|
|
21334
21335
|
"ECONNREFUSED",
|
|
@@ -21430,6 +21431,9 @@ function classifyError(status, error) {
|
|
|
21430
21431
|
if (status === 405) {
|
|
21431
21432
|
return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
|
|
21432
21433
|
}
|
|
21434
|
+
if (status === 413) {
|
|
21435
|
+
return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
|
|
21436
|
+
}
|
|
21433
21437
|
if (status === 408) {
|
|
21434
21438
|
return { errorCode: "timeout", retry: "RetryLater" };
|
|
21435
21439
|
}
|
|
@@ -21507,6 +21511,8 @@ async function extractErrorDetails(error, options) {
|
|
|
21507
21511
|
result = "AuthenticationError";
|
|
21508
21512
|
} else if (status === 405) {
|
|
21509
21513
|
message = DEFAULT_405;
|
|
21514
|
+
} else if (status === 413) {
|
|
21515
|
+
message = DEFAULT_413;
|
|
21510
21516
|
} else if (status === 400 || status === 422) {
|
|
21511
21517
|
message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
|
|
21512
21518
|
result = "ValidationError";
|
|
@@ -28424,6 +28430,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
|
|
|
28424
28430
|
var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
|
|
28425
28431
|
var COMMAND_ATTRIBUTION = commandAttribution([
|
|
28426
28432
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
28433
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
28427
28434
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
28428
28435
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
28429
28436
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -29549,7 +29556,7 @@ class TextApiResponse {
|
|
|
29549
29556
|
var package_default2 = {
|
|
29550
29557
|
name: "@uipath/orchestrator-sdk",
|
|
29551
29558
|
license: "MIT",
|
|
29552
|
-
version: "1.
|
|
29559
|
+
version: "1.199.0",
|
|
29553
29560
|
repository: {
|
|
29554
29561
|
type: "git",
|
|
29555
29562
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -50013,6 +50020,7 @@ var resolveConfigAsync = async ({
|
|
|
50013
50020
|
customAuthority,
|
|
50014
50021
|
customClientId,
|
|
50015
50022
|
customClientSecret,
|
|
50023
|
+
customClientAssertion,
|
|
50016
50024
|
customScopes
|
|
50017
50025
|
} = {}) => {
|
|
50018
50026
|
const fileAuth = getAuthFileConfig();
|
|
@@ -50038,7 +50046,7 @@ var resolveConfigAsync = async ({
|
|
|
50038
50046
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
50039
50047
|
clientSecret = fileAuth.clientSecret;
|
|
50040
50048
|
}
|
|
50041
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
50049
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
50042
50050
|
const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
50043
50051
|
return {
|
|
50044
50052
|
clientId,
|
|
@@ -51156,7 +51164,6 @@ var getAuthContext = async (options = {}) => {
|
|
|
51156
51164
|
tenantName
|
|
51157
51165
|
};
|
|
51158
51166
|
};
|
|
51159
|
-
|
|
51160
51167
|
// ../auth/src/index.ts
|
|
51161
51168
|
init_constants();
|
|
51162
51169
|
|
|
@@ -51442,20 +51449,28 @@ async function resolveEntityOrFail(ApiClass, clientOptions, resolverFn, key, err
|
|
|
51442
51449
|
folderKey: clientOptions.folderKey
|
|
51443
51450
|
}));
|
|
51444
51451
|
if (apiError) {
|
|
51452
|
+
const details = await extractErrorDetails(apiError);
|
|
51445
51453
|
OutputFormatter.error({
|
|
51446
51454
|
Result: RESULTS.Failure,
|
|
51455
|
+
ErrorCode: details.errorCode,
|
|
51447
51456
|
Message: errorContext,
|
|
51448
|
-
Instructions: apply(
|
|
51457
|
+
Instructions: apply(details.message),
|
|
51458
|
+
Retry: details.retry,
|
|
51459
|
+
...details.context ? { Context: details.context } : {}
|
|
51449
51460
|
});
|
|
51450
51461
|
processContext.exit(1);
|
|
51451
51462
|
return null;
|
|
51452
51463
|
}
|
|
51453
51464
|
const [resolveError, entity] = await catchError(resolverFn(api, key));
|
|
51454
51465
|
if (resolveError) {
|
|
51466
|
+
const details = await extractErrorDetails(resolveError);
|
|
51455
51467
|
OutputFormatter.error({
|
|
51456
51468
|
Result: RESULTS.Failure,
|
|
51469
|
+
ErrorCode: details.errorCode,
|
|
51457
51470
|
Message: errorContext,
|
|
51458
|
-
Instructions: apply(
|
|
51471
|
+
Instructions: apply(details.message),
|
|
51472
|
+
Retry: details.retry,
|
|
51473
|
+
...details.context ? { Context: details.context } : {}
|
|
51459
51474
|
});
|
|
51460
51475
|
processContext.exit(1);
|
|
51461
51476
|
return null;
|
|
@@ -67405,6 +67420,18 @@ function formatWebhookDetail(w) {
|
|
|
67405
67420
|
AllowInsecureSsl: w.allowInsecureSsl ?? false
|
|
67406
67421
|
};
|
|
67407
67422
|
}
|
|
67423
|
+
async function emitWebhookError(message, error) {
|
|
67424
|
+
const details = await extractErrorDetails(error);
|
|
67425
|
+
OutputFormatter.error({
|
|
67426
|
+
Result: RESULTS.Failure,
|
|
67427
|
+
ErrorCode: details.errorCode,
|
|
67428
|
+
Message: message,
|
|
67429
|
+
Instructions: details.message,
|
|
67430
|
+
Retry: details.retry,
|
|
67431
|
+
...details.context ? { Context: details.context } : {}
|
|
67432
|
+
});
|
|
67433
|
+
processContext.exit(1);
|
|
67434
|
+
}
|
|
67408
67435
|
var WEBHOOKS_LIST_EXAMPLES = [
|
|
67409
67436
|
{
|
|
67410
67437
|
Description: "List webhooks in the tenant",
|
|
@@ -67537,13 +67564,7 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67537
67564
|
tenant: options.tenant
|
|
67538
67565
|
}));
|
|
67539
67566
|
if (apiError) {
|
|
67540
|
-
|
|
67541
|
-
OutputFormatter.error({
|
|
67542
|
-
Result: RESULTS.Failure,
|
|
67543
|
-
Message: "Error listing webhooks",
|
|
67544
|
-
Instructions: errorMessage2
|
|
67545
|
-
});
|
|
67546
|
-
processContext.exit(1);
|
|
67567
|
+
await emitWebhookError("Error listing webhooks", apiError);
|
|
67547
67568
|
return;
|
|
67548
67569
|
}
|
|
67549
67570
|
const filters = [];
|
|
@@ -67564,13 +67585,7 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67564
67585
|
$orderby: options.sortBy
|
|
67565
67586
|
}));
|
|
67566
67587
|
if (listError) {
|
|
67567
|
-
|
|
67568
|
-
OutputFormatter.error({
|
|
67569
|
-
Result: RESULTS.Failure,
|
|
67570
|
-
Message: "Error listing webhooks",
|
|
67571
|
-
Instructions: errorMessage2
|
|
67572
|
-
});
|
|
67573
|
-
processContext.exit(1);
|
|
67588
|
+
await emitWebhookError("Error listing webhooks", listError);
|
|
67574
67589
|
return;
|
|
67575
67590
|
}
|
|
67576
67591
|
const limit = parseInt(options.limit, 10);
|
|
@@ -67602,13 +67617,7 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67602
67617
|
tenant: options.tenant
|
|
67603
67618
|
}));
|
|
67604
67619
|
if (apiError) {
|
|
67605
|
-
|
|
67606
|
-
OutputFormatter.error({
|
|
67607
|
-
Result: RESULTS.Failure,
|
|
67608
|
-
Message: "Error creating webhook",
|
|
67609
|
-
Instructions: errorMessage2
|
|
67610
|
-
});
|
|
67611
|
-
processContext.exit(1);
|
|
67620
|
+
await emitWebhookError("Error creating webhook", apiError);
|
|
67612
67621
|
return;
|
|
67613
67622
|
}
|
|
67614
67623
|
const subscribeToAllEvents = !options.events;
|
|
@@ -67625,13 +67634,7 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67625
67634
|
};
|
|
67626
67635
|
const [createError, result] = await catchError(api.webhooksPost({ body: webhookData }));
|
|
67627
67636
|
if (createError) {
|
|
67628
|
-
|
|
67629
|
-
OutputFormatter.error({
|
|
67630
|
-
Result: RESULTS.Failure,
|
|
67631
|
-
Message: "Error creating webhook",
|
|
67632
|
-
Instructions: errorMessage2
|
|
67633
|
-
});
|
|
67634
|
-
processContext.exit(1);
|
|
67637
|
+
await emitWebhookError("Error creating webhook", createError);
|
|
67635
67638
|
return;
|
|
67636
67639
|
}
|
|
67637
67640
|
OutputFormatter.success({
|
|
@@ -67676,13 +67679,7 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67676
67679
|
body: merged
|
|
67677
67680
|
}));
|
|
67678
67681
|
if (putError) {
|
|
67679
|
-
|
|
67680
|
-
OutputFormatter.error({
|
|
67681
|
-
Result: RESULTS.Failure,
|
|
67682
|
-
Message: "Error updating webhook",
|
|
67683
|
-
Instructions: errorMessage2
|
|
67684
|
-
});
|
|
67685
|
-
processContext.exit(1);
|
|
67682
|
+
await emitWebhookError("Error updating webhook", putError);
|
|
67686
67683
|
return;
|
|
67687
67684
|
}
|
|
67688
67685
|
OutputFormatter.success({
|
|
@@ -67705,13 +67702,7 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67705
67702
|
key: resolved.entity.id
|
|
67706
67703
|
}));
|
|
67707
67704
|
if (deleteError) {
|
|
67708
|
-
|
|
67709
|
-
OutputFormatter.error({
|
|
67710
|
-
Result: RESULTS.Failure,
|
|
67711
|
-
Message: "Error deleting webhook",
|
|
67712
|
-
Instructions: errorMessage2
|
|
67713
|
-
});
|
|
67714
|
-
processContext.exit(1);
|
|
67705
|
+
await emitWebhookError("Error deleting webhook", deleteError);
|
|
67715
67706
|
return;
|
|
67716
67707
|
}
|
|
67717
67708
|
OutputFormatter.success({
|
|
@@ -67731,13 +67722,7 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67731
67722
|
key: resolved.entity.id
|
|
67732
67723
|
}));
|
|
67733
67724
|
if (pingError) {
|
|
67734
|
-
|
|
67735
|
-
OutputFormatter.error({
|
|
67736
|
-
Result: RESULTS.Failure,
|
|
67737
|
-
Message: "Error pinging webhook",
|
|
67738
|
-
Instructions: errorMessage2
|
|
67739
|
-
});
|
|
67740
|
-
processContext.exit(1);
|
|
67725
|
+
await emitWebhookError("Error pinging webhook", pingError);
|
|
67741
67726
|
return;
|
|
67742
67727
|
}
|
|
67743
67728
|
OutputFormatter.success({
|
|
@@ -67755,24 +67740,12 @@ var registerWebhooksCommand = (program2) => {
|
|
|
67755
67740
|
tenant: options.tenant
|
|
67756
67741
|
}));
|
|
67757
67742
|
if (apiError) {
|
|
67758
|
-
|
|
67759
|
-
OutputFormatter.error({
|
|
67760
|
-
Result: RESULTS.Failure,
|
|
67761
|
-
Message: "Error listing webhook event types",
|
|
67762
|
-
Instructions: errorMessage2
|
|
67763
|
-
});
|
|
67764
|
-
processContext.exit(1);
|
|
67743
|
+
await emitWebhookError("Error listing webhook event types", apiError);
|
|
67765
67744
|
return;
|
|
67766
67745
|
}
|
|
67767
67746
|
const [listError, result] = await catchError(api.webhooksGetEventTypes({}));
|
|
67768
67747
|
if (listError) {
|
|
67769
|
-
|
|
67770
|
-
OutputFormatter.error({
|
|
67771
|
-
Result: RESULTS.Failure,
|
|
67772
|
-
Message: "Error listing webhook event types",
|
|
67773
|
-
Instructions: errorMessage2
|
|
67774
|
-
});
|
|
67775
|
-
processContext.exit(1);
|
|
67748
|
+
await emitWebhookError("Error listing webhook event types", listError);
|
|
67776
67749
|
return;
|
|
67777
67750
|
}
|
|
67778
67751
|
const eventTypes = (result.value ?? []).map((et) => ({
|
|
@@ -67831,4 +67804,4 @@ export {
|
|
|
67831
67804
|
metadata
|
|
67832
67805
|
};
|
|
67833
67806
|
|
|
67834
|
-
//# debugId=
|
|
67807
|
+
//# debugId=805AFA09F48A974264756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/orchestrator-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.199.0-preview.104",
|
|
5
5
|
"description": "Manage Orchestrator folders, jobs, processes, and releases.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "829a8ab8a25bce5b62c284bd1ddc674d2947f647"
|
|
30
30
|
}
|