@uipath/agent-tool 1.1.0 → 1.195.0
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/packager-tool.js +247 -108
- package/dist/tool.js +2043 -790
- package/package.json +53 -44
package/dist/tool.js
CHANGED
|
@@ -680,6 +680,7 @@ var init_open = __esm(() => {
|
|
|
680
680
|
});
|
|
681
681
|
|
|
682
682
|
// ../filesystem/src/node.ts
|
|
683
|
+
import { randomUUID } from "node:crypto";
|
|
683
684
|
import { existsSync } from "node:fs";
|
|
684
685
|
import * as fs6 from "node:fs/promises";
|
|
685
686
|
import * as os2 from "node:os";
|
|
@@ -761,6 +762,90 @@ class NodeFileSystem {
|
|
|
761
762
|
async mkdir(dirPath) {
|
|
762
763
|
await fs6.mkdir(dirPath, { recursive: true });
|
|
763
764
|
}
|
|
765
|
+
async acquireLock(lockPath) {
|
|
766
|
+
const canonicalPath = await this.canonicalizeLockTarget(lockPath);
|
|
767
|
+
const lockFile = `${canonicalPath}.lock`;
|
|
768
|
+
const ownerId = randomUUID();
|
|
769
|
+
const start = Date.now();
|
|
770
|
+
while (true) {
|
|
771
|
+
try {
|
|
772
|
+
await fs6.writeFile(lockFile, ownerId, { flag: "wx" });
|
|
773
|
+
return this.createLockRelease(lockFile, ownerId);
|
|
774
|
+
} catch (error) {
|
|
775
|
+
if (!this.hasErrnoCode(error, "EEXIST")) {
|
|
776
|
+
throw error;
|
|
777
|
+
}
|
|
778
|
+
const stats = await fs6.stat(lockFile).catch(() => null);
|
|
779
|
+
if (stats && Date.now() - stats.mtimeMs > LOCK_STALE_MS) {
|
|
780
|
+
const reclaimed = await fs6.rm(lockFile, { force: true }).then(() => true).catch(() => false);
|
|
781
|
+
if (reclaimed)
|
|
782
|
+
continue;
|
|
783
|
+
}
|
|
784
|
+
if (Date.now() - start > LOCK_MAX_WAIT_MS) {
|
|
785
|
+
throw new Error(`ELOCKED: timed out waiting for lock on ${canonicalPath}`);
|
|
786
|
+
}
|
|
787
|
+
await new Promise((resolve2) => setTimeout(resolve2, LOCK_RETRY_MIN_MS + Math.random() * LOCK_RETRY_JITTER_MS));
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
async canonicalizeLockTarget(lockPath) {
|
|
792
|
+
const absolute = path2.resolve(lockPath);
|
|
793
|
+
const fullReal = await fs6.realpath(absolute).catch(() => null);
|
|
794
|
+
if (fullReal)
|
|
795
|
+
return fullReal;
|
|
796
|
+
const parent = path2.dirname(absolute);
|
|
797
|
+
const base = path2.basename(absolute);
|
|
798
|
+
const canonicalParent = await fs6.realpath(parent).catch(() => parent);
|
|
799
|
+
return path2.join(canonicalParent, base);
|
|
800
|
+
}
|
|
801
|
+
createLockRelease(lockFile, ownerId) {
|
|
802
|
+
const heartbeatStart = Date.now();
|
|
803
|
+
let heartbeatTimer;
|
|
804
|
+
let stopped = false;
|
|
805
|
+
const stopHeartbeat = () => {
|
|
806
|
+
stopped = true;
|
|
807
|
+
if (heartbeatTimer)
|
|
808
|
+
clearTimeout(heartbeatTimer);
|
|
809
|
+
};
|
|
810
|
+
const scheduleNextHeartbeat = () => {
|
|
811
|
+
if (stopped)
|
|
812
|
+
return;
|
|
813
|
+
if (Date.now() - heartbeatStart >= LOCK_MAX_HOLD_MS) {
|
|
814
|
+
stopped = true;
|
|
815
|
+
return;
|
|
816
|
+
}
|
|
817
|
+
heartbeatTimer = setTimeout(() => {
|
|
818
|
+
runHeartbeat();
|
|
819
|
+
}, LOCK_HEARTBEAT_MS);
|
|
820
|
+
heartbeatTimer.unref?.();
|
|
821
|
+
};
|
|
822
|
+
const runHeartbeat = async () => {
|
|
823
|
+
if (stopped)
|
|
824
|
+
return;
|
|
825
|
+
const current = await fs6.readFile(lockFile, "utf-8").catch(() => null);
|
|
826
|
+
if (stopped)
|
|
827
|
+
return;
|
|
828
|
+
if (current !== ownerId) {
|
|
829
|
+
stopped = true;
|
|
830
|
+
return;
|
|
831
|
+
}
|
|
832
|
+
const now = Date.now() / 1000;
|
|
833
|
+
await fs6.utimes(lockFile, now, now).catch(() => {});
|
|
834
|
+
scheduleNextHeartbeat();
|
|
835
|
+
};
|
|
836
|
+
scheduleNextHeartbeat();
|
|
837
|
+
let released = false;
|
|
838
|
+
return async () => {
|
|
839
|
+
if (released)
|
|
840
|
+
return;
|
|
841
|
+
released = true;
|
|
842
|
+
stopHeartbeat();
|
|
843
|
+
const current = await fs6.readFile(lockFile, "utf-8").catch(() => null);
|
|
844
|
+
if (current === ownerId) {
|
|
845
|
+
await fs6.rm(lockFile, { force: true });
|
|
846
|
+
}
|
|
847
|
+
};
|
|
848
|
+
}
|
|
764
849
|
async rm(filePath) {
|
|
765
850
|
await fs6.rm(filePath, { recursive: true, force: true });
|
|
766
851
|
}
|
|
@@ -806,9 +891,13 @@ class NodeFileSystem {
|
|
|
806
891
|
}
|
|
807
892
|
}
|
|
808
893
|
isEnoent(error) {
|
|
809
|
-
return
|
|
894
|
+
return this.hasErrnoCode(error, "ENOENT");
|
|
895
|
+
}
|
|
896
|
+
hasErrnoCode(error, code) {
|
|
897
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === code;
|
|
810
898
|
}
|
|
811
899
|
}
|
|
900
|
+
var LOCK_HEARTBEAT_MS = 5000, LOCK_STALE_MS = 15000, LOCK_MAX_WAIT_MS = 20000, LOCK_MAX_HOLD_MS = 60000, LOCK_RETRY_MIN_MS = 100, LOCK_RETRY_JITTER_MS = 200;
|
|
812
901
|
var init_node = __esm(() => {
|
|
813
902
|
init_open();
|
|
814
903
|
});
|
|
@@ -8088,6 +8177,60 @@ function escapeNonAscii(jsonText) {
|
|
|
8088
8177
|
function needsAsciiSafeJson(sink) {
|
|
8089
8178
|
return process.platform === "win32" && !sink.capabilities.isInteractive;
|
|
8090
8179
|
}
|
|
8180
|
+
function isPlainRecord(value) {
|
|
8181
|
+
if (value === null || typeof value !== "object")
|
|
8182
|
+
return false;
|
|
8183
|
+
const prototype = Object.getPrototypeOf(value);
|
|
8184
|
+
return prototype === Object.prototype || prototype === null;
|
|
8185
|
+
}
|
|
8186
|
+
function toLowerCamelCaseKey(key) {
|
|
8187
|
+
if (!key)
|
|
8188
|
+
return key;
|
|
8189
|
+
if (/[_\-\s]/.test(key)) {
|
|
8190
|
+
const [firstPart, ...restParts] = key.split(/[_\-\s]+/).filter(Boolean);
|
|
8191
|
+
if (!firstPart)
|
|
8192
|
+
return key;
|
|
8193
|
+
return [
|
|
8194
|
+
toLowerCamelCaseSimpleKey(firstPart),
|
|
8195
|
+
...restParts.map((part) => {
|
|
8196
|
+
const normalized = toLowerCamelCaseSimpleKey(part);
|
|
8197
|
+
return normalized.charAt(0).toUpperCase() + normalized.slice(1);
|
|
8198
|
+
})
|
|
8199
|
+
].join("");
|
|
8200
|
+
}
|
|
8201
|
+
return toLowerCamelCaseSimpleKey(key);
|
|
8202
|
+
}
|
|
8203
|
+
function toLowerCamelCaseSimpleKey(key) {
|
|
8204
|
+
if (/^[A-Z0-9]+$/.test(key))
|
|
8205
|
+
return key.toLowerCase();
|
|
8206
|
+
return key.replace(/^[A-Z]+(?=[A-Z][a-z]|\d|$)|^[A-Z]/, (match) => match.toLowerCase());
|
|
8207
|
+
}
|
|
8208
|
+
function toPascalCaseKey(key) {
|
|
8209
|
+
const lowerCamelKey = toLowerCamelCaseKey(key);
|
|
8210
|
+
return lowerCamelKey ? lowerCamelKey.charAt(0).toUpperCase() + lowerCamelKey.slice(1) : lowerCamelKey;
|
|
8211
|
+
}
|
|
8212
|
+
function toPascalCaseData(value) {
|
|
8213
|
+
if (Array.isArray(value))
|
|
8214
|
+
return value.map(toPascalCaseData);
|
|
8215
|
+
if (!isPlainRecord(value))
|
|
8216
|
+
return value;
|
|
8217
|
+
const result = {};
|
|
8218
|
+
for (const [key, nestedValue] of Object.entries(value)) {
|
|
8219
|
+
result[toPascalCaseKey(key)] = toPascalCaseData(nestedValue);
|
|
8220
|
+
}
|
|
8221
|
+
return result;
|
|
8222
|
+
}
|
|
8223
|
+
function normalizeDataKeys(data) {
|
|
8224
|
+
return toPascalCaseData(data);
|
|
8225
|
+
}
|
|
8226
|
+
function normalizeOutputKeys(data) {
|
|
8227
|
+
const result = {};
|
|
8228
|
+
for (const [key, value] of Object.entries(data)) {
|
|
8229
|
+
const pascalKey = toPascalCaseKey(key);
|
|
8230
|
+
result[pascalKey] = pascalKey === "Data" ? value : toPascalCaseData(value);
|
|
8231
|
+
}
|
|
8232
|
+
return result;
|
|
8233
|
+
}
|
|
8091
8234
|
function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
8092
8235
|
if (!data) {
|
|
8093
8236
|
logFn("Empty response object. No data to display.");
|
|
@@ -8150,7 +8293,7 @@ function wrapText(text, width) {
|
|
|
8150
8293
|
function printTable(data, logFn, externalLogValue) {
|
|
8151
8294
|
if (data.length === 0)
|
|
8152
8295
|
return;
|
|
8153
|
-
const keys = Object.keys(data[0]).filter((key) =>
|
|
8296
|
+
const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
|
|
8154
8297
|
const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
|
|
8155
8298
|
const header = keys.map((key, i2) => key.padEnd(maxWidths[i2])).join(" | ");
|
|
8156
8299
|
logFn(header);
|
|
@@ -8165,7 +8308,7 @@ function printTable(data, logFn, externalLogValue) {
|
|
|
8165
8308
|
}
|
|
8166
8309
|
}
|
|
8167
8310
|
function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
8168
|
-
const keys = Object.keys(data).filter((key) =>
|
|
8311
|
+
const keys = Object.keys(data).filter((key) => !["code", "log"].includes(key.toLowerCase()));
|
|
8169
8312
|
if (keys.length === 0)
|
|
8170
8313
|
return;
|
|
8171
8314
|
const maxKeyWidth = Math.max(...keys.map((key) => key.length));
|
|
@@ -8181,7 +8324,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
|
8181
8324
|
function printResizableTable(data, logFn = console.log, externalLogValue) {
|
|
8182
8325
|
if (data.length === 0)
|
|
8183
8326
|
return;
|
|
8184
|
-
const keys = Object.keys(data[0]).filter((key) =>
|
|
8327
|
+
const keys = Object.keys(data[0]).filter((key) => !["code", "log"].includes(key.toLowerCase()));
|
|
8185
8328
|
if (keys.length === 0)
|
|
8186
8329
|
return;
|
|
8187
8330
|
if (!process.stdout.isTTY) {
|
|
@@ -8258,7 +8401,12 @@ function toYaml(data) {
|
|
|
8258
8401
|
return dump(data);
|
|
8259
8402
|
}
|
|
8260
8403
|
function applyFilter(data, filter) {
|
|
8261
|
-
|
|
8404
|
+
let result;
|
|
8405
|
+
try {
|
|
8406
|
+
result = search(data, filter);
|
|
8407
|
+
} catch (err) {
|
|
8408
|
+
throw new FilterEvaluationError(filter, err);
|
|
8409
|
+
}
|
|
8262
8410
|
if (result == null)
|
|
8263
8411
|
return [];
|
|
8264
8412
|
if (Array.isArray(result)) {
|
|
@@ -8273,7 +8421,7 @@ function applyFilter(data, filter) {
|
|
|
8273
8421
|
return result;
|
|
8274
8422
|
return { Value: result };
|
|
8275
8423
|
}
|
|
8276
|
-
var RESULTS, EXIT_CODES, OutputFormatter;
|
|
8424
|
+
var RESULTS, EXIT_CODES, FilterEvaluationError, OutputFormatter;
|
|
8277
8425
|
var init_formatter = __esm(() => {
|
|
8278
8426
|
init_dist();
|
|
8279
8427
|
init_js_yaml();
|
|
@@ -8298,14 +8446,32 @@ var init_formatter = __esm(() => {
|
|
|
8298
8446
|
ValidationError: 3,
|
|
8299
8447
|
TimeoutError: 4
|
|
8300
8448
|
};
|
|
8449
|
+
FilterEvaluationError = class FilterEvaluationError extends Error {
|
|
8450
|
+
__brand = "FilterEvaluationError";
|
|
8451
|
+
filter;
|
|
8452
|
+
instructions;
|
|
8453
|
+
result = RESULTS.ValidationError;
|
|
8454
|
+
constructor(filter, cause) {
|
|
8455
|
+
const underlying = cause instanceof Error ? cause.message : String(cause);
|
|
8456
|
+
super(`Filter '${filter}' failed to evaluate: ${underlying}`);
|
|
8457
|
+
this.name = "FilterEvaluationError";
|
|
8458
|
+
this.filter = filter;
|
|
8459
|
+
this.instructions = `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
|
|
8460
|
+
}
|
|
8461
|
+
};
|
|
8301
8462
|
((OutputFormatter) => {
|
|
8302
|
-
function success(data) {
|
|
8463
|
+
function success(data, options) {
|
|
8303
8464
|
data.Log ??= getLogFilePath() || undefined;
|
|
8465
|
+
const normalize = !options?.preserveDataKeys;
|
|
8466
|
+
if (normalize) {
|
|
8467
|
+
data.Data = normalizeDataKeys(data.Data);
|
|
8468
|
+
}
|
|
8304
8469
|
const filter = getOutputFilter();
|
|
8305
8470
|
if (filter) {
|
|
8306
|
-
|
|
8471
|
+
const filtered = applyFilter(data.Data, filter);
|
|
8472
|
+
data.Data = normalize ? normalizeDataKeys(filtered) : filtered;
|
|
8307
8473
|
}
|
|
8308
|
-
logOutput(data, getOutputFormat());
|
|
8474
|
+
logOutput(normalizeOutputKeys(data), getOutputFormat());
|
|
8309
8475
|
}
|
|
8310
8476
|
OutputFormatter.success = success;
|
|
8311
8477
|
function error(data) {
|
|
@@ -8315,7 +8481,7 @@ var init_formatter = __esm(() => {
|
|
|
8315
8481
|
result: data.Result,
|
|
8316
8482
|
message: data.Message
|
|
8317
8483
|
});
|
|
8318
|
-
logOutput(data, getOutputFormat());
|
|
8484
|
+
logOutput(normalizeOutputKeys(data), getOutputFormat());
|
|
8319
8485
|
}
|
|
8320
8486
|
OutputFormatter.error = error;
|
|
8321
8487
|
function emitList(code, items, opts) {
|
|
@@ -8336,13 +8502,14 @@ var init_formatter = __esm(() => {
|
|
|
8336
8502
|
function log(data) {
|
|
8337
8503
|
const format = getOutputFormat();
|
|
8338
8504
|
const sink = getOutputSink();
|
|
8505
|
+
const normalized = toPascalCaseData(data);
|
|
8339
8506
|
if (format === "json") {
|
|
8340
|
-
const json2 = JSON.stringify(
|
|
8507
|
+
const json2 = JSON.stringify(normalized);
|
|
8341
8508
|
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
8342
8509
|
sink.writeErr(`${safe}
|
|
8343
8510
|
`);
|
|
8344
8511
|
} else {
|
|
8345
|
-
for (const [key, value] of Object.entries(
|
|
8512
|
+
for (const [key, value] of Object.entries(normalized)) {
|
|
8346
8513
|
sink.writeErr(`${key}: ${value}
|
|
8347
8514
|
`);
|
|
8348
8515
|
}
|
|
@@ -8351,12 +8518,16 @@ var init_formatter = __esm(() => {
|
|
|
8351
8518
|
OutputFormatter.log = log;
|
|
8352
8519
|
function formatToString(data) {
|
|
8353
8520
|
const filter = getOutputFilter();
|
|
8354
|
-
if (
|
|
8355
|
-
data.Data =
|
|
8521
|
+
if ("Data" in data && data.Data != null) {
|
|
8522
|
+
data.Data = normalizeDataKeys(data.Data);
|
|
8523
|
+
if (filter) {
|
|
8524
|
+
data.Data = normalizeDataKeys(applyFilter(data.Data, filter));
|
|
8525
|
+
}
|
|
8356
8526
|
}
|
|
8527
|
+
const output = normalizeOutputKeys(data);
|
|
8357
8528
|
const lines = [];
|
|
8358
8529
|
const sink = getOutputSink();
|
|
8359
|
-
printOutput(
|
|
8530
|
+
printOutput(output, getOutputFormat(), (msg) => {
|
|
8360
8531
|
lines.push(msg);
|
|
8361
8532
|
}, needsAsciiSafeJson(sink));
|
|
8362
8533
|
return lines.join(`
|
|
@@ -9845,6 +10016,18 @@ var init_types = __esm(() => {
|
|
|
9845
10016
|
};
|
|
9846
10017
|
});
|
|
9847
10018
|
|
|
10019
|
+
// ../common/src/polling/poll-failure-mapping.ts
|
|
10020
|
+
var REASON_BY_OUTCOME;
|
|
10021
|
+
var init_poll_failure_mapping = __esm(() => {
|
|
10022
|
+
init_types();
|
|
10023
|
+
REASON_BY_OUTCOME = {
|
|
10024
|
+
[PollOutcome.Timeout]: "poll_timeout",
|
|
10025
|
+
[PollOutcome.Failed]: "poll_failed",
|
|
10026
|
+
[PollOutcome.Interrupted]: "poll_failed",
|
|
10027
|
+
[PollOutcome.Aborted]: "poll_aborted"
|
|
10028
|
+
};
|
|
10029
|
+
});
|
|
10030
|
+
|
|
9848
10031
|
// ../common/src/polling/poll-until.ts
|
|
9849
10032
|
function resolveIntervalFn(options) {
|
|
9850
10033
|
if (typeof options.intervalMs === "function") {
|
|
@@ -10255,6 +10438,7 @@ var init_terminal_statuses = __esm(() => {
|
|
|
10255
10438
|
// ../common/src/polling/index.ts
|
|
10256
10439
|
var init_polling = __esm(() => {
|
|
10257
10440
|
init_abort_controller();
|
|
10441
|
+
init_poll_failure_mapping();
|
|
10258
10442
|
init_poll_until();
|
|
10259
10443
|
init_terminal_statuses();
|
|
10260
10444
|
init_types();
|
|
@@ -10273,6 +10457,109 @@ var init_screen_logger = __esm(() => {
|
|
|
10273
10457
|
})(ScreenLogger ||= {});
|
|
10274
10458
|
});
|
|
10275
10459
|
|
|
10460
|
+
// ../common/src/sdk-user-agent.ts
|
|
10461
|
+
function userAgentPatchKey(userAgent) {
|
|
10462
|
+
return Symbol.for(`@uipath/common/sdk-user-agent/${userAgent}`);
|
|
10463
|
+
}
|
|
10464
|
+
function splitUserAgentTokens(value) {
|
|
10465
|
+
return value?.trim().split(/\s+/).filter(Boolean) ?? [];
|
|
10466
|
+
}
|
|
10467
|
+
function appendUserAgentToken(value, userAgent) {
|
|
10468
|
+
const tokens = splitUserAgentTokens(value);
|
|
10469
|
+
const seen = new Set(tokens);
|
|
10470
|
+
for (const token of splitUserAgentTokens(userAgent)) {
|
|
10471
|
+
if (!seen.has(token)) {
|
|
10472
|
+
tokens.push(token);
|
|
10473
|
+
seen.add(token);
|
|
10474
|
+
}
|
|
10475
|
+
}
|
|
10476
|
+
return tokens.join(" ");
|
|
10477
|
+
}
|
|
10478
|
+
function getEffectiveUserAgent(userAgent) {
|
|
10479
|
+
return appendUserAgentToken(sdkUserAgentHostToken.get(), userAgent);
|
|
10480
|
+
}
|
|
10481
|
+
function isHeadersLike(headers) {
|
|
10482
|
+
return typeof headers === "object" && headers !== null && "get" in headers && typeof headers.get === "function" && "set" in headers && typeof headers.set === "function";
|
|
10483
|
+
}
|
|
10484
|
+
function getSdkUserAgentToken(pkg) {
|
|
10485
|
+
const packageName = pkg.name.replace(/^@uipath\//, "");
|
|
10486
|
+
return getEffectiveUserAgent(`${packageName}/${pkg.version}`);
|
|
10487
|
+
}
|
|
10488
|
+
function addSdkUserAgentHeader(headers, userAgent) {
|
|
10489
|
+
const result = { ...headers ?? {} };
|
|
10490
|
+
const effectiveUserAgent = getEffectiveUserAgent(userAgent);
|
|
10491
|
+
const headerName = Object.keys(result).find((key) => key.toLowerCase() === USER_AGENT_HEADER.toLowerCase());
|
|
10492
|
+
if (headerName) {
|
|
10493
|
+
result[headerName] = appendUserAgentToken(result[headerName], effectiveUserAgent);
|
|
10494
|
+
} else {
|
|
10495
|
+
result[USER_AGENT_HEADER] = effectiveUserAgent;
|
|
10496
|
+
}
|
|
10497
|
+
return result;
|
|
10498
|
+
}
|
|
10499
|
+
function withSdkUserAgentHeader(headers, userAgent) {
|
|
10500
|
+
const effectiveUserAgent = getEffectiveUserAgent(userAgent);
|
|
10501
|
+
if (isHeadersLike(headers)) {
|
|
10502
|
+
headers.set(USER_AGENT_HEADER, appendUserAgentToken(headers.get(USER_AGENT_HEADER), effectiveUserAgent));
|
|
10503
|
+
return headers;
|
|
10504
|
+
}
|
|
10505
|
+
if (Array.isArray(headers)) {
|
|
10506
|
+
const result = headers.map((entry) => {
|
|
10507
|
+
const [key, value] = entry;
|
|
10508
|
+
return [key, value];
|
|
10509
|
+
});
|
|
10510
|
+
const headerIndex = result.findIndex(([key]) => key.toLowerCase() === USER_AGENT_HEADER.toLowerCase());
|
|
10511
|
+
if (headerIndex >= 0) {
|
|
10512
|
+
const [key, value] = result[headerIndex];
|
|
10513
|
+
result[headerIndex] = [
|
|
10514
|
+
key,
|
|
10515
|
+
appendUserAgentToken(value, effectiveUserAgent)
|
|
10516
|
+
];
|
|
10517
|
+
} else {
|
|
10518
|
+
result.push([USER_AGENT_HEADER, effectiveUserAgent]);
|
|
10519
|
+
}
|
|
10520
|
+
return result;
|
|
10521
|
+
}
|
|
10522
|
+
return addSdkUserAgentHeader(typeof headers === "object" && headers !== null ? { ...headers } : {}, effectiveUserAgent);
|
|
10523
|
+
}
|
|
10524
|
+
function withUserAgentInitOverride(initOverrides, userAgent) {
|
|
10525
|
+
return async (requestContext) => {
|
|
10526
|
+
const initWithUserAgent = {
|
|
10527
|
+
...requestContext.init,
|
|
10528
|
+
headers: withSdkUserAgentHeader(requestContext.init.headers, userAgent)
|
|
10529
|
+
};
|
|
10530
|
+
const override = typeof initOverrides === "function" ? await initOverrides({
|
|
10531
|
+
...requestContext,
|
|
10532
|
+
init: initWithUserAgent
|
|
10533
|
+
}) : initOverrides;
|
|
10534
|
+
return {
|
|
10535
|
+
...override ?? {},
|
|
10536
|
+
headers: withSdkUserAgentHeader(override?.headers ?? initWithUserAgent.headers, userAgent)
|
|
10537
|
+
};
|
|
10538
|
+
};
|
|
10539
|
+
}
|
|
10540
|
+
function installSdkUserAgentHeader(BaseApiClass, userAgent) {
|
|
10541
|
+
const prototype = BaseApiClass.prototype;
|
|
10542
|
+
const patchKey = userAgentPatchKey(userAgent);
|
|
10543
|
+
if (prototype[patchKey]) {
|
|
10544
|
+
return;
|
|
10545
|
+
}
|
|
10546
|
+
if (typeof prototype.request !== "function") {
|
|
10547
|
+
throw new Error("Generated BaseAPI request function not found.");
|
|
10548
|
+
}
|
|
10549
|
+
const originalRequest = prototype.request;
|
|
10550
|
+
prototype.request = function requestWithUserAgent(context, initOverrides) {
|
|
10551
|
+
return originalRequest.call(this, context, withUserAgentInitOverride(initOverrides, userAgent));
|
|
10552
|
+
};
|
|
10553
|
+
Object.defineProperty(prototype, patchKey, {
|
|
10554
|
+
value: true
|
|
10555
|
+
});
|
|
10556
|
+
}
|
|
10557
|
+
var USER_AGENT_HEADER = "User-Agent", sdkUserAgentHostToken;
|
|
10558
|
+
var init_sdk_user_agent = __esm(() => {
|
|
10559
|
+
init_singleton();
|
|
10560
|
+
sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
10561
|
+
});
|
|
10562
|
+
|
|
10276
10563
|
// ../common/src/tool-provider.ts
|
|
10277
10564
|
var factorySlot;
|
|
10278
10565
|
var init_tool_provider = __esm(() => {
|
|
@@ -10469,13 +10756,17 @@ var init_trackedAction = __esm(() => {
|
|
|
10469
10756
|
const [error] = await catchError(fn(...args));
|
|
10470
10757
|
if (error) {
|
|
10471
10758
|
errorMessage = error instanceof Error ? error.message : String(error);
|
|
10472
|
-
logger.
|
|
10759
|
+
logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
|
|
10760
|
+
const typed = error;
|
|
10761
|
+
const customInstructions = typeof typed.instructions === "string" ? typed.instructions : undefined;
|
|
10762
|
+
const customResult = typeof typed.result === "string" && typed.result !== RESULTS.Success && Object.values(RESULTS).includes(typed.result) ? typed.result : undefined;
|
|
10763
|
+
const finalResult = customResult ?? RESULTS.Failure;
|
|
10473
10764
|
OutputFormatter.error({
|
|
10474
|
-
Result:
|
|
10765
|
+
Result: finalResult,
|
|
10475
10766
|
Message: errorMessage,
|
|
10476
|
-
Instructions: "An unexpected error occurred. Run with --log-level debug for details."
|
|
10767
|
+
Instructions: customInstructions ?? "An unexpected error occurred. Run with --log-level debug for details."
|
|
10477
10768
|
});
|
|
10478
|
-
context.exit(
|
|
10769
|
+
context.exit(EXIT_CODES[finalResult]);
|
|
10479
10770
|
}
|
|
10480
10771
|
const durationMs = performance.now() - startTime;
|
|
10481
10772
|
const success = !error && (process.exitCode === undefined || process.exitCode === 0);
|
|
@@ -10511,6 +10802,7 @@ var init_src2 = __esm(() => {
|
|
|
10511
10802
|
init_polling();
|
|
10512
10803
|
init_registry();
|
|
10513
10804
|
init_screen_logger();
|
|
10805
|
+
init_sdk_user_agent();
|
|
10514
10806
|
init_singleton();
|
|
10515
10807
|
init_node2();
|
|
10516
10808
|
init_telemetry_events();
|
|
@@ -11000,7 +11292,8 @@ var DEFAULT_CLIENT_ID = "36dea5b8-e8bb-423d-8e7b-c808df8f1c00", AUTH_FILE_CONFIG
|
|
|
11000
11292
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
11001
11293
|
clientSecret = fileAuth.clientSecret;
|
|
11002
11294
|
}
|
|
11003
|
-
const
|
|
11295
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
11296
|
+
const scopes = customScopes && customScopes.length > 0 ? customScopes : fileAuth.scopes && fileAuth.scopes.length > 0 ? fileAuth.scopes : isExternalAppAuth ? [] : DEFAULT_SCOPES;
|
|
11004
11297
|
return {
|
|
11005
11298
|
clientId,
|
|
11006
11299
|
clientSecret,
|
|
@@ -11031,32 +11324,7 @@ var init_config = __esm(() => {
|
|
|
11031
11324
|
this.name = "InvalidBaseUrlError";
|
|
11032
11325
|
}
|
|
11033
11326
|
};
|
|
11034
|
-
DEFAULT_SCOPES = [
|
|
11035
|
-
"offline_access",
|
|
11036
|
-
"ProcessMining",
|
|
11037
|
-
"OrchestratorApiUserAccess",
|
|
11038
|
-
"StudioWebBackend",
|
|
11039
|
-
"IdentityServerApi",
|
|
11040
|
-
"ConnectionService",
|
|
11041
|
-
"DataService",
|
|
11042
|
-
"DataServiceApiUserAccess",
|
|
11043
|
-
"DocumentUnderstanding",
|
|
11044
|
-
"EnterpriseContextService",
|
|
11045
|
-
"Directory",
|
|
11046
|
-
"JamJamApi",
|
|
11047
|
-
"LLMGateway",
|
|
11048
|
-
"LLMOps",
|
|
11049
|
-
"OMS",
|
|
11050
|
-
"RCS.FolderAuthorization",
|
|
11051
|
-
"RCS.TagsManagement",
|
|
11052
|
-
"TestmanagerApiUserAccess",
|
|
11053
|
-
"AutomationSolutions",
|
|
11054
|
-
"StudioWebTypeCacheService",
|
|
11055
|
-
"Docs.GPT.Search",
|
|
11056
|
-
"Insights",
|
|
11057
|
-
"ReferenceToken",
|
|
11058
|
-
"Audit.Read"
|
|
11059
|
-
];
|
|
11327
|
+
DEFAULT_SCOPES = ["openid", "profile", "offline_access"];
|
|
11060
11328
|
});
|
|
11061
11329
|
|
|
11062
11330
|
// ../../node_modules/oauth4webapi/build/index.js
|
|
@@ -11828,7 +12096,7 @@ var init_envAuth = __esm(() => {
|
|
|
11828
12096
|
|
|
11829
12097
|
// ../../node_modules/@uipath/coreipc/index.js
|
|
11830
12098
|
var require_coreipc = __commonJS((exports, module) => {
|
|
11831
|
-
var __dirname = "/
|
|
12099
|
+
var __dirname = "/home/runner/work/cli/cli/node_modules/@uipath/coreipc";
|
|
11832
12100
|
/*! For license information please see index.js.LICENSE.txt */
|
|
11833
12101
|
(function(e, t) {
|
|
11834
12102
|
typeof exports == "object" && typeof module == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define([], t) : typeof exports == "object" ? exports.ipc = t() : e.ipc = t();
|
|
@@ -30366,6 +30634,129 @@ function normalizeTokenRefreshFailure() {
|
|
|
30366
30634
|
function normalizeTokenRefreshUnavailableFailure() {
|
|
30367
30635
|
return "token refresh failed before authentication completed";
|
|
30368
30636
|
}
|
|
30637
|
+
function errorMessage(error) {
|
|
30638
|
+
return error instanceof Error ? error.message : String(error);
|
|
30639
|
+
}
|
|
30640
|
+
function computeExpirationThreshold(ensureTokenValidityMinutes) {
|
|
30641
|
+
return new Date(Date.now() + (ensureTokenValidityMinutes ?? 0) * 60 * 1000);
|
|
30642
|
+
}
|
|
30643
|
+
async function runRefreshLocked(inputs) {
|
|
30644
|
+
const {
|
|
30645
|
+
absolutePath,
|
|
30646
|
+
refreshToken: callerRefreshToken,
|
|
30647
|
+
customAuthority,
|
|
30648
|
+
ensureTokenValidityMinutes,
|
|
30649
|
+
loadEnvFile,
|
|
30650
|
+
saveEnvFile,
|
|
30651
|
+
refreshFn,
|
|
30652
|
+
resolveConfig: resolveConfig2
|
|
30653
|
+
} = inputs;
|
|
30654
|
+
const expirationThreshold = computeExpirationThreshold(ensureTokenValidityMinutes);
|
|
30655
|
+
let fresh;
|
|
30656
|
+
try {
|
|
30657
|
+
fresh = await loadEnvFile({ envPath: absolutePath });
|
|
30658
|
+
} catch (error) {
|
|
30659
|
+
return {
|
|
30660
|
+
kind: "fail",
|
|
30661
|
+
status: {
|
|
30662
|
+
loginStatus: "Refresh Failed",
|
|
30663
|
+
hint: "Could not read the auth file while refreshing. Retry, or run 'uip login' to re-authenticate.",
|
|
30664
|
+
tokenRefresh: {
|
|
30665
|
+
attempted: false,
|
|
30666
|
+
success: false,
|
|
30667
|
+
errorMessage: `auth file read failed: ${errorMessage(error)}`
|
|
30668
|
+
}
|
|
30669
|
+
}
|
|
30670
|
+
};
|
|
30671
|
+
}
|
|
30672
|
+
const freshAccess = fresh.UIPATH_ACCESS_TOKEN;
|
|
30673
|
+
const freshExp = freshAccess ? getTokenExpiration(freshAccess) : undefined;
|
|
30674
|
+
if (freshAccess && freshExp && freshExp > expirationThreshold) {
|
|
30675
|
+
return {
|
|
30676
|
+
kind: "ok",
|
|
30677
|
+
accessToken: freshAccess,
|
|
30678
|
+
refreshToken: fresh.UIPATH_REFRESH_TOKEN ?? callerRefreshToken,
|
|
30679
|
+
expiration: freshExp,
|
|
30680
|
+
tokenRefresh: { attempted: false, success: true }
|
|
30681
|
+
};
|
|
30682
|
+
}
|
|
30683
|
+
const tokenForIdP = fresh.UIPATH_REFRESH_TOKEN ?? callerRefreshToken;
|
|
30684
|
+
let refreshedAccess;
|
|
30685
|
+
let refreshedRefresh;
|
|
30686
|
+
try {
|
|
30687
|
+
const config = await resolveConfig2({ customAuthority });
|
|
30688
|
+
const refreshed = await refreshFn({
|
|
30689
|
+
refreshToken: tokenForIdP,
|
|
30690
|
+
tokenEndpoint: config.tokenEndpoint,
|
|
30691
|
+
clientId: config.clientId,
|
|
30692
|
+
expectedAuthority: customAuthority
|
|
30693
|
+
});
|
|
30694
|
+
refreshedAccess = refreshed.accessToken;
|
|
30695
|
+
refreshedRefresh = refreshed.refreshToken;
|
|
30696
|
+
} catch (error) {
|
|
30697
|
+
const isOAuthFailure = isTokenRefreshOAuthFailure(error);
|
|
30698
|
+
const hint = isOAuthFailure ? "Run 'uip login' to re-authenticate — the stored refresh token is invalid or expired." : "Token refresh failed. Check your network connection, then retry or run 'uip login' to re-authenticate.";
|
|
30699
|
+
const message = isOAuthFailure ? normalizeTokenRefreshFailure() : normalizeTokenRefreshUnavailableFailure();
|
|
30700
|
+
return {
|
|
30701
|
+
kind: "fail",
|
|
30702
|
+
status: {
|
|
30703
|
+
loginStatus: "Refresh Failed",
|
|
30704
|
+
hint,
|
|
30705
|
+
tokenRefresh: {
|
|
30706
|
+
attempted: true,
|
|
30707
|
+
success: false,
|
|
30708
|
+
errorMessage: message
|
|
30709
|
+
}
|
|
30710
|
+
}
|
|
30711
|
+
};
|
|
30712
|
+
}
|
|
30713
|
+
const refreshedExp = getTokenExpiration(refreshedAccess);
|
|
30714
|
+
if (!refreshedExp || refreshedExp <= new Date) {
|
|
30715
|
+
return {
|
|
30716
|
+
kind: "fail",
|
|
30717
|
+
status: {
|
|
30718
|
+
loginStatus: "Refresh Failed",
|
|
30719
|
+
hint: "The identity server returned an unusable token. Run 'uip login' to re-authenticate.",
|
|
30720
|
+
tokenRefresh: {
|
|
30721
|
+
attempted: true,
|
|
30722
|
+
success: false,
|
|
30723
|
+
errorMessage: "refreshed token has no valid expiration claim"
|
|
30724
|
+
}
|
|
30725
|
+
}
|
|
30726
|
+
};
|
|
30727
|
+
}
|
|
30728
|
+
try {
|
|
30729
|
+
await saveEnvFile({
|
|
30730
|
+
envPath: absolutePath,
|
|
30731
|
+
data: {
|
|
30732
|
+
UIPATH_ACCESS_TOKEN: refreshedAccess,
|
|
30733
|
+
UIPATH_REFRESH_TOKEN: refreshedRefresh
|
|
30734
|
+
},
|
|
30735
|
+
merge: true
|
|
30736
|
+
});
|
|
30737
|
+
return {
|
|
30738
|
+
kind: "ok",
|
|
30739
|
+
accessToken: refreshedAccess,
|
|
30740
|
+
refreshToken: refreshedRefresh,
|
|
30741
|
+
expiration: refreshedExp,
|
|
30742
|
+
tokenRefresh: { attempted: true, success: true }
|
|
30743
|
+
};
|
|
30744
|
+
} catch (error) {
|
|
30745
|
+
const msg = errorMessage(error);
|
|
30746
|
+
return {
|
|
30747
|
+
kind: "ok",
|
|
30748
|
+
accessToken: refreshedAccess,
|
|
30749
|
+
refreshToken: refreshedRefresh,
|
|
30750
|
+
expiration: refreshedExp,
|
|
30751
|
+
persistenceWarning: `Access token refreshed in memory but could not be written to ${absolutePath}: ${msg}. The next CLI invocation will fail until the file can be updated — run 'uip login' to re-authenticate.`,
|
|
30752
|
+
tokenRefresh: {
|
|
30753
|
+
attempted: true,
|
|
30754
|
+
success: true,
|
|
30755
|
+
errorMessage: `persistence failed: ${msg}`
|
|
30756
|
+
}
|
|
30757
|
+
};
|
|
30758
|
+
}
|
|
30759
|
+
}
|
|
30369
30760
|
var LoginStatusSource, getLoginStatusWithDeps = async (options = {}, deps = {}) => {
|
|
30370
30761
|
const {
|
|
30371
30762
|
resolveEnvFilePath = resolveEnvFilePathAsync,
|
|
@@ -30440,73 +30831,103 @@ var LoginStatusSource, getLoginStatusWithDeps = async (options = {}, deps = {})
|
|
|
30440
30831
|
let refreshToken = credentials.UIPATH_REFRESH_TOKEN;
|
|
30441
30832
|
let expiration = getTokenExpiration(accessToken);
|
|
30442
30833
|
let persistenceWarning;
|
|
30834
|
+
let lockReleaseFailed = false;
|
|
30443
30835
|
let tokenRefresh;
|
|
30444
|
-
const
|
|
30445
|
-
|
|
30446
|
-
|
|
30447
|
-
|
|
30836
|
+
const outerThreshold = computeExpirationThreshold(ensureTokenValidityMinutes);
|
|
30837
|
+
const tryGlobalCredsHint = async () => {
|
|
30838
|
+
const fs7 = getFs();
|
|
30839
|
+
const globalPath = fs7.path.join(fs7.env.homedir(), envFilePath);
|
|
30840
|
+
if (absolutePath === globalPath)
|
|
30841
|
+
return;
|
|
30842
|
+
if (!await fs7.exists(globalPath))
|
|
30843
|
+
return;
|
|
30448
30844
|
try {
|
|
30449
|
-
const
|
|
30450
|
-
|
|
30451
|
-
|
|
30452
|
-
const
|
|
30453
|
-
|
|
30454
|
-
|
|
30455
|
-
|
|
30456
|
-
|
|
30457
|
-
|
|
30458
|
-
refreshedAccess = refreshed.accessToken;
|
|
30459
|
-
refreshedRefresh = refreshed.refreshToken;
|
|
30460
|
-
} catch (error) {
|
|
30461
|
-
const isOAuthFailure = isTokenRefreshOAuthFailure(error);
|
|
30462
|
-
const hint = isOAuthFailure ? "Run 'uip login' to re-authenticate — the stored refresh token is invalid or expired." : "Token refresh failed. Check your network connection, then retry or run 'uip login' to re-authenticate.";
|
|
30463
|
-
const errorMessage = isOAuthFailure ? normalizeTokenRefreshFailure() : normalizeTokenRefreshUnavailableFailure();
|
|
30464
|
-
return {
|
|
30465
|
-
loginStatus: "Refresh Failed",
|
|
30466
|
-
hint,
|
|
30467
|
-
tokenRefresh: {
|
|
30468
|
-
attempted: true,
|
|
30469
|
-
success: false,
|
|
30470
|
-
errorMessage
|
|
30471
|
-
}
|
|
30472
|
-
};
|
|
30845
|
+
const globalCreds = await loadEnvFile({ envPath: globalPath });
|
|
30846
|
+
if (!globalCreds.UIPATH_ACCESS_TOKEN)
|
|
30847
|
+
return;
|
|
30848
|
+
const globalExp = getTokenExpiration(globalCreds.UIPATH_ACCESS_TOKEN);
|
|
30849
|
+
if (globalExp && globalExp <= new Date)
|
|
30850
|
+
return;
|
|
30851
|
+
return `Local credentials file at ${absolutePath} has expired credentials. Valid credentials exist in ${globalPath}. Remove the local file or run 'uip login' to re-authenticate.`;
|
|
30852
|
+
} catch {
|
|
30853
|
+
return;
|
|
30473
30854
|
}
|
|
30474
|
-
|
|
30475
|
-
|
|
30855
|
+
};
|
|
30856
|
+
if (expiration && expiration <= outerThreshold && refreshToken) {
|
|
30857
|
+
let release;
|
|
30858
|
+
try {
|
|
30859
|
+
release = await getFs().acquireLock(absolutePath);
|
|
30860
|
+
} catch (error) {
|
|
30861
|
+
const msg = errorMessage(error);
|
|
30862
|
+
const globalHint = await tryGlobalCredsHint();
|
|
30863
|
+
if (globalHint) {
|
|
30864
|
+
return {
|
|
30865
|
+
loginStatus: "Expired",
|
|
30866
|
+
accessToken,
|
|
30867
|
+
refreshToken,
|
|
30868
|
+
baseUrl: credentials.UIPATH_URL,
|
|
30869
|
+
organizationName: credentials.UIPATH_ORGANIZATION_NAME,
|
|
30870
|
+
organizationId: credentials.UIPATH_ORGANIZATION_ID,
|
|
30871
|
+
tenantName: credentials.UIPATH_TENANT_NAME,
|
|
30872
|
+
tenantId: credentials.UIPATH_TENANT_ID,
|
|
30873
|
+
expiration,
|
|
30874
|
+
source: "file" /* File */,
|
|
30875
|
+
hint: globalHint,
|
|
30876
|
+
tokenRefresh: {
|
|
30877
|
+
attempted: false,
|
|
30878
|
+
success: false,
|
|
30879
|
+
errorMessage: `lock acquisition failed: ${msg}`
|
|
30880
|
+
}
|
|
30881
|
+
};
|
|
30882
|
+
}
|
|
30476
30883
|
return {
|
|
30477
30884
|
loginStatus: "Refresh Failed",
|
|
30478
|
-
hint: "
|
|
30885
|
+
hint: "Could not acquire the auth-file lock — too many concurrent `uip` processes, or a permission issue on the auth directory. Retry, or run 'uip login' to re-authenticate.",
|
|
30479
30886
|
tokenRefresh: {
|
|
30480
|
-
attempted:
|
|
30887
|
+
attempted: false,
|
|
30481
30888
|
success: false,
|
|
30482
|
-
errorMessage:
|
|
30889
|
+
errorMessage: `lock acquisition failed: ${msg}`
|
|
30483
30890
|
}
|
|
30484
30891
|
};
|
|
30485
30892
|
}
|
|
30486
|
-
|
|
30487
|
-
refreshToken = refreshedRefresh;
|
|
30488
|
-
expiration = refreshedExp;
|
|
30893
|
+
let lockedFailure;
|
|
30489
30894
|
try {
|
|
30490
|
-
await
|
|
30491
|
-
|
|
30492
|
-
|
|
30493
|
-
|
|
30494
|
-
|
|
30495
|
-
|
|
30496
|
-
|
|
30895
|
+
const outcome = await runRefreshLocked({
|
|
30896
|
+
absolutePath,
|
|
30897
|
+
refreshToken,
|
|
30898
|
+
customAuthority: credentials.UIPATH_URL,
|
|
30899
|
+
ensureTokenValidityMinutes,
|
|
30900
|
+
loadEnvFile,
|
|
30901
|
+
saveEnvFile,
|
|
30902
|
+
refreshFn: refreshTokenFn,
|
|
30903
|
+
resolveConfig: resolveConfig2
|
|
30497
30904
|
});
|
|
30498
|
-
|
|
30499
|
-
|
|
30500
|
-
|
|
30501
|
-
|
|
30502
|
-
|
|
30503
|
-
|
|
30504
|
-
|
|
30505
|
-
|
|
30506
|
-
|
|
30507
|
-
|
|
30508
|
-
|
|
30509
|
-
|
|
30905
|
+
if (outcome.kind === "fail") {
|
|
30906
|
+
lockedFailure = outcome.status;
|
|
30907
|
+
} else {
|
|
30908
|
+
accessToken = outcome.accessToken;
|
|
30909
|
+
refreshToken = outcome.refreshToken;
|
|
30910
|
+
expiration = outcome.expiration;
|
|
30911
|
+
tokenRefresh = outcome.tokenRefresh;
|
|
30912
|
+
if (outcome.persistenceWarning) {
|
|
30913
|
+
persistenceWarning = outcome.persistenceWarning;
|
|
30914
|
+
}
|
|
30915
|
+
}
|
|
30916
|
+
} finally {
|
|
30917
|
+
try {
|
|
30918
|
+
await release();
|
|
30919
|
+
} catch {
|
|
30920
|
+
lockReleaseFailed = true;
|
|
30921
|
+
}
|
|
30922
|
+
}
|
|
30923
|
+
if (lockedFailure) {
|
|
30924
|
+
const globalHint = await tryGlobalCredsHint();
|
|
30925
|
+
const base = globalHint ? {
|
|
30926
|
+
...lockedFailure,
|
|
30927
|
+
loginStatus: "Expired",
|
|
30928
|
+
hint: globalHint
|
|
30929
|
+
} : lockedFailure;
|
|
30930
|
+
return lockReleaseFailed ? { ...base, lockReleaseFailed: true } : base;
|
|
30510
30931
|
}
|
|
30511
30932
|
}
|
|
30512
30933
|
const result = {
|
|
@@ -30521,23 +30942,13 @@ var LoginStatusSource, getLoginStatusWithDeps = async (options = {}, deps = {})
|
|
|
30521
30942
|
expiration,
|
|
30522
30943
|
source: "file" /* File */,
|
|
30523
30944
|
...persistenceWarning ? { hint: persistenceWarning, persistenceFailed: true } : {},
|
|
30945
|
+
...lockReleaseFailed ? { lockReleaseFailed: true } : {},
|
|
30524
30946
|
...tokenRefresh ? { tokenRefresh } : {}
|
|
30525
30947
|
};
|
|
30526
30948
|
if (result.loginStatus === "Expired") {
|
|
30527
|
-
const
|
|
30528
|
-
|
|
30529
|
-
|
|
30530
|
-
try {
|
|
30531
|
-
const globalCreds = await loadEnvFile({
|
|
30532
|
-
envPath: globalPath
|
|
30533
|
-
});
|
|
30534
|
-
if (globalCreds.UIPATH_ACCESS_TOKEN) {
|
|
30535
|
-
const globalExp = getTokenExpiration(globalCreds.UIPATH_ACCESS_TOKEN);
|
|
30536
|
-
if (!globalExp || globalExp > new Date) {
|
|
30537
|
-
result.hint = `Local credentials file at ${absolutePath} has expired credentials. Valid credentials exist in ${globalPath}. Remove the local file or run 'uip login' to re-authenticate.`;
|
|
30538
|
-
}
|
|
30539
|
-
}
|
|
30540
|
-
} catch {}
|
|
30949
|
+
const globalHint = await tryGlobalCredsHint();
|
|
30950
|
+
if (globalHint) {
|
|
30951
|
+
result.hint = globalHint;
|
|
30541
30952
|
}
|
|
30542
30953
|
}
|
|
30543
30954
|
return result;
|
|
@@ -30612,9 +31023,11 @@ var clientCredentialsLogin = async ({
|
|
|
30612
31023
|
const params = {
|
|
30613
31024
|
grant_type: "client_credentials",
|
|
30614
31025
|
client_id: config.clientId,
|
|
30615
|
-
client_secret: config.clientSecret ?? ""
|
|
30616
|
-
scope: config.scopes.join(" ")
|
|
31026
|
+
client_secret: config.clientSecret ?? ""
|
|
30617
31027
|
};
|
|
31028
|
+
if (config.scopes.length > 0) {
|
|
31029
|
+
params.scope = config.scopes.join(" ");
|
|
31030
|
+
}
|
|
30618
31031
|
const tokenResponse = await fetch(config.tokenEndpoint, {
|
|
30619
31032
|
method: "POST",
|
|
30620
31033
|
headers: {
|
|
@@ -30824,11 +31237,25 @@ var interactiveLoginWithDeps = async (options, deps) => {
|
|
|
30824
31237
|
searchDir = parentDir;
|
|
30825
31238
|
}
|
|
30826
31239
|
}
|
|
30827
|
-
|
|
30828
|
-
|
|
30829
|
-
|
|
30830
|
-
|
|
30831
|
-
|
|
31240
|
+
let saveRelease;
|
|
31241
|
+
try {
|
|
31242
|
+
if (typeof fs7.acquireLock === "function") {
|
|
31243
|
+
saveRelease = await fs7.acquireLock(savePath);
|
|
31244
|
+
}
|
|
31245
|
+
} catch {
|
|
31246
|
+
saveRelease = undefined;
|
|
31247
|
+
}
|
|
31248
|
+
try {
|
|
31249
|
+
await saveEnvFile({
|
|
31250
|
+
envPath: savePath,
|
|
31251
|
+
data: credentials,
|
|
31252
|
+
merge: true
|
|
31253
|
+
});
|
|
31254
|
+
} finally {
|
|
31255
|
+
if (saveRelease) {
|
|
31256
|
+
await saveRelease().catch(() => {});
|
|
31257
|
+
}
|
|
31258
|
+
}
|
|
30832
31259
|
const reportedPath = fs7.path.isAbsolute(savePath) ? savePath : fs7.path.join(fs7.env.homedir(), savePath);
|
|
30833
31260
|
emit({
|
|
30834
31261
|
type: "saved",
|
|
@@ -30858,7 +31285,21 @@ async function logoutWithDeps(options, deps = {}) {
|
|
|
30858
31285
|
const fs7 = getFs();
|
|
30859
31286
|
const { absolutePath } = await resolveEnvFilePath(options.file);
|
|
30860
31287
|
if (absolutePath && await fs7.exists(absolutePath)) {
|
|
30861
|
-
|
|
31288
|
+
let release;
|
|
31289
|
+
try {
|
|
31290
|
+
if (typeof fs7.acquireLock === "function") {
|
|
31291
|
+
release = await fs7.acquireLock(absolutePath);
|
|
31292
|
+
}
|
|
31293
|
+
} catch {
|
|
31294
|
+
release = undefined;
|
|
31295
|
+
}
|
|
31296
|
+
try {
|
|
31297
|
+
await fs7.rm(absolutePath);
|
|
31298
|
+
} finally {
|
|
31299
|
+
if (release) {
|
|
31300
|
+
await release().catch(() => {});
|
|
31301
|
+
}
|
|
31302
|
+
}
|
|
30862
31303
|
return {
|
|
30863
31304
|
success: true,
|
|
30864
31305
|
message: `Logged out successfully. Removed ${absolutePath}`,
|
|
@@ -30879,81 +31320,6 @@ var init_logout = __esm(() => {
|
|
|
30879
31320
|
init_envFile();
|
|
30880
31321
|
});
|
|
30881
31322
|
|
|
30882
|
-
// ../auth/src/strategies/browser-strategy.ts
|
|
30883
|
-
var exports_browser_strategy = {};
|
|
30884
|
-
__export(exports_browser_strategy, {
|
|
30885
|
-
BrowserAuthStrategy: () => BrowserAuthStrategy
|
|
30886
|
-
});
|
|
30887
|
-
|
|
30888
|
-
class BrowserAuthStrategy {
|
|
30889
|
-
async execute(url, _redirectUri, expectedState) {
|
|
30890
|
-
const global2 = getGlobalThis();
|
|
30891
|
-
if (!global2?.window) {
|
|
30892
|
-
throw new Error("Browser environment required for authentication");
|
|
30893
|
-
}
|
|
30894
|
-
const screenWidth = global2.window.screen?.width ?? 1024;
|
|
30895
|
-
const screenHeight = global2.window.screen?.height ?? 768;
|
|
30896
|
-
const width = 600;
|
|
30897
|
-
const height = 700;
|
|
30898
|
-
const left = screenWidth / 2 - width / 2;
|
|
30899
|
-
const top = screenHeight / 2 - height / 2;
|
|
30900
|
-
if (!global2.window.open) {
|
|
30901
|
-
throw new Error("window.open is not available");
|
|
30902
|
-
}
|
|
30903
|
-
const popupResult = global2.window.open(url, "uip_auth", `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes,status=yes`);
|
|
30904
|
-
const popup = popupResult;
|
|
30905
|
-
if (!popup) {
|
|
30906
|
-
throw new Error(`Authentication popup was blocked by your browser.
|
|
30907
|
-
|
|
30908
|
-
` + `To continue:
|
|
30909
|
-
` + `1. Look for a popup blocker icon in your address bar
|
|
30910
|
-
` + `2. Allow popups for this site
|
|
30911
|
-
` + `3. Try logging in again
|
|
30912
|
-
|
|
30913
|
-
` + "If using an ad blocker, you may need to temporarily disable it.");
|
|
30914
|
-
}
|
|
30915
|
-
return new Promise((resolve2, reject) => {
|
|
30916
|
-
const messageHandler = (event) => {
|
|
30917
|
-
if (event.data?.type === "UIP_AUTH_CODE" && event.data.code) {
|
|
30918
|
-
if (event.data.state !== expectedState) {
|
|
30919
|
-
cleanup();
|
|
30920
|
-
reject(new Error("OAuth state mismatch — the callback state does not match the expected value. " + "This may indicate a CSRF attack. Please try signing in again."));
|
|
30921
|
-
popup.close();
|
|
30922
|
-
return;
|
|
30923
|
-
}
|
|
30924
|
-
cleanup();
|
|
30925
|
-
resolve2(event.data.code);
|
|
30926
|
-
popup.close();
|
|
30927
|
-
} else if (event.data?.type === "UIP_AUTH_ERROR") {
|
|
30928
|
-
cleanup();
|
|
30929
|
-
const errorMsg = event.data.error || "Authentication failed";
|
|
30930
|
-
reject(new Error(`Authentication failed: ${errorMsg}
|
|
30931
|
-
|
|
30932
|
-
` + "Please check your credentials and try again. " + "If the problem persists, verify your UiPath account is active."));
|
|
30933
|
-
popup.close();
|
|
30934
|
-
}
|
|
30935
|
-
};
|
|
30936
|
-
const cleanup = () => {
|
|
30937
|
-
global2.window?.removeEventListener?.("message", messageHandler);
|
|
30938
|
-
if (timer)
|
|
30939
|
-
clearInterval(timer);
|
|
30940
|
-
};
|
|
30941
|
-
if (global2.window?.addEventListener) {
|
|
30942
|
-
global2.window.addEventListener("message", messageHandler);
|
|
30943
|
-
}
|
|
30944
|
-
const timer = setInterval(() => {
|
|
30945
|
-
if (popup.closed) {
|
|
30946
|
-
cleanup();
|
|
30947
|
-
reject(new Error(`Authentication was cancelled.
|
|
30948
|
-
|
|
30949
|
-
` + "The authentication popup was closed before completing the login process. " + "Please try again and complete the authentication flow."));
|
|
30950
|
-
}
|
|
30951
|
-
}, 1000);
|
|
30952
|
-
});
|
|
30953
|
-
}
|
|
30954
|
-
}
|
|
30955
|
-
var init_browser_strategy = () => {};
|
|
30956
|
-
|
|
30957
31323
|
// ../auth/src/getBaseHtml.ts
|
|
30958
31324
|
var getBaseHtml = ({ title, message, type: type2 }) => {
|
|
30959
31325
|
const icon = type2 === "success" ? "✓" : "✕";
|
|
@@ -31100,7 +31466,7 @@ var getBaseHtml = ({ title, message, type: type2 }) => {
|
|
|
31100
31466
|
};
|
|
31101
31467
|
|
|
31102
31468
|
// ../auth/src/server.ts
|
|
31103
|
-
var startServer = async ({
|
|
31469
|
+
var AUTH_TIMEOUT_ERROR_CODE = "EAUTHTIMEOUT", startServer = async ({
|
|
31104
31470
|
redirectUri,
|
|
31105
31471
|
timeoutMs = DEFAULT_AUTH_TIMEOUT_MS2,
|
|
31106
31472
|
onListening
|
|
@@ -31171,7 +31537,18 @@ var startServer = async ({
|
|
|
31171
31537
|
reject(new Error("No authorization code received"));
|
|
31172
31538
|
return;
|
|
31173
31539
|
});
|
|
31174
|
-
|
|
31540
|
+
const timeoutHandle = setTimeout(() => {
|
|
31541
|
+
server.close();
|
|
31542
|
+
const err = new Error("Authentication timeout");
|
|
31543
|
+
err.code = AUTH_TIMEOUT_ERROR_CODE;
|
|
31544
|
+
reject(err);
|
|
31545
|
+
}, timeoutMs);
|
|
31546
|
+
const bindHost = redirectUri.hostname === "localhost" ? "127.0.0.1" : redirectUri.hostname;
|
|
31547
|
+
server.on("error", (err) => {
|
|
31548
|
+
clearTimeout(timeoutHandle);
|
|
31549
|
+
reject(err);
|
|
31550
|
+
});
|
|
31551
|
+
server.listen(Number(redirectUri.port), bindHost, () => {
|
|
31175
31552
|
if (onListening) {
|
|
31176
31553
|
Promise.resolve(onListening()).catch((err) => {
|
|
31177
31554
|
server.close();
|
|
@@ -31180,10 +31557,6 @@ var startServer = async ({
|
|
|
31180
31557
|
});
|
|
31181
31558
|
}
|
|
31182
31559
|
});
|
|
31183
|
-
const timeoutHandle = setTimeout(() => {
|
|
31184
|
-
server.close();
|
|
31185
|
-
reject(new Error("Authentication timeout"));
|
|
31186
|
-
}, timeoutMs);
|
|
31187
31560
|
server.on("close", () => {
|
|
31188
31561
|
clearTimeout(timeoutHandle);
|
|
31189
31562
|
});
|
|
@@ -31193,6 +31566,81 @@ var init_server = __esm(() => {
|
|
|
31193
31566
|
init_constants2();
|
|
31194
31567
|
});
|
|
31195
31568
|
|
|
31569
|
+
// ../auth/src/strategies/browser-strategy.ts
|
|
31570
|
+
var exports_browser_strategy = {};
|
|
31571
|
+
__export(exports_browser_strategy, {
|
|
31572
|
+
BrowserAuthStrategy: () => BrowserAuthStrategy
|
|
31573
|
+
});
|
|
31574
|
+
|
|
31575
|
+
class BrowserAuthStrategy {
|
|
31576
|
+
async execute(url, _redirectUri, expectedState) {
|
|
31577
|
+
const global2 = getGlobalThis();
|
|
31578
|
+
if (!global2?.window) {
|
|
31579
|
+
throw new Error("Browser environment required for authentication");
|
|
31580
|
+
}
|
|
31581
|
+
const screenWidth = global2.window.screen?.width ?? 1024;
|
|
31582
|
+
const screenHeight = global2.window.screen?.height ?? 768;
|
|
31583
|
+
const width = 600;
|
|
31584
|
+
const height = 700;
|
|
31585
|
+
const left = screenWidth / 2 - width / 2;
|
|
31586
|
+
const top = screenHeight / 2 - height / 2;
|
|
31587
|
+
if (!global2.window.open) {
|
|
31588
|
+
throw new Error("window.open is not available");
|
|
31589
|
+
}
|
|
31590
|
+
const popupResult = global2.window.open(url, "uip_auth", `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes,status=yes`);
|
|
31591
|
+
const popup = popupResult;
|
|
31592
|
+
if (!popup) {
|
|
31593
|
+
throw new Error(`Authentication popup was blocked by your browser.
|
|
31594
|
+
|
|
31595
|
+
` + `To continue:
|
|
31596
|
+
` + `1. Look for a popup blocker icon in your address bar
|
|
31597
|
+
` + `2. Allow popups for this site
|
|
31598
|
+
` + `3. Try logging in again
|
|
31599
|
+
|
|
31600
|
+
` + "If using an ad blocker, you may need to temporarily disable it.");
|
|
31601
|
+
}
|
|
31602
|
+
return new Promise((resolve2, reject) => {
|
|
31603
|
+
const messageHandler = (event) => {
|
|
31604
|
+
if (event.data?.type === "UIP_AUTH_CODE" && event.data.code) {
|
|
31605
|
+
if (event.data.state !== expectedState) {
|
|
31606
|
+
cleanup();
|
|
31607
|
+
reject(new Error("OAuth state mismatch — the callback state does not match the expected value. " + "This may indicate a CSRF attack. Please try signing in again."));
|
|
31608
|
+
popup.close();
|
|
31609
|
+
return;
|
|
31610
|
+
}
|
|
31611
|
+
cleanup();
|
|
31612
|
+
resolve2(event.data.code);
|
|
31613
|
+
popup.close();
|
|
31614
|
+
} else if (event.data?.type === "UIP_AUTH_ERROR") {
|
|
31615
|
+
cleanup();
|
|
31616
|
+
const errorMsg = event.data.error || "Authentication failed";
|
|
31617
|
+
reject(new Error(`Authentication failed: ${errorMsg}
|
|
31618
|
+
|
|
31619
|
+
` + "Please check your credentials and try again. " + "If the problem persists, verify your UiPath account is active."));
|
|
31620
|
+
popup.close();
|
|
31621
|
+
}
|
|
31622
|
+
};
|
|
31623
|
+
const cleanup = () => {
|
|
31624
|
+
global2.window?.removeEventListener?.("message", messageHandler);
|
|
31625
|
+
if (timer)
|
|
31626
|
+
clearInterval(timer);
|
|
31627
|
+
};
|
|
31628
|
+
if (global2.window?.addEventListener) {
|
|
31629
|
+
global2.window.addEventListener("message", messageHandler);
|
|
31630
|
+
}
|
|
31631
|
+
const timer = setInterval(() => {
|
|
31632
|
+
if (popup.closed) {
|
|
31633
|
+
cleanup();
|
|
31634
|
+
reject(new Error(`Authentication was cancelled.
|
|
31635
|
+
|
|
31636
|
+
` + "The authentication popup was closed before completing the login process. " + "Please try again and complete the authentication flow."));
|
|
31637
|
+
}
|
|
31638
|
+
}, 1000);
|
|
31639
|
+
});
|
|
31640
|
+
}
|
|
31641
|
+
}
|
|
31642
|
+
var init_browser_strategy = () => {};
|
|
31643
|
+
|
|
31196
31644
|
// ../auth/src/strategies/node-strategy.ts
|
|
31197
31645
|
var exports_node_strategy = {};
|
|
31198
31646
|
__export(exports_node_strategy, {
|
|
@@ -31279,7 +31727,8 @@ __export(exports_src2, {
|
|
|
31279
31727
|
ENV_AUTH_ENABLE_VAR: () => ENV_AUTH_ENABLE_VAR,
|
|
31280
31728
|
ENFORCE_ROBOT_AUTH_VAR: () => ENFORCE_ROBOT_AUTH_VAR,
|
|
31281
31729
|
DEFAULT_ENV_FILENAME: () => DEFAULT_ENV_FILENAME,
|
|
31282
|
-
DEFAULT_AUTH_FILENAME: () => DEFAULT_AUTH_FILENAME
|
|
31730
|
+
DEFAULT_AUTH_FILENAME: () => DEFAULT_AUTH_FILENAME,
|
|
31731
|
+
AUTH_TIMEOUT_ERROR_CODE: () => AUTH_TIMEOUT_ERROR_CODE
|
|
31283
31732
|
});
|
|
31284
31733
|
var authenticate = async ({
|
|
31285
31734
|
baseUrl,
|
|
@@ -31354,6 +31803,7 @@ var init_src3 = __esm(() => {
|
|
|
31354
31803
|
init_config();
|
|
31355
31804
|
init_envAuth();
|
|
31356
31805
|
init_selectTenant();
|
|
31806
|
+
init_server();
|
|
31357
31807
|
init_envFile();
|
|
31358
31808
|
init_jwt();
|
|
31359
31809
|
init_authContext();
|
|
@@ -42776,7 +43226,7 @@ var require_re = __commonJS((exports, module) => {
|
|
|
42776
43226
|
exports = module.exports = {};
|
|
42777
43227
|
var re = exports.re = [];
|
|
42778
43228
|
var safeRe = exports.safeRe = [];
|
|
42779
|
-
var
|
|
43229
|
+
var src5 = exports.src = [];
|
|
42780
43230
|
var safeSrc = exports.safeSrc = [];
|
|
42781
43231
|
var t = exports.t = {};
|
|
42782
43232
|
var R = 0;
|
|
@@ -42797,7 +43247,7 @@ var require_re = __commonJS((exports, module) => {
|
|
|
42797
43247
|
const index2 = R++;
|
|
42798
43248
|
debug(name, index2, value);
|
|
42799
43249
|
t[name] = index2;
|
|
42800
|
-
|
|
43250
|
+
src5[index2] = value;
|
|
42801
43251
|
safeSrc[index2] = safe;
|
|
42802
43252
|
re[index2] = new RegExp(value, isGlobal ? "g" : undefined);
|
|
42803
43253
|
safeRe[index2] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
@@ -42805,46 +43255,46 @@ var require_re = __commonJS((exports, module) => {
|
|
|
42805
43255
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
42806
43256
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
42807
43257
|
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
42808
|
-
createToken("MAINVERSION", `(${
|
|
42809
|
-
createToken("MAINVERSIONLOOSE", `(${
|
|
42810
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${
|
|
42811
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${
|
|
42812
|
-
createToken("PRERELEASE", `(?:-(${
|
|
42813
|
-
createToken("PRERELEASELOOSE", `(?:-?(${
|
|
43258
|
+
createToken("MAINVERSION", `(${src5[t.NUMERICIDENTIFIER]})\\.` + `(${src5[t.NUMERICIDENTIFIER]})\\.` + `(${src5[t.NUMERICIDENTIFIER]})`);
|
|
43259
|
+
createToken("MAINVERSIONLOOSE", `(${src5[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src5[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src5[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
43260
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src5[t.NONNUMERICIDENTIFIER]}|${src5[t.NUMERICIDENTIFIER]})`);
|
|
43261
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src5[t.NONNUMERICIDENTIFIER]}|${src5[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
43262
|
+
createToken("PRERELEASE", `(?:-(${src5[t.PRERELEASEIDENTIFIER]}(?:\\.${src5[t.PRERELEASEIDENTIFIER]})*))`);
|
|
43263
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src5[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src5[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
42814
43264
|
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
42815
|
-
createToken("BUILD", `(?:\\+(${
|
|
42816
|
-
createToken("FULLPLAIN", `v?${
|
|
42817
|
-
createToken("FULL", `^${
|
|
42818
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${
|
|
42819
|
-
createToken("LOOSE", `^${
|
|
43265
|
+
createToken("BUILD", `(?:\\+(${src5[t.BUILDIDENTIFIER]}(?:\\.${src5[t.BUILDIDENTIFIER]})*))`);
|
|
43266
|
+
createToken("FULLPLAIN", `v?${src5[t.MAINVERSION]}${src5[t.PRERELEASE]}?${src5[t.BUILD]}?`);
|
|
43267
|
+
createToken("FULL", `^${src5[t.FULLPLAIN]}$`);
|
|
43268
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src5[t.MAINVERSIONLOOSE]}${src5[t.PRERELEASELOOSE]}?${src5[t.BUILD]}?`);
|
|
43269
|
+
createToken("LOOSE", `^${src5[t.LOOSEPLAIN]}$`);
|
|
42820
43270
|
createToken("GTLT", "((?:<|>)?=?)");
|
|
42821
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${
|
|
42822
|
-
createToken("XRANGEIDENTIFIER", `${
|
|
42823
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${
|
|
42824
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${
|
|
42825
|
-
createToken("XRANGE", `^${
|
|
42826
|
-
createToken("XRANGELOOSE", `^${
|
|
43271
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src5[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
43272
|
+
createToken("XRANGEIDENTIFIER", `${src5[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
43273
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src5[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src5[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src5[t.XRANGEIDENTIFIER]})` + `(?:${src5[t.PRERELEASE]})?${src5[t.BUILD]}?` + `)?)?`);
|
|
43274
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src5[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src5[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src5[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src5[t.PRERELEASELOOSE]})?${src5[t.BUILD]}?` + `)?)?`);
|
|
43275
|
+
createToken("XRANGE", `^${src5[t.GTLT]}\\s*${src5[t.XRANGEPLAIN]}$`);
|
|
43276
|
+
createToken("XRANGELOOSE", `^${src5[t.GTLT]}\\s*${src5[t.XRANGEPLAINLOOSE]}$`);
|
|
42827
43277
|
createToken("COERCEPLAIN", `${"(^|[^\\d])" + "(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
42828
|
-
createToken("COERCE", `${
|
|
42829
|
-
createToken("COERCEFULL",
|
|
42830
|
-
createToken("COERCERTL",
|
|
42831
|
-
createToken("COERCERTLFULL",
|
|
43278
|
+
createToken("COERCE", `${src5[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
43279
|
+
createToken("COERCEFULL", src5[t.COERCEPLAIN] + `(?:${src5[t.PRERELEASE]})?` + `(?:${src5[t.BUILD]})?` + `(?:$|[^\\d])`);
|
|
43280
|
+
createToken("COERCERTL", src5[t.COERCE], true);
|
|
43281
|
+
createToken("COERCERTLFULL", src5[t.COERCEFULL], true);
|
|
42832
43282
|
createToken("LONETILDE", "(?:~>?)");
|
|
42833
|
-
createToken("TILDETRIM", `(\\s*)${
|
|
43283
|
+
createToken("TILDETRIM", `(\\s*)${src5[t.LONETILDE]}\\s+`, true);
|
|
42834
43284
|
exports.tildeTrimReplace = "$1~";
|
|
42835
|
-
createToken("TILDE", `^${
|
|
42836
|
-
createToken("TILDELOOSE", `^${
|
|
43285
|
+
createToken("TILDE", `^${src5[t.LONETILDE]}${src5[t.XRANGEPLAIN]}$`);
|
|
43286
|
+
createToken("TILDELOOSE", `^${src5[t.LONETILDE]}${src5[t.XRANGEPLAINLOOSE]}$`);
|
|
42837
43287
|
createToken("LONECARET", "(?:\\^)");
|
|
42838
|
-
createToken("CARETTRIM", `(\\s*)${
|
|
43288
|
+
createToken("CARETTRIM", `(\\s*)${src5[t.LONECARET]}\\s+`, true);
|
|
42839
43289
|
exports.caretTrimReplace = "$1^";
|
|
42840
|
-
createToken("CARET", `^${
|
|
42841
|
-
createToken("CARETLOOSE", `^${
|
|
42842
|
-
createToken("COMPARATORLOOSE", `^${
|
|
42843
|
-
createToken("COMPARATOR", `^${
|
|
42844
|
-
createToken("COMPARATORTRIM", `(\\s*)${
|
|
43290
|
+
createToken("CARET", `^${src5[t.LONECARET]}${src5[t.XRANGEPLAIN]}$`);
|
|
43291
|
+
createToken("CARETLOOSE", `^${src5[t.LONECARET]}${src5[t.XRANGEPLAINLOOSE]}$`);
|
|
43292
|
+
createToken("COMPARATORLOOSE", `^${src5[t.GTLT]}\\s*(${src5[t.LOOSEPLAIN]})$|^$`);
|
|
43293
|
+
createToken("COMPARATOR", `^${src5[t.GTLT]}\\s*(${src5[t.FULLPLAIN]})$|^$`);
|
|
43294
|
+
createToken("COMPARATORTRIM", `(\\s*)${src5[t.GTLT]}\\s*(${src5[t.LOOSEPLAIN]}|${src5[t.XRANGEPLAIN]})`, true);
|
|
42845
43295
|
exports.comparatorTrimReplace = "$1$2$3";
|
|
42846
|
-
createToken("HYPHENRANGE", `^\\s*(${
|
|
42847
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${
|
|
43296
|
+
createToken("HYPHENRANGE", `^\\s*(${src5[t.XRANGEPLAIN]})` + `\\s+-\\s+` + `(${src5[t.XRANGEPLAIN]})` + `\\s*$`);
|
|
43297
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src5[t.XRANGEPLAINLOOSE]})` + `\\s+-\\s+` + `(${src5[t.XRANGEPLAINLOOSE]})` + `\\s*$`);
|
|
42848
43298
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
42849
43299
|
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
42850
43300
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
@@ -44750,7 +45200,7 @@ var import_semver, createStorageSchema = (factory) => {
|
|
|
44750
45200
|
}, migrationV40, version16 = "41.0.0", nodePositionSchemaV41, nodeSizeSchemaV41, resourceNodeSchemaV41, stickyNoteNodeSchemaV41, flowLayoutSchemaV41, lowCodeAgentSchemaV41, codedAgentSchemaV41, agentStorageSchemaV41, storageSchemaV41, v41, migrationV41, version17 = "42.0.0", ENTITIES_TO_REMOVE, lowCodeAgentSchemaV42, codedAgentSchemaV42, agentStorageSchemaV42, storageSchemaV42, v42, migrationV42, version18 = "43.0.0", lowCodeAgentSchemaV43, codedAgentSchemaV43, agentStorageSchemaV43, storageSchemaV43, v43, migrationV43, version19 = "44.0.0", _memorySpaceStorageSchemaV43, msEscalationSettingsSchemaV44, escalationStorageSchemaV44, resourceStorageSchemaV44, resourcesFolderSchemaV44, lowCodeAgentSchemaV44, codedAgentSchemaV44, agentStorageSchemaV44, storageSchemaV44, v44, migrationV44, version20 = "45.0.0", appearanceSchema2, lowCodeAgentSchemaV45, codedAgentSchemaV45, agentStorageSchemaV45, storageSchemaV45, v45, migrationV45, version21 = "46.0.0", lowCodeAgentSchemaV46, codedAgentSchemaV46, agentStorageSchemaV46, storageSchemaV46, v46, migrationV46, version222 = "47.0.0", processOrchestrationToolStorageSchemaV47, toolStorageSchemaV47, resourceStorageSchemaV47, resourcesFolderSchemaV47, lowCodeAgentSchemaV47, codedAgentSchemaV47, agentStorageSchemaV47, storageSchemaV47, v47, migrationV47, version23 = "48.0.0", vdoInputValueSchemaV48, requiredEntityInputSchemaV48, dataFabricEntityItemSchemaV48, indexOrAttachmentsContextStorageSchemaV48, dataFabricContextStorageSchemaV48, contextStorageSchemaV48, a2aStorageSchemaV48, resourceStorageSchemaV48, resourcesFolderSchemaV48, lowCodeAgentSchemaV48, codedAgentSchemaV48, agentStorageSchemaV48, storageSchemaV48, migrateContextResource = (context) => ({
|
|
44751
45201
|
...context,
|
|
44752
45202
|
contextType: context.contextType ?? (context.attachments ? "attachments" : "index")
|
|
44753
|
-
}), v48, migrationV48, version24 = "49.0.0", lowCodeAgentSchemaV49, codedAgentSchemaV49, agentStorageSchemaV49, storageSchemaV49, v49, migrationV49, version25 = "50.0.0", RECIPIENT_TYPE3, escalationChannelActionCenterSchemaV50, escalationStorageSchemaV50, baseLowCodeSettingsSchema, _v49ProcessToolSchema, standardLowCodeAgentSettingsV50, advancedLowCodeAgentSettingsV50, lowCodeAgentSettingsV50, lowCodeAgentSchemaV50, codedAgentSchemaV50, agentStorageSchemaV50, clientSideToolStorageSchemaV50, toolStorageSchemaV50, resourceStorageSchemaV50, resourcesFolderSchemaV50, storageSchemaV50, v50, migrationV50, migrations, currentStorageSchemaMigration, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentEvaluationSetStorageSchema, currentCodedAgentStorageSchema, currentFlowLayoutStorageSchema, applyMigrations = async (migrations2, data, currentVersion9, options = {}) => {
|
|
45203
|
+
}), v48, migrationV48, version24 = "49.0.0", lowCodeAgentSchemaV49, codedAgentSchemaV49, agentStorageSchemaV49, storageSchemaV49, v49, migrationV49, version25 = "50.0.0", RECIPIENT_TYPE3, escalationChannelActionCenterSchemaV50, escalationStorageSchemaV50, baseLowCodeSettingsSchema, _v49ProcessToolSchema, flowToolStorageSchemaV50, voiceSettingsExtension, standardLowCodeAgentSettingsV50, advancedLowCodeAgentSettingsV50, lowCodeAgentSettingsV50, lowCodeAgentSchemaV50, codedAgentSchemaV50, agentStorageSchemaV50, clientSideToolStorageSchemaV50, toolStorageSchemaV50, discoveryModeSchemaV50, mcpToolStorageSchemaV50, resourceStorageSchemaV50, resourcesFolderSchemaV50, storageSchemaV50, v50, migrationV50, migrations, currentStorageSchemaMigration, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentEvaluationSetStorageSchema, currentCodedAgentStorageSchema, currentFlowLayoutStorageSchema, applyMigrations = async (migrations2, data, currentVersion9, options = {}) => {
|
|
44754
45204
|
const parsedCurrentVersion = import_semver.coerce(currentVersion9);
|
|
44755
45205
|
if (!parsedCurrentVersion) {
|
|
44756
45206
|
throw new Error(`Invalid current version: ${currentVersion9}`);
|
|
@@ -52984,7 +53434,8 @@ var init_dist2 = __esm(() => {
|
|
|
52984
53434
|
featuresFolder: v46.featuresFolder,
|
|
52985
53435
|
flowLayout: v46.flowLayout,
|
|
52986
53436
|
mcp: v46.mcp,
|
|
52987
|
-
tool: toolStorageSchemaV47
|
|
53437
|
+
tool: toolStorageSchemaV47,
|
|
53438
|
+
processOrchestrationTool: processOrchestrationToolStorageSchemaV47
|
|
52988
53439
|
};
|
|
52989
53440
|
migrationV47 = createMigration({
|
|
52990
53441
|
from: v46.storage,
|
|
@@ -53161,7 +53612,8 @@ var init_dist2 = __esm(() => {
|
|
|
53161
53612
|
flowLayout: v47.flowLayout,
|
|
53162
53613
|
mcp: v47.mcp,
|
|
53163
53614
|
a2a: a2aStorageSchemaV48,
|
|
53164
|
-
tool: v47.tool
|
|
53615
|
+
tool: v47.tool,
|
|
53616
|
+
processOrchestrationTool: v47.processOrchestrationTool
|
|
53165
53617
|
};
|
|
53166
53618
|
migrationV48 = createMigration({
|
|
53167
53619
|
from: v47.storage,
|
|
@@ -53283,7 +53735,8 @@ var init_dist2 = __esm(() => {
|
|
|
53283
53735
|
flowLayout: v48.flowLayout,
|
|
53284
53736
|
mcp: v48.mcp,
|
|
53285
53737
|
a2a: v48.a2a,
|
|
53286
|
-
tool: v48.tool
|
|
53738
|
+
tool: v48.tool,
|
|
53739
|
+
processOrchestrationTool: v48.processOrchestrationTool
|
|
53287
53740
|
};
|
|
53288
53741
|
migrationV49 = createMigration({
|
|
53289
53742
|
from: v48.storage,
|
|
@@ -53387,15 +53840,27 @@ var init_dist2 = __esm(() => {
|
|
|
53387
53840
|
});
|
|
53388
53841
|
baseLowCodeSettingsSchema = v49.lowCodeAgent.shape.settings;
|
|
53389
53842
|
_v49ProcessToolSchema = v49.tool.options[1];
|
|
53390
|
-
|
|
53391
|
-
|
|
53843
|
+
flowToolStorageSchemaV50 = v49.processOrchestrationTool.extend({
|
|
53844
|
+
type: exports_external.literal("flow")
|
|
53845
|
+
});
|
|
53846
|
+
voiceSettingsExtension = {
|
|
53847
|
+
voice: exports_external.object({
|
|
53848
|
+
model: exports_external.string(),
|
|
53849
|
+
maxTokens: exports_external.number(),
|
|
53850
|
+
temperature: exports_external.number(),
|
|
53851
|
+
persona: exports_external.string()
|
|
53852
|
+
}).optional()
|
|
53853
|
+
};
|
|
53854
|
+
standardLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("standard") }).extend(voiceSettingsExtension);
|
|
53855
|
+
advancedLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("advanced") }).extend(voiceSettingsExtension);
|
|
53392
53856
|
lowCodeAgentSettingsV50 = exports_external.discriminatedUnion("mode", [
|
|
53393
53857
|
standardLowCodeAgentSettingsV50,
|
|
53394
53858
|
advancedLowCodeAgentSettingsV50
|
|
53395
53859
|
]);
|
|
53396
53860
|
lowCodeAgentSchemaV50 = v49.lowCodeAgent.extend({
|
|
53397
53861
|
metadata: v49.lowCodeAgent.shape.metadata.extend({
|
|
53398
|
-
storageVersion: exports_external.literal(version25)
|
|
53862
|
+
storageVersion: exports_external.literal(version25),
|
|
53863
|
+
variant: exports_external.enum(["caseManager"]).optional()
|
|
53399
53864
|
}),
|
|
53400
53865
|
settings: lowCodeAgentSettingsV50,
|
|
53401
53866
|
id: exports_external.string().optional(),
|
|
@@ -53430,13 +53895,21 @@ var init_dist2 = __esm(() => {
|
|
|
53430
53895
|
});
|
|
53431
53896
|
toolStorageSchemaV50 = exports_external.discriminatedUnion("type", [
|
|
53432
53897
|
...v49.tool.options,
|
|
53433
|
-
clientSideToolStorageSchemaV50
|
|
53898
|
+
clientSideToolStorageSchemaV50,
|
|
53899
|
+
flowToolStorageSchemaV50
|
|
53900
|
+
]);
|
|
53901
|
+
discoveryModeSchemaV50 = exports_external.discriminatedUnion("type", [
|
|
53902
|
+
exports_external.object({ type: exports_external.literal("cached") }),
|
|
53903
|
+
exports_external.object({ type: exports_external.literal("dynamic"), allowAll: exports_external.boolean() })
|
|
53434
53904
|
]);
|
|
53905
|
+
mcpToolStorageSchemaV50 = v49.mcp.omit({ dynamicTools: true }).extend({
|
|
53906
|
+
toolsConfiguration: exports_external.object({ discoveryMode: discoveryModeSchemaV50 }).default({ discoveryMode: { type: "cached" } })
|
|
53907
|
+
});
|
|
53435
53908
|
resourceStorageSchemaV50 = exports_external.union([
|
|
53436
53909
|
toolStorageSchemaV50,
|
|
53437
53910
|
v49.context,
|
|
53438
53911
|
escalationStorageSchemaV50,
|
|
53439
|
-
|
|
53912
|
+
mcpToolStorageSchemaV50,
|
|
53440
53913
|
v49.a2a
|
|
53441
53914
|
]);
|
|
53442
53915
|
resourcesFolderSchemaV50 = exports_external.object({
|
|
@@ -53484,6 +53957,7 @@ var init_dist2 = __esm(() => {
|
|
|
53484
53957
|
},
|
|
53485
53958
|
defaultStorageContents: {
|
|
53486
53959
|
...migrationV49.defaultStorageContents,
|
|
53960
|
+
folders: migrationV49.defaultStorageContents.folders,
|
|
53487
53961
|
files: [
|
|
53488
53962
|
{
|
|
53489
53963
|
...migrationV49.defaultStorageContents.files[0],
|
|
@@ -53511,8 +53985,9 @@ var init_dist2 = __esm(() => {
|
|
|
53511
53985
|
const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
|
|
53512
53986
|
const featuresFolder = prev.folders.find((folder) => folder.name === "features");
|
|
53513
53987
|
const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
|
|
53988
|
+
const rootFolders = [evalsFolder8, featuresFolder, resourcesFolder8];
|
|
53514
53989
|
return {
|
|
53515
|
-
folders:
|
|
53990
|
+
folders: rootFolders,
|
|
53516
53991
|
files: [
|
|
53517
53992
|
{
|
|
53518
53993
|
name: "agent.json",
|
|
@@ -55903,7 +56378,7 @@ var require_adm_zip = __commonJS((exports, module) => {
|
|
|
55903
56378
|
});
|
|
55904
56379
|
|
|
55905
56380
|
// ../integrationservice-sdk/generated/connections/src/runtime.ts
|
|
55906
|
-
class
|
|
56381
|
+
class Configuration6 {
|
|
55907
56382
|
configuration;
|
|
55908
56383
|
constructor(configuration = {}) {
|
|
55909
56384
|
this.configuration = configuration;
|
|
@@ -55912,7 +56387,7 @@ class Configuration5 {
|
|
|
55912
56387
|
this.configuration = configuration;
|
|
55913
56388
|
}
|
|
55914
56389
|
get basePath() {
|
|
55915
|
-
return this.configuration.basePath != null ? this.configuration.basePath :
|
|
56390
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH5;
|
|
55916
56391
|
}
|
|
55917
56392
|
get fetchApi() {
|
|
55918
56393
|
return this.configuration.fetchApi;
|
|
@@ -55921,7 +56396,7 @@ class Configuration5 {
|
|
|
55921
56396
|
return this.configuration.middleware || [];
|
|
55922
56397
|
}
|
|
55923
56398
|
get queryParamsStringify() {
|
|
55924
|
-
return this.configuration.queryParamsStringify ||
|
|
56399
|
+
return this.configuration.queryParamsStringify || querystring5;
|
|
55925
56400
|
}
|
|
55926
56401
|
get username() {
|
|
55927
56402
|
return this.configuration.username;
|
|
@@ -55950,16 +56425,16 @@ class Configuration5 {
|
|
|
55950
56425
|
return this.configuration.credentials;
|
|
55951
56426
|
}
|
|
55952
56427
|
}
|
|
55953
|
-
function
|
|
56428
|
+
function isBlob5(value) {
|
|
55954
56429
|
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
55955
56430
|
}
|
|
55956
|
-
function
|
|
56431
|
+
function isFormData5(value) {
|
|
55957
56432
|
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
55958
56433
|
}
|
|
55959
|
-
function
|
|
55960
|
-
return Object.keys(params).map((key) =>
|
|
56434
|
+
function querystring5(params, prefix = "") {
|
|
56435
|
+
return Object.keys(params).map((key) => querystringSingleKey5(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
55961
56436
|
}
|
|
55962
|
-
function
|
|
56437
|
+
function querystringSingleKey5(key, value, keyPrefix = "") {
|
|
55963
56438
|
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
55964
56439
|
if (value instanceof Array) {
|
|
55965
56440
|
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
@@ -55967,13 +56442,13 @@ function querystringSingleKey4(key, value, keyPrefix = "") {
|
|
|
55967
56442
|
}
|
|
55968
56443
|
if (value instanceof Set) {
|
|
55969
56444
|
const valueAsArray = Array.from(value);
|
|
55970
|
-
return
|
|
56445
|
+
return querystringSingleKey5(key, valueAsArray, keyPrefix);
|
|
55971
56446
|
}
|
|
55972
56447
|
if (value instanceof Date) {
|
|
55973
56448
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
55974
56449
|
}
|
|
55975
56450
|
if (value instanceof Object) {
|
|
55976
|
-
return
|
|
56451
|
+
return querystring5(value, fullKey);
|
|
55977
56452
|
}
|
|
55978
56453
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
55979
56454
|
}
|
|
@@ -55988,7 +56463,7 @@ function mapValues2(data, fn) {
|
|
|
55988
56463
|
}
|
|
55989
56464
|
return result;
|
|
55990
56465
|
}
|
|
55991
|
-
function
|
|
56466
|
+
function canConsumeForm3(consumes) {
|
|
55992
56467
|
for (const consume of consumes) {
|
|
55993
56468
|
if (consume.contentType === "multipart/form-data") {
|
|
55994
56469
|
return true;
|
|
@@ -55997,7 +56472,7 @@ function canConsumeForm2(consumes) {
|
|
|
55997
56472
|
return false;
|
|
55998
56473
|
}
|
|
55999
56474
|
|
|
56000
|
-
class
|
|
56475
|
+
class JSONApiResponse5 {
|
|
56001
56476
|
raw;
|
|
56002
56477
|
transformer;
|
|
56003
56478
|
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
@@ -56038,15 +56513,15 @@ class TextApiResponse3 {
|
|
|
56038
56513
|
return await this.raw.text();
|
|
56039
56514
|
}
|
|
56040
56515
|
}
|
|
56041
|
-
var
|
|
56516
|
+
var BASE_PATH5, DefaultConfig5, BaseAPI5, ResponseError5, FetchError5, RequiredError5, COLLECTION_FORMATS;
|
|
56042
56517
|
var init_runtime = __esm(() => {
|
|
56043
|
-
|
|
56044
|
-
|
|
56045
|
-
|
|
56518
|
+
BASE_PATH5 = "https://alpha.uipath.com/entity/Azure/connections_".replace(/\/+$/, "");
|
|
56519
|
+
DefaultConfig5 = new Configuration6;
|
|
56520
|
+
BaseAPI5 = class BaseAPI5 {
|
|
56046
56521
|
configuration;
|
|
56047
56522
|
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
56048
56523
|
middleware;
|
|
56049
|
-
constructor(configuration =
|
|
56524
|
+
constructor(configuration = DefaultConfig5) {
|
|
56050
56525
|
this.configuration = configuration;
|
|
56051
56526
|
this.middleware = configuration.middleware;
|
|
56052
56527
|
}
|
|
@@ -56067,7 +56542,7 @@ var init_runtime = __esm(() => {
|
|
|
56067
56542
|
if (!mime) {
|
|
56068
56543
|
return false;
|
|
56069
56544
|
}
|
|
56070
|
-
return
|
|
56545
|
+
return BaseAPI5.jsonRegex.test(mime);
|
|
56071
56546
|
}
|
|
56072
56547
|
async request(context, initOverrides) {
|
|
56073
56548
|
const { url: url2, init } = await this.createFetchParams(context, initOverrides);
|
|
@@ -56075,7 +56550,7 @@ var init_runtime = __esm(() => {
|
|
|
56075
56550
|
if (response && (response.status >= 200 && response.status < 300)) {
|
|
56076
56551
|
return response;
|
|
56077
56552
|
}
|
|
56078
|
-
throw new
|
|
56553
|
+
throw new ResponseError5(response, "Response returned an error code");
|
|
56079
56554
|
}
|
|
56080
56555
|
async createFetchParams(context, initOverrides) {
|
|
56081
56556
|
let url2 = this.configuration.basePath + context.path;
|
|
@@ -56099,7 +56574,7 @@ var init_runtime = __esm(() => {
|
|
|
56099
56574
|
})
|
|
56100
56575
|
};
|
|
56101
56576
|
let body;
|
|
56102
|
-
if (
|
|
56577
|
+
if (isFormData5(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob5(overriddenInit.body)) {
|
|
56103
56578
|
body = overriddenInit.body;
|
|
56104
56579
|
} else if (this.isJsonMime(headers2["Content-Type"])) {
|
|
56105
56580
|
body = JSON.stringify(overriddenInit.body);
|
|
@@ -56139,7 +56614,7 @@ var init_runtime = __esm(() => {
|
|
|
56139
56614
|
}
|
|
56140
56615
|
if (response === undefined) {
|
|
56141
56616
|
if (e instanceof Error) {
|
|
56142
|
-
throw new
|
|
56617
|
+
throw new FetchError5(e, "The request failed and the interceptors did not return an alternative response");
|
|
56143
56618
|
} else {
|
|
56144
56619
|
throw e;
|
|
56145
56620
|
}
|
|
@@ -56164,7 +56639,7 @@ var init_runtime = __esm(() => {
|
|
|
56164
56639
|
return next;
|
|
56165
56640
|
}
|
|
56166
56641
|
};
|
|
56167
|
-
|
|
56642
|
+
ResponseError5 = class ResponseError5 extends Error {
|
|
56168
56643
|
response;
|
|
56169
56644
|
name = "ResponseError";
|
|
56170
56645
|
constructor(response, msg) {
|
|
@@ -56172,7 +56647,7 @@ var init_runtime = __esm(() => {
|
|
|
56172
56647
|
this.response = response;
|
|
56173
56648
|
}
|
|
56174
56649
|
};
|
|
56175
|
-
|
|
56650
|
+
FetchError5 = class FetchError5 extends Error {
|
|
56176
56651
|
cause;
|
|
56177
56652
|
name = "FetchError";
|
|
56178
56653
|
constructor(cause, msg) {
|
|
@@ -56180,7 +56655,7 @@ var init_runtime = __esm(() => {
|
|
|
56180
56655
|
this.cause = cause;
|
|
56181
56656
|
}
|
|
56182
56657
|
};
|
|
56183
|
-
|
|
56658
|
+
RequiredError5 = class RequiredError5 extends Error {
|
|
56184
56659
|
field;
|
|
56185
56660
|
name = "RequiredError";
|
|
56186
56661
|
constructor(field, msg) {
|
|
@@ -56196,6 +56671,337 @@ var init_runtime = __esm(() => {
|
|
|
56196
56671
|
};
|
|
56197
56672
|
});
|
|
56198
56673
|
|
|
56674
|
+
// ../integrationservice-sdk/generated/elements/src/runtime.ts
|
|
56675
|
+
class Configuration7 {
|
|
56676
|
+
configuration;
|
|
56677
|
+
constructor(configuration = {}) {
|
|
56678
|
+
this.configuration = configuration;
|
|
56679
|
+
}
|
|
56680
|
+
set config(configuration) {
|
|
56681
|
+
this.configuration = configuration;
|
|
56682
|
+
}
|
|
56683
|
+
get basePath() {
|
|
56684
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH6;
|
|
56685
|
+
}
|
|
56686
|
+
get fetchApi() {
|
|
56687
|
+
return this.configuration.fetchApi;
|
|
56688
|
+
}
|
|
56689
|
+
get middleware() {
|
|
56690
|
+
return this.configuration.middleware || [];
|
|
56691
|
+
}
|
|
56692
|
+
get queryParamsStringify() {
|
|
56693
|
+
return this.configuration.queryParamsStringify || querystring6;
|
|
56694
|
+
}
|
|
56695
|
+
get username() {
|
|
56696
|
+
return this.configuration.username;
|
|
56697
|
+
}
|
|
56698
|
+
get password() {
|
|
56699
|
+
return this.configuration.password;
|
|
56700
|
+
}
|
|
56701
|
+
get apiKey() {
|
|
56702
|
+
const apiKey = this.configuration.apiKey;
|
|
56703
|
+
if (apiKey) {
|
|
56704
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
56705
|
+
}
|
|
56706
|
+
return;
|
|
56707
|
+
}
|
|
56708
|
+
get accessToken() {
|
|
56709
|
+
const accessToken = this.configuration.accessToken;
|
|
56710
|
+
if (accessToken) {
|
|
56711
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
56712
|
+
}
|
|
56713
|
+
return;
|
|
56714
|
+
}
|
|
56715
|
+
get headers() {
|
|
56716
|
+
return this.configuration.headers;
|
|
56717
|
+
}
|
|
56718
|
+
get credentials() {
|
|
56719
|
+
return this.configuration.credentials;
|
|
56720
|
+
}
|
|
56721
|
+
}
|
|
56722
|
+
function isBlob6(value) {
|
|
56723
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
56724
|
+
}
|
|
56725
|
+
function isFormData6(value) {
|
|
56726
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
56727
|
+
}
|
|
56728
|
+
function querystring6(params, prefix = "") {
|
|
56729
|
+
return Object.keys(params).map((key) => querystringSingleKey6(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
56730
|
+
}
|
|
56731
|
+
function querystringSingleKey6(key, value, keyPrefix = "") {
|
|
56732
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
56733
|
+
if (value instanceof Array) {
|
|
56734
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
56735
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
56736
|
+
}
|
|
56737
|
+
if (value instanceof Set) {
|
|
56738
|
+
const valueAsArray = Array.from(value);
|
|
56739
|
+
return querystringSingleKey6(key, valueAsArray, keyPrefix);
|
|
56740
|
+
}
|
|
56741
|
+
if (value instanceof Date) {
|
|
56742
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
56743
|
+
}
|
|
56744
|
+
if (value instanceof Object) {
|
|
56745
|
+
return querystring6(value, fullKey);
|
|
56746
|
+
}
|
|
56747
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
56748
|
+
}
|
|
56749
|
+
|
|
56750
|
+
class JSONApiResponse6 {
|
|
56751
|
+
raw;
|
|
56752
|
+
transformer;
|
|
56753
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
56754
|
+
this.raw = raw;
|
|
56755
|
+
this.transformer = transformer;
|
|
56756
|
+
}
|
|
56757
|
+
async value() {
|
|
56758
|
+
return this.transformer(await this.raw.json());
|
|
56759
|
+
}
|
|
56760
|
+
}
|
|
56761
|
+
|
|
56762
|
+
class VoidApiResponse5 {
|
|
56763
|
+
raw;
|
|
56764
|
+
constructor(raw) {
|
|
56765
|
+
this.raw = raw;
|
|
56766
|
+
}
|
|
56767
|
+
async value() {
|
|
56768
|
+
return;
|
|
56769
|
+
}
|
|
56770
|
+
}
|
|
56771
|
+
|
|
56772
|
+
class BlobApiResponse3 {
|
|
56773
|
+
raw;
|
|
56774
|
+
constructor(raw) {
|
|
56775
|
+
this.raw = raw;
|
|
56776
|
+
}
|
|
56777
|
+
async value() {
|
|
56778
|
+
return await this.raw.blob();
|
|
56779
|
+
}
|
|
56780
|
+
}
|
|
56781
|
+
|
|
56782
|
+
class TextApiResponse4 {
|
|
56783
|
+
raw;
|
|
56784
|
+
constructor(raw) {
|
|
56785
|
+
this.raw = raw;
|
|
56786
|
+
}
|
|
56787
|
+
async value() {
|
|
56788
|
+
return await this.raw.text();
|
|
56789
|
+
}
|
|
56790
|
+
}
|
|
56791
|
+
var BASE_PATH6, DefaultConfig6, BaseAPI6, ResponseError6, FetchError6, RequiredError6;
|
|
56792
|
+
var init_runtime2 = __esm(() => {
|
|
56793
|
+
BASE_PATH6 = "http://localhost:8086/v3/element".replace(/\/+$/, "");
|
|
56794
|
+
DefaultConfig6 = new Configuration7;
|
|
56795
|
+
BaseAPI6 = class BaseAPI6 {
|
|
56796
|
+
configuration;
|
|
56797
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
56798
|
+
middleware;
|
|
56799
|
+
constructor(configuration = DefaultConfig6) {
|
|
56800
|
+
this.configuration = configuration;
|
|
56801
|
+
this.middleware = configuration.middleware;
|
|
56802
|
+
}
|
|
56803
|
+
withMiddleware(...middlewares) {
|
|
56804
|
+
const next = this.clone();
|
|
56805
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
56806
|
+
return next;
|
|
56807
|
+
}
|
|
56808
|
+
withPreMiddleware(...preMiddlewares) {
|
|
56809
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
56810
|
+
return this.withMiddleware(...middlewares);
|
|
56811
|
+
}
|
|
56812
|
+
withPostMiddleware(...postMiddlewares) {
|
|
56813
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
56814
|
+
return this.withMiddleware(...middlewares);
|
|
56815
|
+
}
|
|
56816
|
+
isJsonMime(mime) {
|
|
56817
|
+
if (!mime) {
|
|
56818
|
+
return false;
|
|
56819
|
+
}
|
|
56820
|
+
return BaseAPI6.jsonRegex.test(mime);
|
|
56821
|
+
}
|
|
56822
|
+
async request(context, initOverrides) {
|
|
56823
|
+
const { url: url2, init } = await this.createFetchParams(context, initOverrides);
|
|
56824
|
+
const response = await this.fetchApi(url2, init);
|
|
56825
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
56826
|
+
return response;
|
|
56827
|
+
}
|
|
56828
|
+
throw new ResponseError6(response, "Response returned an error code");
|
|
56829
|
+
}
|
|
56830
|
+
async createFetchParams(context, initOverrides) {
|
|
56831
|
+
let url2 = this.configuration.basePath + context.path;
|
|
56832
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
56833
|
+
url2 += "?" + this.configuration.queryParamsStringify(context.query);
|
|
56834
|
+
}
|
|
56835
|
+
const headers2 = Object.assign({}, this.configuration.headers, context.headers);
|
|
56836
|
+
Object.keys(headers2).forEach((key) => headers2[key] === undefined ? delete headers2[key] : {});
|
|
56837
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
56838
|
+
const initParams = {
|
|
56839
|
+
method: context.method,
|
|
56840
|
+
headers: headers2,
|
|
56841
|
+
body: context.body,
|
|
56842
|
+
credentials: this.configuration.credentials
|
|
56843
|
+
};
|
|
56844
|
+
const overriddenInit = {
|
|
56845
|
+
...initParams,
|
|
56846
|
+
...await initOverrideFn({
|
|
56847
|
+
init: initParams,
|
|
56848
|
+
context
|
|
56849
|
+
})
|
|
56850
|
+
};
|
|
56851
|
+
let body;
|
|
56852
|
+
if (isFormData6(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob6(overriddenInit.body)) {
|
|
56853
|
+
body = overriddenInit.body;
|
|
56854
|
+
} else if (this.isJsonMime(headers2["Content-Type"])) {
|
|
56855
|
+
body = JSON.stringify(overriddenInit.body);
|
|
56856
|
+
} else {
|
|
56857
|
+
body = overriddenInit.body;
|
|
56858
|
+
}
|
|
56859
|
+
const init = {
|
|
56860
|
+
...overriddenInit,
|
|
56861
|
+
body
|
|
56862
|
+
};
|
|
56863
|
+
return { url: url2, init };
|
|
56864
|
+
}
|
|
56865
|
+
fetchApi = async (url2, init) => {
|
|
56866
|
+
let fetchParams = { url: url2, init };
|
|
56867
|
+
for (const middleware of this.middleware) {
|
|
56868
|
+
if (middleware.pre) {
|
|
56869
|
+
fetchParams = await middleware.pre({
|
|
56870
|
+
fetch: this.fetchApi,
|
|
56871
|
+
...fetchParams
|
|
56872
|
+
}) || fetchParams;
|
|
56873
|
+
}
|
|
56874
|
+
}
|
|
56875
|
+
let response = undefined;
|
|
56876
|
+
try {
|
|
56877
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
56878
|
+
} catch (e) {
|
|
56879
|
+
for (const middleware of this.middleware) {
|
|
56880
|
+
if (middleware.onError) {
|
|
56881
|
+
response = await middleware.onError({
|
|
56882
|
+
fetch: this.fetchApi,
|
|
56883
|
+
url: fetchParams.url,
|
|
56884
|
+
init: fetchParams.init,
|
|
56885
|
+
error: e,
|
|
56886
|
+
response: response ? response.clone() : undefined
|
|
56887
|
+
}) || response;
|
|
56888
|
+
}
|
|
56889
|
+
}
|
|
56890
|
+
if (response === undefined) {
|
|
56891
|
+
if (e instanceof Error) {
|
|
56892
|
+
throw new FetchError6(e, "The request failed and the interceptors did not return an alternative response");
|
|
56893
|
+
} else {
|
|
56894
|
+
throw e;
|
|
56895
|
+
}
|
|
56896
|
+
}
|
|
56897
|
+
}
|
|
56898
|
+
for (const middleware of this.middleware) {
|
|
56899
|
+
if (middleware.post) {
|
|
56900
|
+
response = await middleware.post({
|
|
56901
|
+
fetch: this.fetchApi,
|
|
56902
|
+
url: fetchParams.url,
|
|
56903
|
+
init: fetchParams.init,
|
|
56904
|
+
response: response.clone()
|
|
56905
|
+
}) || response;
|
|
56906
|
+
}
|
|
56907
|
+
}
|
|
56908
|
+
return response;
|
|
56909
|
+
};
|
|
56910
|
+
clone() {
|
|
56911
|
+
const constructor = this.constructor;
|
|
56912
|
+
const next = new constructor(this.configuration);
|
|
56913
|
+
next.middleware = this.middleware.slice();
|
|
56914
|
+
return next;
|
|
56915
|
+
}
|
|
56916
|
+
};
|
|
56917
|
+
ResponseError6 = class ResponseError6 extends Error {
|
|
56918
|
+
response;
|
|
56919
|
+
name = "ResponseError";
|
|
56920
|
+
constructor(response, msg) {
|
|
56921
|
+
super(msg);
|
|
56922
|
+
this.response = response;
|
|
56923
|
+
}
|
|
56924
|
+
};
|
|
56925
|
+
FetchError6 = class FetchError6 extends Error {
|
|
56926
|
+
cause;
|
|
56927
|
+
name = "FetchError";
|
|
56928
|
+
constructor(cause, msg) {
|
|
56929
|
+
super(msg);
|
|
56930
|
+
this.cause = cause;
|
|
56931
|
+
}
|
|
56932
|
+
};
|
|
56933
|
+
RequiredError6 = class RequiredError6 extends Error {
|
|
56934
|
+
field;
|
|
56935
|
+
name = "RequiredError";
|
|
56936
|
+
constructor(field, msg) {
|
|
56937
|
+
super(msg);
|
|
56938
|
+
this.field = field;
|
|
56939
|
+
}
|
|
56940
|
+
};
|
|
56941
|
+
});
|
|
56942
|
+
|
|
56943
|
+
// ../integrationservice-sdk/package.json
|
|
56944
|
+
var package_default5;
|
|
56945
|
+
var init_package = __esm(() => {
|
|
56946
|
+
package_default5 = {
|
|
56947
|
+
name: "@uipath/integrationservice-sdk",
|
|
56948
|
+
license: "MIT",
|
|
56949
|
+
version: "1.2.0",
|
|
56950
|
+
repository: {
|
|
56951
|
+
type: "git",
|
|
56952
|
+
url: "https://github.com/UiPath/cli.git",
|
|
56953
|
+
directory: "packages/integrationservice-sdk"
|
|
56954
|
+
},
|
|
56955
|
+
publishConfig: {
|
|
56956
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
56957
|
+
},
|
|
56958
|
+
keywords: [
|
|
56959
|
+
"uipath",
|
|
56960
|
+
"integrationservice",
|
|
56961
|
+
"sdk"
|
|
56962
|
+
],
|
|
56963
|
+
type: "module",
|
|
56964
|
+
main: "./dist/index.js",
|
|
56965
|
+
types: "./dist/src/index.d.ts",
|
|
56966
|
+
exports: {
|
|
56967
|
+
".": {
|
|
56968
|
+
types: "./dist/src/index.d.ts",
|
|
56969
|
+
default: "./dist/index.js"
|
|
56970
|
+
}
|
|
56971
|
+
},
|
|
56972
|
+
files: [
|
|
56973
|
+
"dist"
|
|
56974
|
+
],
|
|
56975
|
+
scripts: {
|
|
56976
|
+
build: "bun build ./src/index.ts --outdir dist --format esm --target node && tsc -p tsconfig.build.json --noCheck",
|
|
56977
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
56978
|
+
lint: "biome check .",
|
|
56979
|
+
test: "vitest run",
|
|
56980
|
+
"test:coverage": "vitest run --coverage"
|
|
56981
|
+
},
|
|
56982
|
+
devDependencies: {
|
|
56983
|
+
"@uipath/auth": "workspace:*",
|
|
56984
|
+
"@uipath/common": "workspace:*",
|
|
56985
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
56986
|
+
"@types/node": "^25.5.2",
|
|
56987
|
+
typescript: "^6.0.2",
|
|
56988
|
+
uuid: "^14.0.0"
|
|
56989
|
+
}
|
|
56990
|
+
};
|
|
56991
|
+
});
|
|
56992
|
+
|
|
56993
|
+
// ../integrationservice-sdk/src/user-agent.ts
|
|
56994
|
+
var SDK_USER_AGENT4;
|
|
56995
|
+
var init_user_agent = __esm(() => {
|
|
56996
|
+
init_sdk_user_agent();
|
|
56997
|
+
init_runtime();
|
|
56998
|
+
init_runtime2();
|
|
56999
|
+
init_package();
|
|
57000
|
+
SDK_USER_AGENT4 = getSdkUserAgentToken(package_default5);
|
|
57001
|
+
installSdkUserAgentHeader(BaseAPI5, SDK_USER_AGENT4);
|
|
57002
|
+
installSdkUserAgentHeader(BaseAPI6, SDK_USER_AGENT4);
|
|
57003
|
+
});
|
|
57004
|
+
|
|
56199
57005
|
// ../integrationservice-sdk/generated/connections/src/models/AccessTokenResponse.ts
|
|
56200
57006
|
function instanceOfAccessTokenResponse(value) {
|
|
56201
57007
|
return true;
|
|
@@ -58150,10 +58956,10 @@ var ConnectionOperationsApi;
|
|
|
58150
58956
|
var init_ConnectionOperationsApi = __esm(() => {
|
|
58151
58957
|
init_runtime();
|
|
58152
58958
|
init_models();
|
|
58153
|
-
ConnectionOperationsApi = class ConnectionOperationsApi extends
|
|
58959
|
+
ConnectionOperationsApi = class ConnectionOperationsApi extends BaseAPI5 {
|
|
58154
58960
|
async apiV1ConnectionsConnectionIdOperationsGetRaw(requestParameters, initOverrides) {
|
|
58155
58961
|
if (requestParameters["connectionId"] == null) {
|
|
58156
|
-
throw new
|
|
58962
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdOperationsGet().');
|
|
58157
58963
|
}
|
|
58158
58964
|
const queryParameters = {};
|
|
58159
58965
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58175,7 +58981,7 @@ var init_ConnectionOperationsApi = __esm(() => {
|
|
|
58175
58981
|
headers: headerParameters,
|
|
58176
58982
|
query: queryParameters
|
|
58177
58983
|
}, initOverrides);
|
|
58178
|
-
return new
|
|
58984
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(EventOperationFromJSON));
|
|
58179
58985
|
}
|
|
58180
58986
|
async apiV1ConnectionsConnectionIdOperationsGet(requestParameters, initOverrides) {
|
|
58181
58987
|
const response = await this.apiV1ConnectionsConnectionIdOperationsGetRaw(requestParameters, initOverrides);
|
|
@@ -58183,13 +58989,13 @@ var init_ConnectionOperationsApi = __esm(() => {
|
|
|
58183
58989
|
}
|
|
58184
58990
|
async apiV1ConnectionsConnectionIdOperationsOperationNameObjectsObjectNameEventFieldsGetRaw(requestParameters, initOverrides) {
|
|
58185
58991
|
if (requestParameters["connectionId"] == null) {
|
|
58186
|
-
throw new
|
|
58992
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdOperationsOperationNameObjectsObjectNameEventFieldsGet().');
|
|
58187
58993
|
}
|
|
58188
58994
|
if (requestParameters["operationName"] == null) {
|
|
58189
|
-
throw new
|
|
58995
|
+
throw new RequiredError5("operationName", 'Required parameter "operationName" was null or undefined when calling apiV1ConnectionsConnectionIdOperationsOperationNameObjectsObjectNameEventFieldsGet().');
|
|
58190
58996
|
}
|
|
58191
58997
|
if (requestParameters["objectName"] == null) {
|
|
58192
|
-
throw new
|
|
58998
|
+
throw new RequiredError5("objectName", 'Required parameter "objectName" was null or undefined when calling apiV1ConnectionsConnectionIdOperationsOperationNameObjectsObjectNameEventFieldsGet().');
|
|
58193
58999
|
}
|
|
58194
59000
|
const queryParameters = {};
|
|
58195
59001
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58213,7 +59019,7 @@ var init_ConnectionOperationsApi = __esm(() => {
|
|
|
58213
59019
|
headers: headerParameters,
|
|
58214
59020
|
query: queryParameters
|
|
58215
59021
|
}, initOverrides);
|
|
58216
|
-
return new
|
|
59022
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(OperationObjectEventMetadataFieldFromJSON));
|
|
58217
59023
|
}
|
|
58218
59024
|
async apiV1ConnectionsConnectionIdOperationsOperationNameObjectsObjectNameEventFieldsGet(requestParameters, initOverrides) {
|
|
58219
59025
|
const response = await this.apiV1ConnectionsConnectionIdOperationsOperationNameObjectsObjectNameEventFieldsGetRaw(requestParameters, initOverrides);
|
|
@@ -58221,10 +59027,10 @@ var init_ConnectionOperationsApi = __esm(() => {
|
|
|
58221
59027
|
}
|
|
58222
59028
|
async apiV1ConnectionsConnectionIdOperationsOperationObjectsGetRaw(requestParameters, initOverrides) {
|
|
58223
59029
|
if (requestParameters["connectionId"] == null) {
|
|
58224
|
-
throw new
|
|
59030
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdOperationsOperationObjectsGet().');
|
|
58225
59031
|
}
|
|
58226
59032
|
if (requestParameters["operation"] == null) {
|
|
58227
|
-
throw new
|
|
59033
|
+
throw new RequiredError5("operation", 'Required parameter "operation" was null or undefined when calling apiV1ConnectionsConnectionIdOperationsOperationObjectsGet().');
|
|
58228
59034
|
}
|
|
58229
59035
|
const queryParameters = {};
|
|
58230
59036
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58247,7 +59053,7 @@ var init_ConnectionOperationsApi = __esm(() => {
|
|
|
58247
59053
|
headers: headerParameters,
|
|
58248
59054
|
query: queryParameters
|
|
58249
59055
|
}, initOverrides);
|
|
58250
|
-
return new
|
|
59056
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(OperationObjectFromJSON));
|
|
58251
59057
|
}
|
|
58252
59058
|
async apiV1ConnectionsConnectionIdOperationsOperationObjectsGet(requestParameters, initOverrides) {
|
|
58253
59059
|
const response = await this.apiV1ConnectionsConnectionIdOperationsOperationObjectsGetRaw(requestParameters, initOverrides);
|
|
@@ -58261,7 +59067,7 @@ var ConnectionsApi;
|
|
|
58261
59067
|
var init_ConnectionsApi = __esm(() => {
|
|
58262
59068
|
init_runtime();
|
|
58263
59069
|
init_models();
|
|
58264
|
-
ConnectionsApi = class ConnectionsApi extends
|
|
59070
|
+
ConnectionsApi = class ConnectionsApi extends BaseAPI5 {
|
|
58265
59071
|
async apiV1ConnectionsBatchPostRaw(requestParameters, initOverrides) {
|
|
58266
59072
|
const queryParameters = {};
|
|
58267
59073
|
const headerParameters = {};
|
|
@@ -58281,7 +59087,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58281
59087
|
query: queryParameters,
|
|
58282
59088
|
body: RetrieveBulkConnectionRequestToJSON(requestParameters["retrieveBulkConnectionRequest"])
|
|
58283
59089
|
}, initOverrides);
|
|
58284
|
-
return new
|
|
59090
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(ConnectionByIdResponseFromJSON));
|
|
58285
59091
|
}
|
|
58286
59092
|
async apiV1ConnectionsBatchPost(requestParameters = {}, initOverrides) {
|
|
58287
59093
|
const response = await this.apiV1ConnectionsBatchPostRaw(requestParameters, initOverrides);
|
|
@@ -58289,7 +59095,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58289
59095
|
}
|
|
58290
59096
|
async apiV1ConnectionsConnectionIdAsyncPostRaw(requestParameters, initOverrides) {
|
|
58291
59097
|
if (requestParameters["connectionId"] == null) {
|
|
58292
|
-
throw new
|
|
59098
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdAsyncPost().');
|
|
58293
59099
|
}
|
|
58294
59100
|
const queryParameters = {};
|
|
58295
59101
|
const headerParameters = {};
|
|
@@ -58317,7 +59123,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58317
59123
|
}
|
|
58318
59124
|
async apiV1ConnectionsConnectionIdAuthPostRaw(requestParameters, initOverrides) {
|
|
58319
59125
|
if (requestParameters["connectionId"] == null) {
|
|
58320
|
-
throw new
|
|
59126
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdAuthPost().');
|
|
58321
59127
|
}
|
|
58322
59128
|
const queryParameters = {};
|
|
58323
59129
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58339,7 +59145,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58339
59145
|
headers: headerParameters,
|
|
58340
59146
|
query: queryParameters
|
|
58341
59147
|
}, initOverrides);
|
|
58342
|
-
return new
|
|
59148
|
+
return new JSONApiResponse5(response, (jsonValue) => AuthSessionResponseFromJSON(jsonValue));
|
|
58343
59149
|
}
|
|
58344
59150
|
async apiV1ConnectionsConnectionIdAuthPost(requestParameters, initOverrides) {
|
|
58345
59151
|
const response = await this.apiV1ConnectionsConnectionIdAuthPostRaw(requestParameters, initOverrides);
|
|
@@ -58347,7 +59153,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58347
59153
|
}
|
|
58348
59154
|
async apiV1ConnectionsConnectionIdDeleteRaw(requestParameters, initOverrides) {
|
|
58349
59155
|
if (requestParameters["connectionId"] == null) {
|
|
58350
|
-
throw new
|
|
59156
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdDelete().');
|
|
58351
59157
|
}
|
|
58352
59158
|
const queryParameters = {};
|
|
58353
59159
|
const headerParameters = {};
|
|
@@ -58373,13 +59179,13 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58373
59179
|
}
|
|
58374
59180
|
async apiV1ConnectionsConnectionIdEventsEventIdTriggerActionsGetRaw(requestParameters, initOverrides) {
|
|
58375
59181
|
if (requestParameters["connectionId"] == null) {
|
|
58376
|
-
throw new
|
|
59182
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdEventsEventIdTriggerActionsGet().');
|
|
58377
59183
|
}
|
|
58378
59184
|
if (requestParameters["connectionEventId"] == null) {
|
|
58379
|
-
throw new
|
|
59185
|
+
throw new RequiredError5("connectionEventId", 'Required parameter "connectionEventId" was null or undefined when calling apiV1ConnectionsConnectionIdEventsEventIdTriggerActionsGet().');
|
|
58380
59186
|
}
|
|
58381
59187
|
if (requestParameters["eventId"] == null) {
|
|
58382
|
-
throw new
|
|
59188
|
+
throw new RequiredError5("eventId", 'Required parameter "eventId" was null or undefined when calling apiV1ConnectionsConnectionIdEventsEventIdTriggerActionsGet().');
|
|
58383
59189
|
}
|
|
58384
59190
|
const queryParameters = {};
|
|
58385
59191
|
const headerParameters = {};
|
|
@@ -58400,7 +59206,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58400
59206
|
headers: headerParameters,
|
|
58401
59207
|
query: queryParameters
|
|
58402
59208
|
}, initOverrides);
|
|
58403
|
-
return new
|
|
59209
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(GetTriggerActionResponseFromJSON));
|
|
58404
59210
|
}
|
|
58405
59211
|
async apiV1ConnectionsConnectionIdEventsEventIdTriggerActionsGet(requestParameters, initOverrides) {
|
|
58406
59212
|
const response = await this.apiV1ConnectionsConnectionIdEventsEventIdTriggerActionsGetRaw(requestParameters, initOverrides);
|
|
@@ -58408,7 +59214,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58408
59214
|
}
|
|
58409
59215
|
async apiV1ConnectionsConnectionIdGetRaw(requestParameters, initOverrides) {
|
|
58410
59216
|
if (requestParameters["connectionId"] == null) {
|
|
58411
|
-
throw new
|
|
59217
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdGet().');
|
|
58412
59218
|
}
|
|
58413
59219
|
const queryParameters = {};
|
|
58414
59220
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58433,7 +59239,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58433
59239
|
headers: headerParameters,
|
|
58434
59240
|
query: queryParameters
|
|
58435
59241
|
}, initOverrides);
|
|
58436
|
-
return new
|
|
59242
|
+
return new JSONApiResponse5(response, (jsonValue) => GetConnectionResponseFromJSON(jsonValue));
|
|
58437
59243
|
}
|
|
58438
59244
|
async apiV1ConnectionsConnectionIdGet(requestParameters, initOverrides) {
|
|
58439
59245
|
const response = await this.apiV1ConnectionsConnectionIdGetRaw(requestParameters, initOverrides);
|
|
@@ -58441,10 +59247,10 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58441
59247
|
}
|
|
58442
59248
|
async apiV1ConnectionsConnectionIdObjectObjectNameFieldsGetRaw(requestParameters, initOverrides) {
|
|
58443
59249
|
if (requestParameters["connectionId"] == null) {
|
|
58444
|
-
throw new
|
|
59250
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdObjectObjectNameFieldsGet().');
|
|
58445
59251
|
}
|
|
58446
59252
|
if (requestParameters["objectName"] == null) {
|
|
58447
|
-
throw new
|
|
59253
|
+
throw new RequiredError5("objectName", 'Required parameter "objectName" was null or undefined when calling apiV1ConnectionsConnectionIdObjectObjectNameFieldsGet().');
|
|
58448
59254
|
}
|
|
58449
59255
|
const queryParameters = {};
|
|
58450
59256
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58467,7 +59273,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58467
59273
|
headers: headerParameters,
|
|
58468
59274
|
query: queryParameters
|
|
58469
59275
|
}, initOverrides);
|
|
58470
|
-
return new
|
|
59276
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(ObjectFieldFromJSON));
|
|
58471
59277
|
}
|
|
58472
59278
|
async apiV1ConnectionsConnectionIdObjectObjectNameFieldsGet(requestParameters, initOverrides) {
|
|
58473
59279
|
const response = await this.apiV1ConnectionsConnectionIdObjectObjectNameFieldsGetRaw(requestParameters, initOverrides);
|
|
@@ -58475,7 +59281,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58475
59281
|
}
|
|
58476
59282
|
async apiV1ConnectionsConnectionIdPingGetRaw(requestParameters, initOverrides) {
|
|
58477
59283
|
if (requestParameters["connectionId"] == null) {
|
|
58478
|
-
throw new
|
|
59284
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdPingGet().');
|
|
58479
59285
|
}
|
|
58480
59286
|
const queryParameters = {};
|
|
58481
59287
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58500,7 +59306,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58500
59306
|
headers: headerParameters,
|
|
58501
59307
|
query: queryParameters
|
|
58502
59308
|
}, initOverrides);
|
|
58503
|
-
return new
|
|
59309
|
+
return new JSONApiResponse5(response, (jsonValue) => GetConnectionStatusResponseFromJSON(jsonValue));
|
|
58504
59310
|
}
|
|
58505
59311
|
async apiV1ConnectionsConnectionIdPingGet(requestParameters, initOverrides) {
|
|
58506
59312
|
const response = await this.apiV1ConnectionsConnectionIdPingGetRaw(requestParameters, initOverrides);
|
|
@@ -58508,7 +59314,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58508
59314
|
}
|
|
58509
59315
|
async apiV1ConnectionsConnectionIdRenamePatchRaw(requestParameters, initOverrides) {
|
|
58510
59316
|
if (requestParameters["connectionId"] == null) {
|
|
58511
|
-
throw new
|
|
59317
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdRenamePatch().');
|
|
58512
59318
|
}
|
|
58513
59319
|
const queryParameters = {};
|
|
58514
59320
|
const headerParameters = {};
|
|
@@ -58536,7 +59342,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58536
59342
|
}
|
|
58537
59343
|
async apiV1ConnectionsConnectionIdSetDefaultPatchRaw(requestParameters, initOverrides) {
|
|
58538
59344
|
if (requestParameters["connectionId"] == null) {
|
|
58539
|
-
throw new
|
|
59345
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdSetDefaultPatch().');
|
|
58540
59346
|
}
|
|
58541
59347
|
const queryParameters = {};
|
|
58542
59348
|
const headerParameters = {};
|
|
@@ -58562,7 +59368,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58562
59368
|
}
|
|
58563
59369
|
async apiV1ConnectionsConnectionIdTokenGetRaw(requestParameters, initOverrides) {
|
|
58564
59370
|
if (requestParameters["connectionId"] == null) {
|
|
58565
|
-
throw new
|
|
59371
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdTokenGet().');
|
|
58566
59372
|
}
|
|
58567
59373
|
const queryParameters = {};
|
|
58568
59374
|
if (requestParameters["tokenType"] != null) {
|
|
@@ -58584,7 +59390,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58584
59390
|
headers: headerParameters,
|
|
58585
59391
|
query: queryParameters
|
|
58586
59392
|
}, initOverrides);
|
|
58587
|
-
return new
|
|
59393
|
+
return new JSONApiResponse5(response, (jsonValue) => AccessTokenResponseFromJSON(jsonValue));
|
|
58588
59394
|
}
|
|
58589
59395
|
async apiV1ConnectionsConnectionIdTokenGet(requestParameters, initOverrides) {
|
|
58590
59396
|
const response = await this.apiV1ConnectionsConnectionIdTokenGetRaw(requestParameters, initOverrides);
|
|
@@ -58592,7 +59398,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58592
59398
|
}
|
|
58593
59399
|
async apiV1ConnectionsConnectionIdTriggerActionsGetRaw(requestParameters, initOverrides) {
|
|
58594
59400
|
if (requestParameters["connectionId"] == null) {
|
|
58595
|
-
throw new
|
|
59401
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdTriggerActionsGet().');
|
|
58596
59402
|
}
|
|
58597
59403
|
const queryParameters = {};
|
|
58598
59404
|
const headerParameters = {};
|
|
@@ -58611,7 +59417,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58611
59417
|
headers: headerParameters,
|
|
58612
59418
|
query: queryParameters
|
|
58613
59419
|
}, initOverrides);
|
|
58614
|
-
return new
|
|
59420
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(GetTriggerActionResponseFromJSON));
|
|
58615
59421
|
}
|
|
58616
59422
|
async apiV1ConnectionsConnectionIdTriggerActionsGet(requestParameters, initOverrides) {
|
|
58617
59423
|
const response = await this.apiV1ConnectionsConnectionIdTriggerActionsGetRaw(requestParameters, initOverrides);
|
|
@@ -58619,7 +59425,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58619
59425
|
}
|
|
58620
59426
|
async apiV1ConnectionsConnectionIdTriggersGetRaw(requestParameters, initOverrides) {
|
|
58621
59427
|
if (requestParameters["connectionId"] == null) {
|
|
58622
|
-
throw new
|
|
59428
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdTriggersGet().');
|
|
58623
59429
|
}
|
|
58624
59430
|
const queryParameters = {};
|
|
58625
59431
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58641,7 +59447,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58641
59447
|
headers: headerParameters,
|
|
58642
59448
|
query: queryParameters
|
|
58643
59449
|
}, initOverrides);
|
|
58644
|
-
return new
|
|
59450
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(TriggerFromJSON));
|
|
58645
59451
|
}
|
|
58646
59452
|
async apiV1ConnectionsConnectionIdTriggersGet(requestParameters, initOverrides) {
|
|
58647
59453
|
const response = await this.apiV1ConnectionsConnectionIdTriggersGetRaw(requestParameters, initOverrides);
|
|
@@ -58649,7 +59455,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58649
59455
|
}
|
|
58650
59456
|
async apiV1ConnectionsConnectionIdUpdatePollingIntervalPatchRaw(requestParameters, initOverrides) {
|
|
58651
59457
|
if (requestParameters["connectionId"] == null) {
|
|
58652
|
-
throw new
|
|
59458
|
+
throw new RequiredError5("connectionId", 'Required parameter "connectionId" was null or undefined when calling apiV1ConnectionsConnectionIdUpdatePollingIntervalPatch().');
|
|
58653
59459
|
}
|
|
58654
59460
|
const queryParameters = {};
|
|
58655
59461
|
const headerParameters = {};
|
|
@@ -58694,7 +59500,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58694
59500
|
query: queryParameters,
|
|
58695
59501
|
body: RetrieveBulkConnectionRequestToJSON(requestParameters["retrieveBulkConnectionRequest"])
|
|
58696
59502
|
}, initOverrides);
|
|
58697
|
-
return new
|
|
59503
|
+
return new JSONApiResponse5(response, (jsonValue) => mapValues2(jsonValue, ConnectionResponseFromJSON));
|
|
58698
59504
|
}
|
|
58699
59505
|
async apiV1ConnectionsExportPost(requestParameters = {}, initOverrides) {
|
|
58700
59506
|
const response = await this.apiV1ConnectionsExportPostRaw(requestParameters, initOverrides);
|
|
@@ -58738,7 +59544,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58738
59544
|
headers: headerParameters,
|
|
58739
59545
|
query: queryParameters
|
|
58740
59546
|
}, initOverrides);
|
|
58741
|
-
return new
|
|
59547
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(GetConnectionResponseFromJSON));
|
|
58742
59548
|
}
|
|
58743
59549
|
async apiV1ConnectionsGet(requestParameters = {}, initOverrides) {
|
|
58744
59550
|
const response = await this.apiV1ConnectionsGetRaw(requestParameters, initOverrides);
|
|
@@ -58763,7 +59569,7 @@ var init_ConnectionsApi = __esm(() => {
|
|
|
58763
59569
|
query: queryParameters,
|
|
58764
59570
|
body: CreateConnectionRequestToJSON(requestParameters["createConnectionRequest"])
|
|
58765
59571
|
}, initOverrides);
|
|
58766
|
-
return new
|
|
59572
|
+
return new JSONApiResponse5(response, (jsonValue) => AuthSessionResponseFromJSON(jsonValue));
|
|
58767
59573
|
}
|
|
58768
59574
|
async apiV1ConnectionsPost(requestParameters = {}, initOverrides) {
|
|
58769
59575
|
const response = await this.apiV1ConnectionsPostRaw(requestParameters, initOverrides);
|
|
@@ -58777,7 +59583,7 @@ var ConnectorsApi;
|
|
|
58777
59583
|
var init_ConnectorsApi = __esm(() => {
|
|
58778
59584
|
init_runtime();
|
|
58779
59585
|
init_models();
|
|
58780
|
-
ConnectorsApi = class ConnectorsApi extends
|
|
59586
|
+
ConnectorsApi = class ConnectorsApi extends BaseAPI5 {
|
|
58781
59587
|
async apiV1ConnectorsAllGetRaw(requestParameters, initOverrides) {
|
|
58782
59588
|
const queryParameters = {};
|
|
58783
59589
|
if (requestParameters["hasHttpRequest"] != null) {
|
|
@@ -58798,7 +59604,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58798
59604
|
headers: headerParameters,
|
|
58799
59605
|
query: queryParameters
|
|
58800
59606
|
}, initOverrides);
|
|
58801
|
-
return new
|
|
59607
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(GetConnectorResponseFromJSON));
|
|
58802
59608
|
}
|
|
58803
59609
|
async apiV1ConnectorsAllGet(requestParameters = {}, initOverrides) {
|
|
58804
59610
|
const response = await this.apiV1ConnectorsAllGetRaw(requestParameters, initOverrides);
|
|
@@ -58824,7 +59630,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58824
59630
|
headers: headerParameters,
|
|
58825
59631
|
query: queryParameters
|
|
58826
59632
|
}, initOverrides);
|
|
58827
|
-
return new
|
|
59633
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(GetConnectorResponseFromJSON));
|
|
58828
59634
|
}
|
|
58829
59635
|
async apiV1ConnectorsGet(requestParameters = {}, initOverrides) {
|
|
58830
59636
|
const response = await this.apiV1ConnectorsGetRaw(requestParameters, initOverrides);
|
|
@@ -58832,7 +59638,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58832
59638
|
}
|
|
58833
59639
|
async apiV1ConnectorsKeyOrIdConnectionGetRaw(requestParameters, initOverrides) {
|
|
58834
59640
|
if (requestParameters["keyOrId"] == null) {
|
|
58835
|
-
throw new
|
|
59641
|
+
throw new RequiredError5("keyOrId", 'Required parameter "keyOrId" was null or undefined when calling apiV1ConnectorsKeyOrIdConnectionGet().');
|
|
58836
59642
|
}
|
|
58837
59643
|
const queryParameters = {};
|
|
58838
59644
|
const headerParameters = {};
|
|
@@ -58851,7 +59657,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58851
59657
|
headers: headerParameters,
|
|
58852
59658
|
query: queryParameters
|
|
58853
59659
|
}, initOverrides);
|
|
58854
|
-
return new
|
|
59660
|
+
return new JSONApiResponse5(response, (jsonValue) => GetConnectionResponseFromJSON(jsonValue));
|
|
58855
59661
|
}
|
|
58856
59662
|
async apiV1ConnectorsKeyOrIdConnectionGet(requestParameters, initOverrides) {
|
|
58857
59663
|
const response = await this.apiV1ConnectorsKeyOrIdConnectionGetRaw(requestParameters, initOverrides);
|
|
@@ -58859,7 +59665,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58859
59665
|
}
|
|
58860
59666
|
async apiV1ConnectorsKeyOrIdConnectionsGetRaw(requestParameters, initOverrides) {
|
|
58861
59667
|
if (requestParameters["keyOrId"] == null) {
|
|
58862
|
-
throw new
|
|
59668
|
+
throw new RequiredError5("keyOrId", 'Required parameter "keyOrId" was null or undefined when calling apiV1ConnectorsKeyOrIdConnectionsGet().');
|
|
58863
59669
|
}
|
|
58864
59670
|
const queryParameters = {};
|
|
58865
59671
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -58896,7 +59702,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58896
59702
|
headers: headerParameters,
|
|
58897
59703
|
query: queryParameters
|
|
58898
59704
|
}, initOverrides);
|
|
58899
|
-
return new
|
|
59705
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(GetConnectionResponseFromJSON));
|
|
58900
59706
|
}
|
|
58901
59707
|
async apiV1ConnectorsKeyOrIdConnectionsGet(requestParameters, initOverrides) {
|
|
58902
59708
|
const response = await this.apiV1ConnectorsKeyOrIdConnectionsGetRaw(requestParameters, initOverrides);
|
|
@@ -58904,7 +59710,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58904
59710
|
}
|
|
58905
59711
|
async apiV1ConnectorsKeyOrIdConnectionsPostRaw(requestParameters, initOverrides) {
|
|
58906
59712
|
if (requestParameters["keyOrId"] == null) {
|
|
58907
|
-
throw new
|
|
59713
|
+
throw new RequiredError5("keyOrId", 'Required parameter "keyOrId" was null or undefined when calling apiV1ConnectorsKeyOrIdConnectionsPost().');
|
|
58908
59714
|
}
|
|
58909
59715
|
const queryParameters = {};
|
|
58910
59716
|
const headerParameters = {};
|
|
@@ -58925,7 +59731,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58925
59731
|
query: queryParameters,
|
|
58926
59732
|
body: CreateConnectionRequestToJSON(requestParameters["createConnectionRequest"])
|
|
58927
59733
|
}, initOverrides);
|
|
58928
|
-
return new
|
|
59734
|
+
return new JSONApiResponse5(response, (jsonValue) => AuthSessionResponseFromJSON(jsonValue));
|
|
58929
59735
|
}
|
|
58930
59736
|
async apiV1ConnectorsKeyOrIdConnectionsPost(requestParameters, initOverrides) {
|
|
58931
59737
|
const response = await this.apiV1ConnectorsKeyOrIdConnectionsPostRaw(requestParameters, initOverrides);
|
|
@@ -58933,7 +59739,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58933
59739
|
}
|
|
58934
59740
|
async apiV1ConnectorsKeyOrIdGetRaw(requestParameters, initOverrides) {
|
|
58935
59741
|
if (requestParameters["keyOrId"] == null) {
|
|
58936
|
-
throw new
|
|
59742
|
+
throw new RequiredError5("keyOrId", 'Required parameter "keyOrId" was null or undefined when calling apiV1ConnectorsKeyOrIdGet().');
|
|
58937
59743
|
}
|
|
58938
59744
|
const queryParameters = {};
|
|
58939
59745
|
const headerParameters = {};
|
|
@@ -58952,7 +59758,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58952
59758
|
headers: headerParameters,
|
|
58953
59759
|
query: queryParameters
|
|
58954
59760
|
}, initOverrides);
|
|
58955
|
-
return new
|
|
59761
|
+
return new JSONApiResponse5(response, (jsonValue) => GetConnectorResponseFromJSON(jsonValue));
|
|
58956
59762
|
}
|
|
58957
59763
|
async apiV1ConnectorsKeyOrIdGet(requestParameters, initOverrides) {
|
|
58958
59764
|
const response = await this.apiV1ConnectorsKeyOrIdGetRaw(requestParameters, initOverrides);
|
|
@@ -58960,7 +59766,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58960
59766
|
}
|
|
58961
59767
|
async apiV1ConnectorsKeyOrIdMetadataGetRaw(requestParameters, initOverrides) {
|
|
58962
59768
|
if (requestParameters["keyOrId"] == null) {
|
|
58963
|
-
throw new
|
|
59769
|
+
throw new RequiredError5("keyOrId", 'Required parameter "keyOrId" was null or undefined when calling apiV1ConnectorsKeyOrIdMetadataGet().');
|
|
58964
59770
|
}
|
|
58965
59771
|
const queryParameters = {};
|
|
58966
59772
|
const headerParameters = {};
|
|
@@ -58979,7 +59785,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58979
59785
|
headers: headerParameters,
|
|
58980
59786
|
query: queryParameters
|
|
58981
59787
|
}, initOverrides);
|
|
58982
|
-
return new
|
|
59788
|
+
return new JSONApiResponse5(response, (jsonValue) => ElementMetadataFromJSON(jsonValue));
|
|
58983
59789
|
}
|
|
58984
59790
|
async apiV1ConnectorsKeyOrIdMetadataGet(requestParameters, initOverrides) {
|
|
58985
59791
|
const response = await this.apiV1ConnectorsKeyOrIdMetadataGetRaw(requestParameters, initOverrides);
|
|
@@ -58987,7 +59793,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
58987
59793
|
}
|
|
58988
59794
|
async apiV1ConnectorsKeyOrIdTriggersGetRaw(requestParameters, initOverrides) {
|
|
58989
59795
|
if (requestParameters["keyOrId"] == null) {
|
|
58990
|
-
throw new
|
|
59796
|
+
throw new RequiredError5("keyOrId", 'Required parameter "keyOrId" was null or undefined when calling apiV1ConnectorsKeyOrIdTriggersGet().');
|
|
58991
59797
|
}
|
|
58992
59798
|
const queryParameters = {};
|
|
58993
59799
|
if (requestParameters["allFolders"] != null) {
|
|
@@ -59009,7 +59815,7 @@ var init_ConnectorsApi = __esm(() => {
|
|
|
59009
59815
|
headers: headerParameters,
|
|
59010
59816
|
query: queryParameters
|
|
59011
59817
|
}, initOverrides);
|
|
59012
|
-
return new
|
|
59818
|
+
return new JSONApiResponse5(response, (jsonValue) => jsonValue.map(TriggerFromJSON));
|
|
59013
59819
|
}
|
|
59014
59820
|
async apiV1ConnectorsKeyOrIdTriggersGet(requestParameters, initOverrides) {
|
|
59015
59821
|
const response = await this.apiV1ConnectorsKeyOrIdTriggersGetRaw(requestParameters, initOverrides);
|
|
@@ -59023,10 +59829,10 @@ var SessionsApi2;
|
|
|
59023
59829
|
var init_SessionsApi = __esm(() => {
|
|
59024
59830
|
init_runtime();
|
|
59025
59831
|
init_models();
|
|
59026
|
-
SessionsApi2 = class SessionsApi2 extends
|
|
59832
|
+
SessionsApi2 = class SessionsApi2 extends BaseAPI5 {
|
|
59027
59833
|
async apiV1SessionsSessionIdGetRaw(requestParameters, initOverrides) {
|
|
59028
59834
|
if (requestParameters["sessionId"] == null) {
|
|
59029
|
-
throw new
|
|
59835
|
+
throw new RequiredError5("sessionId", 'Required parameter "sessionId" was null or undefined when calling apiV1SessionsSessionIdGet().');
|
|
59030
59836
|
}
|
|
59031
59837
|
const queryParameters = {};
|
|
59032
59838
|
const headerParameters = {};
|
|
@@ -59045,7 +59851,7 @@ var init_SessionsApi = __esm(() => {
|
|
|
59045
59851
|
headers: headerParameters,
|
|
59046
59852
|
query: queryParameters
|
|
59047
59853
|
}, initOverrides);
|
|
59048
|
-
return new
|
|
59854
|
+
return new JSONApiResponse5(response, (jsonValue) => SessionStatusResponseFromJSON(jsonValue));
|
|
59049
59855
|
}
|
|
59050
59856
|
async apiV1SessionsSessionIdGet(requestParameters, initOverrides) {
|
|
59051
59857
|
const response = await this.apiV1SessionsSessionIdGetRaw(requestParameters, initOverrides);
|
|
@@ -59069,275 +59875,6 @@ var init_src4 = __esm(() => {
|
|
|
59069
59875
|
init_models();
|
|
59070
59876
|
});
|
|
59071
59877
|
|
|
59072
|
-
// ../integrationservice-sdk/generated/elements/src/runtime.ts
|
|
59073
|
-
class Configuration6 {
|
|
59074
|
-
configuration;
|
|
59075
|
-
constructor(configuration = {}) {
|
|
59076
|
-
this.configuration = configuration;
|
|
59077
|
-
}
|
|
59078
|
-
set config(configuration) {
|
|
59079
|
-
this.configuration = configuration;
|
|
59080
|
-
}
|
|
59081
|
-
get basePath() {
|
|
59082
|
-
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH5;
|
|
59083
|
-
}
|
|
59084
|
-
get fetchApi() {
|
|
59085
|
-
return this.configuration.fetchApi;
|
|
59086
|
-
}
|
|
59087
|
-
get middleware() {
|
|
59088
|
-
return this.configuration.middleware || [];
|
|
59089
|
-
}
|
|
59090
|
-
get queryParamsStringify() {
|
|
59091
|
-
return this.configuration.queryParamsStringify || querystring5;
|
|
59092
|
-
}
|
|
59093
|
-
get username() {
|
|
59094
|
-
return this.configuration.username;
|
|
59095
|
-
}
|
|
59096
|
-
get password() {
|
|
59097
|
-
return this.configuration.password;
|
|
59098
|
-
}
|
|
59099
|
-
get apiKey() {
|
|
59100
|
-
const apiKey = this.configuration.apiKey;
|
|
59101
|
-
if (apiKey) {
|
|
59102
|
-
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
59103
|
-
}
|
|
59104
|
-
return;
|
|
59105
|
-
}
|
|
59106
|
-
get accessToken() {
|
|
59107
|
-
const accessToken = this.configuration.accessToken;
|
|
59108
|
-
if (accessToken) {
|
|
59109
|
-
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
59110
|
-
}
|
|
59111
|
-
return;
|
|
59112
|
-
}
|
|
59113
|
-
get headers() {
|
|
59114
|
-
return this.configuration.headers;
|
|
59115
|
-
}
|
|
59116
|
-
get credentials() {
|
|
59117
|
-
return this.configuration.credentials;
|
|
59118
|
-
}
|
|
59119
|
-
}
|
|
59120
|
-
function isBlob5(value) {
|
|
59121
|
-
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
59122
|
-
}
|
|
59123
|
-
function isFormData5(value) {
|
|
59124
|
-
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
59125
|
-
}
|
|
59126
|
-
function querystring5(params, prefix = "") {
|
|
59127
|
-
return Object.keys(params).map((key) => querystringSingleKey5(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
59128
|
-
}
|
|
59129
|
-
function querystringSingleKey5(key, value, keyPrefix = "") {
|
|
59130
|
-
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
59131
|
-
if (value instanceof Array) {
|
|
59132
|
-
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
59133
|
-
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
59134
|
-
}
|
|
59135
|
-
if (value instanceof Set) {
|
|
59136
|
-
const valueAsArray = Array.from(value);
|
|
59137
|
-
return querystringSingleKey5(key, valueAsArray, keyPrefix);
|
|
59138
|
-
}
|
|
59139
|
-
if (value instanceof Date) {
|
|
59140
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
59141
|
-
}
|
|
59142
|
-
if (value instanceof Object) {
|
|
59143
|
-
return querystring5(value, fullKey);
|
|
59144
|
-
}
|
|
59145
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
59146
|
-
}
|
|
59147
|
-
|
|
59148
|
-
class JSONApiResponse5 {
|
|
59149
|
-
raw;
|
|
59150
|
-
transformer;
|
|
59151
|
-
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
59152
|
-
this.raw = raw;
|
|
59153
|
-
this.transformer = transformer;
|
|
59154
|
-
}
|
|
59155
|
-
async value() {
|
|
59156
|
-
return this.transformer(await this.raw.json());
|
|
59157
|
-
}
|
|
59158
|
-
}
|
|
59159
|
-
|
|
59160
|
-
class VoidApiResponse5 {
|
|
59161
|
-
raw;
|
|
59162
|
-
constructor(raw) {
|
|
59163
|
-
this.raw = raw;
|
|
59164
|
-
}
|
|
59165
|
-
async value() {
|
|
59166
|
-
return;
|
|
59167
|
-
}
|
|
59168
|
-
}
|
|
59169
|
-
|
|
59170
|
-
class BlobApiResponse3 {
|
|
59171
|
-
raw;
|
|
59172
|
-
constructor(raw) {
|
|
59173
|
-
this.raw = raw;
|
|
59174
|
-
}
|
|
59175
|
-
async value() {
|
|
59176
|
-
return await this.raw.blob();
|
|
59177
|
-
}
|
|
59178
|
-
}
|
|
59179
|
-
|
|
59180
|
-
class TextApiResponse4 {
|
|
59181
|
-
raw;
|
|
59182
|
-
constructor(raw) {
|
|
59183
|
-
this.raw = raw;
|
|
59184
|
-
}
|
|
59185
|
-
async value() {
|
|
59186
|
-
return await this.raw.text();
|
|
59187
|
-
}
|
|
59188
|
-
}
|
|
59189
|
-
var BASE_PATH5, DefaultConfig5, BaseAPI5, ResponseError5, FetchError5, RequiredError5;
|
|
59190
|
-
var init_runtime2 = __esm(() => {
|
|
59191
|
-
BASE_PATH5 = "http://localhost:8086/v3/element".replace(/\/+$/, "");
|
|
59192
|
-
DefaultConfig5 = new Configuration6;
|
|
59193
|
-
BaseAPI5 = class BaseAPI5 {
|
|
59194
|
-
configuration;
|
|
59195
|
-
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
59196
|
-
middleware;
|
|
59197
|
-
constructor(configuration = DefaultConfig5) {
|
|
59198
|
-
this.configuration = configuration;
|
|
59199
|
-
this.middleware = configuration.middleware;
|
|
59200
|
-
}
|
|
59201
|
-
withMiddleware(...middlewares) {
|
|
59202
|
-
const next = this.clone();
|
|
59203
|
-
next.middleware = next.middleware.concat(...middlewares);
|
|
59204
|
-
return next;
|
|
59205
|
-
}
|
|
59206
|
-
withPreMiddleware(...preMiddlewares) {
|
|
59207
|
-
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
59208
|
-
return this.withMiddleware(...middlewares);
|
|
59209
|
-
}
|
|
59210
|
-
withPostMiddleware(...postMiddlewares) {
|
|
59211
|
-
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
59212
|
-
return this.withMiddleware(...middlewares);
|
|
59213
|
-
}
|
|
59214
|
-
isJsonMime(mime) {
|
|
59215
|
-
if (!mime) {
|
|
59216
|
-
return false;
|
|
59217
|
-
}
|
|
59218
|
-
return BaseAPI5.jsonRegex.test(mime);
|
|
59219
|
-
}
|
|
59220
|
-
async request(context, initOverrides) {
|
|
59221
|
-
const { url: url2, init } = await this.createFetchParams(context, initOverrides);
|
|
59222
|
-
const response = await this.fetchApi(url2, init);
|
|
59223
|
-
if (response && (response.status >= 200 && response.status < 300)) {
|
|
59224
|
-
return response;
|
|
59225
|
-
}
|
|
59226
|
-
throw new ResponseError5(response, "Response returned an error code");
|
|
59227
|
-
}
|
|
59228
|
-
async createFetchParams(context, initOverrides) {
|
|
59229
|
-
let url2 = this.configuration.basePath + context.path;
|
|
59230
|
-
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
59231
|
-
url2 += "?" + this.configuration.queryParamsStringify(context.query);
|
|
59232
|
-
}
|
|
59233
|
-
const headers2 = Object.assign({}, this.configuration.headers, context.headers);
|
|
59234
|
-
Object.keys(headers2).forEach((key) => headers2[key] === undefined ? delete headers2[key] : {});
|
|
59235
|
-
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
59236
|
-
const initParams = {
|
|
59237
|
-
method: context.method,
|
|
59238
|
-
headers: headers2,
|
|
59239
|
-
body: context.body,
|
|
59240
|
-
credentials: this.configuration.credentials
|
|
59241
|
-
};
|
|
59242
|
-
const overriddenInit = {
|
|
59243
|
-
...initParams,
|
|
59244
|
-
...await initOverrideFn({
|
|
59245
|
-
init: initParams,
|
|
59246
|
-
context
|
|
59247
|
-
})
|
|
59248
|
-
};
|
|
59249
|
-
let body;
|
|
59250
|
-
if (isFormData5(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob5(overriddenInit.body)) {
|
|
59251
|
-
body = overriddenInit.body;
|
|
59252
|
-
} else if (this.isJsonMime(headers2["Content-Type"])) {
|
|
59253
|
-
body = JSON.stringify(overriddenInit.body);
|
|
59254
|
-
} else {
|
|
59255
|
-
body = overriddenInit.body;
|
|
59256
|
-
}
|
|
59257
|
-
const init = {
|
|
59258
|
-
...overriddenInit,
|
|
59259
|
-
body
|
|
59260
|
-
};
|
|
59261
|
-
return { url: url2, init };
|
|
59262
|
-
}
|
|
59263
|
-
fetchApi = async (url2, init) => {
|
|
59264
|
-
let fetchParams = { url: url2, init };
|
|
59265
|
-
for (const middleware of this.middleware) {
|
|
59266
|
-
if (middleware.pre) {
|
|
59267
|
-
fetchParams = await middleware.pre({
|
|
59268
|
-
fetch: this.fetchApi,
|
|
59269
|
-
...fetchParams
|
|
59270
|
-
}) || fetchParams;
|
|
59271
|
-
}
|
|
59272
|
-
}
|
|
59273
|
-
let response = undefined;
|
|
59274
|
-
try {
|
|
59275
|
-
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
59276
|
-
} catch (e) {
|
|
59277
|
-
for (const middleware of this.middleware) {
|
|
59278
|
-
if (middleware.onError) {
|
|
59279
|
-
response = await middleware.onError({
|
|
59280
|
-
fetch: this.fetchApi,
|
|
59281
|
-
url: fetchParams.url,
|
|
59282
|
-
init: fetchParams.init,
|
|
59283
|
-
error: e,
|
|
59284
|
-
response: response ? response.clone() : undefined
|
|
59285
|
-
}) || response;
|
|
59286
|
-
}
|
|
59287
|
-
}
|
|
59288
|
-
if (response === undefined) {
|
|
59289
|
-
if (e instanceof Error) {
|
|
59290
|
-
throw new FetchError5(e, "The request failed and the interceptors did not return an alternative response");
|
|
59291
|
-
} else {
|
|
59292
|
-
throw e;
|
|
59293
|
-
}
|
|
59294
|
-
}
|
|
59295
|
-
}
|
|
59296
|
-
for (const middleware of this.middleware) {
|
|
59297
|
-
if (middleware.post) {
|
|
59298
|
-
response = await middleware.post({
|
|
59299
|
-
fetch: this.fetchApi,
|
|
59300
|
-
url: fetchParams.url,
|
|
59301
|
-
init: fetchParams.init,
|
|
59302
|
-
response: response.clone()
|
|
59303
|
-
}) || response;
|
|
59304
|
-
}
|
|
59305
|
-
}
|
|
59306
|
-
return response;
|
|
59307
|
-
};
|
|
59308
|
-
clone() {
|
|
59309
|
-
const constructor = this.constructor;
|
|
59310
|
-
const next = new constructor(this.configuration);
|
|
59311
|
-
next.middleware = this.middleware.slice();
|
|
59312
|
-
return next;
|
|
59313
|
-
}
|
|
59314
|
-
};
|
|
59315
|
-
ResponseError5 = class ResponseError5 extends Error {
|
|
59316
|
-
response;
|
|
59317
|
-
name = "ResponseError";
|
|
59318
|
-
constructor(response, msg) {
|
|
59319
|
-
super(msg);
|
|
59320
|
-
this.response = response;
|
|
59321
|
-
}
|
|
59322
|
-
};
|
|
59323
|
-
FetchError5 = class FetchError5 extends Error {
|
|
59324
|
-
cause;
|
|
59325
|
-
name = "FetchError";
|
|
59326
|
-
constructor(cause, msg) {
|
|
59327
|
-
super(msg);
|
|
59328
|
-
this.cause = cause;
|
|
59329
|
-
}
|
|
59330
|
-
};
|
|
59331
|
-
RequiredError5 = class RequiredError5 extends Error {
|
|
59332
|
-
field;
|
|
59333
|
-
name = "RequiredError";
|
|
59334
|
-
constructor(field, msg) {
|
|
59335
|
-
super(msg);
|
|
59336
|
-
this.field = field;
|
|
59337
|
-
}
|
|
59338
|
-
};
|
|
59339
|
-
});
|
|
59340
|
-
|
|
59341
59878
|
// ../integrationservice-sdk/generated/elements/src/models/UnknownFieldSet.ts
|
|
59342
59879
|
function instanceOfUnknownFieldSet(value) {
|
|
59343
59880
|
return true;
|
|
@@ -75643,13 +76180,13 @@ var ElementsApi;
|
|
|
75643
76180
|
var init_ElementsApi = __esm(() => {
|
|
75644
76181
|
init_runtime2();
|
|
75645
76182
|
init_models2();
|
|
75646
|
-
ElementsApi = class ElementsApi extends
|
|
76183
|
+
ElementsApi = class ElementsApi extends BaseAPI6 {
|
|
75647
76184
|
async deleteElementRaw(requestParameters, initOverrides) {
|
|
75648
76185
|
if (requestParameters["elementKey"] == null) {
|
|
75649
|
-
throw new
|
|
76186
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling deleteElement().');
|
|
75650
76187
|
}
|
|
75651
76188
|
if (requestParameters["tenancy"] == null) {
|
|
75652
|
-
throw new
|
|
76189
|
+
throw new RequiredError6("tenancy", 'Required parameter "tenancy" was null or undefined when calling deleteElement().');
|
|
75653
76190
|
}
|
|
75654
76191
|
const queryParameters = {};
|
|
75655
76192
|
if (requestParameters["version"] != null) {
|
|
@@ -75681,7 +76218,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75681
76218
|
}
|
|
75682
76219
|
async exportElementRaw(requestParameters, initOverrides) {
|
|
75683
76220
|
if (requestParameters["elementKey"] == null) {
|
|
75684
|
-
throw new
|
|
76221
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling exportElement().');
|
|
75685
76222
|
}
|
|
75686
76223
|
const queryParameters = {};
|
|
75687
76224
|
if (requestParameters["version"] != null) {
|
|
@@ -75711,7 +76248,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75711
76248
|
}
|
|
75712
76249
|
async generateActivityPackRaw(requestParameters, initOverrides) {
|
|
75713
76250
|
if (requestParameters["elementKey"] == null) {
|
|
75714
|
-
throw new
|
|
76251
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling generateActivityPack().');
|
|
75715
76252
|
}
|
|
75716
76253
|
const queryParameters = {};
|
|
75717
76254
|
if (requestParameters["version"] != null) {
|
|
@@ -75740,7 +76277,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75740
76277
|
}
|
|
75741
76278
|
async getActivitiesRaw(requestParameters, initOverrides) {
|
|
75742
76279
|
if (requestParameters["elementKey"] == null) {
|
|
75743
|
-
throw new
|
|
76280
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getActivities().');
|
|
75744
76281
|
}
|
|
75745
76282
|
const queryParameters = {};
|
|
75746
76283
|
if (requestParameters["version"] != null) {
|
|
@@ -75763,7 +76300,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75763
76300
|
query: queryParameters
|
|
75764
76301
|
}, initOverrides);
|
|
75765
76302
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
75766
|
-
return new
|
|
76303
|
+
return new JSONApiResponse6(response);
|
|
75767
76304
|
} else {
|
|
75768
76305
|
return new TextApiResponse4(response);
|
|
75769
76306
|
}
|
|
@@ -75774,10 +76311,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
75774
76311
|
}
|
|
75775
76312
|
async getAuditLogsRaw(requestParameters, initOverrides) {
|
|
75776
76313
|
if (requestParameters["elementKey"] == null) {
|
|
75777
|
-
throw new
|
|
76314
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getAuditLogs().');
|
|
75778
76315
|
}
|
|
75779
76316
|
if (requestParameters["version"] == null) {
|
|
75780
|
-
throw new
|
|
76317
|
+
throw new RequiredError6("version", 'Required parameter "version" was null or undefined when calling getAuditLogs().');
|
|
75781
76318
|
}
|
|
75782
76319
|
const queryParameters = {};
|
|
75783
76320
|
if (requestParameters["pageSize"] != null) {
|
|
@@ -75803,7 +76340,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75803
76340
|
headers: headerParameters,
|
|
75804
76341
|
query: queryParameters
|
|
75805
76342
|
}, initOverrides);
|
|
75806
|
-
return new
|
|
76343
|
+
return new JSONApiResponse6(response, (jsonValue) => jsonValue.map(AuditLogFromJSON));
|
|
75807
76344
|
}
|
|
75808
76345
|
async getAuditLogs(requestParameters, initOverrides) {
|
|
75809
76346
|
const response = await this.getAuditLogsRaw(requestParameters, initOverrides);
|
|
@@ -75829,7 +76366,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75829
76366
|
headers: headerParameters,
|
|
75830
76367
|
query: queryParameters
|
|
75831
76368
|
}, initOverrides);
|
|
75832
|
-
return new
|
|
76369
|
+
return new JSONApiResponse6(response, (jsonValue) => jsonValue.map(ConnectorVersionFromJSON));
|
|
75833
76370
|
}
|
|
75834
76371
|
async getAvailableConnectors(requestParameters = {}, initOverrides) {
|
|
75835
76372
|
const response = await this.getAvailableConnectorsRaw(requestParameters, initOverrides);
|
|
@@ -75837,7 +76374,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75837
76374
|
}
|
|
75838
76375
|
async getConnectorRuntimeMetadataRaw(requestParameters, initOverrides) {
|
|
75839
76376
|
if (requestParameters["elementKey"] == null) {
|
|
75840
|
-
throw new
|
|
76377
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getConnectorRuntimeMetadata().');
|
|
75841
76378
|
}
|
|
75842
76379
|
const queryParameters = {};
|
|
75843
76380
|
const headerParameters = {};
|
|
@@ -75856,7 +76393,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75856
76393
|
headers: headerParameters,
|
|
75857
76394
|
query: queryParameters
|
|
75858
76395
|
}, initOverrides);
|
|
75859
|
-
return new
|
|
76396
|
+
return new JSONApiResponse6(response, (jsonValue) => RuntimeMetadataFromJSON(jsonValue));
|
|
75860
76397
|
}
|
|
75861
76398
|
async getConnectorRuntimeMetadata(requestParameters, initOverrides) {
|
|
75862
76399
|
const response = await this.getConnectorRuntimeMetadataRaw(requestParameters, initOverrides);
|
|
@@ -75864,7 +76401,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75864
76401
|
}
|
|
75865
76402
|
async getCurrentVersionRaw(requestParameters, initOverrides) {
|
|
75866
76403
|
if (requestParameters["elementKey"] == null) {
|
|
75867
|
-
throw new
|
|
76404
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getCurrentVersion().');
|
|
75868
76405
|
}
|
|
75869
76406
|
const queryParameters = {};
|
|
75870
76407
|
const headerParameters = {};
|
|
@@ -75883,7 +76420,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75883
76420
|
headers: headerParameters,
|
|
75884
76421
|
query: queryParameters
|
|
75885
76422
|
}, initOverrides);
|
|
75886
|
-
return new
|
|
76423
|
+
return new JSONApiResponse6(response, (jsonValue) => LatestVersionFromJSON(jsonValue));
|
|
75887
76424
|
}
|
|
75888
76425
|
async getCurrentVersion(requestParameters, initOverrides) {
|
|
75889
76426
|
const response = await this.getCurrentVersionRaw(requestParameters, initOverrides);
|
|
@@ -75891,7 +76428,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75891
76428
|
}
|
|
75892
76429
|
async getElementImageRaw(requestParameters, initOverrides) {
|
|
75893
76430
|
if (requestParameters["elementKey"] == null) {
|
|
75894
|
-
throw new
|
|
76431
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getElementImage().');
|
|
75895
76432
|
}
|
|
75896
76433
|
const queryParameters = {};
|
|
75897
76434
|
if (requestParameters["version"] != null) {
|
|
@@ -75921,7 +76458,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75921
76458
|
}
|
|
75922
76459
|
async getElementMetadataRaw(requestParameters, initOverrides) {
|
|
75923
76460
|
if (requestParameters["elementKey"] == null) {
|
|
75924
|
-
throw new
|
|
76461
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getElementMetadata().');
|
|
75925
76462
|
}
|
|
75926
76463
|
const queryParameters = {};
|
|
75927
76464
|
const headerParameters = {};
|
|
@@ -75940,7 +76477,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75940
76477
|
headers: headerParameters,
|
|
75941
76478
|
query: queryParameters
|
|
75942
76479
|
}, initOverrides);
|
|
75943
|
-
return new
|
|
76480
|
+
return new JSONApiResponse6(response, (jsonValue) => ElementMetadataFromJSON2(jsonValue));
|
|
75944
76481
|
}
|
|
75945
76482
|
async getElementMetadata(requestParameters, initOverrides) {
|
|
75946
76483
|
const response = await this.getElementMetadataRaw(requestParameters, initOverrides);
|
|
@@ -75948,7 +76485,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75948
76485
|
}
|
|
75949
76486
|
async getElementStringRaw(requestParameters, initOverrides) {
|
|
75950
76487
|
if (requestParameters["elementKey"] == null) {
|
|
75951
|
-
throw new
|
|
76488
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getElementString().');
|
|
75952
76489
|
}
|
|
75953
76490
|
const queryParameters = {};
|
|
75954
76491
|
if (requestParameters["version"] != null) {
|
|
@@ -75977,7 +76514,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75977
76514
|
query: queryParameters
|
|
75978
76515
|
}, initOverrides);
|
|
75979
76516
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
75980
|
-
return new
|
|
76517
|
+
return new JSONApiResponse6(response);
|
|
75981
76518
|
} else {
|
|
75982
76519
|
return new TextApiResponse4(response);
|
|
75983
76520
|
}
|
|
@@ -75988,7 +76525,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
75988
76525
|
}
|
|
75989
76526
|
async getElementSwaggerRaw(requestParameters, initOverrides) {
|
|
75990
76527
|
if (requestParameters["elementKey"] == null) {
|
|
75991
|
-
throw new
|
|
76528
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getElementSwagger().');
|
|
75992
76529
|
}
|
|
75993
76530
|
const queryParameters = {};
|
|
75994
76531
|
if (requestParameters["version"] != null) {
|
|
@@ -76010,7 +76547,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76010
76547
|
headers: headerParameters,
|
|
76011
76548
|
query: queryParameters
|
|
76012
76549
|
}, initOverrides);
|
|
76013
|
-
return new
|
|
76550
|
+
return new JSONApiResponse6(response, (jsonValue) => OpenAPIFromJSON(jsonValue));
|
|
76014
76551
|
}
|
|
76015
76552
|
async getElementSwagger(requestParameters, initOverrides) {
|
|
76016
76553
|
const response = await this.getElementSwaggerRaw(requestParameters, initOverrides);
|
|
@@ -76018,13 +76555,13 @@ var init_ElementsApi = __esm(() => {
|
|
|
76018
76555
|
}
|
|
76019
76556
|
async getEventObjectMetadataRaw(requestParameters, initOverrides) {
|
|
76020
76557
|
if (requestParameters["elementKey"] == null) {
|
|
76021
|
-
throw new
|
|
76558
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getEventObjectMetadata().');
|
|
76022
76559
|
}
|
|
76023
76560
|
if (requestParameters["operationName"] == null) {
|
|
76024
|
-
throw new
|
|
76561
|
+
throw new RequiredError6("operationName", 'Required parameter "operationName" was null or undefined when calling getEventObjectMetadata().');
|
|
76025
76562
|
}
|
|
76026
76563
|
if (requestParameters["objectName"] == null) {
|
|
76027
|
-
throw new
|
|
76564
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getEventObjectMetadata().');
|
|
76028
76565
|
}
|
|
76029
76566
|
const queryParameters = {};
|
|
76030
76567
|
if (requestParameters["version"] != null) {
|
|
@@ -76054,7 +76591,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76054
76591
|
headers: headerParameters,
|
|
76055
76592
|
query: queryParameters
|
|
76056
76593
|
}, initOverrides);
|
|
76057
|
-
return new
|
|
76594
|
+
return new JSONApiResponse6(response);
|
|
76058
76595
|
}
|
|
76059
76596
|
async getEventObjectMetadata(requestParameters, initOverrides) {
|
|
76060
76597
|
const response = await this.getEventObjectMetadataRaw(requestParameters, initOverrides);
|
|
@@ -76062,10 +76599,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76062
76599
|
}
|
|
76063
76600
|
async getEventObjectsRaw(requestParameters, initOverrides) {
|
|
76064
76601
|
if (requestParameters["elementKey"] == null) {
|
|
76065
|
-
throw new
|
|
76602
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getEventObjects().');
|
|
76066
76603
|
}
|
|
76067
76604
|
if (requestParameters["operationName"] == null) {
|
|
76068
|
-
throw new
|
|
76605
|
+
throw new RequiredError6("operationName", 'Required parameter "operationName" was null or undefined when calling getEventObjects().');
|
|
76069
76606
|
}
|
|
76070
76607
|
const queryParameters = {};
|
|
76071
76608
|
if (requestParameters["version"] != null) {
|
|
@@ -76088,7 +76625,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76088
76625
|
headers: headerParameters,
|
|
76089
76626
|
query: queryParameters
|
|
76090
76627
|
}, initOverrides);
|
|
76091
|
-
return new
|
|
76628
|
+
return new JSONApiResponse6(response);
|
|
76092
76629
|
}
|
|
76093
76630
|
async getEventObjects(requestParameters, initOverrides) {
|
|
76094
76631
|
const response = await this.getEventObjectsRaw(requestParameters, initOverrides);
|
|
@@ -76096,7 +76633,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76096
76633
|
}
|
|
76097
76634
|
async getEventOperationsRaw(requestParameters, initOverrides) {
|
|
76098
76635
|
if (requestParameters["elementKey"] == null) {
|
|
76099
|
-
throw new
|
|
76636
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getEventOperations().');
|
|
76100
76637
|
}
|
|
76101
76638
|
const queryParameters = {};
|
|
76102
76639
|
if (requestParameters["version"] != null) {
|
|
@@ -76118,7 +76655,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76118
76655
|
headers: headerParameters,
|
|
76119
76656
|
query: queryParameters
|
|
76120
76657
|
}, initOverrides);
|
|
76121
|
-
return new
|
|
76658
|
+
return new JSONApiResponse6(response);
|
|
76122
76659
|
}
|
|
76123
76660
|
async getEventOperations(requestParameters, initOverrides) {
|
|
76124
76661
|
const response = await this.getEventOperationsRaw(requestParameters, initOverrides);
|
|
@@ -76126,10 +76663,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76126
76663
|
}
|
|
76127
76664
|
async getInstanceDocsRaw(requestParameters, initOverrides) {
|
|
76128
76665
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76129
|
-
throw new
|
|
76666
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceDocs().');
|
|
76130
76667
|
}
|
|
76131
76668
|
if (requestParameters["elementKey"] == null) {
|
|
76132
|
-
throw new
|
|
76669
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceDocs().');
|
|
76133
76670
|
}
|
|
76134
76671
|
const queryParameters = {};
|
|
76135
76672
|
if (requestParameters["version"] != null) {
|
|
@@ -76158,7 +76695,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76158
76695
|
headers: headerParameters,
|
|
76159
76696
|
query: queryParameters
|
|
76160
76697
|
}, initOverrides);
|
|
76161
|
-
return new
|
|
76698
|
+
return new JSONApiResponse6(response, (jsonValue) => OpenAPIFromJSON(jsonValue));
|
|
76162
76699
|
}
|
|
76163
76700
|
async getInstanceDocs(requestParameters, initOverrides) {
|
|
76164
76701
|
const response = await this.getInstanceDocsRaw(requestParameters, initOverrides);
|
|
@@ -76166,13 +76703,13 @@ var init_ElementsApi = __esm(() => {
|
|
|
76166
76703
|
}
|
|
76167
76704
|
async getInstanceDocsForObjectsRaw(requestParameters, initOverrides) {
|
|
76168
76705
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76169
|
-
throw new
|
|
76706
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceDocsForObjects().');
|
|
76170
76707
|
}
|
|
76171
76708
|
if (requestParameters["elementKey"] == null) {
|
|
76172
|
-
throw new
|
|
76709
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceDocsForObjects().');
|
|
76173
76710
|
}
|
|
76174
76711
|
if (requestParameters["objects"] == null) {
|
|
76175
|
-
throw new
|
|
76712
|
+
throw new RequiredError6("objects", 'Required parameter "objects" was null or undefined when calling getInstanceDocsForObjects().');
|
|
76176
76713
|
}
|
|
76177
76714
|
const queryParameters = {};
|
|
76178
76715
|
if (requestParameters["objects"] != null) {
|
|
@@ -76201,7 +76738,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76201
76738
|
headers: headerParameters,
|
|
76202
76739
|
query: queryParameters
|
|
76203
76740
|
}, initOverrides);
|
|
76204
|
-
return new
|
|
76741
|
+
return new JSONApiResponse6(response, (jsonValue) => OpenAPIFromJSON(jsonValue));
|
|
76205
76742
|
}
|
|
76206
76743
|
async getInstanceDocsForObjects(requestParameters, initOverrides) {
|
|
76207
76744
|
const response = await this.getInstanceDocsForObjectsRaw(requestParameters, initOverrides);
|
|
@@ -76209,16 +76746,16 @@ var init_ElementsApi = __esm(() => {
|
|
|
76209
76746
|
}
|
|
76210
76747
|
async getInstanceEventObjectMetadataRaw(requestParameters, initOverrides) {
|
|
76211
76748
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76212
|
-
throw new
|
|
76749
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceEventObjectMetadata().');
|
|
76213
76750
|
}
|
|
76214
76751
|
if (requestParameters["elementKey"] == null) {
|
|
76215
|
-
throw new
|
|
76752
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceEventObjectMetadata().');
|
|
76216
76753
|
}
|
|
76217
76754
|
if (requestParameters["operationName"] == null) {
|
|
76218
|
-
throw new
|
|
76755
|
+
throw new RequiredError6("operationName", 'Required parameter "operationName" was null or undefined when calling getInstanceEventObjectMetadata().');
|
|
76219
76756
|
}
|
|
76220
76757
|
if (requestParameters["objectName"] == null) {
|
|
76221
|
-
throw new
|
|
76758
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getInstanceEventObjectMetadata().');
|
|
76222
76759
|
}
|
|
76223
76760
|
const queryParameters = {};
|
|
76224
76761
|
if (requestParameters["version"] != null) {
|
|
@@ -76255,7 +76792,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76255
76792
|
headers: headerParameters,
|
|
76256
76793
|
query: queryParameters
|
|
76257
76794
|
}, initOverrides);
|
|
76258
|
-
return new
|
|
76795
|
+
return new JSONApiResponse6(response);
|
|
76259
76796
|
}
|
|
76260
76797
|
async getInstanceEventObjectMetadata(requestParameters, initOverrides) {
|
|
76261
76798
|
const response = await this.getInstanceEventObjectMetadataRaw(requestParameters, initOverrides);
|
|
@@ -76263,13 +76800,13 @@ var init_ElementsApi = __esm(() => {
|
|
|
76263
76800
|
}
|
|
76264
76801
|
async getInstanceEventObjectsRaw(requestParameters, initOverrides) {
|
|
76265
76802
|
if (requestParameters["elementKey"] == null) {
|
|
76266
|
-
throw new
|
|
76803
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceEventObjects().');
|
|
76267
76804
|
}
|
|
76268
76805
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76269
|
-
throw new
|
|
76806
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceEventObjects().');
|
|
76270
76807
|
}
|
|
76271
76808
|
if (requestParameters["operationName"] == null) {
|
|
76272
|
-
throw new
|
|
76809
|
+
throw new RequiredError6("operationName", 'Required parameter "operationName" was null or undefined when calling getInstanceEventObjects().');
|
|
76273
76810
|
}
|
|
76274
76811
|
const queryParameters = {};
|
|
76275
76812
|
if (requestParameters["version"] != null) {
|
|
@@ -76293,7 +76830,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76293
76830
|
headers: headerParameters,
|
|
76294
76831
|
query: queryParameters
|
|
76295
76832
|
}, initOverrides);
|
|
76296
|
-
return new
|
|
76833
|
+
return new JSONApiResponse6(response);
|
|
76297
76834
|
}
|
|
76298
76835
|
async getInstanceEventObjects(requestParameters, initOverrides) {
|
|
76299
76836
|
const response = await this.getInstanceEventObjectsRaw(requestParameters, initOverrides);
|
|
@@ -76301,10 +76838,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76301
76838
|
}
|
|
76302
76839
|
async getInstanceEventOperationsRaw(requestParameters, initOverrides) {
|
|
76303
76840
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76304
|
-
throw new
|
|
76841
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceEventOperations().');
|
|
76305
76842
|
}
|
|
76306
76843
|
if (requestParameters["elementKey"] == null) {
|
|
76307
|
-
throw new
|
|
76844
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceEventOperations().');
|
|
76308
76845
|
}
|
|
76309
76846
|
const queryParameters = {};
|
|
76310
76847
|
if (requestParameters["version"] != null) {
|
|
@@ -76327,7 +76864,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76327
76864
|
headers: headerParameters,
|
|
76328
76865
|
query: queryParameters
|
|
76329
76866
|
}, initOverrides);
|
|
76330
|
-
return new
|
|
76867
|
+
return new JSONApiResponse6(response);
|
|
76331
76868
|
}
|
|
76332
76869
|
async getInstanceEventOperations(requestParameters, initOverrides) {
|
|
76333
76870
|
const response = await this.getInstanceEventOperationsRaw(requestParameters, initOverrides);
|
|
@@ -76335,13 +76872,13 @@ var init_ElementsApi = __esm(() => {
|
|
|
76335
76872
|
}
|
|
76336
76873
|
async getInstanceObjectDocsRaw(requestParameters, initOverrides) {
|
|
76337
76874
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76338
|
-
throw new
|
|
76875
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceObjectDocs().');
|
|
76339
76876
|
}
|
|
76340
76877
|
if (requestParameters["elementKey"] == null) {
|
|
76341
|
-
throw new
|
|
76878
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceObjectDocs().');
|
|
76342
76879
|
}
|
|
76343
76880
|
if (requestParameters["objectName"] == null) {
|
|
76344
|
-
throw new
|
|
76881
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getInstanceObjectDocs().');
|
|
76345
76882
|
}
|
|
76346
76883
|
const queryParameters = {};
|
|
76347
76884
|
if (requestParameters["version"] != null) {
|
|
@@ -76371,7 +76908,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76371
76908
|
headers: headerParameters,
|
|
76372
76909
|
query: queryParameters
|
|
76373
76910
|
}, initOverrides);
|
|
76374
|
-
return new
|
|
76911
|
+
return new JSONApiResponse6(response, (jsonValue) => OpenAPIFromJSON(jsonValue));
|
|
76375
76912
|
}
|
|
76376
76913
|
async getInstanceObjectDocs(requestParameters, initOverrides) {
|
|
76377
76914
|
const response = await this.getInstanceObjectDocsRaw(requestParameters, initOverrides);
|
|
@@ -76379,13 +76916,13 @@ var init_ElementsApi = __esm(() => {
|
|
|
76379
76916
|
}
|
|
76380
76917
|
async getInstanceObjectEventMetadataRaw(requestParameters, initOverrides) {
|
|
76381
76918
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76382
|
-
throw new
|
|
76919
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceObjectEventMetadata().');
|
|
76383
76920
|
}
|
|
76384
76921
|
if (requestParameters["elementKey"] == null) {
|
|
76385
|
-
throw new
|
|
76922
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceObjectEventMetadata().');
|
|
76386
76923
|
}
|
|
76387
76924
|
if (requestParameters["objectName"] == null) {
|
|
76388
|
-
throw new
|
|
76925
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getInstanceObjectEventMetadata().');
|
|
76389
76926
|
}
|
|
76390
76927
|
const queryParameters = {};
|
|
76391
76928
|
if (requestParameters["version"] != null) {
|
|
@@ -76418,7 +76955,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76418
76955
|
headers: headerParameters,
|
|
76419
76956
|
query: queryParameters
|
|
76420
76957
|
}, initOverrides);
|
|
76421
|
-
return new
|
|
76958
|
+
return new JSONApiResponse6(response, (jsonValue) => StandardResourceFromJSON(jsonValue));
|
|
76422
76959
|
}
|
|
76423
76960
|
async getInstanceObjectEventMetadata(requestParameters, initOverrides) {
|
|
76424
76961
|
const response = await this.getInstanceObjectEventMetadataRaw(requestParameters, initOverrides);
|
|
@@ -76426,13 +76963,13 @@ var init_ElementsApi = __esm(() => {
|
|
|
76426
76963
|
}
|
|
76427
76964
|
async getInstanceObjectMetadataRaw(requestParameters, initOverrides) {
|
|
76428
76965
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76429
|
-
throw new
|
|
76966
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceObjectMetadata().');
|
|
76430
76967
|
}
|
|
76431
76968
|
if (requestParameters["elementKey"] == null) {
|
|
76432
|
-
throw new
|
|
76969
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceObjectMetadata().');
|
|
76433
76970
|
}
|
|
76434
76971
|
if (requestParameters["objectName"] == null) {
|
|
76435
|
-
throw new
|
|
76972
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getInstanceObjectMetadata().');
|
|
76436
76973
|
}
|
|
76437
76974
|
const queryParameters = {};
|
|
76438
76975
|
if (requestParameters["version"] != null) {
|
|
@@ -76471,7 +77008,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76471
77008
|
headers: headerParameters,
|
|
76472
77009
|
query: queryParameters
|
|
76473
77010
|
}, initOverrides);
|
|
76474
|
-
return new
|
|
77011
|
+
return new JSONApiResponse6(response, (jsonValue) => StandardResourceFromJSON(jsonValue));
|
|
76475
77012
|
}
|
|
76476
77013
|
async getInstanceObjectMetadata(requestParameters, initOverrides) {
|
|
76477
77014
|
const response = await this.getInstanceObjectMetadataRaw(requestParameters, initOverrides);
|
|
@@ -76479,10 +77016,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76479
77016
|
}
|
|
76480
77017
|
async getInstanceObjectsRaw(requestParameters, initOverrides) {
|
|
76481
77018
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76482
|
-
throw new
|
|
77019
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceObjects().');
|
|
76483
77020
|
}
|
|
76484
77021
|
if (requestParameters["elementKey"] == null) {
|
|
76485
|
-
throw new
|
|
77022
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceObjects().');
|
|
76486
77023
|
}
|
|
76487
77024
|
const queryParameters = {};
|
|
76488
77025
|
if (requestParameters["UNKNOWN_PARAMETER_NAME"] != null) {
|
|
@@ -76521,7 +77058,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76521
77058
|
query: queryParameters
|
|
76522
77059
|
}, initOverrides);
|
|
76523
77060
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
76524
|
-
return new
|
|
77061
|
+
return new JSONApiResponse6(response);
|
|
76525
77062
|
} else {
|
|
76526
77063
|
return new TextApiResponse4(response);
|
|
76527
77064
|
}
|
|
@@ -76532,10 +77069,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76532
77069
|
}
|
|
76533
77070
|
async getInstanceObjectsDesignVersionByQueryRaw(requestParameters, initOverrides) {
|
|
76534
77071
|
if (requestParameters["instanceId"] == null) {
|
|
76535
|
-
throw new
|
|
77072
|
+
throw new RequiredError6("instanceId", 'Required parameter "instanceId" was null or undefined when calling getInstanceObjectsDesignVersionByQuery().');
|
|
76536
77073
|
}
|
|
76537
77074
|
if (requestParameters["elementKey"] == null) {
|
|
76538
|
-
throw new
|
|
77075
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceObjectsDesignVersionByQuery().');
|
|
76539
77076
|
}
|
|
76540
77077
|
const queryParameters = {};
|
|
76541
77078
|
const headerParameters = {};
|
|
@@ -76559,7 +77096,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76559
77096
|
query: queryParameters
|
|
76560
77097
|
}, initOverrides);
|
|
76561
77098
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
76562
|
-
return new
|
|
77099
|
+
return new JSONApiResponse6(response);
|
|
76563
77100
|
} else {
|
|
76564
77101
|
return new TextApiResponse4(response);
|
|
76565
77102
|
}
|
|
@@ -76570,10 +77107,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76570
77107
|
}
|
|
76571
77108
|
async getInstanceWebhookSpecRaw(requestParameters, initOverrides) {
|
|
76572
77109
|
if (requestParameters["connectionOrInstanceId"] == null) {
|
|
76573
|
-
throw new
|
|
77110
|
+
throw new RequiredError6("connectionOrInstanceId", 'Required parameter "connectionOrInstanceId" was null or undefined when calling getInstanceWebhookSpec().');
|
|
76574
77111
|
}
|
|
76575
77112
|
if (requestParameters["elementKey"] == null) {
|
|
76576
|
-
throw new
|
|
77113
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getInstanceWebhookSpec().');
|
|
76577
77114
|
}
|
|
76578
77115
|
const queryParameters = {};
|
|
76579
77116
|
if (requestParameters["objectNames"] != null) {
|
|
@@ -76596,7 +77133,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76596
77133
|
headers: headerParameters,
|
|
76597
77134
|
query: queryParameters
|
|
76598
77135
|
}, initOverrides);
|
|
76599
|
-
return new
|
|
77136
|
+
return new JSONApiResponse6(response, (jsonValue) => WebhookSpecFromJSON(jsonValue));
|
|
76600
77137
|
}
|
|
76601
77138
|
async getInstanceWebhookSpec(requestParameters, initOverrides) {
|
|
76602
77139
|
const response = await this.getInstanceWebhookSpecRaw(requestParameters, initOverrides);
|
|
@@ -76625,7 +77162,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76625
77162
|
headers: headerParameters,
|
|
76626
77163
|
query: queryParameters
|
|
76627
77164
|
}, initOverrides);
|
|
76628
|
-
return new
|
|
77165
|
+
return new JSONApiResponse6(response, (jsonValue) => jsonValue.map(ElementVersionFromJSON));
|
|
76629
77166
|
}
|
|
76630
77167
|
async getLatestVersions(requestParameters = {}, initOverrides) {
|
|
76631
77168
|
const response = await this.getLatestVersionsRaw(requestParameters, initOverrides);
|
|
@@ -76633,10 +77170,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76633
77170
|
}
|
|
76634
77171
|
async getObjectEventMetadataRaw(requestParameters, initOverrides) {
|
|
76635
77172
|
if (requestParameters["elementKey"] == null) {
|
|
76636
|
-
throw new
|
|
77173
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getObjectEventMetadata().');
|
|
76637
77174
|
}
|
|
76638
77175
|
if (requestParameters["objectName"] == null) {
|
|
76639
|
-
throw new
|
|
77176
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getObjectEventMetadata().');
|
|
76640
77177
|
}
|
|
76641
77178
|
const queryParameters = {};
|
|
76642
77179
|
if (requestParameters["version"] != null) {
|
|
@@ -76662,7 +77199,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76662
77199
|
headers: headerParameters,
|
|
76663
77200
|
query: queryParameters
|
|
76664
77201
|
}, initOverrides);
|
|
76665
|
-
return new
|
|
77202
|
+
return new JSONApiResponse6(response, (jsonValue) => StandardResourceFromJSON(jsonValue));
|
|
76666
77203
|
}
|
|
76667
77204
|
async getObjectEventMetadata(requestParameters, initOverrides) {
|
|
76668
77205
|
const response = await this.getObjectEventMetadataRaw(requestParameters, initOverrides);
|
|
@@ -76670,10 +77207,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76670
77207
|
}
|
|
76671
77208
|
async getObjectMetadataRaw(requestParameters, initOverrides) {
|
|
76672
77209
|
if (requestParameters["elementKey"] == null) {
|
|
76673
|
-
throw new
|
|
77210
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getObjectMetadata().');
|
|
76674
77211
|
}
|
|
76675
77212
|
if (requestParameters["objectName"] == null) {
|
|
76676
|
-
throw new
|
|
77213
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getObjectMetadata().');
|
|
76677
77214
|
}
|
|
76678
77215
|
const queryParameters = {};
|
|
76679
77216
|
if (requestParameters["version"] != null) {
|
|
@@ -76702,7 +77239,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76702
77239
|
headers: headerParameters,
|
|
76703
77240
|
query: queryParameters
|
|
76704
77241
|
}, initOverrides);
|
|
76705
|
-
return new
|
|
77242
|
+
return new JSONApiResponse6(response, (jsonValue) => StandardResourceFromJSON(jsonValue));
|
|
76706
77243
|
}
|
|
76707
77244
|
async getObjectMetadata(requestParameters, initOverrides) {
|
|
76708
77245
|
const response = await this.getObjectMetadataRaw(requestParameters, initOverrides);
|
|
@@ -76710,10 +77247,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76710
77247
|
}
|
|
76711
77248
|
async getObjectSwaggerRaw(requestParameters, initOverrides) {
|
|
76712
77249
|
if (requestParameters["elementKey"] == null) {
|
|
76713
|
-
throw new
|
|
77250
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getObjectSwagger().');
|
|
76714
77251
|
}
|
|
76715
77252
|
if (requestParameters["objectName"] == null) {
|
|
76716
|
-
throw new
|
|
77253
|
+
throw new RequiredError6("objectName", 'Required parameter "objectName" was null or undefined when calling getObjectSwagger().');
|
|
76717
77254
|
}
|
|
76718
77255
|
const queryParameters = {};
|
|
76719
77256
|
if (requestParameters["version"] != null) {
|
|
@@ -76739,7 +77276,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76739
77276
|
headers: headerParameters,
|
|
76740
77277
|
query: queryParameters
|
|
76741
77278
|
}, initOverrides);
|
|
76742
|
-
return new
|
|
77279
|
+
return new JSONApiResponse6(response, (jsonValue) => OpenAPIFromJSON(jsonValue));
|
|
76743
77280
|
}
|
|
76744
77281
|
async getObjectSwagger(requestParameters, initOverrides) {
|
|
76745
77282
|
const response = await this.getObjectSwaggerRaw(requestParameters, initOverrides);
|
|
@@ -76747,7 +77284,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76747
77284
|
}
|
|
76748
77285
|
async getObjectsRaw(requestParameters, initOverrides) {
|
|
76749
77286
|
if (requestParameters["elementKey"] == null) {
|
|
76750
|
-
throw new
|
|
77287
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getObjects().');
|
|
76751
77288
|
}
|
|
76752
77289
|
const queryParameters = {};
|
|
76753
77290
|
if (requestParameters["type"] != null) {
|
|
@@ -76779,7 +77316,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76779
77316
|
query: queryParameters
|
|
76780
77317
|
}, initOverrides);
|
|
76781
77318
|
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
76782
|
-
return new
|
|
77319
|
+
return new JSONApiResponse6(response);
|
|
76783
77320
|
} else {
|
|
76784
77321
|
return new TextApiResponse4(response);
|
|
76785
77322
|
}
|
|
@@ -76790,10 +77327,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76790
77327
|
}
|
|
76791
77328
|
async getObjectsSwaggerStreamRaw(requestParameters, initOverrides) {
|
|
76792
77329
|
if (requestParameters["elementKey"] == null) {
|
|
76793
|
-
throw new
|
|
77330
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getObjectsSwaggerStream().');
|
|
76794
77331
|
}
|
|
76795
77332
|
if (requestParameters["objects"] == null) {
|
|
76796
|
-
throw new
|
|
77333
|
+
throw new RequiredError6("objects", 'Required parameter "objects" was null or undefined when calling getObjectsSwaggerStream().');
|
|
76797
77334
|
}
|
|
76798
77335
|
const queryParameters = {};
|
|
76799
77336
|
if (requestParameters["version"] != null) {
|
|
@@ -76821,7 +77358,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76821
77358
|
headers: headerParameters,
|
|
76822
77359
|
query: queryParameters
|
|
76823
77360
|
}, initOverrides);
|
|
76824
|
-
return new
|
|
77361
|
+
return new JSONApiResponse6(response, (jsonValue) => OpenAPIFromJSON(jsonValue));
|
|
76825
77362
|
}
|
|
76826
77363
|
async getObjectsSwaggerStream(requestParameters, initOverrides) {
|
|
76827
77364
|
const response = await this.getObjectsSwaggerStreamRaw(requestParameters, initOverrides);
|
|
@@ -76829,7 +77366,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76829
77366
|
}
|
|
76830
77367
|
async getVersionsRaw(requestParameters, initOverrides) {
|
|
76831
77368
|
if (requestParameters["elementKey"] == null) {
|
|
76832
|
-
throw new
|
|
77369
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getVersions().');
|
|
76833
77370
|
}
|
|
76834
77371
|
const queryParameters = {};
|
|
76835
77372
|
if (requestParameters["pageSize"] != null) {
|
|
@@ -76857,7 +77394,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76857
77394
|
headers: headerParameters,
|
|
76858
77395
|
query: queryParameters
|
|
76859
77396
|
}, initOverrides);
|
|
76860
|
-
return new
|
|
77397
|
+
return new JSONApiResponse6(response, (jsonValue) => jsonValue.map(ElementVersionFromJSON));
|
|
76861
77398
|
}
|
|
76862
77399
|
async getVersions(requestParameters, initOverrides) {
|
|
76863
77400
|
const response = await this.getVersionsRaw(requestParameters, initOverrides);
|
|
@@ -76865,7 +77402,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76865
77402
|
}
|
|
76866
77403
|
async getWebhookSpecRaw(requestParameters, initOverrides) {
|
|
76867
77404
|
if (requestParameters["elementKey"] == null) {
|
|
76868
|
-
throw new
|
|
77405
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling getWebhookSpec().');
|
|
76869
77406
|
}
|
|
76870
77407
|
const queryParameters = {};
|
|
76871
77408
|
if (requestParameters["objectNames"] != null) {
|
|
@@ -76887,7 +77424,7 @@ var init_ElementsApi = __esm(() => {
|
|
|
76887
77424
|
headers: headerParameters,
|
|
76888
77425
|
query: queryParameters
|
|
76889
77426
|
}, initOverrides);
|
|
76890
|
-
return new
|
|
77427
|
+
return new JSONApiResponse6(response, (jsonValue) => WebhookSpecFromJSON(jsonValue));
|
|
76891
77428
|
}
|
|
76892
77429
|
async getWebhookSpec(requestParameters, initOverrides) {
|
|
76893
77430
|
const response = await this.getWebhookSpecRaw(requestParameters, initOverrides);
|
|
@@ -76895,10 +77432,10 @@ var init_ElementsApi = __esm(() => {
|
|
|
76895
77432
|
}
|
|
76896
77433
|
async upsertActivityPackVersionRaw(requestParameters, initOverrides) {
|
|
76897
77434
|
if (requestParameters["elementKey"] == null) {
|
|
76898
|
-
throw new
|
|
77435
|
+
throw new RequiredError6("elementKey", 'Required parameter "elementKey" was null or undefined when calling upsertActivityPackVersion().');
|
|
76899
77436
|
}
|
|
76900
77437
|
if (requestParameters["elementActivityPackVersionRequest"] == null) {
|
|
76901
|
-
throw new
|
|
77438
|
+
throw new RequiredError6("elementActivityPackVersionRequest", 'Required parameter "elementActivityPackVersionRequest" was null or undefined when calling upsertActivityPackVersion().');
|
|
76902
77439
|
}
|
|
76903
77440
|
const queryParameters = {};
|
|
76904
77441
|
const headerParameters = {};
|
|
@@ -76950,18 +77487,22 @@ async function getValidatedAuthContext(options) {
|
|
|
76950
77487
|
}
|
|
76951
77488
|
async function createConnectionsConfig(options) {
|
|
76952
77489
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
76953
|
-
return new
|
|
77490
|
+
return new Configuration6({
|
|
76954
77491
|
basePath: `${baseUrl}/${organizationId}/${tenantName}/connections_`,
|
|
76955
77492
|
accessToken: async () => accessToken,
|
|
76956
|
-
headers: {
|
|
77493
|
+
headers: addSdkUserAgentHeader({
|
|
77494
|
+
"x-uipath-source": "UiPath.CodingAgent"
|
|
77495
|
+
}, SDK_USER_AGENT4)
|
|
76957
77496
|
});
|
|
76958
77497
|
}
|
|
76959
77498
|
async function createElementsConfig(options) {
|
|
76960
77499
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
76961
|
-
return new
|
|
77500
|
+
return new Configuration7({
|
|
76962
77501
|
basePath: `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element`,
|
|
76963
77502
|
accessToken: async () => accessToken,
|
|
76964
|
-
headers: {
|
|
77503
|
+
headers: addSdkUserAgentHeader({
|
|
77504
|
+
"x-uipath-source": "UiPath.CodingAgent"
|
|
77505
|
+
}, SDK_USER_AGENT4)
|
|
76965
77506
|
});
|
|
76966
77507
|
}
|
|
76967
77508
|
async function createApiClient3(ApiClass, options) {
|
|
@@ -76982,11 +77523,11 @@ async function executeOperation(options, connectionId, objectName, httpMethod =
|
|
|
76982
77523
|
}
|
|
76983
77524
|
const requestOptions = {
|
|
76984
77525
|
method: httpMethod,
|
|
76985
|
-
headers: {
|
|
77526
|
+
headers: addSdkUserAgentHeader({
|
|
76986
77527
|
Authorization: `Bearer ${accessToken}`,
|
|
76987
77528
|
"Content-Type": "application/json",
|
|
76988
77529
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
76989
|
-
}
|
|
77530
|
+
}, SDK_USER_AGENT4)
|
|
76990
77531
|
};
|
|
76991
77532
|
if (body && ["POST", "PUT", "PATCH"].includes(httpMethod)) {
|
|
76992
77533
|
requestOptions.body = JSON.stringify(body);
|
|
@@ -77015,11 +77556,11 @@ async function fetchMetadataAsSchema(options, pathSuffix) {
|
|
|
77015
77556
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
77016
77557
|
const url2 = `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element${pathSuffix}`;
|
|
77017
77558
|
const response = await fetch(url2, {
|
|
77018
|
-
headers: {
|
|
77559
|
+
headers: addSdkUserAgentHeader({
|
|
77019
77560
|
Authorization: `Bearer ${accessToken}`,
|
|
77020
77561
|
Accept: "application/schema+json",
|
|
77021
77562
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
77022
|
-
}
|
|
77563
|
+
}, SDK_USER_AGENT4)
|
|
77023
77564
|
});
|
|
77024
77565
|
if (!response.ok) {
|
|
77025
77566
|
const errorText = await response.text();
|
|
@@ -77036,11 +77577,11 @@ async function getInstanceObjectMetadataAsSchema(options, connectionOrInstanceId
|
|
|
77036
77577
|
async function runInstanceDesignAction(options, connectionOrInstanceId, method, relativeUrl, body) {
|
|
77037
77578
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
77038
77579
|
const url2 = `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element/instances/${encodeURIComponent(connectionOrInstanceId)}${relativeUrl}`;
|
|
77039
|
-
const headers2 = {
|
|
77580
|
+
const headers2 = addSdkUserAgentHeader({
|
|
77040
77581
|
Authorization: `Bearer ${accessToken}`,
|
|
77041
77582
|
Accept: "application/json",
|
|
77042
77583
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
77043
|
-
};
|
|
77584
|
+
}, SDK_USER_AGENT4);
|
|
77044
77585
|
const init = { method, headers: headers2 };
|
|
77045
77586
|
if (body && Object.keys(body).length > 0) {
|
|
77046
77587
|
headers2["Content-Type"] = "application/json";
|
|
@@ -77075,11 +77616,11 @@ async function getWebhookConfig(options, connectionId, elementInstanceId, connec
|
|
|
77075
77616
|
});
|
|
77076
77617
|
const url2 = `${baseUrl}/${organizationId}/${tenantName}/elements_/v1/webhooks/subscribers/${encodeURIComponent(connectionId)}/webhook/config?${params.toString()}`;
|
|
77077
77618
|
const response = await fetch(url2, {
|
|
77078
|
-
headers: {
|
|
77619
|
+
headers: addSdkUserAgentHeader({
|
|
77079
77620
|
Authorization: `Bearer ${accessToken}`,
|
|
77080
77621
|
Accept: "application/json",
|
|
77081
77622
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
77082
|
-
}
|
|
77623
|
+
}, SDK_USER_AGENT4)
|
|
77083
77624
|
});
|
|
77084
77625
|
if (!response.ok) {
|
|
77085
77626
|
const errorText = await response.text();
|
|
@@ -77092,12 +77633,12 @@ async function getHttpRequestPreview(options, connectionId) {
|
|
|
77092
77633
|
const url2 = `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element/instances/${encodeURIComponent(connectionId)}/http-request-preview`;
|
|
77093
77634
|
const response = await fetch(url2, {
|
|
77094
77635
|
method: "POST",
|
|
77095
|
-
headers: {
|
|
77636
|
+
headers: addSdkUserAgentHeader({
|
|
77096
77637
|
Authorization: `Bearer ${accessToken}`,
|
|
77097
77638
|
"Content-Type": "application/json",
|
|
77098
77639
|
Accept: "application/json",
|
|
77099
77640
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
77100
|
-
},
|
|
77641
|
+
}, SDK_USER_AGENT4),
|
|
77101
77642
|
body: "{}"
|
|
77102
77643
|
});
|
|
77103
77644
|
if (!response.ok) {
|
|
@@ -77114,11 +77655,11 @@ async function getEventOperationObjects(options, elementInstanceId, connectorKey
|
|
|
77114
77655
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
77115
77656
|
const url2 = `${baseUrl}/${organizationId}/${tenantName}/elements_/v3/element/instances/${encodeURIComponent(String(elementInstanceId))}/elements/${encodeURIComponent(connectorKey)}/events/operations/${encodeURIComponent(eventOperation)}/objects`;
|
|
77116
77657
|
const response = await fetch(url2, {
|
|
77117
|
-
headers: {
|
|
77658
|
+
headers: addSdkUserAgentHeader({
|
|
77118
77659
|
Authorization: `Bearer ${accessToken}`,
|
|
77119
77660
|
Accept: "application/json",
|
|
77120
77661
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
77121
|
-
}
|
|
77662
|
+
}, SDK_USER_AGENT4)
|
|
77122
77663
|
});
|
|
77123
77664
|
if (!response.ok) {
|
|
77124
77665
|
const errorText = await response.text();
|
|
@@ -77140,6 +77681,7 @@ function folderOverride(folderKey) {
|
|
|
77140
77681
|
var API_DOMAIN_MAP;
|
|
77141
77682
|
var init_client_factory = __esm(() => {
|
|
77142
77683
|
init_src3();
|
|
77684
|
+
init_sdk_user_agent();
|
|
77143
77685
|
init_ConnectionOperationsApi();
|
|
77144
77686
|
init_ConnectionsApi();
|
|
77145
77687
|
init_ConnectorsApi();
|
|
@@ -77147,6 +77689,7 @@ var init_client_factory = __esm(() => {
|
|
|
77147
77689
|
init_runtime();
|
|
77148
77690
|
init_ElementsApi();
|
|
77149
77691
|
init_runtime2();
|
|
77692
|
+
init_user_agent();
|
|
77150
77693
|
API_DOMAIN_MAP = new Map([
|
|
77151
77694
|
[ConnectorsApi, "connections"],
|
|
77152
77695
|
[ConnectionsApi, "connections"],
|
|
@@ -78532,7 +79075,7 @@ __export(exports_src3, {
|
|
|
78532
79075
|
validateConfiguration: () => validateConfiguration,
|
|
78533
79076
|
toClrType: () => toClrType,
|
|
78534
79077
|
runInstanceDesignAction: () => runInstanceDesignAction,
|
|
78535
|
-
querystring: () =>
|
|
79078
|
+
querystring: () => querystring5,
|
|
78536
79079
|
normalizeHttpMethod: () => normalizeHttpMethod,
|
|
78537
79080
|
mapValues: () => mapValues2,
|
|
78538
79081
|
instanceOfWebhookSpec: () => instanceOfWebhookSpec,
|
|
@@ -78807,7 +79350,7 @@ __export(exports_src3, {
|
|
|
78807
79350
|
createElementsConfig: () => createElementsConfig,
|
|
78808
79351
|
createConnectionsConfig: () => createConnectionsConfig,
|
|
78809
79352
|
createApiClient: () => createApiClient3,
|
|
78810
|
-
canConsumeForm: () =>
|
|
79353
|
+
canConsumeForm: () => canConsumeForm3,
|
|
78811
79354
|
buildTriggerEssentialConfiguration: () => buildTriggerEssentialConfiguration,
|
|
78812
79355
|
buildMandatoryFilterExpression: () => buildMandatoryFilterExpression,
|
|
78813
79356
|
buildManagedHttpEssentialConfiguration: () => buildManagedHttpEssentialConfiguration,
|
|
@@ -79206,6 +79749,7 @@ __export(exports_src3, {
|
|
|
79206
79749
|
SecurityRequirementToJSON: () => SecurityRequirementToJSON,
|
|
79207
79750
|
SecurityRequirementFromJSONTyped: () => SecurityRequirementFromJSONTyped,
|
|
79208
79751
|
SecurityRequirementFromJSON: () => SecurityRequirementFromJSON,
|
|
79752
|
+
SDK_USER_AGENT: () => SDK_USER_AGENT4,
|
|
79209
79753
|
RuntimeMetadataToJSONTyped: () => RuntimeMetadataToJSONTyped,
|
|
79210
79754
|
RuntimeMetadataToJSON: () => RuntimeMetadataToJSON,
|
|
79211
79755
|
RuntimeMetadataOrBuilderToJSONTyped: () => RuntimeMetadataOrBuilderToJSONTyped,
|
|
@@ -79226,7 +79770,7 @@ __export(exports_src3, {
|
|
|
79226
79770
|
ResponseSchemaTypeOrBuilderFromJSON: () => ResponseSchemaTypeOrBuilderFromJSON,
|
|
79227
79771
|
ResponseSchemaTypeFromJSONTyped: () => ResponseSchemaTypeFromJSONTyped,
|
|
79228
79772
|
ResponseSchemaTypeFromJSON: () => ResponseSchemaTypeFromJSON,
|
|
79229
|
-
ResponseError: () =>
|
|
79773
|
+
ResponseError: () => ResponseError5,
|
|
79230
79774
|
ReservedRangeToJSONTyped: () => ReservedRangeToJSONTyped,
|
|
79231
79775
|
ReservedRangeToJSON: () => ReservedRangeToJSON,
|
|
79232
79776
|
ReservedRangeOrBuilderToJSONTyped: () => ReservedRangeOrBuilderToJSONTyped,
|
|
@@ -79235,7 +79779,7 @@ __export(exports_src3, {
|
|
|
79235
79779
|
ReservedRangeOrBuilderFromJSON: () => ReservedRangeOrBuilderFromJSON,
|
|
79236
79780
|
ReservedRangeFromJSONTyped: () => ReservedRangeFromJSONTyped,
|
|
79237
79781
|
ReservedRangeFromJSON: () => ReservedRangeFromJSON,
|
|
79238
|
-
RequiredError: () =>
|
|
79782
|
+
RequiredError: () => RequiredError5,
|
|
79239
79783
|
RequestBodyToJSONTyped: () => RequestBodyToJSONTyped,
|
|
79240
79784
|
RequestBodyToJSON: () => RequestBodyToJSON,
|
|
79241
79785
|
RequestBodyFromJSONTyped: () => RequestBodyFromJSONTyped,
|
|
@@ -79479,7 +80023,7 @@ __export(exports_src3, {
|
|
|
79479
80023
|
JobArgumentsOrBuilderFromJSON: () => JobArgumentsOrBuilderFromJSON,
|
|
79480
80024
|
JobArgumentsFromJSONTyped: () => JobArgumentsFromJSONTyped,
|
|
79481
80025
|
JobArgumentsFromJSON: () => JobArgumentsFromJSON,
|
|
79482
|
-
JSONApiResponse: () =>
|
|
80026
|
+
JSONApiResponse: () => JSONApiResponse5,
|
|
79483
80027
|
InfoToJSONTyped: () => InfoToJSONTyped,
|
|
79484
80028
|
InfoToJSON: () => InfoToJSON,
|
|
79485
80029
|
InfoFromJSONTyped: () => InfoFromJSONTyped,
|
|
@@ -79597,7 +80141,7 @@ __export(exports_src3, {
|
|
|
79597
80141
|
FieldDescriptorJavaTypeEnum: () => FieldDescriptorJavaTypeEnum,
|
|
79598
80142
|
FieldDescriptorFromJSONTyped: () => FieldDescriptorFromJSONTyped,
|
|
79599
80143
|
FieldDescriptorFromJSON: () => FieldDescriptorFromJSON,
|
|
79600
|
-
FetchError: () =>
|
|
80144
|
+
FetchError: () => FetchError5,
|
|
79601
80145
|
FeatureSetUtf8ValidationEnum: () => FeatureSetUtf8ValidationEnum,
|
|
79602
80146
|
FeatureSetToJSONTyped: () => FeatureSetToJSONTyped,
|
|
79603
80147
|
FeatureSetToJSON: () => FeatureSetToJSON,
|
|
@@ -79730,7 +80274,7 @@ __export(exports_src3, {
|
|
|
79730
80274
|
EncodingStyleEnum: () => EncodingStyleEnum,
|
|
79731
80275
|
EncodingFromJSONTyped: () => EncodingFromJSONTyped,
|
|
79732
80276
|
EncodingFromJSON: () => EncodingFromJSON,
|
|
79733
|
-
ElementsConfiguration: () =>
|
|
80277
|
+
ElementsConfiguration: () => Configuration7,
|
|
79734
80278
|
ElementsApi: () => ElementsApi,
|
|
79735
80279
|
ElementVersionToJSONTyped: () => ElementVersionToJSONTyped,
|
|
79736
80280
|
ElementVersionToJSON: () => ElementVersionToJSON,
|
|
@@ -79871,7 +80415,7 @@ __export(exports_src3, {
|
|
|
79871
80415
|
DeleteFromJSONTyped: () => DeleteFromJSONTyped,
|
|
79872
80416
|
DeleteFromJSON: () => DeleteFromJSON,
|
|
79873
80417
|
DeleteExecutionTypeEnum: () => DeleteExecutionTypeEnum,
|
|
79874
|
-
DefaultConfig: () =>
|
|
80418
|
+
DefaultConfig: () => DefaultConfig5,
|
|
79875
80419
|
DeclarationToJSONTyped: () => DeclarationToJSONTyped,
|
|
79876
80420
|
DeclarationToJSON: () => DeclarationToJSON,
|
|
79877
80421
|
DeclarationOrBuilderToJSONTyped: () => DeclarationOrBuilderToJSONTyped,
|
|
@@ -79910,7 +80454,7 @@ __export(exports_src3, {
|
|
|
79910
80454
|
ConnectionByIdResponseFromJSONTyped: () => ConnectionByIdResponseFromJSONTyped,
|
|
79911
80455
|
ConnectionByIdResponseFromJSON: () => ConnectionByIdResponseFromJSON,
|
|
79912
80456
|
ConfigurationField: () => ConfigurationField,
|
|
79913
|
-
Configuration: () =>
|
|
80457
|
+
Configuration: () => Configuration6,
|
|
79914
80458
|
ConfigRuleToJSONTyped: () => ConfigRuleToJSONTyped,
|
|
79915
80459
|
ConfigRuleToJSON: () => ConfigRuleToJSON,
|
|
79916
80460
|
ConfigRuleOrBuilderToJSONTyped: () => ConfigRuleOrBuilderToJSONTyped,
|
|
@@ -79942,8 +80486,8 @@ __export(exports_src3, {
|
|
|
79942
80486
|
ByteStringFromJSONTyped: () => ByteStringFromJSONTyped,
|
|
79943
80487
|
ByteStringFromJSON: () => ByteStringFromJSON,
|
|
79944
80488
|
BlobApiResponse: () => BlobApiResponse2,
|
|
79945
|
-
BaseAPI: () =>
|
|
79946
|
-
BASE_PATH: () =>
|
|
80489
|
+
BaseAPI: () => BaseAPI5,
|
|
80490
|
+
BASE_PATH: () => BASE_PATH5,
|
|
79947
80491
|
AvailableVersionsVersionTypeEnum: () => AvailableVersionsVersionTypeEnum,
|
|
79948
80492
|
AvailableVersionsToJSONTyped: () => AvailableVersionsToJSONTyped,
|
|
79949
80493
|
AvailableVersionsToJSON: () => AvailableVersionsToJSON,
|
|
@@ -79976,9 +80520,11 @@ __export(exports_src3, {
|
|
|
79976
80520
|
AccessTokenResponseFromJSON: () => AccessTokenResponseFromJSON
|
|
79977
80521
|
});
|
|
79978
80522
|
var init_src5 = __esm(() => {
|
|
80523
|
+
init_user_agent();
|
|
79979
80524
|
init_apis2();
|
|
79980
80525
|
init_runtime2();
|
|
79981
80526
|
init_client_factory();
|
|
80527
|
+
init_user_agent();
|
|
79982
80528
|
init_src4();
|
|
79983
80529
|
init_models2();
|
|
79984
80530
|
init_dap();
|
|
@@ -80396,7 +80942,8 @@ import"./packager-tool.js";
|
|
|
80396
80942
|
// package.json
|
|
80397
80943
|
var package_default = {
|
|
80398
80944
|
name: "@uipath/agent-tool",
|
|
80399
|
-
|
|
80945
|
+
license: "MIT",
|
|
80946
|
+
version: "1.195.0",
|
|
80400
80947
|
description: "cli plugin for creating and managing UiPath low-code agents",
|
|
80401
80948
|
private: false,
|
|
80402
80949
|
repository: {
|
|
@@ -80441,7 +80988,7 @@ var package_default = {
|
|
|
80441
80988
|
"@uipath/orchestrator-sdk": "workspace:*",
|
|
80442
80989
|
"@uipath/solution-sdk": "workspace:*",
|
|
80443
80990
|
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
80444
|
-
"@uipath/tool-agent": "^1.
|
|
80991
|
+
"@uipath/tool-agent": "^1.2.4",
|
|
80445
80992
|
"adm-zip": "^0.5.16",
|
|
80446
80993
|
commander: "^14.0.3",
|
|
80447
80994
|
typescript: "^6.0.2"
|
|
@@ -81319,22 +81866,99 @@ class ResourceService {
|
|
|
81319
81866
|
const builder = await this.readBuilder(projectPath);
|
|
81320
81867
|
return (builder.features ?? []).filter((f) => f.$featureType === "memorySpace");
|
|
81321
81868
|
}
|
|
81869
|
+
findMemorySpaceFeatureIndex(builder, nameOrId, folderPath) {
|
|
81870
|
+
if (!builder.features)
|
|
81871
|
+
return -1;
|
|
81872
|
+
const directIndex = builder.features.findIndex((f) => f.$featureType === "memorySpace" && (f.name === nameOrId || f.id === nameOrId));
|
|
81873
|
+
if (directIndex !== -1)
|
|
81874
|
+
return directIndex;
|
|
81875
|
+
const memoryNameMatches = builder.features.map((feature, index2) => ({ feature, index: index2 })).filter(({ feature }) => feature.$featureType === "memorySpace" && feature.memorySpaceName === nameOrId);
|
|
81876
|
+
if (memoryNameMatches.length > 0 && folderPath === undefined) {
|
|
81877
|
+
throw new Error(`Memory space "${nameOrId}" matches by memory space name. Provide --folder-path or use feature name or ID.`);
|
|
81878
|
+
}
|
|
81879
|
+
const folderMatches = memoryNameMatches.filter(({ feature }) => feature.folderPath === folderPath);
|
|
81880
|
+
if (folderMatches.length > 1) {
|
|
81881
|
+
throw new Error(`Memory space "${nameOrId}" in folder "${folderPath}" matches multiple features. Use feature name or ID.`);
|
|
81882
|
+
}
|
|
81883
|
+
return folderMatches[0]?.index ?? -1;
|
|
81884
|
+
}
|
|
81885
|
+
async writeMemorySpaceFeature(projectPath, builder, featureIndex, memorySpace) {
|
|
81886
|
+
const nextFeatures = [...builder.features ?? []];
|
|
81887
|
+
nextFeatures[featureIndex] = memorySpace;
|
|
81888
|
+
await this.writeBuilder(projectPath, {
|
|
81889
|
+
...builder,
|
|
81890
|
+
features: nextFeatures
|
|
81891
|
+
});
|
|
81892
|
+
const [featureError] = await catchError(this.projectService.writeFeature(projectPath, memorySpace.name, memorySpace));
|
|
81893
|
+
if (featureError) {
|
|
81894
|
+
await catchError(this.writeBuilder(projectPath, builder));
|
|
81895
|
+
throw featureError;
|
|
81896
|
+
}
|
|
81897
|
+
}
|
|
81898
|
+
async addMemoryItem(projectPath, memoryNameOrId, opts) {
|
|
81899
|
+
const builder = await this.readBuilder(projectPath);
|
|
81900
|
+
const memoryIndex = this.findMemorySpaceFeatureIndex(builder, memoryNameOrId, opts.folderPath);
|
|
81901
|
+
if (memoryIndex === -1) {
|
|
81902
|
+
throw new Error(`Memory space "${memoryNameOrId}" not found`);
|
|
81903
|
+
}
|
|
81904
|
+
const memorySpace = builder.features?.[memoryIndex];
|
|
81905
|
+
if (!memorySpace || memorySpace.$featureType !== "memorySpace") {
|
|
81906
|
+
throw new Error(`Memory space "${memoryNameOrId}" not found`);
|
|
81907
|
+
}
|
|
81908
|
+
const existingItems = memorySpace.items ?? [];
|
|
81909
|
+
const existingIndex = existingItems.findIndex((item2) => item2.key === opts.key);
|
|
81910
|
+
const existingItem = existingItems[existingIndex];
|
|
81911
|
+
const item = {
|
|
81912
|
+
id: existingItem?.id ?? crypto.randomUUID(),
|
|
81913
|
+
key: opts.key,
|
|
81914
|
+
value: opts.value,
|
|
81915
|
+
memoryType: opts.memoryType,
|
|
81916
|
+
description: opts.description ?? existingItem?.description ?? null,
|
|
81917
|
+
metadata: opts.metadata ?? existingItem?.metadata
|
|
81918
|
+
};
|
|
81919
|
+
const nextItems = [...existingItems];
|
|
81920
|
+
if (existingIndex === -1) {
|
|
81921
|
+
nextItems.push(item);
|
|
81922
|
+
} else {
|
|
81923
|
+
nextItems[existingIndex] = item;
|
|
81924
|
+
}
|
|
81925
|
+
await this.writeMemorySpaceFeature(projectPath, builder, memoryIndex, {
|
|
81926
|
+
...memorySpace,
|
|
81927
|
+
items: nextItems
|
|
81928
|
+
});
|
|
81929
|
+
return item;
|
|
81930
|
+
}
|
|
81931
|
+
async listMemoryItems(projectPath, memoryNameOrId, folderPath) {
|
|
81932
|
+
const builder = await this.readBuilder(projectPath);
|
|
81933
|
+
const memoryIndex = this.findMemorySpaceFeatureIndex(builder, memoryNameOrId, folderPath);
|
|
81934
|
+
if (memoryIndex === -1) {
|
|
81935
|
+
throw new Error(`Memory space "${memoryNameOrId}" not found`);
|
|
81936
|
+
}
|
|
81937
|
+
const memorySpace = builder.features?.[memoryIndex];
|
|
81938
|
+
return memorySpace?.items ?? [];
|
|
81939
|
+
}
|
|
81940
|
+
async removeMemoryItem(projectPath, memoryNameOrId, keyOrId, folderPath) {
|
|
81941
|
+
const builder = await this.readBuilder(projectPath);
|
|
81942
|
+
const memoryIndex = this.findMemorySpaceFeatureIndex(builder, memoryNameOrId, folderPath);
|
|
81943
|
+
if (memoryIndex === -1) {
|
|
81944
|
+
throw new Error(`Memory space "${memoryNameOrId}" not found`);
|
|
81945
|
+
}
|
|
81946
|
+
const memorySpace = builder.features?.[memoryIndex];
|
|
81947
|
+
const existingItems = memorySpace?.items ?? [];
|
|
81948
|
+
const itemIndex = existingItems.findIndex((item) => item.key === keyOrId || item.id === keyOrId);
|
|
81949
|
+
if (!memorySpace || itemIndex === -1)
|
|
81950
|
+
return false;
|
|
81951
|
+
await this.writeMemorySpaceFeature(projectPath, builder, memoryIndex, {
|
|
81952
|
+
...memorySpace,
|
|
81953
|
+
items: existingItems.filter((_item, index2) => index2 !== itemIndex)
|
|
81954
|
+
});
|
|
81955
|
+
return true;
|
|
81956
|
+
}
|
|
81322
81957
|
async removeMemorySpace(projectPath, nameOrId, folderPath) {
|
|
81323
81958
|
const builder = await this.readBuilder(projectPath);
|
|
81324
81959
|
if (!builder.features)
|
|
81325
81960
|
return false;
|
|
81326
|
-
|
|
81327
|
-
if (idx === -1) {
|
|
81328
|
-
const memoryNameMatches = builder.features.map((feature, index2) => ({ feature, index: index2 })).filter(({ feature }) => feature.$featureType === "memorySpace" && feature.memorySpaceName === nameOrId);
|
|
81329
|
-
if (memoryNameMatches.length > 0 && folderPath === undefined) {
|
|
81330
|
-
throw new Error(`Memory space "${nameOrId}" matches by memory space name. Provide --folder-path or remove by feature name or ID.`);
|
|
81331
|
-
}
|
|
81332
|
-
const folderMatches = memoryNameMatches.filter(({ feature }) => feature.folderPath === folderPath);
|
|
81333
|
-
if (folderMatches.length > 1) {
|
|
81334
|
-
throw new Error(`Memory space "${nameOrId}" in folder "${folderPath}" matches multiple features. Remove by feature name or ID.`);
|
|
81335
|
-
}
|
|
81336
|
-
idx = folderMatches[0]?.index ?? -1;
|
|
81337
|
-
}
|
|
81961
|
+
const idx = this.findMemorySpaceFeatureIndex(builder, nameOrId, folderPath);
|
|
81338
81962
|
if (idx === -1)
|
|
81339
81963
|
return false;
|
|
81340
81964
|
const removed = builder.features[idx];
|
|
@@ -81637,6 +82261,9 @@ var registerContextCommands = (program2) => {
|
|
|
81637
82261
|
init_src3();
|
|
81638
82262
|
init_src2();
|
|
81639
82263
|
|
|
82264
|
+
// ../orchestrator-sdk/src/user-agent.ts
|
|
82265
|
+
init_sdk_user_agent();
|
|
82266
|
+
|
|
81640
82267
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
81641
82268
|
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
|
|
81642
82269
|
|
|
@@ -81895,6 +82522,62 @@ class TextApiResponse {
|
|
|
81895
82522
|
return await this.raw.text();
|
|
81896
82523
|
}
|
|
81897
82524
|
}
|
|
82525
|
+
// ../orchestrator-sdk/package.json
|
|
82526
|
+
var package_default2 = {
|
|
82527
|
+
name: "@uipath/orchestrator-sdk",
|
|
82528
|
+
license: "MIT",
|
|
82529
|
+
version: "1.2.0",
|
|
82530
|
+
repository: {
|
|
82531
|
+
type: "git",
|
|
82532
|
+
url: "https://github.com/UiPath/cli.git",
|
|
82533
|
+
directory: "packages/orchestrator-sdk"
|
|
82534
|
+
},
|
|
82535
|
+
publishConfig: {
|
|
82536
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
82537
|
+
},
|
|
82538
|
+
keywords: [
|
|
82539
|
+
"uipath",
|
|
82540
|
+
"orchestrator",
|
|
82541
|
+
"sdk"
|
|
82542
|
+
],
|
|
82543
|
+
type: "module",
|
|
82544
|
+
main: "./dist/index.js",
|
|
82545
|
+
types: "./dist/src/index.d.ts",
|
|
82546
|
+
exports: {
|
|
82547
|
+
".": {
|
|
82548
|
+
browser: {
|
|
82549
|
+
types: "./dist/src/index.browser.d.ts",
|
|
82550
|
+
default: "./dist/index.browser.js"
|
|
82551
|
+
},
|
|
82552
|
+
default: {
|
|
82553
|
+
types: "./dist/src/index.d.ts",
|
|
82554
|
+
default: "./dist/index.js"
|
|
82555
|
+
}
|
|
82556
|
+
}
|
|
82557
|
+
},
|
|
82558
|
+
files: [
|
|
82559
|
+
"dist"
|
|
82560
|
+
],
|
|
82561
|
+
private: true,
|
|
82562
|
+
scripts: {
|
|
82563
|
+
build: "bun build ./src/index.ts --outdir dist --format esm --target node && bun build ./src/index.browser.ts --outdir dist --format esm --target browser --external @uipath/auth --external @uipath/common && tsc -p tsconfig.build.json --noCheck",
|
|
82564
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
82565
|
+
lint: "biome check .",
|
|
82566
|
+
test: "vitest run",
|
|
82567
|
+
"test:coverage": "vitest run --coverage"
|
|
82568
|
+
},
|
|
82569
|
+
devDependencies: {
|
|
82570
|
+
"@uipath/auth": "workspace:*",
|
|
82571
|
+
"@uipath/common": "workspace:*",
|
|
82572
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
82573
|
+
"@types/node": "^25.5.2",
|
|
82574
|
+
typescript: "^6.0.2"
|
|
82575
|
+
}
|
|
82576
|
+
};
|
|
82577
|
+
|
|
82578
|
+
// ../orchestrator-sdk/src/user-agent.ts
|
|
82579
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default2);
|
|
82580
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
81898
82581
|
// ../orchestrator-sdk/generated/src/models/SimpleFolderDto.ts
|
|
81899
82582
|
function SimpleFolderDtoFromJSON(json2) {
|
|
81900
82583
|
return SimpleFolderDtoFromJSONTyped(json2, false);
|
|
@@ -82957,6 +83640,20 @@ function PageResultDtoOfCurrentUserFolderDtoFromJSONTyped(json2, ignoreDiscrimin
|
|
|
82957
83640
|
count: json2["Count"] == null ? undefined : json2["Count"]
|
|
82958
83641
|
};
|
|
82959
83642
|
}
|
|
83643
|
+
// ../orchestrator-sdk/generated/src/models/PersonalWorkspaceFolder.ts
|
|
83644
|
+
function PersonalWorkspaceFolderFromJSON(json2) {
|
|
83645
|
+
return PersonalWorkspaceFolderFromJSONTyped(json2, false);
|
|
83646
|
+
}
|
|
83647
|
+
function PersonalWorkspaceFolderFromJSONTyped(json2, ignoreDiscriminator) {
|
|
83648
|
+
if (json2 == null) {
|
|
83649
|
+
return json2;
|
|
83650
|
+
}
|
|
83651
|
+
return {
|
|
83652
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
83653
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
83654
|
+
fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"]
|
|
83655
|
+
};
|
|
83656
|
+
}
|
|
82960
83657
|
// ../orchestrator-sdk/generated/src/models/RemoveMachinesFromFolderRequest.ts
|
|
82961
83658
|
function RemoveMachinesFromFolderRequestToJSON(json2) {
|
|
82962
83659
|
return RemoveMachinesFromFolderRequestToJSONTyped(json2, false);
|
|
@@ -83007,6 +83704,20 @@ function ResourcePaginationResultOfFolderFromJSONTyped(json2, ignoreDiscriminato
|
|
|
83007
83704
|
cursor: json2["cursor"] == null ? undefined : json2["cursor"]
|
|
83008
83705
|
};
|
|
83009
83706
|
}
|
|
83707
|
+
// ../orchestrator-sdk/generated/src/models/ResourcePaginationResultOfPersonalWorkspaceFolder.ts
|
|
83708
|
+
function ResourcePaginationResultOfPersonalWorkspaceFolderFromJSON(json2) {
|
|
83709
|
+
return ResourcePaginationResultOfPersonalWorkspaceFolderFromJSONTyped(json2, false);
|
|
83710
|
+
}
|
|
83711
|
+
function ResourcePaginationResultOfPersonalWorkspaceFolderFromJSONTyped(json2, ignoreDiscriminator) {
|
|
83712
|
+
if (json2 == null) {
|
|
83713
|
+
return json2;
|
|
83714
|
+
}
|
|
83715
|
+
return {
|
|
83716
|
+
count: json2["count"] == null ? undefined : json2["count"],
|
|
83717
|
+
data: json2["data"] == null ? undefined : json2["data"].map(PersonalWorkspaceFolderFromJSON),
|
|
83718
|
+
cursor: json2["cursor"] == null ? undefined : json2["cursor"]
|
|
83719
|
+
};
|
|
83720
|
+
}
|
|
83010
83721
|
// ../orchestrator-sdk/generated/src/models/RootFolderDto.ts
|
|
83011
83722
|
function RootFolderDtoFromJSON(json2) {
|
|
83012
83723
|
return RootFolderDtoFromJSONTyped(json2, false);
|
|
@@ -83296,6 +84007,31 @@ class FoldersApi extends BaseAPI {
|
|
|
83296
84007
|
const response = await this.foldersGetAllForCurrentUserRaw(requestParameters, initOverrides);
|
|
83297
84008
|
return await response.value();
|
|
83298
84009
|
}
|
|
84010
|
+
async foldersGetAllPersonalWorkspaceFoldersRaw(requestParameters, initOverrides) {
|
|
84011
|
+
const queryParameters = {};
|
|
84012
|
+
if (requestParameters["limit"] != null) {
|
|
84013
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
84014
|
+
}
|
|
84015
|
+
if (requestParameters["cursor"] != null) {
|
|
84016
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
84017
|
+
}
|
|
84018
|
+
const headerParameters = {};
|
|
84019
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84020
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
84021
|
+
}
|
|
84022
|
+
let urlPath = `/api/Folders/GetAllPersonalWorkspaceFolders`;
|
|
84023
|
+
const response = await this.request({
|
|
84024
|
+
path: urlPath,
|
|
84025
|
+
method: "GET",
|
|
84026
|
+
headers: headerParameters,
|
|
84027
|
+
query: queryParameters
|
|
84028
|
+
}, initOverrides);
|
|
84029
|
+
return new JSONApiResponse(response, (jsonValue) => ResourcePaginationResultOfPersonalWorkspaceFolderFromJSON(jsonValue));
|
|
84030
|
+
}
|
|
84031
|
+
async foldersGetAllPersonalWorkspaceFolders(requestParameters = {}, initOverrides) {
|
|
84032
|
+
const response = await this.foldersGetAllPersonalWorkspaceFoldersRaw(requestParameters, initOverrides);
|
|
84033
|
+
return await response.value();
|
|
84034
|
+
}
|
|
83299
84035
|
async foldersGetAllRolesForUserByUsernameAndSkipAndTakeRaw(requestParameters, initOverrides) {
|
|
83300
84036
|
if (requestParameters["username"] == null) {
|
|
83301
84037
|
throw new RequiredError("username", 'Required parameter "username" was null or undefined when calling foldersGetAllRolesForUserByUsernameAndSkipAndTake().');
|
|
@@ -84572,6 +85308,7 @@ class MachinesApi extends BaseAPI {
|
|
|
84572
85308
|
}
|
|
84573
85309
|
// ../orchestrator-sdk/src/client-factory.ts
|
|
84574
85310
|
init_src3();
|
|
85311
|
+
init_sdk_user_agent();
|
|
84575
85312
|
async function createOrchestratorConfig(options) {
|
|
84576
85313
|
const ctx = await getAuthContext({
|
|
84577
85314
|
tenant: options?.tenant,
|
|
@@ -84580,9 +85317,9 @@ async function createOrchestratorConfig(options) {
|
|
|
84580
85317
|
requireTenantName: true
|
|
84581
85318
|
});
|
|
84582
85319
|
const orchestratorBasePath = `${ctx.baseUrl}/${ctx.organizationId}/${ctx.tenantName}/orchestrator_`;
|
|
84583
|
-
const headers2 = {
|
|
85320
|
+
const headers2 = addSdkUserAgentHeader({
|
|
84584
85321
|
Authorization: `Bearer ${ctx.accessToken}`
|
|
84585
|
-
};
|
|
85322
|
+
}, SDK_USER_AGENT);
|
|
84586
85323
|
if (options?.folderId) {
|
|
84587
85324
|
headers2["X-UIPATH-OrganizationUnitId"] = options.folderId;
|
|
84588
85325
|
} else if (options?.folderKey && options?.folderPath) {
|
|
@@ -84603,6 +85340,9 @@ async function createApiClient(ApiClass, options) {
|
|
|
84603
85340
|
}
|
|
84604
85341
|
// ../orchestrator-sdk/src/job-attachments.ts
|
|
84605
85342
|
init_src2();
|
|
85343
|
+
// ../solution-sdk/src/user-agent.ts
|
|
85344
|
+
init_sdk_user_agent();
|
|
85345
|
+
|
|
84606
85346
|
// ../solution-sdk/generated/src/runtime.ts
|
|
84607
85347
|
var BASE_PATH2 = "https://alpha.uipath.com/uipattycyrhx/abizon_1/automationsolutions_".replace(/\/+$/, "");
|
|
84608
85348
|
|
|
@@ -84861,6 +85601,61 @@ class TextApiResponse2 {
|
|
|
84861
85601
|
return await this.raw.text();
|
|
84862
85602
|
}
|
|
84863
85603
|
}
|
|
85604
|
+
// ../solution-sdk/package.json
|
|
85605
|
+
var package_default3 = {
|
|
85606
|
+
name: "@uipath/solution-sdk",
|
|
85607
|
+
license: "MIT",
|
|
85608
|
+
version: "1.2.0",
|
|
85609
|
+
repository: {
|
|
85610
|
+
type: "git",
|
|
85611
|
+
url: "https://github.com/UiPath/cli.git",
|
|
85612
|
+
directory: "packages/solution-sdk"
|
|
85613
|
+
},
|
|
85614
|
+
publishConfig: {
|
|
85615
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
85616
|
+
},
|
|
85617
|
+
keywords: [
|
|
85618
|
+
"uipath",
|
|
85619
|
+
"solution",
|
|
85620
|
+
"sdk"
|
|
85621
|
+
],
|
|
85622
|
+
type: "module",
|
|
85623
|
+
main: "./dist/index.js",
|
|
85624
|
+
types: "./dist/src/index.d.ts",
|
|
85625
|
+
exports: {
|
|
85626
|
+
".": {
|
|
85627
|
+
types: "./dist/src/index.d.ts",
|
|
85628
|
+
default: "./dist/index.js"
|
|
85629
|
+
}
|
|
85630
|
+
},
|
|
85631
|
+
bin: {
|
|
85632
|
+
"generate-sdk": "./dist/scripts/generate-sdk.js"
|
|
85633
|
+
},
|
|
85634
|
+
files: [
|
|
85635
|
+
"dist"
|
|
85636
|
+
],
|
|
85637
|
+
private: true,
|
|
85638
|
+
scripts: {
|
|
85639
|
+
build: "bun build ./src/index.ts --outdir dist --format esm --target node && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node && tsc -p tsconfig.build.json --noCheck",
|
|
85640
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
85641
|
+
lint: "biome check .",
|
|
85642
|
+
test: "vitest run",
|
|
85643
|
+
"test:coverage": "vitest run --coverage"
|
|
85644
|
+
},
|
|
85645
|
+
devDependencies: {
|
|
85646
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
85647
|
+
"@uipath/common": "workspace:*",
|
|
85648
|
+
"@uipath/filesystem": "workspace:*",
|
|
85649
|
+
"@uipath/studioweb-sdk": "workspace:*",
|
|
85650
|
+
"@types/node": "^25.5.2",
|
|
85651
|
+
fflate: "^0.8.2",
|
|
85652
|
+
typescript: "^6.0.2"
|
|
85653
|
+
}
|
|
85654
|
+
};
|
|
85655
|
+
|
|
85656
|
+
// ../solution-sdk/src/user-agent.ts
|
|
85657
|
+
var SDK_USER_AGENT2 = getSdkUserAgentToken(package_default3);
|
|
85658
|
+
installSdkUserAgentHeader(BaseAPI2, SDK_USER_AGENT2);
|
|
84864
85659
|
// ../solution-sdk/generated/src/models/ResponseDictionaryDto.ts
|
|
84865
85660
|
function ResponseDictionaryDtoFromJSON2(json2) {
|
|
84866
85661
|
return ResponseDictionaryDtoFromJSONTyped2(json2, false);
|
|
@@ -85511,7 +86306,11 @@ async function registerProjectInParentSolution(fs7, projectDir) {
|
|
|
85511
86306
|
const resolvedProjectDir = fs7.path.resolve(projectDir);
|
|
85512
86307
|
const discovery = await findNearestParentUipxFile(fs7, resolvedProjectDir);
|
|
85513
86308
|
if (discovery.status === "notFound") {
|
|
85514
|
-
return
|
|
86309
|
+
return {
|
|
86310
|
+
Status: "NotInSolution",
|
|
86311
|
+
Message: "Project created in standalone mode; no parent .uipx solution found.",
|
|
86312
|
+
Instructions: buildStandaloneInstructions(resolvedProjectDir)
|
|
86313
|
+
};
|
|
85515
86314
|
}
|
|
85516
86315
|
if (discovery.status === "skipped") {
|
|
85517
86316
|
return discovery.registration;
|
|
@@ -85761,8 +86560,237 @@ function buildRegistrationFailureInstructions(projectDir, details) {
|
|
|
85761
86560
|
].join(`
|
|
85762
86561
|
`);
|
|
85763
86562
|
}
|
|
86563
|
+
function buildStandaloneInstructions(projectDir) {
|
|
86564
|
+
return [
|
|
86565
|
+
"No parent solution was found by walking ancestor directories.",
|
|
86566
|
+
"Studio Web upload, `flow debug`, and packaging require an enclosing solution.",
|
|
86567
|
+
`To link this project to a solution, run 'uip solution init "<SolutionName>"' then 'uip solution project add "${projectDir}" <SolutionName>.uipx'.`
|
|
86568
|
+
].join(`
|
|
86569
|
+
`);
|
|
86570
|
+
}
|
|
85764
86571
|
// ../solution-sdk/src/upload-service.ts
|
|
85765
86572
|
init_src2();
|
|
86573
|
+
init_sdk_user_agent();
|
|
86574
|
+
|
|
86575
|
+
// ../studioweb-sdk/generated/src/runtime.ts
|
|
86576
|
+
var BASE_PATH3 = "https://alpha.uipath.com/studio_/backend".replace(/\/+$/, "");
|
|
86577
|
+
|
|
86578
|
+
class Configuration4 {
|
|
86579
|
+
configuration;
|
|
86580
|
+
constructor(configuration = {}) {
|
|
86581
|
+
this.configuration = configuration;
|
|
86582
|
+
}
|
|
86583
|
+
set config(configuration) {
|
|
86584
|
+
this.configuration = configuration;
|
|
86585
|
+
}
|
|
86586
|
+
get basePath() {
|
|
86587
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH3;
|
|
86588
|
+
}
|
|
86589
|
+
get fetchApi() {
|
|
86590
|
+
return this.configuration.fetchApi;
|
|
86591
|
+
}
|
|
86592
|
+
get middleware() {
|
|
86593
|
+
return this.configuration.middleware || [];
|
|
86594
|
+
}
|
|
86595
|
+
get queryParamsStringify() {
|
|
86596
|
+
return this.configuration.queryParamsStringify || querystring3;
|
|
86597
|
+
}
|
|
86598
|
+
get username() {
|
|
86599
|
+
return this.configuration.username;
|
|
86600
|
+
}
|
|
86601
|
+
get password() {
|
|
86602
|
+
return this.configuration.password;
|
|
86603
|
+
}
|
|
86604
|
+
get apiKey() {
|
|
86605
|
+
const apiKey = this.configuration.apiKey;
|
|
86606
|
+
if (apiKey) {
|
|
86607
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
86608
|
+
}
|
|
86609
|
+
return;
|
|
86610
|
+
}
|
|
86611
|
+
get accessToken() {
|
|
86612
|
+
const accessToken = this.configuration.accessToken;
|
|
86613
|
+
if (accessToken) {
|
|
86614
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
86615
|
+
}
|
|
86616
|
+
return;
|
|
86617
|
+
}
|
|
86618
|
+
get headers() {
|
|
86619
|
+
return this.configuration.headers;
|
|
86620
|
+
}
|
|
86621
|
+
get credentials() {
|
|
86622
|
+
return this.configuration.credentials;
|
|
86623
|
+
}
|
|
86624
|
+
}
|
|
86625
|
+
var DefaultConfig3 = new Configuration4;
|
|
86626
|
+
|
|
86627
|
+
class BaseAPI3 {
|
|
86628
|
+
configuration;
|
|
86629
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
86630
|
+
middleware;
|
|
86631
|
+
constructor(configuration = DefaultConfig3) {
|
|
86632
|
+
this.configuration = configuration;
|
|
86633
|
+
this.middleware = configuration.middleware;
|
|
86634
|
+
}
|
|
86635
|
+
withMiddleware(...middlewares) {
|
|
86636
|
+
const next = this.clone();
|
|
86637
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
86638
|
+
return next;
|
|
86639
|
+
}
|
|
86640
|
+
withPreMiddleware(...preMiddlewares) {
|
|
86641
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
86642
|
+
return this.withMiddleware(...middlewares);
|
|
86643
|
+
}
|
|
86644
|
+
withPostMiddleware(...postMiddlewares) {
|
|
86645
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
86646
|
+
return this.withMiddleware(...middlewares);
|
|
86647
|
+
}
|
|
86648
|
+
isJsonMime(mime) {
|
|
86649
|
+
if (!mime) {
|
|
86650
|
+
return false;
|
|
86651
|
+
}
|
|
86652
|
+
return BaseAPI3.jsonRegex.test(mime);
|
|
86653
|
+
}
|
|
86654
|
+
async request(context, initOverrides) {
|
|
86655
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
86656
|
+
const response = await this.fetchApi(url, init);
|
|
86657
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
86658
|
+
return response;
|
|
86659
|
+
}
|
|
86660
|
+
throw new ResponseError3(response, "Response returned an error code");
|
|
86661
|
+
}
|
|
86662
|
+
async createFetchParams(context, initOverrides) {
|
|
86663
|
+
let url = this.configuration.basePath + context.path;
|
|
86664
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
86665
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
86666
|
+
}
|
|
86667
|
+
const headers2 = Object.assign({}, this.configuration.headers, context.headers);
|
|
86668
|
+
Object.keys(headers2).forEach((key) => headers2[key] === undefined ? delete headers2[key] : {});
|
|
86669
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
86670
|
+
const initParams = {
|
|
86671
|
+
method: context.method,
|
|
86672
|
+
headers: headers2,
|
|
86673
|
+
body: context.body,
|
|
86674
|
+
credentials: this.configuration.credentials
|
|
86675
|
+
};
|
|
86676
|
+
const overriddenInit = {
|
|
86677
|
+
...initParams,
|
|
86678
|
+
...await initOverrideFn({
|
|
86679
|
+
init: initParams,
|
|
86680
|
+
context
|
|
86681
|
+
})
|
|
86682
|
+
};
|
|
86683
|
+
let body;
|
|
86684
|
+
if (isFormData3(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob3(overriddenInit.body)) {
|
|
86685
|
+
body = overriddenInit.body;
|
|
86686
|
+
} else if (this.isJsonMime(headers2["Content-Type"])) {
|
|
86687
|
+
body = JSON.stringify(overriddenInit.body);
|
|
86688
|
+
} else {
|
|
86689
|
+
body = overriddenInit.body;
|
|
86690
|
+
}
|
|
86691
|
+
const init = {
|
|
86692
|
+
...overriddenInit,
|
|
86693
|
+
body
|
|
86694
|
+
};
|
|
86695
|
+
return { url, init };
|
|
86696
|
+
}
|
|
86697
|
+
fetchApi = async (url, init) => {
|
|
86698
|
+
let fetchParams = { url, init };
|
|
86699
|
+
for (const middleware of this.middleware) {
|
|
86700
|
+
if (middleware.pre) {
|
|
86701
|
+
fetchParams = await middleware.pre({
|
|
86702
|
+
fetch: this.fetchApi,
|
|
86703
|
+
...fetchParams
|
|
86704
|
+
}) || fetchParams;
|
|
86705
|
+
}
|
|
86706
|
+
}
|
|
86707
|
+
let response = undefined;
|
|
86708
|
+
try {
|
|
86709
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
86710
|
+
} catch (e) {
|
|
86711
|
+
for (const middleware of this.middleware) {
|
|
86712
|
+
if (middleware.onError) {
|
|
86713
|
+
response = await middleware.onError({
|
|
86714
|
+
fetch: this.fetchApi,
|
|
86715
|
+
url: fetchParams.url,
|
|
86716
|
+
init: fetchParams.init,
|
|
86717
|
+
error: e,
|
|
86718
|
+
response: response ? response.clone() : undefined
|
|
86719
|
+
}) || response;
|
|
86720
|
+
}
|
|
86721
|
+
}
|
|
86722
|
+
if (response === undefined) {
|
|
86723
|
+
if (e instanceof Error) {
|
|
86724
|
+
throw new FetchError3(e, "The request failed and the interceptors did not return an alternative response");
|
|
86725
|
+
} else {
|
|
86726
|
+
throw e;
|
|
86727
|
+
}
|
|
86728
|
+
}
|
|
86729
|
+
}
|
|
86730
|
+
for (const middleware of this.middleware) {
|
|
86731
|
+
if (middleware.post) {
|
|
86732
|
+
response = await middleware.post({
|
|
86733
|
+
fetch: this.fetchApi,
|
|
86734
|
+
url: fetchParams.url,
|
|
86735
|
+
init: fetchParams.init,
|
|
86736
|
+
response: response.clone()
|
|
86737
|
+
}) || response;
|
|
86738
|
+
}
|
|
86739
|
+
}
|
|
86740
|
+
return response;
|
|
86741
|
+
};
|
|
86742
|
+
clone() {
|
|
86743
|
+
const constructor = this.constructor;
|
|
86744
|
+
const next = new constructor(this.configuration);
|
|
86745
|
+
next.middleware = this.middleware.slice();
|
|
86746
|
+
return next;
|
|
86747
|
+
}
|
|
86748
|
+
}
|
|
86749
|
+
function isBlob3(value) {
|
|
86750
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
86751
|
+
}
|
|
86752
|
+
function isFormData3(value) {
|
|
86753
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
86754
|
+
}
|
|
86755
|
+
|
|
86756
|
+
class ResponseError3 extends Error {
|
|
86757
|
+
response;
|
|
86758
|
+
name = "ResponseError";
|
|
86759
|
+
constructor(response, msg) {
|
|
86760
|
+
super(msg);
|
|
86761
|
+
this.response = response;
|
|
86762
|
+
}
|
|
86763
|
+
}
|
|
86764
|
+
|
|
86765
|
+
class FetchError3 extends Error {
|
|
86766
|
+
cause;
|
|
86767
|
+
name = "FetchError";
|
|
86768
|
+
constructor(cause, msg) {
|
|
86769
|
+
super(msg);
|
|
86770
|
+
this.cause = cause;
|
|
86771
|
+
}
|
|
86772
|
+
}
|
|
86773
|
+
function querystring3(params, prefix = "") {
|
|
86774
|
+
return Object.keys(params).map((key) => querystringSingleKey3(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
86775
|
+
}
|
|
86776
|
+
function querystringSingleKey3(key, value, keyPrefix = "") {
|
|
86777
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
86778
|
+
if (value instanceof Array) {
|
|
86779
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
86780
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
86781
|
+
}
|
|
86782
|
+
if (value instanceof Set) {
|
|
86783
|
+
const valueAsArray = Array.from(value);
|
|
86784
|
+
return querystringSingleKey3(key, valueAsArray, keyPrefix);
|
|
86785
|
+
}
|
|
86786
|
+
if (value instanceof Date) {
|
|
86787
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
86788
|
+
}
|
|
86789
|
+
if (value instanceof Object) {
|
|
86790
|
+
return querystring3(value, fullKey);
|
|
86791
|
+
}
|
|
86792
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
86793
|
+
}
|
|
85766
86794
|
// src/commands/deploy.ts
|
|
85767
86795
|
var EXIT_CODES2 = {
|
|
85768
86796
|
[PollOutcome.Completed]: 0,
|
|
@@ -86202,10 +87230,13 @@ var registerEscalationCommands = (program2) => {
|
|
|
86202
87230
|
});
|
|
86203
87231
|
};
|
|
86204
87232
|
|
|
87233
|
+
// ../agent-sdk/src/user-agent.ts
|
|
87234
|
+
init_sdk_user_agent();
|
|
87235
|
+
|
|
86205
87236
|
// ../agent-sdk/generated/src/runtime.ts
|
|
86206
|
-
var
|
|
87237
|
+
var BASE_PATH4 = "http://localhost".replace(/\/+$/, "");
|
|
86207
87238
|
|
|
86208
|
-
class
|
|
87239
|
+
class Configuration5 {
|
|
86209
87240
|
configuration;
|
|
86210
87241
|
constructor(configuration = {}) {
|
|
86211
87242
|
this.configuration = configuration;
|
|
@@ -86214,7 +87245,7 @@ class Configuration4 {
|
|
|
86214
87245
|
this.configuration = configuration;
|
|
86215
87246
|
}
|
|
86216
87247
|
get basePath() {
|
|
86217
|
-
return this.configuration.basePath != null ? this.configuration.basePath :
|
|
87248
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH4;
|
|
86218
87249
|
}
|
|
86219
87250
|
get fetchApi() {
|
|
86220
87251
|
return this.configuration.fetchApi;
|
|
@@ -86223,7 +87254,7 @@ class Configuration4 {
|
|
|
86223
87254
|
return this.configuration.middleware || [];
|
|
86224
87255
|
}
|
|
86225
87256
|
get queryParamsStringify() {
|
|
86226
|
-
return this.configuration.queryParamsStringify ||
|
|
87257
|
+
return this.configuration.queryParamsStringify || querystring4;
|
|
86227
87258
|
}
|
|
86228
87259
|
get username() {
|
|
86229
87260
|
return this.configuration.username;
|
|
@@ -86252,13 +87283,13 @@ class Configuration4 {
|
|
|
86252
87283
|
return this.configuration.credentials;
|
|
86253
87284
|
}
|
|
86254
87285
|
}
|
|
86255
|
-
var
|
|
87286
|
+
var DefaultConfig4 = new Configuration5;
|
|
86256
87287
|
|
|
86257
|
-
class
|
|
87288
|
+
class BaseAPI4 {
|
|
86258
87289
|
configuration;
|
|
86259
87290
|
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
86260
87291
|
middleware;
|
|
86261
|
-
constructor(configuration =
|
|
87292
|
+
constructor(configuration = DefaultConfig4) {
|
|
86262
87293
|
this.configuration = configuration;
|
|
86263
87294
|
this.middleware = configuration.middleware;
|
|
86264
87295
|
}
|
|
@@ -86279,7 +87310,7 @@ class BaseAPI3 {
|
|
|
86279
87310
|
if (!mime) {
|
|
86280
87311
|
return false;
|
|
86281
87312
|
}
|
|
86282
|
-
return
|
|
87313
|
+
return BaseAPI4.jsonRegex.test(mime);
|
|
86283
87314
|
}
|
|
86284
87315
|
async request(context, initOverrides) {
|
|
86285
87316
|
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
@@ -86287,7 +87318,7 @@ class BaseAPI3 {
|
|
|
86287
87318
|
if (response && (response.status >= 200 && response.status < 300)) {
|
|
86288
87319
|
return response;
|
|
86289
87320
|
}
|
|
86290
|
-
throw new
|
|
87321
|
+
throw new ResponseError4(response, "Response returned an error code");
|
|
86291
87322
|
}
|
|
86292
87323
|
async createFetchParams(context, initOverrides) {
|
|
86293
87324
|
let url = this.configuration.basePath + context.path;
|
|
@@ -86311,7 +87342,7 @@ class BaseAPI3 {
|
|
|
86311
87342
|
})
|
|
86312
87343
|
};
|
|
86313
87344
|
let body;
|
|
86314
|
-
if (
|
|
87345
|
+
if (isFormData4(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob4(overriddenInit.body)) {
|
|
86315
87346
|
body = overriddenInit.body;
|
|
86316
87347
|
} else if (this.isJsonMime(headers2["Content-Type"])) {
|
|
86317
87348
|
body = JSON.stringify(overriddenInit.body);
|
|
@@ -86351,7 +87382,7 @@ class BaseAPI3 {
|
|
|
86351
87382
|
}
|
|
86352
87383
|
if (response === undefined) {
|
|
86353
87384
|
if (e instanceof Error) {
|
|
86354
|
-
throw new
|
|
87385
|
+
throw new FetchError4(e, "The request failed and the interceptors did not return an alternative response");
|
|
86355
87386
|
} else {
|
|
86356
87387
|
throw e;
|
|
86357
87388
|
}
|
|
@@ -86376,14 +87407,14 @@ class BaseAPI3 {
|
|
|
86376
87407
|
return next;
|
|
86377
87408
|
}
|
|
86378
87409
|
}
|
|
86379
|
-
function
|
|
87410
|
+
function isBlob4(value) {
|
|
86380
87411
|
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
86381
87412
|
}
|
|
86382
|
-
function
|
|
87413
|
+
function isFormData4(value) {
|
|
86383
87414
|
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
86384
87415
|
}
|
|
86385
87416
|
|
|
86386
|
-
class
|
|
87417
|
+
class ResponseError4 extends Error {
|
|
86387
87418
|
response;
|
|
86388
87419
|
name = "ResponseError";
|
|
86389
87420
|
constructor(response, msg) {
|
|
@@ -86396,7 +87427,7 @@ class ResponseError3 extends Error {
|
|
|
86396
87427
|
}
|
|
86397
87428
|
}
|
|
86398
87429
|
|
|
86399
|
-
class
|
|
87430
|
+
class FetchError4 extends Error {
|
|
86400
87431
|
cause;
|
|
86401
87432
|
name = "FetchError";
|
|
86402
87433
|
constructor(cause, msg) {
|
|
@@ -86409,7 +87440,7 @@ class FetchError3 extends Error {
|
|
|
86409
87440
|
}
|
|
86410
87441
|
}
|
|
86411
87442
|
|
|
86412
|
-
class
|
|
87443
|
+
class RequiredError4 extends Error {
|
|
86413
87444
|
field;
|
|
86414
87445
|
name = "RequiredError";
|
|
86415
87446
|
constructor(field, msg) {
|
|
@@ -86421,10 +87452,10 @@ class RequiredError3 extends Error {
|
|
|
86421
87452
|
}
|
|
86422
87453
|
}
|
|
86423
87454
|
}
|
|
86424
|
-
function
|
|
86425
|
-
return Object.keys(params).map((key) =>
|
|
87455
|
+
function querystring4(params, prefix = "") {
|
|
87456
|
+
return Object.keys(params).map((key) => querystringSingleKey4(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
86426
87457
|
}
|
|
86427
|
-
function
|
|
87458
|
+
function querystringSingleKey4(key, value, keyPrefix = "") {
|
|
86428
87459
|
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
86429
87460
|
if (value instanceof Array) {
|
|
86430
87461
|
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
@@ -86432,17 +87463,17 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
|
|
|
86432
87463
|
}
|
|
86433
87464
|
if (value instanceof Set) {
|
|
86434
87465
|
const valueAsArray = Array.from(value);
|
|
86435
|
-
return
|
|
87466
|
+
return querystringSingleKey4(key, valueAsArray, keyPrefix);
|
|
86436
87467
|
}
|
|
86437
87468
|
if (value instanceof Date) {
|
|
86438
87469
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
86439
87470
|
}
|
|
86440
87471
|
if (value instanceof Object) {
|
|
86441
|
-
return
|
|
87472
|
+
return querystring4(value, fullKey);
|
|
86442
87473
|
}
|
|
86443
87474
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
86444
87475
|
}
|
|
86445
|
-
class
|
|
87476
|
+
class JSONApiResponse4 {
|
|
86446
87477
|
raw;
|
|
86447
87478
|
transformer;
|
|
86448
87479
|
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
@@ -86463,6 +87494,57 @@ class VoidApiResponse3 {
|
|
|
86463
87494
|
return;
|
|
86464
87495
|
}
|
|
86465
87496
|
}
|
|
87497
|
+
// ../agent-sdk/package.json
|
|
87498
|
+
var package_default4 = {
|
|
87499
|
+
name: "@uipath/agent-sdk",
|
|
87500
|
+
license: "MIT",
|
|
87501
|
+
version: "1.2.0",
|
|
87502
|
+
description: "SDK for the UiPath Agent Runtime API — evaluation execution and debug sessions.",
|
|
87503
|
+
repository: {
|
|
87504
|
+
type: "git",
|
|
87505
|
+
url: "https://github.com/UiPath/cli.git",
|
|
87506
|
+
directory: "packages/agent-sdk"
|
|
87507
|
+
},
|
|
87508
|
+
publishConfig: {
|
|
87509
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
87510
|
+
},
|
|
87511
|
+
keywords: [
|
|
87512
|
+
"uipath",
|
|
87513
|
+
"agent",
|
|
87514
|
+
"evaluation",
|
|
87515
|
+
"sdk"
|
|
87516
|
+
],
|
|
87517
|
+
type: "module",
|
|
87518
|
+
main: "./dist/index.js",
|
|
87519
|
+
types: "./dist/src/index.d.ts",
|
|
87520
|
+
exports: {
|
|
87521
|
+
".": {
|
|
87522
|
+
types: "./dist/src/index.d.ts",
|
|
87523
|
+
default: "./dist/index.js"
|
|
87524
|
+
}
|
|
87525
|
+
},
|
|
87526
|
+
files: [
|
|
87527
|
+
"dist"
|
|
87528
|
+
],
|
|
87529
|
+
scripts: {
|
|
87530
|
+
build: "bun build ./src/index.ts --outdir dist --format esm --target node && tsc -p tsconfig.build.json --noCheck",
|
|
87531
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
87532
|
+
test: "vitest run",
|
|
87533
|
+
"test:coverage": "vitest run --coverage",
|
|
87534
|
+
lint: "biome check ."
|
|
87535
|
+
},
|
|
87536
|
+
devDependencies: {
|
|
87537
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
87538
|
+
"@types/node": "^25.5.2",
|
|
87539
|
+
"@uipath/auth": "workspace:*",
|
|
87540
|
+
"@uipath/common": "workspace:*",
|
|
87541
|
+
typescript: "^6.0.2"
|
|
87542
|
+
}
|
|
87543
|
+
};
|
|
87544
|
+
|
|
87545
|
+
// ../agent-sdk/src/user-agent.ts
|
|
87546
|
+
var SDK_USER_AGENT3 = getSdkUserAgentToken(package_default4);
|
|
87547
|
+
installSdkUserAgentHeader(BaseAPI4, SDK_USER_AGENT3);
|
|
86466
87548
|
// ../agent-sdk/generated/src/models/StartingPrompt.ts
|
|
86467
87549
|
function StartingPromptToJSON(json2) {
|
|
86468
87550
|
return StartingPromptToJSONTyped(json2, false);
|
|
@@ -87449,10 +88531,10 @@ function EvalSetRunDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
|
87449
88531
|
};
|
|
87450
88532
|
}
|
|
87451
88533
|
// ../agent-sdk/generated/src/apis/EvalsTenantExecutionApi.ts
|
|
87452
|
-
class EvalsTenantExecutionApi extends
|
|
88534
|
+
class EvalsTenantExecutionApi extends BaseAPI4 {
|
|
87453
88535
|
async apiExecutionAgentsAgentIdEvalSetRunsGetRequestOpts(requestParameters) {
|
|
87454
88536
|
if (requestParameters["agentId"] == null) {
|
|
87455
|
-
throw new
|
|
88537
|
+
throw new RequiredError4("agentId", 'Required parameter "agentId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetRunsGet().');
|
|
87456
88538
|
}
|
|
87457
88539
|
const queryParameters = {};
|
|
87458
88540
|
if (requestParameters["projectFilesSource"] != null) {
|
|
@@ -87474,7 +88556,7 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87474
88556
|
async apiExecutionAgentsAgentIdEvalSetRunsGetRaw(requestParameters, initOverrides) {
|
|
87475
88557
|
const requestOptions = await this.apiExecutionAgentsAgentIdEvalSetRunsGetRequestOpts(requestParameters);
|
|
87476
88558
|
const response = await this.request(requestOptions, initOverrides);
|
|
87477
|
-
return new
|
|
88559
|
+
return new JSONApiResponse4(response, (jsonValue) => jsonValue.map(EvalSetRunDtoFromJSON));
|
|
87478
88560
|
}
|
|
87479
88561
|
async apiExecutionAgentsAgentIdEvalSetRunsGet(requestParameters, initOverrides) {
|
|
87480
88562
|
const response = await this.apiExecutionAgentsAgentIdEvalSetRunsGetRaw(requestParameters, initOverrides);
|
|
@@ -87482,13 +88564,13 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87482
88564
|
}
|
|
87483
88565
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDeleteRequestOpts(requestParameters) {
|
|
87484
88566
|
if (requestParameters["evalSetRunId"] == null) {
|
|
87485
|
-
throw new
|
|
88567
|
+
throw new RequiredError4("evalSetRunId", 'Required parameter "evalSetRunId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDelete().');
|
|
87486
88568
|
}
|
|
87487
88569
|
if (requestParameters["agentId"] == null) {
|
|
87488
|
-
throw new
|
|
88570
|
+
throw new RequiredError4("agentId", 'Required parameter "agentId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDelete().');
|
|
87489
88571
|
}
|
|
87490
88572
|
if (requestParameters["evalSetId"] == null) {
|
|
87491
|
-
throw new
|
|
88573
|
+
throw new RequiredError4("evalSetId", 'Required parameter "evalSetId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDelete().');
|
|
87492
88574
|
}
|
|
87493
88575
|
const queryParameters = {};
|
|
87494
88576
|
if (requestParameters["projectFilesSource"] != null) {
|
|
@@ -87509,7 +88591,7 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87509
88591
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDeleteRaw(requestParameters, initOverrides) {
|
|
87510
88592
|
const requestOptions = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDeleteRequestOpts(requestParameters);
|
|
87511
88593
|
const response = await this.request(requestOptions, initOverrides);
|
|
87512
|
-
return new
|
|
88594
|
+
return new JSONApiResponse4(response, (jsonValue) => EvalSetRunDtoFromJSON(jsonValue));
|
|
87513
88595
|
}
|
|
87514
88596
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDelete(requestParameters, initOverrides) {
|
|
87515
88597
|
const response = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdDeleteRaw(requestParameters, initOverrides);
|
|
@@ -87517,13 +88599,13 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87517
88599
|
}
|
|
87518
88600
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGetRequestOpts(requestParameters) {
|
|
87519
88601
|
if (requestParameters["evalSetRunId"] == null) {
|
|
87520
|
-
throw new
|
|
88602
|
+
throw new RequiredError4("evalSetRunId", 'Required parameter "evalSetRunId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGet().');
|
|
87521
88603
|
}
|
|
87522
88604
|
if (requestParameters["agentId"] == null) {
|
|
87523
|
-
throw new
|
|
88605
|
+
throw new RequiredError4("agentId", 'Required parameter "agentId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGet().');
|
|
87524
88606
|
}
|
|
87525
88607
|
if (requestParameters["evalSetId"] == null) {
|
|
87526
|
-
throw new
|
|
88608
|
+
throw new RequiredError4("evalSetId", 'Required parameter "evalSetId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGet().');
|
|
87527
88609
|
}
|
|
87528
88610
|
const queryParameters = {};
|
|
87529
88611
|
if (requestParameters["includeCompletionMetrics"] != null) {
|
|
@@ -87547,7 +88629,7 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87547
88629
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGetRaw(requestParameters, initOverrides) {
|
|
87548
88630
|
const requestOptions = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGetRequestOpts(requestParameters);
|
|
87549
88631
|
const response = await this.request(requestOptions, initOverrides);
|
|
87550
|
-
return new
|
|
88632
|
+
return new JSONApiResponse4(response, (jsonValue) => jsonValue.map(EvalRunDtoFromJSON));
|
|
87551
88633
|
}
|
|
87552
88634
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGet(requestParameters, initOverrides) {
|
|
87553
88635
|
const response = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdEvalRunsGetRaw(requestParameters, initOverrides);
|
|
@@ -87555,13 +88637,13 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87555
88637
|
}
|
|
87556
88638
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGetRequestOpts(requestParameters) {
|
|
87557
88639
|
if (requestParameters["evalSetRunId"] == null) {
|
|
87558
|
-
throw new
|
|
88640
|
+
throw new RequiredError4("evalSetRunId", 'Required parameter "evalSetRunId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGet().');
|
|
87559
88641
|
}
|
|
87560
88642
|
if (requestParameters["agentId"] == null) {
|
|
87561
|
-
throw new
|
|
88643
|
+
throw new RequiredError4("agentId", 'Required parameter "agentId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGet().');
|
|
87562
88644
|
}
|
|
87563
88645
|
if (requestParameters["evalSetId"] == null) {
|
|
87564
|
-
throw new
|
|
88646
|
+
throw new RequiredError4("evalSetId", 'Required parameter "evalSetId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGet().');
|
|
87565
88647
|
}
|
|
87566
88648
|
const queryParameters = {};
|
|
87567
88649
|
if (requestParameters["projectFilesSource"] != null) {
|
|
@@ -87582,7 +88664,7 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87582
88664
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGetRaw(requestParameters, initOverrides) {
|
|
87583
88665
|
const requestOptions = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGetRequestOpts(requestParameters);
|
|
87584
88666
|
const response = await this.request(requestOptions, initOverrides);
|
|
87585
|
-
return new
|
|
88667
|
+
return new JSONApiResponse4(response, (jsonValue) => EvalSetRunDtoFromJSON(jsonValue));
|
|
87586
88668
|
}
|
|
87587
88669
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGet(requestParameters, initOverrides) {
|
|
87588
88670
|
const response = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsEvalSetRunIdGetRaw(requestParameters, initOverrides);
|
|
@@ -87590,10 +88672,10 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87590
88672
|
}
|
|
87591
88673
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsGetRequestOpts(requestParameters) {
|
|
87592
88674
|
if (requestParameters["evalSetId"] == null) {
|
|
87593
|
-
throw new
|
|
88675
|
+
throw new RequiredError4("evalSetId", 'Required parameter "evalSetId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsGet().');
|
|
87594
88676
|
}
|
|
87595
88677
|
if (requestParameters["agentId"] == null) {
|
|
87596
|
-
throw new
|
|
88678
|
+
throw new RequiredError4("agentId", 'Required parameter "agentId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsGet().');
|
|
87597
88679
|
}
|
|
87598
88680
|
const queryParameters = {};
|
|
87599
88681
|
if (requestParameters["source"] != null) {
|
|
@@ -87616,7 +88698,7 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87616
88698
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsGetRaw(requestParameters, initOverrides) {
|
|
87617
88699
|
const requestOptions = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsGetRequestOpts(requestParameters);
|
|
87618
88700
|
const response = await this.request(requestOptions, initOverrides);
|
|
87619
|
-
return new
|
|
88701
|
+
return new JSONApiResponse4(response, (jsonValue) => jsonValue.map(EvalSetRunDtoFromJSON));
|
|
87620
88702
|
}
|
|
87621
88703
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsGet(requestParameters, initOverrides) {
|
|
87622
88704
|
const response = await this.apiExecutionAgentsAgentIdEvalSetsEvalSetIdEvalSetRunsGetRaw(requestParameters, initOverrides);
|
|
@@ -87624,10 +88706,10 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87624
88706
|
}
|
|
87625
88707
|
async apiExecutionAgentsAgentIdEvalSetsEvalSetIdStartMultipleEvaluatorsPostRequestOpts(requestParameters) {
|
|
87626
88708
|
if (requestParameters["agentId"] == null) {
|
|
87627
|
-
throw new
|
|
88709
|
+
throw new RequiredError4("agentId", 'Required parameter "agentId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdStartMultipleEvaluatorsPost().');
|
|
87628
88710
|
}
|
|
87629
88711
|
if (requestParameters["evalSetId"] == null) {
|
|
87630
|
-
throw new
|
|
88712
|
+
throw new RequiredError4("evalSetId", 'Required parameter "evalSetId" was null or undefined when calling apiExecutionAgentsAgentIdEvalSetsEvalSetIdStartMultipleEvaluatorsPost().');
|
|
87631
88713
|
}
|
|
87632
88714
|
const queryParameters = {};
|
|
87633
88715
|
if (requestParameters["solutionId"] != null) {
|
|
@@ -87657,6 +88739,7 @@ class EvalsTenantExecutionApi extends BaseAPI3 {
|
|
|
87657
88739
|
}
|
|
87658
88740
|
// ../agent-sdk/src/client-factory.ts
|
|
87659
88741
|
init_src3();
|
|
88742
|
+
init_sdk_user_agent();
|
|
87660
88743
|
async function createAgentRuntimeConfig(options) {
|
|
87661
88744
|
const ctx = await getAuthContext({
|
|
87662
88745
|
ensureTokenValidityMinutes: options?.loginValidity,
|
|
@@ -87666,11 +88749,11 @@ async function createAgentRuntimeConfig(options) {
|
|
|
87666
88749
|
const organizationId = ctx.organizationId;
|
|
87667
88750
|
const tenantId = ctx.tenantId;
|
|
87668
88751
|
const basePath = `${ctx.baseUrl}/${organizationId}/${tenantId}/agentsruntime_`;
|
|
87669
|
-
const headers2 = {
|
|
88752
|
+
const headers2 = addSdkUserAgentHeader({
|
|
87670
88753
|
Authorization: `Bearer ${ctx.accessToken}`,
|
|
87671
88754
|
"X-UiPath-Internal-TenantId": tenantId
|
|
87672
|
-
};
|
|
87673
|
-
return new
|
|
88755
|
+
}, SDK_USER_AGENT3);
|
|
88756
|
+
return new Configuration5({
|
|
87674
88757
|
basePath,
|
|
87675
88758
|
headers: headers2
|
|
87676
88759
|
});
|
|
@@ -89795,11 +90878,9 @@ async function scaffoldStandaloneAgent(targetPath, options) {
|
|
|
89795
90878
|
Name: name,
|
|
89796
90879
|
Model: options.model,
|
|
89797
90880
|
ProjectId: projectId,
|
|
89798
|
-
NextSteps: buildStandaloneNextSteps(targetPath, solutionRegistration)
|
|
90881
|
+
NextSteps: buildStandaloneNextSteps(targetPath, solutionRegistration),
|
|
90882
|
+
SolutionRegistration: solutionRegistration
|
|
89799
90883
|
};
|
|
89800
|
-
if (solutionRegistration) {
|
|
89801
|
-
data.SolutionRegistration = solutionRegistration;
|
|
89802
|
-
}
|
|
89803
90884
|
OutputFormatter.success({
|
|
89804
90885
|
Result: RESULTS.Success,
|
|
89805
90886
|
Code: "AgentInit",
|
|
@@ -89808,7 +90889,7 @@ async function scaffoldStandaloneAgent(targetPath, options) {
|
|
|
89808
90889
|
}
|
|
89809
90890
|
function buildStandaloneNextSteps(targetPath, solutionRegistration) {
|
|
89810
90891
|
const steps = ["# Edit agent.json to configure prompts and resources"];
|
|
89811
|
-
if (solutionRegistration
|
|
90892
|
+
if (solutionRegistration.Status === "Registered" || solutionRegistration.Status === "AlreadyRegistered") {
|
|
89812
90893
|
steps.push("# The project is already registered in the parent solution", "# Validate after editing:", `uip agent validate ${JSON.stringify(targetPath)}`, "# Pack or upload the solution from the solution directory:", "uip solution pack . ./dist", "uip solution upload .");
|
|
89813
90894
|
return steps.join(`
|
|
89814
90895
|
`);
|
|
@@ -90117,6 +91198,12 @@ var registerListCommand = (program2) => {
|
|
|
90117
91198
|
// src/commands/memory-manage.ts
|
|
90118
91199
|
init_src2();
|
|
90119
91200
|
var VALID_SEARCH_MODES = ["hybrid", "semantic"];
|
|
91201
|
+
var MEMORY_TYPE_VALUES = {
|
|
91202
|
+
episodic: 0,
|
|
91203
|
+
escalation: 1,
|
|
91204
|
+
"0": 0,
|
|
91205
|
+
"1": 1
|
|
91206
|
+
};
|
|
90120
91207
|
var MEMORY_ADD_EXAMPLES = [
|
|
90121
91208
|
{
|
|
90122
91209
|
Description: "Attach a memory space to the agent",
|
|
@@ -90165,6 +91252,69 @@ var MEMORY_REMOVE_EXAMPLES = [
|
|
|
90165
91252
|
}
|
|
90166
91253
|
}
|
|
90167
91254
|
];
|
|
91255
|
+
var MEMORY_ITEM_ADD_EXAMPLES = [
|
|
91256
|
+
{
|
|
91257
|
+
Description: "Add a memory item to a configured memory space",
|
|
91258
|
+
Command: `uip agent memory item add SupportRecall customer-tier gold --memory-type episodic --metadata '{"source":"seed"}' --path ./my-agent`,
|
|
91259
|
+
Output: {
|
|
91260
|
+
Code: "AgentMemoryItemAdd",
|
|
91261
|
+
Data: {
|
|
91262
|
+
Status: "Memory item added",
|
|
91263
|
+
Memory: "SupportRecall",
|
|
91264
|
+
Key: "customer-tier",
|
|
91265
|
+
MemoryType: 0,
|
|
91266
|
+
Id: "a1b2c3d4-0000-0000-0000-000000000080"
|
|
91267
|
+
}
|
|
91268
|
+
}
|
|
91269
|
+
},
|
|
91270
|
+
{
|
|
91271
|
+
Description: "Add an escalation memory item",
|
|
91272
|
+
Command: "uip agent memory item add SupportRecall escalation-case pending --memory-type escalation --path ./my-agent",
|
|
91273
|
+
Output: {
|
|
91274
|
+
Code: "AgentMemoryItemAdd",
|
|
91275
|
+
Data: {
|
|
91276
|
+
Status: "Memory item added",
|
|
91277
|
+
Memory: "SupportRecall",
|
|
91278
|
+
Key: "escalation-case",
|
|
91279
|
+
MemoryType: 1,
|
|
91280
|
+
Id: "a1b2c3d4-0000-0000-0000-000000000081"
|
|
91281
|
+
}
|
|
91282
|
+
}
|
|
91283
|
+
}
|
|
91284
|
+
];
|
|
91285
|
+
var MEMORY_ITEM_LIST_EXAMPLES = [
|
|
91286
|
+
{
|
|
91287
|
+
Description: "List items for a configured memory space",
|
|
91288
|
+
Command: "uip agent memory item list SupportRecall --path ./my-agent",
|
|
91289
|
+
Output: {
|
|
91290
|
+
Code: "AgentMemoryItemList",
|
|
91291
|
+
Data: [
|
|
91292
|
+
{
|
|
91293
|
+
Key: "customer-tier",
|
|
91294
|
+
Value: "gold",
|
|
91295
|
+
MemoryType: 0,
|
|
91296
|
+
Description: null,
|
|
91297
|
+
Metadata: { source: "seed" },
|
|
91298
|
+
Id: "a1b2c3d4-0000-0000-0000-000000000080"
|
|
91299
|
+
}
|
|
91300
|
+
]
|
|
91301
|
+
}
|
|
91302
|
+
}
|
|
91303
|
+
];
|
|
91304
|
+
var MEMORY_ITEM_REMOVE_EXAMPLES = [
|
|
91305
|
+
{
|
|
91306
|
+
Description: "Remove a memory item from a configured memory space",
|
|
91307
|
+
Command: "uip agent memory item remove SupportRecall customer-tier --path ./my-agent",
|
|
91308
|
+
Output: {
|
|
91309
|
+
Code: "AgentMemoryItemRemove",
|
|
91310
|
+
Data: {
|
|
91311
|
+
Status: "Memory item removed",
|
|
91312
|
+
Memory: "SupportRecall",
|
|
91313
|
+
Key: "customer-tier"
|
|
91314
|
+
}
|
|
91315
|
+
}
|
|
91316
|
+
}
|
|
91317
|
+
];
|
|
90168
91318
|
function collectOption(value, previous = []) {
|
|
90169
91319
|
return [...previous, value];
|
|
90170
91320
|
}
|
|
@@ -90195,6 +91345,13 @@ function parseSearchMode(value) {
|
|
|
90195
91345
|
}
|
|
90196
91346
|
throw new Error(`Invalid search-mode value: "${value}". Valid values: ${VALID_SEARCH_MODES.join(", ")}`);
|
|
90197
91347
|
}
|
|
91348
|
+
function parseMemoryType(value) {
|
|
91349
|
+
const memoryType = MEMORY_TYPE_VALUES[value.toLowerCase()];
|
|
91350
|
+
if (memoryType !== undefined) {
|
|
91351
|
+
return memoryType;
|
|
91352
|
+
}
|
|
91353
|
+
throw new Error(`Invalid memory-type value: "${value}". Valid values: episodic, escalation, 0, 1`);
|
|
91354
|
+
}
|
|
90198
91355
|
function parseFieldSettings(fields) {
|
|
90199
91356
|
return fields.map((field) => {
|
|
90200
91357
|
const parts = field.split("=");
|
|
@@ -90212,6 +91369,18 @@ function parseFieldSettings(fields) {
|
|
|
90212
91369
|
return { name, weight };
|
|
90213
91370
|
});
|
|
90214
91371
|
}
|
|
91372
|
+
function parseMetadata(value) {
|
|
91373
|
+
if (value === undefined)
|
|
91374
|
+
return;
|
|
91375
|
+
const [error40, parsed] = catchError(() => JSON.parse(value));
|
|
91376
|
+
if (error40) {
|
|
91377
|
+
throw new Error(`Invalid metadata JSON: ${error40.message}`);
|
|
91378
|
+
}
|
|
91379
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
91380
|
+
throw new Error("Invalid metadata JSON: expected an object.");
|
|
91381
|
+
}
|
|
91382
|
+
return parsed;
|
|
91383
|
+
}
|
|
90215
91384
|
var registerMemoryCommands = (program2) => {
|
|
90216
91385
|
const memory = program2.command("memory").description("Manage agent memory space features");
|
|
90217
91386
|
memory.command("add").description("Attach a memory space to the agent").argument("<name>", "Feature name to use in the agent").requiredOption("--memory-space <name>", "Memory space name to attach").requiredOption("--folder-path <path>", "Folder path where the memory space exists").option("--reference-key <key>", "Memory space solution resource key").option("--description <desc>", "Memory space description").option("--threshold <n>", "Retrieval score threshold", "0").option("--result-count <n>", "Number of results to retrieve", "3").option("--search-mode <mode>", "Search mode (hybrid, semantic)", "hybrid").option("--field <name=weight>", "Input field weight. Repeat for multiple fields", collectOption, []).option("--disable-dynamic-few-shot", "Attach the memory space without enabling dynamic few-shot retrieval").option("--path <path>", "Path to agent project directory", ".").examples(MEMORY_ADD_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
@@ -90305,6 +91474,91 @@ var registerMemoryCommands = (program2) => {
|
|
|
90305
91474
|
processContext.exit(1);
|
|
90306
91475
|
}
|
|
90307
91476
|
});
|
|
91477
|
+
const memoryItem = memory.command("item").description("Manage memory items for configured memory spaces");
|
|
91478
|
+
memoryItem.command("add").description("Add a memory item to a configured memory space").argument("<name>", "Feature name, memory space name, or ID").argument("<key>", "Memory item key").argument("<value>", "Memory item value").option("--folder-path <path>", "Folder path when selecting by memory space name").requiredOption("--memory-type <type>", "Memory item type (episodic=0, escalation=1)").option("--description <desc>", "Memory item description").option("--metadata <json>", "Memory item metadata as a JSON object").option("--path <path>", "Path to agent project directory", ".").examples(MEMORY_ITEM_ADD_EXAMPLES).trackedAction(processContext, async (memoryName, key, value, options) => {
|
|
91479
|
+
const [error40] = await catchError((async () => {
|
|
91480
|
+
const service = new ResourceService;
|
|
91481
|
+
const item = await service.addMemoryItem(options.path, memoryName, {
|
|
91482
|
+
key,
|
|
91483
|
+
value,
|
|
91484
|
+
folderPath: options.folderPath,
|
|
91485
|
+
memoryType: parseMemoryType(options.memoryType),
|
|
91486
|
+
description: options.description,
|
|
91487
|
+
metadata: parseMetadata(options.metadata)
|
|
91488
|
+
});
|
|
91489
|
+
OutputFormatter.success({
|
|
91490
|
+
Result: RESULTS.Success,
|
|
91491
|
+
Code: "AgentMemoryItemAdd",
|
|
91492
|
+
Data: {
|
|
91493
|
+
Status: "Memory item added",
|
|
91494
|
+
Memory: memoryName,
|
|
91495
|
+
Key: item.key,
|
|
91496
|
+
MemoryType: item.memoryType ?? 0,
|
|
91497
|
+
Id: item.id
|
|
91498
|
+
}
|
|
91499
|
+
});
|
|
91500
|
+
})());
|
|
91501
|
+
if (error40) {
|
|
91502
|
+
OutputFormatter.error({
|
|
91503
|
+
Result: RESULTS.Failure,
|
|
91504
|
+
Message: "Failed to add memory item",
|
|
91505
|
+
Instructions: error40.message
|
|
91506
|
+
});
|
|
91507
|
+
processContext.exit(1);
|
|
91508
|
+
}
|
|
91509
|
+
});
|
|
91510
|
+
memoryItem.command("list").description("List memory items for a configured memory space").argument("<name>", "Feature name, memory space name, or ID").option("--folder-path <path>", "Folder path when selecting by memory space name").option("--path <path>", "Path to agent project directory", ".").examples(MEMORY_ITEM_LIST_EXAMPLES).trackedAction(processContext, async (memoryName, options) => {
|
|
91511
|
+
const [error40] = await catchError((async () => {
|
|
91512
|
+
const service = new ResourceService;
|
|
91513
|
+
const items = await service.listMemoryItems(options.path, memoryName, options.folderPath);
|
|
91514
|
+
OutputFormatter.success({
|
|
91515
|
+
Result: RESULTS.Success,
|
|
91516
|
+
Code: "AgentMemoryItemList",
|
|
91517
|
+
Data: items.map((item) => ({
|
|
91518
|
+
Key: item.key,
|
|
91519
|
+
Value: item.value,
|
|
91520
|
+
MemoryType: item.memoryType ?? 0,
|
|
91521
|
+
Description: item.description ?? null,
|
|
91522
|
+
Metadata: item.metadata ?? null,
|
|
91523
|
+
Id: item.id
|
|
91524
|
+
}))
|
|
91525
|
+
});
|
|
91526
|
+
})());
|
|
91527
|
+
if (error40) {
|
|
91528
|
+
OutputFormatter.error({
|
|
91529
|
+
Result: RESULTS.Failure,
|
|
91530
|
+
Message: "Failed to list memory items",
|
|
91531
|
+
Instructions: error40.message
|
|
91532
|
+
});
|
|
91533
|
+
processContext.exit(1);
|
|
91534
|
+
}
|
|
91535
|
+
});
|
|
91536
|
+
memoryItem.command("remove").description("Remove a memory item from a configured memory space").argument("<name>", "Feature name, memory space name, or ID").argument("<key>", "Memory item key or ID to remove").option("--folder-path <path>", "Folder path when selecting by memory space name").option("--path <path>", "Path to agent project directory", ".").examples(MEMORY_ITEM_REMOVE_EXAMPLES).trackedAction(processContext, async (memoryName, key, options) => {
|
|
91537
|
+
const [error40] = await catchError((async () => {
|
|
91538
|
+
const service = new ResourceService;
|
|
91539
|
+
const removed = await service.removeMemoryItem(options.path, memoryName, key, options.folderPath);
|
|
91540
|
+
if (!removed) {
|
|
91541
|
+
throw new Error(`Memory item "${key}" not found`);
|
|
91542
|
+
}
|
|
91543
|
+
OutputFormatter.success({
|
|
91544
|
+
Result: RESULTS.Success,
|
|
91545
|
+
Code: "AgentMemoryItemRemove",
|
|
91546
|
+
Data: {
|
|
91547
|
+
Status: "Memory item removed",
|
|
91548
|
+
Memory: memoryName,
|
|
91549
|
+
Key: key
|
|
91550
|
+
}
|
|
91551
|
+
});
|
|
91552
|
+
})());
|
|
91553
|
+
if (error40) {
|
|
91554
|
+
OutputFormatter.error({
|
|
91555
|
+
Result: RESULTS.Failure,
|
|
91556
|
+
Message: "Failed to remove memory item",
|
|
91557
|
+
Instructions: error40.message
|
|
91558
|
+
});
|
|
91559
|
+
processContext.exit(1);
|
|
91560
|
+
}
|
|
91561
|
+
});
|
|
90308
91562
|
};
|
|
90309
91563
|
|
|
90310
91564
|
// src/commands/migrate.ts
|
|
@@ -90409,7 +91663,7 @@ function bindingKey(name, folderPath) {
|
|
|
90409
91663
|
function folderPathWarning(name, resource) {
|
|
90410
91664
|
return `Resource '${name}' (${resource}) has no folderPath; binding emitted without folder targeting.`;
|
|
90411
91665
|
}
|
|
90412
|
-
function
|
|
91666
|
+
function errorMessage2(error40) {
|
|
90413
91667
|
return error40 instanceof Error ? error40.message : String(error40);
|
|
90414
91668
|
}
|
|
90415
91669
|
function buildProcessBindingV2(tool) {
|
|
@@ -90718,7 +91972,7 @@ async function generateAgentBuilderFiles(projectDir, options = {}) {
|
|
|
90718
91972
|
fileFeatures.push(parsed);
|
|
90719
91973
|
}
|
|
90720
91974
|
} catch (error40) {
|
|
90721
|
-
warnings.push(`Could not read feature file "${featureFile}": ${
|
|
91975
|
+
warnings.push(`Could not read feature file "${featureFile}": ${errorMessage2(error40)}`);
|
|
90722
91976
|
}
|
|
90723
91977
|
}
|
|
90724
91978
|
const fileFeatureNames = new Set(fileFeatures.map((f) => f.name));
|
|
@@ -92632,11 +93886,10 @@ ${validation.errors.join(`
|
|
|
92632
93886
|
}
|
|
92633
93887
|
})());
|
|
92634
93888
|
if (error40) {
|
|
92635
|
-
const isDotnetMissing = /dotnet CLI is not available|spawnSync dotnet ENOENT|'dotnet' is not recognized/i.test(error40.message);
|
|
92636
93889
|
OutputFormatter.error({
|
|
92637
93890
|
Result: RESULTS.Failure,
|
|
92638
93891
|
Message: "Failed to publish agent",
|
|
92639
|
-
Instructions:
|
|
93892
|
+
Instructions: error40.message
|
|
92640
93893
|
});
|
|
92641
93894
|
processContext.exit(1);
|
|
92642
93895
|
}
|