@unofficialbox/box-open-sdk 0.1.2 → 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.
Files changed (101) hide show
  1. package/README.md +46 -10
  2. package/dist/cjs/index.js +2 -1
  3. package/dist/cjs/managers/search.js +1 -1
  4. package/dist/cjs/managers/transfer.js +1 -1
  5. package/dist/cjs/managers/uploads.js +2 -2
  6. package/dist/esm/index.js +1 -0
  7. package/dist/esm/managers/search.js +1 -1
  8. package/dist/esm/managers/transfer.js +1 -1
  9. package/dist/esm/managers/uploads.js +2 -2
  10. package/dist/types/index.d.ts +1 -0
  11. package/dist/types/managers/search.d.ts +1 -1
  12. package/dist/types/managers/transfer.d.ts +3 -3
  13. package/dist/types/managers/uploads.d.ts +6 -6
  14. package/docs/auth.md +10 -10
  15. package/docs/errors.md +2 -2
  16. package/docs/managers/ai.md +30 -0
  17. package/docs/managers/ai_studio.md +32 -0
  18. package/docs/managers/app_item_associations.md +16 -0
  19. package/docs/managers/archives.md +26 -0
  20. package/docs/managers/authorization.md +24 -0
  21. package/docs/managers/automate_workflows.md +14 -0
  22. package/docs/managers/avatars.md +18 -0
  23. package/docs/managers/chunked_uploads.md +44 -0
  24. package/docs/managers/classifications.md +24 -0
  25. package/docs/managers/collaboration_allowlist_entries.md +26 -0
  26. package/docs/managers/collaboration_allowlist_exempt_targets.md +26 -0
  27. package/docs/managers/collections.md +22 -0
  28. package/docs/managers/comments.md +32 -0
  29. package/docs/managers/device_pinners.md +20 -0
  30. package/docs/managers/docgen.md +28 -0
  31. package/docs/managers/docgen_template.md +42 -0
  32. package/docs/managers/downloads.md +6 -0
  33. package/docs/managers/email_aliases.md +18 -0
  34. package/docs/managers/enterprise_configurations.md +6 -0
  35. package/docs/managers/events.md +12 -0
  36. package/docs/managers/external_users.md +6 -0
  37. package/docs/managers/file_classifications.md +24 -0
  38. package/docs/managers/file_metadata.md +30 -0
  39. package/docs/managers/file_requests.md +24 -0
  40. package/docs/managers/file_version_legal_holds.md +14 -0
  41. package/docs/managers/file_version_retentions.md +14 -0
  42. package/docs/managers/file_versions.md +32 -0
  43. package/docs/managers/file_watermarks.md +18 -0
  44. package/docs/managers/files.md +30 -0
  45. package/docs/managers/folder_classifications.md +24 -0
  46. package/docs/managers/folder_locks.md +18 -0
  47. package/docs/managers/folder_metadata.md +30 -0
  48. package/docs/managers/folder_watermarks.md +18 -0
  49. package/docs/managers/folders.md +38 -0
  50. package/docs/managers/groups.md +32 -0
  51. package/docs/managers/hub_collaborations.md +32 -0
  52. package/docs/managers/hub_document.md +16 -0
  53. package/docs/managers/hub_items.md +14 -0
  54. package/docs/managers/hubs.md +46 -0
  55. package/docs/managers/integration_mappings.md +50 -0
  56. package/docs/managers/invites.md +12 -0
  57. package/docs/managers/legal_hold_policies.md +32 -0
  58. package/docs/managers/legal_hold_policy_assignments.md +42 -0
  59. package/docs/managers/list_collaborations.md +32 -0
  60. package/docs/managers/memberships.md +40 -0
  61. package/docs/managers/metadata_cascade_policies.md +32 -0
  62. package/docs/managers/metadata_taxonomies.md +96 -0
  63. package/docs/managers/metadata_templates.md +54 -0
  64. package/docs/managers/notes.md +6 -0
  65. package/docs/managers/recent_items.md +8 -0
  66. package/docs/managers/retention_policies.md +32 -0
  67. package/docs/managers/retention_policy_assignments.md +42 -0
  68. package/docs/managers/search.md +13 -1
  69. package/docs/managers/session_termination.md +12 -0
  70. package/docs/managers/shared_links_app_items.md +6 -0
  71. package/docs/managers/shared_links_files.md +30 -0
  72. package/docs/managers/shared_links_folders.md +30 -0
  73. package/docs/managers/shared_links_web_links.md +30 -0
  74. package/docs/managers/shield_information_barrier_reports.md +20 -0
  75. package/docs/managers/shield_information_barrier_segment_members.md +26 -0
  76. package/docs/managers/shield_information_barrier_segment_restrictions.md +26 -0
  77. package/docs/managers/shield_information_barrier_segments.md +32 -0
  78. package/docs/managers/shield_information_barriers.md +26 -0
  79. package/docs/managers/shield_lists.md +30 -0
  80. package/docs/managers/sign_requests.md +32 -0
  81. package/docs/managers/sign_templates.md +14 -0
  82. package/docs/managers/skills.md +30 -0
  83. package/docs/managers/storage_policies.md +14 -0
  84. package/docs/managers/storage_policy_assignments.md +32 -0
  85. package/docs/managers/task_assignments.md +30 -0
  86. package/docs/managers/tasks.md +30 -0
  87. package/docs/managers/terms_of_service_user_statuses.md +18 -0
  88. package/docs/managers/terms_of_services.md +24 -0
  89. package/docs/managers/transfer.md +7 -1
  90. package/docs/managers/trashed_files.md +18 -0
  91. package/docs/managers/trashed_folders.md +18 -0
  92. package/docs/managers/trashed_items.md +8 -0
  93. package/docs/managers/trashed_web_links.md +18 -0
  94. package/docs/managers/uploads.md +20 -2
  95. package/docs/managers/user_collaborations.md +24 -0
  96. package/docs/managers/users.md +38 -0
  97. package/docs/managers/web_links.md +24 -0
  98. package/docs/managers/webhooks.md +32 -0
  99. package/docs/managers/workflows.md +14 -0
  100. package/docs/managers/zip_downloads.md +18 -0
  101. package/package.json +1 -1
