@unofficialbox/box-open-sdk 0.1.2 → 0.3.1

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.
Files changed (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -11
  3. package/dist/cjs/chunked_upload.js +108 -0
  4. package/dist/cjs/index.js +4 -1
  5. package/dist/cjs/managers/chunked_uploads.js +4 -4
  6. package/dist/cjs/managers/search.js +1 -1
  7. package/dist/cjs/managers/transfer.js +1 -1
  8. package/dist/cjs/managers/uploads.js +2 -2
  9. package/dist/esm/chunked_upload.js +104 -0
  10. package/dist/esm/index.js +2 -0
  11. package/dist/esm/managers/chunked_uploads.js +4 -4
  12. package/dist/esm/managers/search.js +1 -1
  13. package/dist/esm/managers/transfer.js +1 -1
  14. package/dist/esm/managers/uploads.js +2 -2
  15. package/dist/types/chunked_upload.d.ts +21 -0
  16. package/dist/types/index.d.ts +2 -0
  17. package/dist/types/managers/chunked_uploads.d.ts +2 -2
  18. package/dist/types/managers/search.d.ts +1 -1
  19. package/dist/types/managers/transfer.d.ts +3 -3
  20. package/dist/types/managers/uploads.d.ts +6 -6
  21. package/dist/types/models/schemas.d.ts +2 -2
  22. package/docs/auth.md +10 -10
  23. package/docs/errors.md +2 -2
  24. package/docs/managers/ai.md +30 -0
  25. package/docs/managers/ai_studio.md +32 -0
  26. package/docs/managers/app_item_associations.md +16 -0
  27. package/docs/managers/archives.md +26 -0
  28. package/docs/managers/authorization.md +24 -0
  29. package/docs/managers/automate_workflows.md +14 -0
  30. package/docs/managers/avatars.md +18 -0
  31. package/docs/managers/chunked_uploads.md +48 -4
  32. package/docs/managers/classifications.md +24 -0
  33. package/docs/managers/collaboration_allowlist_entries.md +26 -0
  34. package/docs/managers/collaboration_allowlist_exempt_targets.md +26 -0
  35. package/docs/managers/collections.md +22 -0
  36. package/docs/managers/comments.md +32 -0
  37. package/docs/managers/device_pinners.md +20 -0
  38. package/docs/managers/docgen.md +28 -0
  39. package/docs/managers/docgen_template.md +42 -0
  40. package/docs/managers/downloads.md +6 -0
  41. package/docs/managers/email_aliases.md +18 -0
  42. package/docs/managers/enterprise_configurations.md +6 -0
  43. package/docs/managers/events.md +12 -0
  44. package/docs/managers/external_users.md +6 -0
  45. package/docs/managers/file_classifications.md +24 -0
  46. package/docs/managers/file_metadata.md +30 -0
  47. package/docs/managers/file_requests.md +24 -0
  48. package/docs/managers/file_version_legal_holds.md +14 -0
  49. package/docs/managers/file_version_retentions.md +14 -0
  50. package/docs/managers/file_versions.md +32 -0
  51. package/docs/managers/file_watermarks.md +18 -0
  52. package/docs/managers/files.md +30 -0
  53. package/docs/managers/folder_classifications.md +24 -0
  54. package/docs/managers/folder_locks.md +18 -0
  55. package/docs/managers/folder_metadata.md +30 -0
  56. package/docs/managers/folder_watermarks.md +18 -0
  57. package/docs/managers/folders.md +38 -0
  58. package/docs/managers/groups.md +32 -0
  59. package/docs/managers/hub_collaborations.md +32 -0
  60. package/docs/managers/hub_document.md +16 -0
  61. package/docs/managers/hub_items.md +14 -0
  62. package/docs/managers/hubs.md +46 -0
  63. package/docs/managers/integration_mappings.md +50 -0
  64. package/docs/managers/invites.md +12 -0
  65. package/docs/managers/legal_hold_policies.md +32 -0
  66. package/docs/managers/legal_hold_policy_assignments.md +42 -0
  67. package/docs/managers/list_collaborations.md +32 -0
  68. package/docs/managers/memberships.md +40 -0
  69. package/docs/managers/metadata_cascade_policies.md +32 -0
  70. package/docs/managers/metadata_taxonomies.md +96 -0
  71. package/docs/managers/metadata_templates.md +54 -0
  72. package/docs/managers/notes.md +6 -0
  73. package/docs/managers/recent_items.md +8 -0
  74. package/docs/managers/retention_policies.md +32 -0
  75. package/docs/managers/retention_policy_assignments.md +42 -0
  76. package/docs/managers/search.md +13 -1
  77. package/docs/managers/session_termination.md +12 -0
  78. package/docs/managers/shared_links_app_items.md +6 -0
  79. package/docs/managers/shared_links_files.md +30 -0
  80. package/docs/managers/shared_links_folders.md +30 -0
  81. package/docs/managers/shared_links_web_links.md +30 -0
  82. package/docs/managers/shield_information_barrier_reports.md +20 -0
  83. package/docs/managers/shield_information_barrier_segment_members.md +26 -0
  84. package/docs/managers/shield_information_barrier_segment_restrictions.md +26 -0
  85. package/docs/managers/shield_information_barrier_segments.md +32 -0
  86. package/docs/managers/shield_information_barriers.md +26 -0
  87. package/docs/managers/shield_lists.md +30 -0
  88. package/docs/managers/sign_requests.md +32 -0
  89. package/docs/managers/sign_templates.md +14 -0
  90. package/docs/managers/skills.md +30 -0
  91. package/docs/managers/storage_policies.md +14 -0
  92. package/docs/managers/storage_policy_assignments.md +32 -0
  93. package/docs/managers/task_assignments.md +30 -0
  94. package/docs/managers/tasks.md +30 -0
  95. package/docs/managers/terms_of_service_user_statuses.md +18 -0
  96. package/docs/managers/terms_of_services.md +24 -0
  97. package/docs/managers/transfer.md +7 -1
  98. package/docs/managers/trashed_files.md +18 -0
  99. package/docs/managers/trashed_folders.md +18 -0
  100. package/docs/managers/trashed_items.md +8 -0
  101. package/docs/managers/trashed_web_links.md +18 -0
  102. package/docs/managers/uploads.md +20 -2
  103. package/docs/managers/user_collaborations.md +24 -0
  104. package/docs/managers/users.md +38 -0
  105. package/docs/managers/web_links.md +24 -0
  106. package/docs/managers/webhooks.md +32 -0
  107. package/docs/managers/workflows.md +14 -0
  108. package/docs/managers/zip_downloads.md +18 -0
  109. package/package.json +3 -3
@@ -17,6 +17,14 @@ Reach these methods through the `retentionPolicyAssignments` field on `Client`.
17
17
 
18
18
  **Returns:** `RetentionPolicyAssignments`
19
19
 
20
+ **Example**
21
+
22
+ ```ts
23
+ for await (const item of client.retentionPolicyAssignments.listRetentionPolicyAssignments("RETENTION_POLICY_ID")) {
24
+ // use item
25
+ }
26
+ ```
27
+
20
28
  Paginated — `listRetentionPolicyAssignments(...)` 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).
