@uipath/aops-policy-sdk 1.203.0-preview.203 → 1.203.0-preview.205
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 +95 -70
- 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;
|
|
@@ -1321,7 +1346,7 @@ var package_default = {
|
|
|
1321
1346
|
name: "@uipath/aops-policy-sdk",
|
|
1322
1347
|
author: "UiPath",
|
|
1323
1348
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1324
|
-
version: "1.203.0-preview.
|
|
1349
|
+
version: "1.203.0-preview.205",
|
|
1325
1350
|
description: "SDK for the UiPath AOps Governance API — policy management and deployment.",
|
|
1326
1351
|
repository: {
|
|
1327
1352
|
type: "git",
|
|
@@ -6942,8 +6967,8 @@ function resolveAuthProfileFilePath(profile) {
|
|
|
6942
6967
|
if (normalized === undefined) {
|
|
6943
6968
|
throw new AuthProfileValidationError(`"${DEFAULT_AUTH_PROFILE}" is the built-in profile and does not have a profile file path.`);
|
|
6944
6969
|
}
|
|
6945
|
-
const
|
|
6946
|
-
return
|
|
6970
|
+
const fs7 = getFileSystem();
|
|
6971
|
+
return fs7.path.join(fs7.env.homedir(), UIPATH_HOME_DIR, PROFILE_DIR, normalized, AUTH_FILENAME);
|
|
6947
6972
|
}
|
|
6948
6973
|
function getActiveAuthProfileFilePath() {
|
|
6949
6974
|
const profile = getActiveAuthProfile();
|
|
@@ -7131,11 +7156,11 @@ var readAuthFromEnv = () => {
|
|
|
7131
7156
|
if (!rawUrl) {
|
|
7132
7157
|
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
7158
|
}
|
|
7134
|
-
const
|
|
7159
|
+
const baseUrl2 = resolveBaseUrl(rawUrl, `Failed to validate ${OPAQUE_TOKEN_BASE_URL_VAR}`);
|
|
7135
7160
|
return {
|
|
7136
7161
|
loginStatus: "Logged in",
|
|
7137
7162
|
accessToken,
|
|
7138
|
-
baseUrl,
|
|
7163
|
+
baseUrl: baseUrl2,
|
|
7139
7164
|
organizationName,
|
|
7140
7165
|
organizationId,
|
|
7141
7166
|
tenantName,
|
|
@@ -7185,9 +7210,9 @@ function breakerPathFor(authPath) {
|
|
|
7185
7210
|
return `${authPath}${BREAKER_SUFFIX}`;
|
|
7186
7211
|
}
|
|
7187
7212
|
async function loadRefreshBreaker(authPath) {
|
|
7188
|
-
const
|
|
7213
|
+
const fs7 = getFileSystem();
|
|
7189
7214
|
try {
|
|
7190
|
-
const content = await
|
|
7215
|
+
const content = await fs7.readFile(breakerPathFor(authPath), "utf-8");
|
|
7191
7216
|
if (!content)
|
|
7192
7217
|
return {};
|
|
7193
7218
|
const parsed = JSON.parse(content);
|
|
@@ -7198,20 +7223,20 @@ async function loadRefreshBreaker(authPath) {
|
|
|
7198
7223
|
}
|
|
7199
7224
|
async function saveRefreshBreaker(authPath, state) {
|
|
7200
7225
|
try {
|
|
7201
|
-
const
|
|
7202
|
-
const
|
|
7203
|
-
await
|
|
7204
|
-
const tempPath = `${
|
|
7205
|
-
await
|
|
7206
|
-
await
|
|
7226
|
+
const fs7 = getFileSystem();
|
|
7227
|
+
const path3 = breakerPathFor(authPath);
|
|
7228
|
+
await fs7.mkdir(fs7.path.dirname(path3));
|
|
7229
|
+
const tempPath = `${path3}.tmp`;
|
|
7230
|
+
await fs7.writeFile(tempPath, JSON.stringify(state));
|
|
7231
|
+
await fs7.rename(tempPath, path3);
|
|
7207
7232
|
} catch {}
|
|
7208
7233
|
}
|
|
7209
7234
|
async function clearRefreshBreaker(authPath) {
|
|
7210
|
-
const
|
|
7211
|
-
const
|
|
7235
|
+
const fs7 = getFileSystem();
|
|
7236
|
+
const path3 = breakerPathFor(authPath);
|
|
7212
7237
|
try {
|
|
7213
|
-
if (await
|
|
7214
|
-
await
|
|
7238
|
+
if (await fs7.exists(path3)) {
|
|
7239
|
+
await fs7.rm(path3);
|
|
7215
7240
|
}
|
|
7216
7241
|
} catch {}
|
|
7217
7242
|
}
|
|
@@ -7233,13 +7258,13 @@ var ROBOT_USER_SERVICES_PIPE = "UiPathUserServices";
|
|
|
7233
7258
|
var ROBOT_USER_SERVICES_ALTERNATE_PIPE = `${ROBOT_USER_SERVICES_PIPE}Alternate`;
|
|
7234
7259
|
var PIPE_NAME_MAX_LENGTH = 103;
|
|
7235
7260
|
var getRobotIpcPipeNames = async () => {
|
|
7236
|
-
const
|
|
7237
|
-
const username =
|
|
7261
|
+
const fs7 = getFileSystem();
|
|
7262
|
+
const username = fs7.env.getenv("USER") ?? fs7.env.getenv("USERNAME");
|
|
7238
7263
|
if (!username) {
|
|
7239
7264
|
throw new Error("Unable to determine current username");
|
|
7240
7265
|
}
|
|
7241
|
-
const tempPath =
|
|
7242
|
-
return [ROBOT_USER_SERVICES_PIPE, ROBOT_USER_SERVICES_ALTERNATE_PIPE].map((baseName) =>
|
|
7266
|
+
const tempPath = fs7.env.getenv("TMPDIR") ?? "/tmp/";
|
|
7267
|
+
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
7268
|
};
|
|
7244
7269
|
var defaultIsRobotIpcAvailable = async () => {
|
|
7245
7270
|
if (process.platform === "win32") {
|
|
@@ -7249,20 +7274,20 @@ var defaultIsRobotIpcAvailable = async () => {
|
|
|
7249
7274
|
if (pipeNamesError || !pipeNames) {
|
|
7250
7275
|
return false;
|
|
7251
7276
|
}
|
|
7252
|
-
const
|
|
7277
|
+
const fs7 = getFileSystem();
|
|
7253
7278
|
for (const pipeName of pipeNames) {
|
|
7254
|
-
const [existsError,
|
|
7255
|
-
if (!existsError &&
|
|
7279
|
+
const [existsError, exists2] = await catchError(fs7.exists(pipeName));
|
|
7280
|
+
if (!existsError && exists2 === true) {
|
|
7256
7281
|
return true;
|
|
7257
7282
|
}
|
|
7258
7283
|
}
|
|
7259
7284
|
return false;
|
|
7260
7285
|
};
|
|
7261
|
-
var withTimeout = (promise, timeoutMs) => new Promise((
|
|
7286
|
+
var withTimeout = (promise, timeoutMs) => new Promise((resolve2, reject) => {
|
|
7262
7287
|
const timer = setTimeout(() => reject(new Error(`Robot IPC call timed out after ${timeoutMs}ms`)), timeoutMs);
|
|
7263
7288
|
promise.then((value) => {
|
|
7264
7289
|
clearTimeout(timer);
|
|
7265
|
-
|
|
7290
|
+
resolve2(value);
|
|
7266
7291
|
}, (error) => {
|
|
7267
7292
|
clearTimeout(timer);
|
|
7268
7293
|
reject(error);
|
|
@@ -7437,9 +7462,9 @@ var errorCode = (err) => {
|
|
|
7437
7462
|
}
|
|
7438
7463
|
return "EUNKNOWN";
|
|
7439
7464
|
};
|
|
7440
|
-
var probeAsync = async (
|
|
7465
|
+
var probeAsync = async (fs7, candidate) => {
|
|
7441
7466
|
try {
|
|
7442
|
-
const stats = await
|
|
7467
|
+
const stats = await fs7.stat(candidate);
|
|
7443
7468
|
if (stats === null) {
|
|
7444
7469
|
return { exists: false };
|
|
7445
7470
|
}
|
|
@@ -7466,36 +7491,36 @@ var probeAsync = async (fs, candidate) => {
|
|
|
7466
7491
|
}
|
|
7467
7492
|
};
|
|
7468
7493
|
var resolveEnvFileLocationAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) => {
|
|
7469
|
-
const
|
|
7470
|
-
if (
|
|
7471
|
-
const
|
|
7472
|
-
return
|
|
7494
|
+
const fs7 = getFileSystem();
|
|
7495
|
+
if (fs7.path.isAbsolute(envFilePath)) {
|
|
7496
|
+
const probe2 = await probeAsync(fs7, envFilePath);
|
|
7497
|
+
return probe2.exists ? { exists: true, absolutePath: envFilePath, source: "absolute" } : {
|
|
7473
7498
|
exists: false,
|
|
7474
7499
|
absolutePath: envFilePath,
|
|
7475
7500
|
source: "absolute",
|
|
7476
|
-
...
|
|
7501
|
+
...probe2.unusable ? { unusable: probe2.unusable } : {}
|
|
7477
7502
|
};
|
|
7478
7503
|
}
|
|
7479
|
-
const cwd = opts?.cwd ??
|
|
7504
|
+
const cwd = opts?.cwd ?? fs7.env.cwd();
|
|
7480
7505
|
let searchDir = cwd;
|
|
7481
7506
|
while (true) {
|
|
7482
|
-
const candidate =
|
|
7483
|
-
const
|
|
7484
|
-
if (
|
|
7507
|
+
const candidate = fs7.path.join(searchDir, envFilePath);
|
|
7508
|
+
const probe2 = await probeAsync(fs7, candidate);
|
|
7509
|
+
if (probe2.exists) {
|
|
7485
7510
|
return {
|
|
7486
7511
|
exists: true,
|
|
7487
7512
|
absolutePath: candidate,
|
|
7488
7513
|
source: searchDir === cwd ? "cwd" : "ancestor"
|
|
7489
7514
|
};
|
|
7490
7515
|
}
|
|
7491
|
-
const parentDir =
|
|
7516
|
+
const parentDir = fs7.path.dirname(searchDir);
|
|
7492
7517
|
if (parentDir === searchDir) {
|
|
7493
7518
|
break;
|
|
7494
7519
|
}
|
|
7495
7520
|
searchDir = parentDir;
|
|
7496
7521
|
}
|
|
7497
|
-
const homePath =
|
|
7498
|
-
const probe = await probeAsync(
|
|
7522
|
+
const homePath = fs7.path.join(fs7.env.homedir(), envFilePath);
|
|
7523
|
+
const probe = await probeAsync(fs7, homePath);
|
|
7499
7524
|
if (probe.exists) {
|
|
7500
7525
|
return { exists: true, absolutePath: homePath, source: "home" };
|
|
7501
7526
|
}
|
|
@@ -7538,12 +7563,12 @@ var parseEnvContent = (content) => {
|
|
|
7538
7563
|
return env;
|
|
7539
7564
|
};
|
|
7540
7565
|
var loadEnvFileAsync = async ({ envPath }) => {
|
|
7541
|
-
const
|
|
7542
|
-
const absolutePath =
|
|
7543
|
-
if (!await
|
|
7566
|
+
const fs7 = getFileSystem();
|
|
7567
|
+
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.cwd(), envPath);
|
|
7568
|
+
if (!await fs7.exists(absolutePath)) {
|
|
7544
7569
|
throw new Error(`Environment file not found: ${envPath}`);
|
|
7545
7570
|
}
|
|
7546
|
-
const content = await
|
|
7571
|
+
const content = await fs7.readFile(absolutePath, "utf-8");
|
|
7547
7572
|
if (content === null) {
|
|
7548
7573
|
throw new Error(`Environment file not found: ${envPath}`);
|
|
7549
7574
|
}
|
|
@@ -7554,10 +7579,10 @@ var saveEnvFileAsync = async ({
|
|
|
7554
7579
|
data,
|
|
7555
7580
|
merge = true
|
|
7556
7581
|
}) => {
|
|
7557
|
-
const
|
|
7558
|
-
const absolutePath =
|
|
7582
|
+
const fs7 = getFileSystem();
|
|
7583
|
+
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
|
|
7559
7584
|
let existingData = {};
|
|
7560
|
-
if (merge && await
|
|
7585
|
+
if (merge && await fs7.exists(absolutePath)) {
|
|
7561
7586
|
try {
|
|
7562
7587
|
existingData = await loadEnvFileAsync({ envPath: absolutePath });
|
|
7563
7588
|
} catch {}
|
|
@@ -7575,11 +7600,11 @@ var saveEnvFileAsync = async ({
|
|
|
7575
7600
|
const content = `${lines.join(`
|
|
7576
7601
|
`)}
|
|
7577
7602
|
`;
|
|
7578
|
-
const dir =
|
|
7579
|
-
await
|
|
7603
|
+
const dir = fs7.path.dirname(absolutePath);
|
|
7604
|
+
await fs7.mkdir(dir);
|
|
7580
7605
|
const tempPath = `${absolutePath}.tmp`;
|
|
7581
|
-
await
|
|
7582
|
-
await
|
|
7606
|
+
await fs7.writeFile(tempPath, content);
|
|
7607
|
+
await fs7.rename(tempPath, absolutePath);
|
|
7583
7608
|
};
|
|
7584
7609
|
|
|
7585
7610
|
// ../../auth/src/loginStatus.ts
|
|
@@ -7693,11 +7718,11 @@ async function loadFileCredentials(loadEnvFile, absolutePath) {
|
|
|
7693
7718
|
return { credentials };
|
|
7694
7719
|
}
|
|
7695
7720
|
async function getGlobalCredsHint(getFs, loadEnvFile, absolutePath, envFilePath) {
|
|
7696
|
-
const
|
|
7697
|
-
const globalPath =
|
|
7721
|
+
const fs7 = getFs();
|
|
7722
|
+
const globalPath = fs7.path.join(fs7.env.homedir(), envFilePath);
|
|
7698
7723
|
if (absolutePath === globalPath)
|
|
7699
7724
|
return;
|
|
7700
|
-
if (!await
|
|
7725
|
+
if (!await fs7.exists(globalPath))
|
|
7701
7726
|
return;
|
|
7702
7727
|
try {
|
|
7703
7728
|
const globalCreds = await loadEnvFile({ envPath: globalPath });
|
|
@@ -8513,4 +8538,4 @@ export {
|
|
|
8513
8538
|
querystring
|
|
8514
8539
|
};
|
|
8515
8540
|
|
|
8516
|
-
//# debugId=
|
|
8541
|
+
//# debugId=DE44DF1D35C5132364756E2164756E21
|
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.203.0-preview.
|
|
5
|
+
"version": "1.203.0-preview.205",
|
|
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": "d8d19829030cc590c630bebfc60a9d9fc7fa8c31"
|
|
46
39
|
}
|