@software-hardware-integration-lab/sdk-shield 3.0.0 → 3.5.2-beta.1e7cfc5
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/LICENSE +21 -0
- package/README.md +109 -0
- package/bin/index.d.ts +11 -0
- package/bin/index.js +175 -0
- package/bin/sdk/api/auth/id/index.d.ts +55 -0
- package/bin/sdk/api/auth/id/index.js +26 -0
- package/bin/sdk/api/auth/index.d.ts +19 -0
- package/bin/sdk/api/auth/index.js +7 -0
- package/bin/sdk/api/core/health/index.d.ts +26 -0
- package/bin/sdk/api/core/health/index.js +12 -0
- package/bin/sdk/api/core/index.d.ts +24 -0
- package/bin/sdk/api/core/index.js +11 -0
- package/bin/sdk/api/core/systemRequirements/index.d.ts +27 -0
- package/bin/sdk/api/core/systemRequirements/index.js +10 -0
- package/bin/sdk/api/defend/device/index.d.ts +26 -0
- package/bin/sdk/api/defend/device/index.js +12 -0
- package/bin/sdk/api/defend/device/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/device/item/index.js +7 -0
- package/bin/sdk/api/defend/device/item/type/index.d.ts +26 -0
- package/bin/sdk/api/defend/device/item/type/index.js +12 -0
- package/bin/sdk/api/defend/device/item/type/item/index.d.ts +38 -0
- package/bin/sdk/api/defend/device/item/type/item/index.js +14 -0
- package/bin/sdk/api/defend/device/item/type/privileged/assign/index.d.ts +106 -0
- package/bin/sdk/api/defend/device/item/type/privileged/assign/index.js +59 -0
- package/bin/sdk/api/defend/device/item/type/privileged/index.d.ts +19 -0
- package/bin/sdk/api/defend/device/item/type/privileged/index.js +7 -0
- package/bin/sdk/api/defend/device/type/index.d.ts +26 -0
- package/bin/sdk/api/defend/device/type/index.js +12 -0
- package/bin/sdk/api/defend/device/type/item/index.d.ts +80 -0
- package/bin/sdk/api/defend/device/type/item/index.js +35 -0
- package/bin/sdk/api/defend/device/type/privileged/index.d.ts +80 -0
- package/bin/sdk/api/defend/device/type/privileged/index.js +35 -0
- package/bin/sdk/api/defend/index.d.ts +34 -0
- package/bin/sdk/api/defend/index.js +19 -0
- package/bin/sdk/api/defend/intermediary/index.d.ts +26 -0
- package/bin/sdk/api/defend/intermediary/index.js +12 -0
- package/bin/sdk/api/defend/intermediary/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/item/index.js +7 -0
- package/bin/sdk/api/defend/intermediary/item/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/intermediary/item/type/index.js +8 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/index.js +7 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/index.d.ts +125 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/index.js +64 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/item/index.d.ts +27 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/assign/item/index.js +10 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.d.ts +47 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.js +21 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/item/type/item/offering/index.js +8 -0
- package/bin/sdk/api/defend/intermediary/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/intermediary/type/index.js +8 -0
- package/bin/sdk/api/defend/intermediary/type/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/type/item/index.js +7 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.d.ts +40 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/eighta921026Ec064e08Af198812e161e61f/index.js +10 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/index.d.ts +19 -0
- package/bin/sdk/api/defend/intermediary/type/item/offering/index.js +7 -0
- package/bin/sdk/api/defend/marketplace/index.d.ts +19 -0
- package/bin/sdk/api/defend/marketplace/index.js +7 -0
- package/bin/sdk/api/defend/marketplace/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/marketplace/type/index.js +8 -0
- package/bin/sdk/api/defend/marketplace/type/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/marketplace/type/item/index.js +7 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/index.d.ts +21 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/index.js +8 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/item/index.d.ts +54 -0
- package/bin/sdk/api/defend/marketplace/type/item/offering/item/index.js +29 -0
- package/bin/sdk/api/defend/user/index.d.ts +26 -0
- package/bin/sdk/api/defend/user/index.js +12 -0
- package/bin/sdk/api/defend/user/item/index.d.ts +19 -0
- package/bin/sdk/api/defend/user/item/index.js +7 -0
- package/bin/sdk/api/defend/user/item/type/index.d.ts +21 -0
- package/bin/sdk/api/defend/user/item/type/index.js +8 -0
- package/bin/sdk/api/defend/user/item/type/item/index.d.ts +38 -0
- package/bin/sdk/api/defend/user/item/type/item/index.js +14 -0
- package/bin/sdk/api/defend/user/type/index.d.ts +26 -0
- package/bin/sdk/api/defend/user/type/index.js +12 -0
- package/bin/sdk/api/defend/user/type/item/index.d.ts +80 -0
- package/bin/sdk/api/defend/user/type/item/index.js +35 -0
- package/bin/sdk/api/defend/user/type/privileged/index.d.ts +80 -0
- package/bin/sdk/api/defend/user/type/privileged/index.js +35 -0
- package/bin/sdk/api/deploy/analyze/index.d.ts +19 -0
- package/bin/sdk/api/deploy/analyze/index.js +7 -0
- package/bin/sdk/api/deploy/analyze/invoke/index.d.ts +48 -0
- package/bin/sdk/api/deploy/analyze/invoke/index.js +22 -0
- package/bin/sdk/api/deploy/breakGlass/index.d.ts +63 -0
- package/bin/sdk/api/deploy/breakGlass/index.js +30 -0
- package/bin/sdk/api/deploy/compare/index.d.ts +36 -0
- package/bin/sdk/api/deploy/compare/index.js +16 -0
- package/bin/sdk/api/deploy/compare/invoke/index.d.ts +29 -0
- package/bin/sdk/api/deploy/compare/invoke/index.js +12 -0
- package/bin/sdk/api/deploy/component/architecture/index.d.ts +27 -0
- package/bin/sdk/api/deploy/component/architecture/index.js +10 -0
- package/bin/sdk/api/deploy/component/configurationCategory/index.d.ts +27 -0
- package/bin/sdk/api/deploy/component/configurationCategory/index.js +10 -0
- package/bin/sdk/api/deploy/component/configurationItem/index.d.ts +38 -0
- package/bin/sdk/api/deploy/component/configurationItem/index.js +17 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/docs/index.d.ts +27 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/docs/index.js +10 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/index.d.ts +19 -0
- package/bin/sdk/api/deploy/component/configurationItem/item/index.js +7 -0
- package/bin/sdk/api/deploy/component/index.d.ts +29 -0
- package/bin/sdk/api/deploy/component/index.js +16 -0
- package/bin/sdk/api/deploy/errors/index.d.ts +55 -0
- package/bin/sdk/api/deploy/errors/index.js +26 -0
- package/bin/sdk/api/deploy/index.d.ts +214 -0
- package/bin/sdk/api/deploy/index.js +130 -0
- package/bin/sdk/api/deploy/progress/index.d.ts +42 -0
- package/bin/sdk/api/deploy/progress/index.js +15 -0
- package/bin/sdk/api/deploy/remediate/index.d.ts +69 -0
- package/bin/sdk/api/deploy/remediate/index.js +34 -0
- package/bin/sdk/api/deploy/remove/index.d.ts +37 -0
- package/bin/sdk/api/deploy/remove/index.js +13 -0
- package/bin/sdk/api/deploy/restore/index.d.ts +21 -0
- package/bin/sdk/api/deploy/restore/index.js +8 -0
- package/bin/sdk/api/deploy/restore/item/index.d.ts +28 -0
- package/bin/sdk/api/deploy/restore/item/index.js +11 -0
- package/bin/sdk/api/deploy/skip/index.d.ts +61 -0
- package/bin/sdk/api/deploy/skip/index.js +28 -0
- package/bin/sdk/api/deploy/skip/item/index.d.ts +41 -0
- package/bin/sdk/api/deploy/skip/item/index.js +18 -0
- package/bin/sdk/api/deploy/validate/index.d.ts +29 -0
- package/bin/sdk/api/deploy/validate/index.js +13 -0
- package/bin/sdk/api/discover/architectureReport/correlation/index.d.ts +38 -0
- package/bin/sdk/api/discover/architectureReport/correlation/index.js +17 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/data/index.d.ts +27 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/data/index.js +10 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/index.d.ts +19 -0
- package/bin/sdk/api/discover/architectureReport/correlation/item/index.js +7 -0
- package/bin/sdk/api/discover/architectureReport/index.d.ts +19 -0
- package/bin/sdk/api/discover/architectureReport/index.js +8 -0
- package/bin/sdk/api/discover/cache/index.d.ts +19 -0
- package/bin/sdk/api/discover/cache/index.js +7 -0
- package/bin/sdk/api/discover/cache/reset/index.d.ts +25 -0
- package/bin/sdk/api/discover/cache/reset/index.js +7 -0
- package/bin/sdk/api/discover/index.d.ts +44 -0
- package/bin/sdk/api/discover/index.js +27 -0
- package/bin/sdk/api/discover/licenseReport/correlation/index.d.ts +38 -0
- package/bin/sdk/api/discover/licenseReport/correlation/index.js +17 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/data/index.d.ts +27 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/data/index.js +10 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/index.d.ts +19 -0
- package/bin/sdk/api/discover/licenseReport/correlation/item/index.js +7 -0
- package/bin/sdk/api/discover/licenseReport/index.d.ts +19 -0
- package/bin/sdk/api/discover/licenseReport/index.js +8 -0
- package/bin/sdk/api/discover/progress/index.d.ts +27 -0
- package/bin/sdk/api/discover/progress/index.js +10 -0
- package/bin/sdk/api/discover/report/index.d.ts +25 -0
- package/bin/sdk/api/discover/report/index.js +7 -0
- package/bin/sdk/api/discover/status/index.d.ts +27 -0
- package/bin/sdk/api/discover/status/index.js +10 -0
- package/bin/sdk/api/index.d.ts +44 -0
- package/bin/sdk/api/index.js +29 -0
- package/bin/sdk/api/update/check/channel/index.d.ts +21 -0
- package/bin/sdk/api/update/check/channel/index.js +8 -0
- package/bin/sdk/api/update/check/channel/item/index.d.ts +51 -0
- package/bin/sdk/api/update/check/channel/item/index.js +24 -0
- package/bin/sdk/api/update/check/index.d.ts +60 -0
- package/bin/sdk/api/update/check/index.js +30 -0
- package/bin/sdk/api/update/index.d.ts +45 -0
- package/bin/sdk/api/update/index.js +25 -0
- package/bin/sdk/api/update/install/channel/index.d.ts +21 -0
- package/bin/sdk/api/update/install/channel/index.js +8 -0
- package/bin/sdk/api/update/install/channel/item/index.d.ts +25 -0
- package/bin/sdk/api/update/install/channel/item/index.js +7 -0
- package/bin/sdk/api/update/install/index.d.ts +34 -0
- package/bin/sdk/api/update/install/index.js +13 -0
- package/bin/sdk/api/update/upload/index.d.ts +27 -0
- package/bin/sdk/api/update/upload/index.js +9 -0
- package/bin/sdk/models/architectureReport/index.d.ts +49 -0
- package/bin/sdk/models/architectureReport/index.js +25 -0
- package/bin/sdk/models/core/index.d.ts +137 -0
- package/bin/sdk/models/core/index.js +71 -0
- package/bin/sdk/models/deploy/index.d.ts +677 -0
- package/bin/sdk/models/deploy/index.js +364 -0
- package/bin/sdk/models/discover/architectureReport/index.d.ts +61 -0
- package/bin/sdk/models/discover/architectureReport/index.js +31 -0
- package/bin/sdk/models/discover/index.d.ts +29 -0
- package/bin/sdk/models/discover/index.js +15 -0
- package/bin/sdk/models/index.d.ts +165 -0
- package/bin/sdk/models/index.js +88 -0
- package/bin/sdk/models/licenseReport/index.d.ts +49 -0
- package/bin/sdk/models/licenseReport/index.js +25 -0
- package/bin/sdk/models/managedObject/index.d.ts +287 -0
- package/bin/sdk/models/managedObject/index.js +140 -0
- package/bin/sdk/models/objectPage/index.d.ts +174 -0
- package/bin/sdk/models/objectPage/index.js +103 -0
- package/bin/sdk/models/objectPage/intermediary/index.d.ts +60 -0
- package/bin/sdk/models/objectPage/intermediary/index.js +36 -0
- package/bin/sdk/shieldClient.d.ts +24 -0
- package/bin/sdk/shieldClient.js +35 -0
- package/package.json +205 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 SHI International Corp.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# SHIELD - TypeScript SDK
|
|
2
|
+
|
|
3
|
+
This SDK provides a convenient TypeScript client for interacting with the SHI SHIELD service. It is automatically generated from the OpenAPI specification located at [`SHIELD.json`](https://github.com/Software-Hardware-Integration-Lab/OpenAPI/blob/main/specs/SHIELD.json) using [Kiota](https://github.com/microsoft/kiota).
|
|
4
|
+
|
|
5
|
+
All typing data is included in the package.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Install the SDK using npm:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @shi-corp/sdk-shield
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Here's a basic example of how to use the SDK:
|
|
18
|
+
|
|
19
|
+
```TypeScript
|
|
20
|
+
import { DefaultAzureCredential } from '@azure/identity'
|
|
21
|
+
import { shieldClientFactory } from '@shi-corp/sdk-shield';
|
|
22
|
+
|
|
23
|
+
/** Authentication session used to authenticate to SHIELD. */
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
|
|
26
|
+
/** Base URL for your SHIELD instance. Protocol specifier (`http`/`https`) is required, even for localhost. */
|
|
27
|
+
const baseUrl = new URL('https://shield.example.com');
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Configured client for SHIELD that can make authenticated web requests against SDG.
|
|
31
|
+
*
|
|
32
|
+
* The third param, the scope is the `Application ID` of the `SHIELD - End User Login` app registration. This can also be found on SHIELD's `/Api/Auth/Id` endpoint.
|
|
33
|
+
*/
|
|
34
|
+
const shieldClient = shieldClientFactory(credential, baseUrl, ['b9689d4e-0036-4f2f-8430-07adedb9ae7c/.default']);
|
|
35
|
+
|
|
36
|
+
/** Flag that indicates if discover is currently running (`true`) or not (`false`). */
|
|
37
|
+
const results = await shieldClient.api.discover.status.get();
|
|
38
|
+
|
|
39
|
+
// Check if discover is currently running
|
|
40
|
+
if (results?.running === true) {
|
|
41
|
+
// Do something
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Advanced Usage
|
|
46
|
+
|
|
47
|
+
You can optionally configure the SDK client with a custom base URL, including support for it being nested deep in a L7 load balancer:
|
|
48
|
+
|
|
49
|
+
```TypeScript
|
|
50
|
+
/** Custom host and endpoint base to as an example for something behind a layer 7 load balancer, E.g. Azure App Gateway or Azure API Gateway. If in debug mode, run against localhost. */
|
|
51
|
+
const customBaseUrl = debugMode ? new URL('http://localhost:3000') : new URL('https://custom-host.example.com/Ballance/Instance1/');
|
|
52
|
+
|
|
53
|
+
/** Configured instance of the SHIELD client. */
|
|
54
|
+
const customConfiguredClient = shieldClientFactory(credential, customBaseUrl);
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
and/or scope (permission) list:
|
|
58
|
+
|
|
59
|
+
```TypeScript
|
|
60
|
+
/**
|
|
61
|
+
* `.default` and explicit permissions can't exist in the same custom scope list at the same time, Entra ID doesn't support this.
|
|
62
|
+
*
|
|
63
|
+
* If not providing the `.default` scope, you can have any number of scopes (permissions) listed in different array indexes.
|
|
64
|
+
*/
|
|
65
|
+
const customScopes = ['your-custom-scope/something.read.all', 'your-custom-scope/everything.readwrite.all'];
|
|
66
|
+
|
|
67
|
+
// Initialize the SDK client with custom configuration.
|
|
68
|
+
const customConfiguredClient = shieldClientFactory(credential, void 0, customScopes);
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Project Structure
|
|
72
|
+
|
|
73
|
+
- `bin/`: Compiled JavaScript files and type definitions.
|
|
74
|
+
- `sdk/`: Source TypeScript files generated by Kiota.
|
|
75
|
+
- `api/`: API endpoint definitions.
|
|
76
|
+
- `models/`: Data models used by the SDK.
|
|
77
|
+
|
|
78
|
+
## Development
|
|
79
|
+
|
|
80
|
+
### Prerequisites
|
|
81
|
+
|
|
82
|
+
- [Node.js](https://nodejs.org/) - Latest LTS version
|
|
83
|
+
- [Kiota](https://github.com/microsoft/kiota)
|
|
84
|
+
|
|
85
|
+
### Generating the SDK
|
|
86
|
+
|
|
87
|
+
To regenerate the SDK from the OpenAPI specification, run:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npm run generate:Sdk
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Building the SDK
|
|
94
|
+
|
|
95
|
+
To build the SDK for production, run:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
npm run build:Prod
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## License
|
|
102
|
+
|
|
103
|
+
This SDK is licensed under the [MIT License](./LICENSE).
|
|
104
|
+
|
|
105
|
+
## Support
|
|
106
|
+
|
|
107
|
+
For issues or feature requests, please visit the [GitHub Issues page](https://github.com/Software-Hardware-Integration-Lab/OpenAPI/issues).
|
|
108
|
+
|
|
109
|
+
For more information, visit the [official documentation](https://docs.shilab.com).
|
package/bin/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
2
|
+
import { createShieldClient } from './sdk/shieldClient.js';
|
|
3
|
+
export type * from './sdk/models/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Function that initializes the SHIELD SDK.
|
|
6
|
+
* @param credential Configured authentication session from Entra ID.
|
|
7
|
+
* @param baseUrl Root of the URL that should have endpoints appended to it by the query building system.
|
|
8
|
+
* @param scopeList Where each array item is a different Entra ID standard scope to request on token retrieval. E.g. `['313f3894-325a-4aae-ba2b-bbdfdc1f063b/.default']`.
|
|
9
|
+
* @returns Configured API client that is able to make requests against the specified SHIELD instance.
|
|
10
|
+
*/
|
|
11
|
+
export declare function shieldClientFactory(credential: TokenCredential, baseUrl: URL, scopeList: string[]): ReturnType<typeof createShieldClient>;
|
package/bin/index.js
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
2
|
+
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString";
|
|
3
|
+
import { assert, assertGuardEquals } from 'typia';
|
|
4
|
+
import { AzureIdentityAuthenticationProvider } from '@microsoft/kiota-authentication-azure';
|
|
5
|
+
import { FetchRequestAdapter } from '@microsoft/kiota-http-fetchlibrary';
|
|
6
|
+
import { createShieldClient } from './sdk/shieldClient.js';
|
|
7
|
+
export function shieldClientFactory(credential, baseUrl, scopeList) {
|
|
8
|
+
(() => { const _io0 = input => true; const _ao0 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
9
|
+
if (false === __is(input)) {
|
|
10
|
+
_errorFactory = errorFactory;
|
|
11
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
12
|
+
method: "assert",
|
|
13
|
+
path: _path + "",
|
|
14
|
+
expected: "TokenCredential",
|
|
15
|
+
value: input
|
|
16
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
17
|
+
method: "assert",
|
|
18
|
+
path: _path + "",
|
|
19
|
+
expected: "TokenCredential",
|
|
20
|
+
value: input
|
|
21
|
+
}, _errorFactory))(input, "$input", true);
|
|
22
|
+
}
|
|
23
|
+
return input;
|
|
24
|
+
}; })()(credential);
|
|
25
|
+
(() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.hash && "string" === typeof input.host && "string" === typeof input.hostname && "string" === typeof input.href && "string" === typeof input.origin && "string" === typeof input.password && "string" === typeof input.pathname && "string" === typeof input.port && "string" === typeof input.protocol && "string" === typeof input.search && ("object" === typeof input.searchParams && null !== input.searchParams && _io1(input.searchParams, true && _exceptionable)) && "string" === typeof input.username && (12 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
26
|
+
if (["hash", "host", "hostname", "href", "origin", "password", "pathname", "port", "protocol", "search", "searchParams", "username"].some(prop => key === prop))
|
|
27
|
+
return true;
|
|
28
|
+
const value = input[key];
|
|
29
|
+
if (undefined === value)
|
|
30
|
+
return true;
|
|
31
|
+
return false;
|
|
32
|
+
})); const _io1 = (input, _exceptionable = true) => "number" === typeof input.size && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
33
|
+
if (["size"].some(prop => key === prop))
|
|
34
|
+
return true;
|
|
35
|
+
const value = input[key];
|
|
36
|
+
if (undefined === value)
|
|
37
|
+
return true;
|
|
38
|
+
return false;
|
|
39
|
+
})); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.hash || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
40
|
+
method: "assertGuardEquals",
|
|
41
|
+
path: _path + ".hash",
|
|
42
|
+
expected: "string",
|
|
43
|
+
value: input.hash
|
|
44
|
+
}, _errorFactory)) && ("string" === typeof input.host || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
45
|
+
method: "assertGuardEquals",
|
|
46
|
+
path: _path + ".host",
|
|
47
|
+
expected: "string",
|
|
48
|
+
value: input.host
|
|
49
|
+
}, _errorFactory)) && ("string" === typeof input.hostname || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
50
|
+
method: "assertGuardEquals",
|
|
51
|
+
path: _path + ".hostname",
|
|
52
|
+
expected: "string",
|
|
53
|
+
value: input.hostname
|
|
54
|
+
}, _errorFactory)) && ("string" === typeof input.href || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
55
|
+
method: "assertGuardEquals",
|
|
56
|
+
path: _path + ".href",
|
|
57
|
+
expected: "string",
|
|
58
|
+
value: input.href
|
|
59
|
+
}, _errorFactory)) && ("string" === typeof input.origin || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
60
|
+
method: "assertGuardEquals",
|
|
61
|
+
path: _path + ".origin",
|
|
62
|
+
expected: "string",
|
|
63
|
+
value: input.origin
|
|
64
|
+
}, _errorFactory)) && ("string" === typeof input.password || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
65
|
+
method: "assertGuardEquals",
|
|
66
|
+
path: _path + ".password",
|
|
67
|
+
expected: "string",
|
|
68
|
+
value: input.password
|
|
69
|
+
}, _errorFactory)) && ("string" === typeof input.pathname || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
70
|
+
method: "assertGuardEquals",
|
|
71
|
+
path: _path + ".pathname",
|
|
72
|
+
expected: "string",
|
|
73
|
+
value: input.pathname
|
|
74
|
+
}, _errorFactory)) && ("string" === typeof input.port || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
75
|
+
method: "assertGuardEquals",
|
|
76
|
+
path: _path + ".port",
|
|
77
|
+
expected: "string",
|
|
78
|
+
value: input.port
|
|
79
|
+
}, _errorFactory)) && ("string" === typeof input.protocol || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
80
|
+
method: "assertGuardEquals",
|
|
81
|
+
path: _path + ".protocol",
|
|
82
|
+
expected: "string",
|
|
83
|
+
value: input.protocol
|
|
84
|
+
}, _errorFactory)) && ("string" === typeof input.search || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
85
|
+
method: "assertGuardEquals",
|
|
86
|
+
path: _path + ".search",
|
|
87
|
+
expected: "string",
|
|
88
|
+
value: input.search
|
|
89
|
+
}, _errorFactory)) && (("object" === typeof input.searchParams && null !== input.searchParams || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
90
|
+
method: "assertGuardEquals",
|
|
91
|
+
path: _path + ".searchParams",
|
|
92
|
+
expected: "URLSearchParams",
|
|
93
|
+
value: input.searchParams
|
|
94
|
+
}, _errorFactory)) && _ao1(input.searchParams, _path + ".searchParams", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
95
|
+
method: "assertGuardEquals",
|
|
96
|
+
path: _path + ".searchParams",
|
|
97
|
+
expected: "URLSearchParams",
|
|
98
|
+
value: input.searchParams
|
|
99
|
+
}, _errorFactory)) && ("string" === typeof input.username || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
100
|
+
method: "assertGuardEquals",
|
|
101
|
+
path: _path + ".username",
|
|
102
|
+
expected: "string",
|
|
103
|
+
value: input.username
|
|
104
|
+
}, _errorFactory)) && (12 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
105
|
+
if (["hash", "host", "hostname", "href", "origin", "password", "pathname", "port", "protocol", "search", "searchParams", "username"].some(prop => key === prop))
|
|
106
|
+
return true;
|
|
107
|
+
const value = input[key];
|
|
108
|
+
if (undefined === value)
|
|
109
|
+
return true;
|
|
110
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
111
|
+
method: "assertGuardEquals",
|
|
112
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
113
|
+
expected: "undefined",
|
|
114
|
+
value: value
|
|
115
|
+
}, _errorFactory);
|
|
116
|
+
}))); const _ao1 = (input, _path, _exceptionable = true) => ("number" === typeof input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
117
|
+
method: "assertGuardEquals",
|
|
118
|
+
path: _path + ".size",
|
|
119
|
+
expected: "number",
|
|
120
|
+
value: input.size
|
|
121
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
122
|
+
if (["size"].some(prop => key === prop))
|
|
123
|
+
return true;
|
|
124
|
+
const value = input[key];
|
|
125
|
+
if (undefined === value)
|
|
126
|
+
return true;
|
|
127
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
128
|
+
method: "assertGuardEquals",
|
|
129
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
130
|
+
expected: "undefined",
|
|
131
|
+
value: value
|
|
132
|
+
}, _errorFactory);
|
|
133
|
+
}))); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let _errorFactory; return (input, errorFactory) => {
|
|
134
|
+
if (false === __is(input)) {
|
|
135
|
+
_errorFactory = errorFactory;
|
|
136
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
137
|
+
method: "assertGuardEquals",
|
|
138
|
+
path: _path + "",
|
|
139
|
+
expected: "URL",
|
|
140
|
+
value: input
|
|
141
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
142
|
+
method: "assertGuardEquals",
|
|
143
|
+
path: _path + "",
|
|
144
|
+
expected: "URL",
|
|
145
|
+
value: input
|
|
146
|
+
}, _errorFactory))(input, "$input", true);
|
|
147
|
+
}
|
|
148
|
+
}; })()(baseUrl);
|
|
149
|
+
(() => { const __is = (input, _exceptionable = true) => Array.isArray(input) && input.every((elem, _index1) => "string" === typeof elem); let _errorFactory; return (input, errorFactory) => {
|
|
150
|
+
if (false === __is(input)) {
|
|
151
|
+
_errorFactory = errorFactory;
|
|
152
|
+
((input, _path, _exceptionable = true) => (Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
153
|
+
method: "assertGuardEquals",
|
|
154
|
+
path: _path + "",
|
|
155
|
+
expected: "Array<string>",
|
|
156
|
+
value: input
|
|
157
|
+
}, _errorFactory)) && input.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(true, {
|
|
158
|
+
method: "assertGuardEquals",
|
|
159
|
+
path: _path + "[" + _index2 + "]",
|
|
160
|
+
expected: "string",
|
|
161
|
+
value: elem
|
|
162
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
|
|
163
|
+
method: "assertGuardEquals",
|
|
164
|
+
path: _path + "",
|
|
165
|
+
expected: "Array<string>",
|
|
166
|
+
value: input
|
|
167
|
+
}, _errorFactory))(input, "$input", true);
|
|
168
|
+
}
|
|
169
|
+
}; })()(scopeList);
|
|
170
|
+
const allowedHostList = new Set([baseUrl.host]);
|
|
171
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, scopeList, void 0, allowedHostList);
|
|
172
|
+
const shieldAdapter = new FetchRequestAdapter(authProvider);
|
|
173
|
+
shieldAdapter.baseUrl = baseUrl.href.endsWith('/') ? baseUrl.href.substring(0, baseUrl.href.length - 1) : baseUrl.href;
|
|
174
|
+
return createShieldClient(shieldAdapter);
|
|
175
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type Guid, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
+
* @returns {IdGetResponse}
|
|
6
|
+
*/
|
|
7
|
+
export declare function createIdGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
8
|
+
/**
|
|
9
|
+
* The deserialization information for the current model
|
|
10
|
+
* @param IdGetResponse The instance to deserialize into.
|
|
11
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
12
|
+
*/
|
|
13
|
+
export declare function deserializeIntoIdGetResponse(idGetResponse?: Partial<IdGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
14
|
+
export interface IdGetResponse extends AdditionalDataHolder, Parsable {
|
|
15
|
+
/**
|
|
16
|
+
* Application ID that should be used in Access Tokens as the audience and the endpoint necessary for auth code flows.
|
|
17
|
+
*/
|
|
18
|
+
appId?: Guid | null;
|
|
19
|
+
/**
|
|
20
|
+
* Tenant ID necessary for authority host URL configuration and UI customization.
|
|
21
|
+
*/
|
|
22
|
+
tenantId?: Guid | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Builds and executes requests for operations under /Api/Auth/Id
|
|
26
|
+
*/
|
|
27
|
+
export interface IdRequestBuilder extends BaseRequestBuilder<IdRequestBuilder> {
|
|
28
|
+
/**
|
|
29
|
+
* Provides the Tenant ID and the Application ID of the service principal that access tokens need to be issued against. This is also useful for configuring public clients to be able to authenticate to for auth code flows.
|
|
30
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
* @returns {Promise<IdGetResponse>}
|
|
32
|
+
*/
|
|
33
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<IdGetResponse | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Provides the Tenant ID and the Application ID of the service principal that access tokens need to be issued against. This is also useful for configuring public clients to be able to authenticate to for auth code flows.
|
|
36
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
* @returns {RequestInformation}
|
|
38
|
+
*/
|
|
39
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Serializes information the current object
|
|
43
|
+
* @param IdGetResponse The instance to serialize from.
|
|
44
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
45
|
+
* @param writer Serialization writer to use to serialize this model
|
|
46
|
+
*/
|
|
47
|
+
export declare function serializeIdGetResponse(writer: SerializationWriter, idGetResponse?: Partial<IdGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
48
|
+
/**
|
|
49
|
+
* Uri template for the request builder.
|
|
50
|
+
*/
|
|
51
|
+
export declare const IdRequestBuilderUriTemplate = "{+baseurl}/Api/Auth/Id";
|
|
52
|
+
/**
|
|
53
|
+
* Metadata for all the requests in the request builder.
|
|
54
|
+
*/
|
|
55
|
+
export declare const IdRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function createIdGetResponseFromDiscriminatorValue(parseNode) {
|
|
2
|
+
return deserializeIntoIdGetResponse;
|
|
3
|
+
}
|
|
4
|
+
export function deserializeIntoIdGetResponse(idGetResponse = {}) {
|
|
5
|
+
return {
|
|
6
|
+
"appId": n => { idGetResponse.appId = n.getGuidValue(); },
|
|
7
|
+
"tenantId": n => { idGetResponse.tenantId = n.getGuidValue(); },
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function serializeIdGetResponse(writer, idGetResponse = {}, isSerializingDerivedType = false) {
|
|
11
|
+
if (!idGetResponse || isSerializingDerivedType) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
writer.writeGuidValue("appId", idGetResponse.appId);
|
|
15
|
+
writer.writeGuidValue("tenantId", idGetResponse.tenantId);
|
|
16
|
+
writer.writeAdditionalData(idGetResponse.additionalData);
|
|
17
|
+
}
|
|
18
|
+
export const IdRequestBuilderUriTemplate = "{+baseurl}/Api/Auth/Id";
|
|
19
|
+
export const IdRequestBuilderRequestsMetadata = {
|
|
20
|
+
get: {
|
|
21
|
+
uriTemplate: IdRequestBuilderUriTemplate,
|
|
22
|
+
responseBodyContentType: "application/json",
|
|
23
|
+
adapterMethodName: "send",
|
|
24
|
+
responseBodyFactory: createIdGetResponseFromDiscriminatorValue,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IdRequestBuilder } from './id/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /Api/Auth
|
|
5
|
+
*/
|
|
6
|
+
export interface AuthRequestBuilder extends BaseRequestBuilder<AuthRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* The Id property
|
|
9
|
+
*/
|
|
10
|
+
get id(): IdRequestBuilder;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Uri template for the request builder.
|
|
14
|
+
*/
|
|
15
|
+
export declare const AuthRequestBuilderUriTemplate = "{+baseurl}/Api/Auth";
|
|
16
|
+
/**
|
|
17
|
+
* Metadata for all the navigation properties in the request builder.
|
|
18
|
+
*/
|
|
19
|
+
export declare const AuthRequestBuilderNavigationMetadata: Record<Exclude<keyof AuthRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /Api/Core/Health
|
|
4
|
+
*/
|
|
5
|
+
export interface HealthRequestBuilder extends BaseRequestBuilder<HealthRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Check the health of the various components of the SHIELD app and report back. Useful for automated health probing.
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @throws {HealthReport} error when the service returns a 500 status code
|
|
10
|
+
*/
|
|
11
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Check the health of the various components of the SHIELD app and report back. Useful for automated health probing.
|
|
14
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
+
* @returns {RequestInformation}
|
|
16
|
+
*/
|
|
17
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Uri template for the request builder.
|
|
21
|
+
*/
|
|
22
|
+
export declare const HealthRequestBuilderUriTemplate = "{+baseurl}/Api/Core/Health";
|
|
23
|
+
/**
|
|
24
|
+
* Metadata for all the requests in the request builder.
|
|
25
|
+
*/
|
|
26
|
+
export declare const HealthRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHealthReportFromDiscriminatorValue } from '../../../models/core/index.js';
|
|
2
|
+
export const HealthRequestBuilderUriTemplate = "{+baseurl}/Api/Core/Health";
|
|
3
|
+
export const HealthRequestBuilderRequestsMetadata = {
|
|
4
|
+
get: {
|
|
5
|
+
uriTemplate: HealthRequestBuilderUriTemplate,
|
|
6
|
+
responseBodyContentType: "application/json",
|
|
7
|
+
errorMappings: {
|
|
8
|
+
500: createHealthReportFromDiscriminatorValue,
|
|
9
|
+
},
|
|
10
|
+
adapterMethodName: "sendNoResponseContent",
|
|
11
|
+
},
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type HealthRequestBuilder } from './health/index.js';
|
|
2
|
+
import { type SystemRequirementsRequestBuilder } from './systemRequirements/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /Api/Core
|
|
6
|
+
*/
|
|
7
|
+
export interface CoreRequestBuilder extends BaseRequestBuilder<CoreRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* The Health property
|
|
10
|
+
*/
|
|
11
|
+
get health(): HealthRequestBuilder;
|
|
12
|
+
/**
|
|
13
|
+
* The SystemRequirements property
|
|
14
|
+
*/
|
|
15
|
+
get systemRequirements(): SystemRequirementsRequestBuilder;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Uri template for the request builder.
|
|
19
|
+
*/
|
|
20
|
+
export declare const CoreRequestBuilderUriTemplate = "{+baseurl}/Api/Core";
|
|
21
|
+
/**
|
|
22
|
+
* Metadata for all the navigation properties in the request builder.
|
|
23
|
+
*/
|
|
24
|
+
export declare const CoreRequestBuilderNavigationMetadata: Record<Exclude<keyof CoreRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HealthRequestBuilderRequestsMetadata } from './health/index.js';
|
|
2
|
+
import { SystemRequirementsRequestBuilderRequestsMetadata } from './systemRequirements/index.js';
|
|
3
|
+
export const CoreRequestBuilderUriTemplate = "{+baseurl}/Api/Core";
|
|
4
|
+
export const CoreRequestBuilderNavigationMetadata = {
|
|
5
|
+
health: {
|
|
6
|
+
requestsMetadata: HealthRequestBuilderRequestsMetadata,
|
|
7
|
+
},
|
|
8
|
+
systemRequirements: {
|
|
9
|
+
requestsMetadata: SystemRequirementsRequestBuilderRequestsMetadata,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type SystemRequirements } from '../../../models/core/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /Api/Core/SystemRequirements
|
|
5
|
+
*/
|
|
6
|
+
export interface SystemRequirementsRequestBuilder extends BaseRequestBuilder<SystemRequirementsRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Provides a detailed breakdown of if the system requirements are being met for the various components of the SHIELD.
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<SystemRequirements>}
|
|
11
|
+
*/
|
|
12
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SystemRequirements | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Provides a detailed breakdown of if the system requirements are being met for the various components of the SHIELD.
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {RequestInformation}
|
|
17
|
+
*/
|
|
18
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SystemRequirementsRequestBuilderUriTemplate = "{+baseurl}/Api/Core/SystemRequirements";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the requests in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SystemRequirementsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createSystemRequirementsFromDiscriminatorValue } from '../../../models/core/index.js';
|
|
2
|
+
export const SystemRequirementsRequestBuilderUriTemplate = "{+baseurl}/Api/Core/SystemRequirements";
|
|
3
|
+
export const SystemRequirementsRequestBuilderRequestsMetadata = {
|
|
4
|
+
get: {
|
|
5
|
+
uriTemplate: SystemRequirementsRequestBuilderUriTemplate,
|
|
6
|
+
responseBodyContentType: "application/json",
|
|
7
|
+
adapterMethodName: "send",
|
|
8
|
+
responseBodyFactory: createSystemRequirementsFromDiscriminatorValue,
|
|
9
|
+
},
|
|
10
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type WithDeviceItemRequestBuilder } from './item/index.js';
|
|
2
|
+
import { type TypeRequestBuilder } from './type/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /Api/Defend/Device
|
|
6
|
+
*/
|
|
7
|
+
export interface DeviceRequestBuilder extends BaseRequestBuilder<DeviceRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* The Type property
|
|
10
|
+
*/
|
|
11
|
+
get type(): TypeRequestBuilder;
|
|
12
|
+
/**
|
|
13
|
+
* Gets an item from the ApiSdk.Api.Defend.Device.item collection
|
|
14
|
+
* @param deviceId The SHIELD ID (Entra ID Device ID) of the managed device to target.
|
|
15
|
+
* @returns {WithDeviceItemRequestBuilder}
|
|
16
|
+
*/
|
|
17
|
+
byDeviceId(deviceId: Guid): WithDeviceItemRequestBuilder;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Uri template for the request builder.
|
|
21
|
+
*/
|
|
22
|
+
export declare const DeviceRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Device";
|
|
23
|
+
/**
|
|
24
|
+
* Metadata for all the navigation properties in the request builder.
|
|
25
|
+
*/
|
|
26
|
+
export declare const DeviceRequestBuilderNavigationMetadata: Record<Exclude<keyof DeviceRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WithDeviceItemRequestBuilderNavigationMetadata } from './item/index.js';
|
|
2
|
+
import { TypeRequestBuilderNavigationMetadata } from './type/index.js';
|
|
3
|
+
export const DeviceRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Device";
|
|
4
|
+
export const DeviceRequestBuilderNavigationMetadata = {
|
|
5
|
+
byDeviceId: {
|
|
6
|
+
navigationMetadata: WithDeviceItemRequestBuilderNavigationMetadata,
|
|
7
|
+
pathParametersMappings: ["deviceId"],
|
|
8
|
+
},
|
|
9
|
+
type: {
|
|
10
|
+
navigationMetadata: TypeRequestBuilderNavigationMetadata,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type TypeRequestBuilder } from './type/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /Api/Defend/Device/{deviceId}
|
|
5
|
+
*/
|
|
6
|
+
export interface WithDeviceItemRequestBuilder extends BaseRequestBuilder<WithDeviceItemRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* The Type property
|
|
9
|
+
*/
|
|
10
|
+
get type(): TypeRequestBuilder;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Uri template for the request builder.
|
|
14
|
+
*/
|
|
15
|
+
export declare const WithDeviceItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Device/{deviceId}";
|
|
16
|
+
/**
|
|
17
|
+
* Metadata for all the navigation properties in the request builder.
|
|
18
|
+
*/
|
|
19
|
+
export declare const WithDeviceItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithDeviceItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TypeRequestBuilderNavigationMetadata } from './type/index.js';
|
|
2
|
+
export const WithDeviceItemRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Device/{deviceId}";
|
|
3
|
+
export const WithDeviceItemRequestBuilderNavigationMetadata = {
|
|
4
|
+
type: {
|
|
5
|
+
navigationMetadata: TypeRequestBuilderNavigationMetadata,
|
|
6
|
+
},
|
|
7
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type WithSecurityClassItemRequestBuilder } from './item/index.js';
|
|
2
|
+
import { type PrivilegedRequestBuilder } from './privileged/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /Api/Defend/Device/{deviceId}/Type
|
|
6
|
+
*/
|
|
7
|
+
export interface TypeRequestBuilder extends BaseRequestBuilder<TypeRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* The Privileged property
|
|
10
|
+
*/
|
|
11
|
+
get privileged(): PrivilegedRequestBuilder;
|
|
12
|
+
/**
|
|
13
|
+
* Gets an item from the ApiSdk.Api.Defend.Device.item.Type.item collection
|
|
14
|
+
* @param securityClass The security class of managed object to retrieve. Unknown values, will be ignored. Please see https://learn.microsoft.com/en-us/security/compass/privileged-access-security-levels for a description of security levels.
|
|
15
|
+
* @returns {WithSecurityClassItemRequestBuilder}
|
|
16
|
+
*/
|
|
17
|
+
bySecurityClass(securityClass: string): WithSecurityClassItemRequestBuilder;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Uri template for the request builder.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TypeRequestBuilderUriTemplate = "{+baseurl}/Api/Defend/Device/{deviceId}/Type";
|
|
23
|
+
/**
|
|
24
|
+
* Metadata for all the navigation properties in the request builder.
|
|
25
|
+
*/
|
|
26
|
+
export declare const TypeRequestBuilderNavigationMetadata: Record<Exclude<keyof TypeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|