@@ -11,6 +11,12 @@ Reach these methods through the `chunkedUploads` field on `Client`.
11
11
 
12
12
  **Returns:** `UploadSession`
13
13
 
14
+ **Example**
15
+
16
+ ```ts
17
+ const result = await client.chunkedUploads.createFileUploadSessions({ /* … */ });
18
+ ```
19
+
14
20
  ## createFileByIdUploadSessions
15
21
 
16
22
  `POST /files/{file_id}/upload_sessions`
@@ -23,6 +29,12 @@ Reach these methods through the `chunkedUploads` field on `Client`.
23
29
 
24
30
  **Returns:** `UploadSession`
25
31
 
32
+ **Example**
33
+
34
+ ```ts
35
+ const result = await client.chunkedUploads.createFileByIdUploadSessions("FILE_ID", { /* … */ });
36
+ ```
37
+
26
38
  ## getFileUploadSession
27
39
 
28
40
  `GET /files/upload_sessions/{upload_session_id}`
@@ -33,6 +45,12 @@ Reach these methods through the `chunkedUploads` field on `Client`.
33
45
 
34
46
  **Returns:** `UploadSession`
35
47
 
48
+ **Example**
49
+
50
+ ```ts
51
+ const result = await client.chunkedUploads.getFileUploadSession("UPLOAD_SESSION_ID");
52
+ ```
53
+
36
54
  ## updateFileUploadSession
37
55
 
38
56
  `PUT /files/upload_sessions/{upload_session_id}`
@@ -47,6 +65,12 @@ Reach these methods through the `chunkedUploads` field on `Client`.
47
65
 
48
66
  **Returns:** `UploadedPart`
49
67
 
68
+ **Example**
69
+
70
+ ```ts
71
+ const result = await client.chunkedUploads.updateFileUploadSession("UPLOAD_SESSION_ID", "DIGEST", "CONTENT-RANGE", { /* … */ });
72
+ ```
73
+
50
74
  ## deleteFileUploadSession
51
75
 
52
76
  `DELETE /files/upload_sessions/{upload_session_id}`
@@ -57,6 +81,12 @@ Reach these methods through the `chunkedUploads` field on `Client`.
57
81
 
58
82
  **Returns:** `void`
59
83
 
