@uipath/maestro-sdk 1.206.0-preview.389 → 1.206.0-preview.409
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.
|
@@ -900,7 +900,7 @@ var init_package = __esm(() => {
|
|
|
900
900
|
name: "@uipath/integrationservice-sdk",
|
|
901
901
|
author: "UiPath",
|
|
902
902
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
903
|
-
version: "1.206.0-preview.
|
|
903
|
+
version: "1.206.0-preview.409",
|
|
904
904
|
repository: {
|
|
905
905
|
type: "git",
|
|
906
906
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -247622,4 +247622,4 @@ export {
|
|
|
247622
247622
|
studioCatalogTypeCache
|
|
247623
247623
|
};
|
|
247624
247624
|
|
|
247625
|
-
//# debugId=
|
|
247625
|
+
//# debugId=B7A537742D584FB664756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -131512,7 +131512,7 @@ var init_package = __esm(() => {
|
|
|
131512
131512
|
name: "@uipath/integrationservice-sdk",
|
|
131513
131513
|
author: "UiPath",
|
|
131514
131514
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
131515
|
-
version: "1.206.0-preview.
|
|
131515
|
+
version: "1.206.0-preview.409",
|
|
131516
131516
|
repository: {
|
|
131517
131517
|
type: "git",
|
|
131518
131518
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -245752,7 +245752,9 @@ function nodeCacheScope(login) {
|
|
|
245752
245752
|
const tenantId = login.tenantId?.trim();
|
|
245753
245753
|
if (!baseUrl || !organizationId || !tenantId)
|
|
245754
245754
|
return;
|
|
245755
|
-
|
|
245755
|
+
const principal = login.identity?.userId ?? login.identity?.clientId ?? "";
|
|
245756
|
+
const scopes = [...login.scopes ?? []].sort((a, b) => a.localeCompare(b)).join(" ");
|
|
245757
|
+
return [baseUrl, organizationId, tenantId, principal, scopes].join("|").toLowerCase();
|
|
245756
245758
|
}
|
|
245757
245759
|
async function resolveNodeStorageDir() {
|
|
245758
245760
|
const fs = getFileSystem();
|
|
@@ -262973,4 +262975,4 @@ export {
|
|
|
262973
262975
|
withPimsCall
|
|
262974
262976
|
};
|
|
262975
262977
|
|
|
262976
|
-
//# debugId=
|
|
262978
|
+
//# debugId=D81223A08859458764756E2164756E21
|
package/dist/registry/command.js
CHANGED
|
@@ -131348,7 +131348,7 @@ var init_package = __esm(() => {
|
|
|
131348
131348
|
name: "@uipath/integrationservice-sdk",
|
|
131349
131349
|
author: "UiPath",
|
|
131350
131350
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
131351
|
-
version: "1.206.0-preview.
|
|
131351
|
+
version: "1.206.0-preview.409",
|
|
131352
131352
|
repository: {
|
|
131353
131353
|
type: "git",
|
|
131354
131354
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -245752,7 +245752,9 @@ function nodeCacheScope(login) {
|
|
|
245752
245752
|
const tenantId = login.tenantId?.trim();
|
|
245753
245753
|
if (!baseUrl || !organizationId || !tenantId)
|
|
245754
245754
|
return;
|
|
245755
|
-
|
|
245755
|
+
const principal = login.identity?.userId ?? login.identity?.clientId ?? "";
|
|
245756
|
+
const scopes = [...login.scopes ?? []].sort((a, b) => a.localeCompare(b)).join(" ");
|
|
245757
|
+
return [baseUrl, organizationId, tenantId, principal, scopes].join("|").toLowerCase();
|
|
245756
245758
|
}
|
|
245757
245759
|
async function resolveNodeStorageDir() {
|
|
245758
245760
|
const fs = getFileSystem();
|
|
@@ -247082,4 +247084,4 @@ export {
|
|
|
247082
247084
|
shownRows
|
|
247083
247085
|
};
|
|
247084
247086
|
|
|
247085
|
-
//# debugId=
|
|
247087
|
+
//# debugId=5F328A007F42BCE764756E2164756E21
|
|
@@ -56,21 +56,34 @@ export interface SyncMetadata {
|
|
|
56
56
|
}>;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* The cache key for a
|
|
60
|
-
* tenant
|
|
61
|
-
* is org + tenant only),
|
|
59
|
+
* The cache key for a login's node manifest: platform URL, organization,
|
|
60
|
+
* tenant, who the token acts as, and the scopes it carries. The manifest
|
|
61
|
+
* request carries no folder (flow-core's `AuthContext` is org + tenant only),
|
|
62
|
+
* so the folder is not part of the key.
|
|
62
63
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
64
|
+
* The identity and scopes are in the key because they decide what the fetch
|
|
65
|
+
* can read: an application token gets 401 from the connector catalogue, so
|
|
66
|
+
* its index lacks every connector node. Keyed by tenant alone, that partial
|
|
67
|
+
* index would answer a user's lookup on the same tenant with "not found"
|
|
68
|
+
* until the cache expired.
|
|
69
|
+
*
|
|
70
|
+
* Returns `undefined` when the URL, organization or tenant is missing — an
|
|
71
|
+
* unauthenticated caller has no tenant, and must never read a logged-in
|
|
72
|
+
* tenant's nodes.
|
|
65
73
|
*
|
|
66
74
|
* @example
|
|
67
|
-
* nodeCacheScope({ baseUrl: "https://cloud.uipath.com/", organizationId: "Org-1", tenantId: "T-1" })
|
|
68
|
-
* // => "https://cloud.uipath.com|org-1|t-1"
|
|
75
|
+
* nodeCacheScope({ baseUrl: "https://cloud.uipath.com/", organizationId: "Org-1", tenantId: "T-1", identity: { userId: "U-1" }, scopes: ["OR.Jobs", "IS"] })
|
|
76
|
+
* // => "https://cloud.uipath.com|org-1|t-1|u-1|is or.jobs"
|
|
69
77
|
*/
|
|
70
78
|
export declare function nodeCacheScope(login: {
|
|
71
79
|
baseUrl?: string;
|
|
72
80
|
organizationId?: string;
|
|
73
81
|
tenantId?: string;
|
|
82
|
+
identity?: {
|
|
83
|
+
userId?: string;
|
|
84
|
+
clientId?: string;
|
|
85
|
+
};
|
|
86
|
+
scopes?: string[];
|
|
74
87
|
}): string | undefined;
|
|
75
88
|
/**
|
|
76
89
|
* Resolve the absolute path to the nodes storage directory.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/maestro-sdk",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.206.0-preview.
|
|
5
|
+
"version": "1.206.0-preview.409",
|
|
6
6
|
"description": "SDK for the UiPath Maestro (PIMS) API — process instance management.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"files": [
|
|
114
114
|
"dist"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "cf0423d710b49f7a5de99cec6ada2dcf72928c48"
|
|
117
117
|
}
|