Skip to content

Commit be3af44

Browse files
box-sdk-buildbox-sdk-build
and
box-sdk-build
authored
feat: add Shield Lists APIs (box/box-openapi#528) (#622)
Co-authored-by: box-sdk-build <box-sdk-build@box.com>
1 parent 8129d5e commit be3af44

18 files changed

+2315
-4
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "20cb559", "specHash": "a54170e", "version": "1.15.1" }
1+
{ "engineHash": "20cb559", "specHash": "630fc85", "version": "1.15.1" }

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ the SDK are available by topic:
5858
- [Shield information barrier segment restrictions](shieldInformationBarrierSegmentRestrictions.md)
5959
- [Shield information barrier segments](shieldInformationBarrierSegments.md)
6060
- [Shield information barriers](shieldInformationBarriers.md)
61+
- [Shield lists](shieldLists.md)
6162
- [Sign requests](signRequests.md)
6263
- [Sign templates](signTemplates.md)
6364
- [Skills](skills.md)

docs/shieldLists.md

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# ShieldListsManager
2+
3+
- [Get all shield lists in enterprise](#get-all-shield-lists-in-enterprise)
4+
- [Create shield list](#create-shield-list)
5+
- [Get single shield list by shield list id](#get-single-shield-list-by-shield-list-id)
6+
- [Delete single shield list by shield list id](#delete-single-shield-list-by-shield-list-id)
7+
- [Update shield list](#update-shield-list)
8+
9+
## Get all shield lists in enterprise
10+
11+
Retrieves all shield lists in the enterprise.
12+
13+
This operation is performed by calling function `getShieldListsV2025R0`.
14+
15+
See the endpoint docs at
16+
[API Reference](https://developer.box.com/reference/v2025.0/get-shield-lists/).
17+
18+
_Currently we don't have an example for calling `getShieldListsV2025R0` in integration tests_
19+
20+
### Arguments
21+
22+
- headersInput `GetShieldListsV2025R0HeadersInput`
23+
- Headers of getShieldListsV2025R0 method
24+
- cancellationToken `undefined | CancellationToken`
25+
- Token used for request cancellation.
26+
27+
### Returns
28+
29+
This function returns a value of type `ShieldListsV2025R0`.
30+
31+
Returns the list of shield list objects.
32+
33+
## Create shield list
34+
35+
Creates a shield list.
36+
37+
This operation is performed by calling function `createShieldListV2025R0`.
38+
39+
See the endpoint docs at
40+
[API Reference](https://developer.box.com/reference/v2025.0/post-shield-lists/).
41+
42+
_Currently we don't have an example for calling `createShieldListV2025R0` in integration tests_
43+
44+
### Arguments
45+
46+
- requestBody `ShieldListsCreateV2025R0`
47+
- Request body of createShieldListV2025R0 method
48+
- optionalsInput `CreateShieldListV2025R0OptionalsInput`
49+
-
50+
51+
### Returns
52+
53+
This function returns a value of type `ShieldListV2025R0`.
54+
55+
Returns the shield list object.
56+
57+
## Get single shield list by shield list id
58+
59+
Retrieves a single shield list by its ID.
60+
61+
This operation is performed by calling function `getShieldListByIdV2025R0`.
62+
63+
See the endpoint docs at
64+
[API Reference](https://developer.box.com/reference/v2025.0/get-shield-lists-id/).
65+
66+
_Currently we don't have an example for calling `getShieldListByIdV2025R0` in integration tests_
67+
68+
### Arguments
69+
70+
- shieldListId `string`
71+
- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
72+
- optionalsInput `GetShieldListByIdV2025R0OptionalsInput`
73+
-
74+
75+
### Returns
76+
77+
This function returns a value of type `ShieldListV2025R0`.
78+
79+
Returns the shield list object.
80+
81+
## Delete single shield list by shield list id
82+
83+
Delete a single shield list by its ID.
84+
85+
This operation is performed by calling function `deleteShieldListByIdV2025R0`.
86+
87+
See the endpoint docs at
88+
[API Reference](https://developer.box.com/reference/v2025.0/delete-shield-lists-id/).
89+
90+
_Currently we don't have an example for calling `deleteShieldListByIdV2025R0` in integration tests_
91+
92+
### Arguments
93+
94+
- shieldListId `string`
95+
- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
96+
- optionalsInput `DeleteShieldListByIdV2025R0OptionalsInput`
97+
-
98+
99+
### Returns
100+
101+
This function returns a value of type `undefined`.
102+
103+
Shield List correctly removed. No content in response.
104+
105+
## Update shield list
106+
107+
Updates a shield list.
108+
109+
This operation is performed by calling function `updateShieldListByIdV2025R0`.
110+
111+
See the endpoint docs at
112+
[API Reference](https://developer.box.com/reference/v2025.0/put-shield-lists-id/).
113+
114+
_Currently we don't have an example for calling `updateShieldListByIdV2025R0` in integration tests_
115+
116+
### Arguments
117+
118+
- shieldListId `string`
119+
- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
120+
- requestBody `ShieldListsUpdateV2025R0`
121+
- Request body of updateShieldListByIdV2025R0 method
122+
- optionalsInput `UpdateShieldListByIdV2025R0OptionalsInput`
123+
-
124+
125+
### Returns
126+
127+
This function returns a value of type `ShieldListV2025R0`.
128+
129+
Returns the shield list object.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client.generated.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ import { AiManager } from './managers/ai.generated.js';
7676
import { AiStudioManager } from './managers/aiStudio.generated.js';
7777
import { DocgenTemplateManager } from './managers/docgenTemplate.generated.js';
7878
import { DocgenManager } from './managers/docgen.generated.js';
79+
import { ShieldListsManager } from './managers/shieldLists.generated.js';
7980
import { Authentication } from './networking/auth.generated.js';
8081
import { NetworkSession } from './networking/network.generated.js';
8182
import { BoxSdkError } from './box/errors.js';
@@ -171,6 +172,7 @@ export class BoxClient {
171172
readonly aiStudio: AiStudioManager;
172173
readonly docgenTemplate: DocgenTemplateManager;
173174
readonly docgen: DocgenManager;
175+
readonly shieldLists: ShieldListsManager;
174176
constructor(
175177
fields: Omit<
176178
BoxClient,
@@ -248,6 +250,7 @@ export class BoxClient {
248250
| 'aiStudio'
249251
| 'docgenTemplate'
250252
| 'docgen'
253+
| 'shieldLists'
251254
| 'networkSession'
252255
| 'makeRequest'
253256
| 'withAsUserHeader'
@@ -568,6 +571,10 @@ export class BoxClient {
568571
auth: this.auth,
569572
networkSession: this.networkSession,
570573
});
574+
this.shieldLists = new ShieldListsManager({
575+
auth: this.auth,
576+
networkSession: this.networkSession,
577+
});
571578
}
572579
/**
573580
* Make a custom http request using the client authentication and network session.

0 commit comments

Comments
 (0)