@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
@@ -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
+
@@ -14,6 +14,12 @@ Reach these methods through the `fileMetadata` field on `Client`.
14
14
 
15
15
  **Returns:** `Metadatas`
16
16
 
17
+ **Example**
18
+
19
+ ```ts
20
+ const result = await client.fileMetadata.listFileMetadata("FILE_ID");
21
+ ```
22
+
17
23
  ## getFileMetadata
18
24
 
19
25
  `GET /files/{file_id}/metadata/{scope}/{template_key}`
@@ -27,6 +33,12 @@ Reach these methods through the `fileMetadata` field on `Client`.
27
33
 
28
34
  **Returns:** `MetadataFull`
29
35
 
36
+ **Example**
37
+
38
+ ```ts
39
+ const result = await client.fileMetadata.getFileMetadata("FILE_ID", "...", "TEMPLATE_KEY");
40
+ ```
41
+
30
42
  ## updateFileMetadata
31
43
 
32
44
  `PUT /files/{file_id}/metadata/{scope}/{template_key}`
@@ -41,6 +53,12 @@ Reach these methods through the `fileMetadata` field on `Client`.
41
53
 
42
54
  **Returns:** `MetadataFull`
43
55
 
56
+ **Example**
57
+
58
+ ```ts
59
+ const result = await client.fileMetadata.updateFileMetadata("FILE_ID", "...", "TEMPLATE_KEY", []);
60
+ ```
61
+
44
62
  ## createFileMetadata
45
63
 
46
64
  `POST /files/{file_id}/metadata/{scope}/{template_key}`
@@ -55,6 +73,12 @@ Reach these methods through the `fileMetadata` field on `Client`.
55
73
 
56
74
  **Returns:** `MetadataFull`
57
75
 
76
+ **Example**
77
+
78
+ ```ts
79
+ const result = await client.fileMetadata.createFileMetadata("FILE_ID", "...", "TEMPLATE_KEY", { /* … */ });
80
+ ```
81
+
58
82
  ## deleteFileMetadata
59
83
 
60
84
  `DELETE /files/{file_id}/metadata/{scope}/{template_key}`
@@ -67,3 +91,9 @@ Reach these methods through the `fileMetadata` field on `Client`.
67
91
 
68
92
  **Returns:** `void`
69
93
 
94
+ **Example**
95
+
96
+ ```ts
97
+ await client.fileMetadata.deleteFileMetadata("FILE_ID", "...", "TEMPLATE_KEY");
98
+ ```
99
+
@@ -13,6 +13,12 @@ Reach these methods through the `fileRequests` field on `Client`.
13
13
 
14
14
  **Returns:** `FileRequest`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.fileRequests.get("FILE_REQUEST_ID");
20
+ ```
21
+
16
22
  ## update
17
23
 
18
24
  `PUT /file_requests/{file_request_id}`
@@ -26,6 +32,12 @@ Reach these methods through the `fileRequests` field on `Client`.
26
32
 
27
33
  **Returns:** `FileRequest`
28
34
 
35
+ **Example**
36
+
37
+ ```ts
38
+ const result = await client.fileRequests.update("FILE_REQUEST_ID", { /* … */ });
39
+ ```
40
+
29
41
  ## delete_
30
42
 
31
43
  `DELETE /file_requests/{file_request_id}`
@@ -36,6 +48,12 @@ Reach these methods through the `fileRequests` field on `Client`.
36
48
 
37
49
  **Returns:** `void`
38
50
 
51
+ **Example**
52
+
53
+ ```ts
54
+ await client.fileRequests.delete_("FILE_REQUEST_ID");
55
+ ```
56
+
39
57
  ## copy
40
58
 
41
59
  `POST /file_requests/{file_request_id}/copy`
@@ -48,3 +66,9 @@ Reach these methods through the `fileRequests` field on `Client`.
48
66
 
49
67
  **Returns:** `FileRequest`
50
68
 
69
+ **Example**
70
+
71
+ ```ts
72
+ const result = await client.fileRequests.copy("FILE_REQUEST_ID", { /* … */ });
73
+ ```
74
+
@@ -13,6 +13,12 @@ Reach these methods through the `fileVersionLegalHolds` field on `Client`.
13
13
 
14
14
  **Returns:** `FileVersionLegalHold`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.fileVersionLegalHolds.get("FILE_VERSION_LEGAL_HOLD_ID");
20
+ ```
21
+
16
22
  ## list