21
29
 
22
30
  ## create
@@ -27,6 +35,12 @@ Paginated — `listRetentionPolicyAssignments(...)` is an async iterable that yi
27
35
 
28
36
  **Returns:** `RetentionPolicyAssignment`
29
37
 
38
+ **Example**
39
+
40
+ ```ts
41
+ const result = await client.retentionPolicyAssignments.create({ /* … */ });
42
+ ```
43
+
30
44
  ## get
31
45
 
32
46
  `GET /retention_policy_assignments/{retention_policy_assignment_id}`
@@ -38,6 +52,12 @@ Paginated — `listRetentionPolicyAssignments(...)` is an async iterable that yi
38
52
 
39
53
  **Returns:** `RetentionPolicyAssignment`
40
54
 
55
+ **Example**
56
+
57
+ ```ts
58
+ const result = await client.retentionPolicyAssignments.get("RETENTION_POLICY_ASSIGNMENT_ID");
59
+ ```
60
+
41
61
  ## delete_
42
62
 
43
63
  `DELETE /retention_policy_assignments/{retention_policy_assignment_id}`
@@ -48,6 +68,12 @@ Paginated — `listRetentionPolicyAssignments(...)` is an async iterable that yi
48
68
 
49
69
  **Returns:** `void`
50
70
 
