@unofficialbox/box-open-sdk 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -7
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/managers/search.js +1 -1
- package/dist/cjs/managers/transfer.js +1 -1
- package/dist/cjs/managers/uploads.js +2 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/managers/search.js +1 -1
- package/dist/esm/managers/transfer.js +1 -1
- package/dist/esm/managers/uploads.js +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/managers/search.d.ts +1 -1
- package/dist/types/managers/transfer.d.ts +3 -3
- package/dist/types/managers/uploads.d.ts +6 -6
- package/docs/auth.md +10 -10
- package/docs/errors.md +2 -2
- package/docs/managers/ai.md +30 -0
- package/docs/managers/ai_studio.md +32 -0
- package/docs/managers/app_item_associations.md +16 -0
- package/docs/managers/archives.md +26 -0
- package/docs/managers/authorization.md +24 -0
- package/docs/managers/automate_workflows.md +14 -0
- package/docs/managers/avatars.md +18 -0
- package/docs/managers/chunked_uploads.md +44 -0
- package/docs/managers/classifications.md +24 -0
- package/docs/managers/collaboration_allowlist_entries.md +26 -0
- package/docs/managers/collaboration_allowlist_exempt_targets.md +26 -0
- package/docs/managers/collections.md +22 -0
- package/docs/managers/comments.md +32 -0
- package/docs/managers/device_pinners.md +20 -0
- package/docs/managers/docgen.md +28 -0
- package/docs/managers/docgen_template.md +42 -0
- package/docs/managers/downloads.md +6 -0
- package/docs/managers/email_aliases.md +18 -0
- package/docs/managers/enterprise_configurations.md +6 -0
- package/docs/managers/events.md +12 -0
- package/docs/managers/external_users.md +6 -0
- package/docs/managers/file_classifications.md +24 -0
- package/docs/managers/file_metadata.md +30 -0
- package/docs/managers/file_requests.md +24 -0
- package/docs/managers/file_version_legal_holds.md +14 -0
- package/docs/managers/file_version_retentions.md +14 -0
- package/docs/managers/file_versions.md +32 -0
- package/docs/managers/file_watermarks.md +18 -0
- package/docs/managers/files.md +30 -0
- package/docs/managers/folder_classifications.md +24 -0
- package/docs/managers/folder_locks.md +18 -0
- package/docs/managers/folder_metadata.md +30 -0
- package/docs/managers/folder_watermarks.md +18 -0
- package/docs/managers/folders.md +38 -0
- package/docs/managers/groups.md +32 -0
- package/docs/managers/hub_collaborations.md +32 -0
- package/docs/managers/hub_document.md +16 -0
- package/docs/managers/hub_items.md +14 -0
- package/docs/managers/hubs.md +46 -0
- package/docs/managers/integration_mappings.md +50 -0
- package/docs/managers/invites.md +12 -0
- package/docs/managers/legal_hold_policies.md +32 -0
- package/docs/managers/legal_hold_policy_assignments.md +42 -0
- package/docs/managers/list_collaborations.md +32 -0
- package/docs/managers/memberships.md +40 -0
- package/docs/managers/metadata_cascade_policies.md +32 -0
- package/docs/managers/metadata_taxonomies.md +96 -0
- package/docs/managers/metadata_templates.md +54 -0
- package/docs/managers/notes.md +6 -0
- package/docs/managers/recent_items.md +8 -0
- package/docs/managers/retention_policies.md +32 -0
- package/docs/managers/retention_policy_assignments.md +42 -0
- package/docs/managers/search.md +13 -1
- package/docs/managers/session_termination.md +12 -0
- package/docs/managers/shared_links_app_items.md +6 -0
- package/docs/managers/shared_links_files.md +30 -0
- package/docs/managers/shared_links_folders.md +30 -0
- package/docs/managers/shared_links_web_links.md +30 -0
- package/docs/managers/shield_information_barrier_reports.md +20 -0
- package/docs/managers/shield_information_barrier_segment_members.md +26 -0
- package/docs/managers/shield_information_barrier_segment_restrictions.md +26 -0
- package/docs/managers/shield_information_barrier_segments.md +32 -0
- package/docs/managers/shield_information_barriers.md +26 -0
- package/docs/managers/shield_lists.md +30 -0
- package/docs/managers/sign_requests.md +32 -0
- package/docs/managers/sign_templates.md +14 -0
- package/docs/managers/skills.md +30 -0
- package/docs/managers/storage_policies.md +14 -0
- package/docs/managers/storage_policy_assignments.md +32 -0
- package/docs/managers/task_assignments.md +30 -0
- package/docs/managers/tasks.md +30 -0
- package/docs/managers/terms_of_service_user_statuses.md +18 -0
- package/docs/managers/terms_of_services.md +24 -0
- package/docs/managers/transfer.md +7 -1
- package/docs/managers/trashed_files.md +18 -0
- package/docs/managers/trashed_folders.md +18 -0
- package/docs/managers/trashed_items.md +8 -0
- package/docs/managers/trashed_web_links.md +18 -0
- package/docs/managers/uploads.md +20 -2
- package/docs/managers/user_collaborations.md +24 -0
- package/docs/managers/users.md +38 -0
- package/docs/managers/web_links.md +24 -0
- package/docs/managers/webhooks.md +32 -0
- package/docs/managers/workflows.md +14 -0
- package/docs/managers/zip_downloads.md +18 -0
- package/package.json +3 -2
|
@@ -15,6 +15,12 @@ Reach these methods through the `sharedLinksWebLinks` field on `Client`.
|
|
|
15
15
|
|
|
16
16
|
**Returns:** `WebLink`
|
|
17
17
|
|
|
18
|
+
**Example**
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
const result = await client.sharedLinksWebLinks.getSharedItemsWebLinks("BOXAPI");
|
|
22
|
+
```
|
|
23
|
+
|
|
18
24
|
## getWebLinkGetSharedLink
|
|
19
25
|
|
|
20
26
|
`GET /web_links/{web_link_id}`
|
|
@@ -26,6 +32,12 @@ Reach these methods through the `sharedLinksWebLinks` field on `Client`.
|
|
|
26
32
|
|
|
27
33
|
**Returns:** `WebLink`
|
|
28
34
|
|
|
35
|
+
**Example**
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
const result = await client.sharedLinksWebLinks.getWebLinkGetSharedLink("WEB_LINK_ID", "FIELDS");
|
|
39
|
+
```
|
|
40
|
+
|
|
29
41
|
## updateWebLinkAddSharedLink
|
|
30
42
|
|
|
31
43
|
`PUT /web_links/{web_link_id}`
|
|
@@ -39,6 +51,12 @@ Reach these methods through the `sharedLinksWebLinks` field on `Client`.
|
|
|
39
51
|
|
|
40
52
|
**Returns:** `WebLink`
|
|
41
53
|
|
|
54
|
+
**Example**
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
const result = await client.sharedLinksWebLinks.updateWebLinkAddSharedLink("WEB_LINK_ID", "FIELDS", { /* … */ });
|
|
58
|
+
```
|
|
59
|
+
|
|
42
60
|
## updateWebLinkUpdateSharedLink
|
|
43
61
|
|
|
44
62
|
`PUT /web_links/{web_link_id}`
|
|
@@ -52,6 +70,12 @@ Reach these methods through the `sharedLinksWebLinks` field on `Client`.
|
|
|
52
70
|
|
|
53
71
|
**Returns:** `WebLink`
|
|
54
72
|
|
|
73
|
+
**Example**
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const result = await client.sharedLinksWebLinks.updateWebLinkUpdateSharedLink("WEB_LINK_ID", "FIELDS", { /* … */ });
|
|
77
|
+
```
|
|
78
|
+
|
|
55
79
|
## updateWebLinkRemoveSharedLink
|
|
56
80
|
|
|
57
81
|
`PUT /web_links/{web_link_id}`
|
|
@@ -65,3 +89,9 @@ Reach these methods through the `sharedLinksWebLinks` field on `Client`.
|
|
|
65
89
|
|
|
66
90
|
**Returns:** `WebLink`
|
|
67
91
|
|
|
92
|
+
**Example**
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
const result = await client.sharedLinksWebLinks.updateWebLinkRemoveSharedLink("WEB_LINK_ID", "FIELDS", { /* … */ });
|
|
96
|
+
```
|
|
97
|
+
|
|
@@ -15,6 +15,14 @@ Reach these methods through the `shieldInformationBarrierReports` field on `Clie
|
|
|
15
15
|
|
|
16
16
|
**Returns:** `ShieldInformationBarrierReports`
|
|
17
17
|
|
|
18
|
+
**Example**
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
for await (const item of client.shieldInformationBarrierReports.list("SHIELD_INFORMATION_BARRIER_ID")) {
|
|
22
|
+
// use item
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
18
26
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
19
27
|
|
|
20
28
|
## create
|
|
@@ -25,6 +33,12 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
25
33
|
|
|
26
34
|
**Returns:** `ShieldInformationBarrierReport`
|
|
27
35
|
|
|
36
|
+
**Example**
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const result = await client.shieldInformationBarrierReports.create({ /* … */ });
|
|
40
|
+
```
|
|
41
|
+
|
|
28
42
|
## get
|
|
29
43
|
|
|
30
44
|
`GET /shield_information_barrier_reports/{shield_information_barrier_report_id}`
|
|
@@ -35,3 +49,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
35
49
|
|
|
36
50
|
**Returns:** `ShieldInformationBarrierReport`
|
|
37
51
|
|
|
52
|
+
**Example**
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
const result = await client.shieldInformationBarrierReports.get("SHIELD_INFORMATION_BARRIER_REPORT_ID");
|
|
56
|
+
```
|
|
57
|
+
|
|
@@ -13,6 +13,12 @@ Reach these methods through the `shieldInformationBarrierSegmentMembers` field o
|
|
|
13
13
|
|
|
14
14
|
**Returns:** `ShieldInformationBarrierSegmentMember`
|
|
15
15
|
|
|
16
|
+
**Example**
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
const result = await client.shieldInformationBarrierSegmentMembers.get("SHIELD_INFORMATION_BARRIER_SEGMENT_MEMBER_ID");
|
|
20
|
+
```
|
|
21
|
+
|
|
16
22
|
## delete_
|
|
17
23
|
|
|
18
24
|
`DELETE /shield_information_barrier_segment_members/{shield_information_barrier_segment_member_id}`
|
|
@@ -23,6 +29,12 @@ Reach these methods through the `shieldInformationBarrierSegmentMembers` field o
|
|
|
23
29
|
|
|
24
30
|
**Returns:** `void`
|
|
25
31
|
|
|
32
|
+
**Example**
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
await client.shieldInformationBarrierSegmentMembers.delete_("SHIELD_INFORMATION_BARRIER_SEGMENT_MEMBER_ID");
|
|
36
|
+
```
|
|
37
|
+
|
|
26
38
|
## list
|
|
27
39
|
|
|
28
40
|
`GET /shield_information_barrier_segment_members`
|
|
@@ -35,6 +47,14 @@ Reach these methods through the `shieldInformationBarrierSegmentMembers` field o
|
|
|
35
47
|
|
|
36
48
|
**Returns:** `ShieldInformationBarrierSegmentMembers`
|
|
37
49
|
|
|
50
|
+
**Example**
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
for await (const item of client.shieldInformationBarrierSegmentMembers.list("SHIELD_INFORMATION_BARRIER_SEGMENT_ID")) {
|
|
54
|
+
// use item
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
38
58
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
39
59
|
|
|
40
60
|
## create
|
|
@@ -45,3 +65,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
45
65
|
|
|
46
66
|
**Returns:** `ShieldInformationBarrierSegmentMember`
|
|
47
67
|
|
|
68
|
+
**Example**
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
const result = await client.shieldInformationBarrierSegmentMembers.create({ /* … */ });
|
|
72
|
+
```
|
|
73
|
+
|
|
@@ -13,6 +13,12 @@ Reach these methods through the `shieldInformationBarrierSegmentRestrictions` fi
|
|
|
13
13
|
|
|
14
14
|
**Returns:** `ShieldInformationBarrierSegmentRestriction`
|
|
15
15
|
|
|
16
|
+
**Example**
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
const result = await client.shieldInformationBarrierSegmentRestrictions.get("SHIELD_INFORMATION_BARRIER_SEGMENT_RESTRICTION_ID");
|
|
20
|
+
```
|
|
21
|
+
|
|
16
22
|
## delete_
|
|
17
23
|
|
|
18
24
|
`DELETE /shield_information_barrier_segment_restrictions/{shield_information_barrier_segment_restriction_id}`
|
|
@@ -23,6 +29,12 @@ Reach these methods through the `shieldInformationBarrierSegmentRestrictions` fi
|
|
|
23
29
|
|
|
24
30
|
**Returns:** `void`
|
|
25
31
|
|
|
32
|
+
**Example**
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
await client.shieldInformationBarrierSegmentRestrictions.delete_("SHIELD_INFORMATION_BARRIER_SEGMENT_RESTRICTION_ID");
|
|
36
|
+
```
|
|
37
|
+
|
|
26
38
|
## list
|
|
27
39
|
|
|
28
40
|
`GET /shield_information_barrier_segment_restrictions`
|
|
@@ -35,6 +47,14 @@ Reach these methods through the `shieldInformationBarrierSegmentRestrictions` fi
|
|
|
35
47
|
|
|
36
48
|
**Returns:** `ShieldInformationBarrierSegmentRestrictions`
|
|
37
49
|
|
|
50
|
+
**Example**
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
for await (const item of client.shieldInformationBarrierSegmentRestrictions.list("SHIELD_INFORMATION_BARRIER_SEGMENT_ID")) {
|
|
54
|
+
// use item
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
38
58
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
39
59
|
|
|
40
60
|
## create
|
|
@@ -45,3 +65,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
45
65
|
|
|
46
66
|
**Returns:** `ShieldInformationBarrierSegmentRestriction`
|
|
47
67
|
|
|
68
|
+
**Example**
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
const result = await client.shieldInformationBarrierSegmentRestrictions.create({ /* … */ });
|
|
72
|
+
```
|
|
73
|
+
|
|
@@ -13,6 +13,12 @@ Reach these methods through the `shieldInformationBarrierSegments` field on `Cli
|
|
|
13
13
|
|
|
14
14
|
**Returns:** `ShieldInformationBarrierSegment`
|
|
15
15
|
|
|
16
|
+
**Example**
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
const result = await client.shieldInformationBarrierSegments.get("SHIELD_INFORMATION_BARRIER_SEGMENT_ID");
|
|
20
|
+
```
|
|
21
|
+
|
|
16
22
|
## update
|
|
17
23
|
|
|
18
24
|
`PUT /shield_information_barrier_segments/{shield_information_barrier_segment_id}`
|
|
@@ -25,6 +31,12 @@ Reach these methods through the `shieldInformationBarrierSegments` field on `Cli
|
|
|
25
31
|
|
|
26
32
|
**Returns:** `ShieldInformationBarrierSegment`
|
|
27
33
|
|
|
34
|
+
**Example**
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
const result = await client.shieldInformationBarrierSegments.update("SHIELD_INFORMATION_BARRIER_SEGMENT_ID", { /* … */ });
|
|
38
|
+
```
|
|
39
|
+
|
|
28
40
|
## delete_
|
|
29
41
|
|
|
30
42
|
`DELETE /shield_information_barrier_segments/{shield_information_barrier_segment_id}`
|
|
@@ -35,6 +47,12 @@ Reach these methods through the `shieldInformationBarrierSegments` field on `Cli
|
|
|
35
47
|
|
|
36
48
|
**Returns:** `void`
|
|
37
49
|
|
|
50
|
+
**Example**
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
await client.shieldInformationBarrierSegments.delete_("SHIELD_INFORMATION_BARRIER_SEGMENT_ID");
|
|
54
|
+
```
|
|
55
|
+
|
|
38
56
|
## list
|
|
39
57
|
|
|
40
58
|
`GET /shield_information_barrier_segments`
|
|
@@ -47,6 +65,14 @@ Reach these methods through the `shieldInformationBarrierSegments` field on `Cli
|
|
|
47
65
|
|
|
48
66
|
**Returns:** `ShieldInformationBarrierSegments`
|
|
49
67
|
|
|
68
|
+
**Example**
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
for await (const item of client.shieldInformationBarrierSegments.list("SHIELD_INFORMATION_BARRIER_ID")) {
|
|
72
|
+
// use item
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
50
76
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
51
77
|
|
|
52
78
|
## create
|
|
@@ -57,3 +83,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
57
83
|
|
|
58
84
|
**Returns:** `ShieldInformationBarrierSegment`
|
|
59
85
|
|
|
86
|
+
**Example**
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
const result = await client.shieldInformationBarrierSegments.create({ /* … */ });
|
|
90
|
+
```
|
|
91
|
+
|
|
@@ -13,6 +13,12 @@ Reach these methods through the `shieldInformationBarriers` field on `Client`.
|
|
|
13
13
|
|
|
14
14
|
**Returns:** `ShieldInformationBarrier`
|
|
15
15
|
|
|
16
|
+
**Example**
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
const result = await client.shieldInformationBarriers.get("SHIELD_INFORMATION_BARRIER_ID");
|
|
20
|
+
```
|
|
21
|
+
|
|
16
22
|
## createChangeStatus
|
|
17
23
|
|
|
18
24
|
`POST /shield_information_barriers/change_status`
|
|
@@ -21,6 +27,12 @@ Reach these methods through the `shieldInformationBarriers` field on `Client`.
|
|
|
21
27
|
|
|
22
28
|
**Returns:** `ShieldInformationBarrier`
|
|
23
29
|
|
|
30
|
+
**Example**
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
const result = await client.shieldInformationBarriers.createChangeStatus({ /* … */ });
|
|
34
|
+
```
|
|
35
|
+
|
|
24
36
|
## list
|
|
25
37
|
|
|
26
38
|
`GET /shield_information_barriers`
|
|
@@ -32,6 +44,14 @@ Reach these methods through the `shieldInformationBarriers` field on `Client`.
|
|
|
32
44
|
|
|
33
45
|
**Returns:** `ShieldInformationBarriers`
|
|
34
46
|
|
|
47
|
+
**Example**
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
for await (const item of client.shieldInformationBarriers.list()) {
|
|
51
|
+
// use item
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
35
55
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
36
56
|
|
|
37
57
|
## create
|
|
@@ -42,3 +62,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
42
62
|
|
|
43
63
|
**Returns:** `ShieldInformationBarrier`
|
|
44
64
|
|
|
65
|
+
**Example**
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
const result = await client.shieldInformationBarriers.create({ /* … */ });
|
|
69
|
+
```
|
|
70
|
+
|
|
@@ -9,6 +9,12 @@ Reach these methods through the `shieldLists` field on `Client`.
|
|
|
9
9
|
|
|
10
10
|
**Returns:** `ShieldLists`
|
|
11
11
|
|
|
12
|
+
**Example**
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
const result = await client.shieldLists.list();
|
|
16
|
+
```
|
|
17
|
+
|
|
12
18
|
## create
|
|
13
19
|
|
|
14
20
|
`POST /shield_lists`
|
|
@@ -17,6 +23,12 @@ Reach these methods through the `shieldLists` field on `Client`.
|
|
|
17
23
|
|
|
18
24
|
**Returns:** `ShieldList`
|
|
19
25
|
|
|
26
|
+
**Example**
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
const result = await client.shieldLists.create({ /* … */ });
|
|
30
|
+
```
|
|
31
|
+
|
|
20
32
|
## get
|
|
21
33
|
|
|
22
34
|
`GET /shield_lists/{shield_list_id}`
|
|
@@ -27,6 +39,12 @@ Reach these methods through the `shieldLists` field on `Client`.
|
|
|
27
39
|
|
|
28
40
|
**Returns:** `ShieldList`
|
|
29
41
|
|
|
42
|
+
**Example**
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
const result = await client.shieldLists.get("SHIELD_LIST_ID");
|
|
46
|
+
```
|
|
47
|
+
|
|
30
48
|
## update
|
|
31
49
|
|
|
32
50
|
`PUT /shield_lists/{shield_list_id}`
|
|
@@ -39,6 +57,12 @@ Reach these methods through the `shieldLists` field on `Client`.
|
|
|
39
57
|
|
|
40
58
|
**Returns:** `ShieldList`
|
|
41
59
|
|
|
60
|
+
**Example**
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
const result = await client.shieldLists.update("SHIELD_LIST_ID", { /* … */ });
|
|
64
|
+
```
|
|
65
|
+
|
|
42
66
|
## delete_
|
|
43
67
|
|
|
44
68
|
`DELETE /shield_lists/{shield_list_id}`
|
|
@@ -49,3 +73,9 @@ Reach these methods through the `shieldLists` field on `Client`.
|
|
|
49
73
|
|
|
50
74
|
**Returns:** `void`
|
|
51
75
|
|
|
76
|
+
**Example**
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
await client.shieldLists.delete_("SHIELD_LIST_ID");
|
|
80
|
+
```
|
|
81
|
+
|
|
@@ -15,6 +15,12 @@ Reach these methods through the `signRequests` field on `Client`.
|
|
|
15
15
|
|
|
16
16
|
**Returns:** `SignRequest`
|
|
17
17
|
|
|
18
|
+
**Example**
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
const result = await client.signRequests.cancel("SIGN_REQUEST_ID", { /* … */ });
|
|
22
|
+
```
|
|
23
|
+
|
|
18
24
|
## resend
|
|
19
25
|
|
|
20
26
|
`POST /sign_requests/{sign_request_id}/resend`
|
|
@@ -25,6 +31,12 @@ Reach these methods through the `signRequests` field on `Client`.
|
|
|
25
31
|
|
|
26
32
|
**Returns:** `void`
|
|
27
33
|
|
|
34
|
+
**Example**
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
await client.signRequests.resend("SIGN_REQUEST_ID");
|
|
38
|
+
```
|
|
39
|
+
|
|
28
40
|
## get
|
|
29
41
|
|
|
30
42
|
`GET /sign_requests/{sign_request_id}`
|
|
@@ -35,6 +47,12 @@ Reach these methods through the `signRequests` field on `Client`.
|
|
|
35
47
|
|
|
36
48
|
**Returns:** `SignRequest`
|
|
37
49
|
|
|
50
|
+
**Example**
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
const result = await client.signRequests.get("SIGN_REQUEST_ID");
|
|
54
|
+
```
|
|
55
|
+
|
|
38
56
|
## list
|
|
39
57
|
|
|
40
58
|
`GET /sign_requests`
|
|
@@ -48,6 +66,14 @@ Reach these methods through the `signRequests` field on `Client`.
|
|
|
48
66
|
|
|
49
67
|
**Returns:** `SignRequests`
|
|
50
68
|
|
|
69
|
+
**Example**
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
for await (const item of client.signRequests.list()) {
|
|
73
|
+
// use item
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
51
77
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
52
78
|
|
|
53
79
|
## create
|
|
@@ -58,3 +84,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
58
84
|
|
|
59
85
|
**Returns:** `SignRequest`
|
|
60
86
|
|
|
87
|
+
**Example**
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
const result = await client.signRequests.create({ /* … */ });
|
|
91
|
+
```
|
|
92
|
+
|
|
@@ -14,6 +14,14 @@ Reach these methods through the `signTemplates` field on `Client`.
|
|
|
14
14
|
|
|
15
15
|
**Returns:** `SignTemplates`
|
|
16
16
|
|
|
17
|
+
**Example**
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
for await (const item of client.signTemplates.list()) {
|
|
21
|
+
// use item
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
17
25
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
18
26
|
|
|
19
27
|
## get
|
|
@@ -26,3 +34,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
26
34
|
|
|
27
35
|
**Returns:** `SignTemplate`
|
|
28
36
|
|
|
37
|
+
**Example**
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const result = await client.signTemplates.get("TEMPLATE_ID");
|
|
41
|
+
```
|
|
42
|
+
|
package/docs/managers/skills.md
CHANGED
|
@@ -13,6 +13,12 @@ Reach these methods through the `skills` field on `Client`.
|
|
|
13
13
|
|
|
14
14
|
**Returns:** `SkillCardsMetadata`
|
|
15
15
|
|
|
16
|
+
**Example**
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
const result = await client.skills.get("FILE_ID");
|
|
20
|
+
```
|
|
21
|
+
|
|
16
22
|
## update
|
|
17
23
|
|
|
18
24
|
`PUT /files/{file_id}/metadata/global/boxSkillsCards`
|
|
@@ -25,6 +31,12 @@ Reach these methods through the `skills` field on `Client`.
|
|
|
25
31
|
|
|
26
32
|
**Returns:** `SkillCardsMetadata`
|
|
27
33
|
|
|
34
|
+
**Example**
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
const result = await client.skills.update("FILE_ID", []);
|
|
38
|
+
```
|
|
39
|
+
|
|
28
40
|
## create
|
|
29
41
|
|
|
30
42
|
`POST /files/{file_id}/metadata/global/boxSkillsCards`
|
|
@@ -37,6 +49,12 @@ Reach these methods through the `skills` field on `Client`.
|
|
|
37
49
|
|
|
38
50
|
**Returns:** `SkillCardsMetadata`
|
|
39
51
|
|
|
52
|
+
**Example**
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
const result = await client.skills.create("FILE_ID", { /* … */ });
|
|
56
|
+
```
|
|
57
|
+
|
|
40
58
|
## delete_
|
|
41
59
|
|
|
42
60
|
`DELETE /files/{file_id}/metadata/global/boxSkillsCards`
|
|
@@ -47,6 +65,12 @@ Reach these methods through the `skills` field on `Client`.
|
|
|
47
65
|
|
|
48
66
|
**Returns:** `void`
|
|
49
67
|
|
|
68
|
+
**Example**
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
await client.skills.delete_("FILE_ID");
|
|
72
|
+
```
|
|
73
|
+
|
|
50
74
|
## updateSkillInvocation
|
|
51
75
|
|
|
52
76
|
`PUT /skill_invocations/{skill_id}`
|
|
@@ -59,3 +83,9 @@ Reach these methods through the `skills` field on `Client`.
|
|
|
59
83
|
|
|
60
84
|
**Returns:** `void`
|
|
61
85
|
|
|
86
|
+
**Example**
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
await client.skills.updateSkillInvocation("SKILL_ID", { /* … */ });
|
|
90
|
+
```
|
|
91
|
+
|
|
@@ -15,6 +15,14 @@ Reach these methods through the `storagePolicies` field on `Client`.
|
|
|
15
15
|
|
|
16
16
|
**Returns:** `StoragePolicies`
|
|
17
17
|
|
|
18
|
+
**Example**
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
for await (const item of client.storagePolicies.list()) {
|
|
22
|
+
// use item
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
18
26
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
19
27
|
|
|
20
28
|
## get
|
|
@@ -27,3 +35,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
27
35
|
|
|
28
36
|
**Returns:** `StoragePolicy`
|
|
29
37
|
|
|
38
|
+
**Example**
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const result = await client.storagePolicies.get("STORAGE_POLICY_ID");
|
|
42
|
+
```
|
|
43
|
+
|
|
@@ -15,6 +15,14 @@ Reach these methods through the `storagePolicyAssignments` field on `Client`.
|
|
|
15
15
|
|
|
16
16
|
**Returns:** `StoragePolicyAssignments`
|
|
17
17
|
|
|
18
|
+
**Example**
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
for await (const item of client.storagePolicyAssignments.list("...", "RESOLVED_FOR_ID")) {
|
|
22
|
+
// use item
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
18
26
|
Paginated — `list(...)` is an async iterable that yields each entry across pages (`for await (const item of ...)`), threading the cursor for you. See the [pagination guide](../pagination.md).
|
|
19
27
|
|
|
20
28
|
## create
|
|
@@ -25,6 +33,12 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
25
33
|
|
|
26
34
|
**Returns:** `StoragePolicyAssignment`
|
|
27
35
|
|
|
36
|
+
**Example**
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const result = await client.storagePolicyAssignments.create({ /* … */ });
|
|
40
|
+
```
|
|
41
|
+
|
|
28
42
|
## get
|
|
29
43
|
|
|
30
44
|
`GET /storage_policy_assignments/{storage_policy_assignment_id}`
|
|
@@ -35,6 +49,12 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
35
49
|
|
|
36
50
|
**Returns:** `StoragePolicyAssignment`
|
|
37
51
|
|
|
52
|
+
**Example**
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
const result = await client.storagePolicyAssignments.get("STORAGE_POLICY_ASSIGNMENT_ID");
|
|
56
|
+
```
|
|
57
|
+
|
|
38
58
|
## update
|
|
39
59
|
|
|
40
60
|
`PUT /storage_policy_assignments/{storage_policy_assignment_id}`
|
|
@@ -47,6 +67,12 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
47
67
|
|
|
48
68
|
**Returns:** `StoragePolicyAssignment`
|
|
49
69
|
|
|
70
|
+
**Example**
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
const result = await client.storagePolicyAssignments.update("STORAGE_POLICY_ASSIGNMENT_ID", { /* … */ });
|
|
74
|
+
```
|
|
75
|
+
|
|
50
76
|
## delete_
|
|
51
77
|
|
|
52
78
|
`DELETE /storage_policy_assignments/{storage_policy_assignment_id}`
|
|
@@ -57,3 +83,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
|
|
|
57
83
|
|
|
58
84
|
**Returns:** `void`
|
|
59
85
|
|
|
86
|
+
**Example**
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
await client.storagePolicyAssignments.delete_("STORAGE_POLICY_ASSIGNMENT_ID");
|
|
90
|
+
```
|
|
91
|
+
|
|
@@ -13,6 +13,12 @@ Reach these methods through the `taskAssignments` field on `Client`.
|
|
|
13
13
|
|
|
14
14
|
**Returns:** `TaskAssignments`
|
|
15
15
|
|
|
16
|
+
**Example**
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
const result = await client.taskAssignments.listTaskAssignments("TASK_ID");
|
|
20
|
+
```
|
|
21
|
+
|
|
16
22
|
## create
|
|
17
23
|
|
|
18
24
|
`POST /task_assignments`
|
|
@@ -21,6 +27,12 @@ Reach these methods through the `taskAssignments` field on `Client`.
|
|
|
21
27
|
|
|
22
28
|
**Returns:** `TaskAssignment`
|
|
23
29
|
|
|
30
|
+
**Example**
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
const result = await client.taskAssignments.create({ /* … */ });
|
|
34
|
+
```
|
|
35
|
+
|
|
24
36
|
## get
|
|
25
37
|
|
|
26
38
|
`GET /task_assignments/{task_assignment_id}`
|
|
@@ -31,6 +43,12 @@ Reach these methods through the `taskAssignments` field on `Client`.
|
|
|
31
43
|
|
|
32
44
|
**Returns:** `TaskAssignment`
|
|
33
45
|
|
|
46
|
+
**Example**
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
const result = await client.taskAssignments.get("TASK_ASSIGNMENT_ID");
|
|
50
|
+
```
|
|
51
|
+
|
|
34
52
|
## update
|
|
35
53
|
|
|
36
54
|
`PUT /task_assignments/{task_assignment_id}`
|
|
@@ -43,6 +61,12 @@ Reach these methods through the `taskAssignments` field on `Client`.
|
|
|
43
61
|
|
|
44
62
|
**Returns:** `TaskAssignment`
|
|
45
63
|
|
|
64
|
+
**Example**
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
const result = await client.taskAssignments.update("TASK_ASSIGNMENT_ID", { /* … */ });
|
|
68
|
+
```
|
|
69
|
+
|
|
46
70
|
## delete_
|
|
47
71
|
|
|
48
72
|
`DELETE /task_assignments/{task_assignment_id}`
|
|
@@ -53,3 +77,9 @@ Reach these methods through the `taskAssignments` field on `Client`.
|
|
|
53
77
|
|
|
54
78
|
**Returns:** `void`
|
|
55
79
|
|
|
80
|
+
**Example**
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
await client.taskAssignments.delete_("TASK_ASSIGNMENT_ID");
|
|
84
|
+
```
|
|
85
|
+
|