@uipath/delegate-sdk 0.1.10 → 0.1.12
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/README.md +2 -0
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -71,6 +71,8 @@ if (!auth) throw new Error('No saved login — call runLoginFlow first.');
|
|
|
71
71
|
saveAuthData(await switchTenant(auth, 'Finance'));
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
+
**Following a saved login**: `readSavedAuthRecord(filePath)` reads one file as `SdkAuthData`, without network calls or fallback to another login; missing or invalid records return `null`. Capture `grantIdentity(auth)` when the host starts, compare later reads with `sameGrantIdentity(pinned, grantIdentity(candidate))`, and pass the pin as `refreshAccessToken(auth, { authFilePath, pinnedIdentity })`. Refresh runs under the SDK's cross-process lock and checks the supplied credentials, a peer's rotation adopted from the file, and the refreshed grant against the pin before returning or saving anything. Without a pin, it uses the supplied credentials' identity. Unknown client/subject fields remain compatible with legacy records; org and tenant must always match. Hosts do not need to snapshot or restore the auth file after a rejected refresh: a foreign grant is never written, and the login's pending marker stays set so the consumed refresh token is not replayed (it needs a new login).
|
|
75
|
+
|
|
74
76
|
### Using your own identity app
|
|
75
77
|
|
|
76
78
|
By default the SDK authenticates as a built-in UiPath **public** client (PKCE, no secret): `Orchestrator.HYOA.CLI`, the same client `uip login` uses, whose loopback callback is registered on alpha, staging and production. To use your own identity app instead, override the client id — and, for a confidential app, the secret:
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.mjs
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 59723593 bytes
|
|
4
|
+
sha256: 70d1fa682a6358fd15e5e7bf528e39245958ecbae28946d843e82fa9ca6d7d24
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "UiPath Delegate SDK - Programmatic agent interface",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"zod-to-json-schema": "^3.25.1"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@uipath/delegate-runtime-darwin-arm64": "0.1.
|
|
54
|
-
"@uipath/delegate-runtime-win32-x64": "0.1.
|
|
55
|
-
"@uipath/delegate-runtime-linux-x64": "0.1.
|
|
53
|
+
"@uipath/delegate-runtime-darwin-arm64": "0.1.12",
|
|
54
|
+
"@uipath/delegate-runtime-win32-x64": "0.1.12",
|
|
55
|
+
"@uipath/delegate-runtime-linux-x64": "0.1.12"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/node": "^22.0.0",
|