@uipath/aops-policy-sdk 1.203.0-preview.203 → 1.204.0-preview.206
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/THIRD-PARTY-NOTICES.md +237 -0
- package/dist/index.js +242 -73
- package/dist/policy-resolver.js +19 -1
- package/package.json +2 -9
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# Third-party notices for @uipath/aops-policy-sdk
|
|
2
|
+
|
|
3
|
+
This package is distributed as a bundle: the dependencies below are
|
|
4
|
+
compiled into its `dist/` output rather than installed alongside it.
|
|
5
|
+
Their licences and copyright notices are reproduced here in full, as
|
|
6
|
+
those licences require.
|
|
7
|
+
|
|
8
|
+
12 bundled dependencies:
|
|
9
|
+
|
|
10
|
+
- bundle-name@4.1.0 — MIT
|
|
11
|
+
- default-browser@5.5.0 — MIT
|
|
12
|
+
- default-browser-id@5.0.1 — MIT
|
|
13
|
+
- define-lazy-prop@3.0.0 — MIT
|
|
14
|
+
- is-docker@3.0.0 — MIT
|
|
15
|
+
- is-in-ssh@1.0.0 — MIT
|
|
16
|
+
- is-inside-container@1.0.0 — MIT
|
|
17
|
+
- is-wsl@3.1.1 — MIT
|
|
18
|
+
- open@11.0.0 — MIT
|
|
19
|
+
- powershell-utils@0.1.0 — MIT
|
|
20
|
+
- run-applescript@7.1.0 — MIT
|
|
21
|
+
- wsl-utils@0.3.1 — MIT
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## bundle-name@4.1.0
|
|
26
|
+
|
|
27
|
+
SPDX: MIT
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
MIT License
|
|
31
|
+
|
|
32
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
33
|
+
|
|
34
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
35
|
+
|
|
36
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
37
|
+
|
|
38
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## default-browser@5.5.0
|
|
44
|
+
|
|
45
|
+
SPDX: MIT
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
MIT License
|
|
49
|
+
|
|
50
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
51
|
+
|
|
52
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
55
|
+
|
|
56
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## default-browser-id@5.0.1
|
|
62
|
+
|
|
63
|
+
SPDX: MIT
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
MIT License
|
|
67
|
+
|
|
68
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
69
|
+
|
|
70
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
71
|
+
|
|
72
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
73
|
+
|
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## define-lazy-prop@3.0.0
|
|
80
|
+
|
|
81
|
+
SPDX: MIT
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
MIT License
|
|
85
|
+
|
|
86
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
87
|
+
|
|
88
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
89
|
+
|
|
90
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
91
|
+
|
|
92
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## is-docker@3.0.0
|
|
98
|
+
|
|
99
|
+
SPDX: MIT
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
MIT License
|
|
103
|
+
|
|
104
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
105
|
+
|
|
106
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
107
|
+
|
|
108
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
109
|
+
|
|
110
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## is-in-ssh@1.0.0
|
|
116
|
+
|
|
117
|
+
SPDX: MIT
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
MIT License
|
|
121
|
+
|
|
122
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
123
|
+
|
|
124
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
125
|
+
|
|
126
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
127
|
+
|
|
128
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## is-inside-container@1.0.0
|
|
134
|
+
|
|
135
|
+
SPDX: MIT
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
MIT License
|
|
139
|
+
|
|
140
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
141
|
+
|
|
142
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
143
|
+
|
|
144
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
145
|
+
|
|
146
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## is-wsl@3.1.1
|
|
152
|
+
|
|
153
|
+
SPDX: MIT
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
MIT License
|
|
157
|
+
|
|
158
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
159
|
+
|
|
160
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
161
|
+
|
|
162
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
163
|
+
|
|
164
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## open@11.0.0
|
|
170
|
+
|
|
171
|
+
SPDX: MIT
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
MIT License
|
|
175
|
+
|
|
176
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
177
|
+
|
|
178
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
179
|
+
|
|
180
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
181
|
+
|
|
182
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## powershell-utils@0.1.0
|
|
188
|
+
|
|
189
|
+
SPDX: MIT
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
MIT License
|
|
193
|
+
|
|
194
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
195
|
+
|
|
196
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
197
|
+
|
|
198
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
199
|
+
|
|
200
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## run-applescript@7.1.0
|
|
206
|
+
|
|
207
|
+
SPDX: MIT
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
MIT License
|
|
211
|
+
|
|
212
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
213
|
+
|
|
214
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
215
|
+
|
|
216
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
217
|
+
|
|
218
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## wsl-utils@0.3.1
|
|
224
|
+
|
|
225
|
+
SPDX: MIT
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
MIT License
|
|
229
|
+
|
|
230
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
231
|
+
|
|
232
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
233
|
+
|
|
234
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
235
|
+
|
|
236
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
237
|
+
```
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __returnValue = (v) => v;
|
|
4
|
+
function __exportSetter(name, newValue) {
|
|
5
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
6
|
+
}
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
set: __exportSetter.bind(all, name)
|
|
14
|
+
});
|
|
12
15
|
};
|
|
16
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
13
17
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
14
18
|
|
|
15
19
|
// ../../auth/src/catch-error.ts
|
|
@@ -396,6 +400,12 @@ var init_is_in_ssh = __esm(() => {
|
|
|
396
400
|
});
|
|
397
401
|
|
|
398
402
|
// ../../../node_modules/open/index.js
|
|
403
|
+
var exports_open = {};
|
|
404
|
+
__export(exports_open, {
|
|
405
|
+
apps: () => apps,
|
|
406
|
+
default: () => open_default,
|
|
407
|
+
openApp: () => openApp
|
|
408
|
+
});
|
|
399
409
|
import process8 from "node:process";
|
|
400
410
|
import path from "node:path";
|
|
401
411
|
import { fileURLToPath } from "node:url";
|
|
@@ -629,6 +639,21 @@ var fallbackAttemptSymbol, __dirname2, localXdgOpenPath, platform, arch, tryEach
|
|
|
629
639
|
...options,
|
|
630
640
|
target
|
|
631
641
|
});
|
|
642
|
+
}, openApp = (name, options) => {
|
|
643
|
+
if (typeof name !== "string" && !Array.isArray(name)) {
|
|
644
|
+
throw new TypeError("Expected a valid `name`");
|
|
645
|
+
}
|
|
646
|
+
const { arguments: appArguments = [] } = options ?? {};
|
|
647
|
+
if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
|
|
648
|
+
throw new TypeError("Expected `appArguments` as Array type");
|
|
649
|
+
}
|
|
650
|
+
return baseOpen({
|
|
651
|
+
...options,
|
|
652
|
+
app: {
|
|
653
|
+
name,
|
|
654
|
+
arguments: appArguments
|
|
655
|
+
}
|
|
656
|
+
});
|
|
632
657
|
}, apps, open_default;
|
|
633
658
|
var init_open = __esm(() => {
|
|
634
659
|
init_wsl_utils();
|
|
@@ -708,16 +733,16 @@ class NodeFileSystem {
|
|
|
708
733
|
};
|
|
709
734
|
utils = {
|
|
710
735
|
open: async (url) => {
|
|
711
|
-
await Promise.resolve().then(() => init_open());
|
|
712
|
-
await
|
|
736
|
+
const { default: open2 } = await Promise.resolve().then(() => (init_open(), exports_open));
|
|
737
|
+
await open2(url);
|
|
713
738
|
}
|
|
714
739
|
};
|
|
715
|
-
async readFile(
|
|
740
|
+
async readFile(path3, options) {
|
|
716
741
|
try {
|
|
717
742
|
if (options) {
|
|
718
|
-
return await fs6.readFile(
|
|
743
|
+
return await fs6.readFile(path3, "utf-8");
|
|
719
744
|
}
|
|
720
|
-
return await fs6.readFile(
|
|
745
|
+
return await fs6.readFile(path3);
|
|
721
746
|
} catch (error) {
|
|
722
747
|
if (this.isEnoent(error))
|
|
723
748
|
return null;
|
|
@@ -946,8 +971,137 @@ function singleton(ctorOrName) {
|
|
|
946
971
|
// ../../common/src/telemetry/global-telemetry-properties.ts
|
|
947
972
|
var telemetryPropsSlot = singleton("TelemetryDefaultProps");
|
|
948
973
|
|
|
974
|
+
// ../../common/src/telemetry/telemetry-dimensions.ts
|
|
975
|
+
var BaseDimensions = {
|
|
976
|
+
ApplicationName: "ApplicationName",
|
|
977
|
+
ProductVersion: "ProductVersion",
|
|
978
|
+
InstallationId: "InstallationId",
|
|
979
|
+
CloudUserId: "CloudUserId",
|
|
980
|
+
CloudTenantId: "CloudTenantId",
|
|
981
|
+
CloudOrganizationId: "CloudOrganizationId",
|
|
982
|
+
IsInternalUser: "IsInternalUser",
|
|
983
|
+
Environment: "Environment",
|
|
984
|
+
BaseUrl: "BaseUrl",
|
|
985
|
+
Region: "Region",
|
|
986
|
+
Agent: "Agent",
|
|
987
|
+
AgentVersion: "AgentVersion",
|
|
988
|
+
AgentModel: "AgentModel",
|
|
989
|
+
ToolName: "ToolName",
|
|
990
|
+
ToolVersion: "ToolVersion",
|
|
991
|
+
ExecutionContext: "ExecutionContext",
|
|
992
|
+
CiProvider: "CiProvider",
|
|
993
|
+
SessionIdSource: "SessionIdSource",
|
|
994
|
+
SessionId: "SessionId"
|
|
995
|
+
};
|
|
996
|
+
var CommandDimensions = {
|
|
997
|
+
IsCommand: "IsCommand",
|
|
998
|
+
IsReexec: "IsReexec",
|
|
999
|
+
CommandName: "CommandName",
|
|
1000
|
+
ExitCode: "ExitCode",
|
|
1001
|
+
TerminalOutcome: "TerminalOutcome",
|
|
1002
|
+
ErrorClass: "ErrorClass",
|
|
1003
|
+
TerminalSignal: "TerminalSignal",
|
|
1004
|
+
ErrorMessage: "ErrorMessage",
|
|
1005
|
+
SkillName: "SkillName",
|
|
1006
|
+
ProductArea: "ProductArea",
|
|
1007
|
+
Mode: "Mode"
|
|
1008
|
+
};
|
|
1009
|
+
var ShipDimensions = {
|
|
1010
|
+
ShipKind: "ShipKind",
|
|
1011
|
+
Target: "Target",
|
|
1012
|
+
ProjectType: "ProjectType",
|
|
1013
|
+
ProjectTypes: "ProjectTypes",
|
|
1014
|
+
ArtifactCorrelationKey: "ArtifactCorrelationKey",
|
|
1015
|
+
PackageName: "PackageName",
|
|
1016
|
+
PackageVersion: "PackageVersion",
|
|
1017
|
+
PackageVersionKey: "PackageVersionKey",
|
|
1018
|
+
DeploymentKey: "DeploymentKey",
|
|
1019
|
+
SolutionId: "SolutionId",
|
|
1020
|
+
FolderKey: "FolderKey",
|
|
1021
|
+
FeedId: "FeedId"
|
|
1022
|
+
};
|
|
1023
|
+
var ErrorDimensions = {
|
|
1024
|
+
Result: "Result",
|
|
1025
|
+
ErrorCode: "ErrorCode",
|
|
1026
|
+
Retry: "Retry",
|
|
1027
|
+
ErrorMessage: "ErrorMessage"
|
|
1028
|
+
};
|
|
1029
|
+
var AuthDimensions = {
|
|
1030
|
+
AuthenticationMethod: "AuthenticationMethod",
|
|
1031
|
+
Success: "Success",
|
|
1032
|
+
Reason: "Reason"
|
|
1033
|
+
};
|
|
1034
|
+
var SkillsDimensions = {
|
|
1035
|
+
SchemaVersion: "SchemaVersion",
|
|
1036
|
+
AgentType: "AgentType",
|
|
1037
|
+
SkillsVersion: "SkillsVersion",
|
|
1038
|
+
UipSubcommand: "UipSubcommand",
|
|
1039
|
+
FileExtension: "FileExtension",
|
|
1040
|
+
SubagentModel: "SubagentModel",
|
|
1041
|
+
SubagentType: "SubagentType",
|
|
1042
|
+
PermissionMode: "PermissionMode",
|
|
1043
|
+
EffortLevel: "EffortLevel",
|
|
1044
|
+
SessionSource: "SessionSource",
|
|
1045
|
+
Outcome: "Outcome",
|
|
1046
|
+
DurationMs: "DurationMs",
|
|
1047
|
+
Source: "Source"
|
|
1048
|
+
};
|
|
1049
|
+
var PackagerDimensions = {
|
|
1050
|
+
ProjectId: "ProjectId",
|
|
1051
|
+
ProjectType: "ProjectType",
|
|
1052
|
+
SolutionId: "SolutionId"
|
|
1053
|
+
};
|
|
1054
|
+
var ScopeDimensions = {
|
|
1055
|
+
FolderId: "FolderId"
|
|
1056
|
+
};
|
|
1057
|
+
var ID_DIMENSIONS = new Set([
|
|
1058
|
+
BaseDimensions.CloudUserId,
|
|
1059
|
+
BaseDimensions.CloudTenantId,
|
|
1060
|
+
BaseDimensions.CloudOrganizationId,
|
|
1061
|
+
BaseDimensions.InstallationId,
|
|
1062
|
+
ShipDimensions.ArtifactCorrelationKey,
|
|
1063
|
+
ShipDimensions.PackageVersionKey,
|
|
1064
|
+
ShipDimensions.DeploymentKey,
|
|
1065
|
+
ShipDimensions.SolutionId,
|
|
1066
|
+
ShipDimensions.FolderKey,
|
|
1067
|
+
ShipDimensions.FeedId,
|
|
1068
|
+
PackagerDimensions.ProjectId
|
|
1069
|
+
]);
|
|
1070
|
+
var RESERVED_DIMENSION_NAMES = new Set([
|
|
1071
|
+
...Object.values(BaseDimensions),
|
|
1072
|
+
...Object.values(CommandDimensions),
|
|
1073
|
+
...Object.values(ShipDimensions),
|
|
1074
|
+
...Object.values(ErrorDimensions),
|
|
1075
|
+
...Object.values(AuthDimensions),
|
|
1076
|
+
...Object.values(SkillsDimensions),
|
|
1077
|
+
...Object.values(PackagerDimensions),
|
|
1078
|
+
...Object.values(ScopeDimensions)
|
|
1079
|
+
]);
|
|
1080
|
+
var CURATED_DIMENSIONS = new Set([
|
|
1081
|
+
BaseDimensions.ApplicationName,
|
|
1082
|
+
BaseDimensions.ProductVersion,
|
|
1083
|
+
BaseDimensions.InstallationId,
|
|
1084
|
+
BaseDimensions.CloudUserId,
|
|
1085
|
+
BaseDimensions.CloudTenantId,
|
|
1086
|
+
BaseDimensions.CloudOrganizationId,
|
|
1087
|
+
BaseDimensions.IsInternalUser,
|
|
1088
|
+
BaseDimensions.Environment,
|
|
1089
|
+
BaseDimensions.BaseUrl,
|
|
1090
|
+
BaseDimensions.Region,
|
|
1091
|
+
BaseDimensions.Agent,
|
|
1092
|
+
BaseDimensions.AgentVersion,
|
|
1093
|
+
BaseDimensions.ToolVersion,
|
|
1094
|
+
BaseDimensions.ExecutionContext,
|
|
1095
|
+
BaseDimensions.CiProvider,
|
|
1096
|
+
BaseDimensions.SessionIdSource,
|
|
1097
|
+
BaseDimensions.SessionId,
|
|
1098
|
+
...Object.values(CommandDimensions),
|
|
1099
|
+
...Object.values(ShipDimensions)
|
|
1100
|
+
]);
|
|
1101
|
+
|
|
949
1102
|
// ../../common/src/sdk-user-agent.ts
|
|
950
1103
|
var USER_AGENT_HEADER = "User-Agent";
|
|
1104
|
+
var AGENT_PROPERTY = BaseDimensions.Agent;
|
|
951
1105
|
var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
952
1106
|
function userAgentPatchKey(userAgent) {
|
|
953
1107
|
return Symbol.for(`@uipath/common/sdk-user-agent/${userAgent}`);
|
|
@@ -1321,7 +1475,7 @@ var package_default = {
|
|
|
1321
1475
|
name: "@uipath/aops-policy-sdk",
|
|
1322
1476
|
author: "UiPath",
|
|
1323
1477
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1324
|
-
version: "1.
|
|
1478
|
+
version: "1.204.0-preview.206",
|
|
1325
1479
|
description: "SDK for the UiPath AOps Governance API — policy management and deployment.",
|
|
1326
1480
|
repository: {
|
|
1327
1481
|
type: "git",
|
|
@@ -1356,6 +1510,7 @@ var package_default = {
|
|
|
1356
1510
|
private: false,
|
|
1357
1511
|
scripts: {
|
|
1358
1512
|
build: "bun build ./src/index.ts ./src/policy-resolver.ts --outdir dist --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
1513
|
+
typecheck: "tsc --noEmit",
|
|
1359
1514
|
generate: "bun run src/scripts/generate-sdk.ts",
|
|
1360
1515
|
lint: "biome check .",
|
|
1361
1516
|
test: "vitest run"
|
|
@@ -6942,8 +7097,8 @@ function resolveAuthProfileFilePath(profile) {
|
|
|
6942
7097
|
if (normalized === undefined) {
|
|
6943
7098
|
throw new AuthProfileValidationError(`"${DEFAULT_AUTH_PROFILE}" is the built-in profile and does not have a profile file path.`);
|
|
6944
7099
|
}
|
|
6945
|
-
const
|
|
6946
|
-
return
|
|
7100
|
+
const fs7 = getFileSystem();
|
|
7101
|
+
return fs7.path.join(fs7.env.homedir(), UIPATH_HOME_DIR, PROFILE_DIR, normalized, AUTH_FILENAME);
|
|
6947
7102
|
}
|
|
6948
7103
|
function getActiveAuthProfileFilePath() {
|
|
6949
7104
|
const profile = getActiveAuthProfile();
|
|
@@ -7055,6 +7210,11 @@ var pickName = (claims) => {
|
|
|
7055
7210
|
const username = asString(claims?.preferred_username);
|
|
7056
7211
|
return asString(claims?.name) ?? (looksLikeEmail(username) ? undefined : username);
|
|
7057
7212
|
};
|
|
7213
|
+
var pickScopes = (claims) => {
|
|
7214
|
+
const raw = claims?.scope;
|
|
7215
|
+
const scopes = Array.isArray(raw) ? raw.filter((entry) => asString(entry) !== undefined) : typeof raw === "string" ? raw.split(/\s+/).filter(Boolean) : [];
|
|
7216
|
+
return scopes.length > 0 ? scopes : undefined;
|
|
7217
|
+
};
|
|
7058
7218
|
var resolveSessionIdentity = (accessToken, authFlow) => {
|
|
7059
7219
|
const claims = accessToken ? decodeClaims(accessToken) : undefined;
|
|
7060
7220
|
const email = pickEmail(claims);
|
|
@@ -7080,6 +7240,7 @@ var resolveSessionIdentity = (accessToken, authFlow) => {
|
|
|
7080
7240
|
identity.clientId = clientId;
|
|
7081
7241
|
return identity;
|
|
7082
7242
|
};
|
|
7243
|
+
var readTokenScopes = (accessToken) => accessToken ? pickScopes(decodeClaims(accessToken)) : undefined;
|
|
7083
7244
|
|
|
7084
7245
|
// ../../auth/src/envAuth.ts
|
|
7085
7246
|
var ENV_AUTH_ENABLE_VAR = "UIPATH_CLI_ENABLE_ENV_AUTH";
|
|
@@ -7131,11 +7292,11 @@ var readAuthFromEnv = () => {
|
|
|
7131
7292
|
if (!rawUrl) {
|
|
7132
7293
|
throw new EnvAuthConfigError(`${ENV_AUTH_VARS.token} is not a JWT (treating it as an opaque token, ` + `e.g. a Personal Access Token). Set ${OPAQUE_TOKEN_BASE_URL_VAR} to the ` + `UiPath base URL if this is a PAT, or fix the token if it was meant to ` + `be a JWT (parse error: ${parseErrorMessage}).`);
|
|
7133
7294
|
}
|
|
7134
|
-
const
|
|
7295
|
+
const baseUrl2 = resolveBaseUrl(rawUrl, `Failed to validate ${OPAQUE_TOKEN_BASE_URL_VAR}`);
|
|
7135
7296
|
return {
|
|
7136
7297
|
loginStatus: "Logged in",
|
|
7137
7298
|
accessToken,
|
|
7138
|
-
baseUrl,
|
|
7299
|
+
baseUrl: baseUrl2,
|
|
7139
7300
|
organizationName,
|
|
7140
7301
|
organizationId,
|
|
7141
7302
|
tenantName,
|
|
@@ -7152,6 +7313,7 @@ var readAuthFromEnv = () => {
|
|
|
7152
7313
|
const expiration = getTokenExpiration(accessToken);
|
|
7153
7314
|
const loginStatus = expiration && expiration <= new Date ? "Expired" : "Logged in";
|
|
7154
7315
|
const identity = resolveSessionIdentity(accessToken);
|
|
7316
|
+
const scopes = readTokenScopes(accessToken);
|
|
7155
7317
|
return {
|
|
7156
7318
|
loginStatus,
|
|
7157
7319
|
accessToken,
|
|
@@ -7162,7 +7324,8 @@ var readAuthFromEnv = () => {
|
|
|
7162
7324
|
tenantId,
|
|
7163
7325
|
expiration,
|
|
7164
7326
|
source: "env-vars" /* EnvironmentVariables */,
|
|
7165
|
-
...identity ? { identity } : {}
|
|
7327
|
+
...identity ? { identity } : {},
|
|
7328
|
+
...scopes ? { scopes } : {}
|
|
7166
7329
|
};
|
|
7167
7330
|
};
|
|
7168
7331
|
|
|
@@ -7185,9 +7348,9 @@ function breakerPathFor(authPath) {
|
|
|
7185
7348
|
return `${authPath}${BREAKER_SUFFIX}`;
|
|
7186
7349
|
}
|
|
7187
7350
|
async function loadRefreshBreaker(authPath) {
|
|
7188
|
-
const
|
|
7351
|
+
const fs7 = getFileSystem();
|
|
7189
7352
|
try {
|
|
7190
|
-
const content = await
|
|
7353
|
+
const content = await fs7.readFile(breakerPathFor(authPath), "utf-8");
|
|
7191
7354
|
if (!content)
|
|
7192
7355
|
return {};
|
|
7193
7356
|
const parsed = JSON.parse(content);
|
|
@@ -7198,20 +7361,20 @@ async function loadRefreshBreaker(authPath) {
|
|
|
7198
7361
|
}
|
|
7199
7362
|
async function saveRefreshBreaker(authPath, state) {
|
|
7200
7363
|
try {
|
|
7201
|
-
const
|
|
7202
|
-
const
|
|
7203
|
-
await
|
|
7204
|
-
const tempPath = `${
|
|
7205
|
-
await
|
|
7206
|
-
await
|
|
7364
|
+
const fs7 = getFileSystem();
|
|
7365
|
+
const path3 = breakerPathFor(authPath);
|
|
7366
|
+
await fs7.mkdir(fs7.path.dirname(path3));
|
|
7367
|
+
const tempPath = `${path3}.tmp`;
|
|
7368
|
+
await fs7.writeFile(tempPath, JSON.stringify(state));
|
|
7369
|
+
await fs7.rename(tempPath, path3);
|
|
7207
7370
|
} catch {}
|
|
7208
7371
|
}
|
|
7209
7372
|
async function clearRefreshBreaker(authPath) {
|
|
7210
|
-
const
|
|
7211
|
-
const
|
|
7373
|
+
const fs7 = getFileSystem();
|
|
7374
|
+
const path3 = breakerPathFor(authPath);
|
|
7212
7375
|
try {
|
|
7213
|
-
if (await
|
|
7214
|
-
await
|
|
7376
|
+
if (await fs7.exists(path3)) {
|
|
7377
|
+
await fs7.rm(path3);
|
|
7215
7378
|
}
|
|
7216
7379
|
} catch {}
|
|
7217
7380
|
}
|
|
@@ -7233,13 +7396,13 @@ var ROBOT_USER_SERVICES_PIPE = "UiPathUserServices";
|
|
|
7233
7396
|
var ROBOT_USER_SERVICES_ALTERNATE_PIPE = `${ROBOT_USER_SERVICES_PIPE}Alternate`;
|
|
7234
7397
|
var PIPE_NAME_MAX_LENGTH = 103;
|
|
7235
7398
|
var getRobotIpcPipeNames = async () => {
|
|
7236
|
-
const
|
|
7237
|
-
const username =
|
|
7399
|
+
const fs7 = getFileSystem();
|
|
7400
|
+
const username = fs7.env.getenv("USER") ?? fs7.env.getenv("USERNAME");
|
|
7238
7401
|
if (!username) {
|
|
7239
7402
|
throw new Error("Unable to determine current username");
|
|
7240
7403
|
}
|
|
7241
|
-
const tempPath =
|
|
7242
|
-
return [ROBOT_USER_SERVICES_PIPE, ROBOT_USER_SERVICES_ALTERNATE_PIPE].map((baseName) =>
|
|
7404
|
+
const tempPath = fs7.env.getenv("TMPDIR") ?? "/tmp/";
|
|
7405
|
+
return [ROBOT_USER_SERVICES_PIPE, ROBOT_USER_SERVICES_ALTERNATE_PIPE].map((baseName) => fs7.path.join(tempPath, `${baseName}_${username}`).substring(0, PIPE_NAME_MAX_LENGTH));
|
|
7243
7406
|
};
|
|
7244
7407
|
var defaultIsRobotIpcAvailable = async () => {
|
|
7245
7408
|
if (process.platform === "win32") {
|
|
@@ -7249,20 +7412,20 @@ var defaultIsRobotIpcAvailable = async () => {
|
|
|
7249
7412
|
if (pipeNamesError || !pipeNames) {
|
|
7250
7413
|
return false;
|
|
7251
7414
|
}
|
|
7252
|
-
const
|
|
7415
|
+
const fs7 = getFileSystem();
|
|
7253
7416
|
for (const pipeName of pipeNames) {
|
|
7254
|
-
const [existsError,
|
|
7255
|
-
if (!existsError &&
|
|
7417
|
+
const [existsError, exists2] = await catchError(fs7.exists(pipeName));
|
|
7418
|
+
if (!existsError && exists2 === true) {
|
|
7256
7419
|
return true;
|
|
7257
7420
|
}
|
|
7258
7421
|
}
|
|
7259
7422
|
return false;
|
|
7260
7423
|
};
|
|
7261
|
-
var withTimeout = (promise, timeoutMs) => new Promise((
|
|
7424
|
+
var withTimeout = (promise, timeoutMs) => new Promise((resolve2, reject) => {
|
|
7262
7425
|
const timer = setTimeout(() => reject(new Error(`Robot IPC call timed out after ${timeoutMs}ms`)), timeoutMs);
|
|
7263
7426
|
promise.then((value) => {
|
|
7264
7427
|
clearTimeout(timer);
|
|
7265
|
-
|
|
7428
|
+
resolve2(value);
|
|
7266
7429
|
}, (error) => {
|
|
7267
7430
|
clearTimeout(timer);
|
|
7268
7431
|
reject(error);
|
|
@@ -7437,9 +7600,9 @@ var errorCode = (err) => {
|
|
|
7437
7600
|
}
|
|
7438
7601
|
return "EUNKNOWN";
|
|
7439
7602
|
};
|
|
7440
|
-
var probeAsync = async (
|
|
7603
|
+
var probeAsync = async (fs7, candidate) => {
|
|
7441
7604
|
try {
|
|
7442
|
-
const stats = await
|
|
7605
|
+
const stats = await fs7.stat(candidate);
|
|
7443
7606
|
if (stats === null) {
|
|
7444
7607
|
return { exists: false };
|
|
7445
7608
|
}
|
|
@@ -7466,36 +7629,36 @@ var probeAsync = async (fs, candidate) => {
|
|
|
7466
7629
|
}
|
|
7467
7630
|
};
|
|
7468
7631
|
var resolveEnvFileLocationAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) => {
|
|
7469
|
-
const
|
|
7470
|
-
if (
|
|
7471
|
-
const
|
|
7472
|
-
return
|
|
7632
|
+
const fs7 = getFileSystem();
|
|
7633
|
+
if (fs7.path.isAbsolute(envFilePath)) {
|
|
7634
|
+
const probe2 = await probeAsync(fs7, envFilePath);
|
|
7635
|
+
return probe2.exists ? { exists: true, absolutePath: envFilePath, source: "absolute" } : {
|
|
7473
7636
|
exists: false,
|
|
7474
7637
|
absolutePath: envFilePath,
|
|
7475
7638
|
source: "absolute",
|
|
7476
|
-
...
|
|
7639
|
+
...probe2.unusable ? { unusable: probe2.unusable } : {}
|
|
7477
7640
|
};
|
|
7478
7641
|
}
|
|
7479
|
-
const cwd = opts?.cwd ??
|
|
7642
|
+
const cwd = opts?.cwd ?? fs7.env.cwd();
|
|
7480
7643
|
let searchDir = cwd;
|
|
7481
7644
|
while (true) {
|
|
7482
|
-
const candidate =
|
|
7483
|
-
const
|
|
7484
|
-
if (
|
|
7645
|
+
const candidate = fs7.path.join(searchDir, envFilePath);
|
|
7646
|
+
const probe2 = await probeAsync(fs7, candidate);
|
|
7647
|
+
if (probe2.exists) {
|
|
7485
7648
|
return {
|
|
7486
7649
|
exists: true,
|
|
7487
7650
|
absolutePath: candidate,
|
|
7488
7651
|
source: searchDir === cwd ? "cwd" : "ancestor"
|
|
7489
7652
|
};
|
|
7490
7653
|
}
|
|
7491
|
-
const parentDir =
|
|
7654
|
+
const parentDir = fs7.path.dirname(searchDir);
|
|
7492
7655
|
if (parentDir === searchDir) {
|
|
7493
7656
|
break;
|
|
7494
7657
|
}
|
|
7495
7658
|
searchDir = parentDir;
|
|
7496
7659
|
}
|
|
7497
|
-
const homePath =
|
|
7498
|
-
const probe = await probeAsync(
|
|
7660
|
+
const homePath = fs7.path.join(fs7.env.homedir(), envFilePath);
|
|
7661
|
+
const probe = await probeAsync(fs7, homePath);
|
|
7499
7662
|
if (probe.exists) {
|
|
7500
7663
|
return { exists: true, absolutePath: homePath, source: "home" };
|
|
7501
7664
|
}
|
|
@@ -7538,12 +7701,12 @@ var parseEnvContent = (content) => {
|
|
|
7538
7701
|
return env;
|
|
7539
7702
|
};
|
|
7540
7703
|
var loadEnvFileAsync = async ({ envPath }) => {
|
|
7541
|
-
const
|
|
7542
|
-
const absolutePath =
|
|
7543
|
-
if (!await
|
|
7704
|
+
const fs7 = getFileSystem();
|
|
7705
|
+
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.cwd(), envPath);
|
|
7706
|
+
if (!await fs7.exists(absolutePath)) {
|
|
7544
7707
|
throw new Error(`Environment file not found: ${envPath}`);
|
|
7545
7708
|
}
|
|
7546
|
-
const content = await
|
|
7709
|
+
const content = await fs7.readFile(absolutePath, "utf-8");
|
|
7547
7710
|
if (content === null) {
|
|
7548
7711
|
throw new Error(`Environment file not found: ${envPath}`);
|
|
7549
7712
|
}
|
|
@@ -7554,10 +7717,10 @@ var saveEnvFileAsync = async ({
|
|
|
7554
7717
|
data,
|
|
7555
7718
|
merge = true
|
|
7556
7719
|
}) => {
|
|
7557
|
-
const
|
|
7558
|
-
const absolutePath =
|
|
7720
|
+
const fs7 = getFileSystem();
|
|
7721
|
+
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
|
|
7559
7722
|
let existingData = {};
|
|
7560
|
-
if (merge && await
|
|
7723
|
+
if (merge && await fs7.exists(absolutePath)) {
|
|
7561
7724
|
try {
|
|
7562
7725
|
existingData = await loadEnvFileAsync({ envPath: absolutePath });
|
|
7563
7726
|
} catch {}
|
|
@@ -7575,11 +7738,11 @@ var saveEnvFileAsync = async ({
|
|
|
7575
7738
|
const content = `${lines.join(`
|
|
7576
7739
|
`)}
|
|
7577
7740
|
`;
|
|
7578
|
-
const dir =
|
|
7579
|
-
await
|
|
7741
|
+
const dir = fs7.path.dirname(absolutePath);
|
|
7742
|
+
await fs7.mkdir(dir);
|
|
7580
7743
|
const tempPath = `${absolutePath}.tmp`;
|
|
7581
|
-
await
|
|
7582
|
-
await
|
|
7744
|
+
await fs7.writeFile(tempPath, content);
|
|
7745
|
+
await fs7.rename(tempPath, absolutePath);
|
|
7583
7746
|
};
|
|
7584
7747
|
|
|
7585
7748
|
// ../../auth/src/loginStatus.ts
|
|
@@ -7693,11 +7856,11 @@ async function loadFileCredentials(loadEnvFile, absolutePath) {
|
|
|
7693
7856
|
return { credentials };
|
|
7694
7857
|
}
|
|
7695
7858
|
async function getGlobalCredsHint(getFs, loadEnvFile, absolutePath, envFilePath) {
|
|
7696
|
-
const
|
|
7697
|
-
const globalPath =
|
|
7859
|
+
const fs7 = getFs();
|
|
7860
|
+
const globalPath = fs7.path.join(fs7.env.homedir(), envFilePath);
|
|
7698
7861
|
if (absolutePath === globalPath)
|
|
7699
7862
|
return;
|
|
7700
|
-
if (!await
|
|
7863
|
+
if (!await fs7.exists(globalPath))
|
|
7701
7864
|
return;
|
|
7702
7865
|
try {
|
|
7703
7866
|
const globalCreds = await loadEnvFile({ envPath: globalPath });
|
|
@@ -7804,10 +7967,15 @@ async function buildFileStatus(tokens, credentials, globalHint) {
|
|
|
7804
7967
|
}
|
|
7805
7968
|
function identityFields(accessToken, credentials) {
|
|
7806
7969
|
const identity = resolveSessionIdentity(accessToken, parseAuthFlow(credentials[AUTH_FLOW_ENV_VAR]));
|
|
7807
|
-
|
|
7970
|
+
const scopes = readTokenScopes(accessToken);
|
|
7971
|
+
return {
|
|
7972
|
+
...identity ? { identity } : {},
|
|
7973
|
+
...scopes ? { scopes } : {}
|
|
7974
|
+
};
|
|
7808
7975
|
}
|
|
7809
7976
|
function buildRobotStatus(robotCreds) {
|
|
7810
7977
|
const identity = resolveSessionIdentity(robotCreds.accessToken);
|
|
7978
|
+
const scopes = readTokenScopes(robotCreds.accessToken);
|
|
7811
7979
|
return {
|
|
7812
7980
|
loginStatus: "Logged in",
|
|
7813
7981
|
accessToken: robotCreds.accessToken,
|
|
@@ -7819,7 +7987,8 @@ function buildRobotStatus(robotCreds) {
|
|
|
7819
7987
|
issuer: robotCreds.issuer,
|
|
7820
7988
|
expiration: getTokenExpiration(robotCreds.accessToken),
|
|
7821
7989
|
source: "robot" /* Robot */,
|
|
7822
|
-
...identity ? { identity } : {}
|
|
7990
|
+
...identity ? { identity } : {},
|
|
7991
|
+
...scopes ? { scopes } : {}
|
|
7823
7992
|
};
|
|
7824
7993
|
}
|
|
7825
7994
|
var isFileNotFoundError = (error) => {
|
|
@@ -8513,4 +8682,4 @@ export {
|
|
|
8513
8682
|
querystring
|
|
8514
8683
|
};
|
|
8515
8684
|
|
|
8516
|
-
//# debugId=
|
|
8685
|
+
//# debugId=20E22859C569684064756E2164756E21
|
package/dist/policy-resolver.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __returnValue = (v) => v;
|
|
4
|
+
function __exportSetter(name, newValue) {
|
|
5
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
6
|
+
}
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
set: __exportSetter.bind(all, name)
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
1
19
|
// generated/src/runtime.ts
|
|
2
20
|
var BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
3
21
|
|
|
@@ -1966,4 +1984,4 @@ export {
|
|
|
1966
1984
|
resolvePolicyAsync
|
|
1967
1985
|
};
|
|
1968
1986
|
|
|
1969
|
-
//# debugId=
|
|
1987
|
+
//# debugId=EDDA3E2733C25B9F64756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/aops-policy-sdk",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.204.0-preview.206",
|
|
6
6
|
"description": "SDK for the UiPath AOps Governance API — policy management and deployment.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -35,12 +35,5 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"private": false,
|
|
38
|
-
"
|
|
39
|
-
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
40
|
-
"@types/node": "^25.5.2",
|
|
41
|
-
"@uipath/auth": "1.203.0",
|
|
42
|
-
"@uipath/common": "1.203.0",
|
|
43
|
-
"typescript": "^7.0.2"
|
|
44
|
-
},
|
|
45
|
-
"gitHead": "a10661bf5ec19ddd6c628ed7bb1db55f721a6027"
|
|
38
|
+
"gitHead": "ea7fd32a02acccf14e8e83522e69101430627b83"
|
|
46
39
|
}
|