84
+ **Example**
85
+
86
+ ```ts
87
+ await client.chunkedUploads.deleteFileUploadSession("UPLOAD_SESSION_ID");
88
+ ```
89
+
60
90
  ## listFileUploadSessionParts
61
91
 
62
92
  `GET /files/upload_sessions/{upload_session_id}/parts`
@@ -69,6 +99,14 @@ Reach these methods through the `chunkedUploads` field on `Client`.
69
99
 
70
100
  **Returns:** `UploadParts`
71
101
 
102
+ **Example**
103
+
104
+ ```ts
105
+ for await (const item of client.chunkedUploads.listFileUploadSessionParts("UPLOAD_SESSION_ID")) {
106
+ // use item
107
+ }
108
+ ```
109
+
72
110
  Paginated — `listFileUploadSessionParts(...)` 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).
73
111
 
74
112
  ## commitFileUploadSession
@@ -86,3 +124,9 @@ Paginated — `listFileUploadSessionParts(...)` is an async iterable that yields
86
124
 
87
125
  **Returns:** `Files`
88
126
 
127
+ **Example**
128
+
129
+ ```ts
130
+ const result = await client.chunkedUploads.commitFileUploadSession("UPLOAD_SESSION_ID", "DIGEST", { /* … */ });
131
+ ```
132
+
@@ -9,6 +9,12 @@ Reach these methods through the `classifications` field on `Client`.
9
9
 
10
10
  **Returns:** `ClassificationTemplate`
11
11
 
12
+ **Example**
13
+
14
+ ```ts
15
+ const result = await client.classifications.get();
16
+ ```
17
+
12
18
  ## updateAdd
13
19
 
14
20
  `PUT /metadata_templates/enterprise/securityClassification-6VMVochwUWo/schema`
@@ -17,6 +23,12 @@ Reach these methods through the `classifications` field on `Client`.
17
23
 
18
24
  **Returns:** `ClassificationTemplate`
19
25
 
26
+ **Example**
27
+
28
+ ```ts
29
+ const result = await client.classifications.updateAdd([]);
30
+ ```
31
+
20
32
  ## updateUpdate
21
33
 
22
34
  `PUT /metadata_templates/enterprise/securityClassification-6VMVochwUWo/schema`
@@ -25,6 +37,12 @@ Reach these methods through the `classifications` field on `Client`.
25
37
 
26
38
  **Returns:** `ClassificationTemplate`
27
39
 
40
+ **Example**
41
+
42
+ ```ts
43
+ const result = await client.classifications.updateUpdate([]);
44
+ ```
45
+
28
46
  ## createMetadataTemplateSchemaClassifications
29
47
 
30
48
  `POST /metadata_templates/schema`
@@ -33,3 +51,9 @@ Reach these methods through the `classifications` field on `Client`.
33
51
 
34
52
  **Returns:** `ClassificationTemplate`
35
53
 
54
+ **Example**
55
+
56
+ ```ts
57
+ const result = await client.classifications.createMetadataTemplateSchemaClassifications({ /* … */ });
58
+ ```
59
+
@@ -14,6 +14,14 @@ Reach these methods through the `collaborationAllowlistEntries` field on `Client
14
14
 
15
15
  **Returns:** `CollaborationAllowlistEntries`
16
16
 
17
+ **Example**
18
+
19
+ ```ts
20
+ for await (const item of client.collaborationAllowlistEntries.listCollaborationWhitelistEntries()) {
21
+ // use item
22
+ }
23
+ ```
24
+
17
25
  Paginated — `listCollaborationWhitelistEntries(...)` 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
  ## createCollaborationWhitelistEntries
@@ -24,6 +32,12 @@ Paginated — `listCollaborationWhitelistEntries(...)` is an async iterable that
24
32
 
25
33
  **Returns:** `CollaborationAllowlistEntry`
26
34
 
35
+ **Example**
36
+
37
+ ```ts
38
+ const result = await client.collaborationAllowlistEntries.createCollaborationWhitelistEntries({ /* … */ });
39
+ ```
40
+
27
41
  ## getCollaborationWhitelistEntry
28
42
 
29
43
  `GET /collaboration_whitelist_entries/{collaboration_whitelist_entry_id}`
@@ -34,6 +48,12 @@ Paginated — `listCollaborationWhitelistEntries(...)` is an async iterable that
34
48
 
35
49
  **Returns:** `CollaborationAllowlistEntry`
36
50
 
51
+ **Example**
52
+
53
+ ```ts
54
+ const result = await client.collaborationAllowlistEntries.getCollaborationWhitelistEntry("COLLABORATION_WHITELIST_ENTRY_ID");
55
+ ```
56
+
37
57
  ## deleteCollaborationWhitelistEntry
38
58
 
39
59
  `DELETE /collaboration_whitelist_entries/{collaboration_whitelist_entry_id}`
@@ -44,3 +64,9 @@ Paginated — `listCollaborationWhitelistEntries(...)` is an async iterable that
44
64
 
45
65
  **Returns:** `void`
46
66
 
67
+ **Example**
68
+
69
+ ```ts
70
+ await client.collaborationAllowlistEntries.deleteCollaborationWhitelistEntry("COLLABORATION_WHITELIST_ENTRY_ID");
71
+ ```
72
+
@@ -14,6 +14,14 @@ Reach these methods through the `collaborationAllowlistExemptTargets` field on `
14
14
 
