Skip to content

Commit 77936de

Browse files
DropboxBotrogebrd
andauthored
Automated Spec Update (#820)
65585e4d2e93fd84087b48bbaf1bbf396a4b1126 Change Notes: files Namespace - Add upload_session/finish_batch:2 route 2026d2d9a589c1679f82507e4699252a2c3764ba Change Notes: team_log Namespace: - Update Comments common: - Update EmailAddress regex Co-authored-by: Scott Erickson <serickson@dropbox.com> 55ae3f7008099fe4776e12265ccb9c9214305ce9 Change Notes: team_log_generated Namespace: - Add EmailIngestPolicy union - Add EmailIngestReceiveFileDetails, EmailIngestPolicyChangedDetails, EmailIngestReceiveFileType, and EmailIngestPolicyChangedType structs - Update EventDetails union to include email_ingest_receive_file_details and email_ingest_policy_changed_details - Update EventType union to include email_ingest_receive_file and email_ingest_policy_changed - Update EventTypeArg to include email_ingest_receive_file and email_ingest_policy_changed Co-authored-by: Brent Bumann <bbumann@dropbox.com> d439f00c77d82184d4d14c783166f372c8f03dd1 Change Notes: files Namespace Add api_proxy_dev_check_api_v2_service namespace Add api_proxy_dev_check_api_v2_types namespace Co-authored-by: Eugene Che <eugeneyche@dropbox.com> 837cc8789d6a620442a1b404a3cf8446979b7203 Change Notes: team_log Namespace: - Add CaptureTranscriptPolicy union - Add CaptureTranscriptPolicyChangedDetails, CaptureTranscriptPolicyChangedType struct - Update EventDetails, EventType, EventTypeArg union Co-authored-by: Scott Erickson <serickson@dropbox.com> e57f8a4da1b070bed3ac5d4d3ec325fcd3630686 Change Notes: sharing_files Namespace - Update Comments sharing_folders Namespace - Update Comments team_folders Namespace - Update Comments team_log_generated Namespace - Add ExternalDriveBackupPolicy union - Add ExternalDriveBackupPolicyChangedDetails and ExternalDriveBackupPolicyChangedType structs - Update EventDetails union to include external_drive_backup_policy_changed_details - Update EventType union to include external_drive_backup_policy_changed - Update EventTypeArg union to include external_drive_backup_policy_changed team_policies Namespace - Add ExternalDriveBackupPolicyState union cd86d1f4e456af1e6730ecaf079e9dbdeb72be04 Change Notes: Team Log Generated Namespace: - Update Comments Co-authored-by: rogebrd <rogebrd@users.noreply.github.com>
1 parent e4cd6f4 commit 77936de

File tree

5 files changed

+47
-3
lines changed

5 files changed

+47
-3
lines changed

generator/dropbox-api-spec

lib/routes.js

+22
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,28 @@ routes.filesUploadSessionFinishBatch = function (arg) {
11841184
return this.request('files/upload_session/finish_batch', arg, 'user', 'api', 'rpc');
11851185
};
11861186

1187+
/**
1188+
* This route helps you commit many files at once into a user's Dropbox. Use
1189+
* upload_session/start and upload_session/append_v2 to upload file contents. We
1190+
* recommend uploading many files in parallel to increase throughput. Once the
1191+
* file contents have been uploaded, rather than calling upload_session/finish,
1192+
* use this route to finish all your upload sessions in a single request.
1193+
* UploadSessionStartArg.close or UploadSessionAppendArg.close needs to be true
1194+
* for the last upload_session/start or upload_session/append_v2 call of each
1195+
* upload session. The maximum size of a file one can upload to an upload
1196+
* session is 350 GB. We allow up to 1000 entries in a single request. Calls to
1197+
* this endpoint will count as data transport calls for any Dropbox Business
1198+
* teams with a limit on the number of data transport calls allowed per month.
1199+
* For more information, see the Data transport limit page
1200+
* https://www.dropbox.com/developers/reference/data-transport-limit.
1201+
* @function Dropbox#filesUploadSessionFinishBatchV2
1202+
* @arg {FilesUploadSessionFinishBatchArg} arg - The request parameters.
1203+
* @returns {Promise.<DropboxResponse<FilesUploadSessionFinishBatchResult>, DropboxResponseError.<void>>}
1204+
*/
1205+
routes.filesUploadSessionFinishBatchV2 = function (arg) {
1206+
return this.request('files/upload_session/finish_batch_v2', arg, 'user', 'api', 'rpc');
1207+
};
1208+
11871209
/**
11881210
* Returns the status of an asynchronous job for upload_session/finish_batch. If
11891211
* success, it returns list of result for each entry.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dropbox",
3-
"version": "10.10.0",
3+
"version": "10.11.0",
44
"registry": "npm",
55
"description": "The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments.",
66
"main": "cjs/index.js",

types/index.d.ts

+22
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,28 @@ export class Dropbox {
13471347
*/
13481348
public filesUploadSessionFinishBatch(arg: files.UploadSessionFinishBatchArg): Promise<DropboxResponse<files.UploadSessionFinishBatchLaunch>>;
13491349

1350+
/**
1351+
* This route helps you commit many files at once into a user's Dropbox. Use
1352+
* uploadSessionStart() and uploadSessionAppendV2() to upload file contents.
1353+
* We recommend uploading many files in parallel to increase throughput.
1354+
* Once the file contents have been uploaded, rather than calling
1355+
* uploadSessionFinish(), use this route to finish all your upload sessions
1356+
* in a single request. UploadSessionStartArg.close or
1357+
* UploadSessionAppendArg.close needs to be true for the last
1358+
* uploadSessionStart() or uploadSessionAppendV2() call of each upload
1359+
* session. The maximum size of a file one can upload to an upload session
1360+
* is 350 GB. We allow up to 1000 entries in a single request. Calls to this
1361+
* endpoint will count as data transport calls for any Dropbox Business
1362+
* teams with a limit on the number of data transport calls allowed per
1363+
* month. For more information, see the [Data transport limit page]{@link
1364+
* https://www.dropbox.com/developers/reference/data-transport-limit}.
1365+
*
1366+
* When an error occurs, the route rejects the promise with type
1367+
* DropboxResponseError<void>.
1368+
* @param arg The request parameters.
1369+
*/
1370+
public filesUploadSessionFinishBatchV2(arg: files.UploadSessionFinishBatchArg): Promise<DropboxResponse<files.UploadSessionFinishBatchResult>>;
1371+
13501372
/**
13511373
* Returns the status of an asynchronous job for uploadSessionFinishBatch().
13521374
* If success, it returns list of result for each entry.

0 commit comments

Comments
 (0)