Skip to content

Commit 256a6c9

Browse files
committed
Updated spec.
Auth namespace: - Added TokenFromOAuth1Arg, TokenFromOAuth1Result and TokenFromOAuth1Error. - Added token/from_oauth1 rote. - Added AccessError and PaperAccessError. - Added InvalidAccountTypeError. Files namespace: - Added UploadSessionFinishBatchLaunch and made it new return type for upload_session/finish_batch. - Added DeleteBatchLaunch and made it new return type for delete_batch. - Added RelocationBatchLaunch and made it new return type for copy_batch and move_batch. Sharing namespace: - Added unsupported_link_type to SharedLinkError. - Added is_member to GroupInfo. - Added too_many_files to UnshareFolderError. - Added no_explicit_access to RelinquishFolderMembershipError. Stone Cfg namespace: - Added feature route attribute. Team namespace: - Added group_name_already_used and group_name_invalid to GroupUpdateError.
1 parent 0e02e04 commit 256a6c9

File tree

4 files changed

+343
-19
lines changed

4 files changed

+343
-19
lines changed

src/routes-team.js

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,4 +549,97 @@ routes.teamReportsGetStorage = function (arg) {
549549
return this.request('team/reports/get_storage', arg, 'team', 'api', 'rpc');
550550
};
551551

552+
/**
553+
* Sets an archived team folder's status to active. This endpoint is only
554+
* available to teams with improved team folders /help/986. Permission : Team
555+
* member file access.
556+
* @function DropboxTeam#teamTeamFolderActivate
557+
* @arg {TeamTeamFolderIdArg} arg - The request parameters.
558+
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderActivateError>>}
559+
*/
560+
routes.teamTeamFolderActivate = function (arg) {
561+
return this.request('team/team_folder/activate', arg, 'team', 'api', 'rpc');
562+
};
563+
564+
/**
565+
* Sets an active team folder's status to archived and removes all folder and
566+
* file members. This endpoint is only available to teams with improved team
567+
* folders /help/986. Permission : Team member file access.
568+
* @function DropboxTeam#teamTeamFolderArchive
569+
* @arg {TeamTeamFolderArchiveArg} arg - The request parameters.
570+
* @returns {Promise.<TeamTeamFolderArchiveLaunch, Error.<TeamTeamFolderArchiveError>>}
571+
*/
572+
routes.teamTeamFolderArchive = function (arg) {
573+
return this.request('team/team_folder/archive', arg, 'team', 'api', 'rpc');
574+
};
575+
576+
/**
577+
* Returns the status of an asynchronous job for archiving a team folder. This
578+
* endpoint is only available to teams with improved team folders /help/986.
579+
* Permission : Team member file access.
580+
* @function DropboxTeam#teamTeamFolderArchiveCheck
581+
* @arg {AsyncPollArg} arg - The request parameters.
582+
* @returns {Promise.<TeamTeamFolderArchiveJobStatus, Error.<AsyncPollError>>}
583+
*/
584+
routes.teamTeamFolderArchiveCheck = function (arg) {
585+
return this.request('team/team_folder/archive/check', arg, 'team', 'api', 'rpc');
586+
};
587+
588+
/**
589+
* Creates a new, active, team folder. This endpoint is only available to teams
590+
* with improved team folders /help/986. Permission : Team member file access.
591+
* @function DropboxTeam#teamTeamFolderCreate
592+
* @arg {TeamTeamFolderCreateArg} arg - The request parameters.
593+
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderCreateError>>}
594+
*/
595+
routes.teamTeamFolderCreate = function (arg) {
596+
return this.request('team/team_folder/create', arg, 'team', 'api', 'rpc');
597+
};
598+
599+
/**
600+
* Retrieves metadata for team folders. This endpoint is only available to teams
601+
* with improved team folders /help/986. Permission : Team member file access.
602+
* @function DropboxTeam#teamTeamFolderGetInfo
603+
* @arg {TeamTeamFolderIdListArg} arg - The request parameters.
604+
* @returns {Promise.<Array.<TeamTeamFolderGetInfoItem>, Error.<void>>}
605+
*/
606+
routes.teamTeamFolderGetInfo = function (arg) {
607+
return this.request('team/team_folder/get_info', arg, 'team', 'api', 'rpc');
608+
};
609+
610+
/**
611+
* Lists all team folders. This endpoint is only available to teams with
612+
* improved team folders /help/986. Permission : Team member file access.
613+
* @function DropboxTeam#teamTeamFolderList
614+
* @arg {TeamTeamFolderListArg} arg - The request parameters.
615+
* @returns {Promise.<TeamTeamFolderListResult, Error.<TeamTeamFolderListError>>}
616+
*/
617+
routes.teamTeamFolderList = function (arg) {
618+
return this.request('team/team_folder/list', arg, 'team', 'api', 'rpc');
619+
};
620+
621+
/**
622+
* Permanently deletes an archived team folder. This endpoint is only available
623+
* to teams with improved team folders /help/986. Permission : Team member file
624+
* access.
625+
* @function DropboxTeam#teamTeamFolderPermanentlyDelete
626+
* @arg {TeamTeamFolderIdArg} arg - The request parameters.
627+
* @returns {Promise.<void, Error.<TeamTeamFolderPermanentlyDeleteError>>}
628+
*/
629+
routes.teamTeamFolderPermanentlyDelete = function (arg) {
630+
return this.request('team/team_folder/permanently_delete', arg, 'team', 'api', 'rpc');
631+
};
632+
633+
/**
634+
* Changes an active team folder's name. This endpoint is only available to
635+
* teams with improved team folders /help/986. Permission : Team member file
636+
* access.
637+
* @function DropboxTeam#teamTeamFolderRename
638+
* @arg {TeamTeamFolderRenameArg} arg - The request parameters.
639+
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderRenameError>>}
640+
*/
641+
routes.teamTeamFolderRename = function (arg) {
642+
return this.request('team/team_folder/rename', arg, 'team', 'api', 'rpc');
643+
};
644+
552645
module.exports = routes;