71
+ **Example**
72
+
73
+ ```ts
74
+ await client.retentionPolicyAssignments.delete_("RETENTION_POLICY_ASSIGNMENT_ID");
75
+ ```
76
+
51
77
  ## listFileUnderRetention
52
78
 
53
79
  `GET /retention_policy_assignments/{retention_policy_assignment_id}/files_under_retention`
@@ -60,6 +86,14 @@ Paginated — `listRetentionPolicyAssignments(...)` is an async iterable that yi
60
86
 
61
87
  **Returns:** `FilesUnderRetention`
62
88
 
89
+ **Example**
90
+
91
+ ```ts
92
+ for await (const item of client.retentionPolicyAssignments.listFileUnderRetention("RETENTION_POLICY_ASSIGNMENT_ID")) {
93
+ // use item
94
+ }
95
+ ```
96
+
63
97
  Paginated — `listFileUnderRetention(...)` 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).
64
98
 
65
99
  ## listFileVersionUnderRetention
@@ -74,5 +108,13 @@ Paginated — `listFileUnderRetention(...)` is an async iterable that yields eac
74
108
 
75
109
  **Returns:** `FilesUnderRetention`
76
110
 
111
+ **Example**
112
+
113
+ ```ts
114
+ for await (const item of client.retentionPolicyAssignments.listFileVersionUnderRetention("RETENTION_POLICY_ASSIGNMENT_ID")) {
115
+ // use item
116
+ }
117
+ ```
118
+
77
119
  Paginated — `listFileVersionUnderRetention(...)` 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).
78
120
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  Reach these methods through the `search` field on `Client`.
5
5
 
6
- ## createMetadataQueryExecuteRead
6
+ ## queryByMetadata
7
7
 
8
8
  `POST /metadata_queries/execute_read`
9
9
 
@@ -11,6 +11,12 @@ Reach these methods through the `search` field on `Client`.
11
11
 
12
12
  **Returns:** `MetadataQueryResults`
13
13
 
14
+ **Example**
15
+
16
+ ```ts
17
+ const result = await client.search.queryByMetadata({ /* … */ });
18
+ ```
19
+
14
20
  ## get
15
21
 
16
22
  `GET /search`
@@ -41,3 +47,9 @@ Reach these methods through the `search` field on `Client`.
41
47
 
42
48
  **Returns:** `SearchResultsResponse`
43
49
 
50
+ **Example**
51
+
52
+ ```ts
53
+ const result = await client.search.get();
54
+ ```
55
+
@@ -11,6 +11,12 @@ Reach these methods through the `sessionTermination` field on `Client`.
11
11
 
12
12
  **Returns:** `SessionTerminationMessage`
13
13
 
14
+ **Example**
15
+
16
+ ```ts
17
+ const result = await client.sessionTermination.createUserTerminateSessions({ /* … */ });
18
+ ```
19
+
14
20
  ## createGroupTerminateSessions
15
21
 
16
22
  `POST /groups/terminate_sessions`
@@ -19,3 +25,9 @@ Reach these methods through the `sessionTermination` field on `Client`.
19
25
 
20
26
  **Returns:** `SessionTerminationMessage`
21
27
 
28
+ **Example**
29
+
30
+ ```ts
31
+ const result = await client.sessionTermination.createGroupTerminateSessions({ /* … */ });
32
+ ```
33
+
@@ -13,3 +13,9 @@ Reach these methods through the `sharedLinksAppItems` field on `Client`.
13
13
 
14
14
  **Returns:** `AppItem`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.sharedLinksAppItems.getSharedItemsAppItems("BOXAPI");