15
15
  **Returns:** `CollaborationAllowlistExemptTargets`
16
16
 
17
+ **Example**
18
+
19
+ ```ts
20
+ for await (const item of client.collaborationAllowlistExemptTargets.listCollaborationWhitelistExemptTargets()) {
21
+ // use item
22
+ }
23
+ ```
24
+
17
25
  Paginated — `listCollaborationWhitelistExemptTargets(...)` 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
  ## createCollaborationWhitelistExemptTargets
@@ -24,6 +32,12 @@ Paginated — `listCollaborationWhitelistExemptTargets(...)` is an async iterabl
24
32
 
25
33
  **Returns:** `CollaborationAllowlistExemptTarget`
26
34
 
35
+ **Example**
36
+
37
+ ```ts
38
+ const result = await client.collaborationAllowlistExemptTargets.createCollaborationWhitelistExemptTargets({ /* … */ });
39
+ ```
40
+
27
41
  ## getCollaborationWhitelistExemptTarget
28
42
 
29
43
  `GET /collaboration_whitelist_exempt_targets/{collaboration_whitelist_exempt_target_id}`
@@ -34,6 +48,12 @@ Paginated — `listCollaborationWhitelistExemptTargets(...)` is an async iterabl
34
48
 
35
49
  **Returns:** `CollaborationAllowlistExemptTarget`
36
50
 
51
+ **Example**
52
+
53
+ ```ts
54
+ const result = await client.collaborationAllowlistExemptTargets.getCollaborationWhitelistExemptTarget("COLLABORATION_WHITELIST_EXEMPT_TARGET_ID");
55
+ ```
56
+
37
57
  ## deleteCollaborationWhitelistExemptTarget
38
58
 
39
59
  `DELETE /collaboration_whitelist_exempt_targets/{collaboration_whitelist_exempt_target_id}`
@@ -44,3 +64,9 @@ Paginated — `listCollaborationWhitelistExemptTargets(...)` is an async iterabl
44
64
 
45
65
  **Returns:** `void`
46
66
 
67
+ **Example**
68
+
69
+ ```ts
70
+ await client.collaborationAllowlistExemptTargets.deleteCollaborationWhitelistExemptTarget("COLLABORATION_WHITELIST_EXEMPT_TARGET_ID");
71
+ ```
72
+
@@ -15,6 +15,14 @@ Reach these methods through the `collections` field on `Client`.
15
15
 
16
16
  **Returns:** `Collections`
17
17
 