17
23
 
18
24
  `GET /file_version_legal_holds`
@@ -25,5 +31,13 @@ Reach these methods through the `fileVersionLegalHolds` field on `Client`.
25
31
 
26
32
  **Returns:** `FileVersionLegalHolds`
27
33
 
34
+ **Example**
35
+
36
+ ```ts
37
+ for await (const item of client.fileVersionLegalHolds.list("POLICY_ID")) {
38
+ // use item
39
+ }
40
+ ```
41
+
28
42
  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).
29
43
 
@@ -20,6 +20,14 @@ Reach these methods through the `fileVersionRetentions` field on `Client`.
20
20
 
21
21
  **Returns:** `FileVersionRetentions`
22
22
 
23
+ **Example**
24
+
25
+ ```ts
26
+ for await (const item of client.fileVersionRetentions.list()) {
27
+ // use item
28
+ }
29
+ ```
30
+
23
31
  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).
24
32
 
25
33
  ## get
@@ -32,3 +40,9 @@ Paginated — `list(...)` is an async iterable that yields each entry across pag
32
40
 
33
41
  **Returns:** `FileVersionRetention`
34
42
 
43
+ **Example**
44
+
45
+ ```ts
46
+ const result = await client.fileVersionRetentions.get("FILE_VERSION_RETENTION_ID");
47
+ ```
48
+
@@ -16,6 +16,14 @@ Reach these methods through the `fileVersions` field on `Client`.
16
16
 
17
17
  **Returns:** `FileVersions`
18
18
 
19
+ **Example**
20
+
21
+ ```ts
22
+ for await (const item of client.fileVersions.listFileVersions("FILE_ID")) {
23
+ // use item
24
+ }
25
+ ```
26
+
19
27
  Paginated — `listFileVersions(...)` 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
  ## getFileVersion
@@ -30,6 +38,12 @@ Paginated — `listFileVersions(...)` is an async iterable that yields each entr
30
38
 
31
39
  **Returns:** `FileVersionFull`
32
40
 
41
+ **Example**
42
+
43
+ ```ts
44
+ const result = await client.fileVersions.getFileVersion("FILE_ID", "FILE_VERSION_ID");
45
+ ```
46
+
33
47
  ## updateFileVersion
34
48
 
35
49
  `PUT /files/{file_id}/versions/{file_version_id}`
@@ -43,6 +57,12 @@ Paginated — `listFileVersions(...)` is an async iterable that yields each entr
43
57
 
44
58
  **Returns:** `FileVersionFull`
45
59
 
60
+ **Example**
61
+
62
+ ```ts
63
+ const result = await client.fileVersions.updateFileVersion("FILE_ID", "FILE_VERSION_ID", { /* … */ });
64
+ ```
65
+
46
66
  ## deleteFileVersion
47
67
 
48
68
  `DELETE /files/{file_id}/versions/{file_version_id}`
@@ -55,6 +75,12 @@ Paginated — `listFileVersions(...)` is an async iterable that yields each entr
55
75
 
56
76
  **Returns:** `void`
57
77
 
78
+ **Example**
79
+
80
+ ```ts
81
+ await client.fileVersions.deleteFileVersion("FILE_ID", "FILE_VERSION_ID");
82
+ ```
83
+
58
84
  ## createFileVersionCurrent
59
85
 
60
86
  `POST /files/{file_id}/versions/current`
@@ -68,3 +94,9 @@ Paginated — `listFileVersions(...)` is an async iterable that yields each entr
68
94
 
69
95
  **Returns:** `FileVersionFull`
70
96
 
97
+ **Example**
98
+
99
+ ```ts
100
+ const result = await client.fileVersions.createFileVersionCurrent("FILE_ID", { /* … */ });
101
+ ```
102
+
@@ -13,6 +13,12 @@ Reach these methods through the `fileWatermarks` field on `Client`.
13
13
 
14
14
  **Returns:** `Watermark`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.fileWatermarks.getFileWatermark("FILE_ID");