20
+ ```
21
+
@@ -15,6 +15,12 @@ Reach these methods through the `sharedLinksFiles` field on `Client`.
15
15
 
16
16
  **Returns:** `FileFull`
17
17
 
18
+ **Example**
19
+
20
+ ```ts
21
+ const result = await client.sharedLinksFiles.getSharedItems("BOXAPI");
22
+ ```
23
+
18
24
  ## getFileGetSharedLink
19
25
 
20
26
  `GET /files/{file_id}`
@@ -26,6 +32,12 @@ Reach these methods through the `sharedLinksFiles` field on `Client`.
26
32
 
27
33
  **Returns:** `FileFull`
28
34
 
35
+ **Example**
36
+
37
+ ```ts
38
+ const result = await client.sharedLinksFiles.getFileGetSharedLink("FILE_ID", "FIELDS");
39
+ ```
40
+
29
41
  ## updateFileAddSharedLink
30
42
 
31
43
  `PUT /files/{file_id}`
@@ -39,6 +51,12 @@ Reach these methods through the `sharedLinksFiles` field on `Client`.
39
51
 
40
52
  **Returns:** `FileFull`
41
53
 
54
+ **Example**
55
+
56
+ ```ts
57
+ const result = await client.sharedLinksFiles.updateFileAddSharedLink("FILE_ID", "FIELDS", { /* … */ });
58
+ ```
59
+
42
60
  ## updateFileUpdateSharedLink
43
61
 
44
62
  `PUT /files/{file_id}`
@@ -52,6 +70,12 @@ Reach these methods through the `sharedLinksFiles` field on `Client`.
52
70
 
53
71
  **Returns:** `FileFull`
54
72
 
73
+ **Example**
74
+
75
+ ```ts
76
+ const result = await client.sharedLinksFiles.updateFileUpdateSharedLink("FILE_ID", "FIELDS", { /* … */ });
77
+ ```
78
+
55
79
  ## updateFileRemoveSharedLink
56
80
 
57
81
  `PUT /files/{file_id}`
@@ -65,3 +89,9 @@ Reach these methods through the `sharedLinksFiles` field on `Client`.
65
89
 
66
90
  **Returns:** `FileFull`
67
91
 
92
+ **Example**
93
+
94
+ ```ts
95
+ const result = await client.sharedLinksFiles.updateFileRemoveSharedLink("FILE_ID", "FIELDS", { /* … */ });
96
+ ```
97
+
@@ -15,6 +15,12 @@ Reach these methods through the `sharedLinksFolders` field on `Client`.
15
15
 
16
16
  **Returns:** `FolderFull`
17
17
 
18
+ **Example**
19
+
20
+ ```ts
21
+ const result = await client.sharedLinksFolders.getSharedItemsFolders("BOXAPI");
22
+ ```
23
+
18
24
  ## getFolderGetSharedLink
19
25
 
20
26
  `GET /folders/{folder_id}`
@@ -26,6 +32,12 @@ Reach these methods through the `sharedLinksFolders` field on `Client`.
26
32
 
27
33
  **Returns:** `FolderFull`
28
34
 
35
+ **Example**
36
+
37
+ ```ts
38
+ const result = await client.sharedLinksFolders.getFolderGetSharedLink("FOLDER_ID", "FIELDS");
39
+ ```
40
+
29
41
  ## updateFolderAddSharedLink
30
42
 
31
43
  `PUT /folders/{folder_id}`
@@ -39,6 +51,12 @@ Reach these methods through the `sharedLinksFolders` field on `Client`.
39
51
 
40
52
  **Returns:** `FolderFull`
41
53
 
54
+ **Example**
55
+
56
+ ```ts
57
+ const result = await client.sharedLinksFolders.updateFolderAddSharedLink("FOLDER_ID", "FIELDS", { /* … */ });
58
+ ```
59
+
42
60
  ## updateFolderUpdateSharedLink
43
61
 
44
62
  `PUT /folders/{folder_id}`
@@ -52,6 +70,12 @@ Reach these methods through the `sharedLinksFolders` field on `Client`.
52
70
 
53
71
  **Returns:** `FolderFull`
54
72
 
73
+ **Example**
74
+
75
+ ```ts
76
+ const result = await client.sharedLinksFolders.updateFolderUpdateSharedLink("FOLDER_ID", "FIELDS", { /* … */ });
77
+ ```
78
+
55
79
  ## updateFolderRemoveSharedLink
56
80
 
57
81
  `PUT /folders/{folder_id}`
@@ -65,3 +89,9 @@ Reach these methods through the `sharedLinksFolders` field on `Client`.
65
89
 
66
90
  **Returns:** `FolderFull`
67
91
 
92
+ **Example**
93
+
94
+ ```ts
95
+ const result = await client.sharedLinksFolders.updateFolderRemoveSharedLink("FOLDER_ID", "FIELDS", { /* … */ });
96
+ ```
97
+
@@ -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
+