18
+ **Example**
19
+
20
+ ```ts
21
+ for await (const item of client.collections.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
  ## listItems
@@ -30,6 +38,14 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
30
38
 
31
39
  **Returns:** `ItemsOffsetPaginated`
32
40
 
41
+ **Example**
42
+
43
+ ```ts
44
+ for await (const item of client.collections.listItems("COLLECTION_ID")) {
45
+ // use item
46
+ }
47
+ ```
48
+
33
49
  Paginated — `listItems(...)` 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).
34
50
 
35
51
  ## get
@@ -42,3 +58,9 @@ Paginated — `listItems(...)` is an async iterable that yields each entry acros
42
58
 
43
59
  **Returns:** `Collection`
44
60
 
61
+ **Example**
62
+
63
+ ```ts
64
+ const result = await client.collections.get("COLLECTION_ID");
65
+ ```
66
+
@@ -16,6 +16,14 @@ Reach these methods through the `comments` field on `Client`.
16
16
 
17
17
  **Returns:** `Comments`
18
18
 
19
+ **Example**
20
+
21
+ ```ts
22
+ for await (const item of client.comments.listFile("FILE_ID")) {
23
+ // use item
24
+ }
25
+ ```
26
+
19
27
  Paginated — `listFile(...)` 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).
20
28
 
21
29
  ## get
@@ -29,6 +37,12 @@ Paginated — `listFile(...)` is an async iterable that yields each entry across
29
37
 
30
38
  **Returns:** `CommentFull`
31
39
 
40
+ **Example**
41
+
42
+ ```ts
43
+ const result = await client.comments.get("COMMENT_ID");
44
+ ```
45
+
32
46
  ## update
33
47
 
34
48
  `PUT /comments/{comment_id}`
@@ -42,6 +56,12 @@ Paginated — `listFile(...)` is an async iterable that yields each entry across
42
56
 
43
57
  **Returns:** `CommentFull`
44
58
 
59
+ **Example**
60
+
61
+ ```ts
62
+ const result = await client.comments.update("COMMENT_ID", { /* … */ });
63
+ ```
64
+
45
65
  ## delete_
46
66
 
47
67
  `DELETE /comments/{comment_id}`
@@ -52,6 +72,12 @@ Paginated — `listFile(...)` is an async iterable that yields each entry across
52
72
 
53
73
  **Returns:** `void`
54
74
 
75
+ **Example**
76
+
77
+ ```ts
78
+ await client.comments.delete_("COMMENT_ID");
79
+ ```
80
+
55
81
  ## create
56
82
 
57
83
  `POST /comments`
@@ -64,3 +90,9 @@ Paginated — `listFile(...)` is an async iterable that yields each entry across
64
90
 
65
91
  **Returns:** `CommentFull`
66
92
 
93
+ **Example**
94
+
95
+ ```ts
96
+ const result = await client.comments.create({ /* … */ });
97
+ ```
98
+
@@ -13,6 +13,12 @@ Reach these methods through the `devicePinners` field on `Client`.
13
13
 
14
14
  **Returns:** `DevicePinner`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.devicePinners.get("DEVICE_PINNER_ID");
20
+ ```
21
+
16
22
  ## delete_
17
23
 
18
24
  `DELETE /device_pinners/{device_pinner_id}`
@@ -23,6 +29,12 @@ Reach these methods through the `devicePinners` field on `Client`.
23
29
 
24
30
  **Returns:** `void`
25
31
 
32
+ **Example**
33
+
34
+ ```ts
35
+ await client.devicePinners.delete_("DEVICE_PINNER_ID");
36
+ ```
37
+
26
38
  ## listEnterprise
27
39
 
28
40
  `GET /enterprises/{enterprise_id}/device_pinners`
@@ -36,5 +48,13 @@ Reach these methods through the `devicePinners` field on `Client`.
36
48
 
37
49
  **Returns:** `DevicePinners`
38
50
 
51
+ **Example**
52
+
53
+ ```ts
54
+ for await (const item of client.devicePinners.listEnterprise("ENTERPRISE_ID")) {
55
+ // use item
56
+ }
57
+ ```
58
+
39
59
  Paginated — `listEnterprise(...)` 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).
40
60
 
@@ -13,6 +13,12 @@ Reach these methods through the `docgen` field on `Client`.
13
13
 
14
14
  **Returns:** `DocGenJob`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.docgen.getJob("JOB_ID");