20
+ ```
21
+
16
22
  ## updateFileWatermark
17
23
 
18
24
  `PUT /files/{file_id}/watermark`
@@ -25,6 +31,12 @@ Reach these methods through the `fileWatermarks` field on `Client`.
25
31
 
26
32
  **Returns:** `Watermark`
27
33
 
34
+ **Example**
35
+
36
+ ```ts
37
+ const result = await client.fileWatermarks.updateFileWatermark("FILE_ID", { /* … */ });
38
+ ```
39
+
28
40
  ## deleteFileWatermark
29
41
 
30
42
  `DELETE /files/{file_id}/watermark`
@@ -35,3 +47,9 @@ Reach these methods through the `fileWatermarks` field on `Client`.
35
47
 
36
48
  **Returns:** `void`
37
49
 
50
+ **Example**
51
+
52
+ ```ts
53
+ await client.fileWatermarks.deleteFileWatermark("FILE_ID");
54
+ ```
55
+
@@ -17,6 +17,12 @@ Reach these methods through the `files` field on `Client`.
17
17
 
18
18
  **Returns:** `FileFull`
19
19
 
20
+ **Example**
21
+
22
+ ```ts
23
+ const result = await client.files.get("FILE_ID");
24
+ ```
25
+
20
26
  ## update
21
27
 
22
28
  `PUT /files/{file_id}`
@@ -31,6 +37,12 @@ Reach these methods through the `files` field on `Client`.
31
37
 
32
38
  **Returns:** `FileFull`
33
39
 
40
+ **Example**
41
+
42
+ ```ts
43
+ const result = await client.files.update("FILE_ID", { /* … */ });
44
+ ```
45
+
34
46
  ## delete_
35
47
 
36
48
  `DELETE /files/{file_id}`
@@ -42,6 +54,12 @@ Reach these methods through the `files` field on `Client`.
42
54
 
43
55
  **Returns:** `void`
44
56
 
57
+ **Example**
58
+
59
+ ```ts
60
+ await client.files.delete_("FILE_ID");
61
+ ```
62
+
45
63
  ## copy
46
64
 
47
65
  `POST /files/{file_id}/copy`
@@ -55,6 +73,12 @@ Reach these methods through the `files` field on `Client`.
55
73
 
56
74
  **Returns:** `FileFull`
57
75
 
76
+ **Example**
77
+
78
+ ```ts
79
+ const result = await client.files.copy("FILE_ID", { /* … */ });
80
+ ```
81
+
58
82
  ## getThumbnail
59
83
 
60
84
  `GET /files/{file_id}/thumbnail.{extension}`
@@ -70,3 +94,9 @@ Reach these methods through the `files` field on `Client`.
70
94
 
71
95
  **Returns:** a binary stream (`runtime.Stream`)
72
96
 
97
+ **Example**
98
+
99
+ ```ts
100
+ const result = await client.files.getThumbnail("FILE_ID", "...");
101
+ ```
102
+
@@ -13,6 +13,12 @@ Reach these methods through the `folderClassifications` field on `Client`.
13
13
 
14
14
  **Returns:** `Classification`
15
15
 
16
+ **Example**
17
+
18
+ ```ts
19
+ const result = await client.folderClassifications.get("FOLDER_ID");
20
+ ```
21
+
16
22
  ## update
17
23
 
18
24
  `PUT /folders/{folder_id}/metadata/enterprise/securityClassification-6VMVochwUWo`
@@ -25,6 +31,12 @@ Reach these methods through the `folderClassifications` field on `Client`.
25
31
 
26
32
  **Returns:** `Classification`
27
33
 
34
+ **Example**
35
+
36
+ ```ts
37
+ const result = await client.folderClassifications.update("FOLDER_ID", []);
38
+ ```
39
+
28
40
  ## create
29
41
 
30
42
  `POST /folders/{folder_id}/metadata/enterprise/securityClassification-6VMVochwUWo`
@@ -37,6 +49,12 @@ Reach these methods through the `folderClassifications` field on `Client`.
37
49
 
38
50
  **Returns:** `Classification`
39
51
 
52
+ **Example**
53
+
54
+ ```ts
55
+ const result = await client.folderClassifications.create("FOLDER_ID", { /* … */ });
56
+ ```
57
+
40
58
  ## delete_
41
59
 
42
60
  `DELETE /folders/{folder_id}/metadata/enterprise/securityClassification-6VMVochwUWo`
@@ -47,3 +65,9 @@ Reach these methods through the `folderClassifications` field on `Client`.
47
65
 
48
66
  **Returns:** `void`
49
67
 
68
+ **Example**
69
+
70
+ ```ts
71
+ await client.folderClassifications.delete_("FOLDER_ID");
72
+ ```
73
+