src/routes.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
// Auto-generated by Stone, do not modify.
22
var routes = {};
33

4+
/**
5+
* Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.
6+
* @function Dropbox#authTokenFromOauth1
7+
* @arg {AuthTokenFromOAuth1Arg} arg - The request parameters.
8+
* @returns {Promise.<AuthTokenFromOAuth1Result, Error.<AuthTokenFromOAuth1Error>>}
9+
*/
10+
routes.authTokenFromOauth1 = function (arg) {
11+
return this.request('auth/token/from_oauth1', arg, 'app', 'api', 'rpc');
12+
};
13+
414
/**
515
* Disables the access token used to authenticate the call.
616
* @function Dropbox#authTokenRevoke
@@ -57,7 +67,7 @@ routes.filesCopy = function (arg) {
5767
* background. Please use copy_batch/check to check the job status.
5868
* @function Dropbox#filesCopyBatch
5969
* @arg {FilesRelocationBatchArg} arg - The request parameters.
60-
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<void>>}
70+
* @returns {Promise.<FilesRelocationBatchLaunch, Error.<void>>}
6171
*/
6272
routes.filesCopyBatch = function (arg) {
6373
return this.request('files/copy_batch', arg, 'user', 'api', 'rpc');
@@ -126,7 +136,7 @@ routes.filesDelete = function (arg) {
126136
* delete_batch/check to check the job status.
127137
* @function Dropbox#filesDeleteBatch
128138
* @arg {FilesDeleteBatchArg} arg - The request parameters.
129-
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<void>>}
139+
* @returns {Promise.<FilesDeleteBatchLaunch, Error.<void>>}
130140
*/
131141
routes.filesDeleteBatch = function (arg) {
132142
return this.request('files/delete_batch', arg, 'user', 'api', 'rpc');
@@ -294,7 +304,7 @@ routes.filesMove = function (arg) {
294304
* the job status.
295305
* @function Dropbox#filesMoveBatch
296306
* @arg {FilesRelocationBatchArg} arg - The request parameters.
297-
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<void>>}
307+
* @returns {Promise.<FilesRelocationBatchLaunch, Error.<void>>}
298308
*/
299309
routes.filesMoveBatch = function (arg) {
300310
return this.request('files/move_batch', arg, 'user', 'api', 'rpc');
@@ -494,7 +504,7 @@ routes.filesUploadSessionFinish = function (arg) {
494504
* 1000 entries in a single request.
495505
* @function Dropbox#filesUploadSessionFinishBatch
496506
* @arg {FilesUploadSessionFinishBatchArg} arg - The request parameters.
497-
* @returns {Promise.<AsyncLaunchEmptyResult, Error.<void>>}
507+
* @returns {Promise.<FilesUploadSessionFinishBatchLaunch, Error.<void>>}
498508
*/
499509
routes.filesUploadSessionFinishBatch = function (arg) {
500510
return this.request('files/upload_session/finish_batch', arg, 'user', 'api', 'rpc');
@@ -704,8 +714,8 @@ routes.sharingListFileMembers = function (arg) {
704714
* Get members of multiple files at once. The arguments to this route are more
705715
* limited, and the limit on query result size per file is more strict. To
706716
* customize the results more, use the individual file endpoint. Inherited users
707-
* are not included in the result, and permissions are not returned for this
708-
* endpoint.
717+
* and groups are not included in the result, and permissions are not returned
718+
* for this endpoint.
709719
* @function Dropbox#sharingListFileMembersBatch
710720
* @arg {SharingListFileMembersBatchArg} arg - The request parameters.
711721
* @returns {Promise.<Array.<SharingListFileMembersBatchResult>, Error.<SharingSharingUserError>>}

0 commit comments

Comments
 (0)