20
+ ```
21
+
16
22
  ## listJobs
17
23
 
18
24
  `GET /docgen_jobs`
@@ -24,6 +30,14 @@ Reach these methods through the `docgen` field on `Client`.
24
30
 
25
31
  **Returns:** `DocGenJobsFull`
26
32
 
33
+ **Example**
34
+
35
+ ```ts
36
+ for await (const item of client.docgen.listJobs()) {
37
+ // use item
38
+ }
39
+ ```
40
+
27
41
  Paginated — `listJobs(...)` 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).
28
42
 
29
43
  ## listBatchJob
@@ -38,6 +52,14 @@ Paginated — `listJobs(...)` is an async iterable that yields each entry across
38
52
 
39
53
  **Returns:** `DocGenJobs`
40
54
 
55
+ **Example**
56
+
57
+ ```ts
58
+ for await (const item of client.docgen.listBatchJob("BATCH_ID")) {
59
+ // use item
60
+ }
61
+ ```
62
+
41
63
  Paginated — `listBatchJob(...)` 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).
42
64
 
43
65
  ## createBatches
@@ -48,3 +70,9 @@ Paginated — `listBatchJob(...)` is an async iterable that yields each entry ac
48
70
 
49
71
  **Returns:** `DocGenBatchBase`
50
72
 
73
+ **Example**
74
+
75
+ ```ts
76
+ const result = await client.docgen.createBatches({ /* … */ });
77
+ ```
78
+
@@ -14,6 +14,14 @@ Reach these methods through the `docgenTemplate` field on `Client`.
14
14
 
15
15
  **Returns:** `DocGenTemplates`
16
16
 
17
+ **Example**
18
+
19
+ ```ts
20
+ for await (const item of client.docgenTemplate.listDocgenTemplates()) {
21
+ // use item
22
+ }
23
+ ```
24
+
17
25
  Paginated — `listDocgenTemplates(...)` 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
  ## createDocgenTemplates
@@ -24,6 +32,12 @@ Paginated — `listDocgenTemplates(...)` is an async iterable that yields each e
24
32
 
25
33
  **Returns:** `DocGenTemplateBase`
26
34
 
35
+ **Example**
36
+
37
+ ```ts
38
+ const result = await client.docgenTemplate.createDocgenTemplates({ /* … */ });
39
+ ```
40
+
27
41
  ## getDocgenTemplate
28
42
 
29
43
  `GET /docgen_templates/{template_id}`
@@ -34,6 +48,12 @@ Paginated — `listDocgenTemplates(...)` is an async iterable that yields each e
34
48
 
35
49
  **Returns:** `DocGenTemplate`
36
50
 
51
+ **Example**
52
+
53
+ ```ts
54
+ const result = await client.docgenTemplate.getDocgenTemplate("TEMPLATE_ID");
55
+ ```
56
+
37
57
  ## deleteDocgenTemplate
38
58
 
39
59
  `DELETE /docgen_templates/{template_id}`
@@ -44,6 +64,12 @@ Paginated — `listDocgenTemplates(...)` is an async iterable that yields each e
44
64
 
45
65
  **Returns:** `void`
46
66
 
67
+ **Example**
68
+
69
+ ```ts
70
+ await client.docgenTemplate.deleteDocgenTemplate("TEMPLATE_ID");
71
+ ```
72
+
47
73
  ## listDocgenTemplateTags
48
74
 
49
75
  `GET /docgen_templates/{template_id}/tags`
@@ -57,6 +83,14 @@ Paginated — `listDocgenTemplates(...)` is an async iterable that yields each e
57
83
 
58
84
  **Returns:** `DocGenTags`
59
85
 
86
+ **Example**
87
+
88
+ ```ts
89
+ for await (const item of client.docgenTemplate.listDocgenTemplateTags("TEMPLATE_ID")) {
90
+ // use item
91
+ }
92
+ ```
93
+
60
94
  Paginated — `listDocgenTemplateTags(...)` 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).
61
95
 
62
96
  ## listJob
@@ -71,5 +105,13 @@ Paginated — `listDocgenTemplateTags(...)` is an async iterable that yields eac
71
105
 
72
106
  **Returns:** `DocGenJobs`
73
107
 
108
+ **Example**
109
+
110
+ ```ts
111
+ for await (const item of client.docgenTemplate.listJob("TEMPLATE_ID")) {
112
+ // use item
113
+ }
114
+ ```
115
+
74
116
  Paginated — `listJob(...)` 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).
75
117
 
@@ -17,3 +17,9 @@ Reach these methods through the `downloads` field on `Client`.
17
17
 
18
18
  **Returns:** a binary stream (`runtime.Stream`)
19
19
 
20
+ **Example**
21
+
22
+ ```ts
23
+ const result = await client.downloads.getFileContent("FILE_ID");
24
+ ```
25
+
@@ -13,6 +13,12 @@ Reach these methods through the `emailAliases` field on `Client`.
13
13
 
14
14
  **Returns:** `EmailAliases`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.emailAliases.listUser("USER_ID");
20
+ ```
21
+
16
22
  ## createUser
17
23
 
18
24
  `POST /users/{user_id}/email_aliases`
@@ -25,6 +31,12 @@ Reach these methods through the `emailAliases` field on `Client`.
25
31
 
26
32
  **Returns:** `EmailAlias`
27
33
 
34
+ **Example**
35
+
36
+ ```ts
37
+ const result = await client.emailAliases.createUser("USER_ID", { /* … */ });
38
+ ```
39
+
28
40
  ## deleteUser
29
41
 
30
42
  `DELETE /users/{user_id}/email_aliases/{email_alias_id}`
@@ -36,3 +48,9 @@ Reach these methods through the `emailAliases` field on `Client`.
36
48
 
37
49
  **Returns:** `void`
38
50
 
51
+ **Example**
52
+
53
+ ```ts
54
+ await client.emailAliases.deleteUser("USER_ID", "EMAIL_ALIAS_ID");
55
+ ```
56
+
@@ -14,3 +14,9 @@ Reach these methods through the `enterpriseConfigurations` field on `Client`.
14
14
 
15
15
  **Returns:** `EnterpriseConfiguration`
16
16
 
17
+ **Example**
18
+
19
+ ```ts
20
+ const result = await client.enterpriseConfigurations.get("ENTERPRISE_ID", []);
21
+ ```
22
+
@@ -18,9 +18,21 @@ Reach these methods through the `events` field on `Client`.
18
18
 
19
19
  **Returns:** `Events`
20
20
 
21
+ **Example**
22
+
23
+ ```ts
24
+ const result = await client.events.list();
25
+ ```
26
+
21
27
  ## options
22
28
 
23
29
  `OPTIONS /events`
24
30
 
25
31
  **Returns:** `RealtimeServers`
26
32
 
33
+ **Example**
34
+
35
+ ```ts
36
+ const result = await client.events.options();
37
+ ```
38
+
@@ -11,3 +11,9 @@ Reach these methods through the `externalUsers` field on `Client`.
11
11
 
12
12
  **Returns:** `ExternalUsersSubmitDeleteJobResponse`
13
13
 
14
+ **Example**
15
+
16
+ ```ts
17
+ const result = await client.externalUsers.createSubmitDeleteJob({ /* … */ });
18
+ ```
19
+
@@ -13,6 +13,12 @@ Reach these methods through the `fileClassifications` field on `Client`.
13
13
 
14
14
  **Returns:** `Classification`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.fileClassifications.get("FILE_ID");
20
+ ```
21
+
16
22
  ## update
17
23
 
18
24
  `PUT /files/{file_id}/metadata/enterprise/securityClassification-6VMVochwUWo`
@@ -25,6 +31,12 @@ Reach these methods through the `fileClassifications` field on `Client`.
25
31
 
26
32
  **Returns:** `Classification`
27
33
 
34
+ **Example**
35
+
36
+ ```ts
37
+ const result = await client.fileClassifications.update("FILE_ID", []);
38
+ ```
39
+
28
40
  ## create
29
41
 
30
42
  `POST /files/{file_id}/metadata/enterprise/securityClassification-6VMVochwUWo`
@@ -37,6 +49,12 @@ Reach these methods through the `fileClassifications` field on `Client`.
37
49
 
38
50
  **Returns:** `Classification`
39
51
 
52
+ **Example**
53
+
54
+ ```ts
55
+ const result = await client.fileClassifications.create("FILE_ID", { /* … */ });
56
+ ```
57
+
40
58
  ## delete_
41
59
 
42
60
  `DELETE /files/{file_id}/metadata/enterprise/securityClassification-6VMVochwUWo`
@@ -47,3 +65,9 @@ Reach these methods through the `fileClassifications` field on `Client`.
47
65
 
48
66
  **Returns:** `void`
49
67
 
68
+ **Example**
69
+
70
+ ```ts
71
+ await client.fileClassifications.delete_("FILE_ID");
72
+ ```
73
+